/* Golden V2.1 presentation; scoped to authenticated application. */
body.golden-v21{--bg:#F4F5F2;--surface:#fff;--surface2:#F8F9F6;--line:#E3E5DF;--ink:#0B1A2E;--mut:#5A6577;--accent:#F7B500;background:var(--bg);color:var(--ink)}
body.golden-v21.gx-dark{--bg:#0C1525;--surface:#121F33;--surface2:#16253C;--line:#22334D;--ink:#ECF0F5;--mut:#9AA8BB;color-scheme:dark}
.golden-v21 .app{display:grid;grid-template-columns:252px minmax(0,1fr)}
.golden-v21 .side{width:auto;background:#0B1A2E;position:sticky;top:0;height:100dvh;padding:18px 12px;overflow:auto}.golden-v21 .side .cta{display:none}.golden-v21 .nav{display:block}.golden-v21 #main{padding:0;min-width:0;margin:0;width:auto;max-width:none}.golden-v21 #view{max-width:1600px;margin:auto;padding:28px}.golden-v21 .nav a{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:8px;text-decoration:none;color:#C9D2DE;font-size:14px}.golden-v21 .nav a.on,.golden-v21 .nav a:hover{background:#132644;color:white}.golden-v21 .nav a.on{border-right:3px solid var(--accent)}.gx-navgroup{padding:18px 12px 6px;text-transform:uppercase;letter-spacing:.08em;color:#8496AE;font-size:11px;font-weight:650}.gx-top{background:var(--surface);border-bottom:1px solid var(--line);padding:12px 28px;display:flex;align-items:center;gap:12px}.gx-top label{flex:1;max-width:520px}.gx-top input{width:100%}.gx-top small{margin-left:auto;color:var(--mut)}.gx-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.gx-header h1{font-size:27px;margin:0;letter-spacing:-.03em}.gx-header p{color:var(--mut);margin:6px 0 0}.gx-card{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:20px;min-width:0;box-shadow:0 1px 2px #0b1a2e08;margin-bottom:18px}.gx-card h2{font-size:17px;margin:0 0 16px}.gx-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.gx-kpi{padding:17px 18px}.gx-kpi small{color:var(--mut);font-weight:600;display:block}.gx-kpi strong{display:block;font-size:28px;margin:8px 0;letter-spacing:-.03em;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.gx-kpi p{font-size:12px;color:var(--mut);margin:0}.gx-hero{background:#0B1A2E;color:white;border-color:#0B1A2E}.gx-hero strong{color:#F7B500}.gx-hero small,.gx-hero p{color:#AEBBCD}.gx-split{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:18px}.gx-strip{display:flex;gap:24px;flex-wrap:wrap;padding:14px 18px;margin-bottom:18px}.gx-strip small{display:block;color:var(--mut)}.gx-strip strong{font-size:18px}.gx-table{width:100%;border-collapse:collapse;font-size:13px}.gx-table th{text-align:left;color:var(--mut);background:var(--surface2);font-size:12px;font-weight:600}.gx-table th,.gx-table td{padding:12px 10px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.gx-table td small{display:block;color:var(--mut)}.gx-table tr:last-child td{border-bottom:0}.gx-table button{border:0;background:none;color:var(--ink);text-align:left;text-decoration:underline;text-underline-offset:3px}.gx-badge{font-size:11px;font-weight:650;border-radius:6px;display:inline-block;padding:4px 8px;background:var(--surface2);border:1px solid var(--line);white-space:normal}.gx-badge.ok{background:#E4F2EA;color:#1D6F47}.gx-badge.warn{background:#FFF1D6;color:#8A5300}.gx-muted{color:var(--mut);font-size:13px}.gx-empty{padding:35px 15px;text-align:center;color:var(--mut)}.gx-filter{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px}.gx-filter input{flex:1}.gx-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.gx-column{background:var(--surface2);padding:12px;border:1px solid var(--line);border-radius:12px;min-width:0}.gx-column h2{font-size:14px;margin:0 0 12px}.gx-tile{display:block;width:100%;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:14px;text-align:left;color:var(--ink);margin:8px 0;overflow-wrap:anywhere}.gx-tile small{display:block;color:var(--mut);margin-top:8px}.gx-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.gx-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.gx-values dt{font-size:12px;color:var(--mut)}.gx-values dd{margin:4px 0 12px;overflow-wrap:anywhere}.gx-chart{display:flex;align-items:end;justify-content:space-around;gap:10px;height:230px;padding:20px 5px 25px;border-bottom:1px solid var(--line)}.gx-chart figure{margin:0;flex:1;height:100%;display:flex;align-items:end;position:relative;justify-content:center;gap:4px}.gx-chart .bar{background:#0B1A2E;width:25%;min-height:2px;border-radius:4px 4px 0 0}.gx-chart .bar.bonus{background:#F7B500}.gx-chart figcaption{position:absolute;top:calc(100% + 5px);font-size:11px;color:var(--mut)}.gx-dark .gx-chart .bar{background:#9BBCEB}.gx-dark .gx-chart .bar.bonus{background:#F7B500}.gx-legend{display:flex;gap:20px;font-size:12px;color:var(--mut);margin:18px 0}.gx-progress{width:100%;height:8px;accent-color:#1D6F47;margin:10px 0}.golden-v21 .btn{min-height:40px}.golden-v21 .btn.pri{background:#F7B500;color:#0B1A2E;border-color:#F7B500}.golden-v21 .panel,.golden-v21 .drawer,.golden-v21 .inp,.golden-v21 .fin-card,.golden-v21 .pay-card,.golden-v21 .gold-panel,.golden-v21 .gold-kpi{background:var(--surface);color:var(--ink);border-color:var(--line)}.golden-v21 :focus-visible{outline:3px solid #C79100;outline-offset:3px}.golden-v21 .drawer{max-width:760px}.gx-form{display:grid;gap:14px}.gx-form label{display:grid;gap:6px;font-size:13px}.gx-form input,.gx-form select,.gx-form textarea,.gx-top input,.gx-filter input,.gx-filter select{border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);padding:10px;min-width:0}.gx-form textarea{min-height:90px;resize:vertical}.gx-error{color:#B42318}.gx-pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px}.gx-mobile-menu{display:none}.golden-v21 .mobile-top,.golden-v21 .mobile-nav{display:none}.gx-note{white-space:pre-wrap;overflow-wrap:anywhere}.golden-v21 .side-foot{color:#8496AE}.golden-v21 .side-foot button{color:#C9D2DE}
@media(min-width:1600px){.gx-board{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:1100px){.golden-v21 .app{grid-template-columns:210px minmax(0,1fr)}.golden-v21 #view{padding:20px}.gx-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.gx-split{grid-template-columns:1fr}.gx-table th,.gx-table td{padding:10px 6px}.gx-board{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.golden-v21 .app{display:block}.golden-v21 .side{display:none}.golden-v21.gx-menu .side{display:flex;position:fixed;z-index:100;width:252px;box-shadow:0 0 0 100vmax #0008}.gx-mobile-menu{display:block}.gx-top{padding:10px 16px}.gx-top small{display:none}.golden-v21 #view{padding:18px}.gx-header{align-items:flex-start}.gx-header h1{font-size:24px}.gx-header{flex-wrap:wrap}.gx-card{padding:16px}.gx-table thead{display:none}.gx-table tr{display:block;border-bottom:1px solid var(--line);padding:10px 0}.gx-table td{display:flex;justify-content:space-between;gap:15px;border:0;padding:6px 0;text-align:right}.gx-table td::before{content:attr(data-label);color:var(--mut);text-align:left;min-width:80px}.gx-kpi strong{font-size:25px}.gx-values{grid-template-columns:1fr}.gx-table{table-layout:fixed}.gx-table td>*{min-width:0;overflow-wrap:anywhere}.gx-filter{flex-direction:column}}
@media(max-width:450px){.gx-board{grid-template-columns:1fr}.gx-kpis{gap:10px}.gx-kpi{padding:14px 12px}.gx-kpi strong{font-size:23px}.gx-top label{min-width:0}.gx-top .btn{padding:8px}.gx-strip{gap:16px}.gx-header .gx-actions{width:100%}}

.golden-v21 .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.golden-v21 .btn{background:var(--surface);color:var(--ink);border-color:var(--line)}.golden-v21 .btn.dark{background:#132644;color:#fff;border-color:#132644}.golden-v21 .btn.pri{background:#F7B500;color:#0B1A2E;border-color:#F7B500}.golden-v21 .pay-amount,.golden-v21 .pay-action strong,.golden-v21 .pay-total strong{color:var(--ink)}.golden-v21 .pay-card p,.golden-v21 .hint,.golden-v21 .sub{color:var(--mut)}.golden-v21.gx-dark .gold-kpi strong,.golden-v21.gx-dark .gold-panel h2,.golden-v21.gx-dark .gold-rates strong{color:var(--ink)}.golden-v21.gx-dark .gold-total{background:#132644}.golden-v21.gx-dark .gold-total strong{color:#F7B500}
/* Override the legacy shell's !important mobile header, not business components. */
body.golden-v21 .mobile-top,body.golden-v21 .mobile-nav{display:none!important}
body.golden-v21 .gx-mobile-menu{display:none}
@media(max-width:800px){body.golden-v21 .gx-mobile-menu{display:inline-flex}}
.gx-top label{position:relative}.gx-searchresults{position:absolute;top:calc(100% + 8px);left:0;width:min(520px,calc(100vw - 100px));z-index:80;max-height:360px;overflow:auto;background:var(--surface);border:1px solid var(--line);box-shadow:0 12px 32px #0b1a2e25;padding:14px;border-radius:10px}.gx-searchresults strong{display:block;font-size:12px;color:var(--mut);margin:8px 0}.gx-searchresults .btn{display:block;width:100%;text-align:left;white-space:normal;margin:5px 0;overflow-wrap:anywhere}

/* Mobile parity: presentation only. Desktop and financial values are preserved. */
.gx-mobile-brand,.gx-search-toggle,.gx-phone-label,.gx-deal-cards,.gx-stage-tabs{display:none}
.gx-local-search{flex:1}
.gx-filter label{min-width:0;display:flex;align-items:center;gap:8px}
.gx-filter select{max-width:100%}
.gx-bottom-nav a{touch-action:manipulation}
@media(min-width:768px) and (max-width:1023px){
  .gx-kpis{gap:12px}.gx-header h1{font-size:24px}.gx-card{padding:16px}
  .gx-filter{display:grid;grid-template-columns:minmax(0,2fr) repeat(2,minmax(0,1fr))}
  .gx-filter label{display:grid;gap:5px}.gx-filter input,.gx-filter select{width:100%}
}
@media(max-width:767px){
  body.golden-v21{--gx-nav-height:66px;font-size:14px}
  body.golden-v21 #main{padding-bottom:calc(var(--gx-nav-height) + env(safe-area-inset-bottom,0px))}
  body.golden-v21 #view{padding:14px 14px 18px}
  .golden-v21 .gx-top{position:sticky;top:env(safe-area-inset-top,0px);z-index:32;min-height:54px;padding:5px 10px;gap:6px;background:#0B1A2E;color:#fff}
  .gx-mobile-brand{display:flex;align-items:center;gap:8px;flex:1;color:#fff;font-size:16px;font-weight:800;letter-spacing:.02em;text-decoration:none}
  .gx-mobile-brand .cube{width:20px;height:20px;border-radius:5px}
  .golden-v21 .gx-top .btn{width:44px;height:44px;min-height:44px;padding:0;background:transparent;border:0;color:#fff;justify-content:center;font-size:20px;flex:none}
  .golden-v21 .gx-top [data-act=logout]{display:none}
  .golden-v21 .gx-search-toggle{display:inline-flex}
  .golden-v21 .gx-top .gx-global-search{display:none}
  .golden-v21.gx-search-open .gx-top{flex-wrap:wrap}
  .golden-v21.gx-search-open .gx-global-search{display:block;flex-basis:100%;order:5;max-width:none;padding-bottom:5px}
  .gx-searchresults{width:100%;max-height:55dvh}
  .gx-header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:8px;margin-bottom:14px}
  .gx-header h1{font-size:21px;line-height:1.2;letter-spacing:-.025em;overflow-wrap:anywhere}
  .gx-header p{font-size:12px;line-height:1.4;margin:5px 0 0}
  .gx-header .gx-actions{display:contents;width:auto;margin:0}
  .gx-header .gx-actions>.gx-muted{grid-column:1/-1;grid-row:2;display:flex;align-items:center;gap:8px;font-size:11px}
  .gx-header .gx-actions>.btn{grid-column:2;grid-row:1;align-self:start;min-height:44px;padding:8px 10px;font-size:12px;white-space:nowrap}
  .gx-header #gx-period{width:150px;min-height:38px;padding:6px 9px;font-size:16px}
  .gx-desktop-label{display:none}.gx-phone-label{display:inline}
  .gx-card{padding:13px;border-radius:12px;margin-bottom:12px}
  .gx-card h2{font-size:15px;margin-bottom:12px;line-height:1.3}
  .gx-card h3{font-size:14px}.gx-kpis{gap:8px;margin-bottom:12px}
  .gx-kpi{padding:11px 12px;margin:0}
  .gx-kpi small{font-size:11px;line-height:1.3;min-height:28px}
  .gx-kpi strong{font-size:21px;line-height:1.1;margin:5px 0;font-variant-numeric:tabular-nums}
  .gx-kpi p{font-size:10px;line-height:1.3}
  .gx-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px;padding:12px}
  .gx-strip small{font-size:10px}.gx-strip strong{font-size:16px}
  .gx-split{gap:0}.gx-empty{padding:22px 8px;font-size:13px}
  .gx-chart{height:180px}.gx-legend{font-size:11px;gap:10px}
  .gx-filter{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:10px}
  .gx-filter label{display:grid;gap:4px;font-size:11px;font-weight:600;min-width:0}
  .gx-filter .gx-local-search{grid-column:1/-1}
  .gx-filter input,.gx-filter select{width:100%;max-width:100%;height:44px;font-size:16px;padding:8px;border-radius:8px;min-width:0}
  .gx-stage-tabs{display:flex;gap:6px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;padding:3px 2px 9px;scroll-padding-inline:2px;margin-bottom:8px;-webkit-overflow-scrolling:touch}
  .gx-stage-tabs::-webkit-scrollbar{display:none}
  .gx-stage-tabs button{flex:none;white-space:nowrap;scroll-snap-align:start;border:1px solid var(--line);border-radius:20px;background:var(--surface);color:var(--mut);font-size:12px;padding:8px 12px;min-height:44px}
  .gx-stage-tabs button[aria-pressed=true]{background:var(--ink);color:var(--surface);border-color:var(--ink)}
  .gx-deal-desktop{display:none}.gx-deal-cards{display:block}
  .gx-deal-row{display:block;width:100%;border:0;border-bottom:1px solid var(--line);padding:12px 0;background:transparent;color:var(--ink);text-align:left;min-height:88px;touch-action:manipulation}
  .gx-deal-row:first-child{padding-top:0}.gx-deal-row:last-child{border-bottom:0;padding-bottom:0}
  .gx-row-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:start}
  .gx-row-heading>strong{font-size:14px;line-height:1.3;overflow-wrap:anywhere}
  .gx-row-money{font-size:15px;font-weight:750;white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums}
  .gx-row-money small{display:block;font-size:10px;color:var(--mut);font-weight:400}
  .gx-row-service{display:block;font-size:12px;color:var(--mut);margin:3px 0 7px;overflow-wrap:anywhere}
  .gx-row-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:11px;color:var(--mut)}
  .gx-row-meta>span:last-child{min-width:0;overflow-wrap:anywhere}.gx-badge{font-size:10px;padding:3px 6px}
  .gx-board{grid-template-columns:1fr;gap:8px}
  .gx-column{padding:10px;border-radius:10px}.gx-column h2{font-size:13px;margin:0}
  .gx-column>.gx-muted{font-size:11px;margin:4px 0 0}.gx-tile{padding:11px;margin:8px 0 0}.gx-tile small{margin-top:4px}
  .gx-table tr{padding:12px 0}.gx-table td{font-size:12px;padding:5px 0;gap:12px;overflow-wrap:anywhere}
  .gx-table td::before{font-size:11px;min-width:65px;flex-shrink:0}
  .gx-table td .btn,.gx-table td button{min-height:44px}
  .gx-commission-list tr,.gx-member-list tr,.gx-payout-list tr{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:10px;align-items:start}
  .gx-commission-list td,.gx-member-list td,.gx-payout-list td{display:block;text-align:left;min-width:0;padding:3px 0}
  .gx-commission-list td::before,.gx-member-list td::before,.gx-payout-list td::before{display:none}
  .gx-commission-list td:nth-child(3){grid-column:1;grid-row:1;font-size:14px}
  .gx-line-kind{display:block;color:var(--mut);font-size:10px;text-transform:uppercase;letter-spacing:.05em}
  .gx-commission-list td:nth-child(3) small{color:var(--ink);font-size:13px;margin-top:3px}
  .gx-commission-list td:nth-child(4){grid-column:2;grid-row:1;text-align:right;font-size:17px;white-space:nowrap}
  .gx-commission-list td:nth-child(1){grid-row:2;grid-column:2;text-align:right;font-size:11px;color:var(--mut)}
  .gx-commission-list td:nth-child(5){grid-row:2;grid-column:1}
  .gx-commission-list td:nth-child(2){grid-column:1/-1;grid-row:3;font-size:11px;color:var(--mut)}
  .gx-commission-list td:nth-child(6){grid-column:1/-1;display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px}
  .gx-commission-list td:nth-child(6):empty{display:none}
  .gx-member-list td:first-child{grid-column:1;grid-row:1;font-size:14px}
  .gx-member-list td:first-child small{font-size:11px;overflow-wrap:anywhere}
  .gx-member-list td:nth-child(2){grid-column:1;grid-row:2}
  .gx-member-list td:nth-child(4){grid-column:2;grid-row:1}
  .gx-member-list td:nth-child(3){grid-column:1;grid-row:3;font-size:11px;color:var(--mut)}
  .gx-member-list td:nth-child(5){grid-column:2;grid-row:2/4;align-self:end}
  .gx-payout-list td:nth-child(2){grid-row:1;grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;font-size:18px;gap:8px}
  .gx-payout-list td:nth-child(1){grid-row:2;color:var(--mut)}
  .gx-payout-list td:nth-child(3){grid-row:2;text-align:right;color:var(--mut)}
  .gx-payout-list td:nth-child(4){grid-column:1/-1}.gx-payout-list td:nth-child(5){grid-column:1/-1;text-align:right}
  body.golden-v21 .gx-bottom-nav{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));height:calc(var(--gx-nav-height) + env(safe-area-inset-bottom,0px));padding:5px max(4px,env(safe-area-inset-right,0px)) calc(5px + env(safe-area-inset-bottom,0px)) max(4px,env(safe-area-inset-left,0px));background:var(--surface);border-top:1px solid var(--line);z-index:30}
  .gx-bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:54px;min-width:0;color:var(--mut);text-decoration:none;font-size:10px;font-weight:550;line-height:1.2}
  .gx-bottom-nav a i{display:block;width:18px;height:3px;border-radius:3px;background:transparent}
  .gx-bottom-nav a[aria-current=page]{color:var(--ink);font-weight:750}.gx-bottom-nav a[aria-current=page] i{background:#F7B500}
  body.golden-v21.kb .gx-bottom-nav,body.golden-v21.gx-menu .gx-bottom-nav{display:none!important}
  .golden-v21 .side{padding-top:calc(12px + env(safe-area-inset-top,0px))!important;padding-bottom:calc(12px + env(safe-area-inset-bottom,0px))!important}
  .golden-v21 .nav a{min-height:44px}
  .golden-v21 .drawer{top:auto;bottom:max(0px,calc(100dvh - var(--vvt,0px) - var(--vvh,100dvh)));width:100%;height:min(94dvh,var(--vvh,94dvh));max-width:none;border-radius:16px 16px 0 0;transform:translateY(102%);padding-top:0;z-index:90}
  .golden-v21 .drawer.show{transform:none}
  .golden-v21 .scrim{z-index:85}
  .golden-v21 .dr-h{padding:12px 14px 10px;align-items:center;min-height:60px;gap:10px}
  .golden-v21 .dr-h h3{font-size:18px;line-height:1.25;min-width:0;overflow-wrap:anywhere}
  .golden-v21 .dr-h .btn{flex-shrink:0;min-height:44px;padding:8px 10px}
  .golden-v21 .dr-b{padding:14px;scroll-padding-bottom:76px}
  .golden-v21 .dr-f{padding:10px 14px;gap:8px}
  .golden-v21 .dr-f>.btn{flex:1;min-height:44px}
  .gx-form{gap:12px}.gx-form input,.gx-form select,.gx-form textarea{font-size:16px;min-height:44px;width:100%}
  .gx-form input[type=checkbox]{width:20px;height:20px;min-height:20px;flex:none}
  .gx-form label:has(input[type=checkbox]){display:flex;align-items:center;gap:10px;min-height:44px}
  .gx-form>.gx-actions:last-child,#pay-confirm>.fin-actions:last-child{position:sticky;bottom:-14px;background:var(--surface);border-top:1px solid var(--line);padding:10px 0;margin-bottom:-14px;z-index:2;display:flex;flex-wrap:nowrap}
  .gx-form>.gx-actions:last-child>.btn{flex:1;min-height:44px}
  .gx-values{gap:4px}.gx-values dd{margin:2px 0 10px}.gx-actions{gap:6px}
  .gx-actions>.btn{min-height:44px;font-size:12px;padding:8px 10px;white-space:normal}
  .golden-v21 .fin-tabs{flex-wrap:nowrap;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;padding:3px 1px 8px;gap:6px}
  .golden-v21 .fin-tabs>.btn{white-space:nowrap;flex:none;min-height:44px;scroll-snap-align:start;padding:8px 10px;font-size:12px}
  .golden-v21 .pay-section,.golden-v21 .panel{padding:13px}
  .golden-v21 .pay-section>h2{font-size:16px}.golden-v21 .pay-section>p{font-size:12px}
  .golden-v21 .pay-card{padding:12px}.golden-v21 .pay-card h3{font-size:15px}.golden-v21 .pay-card p{font-size:12px;overflow-wrap:anywhere}
  .golden-v21 .pay-total strong{font-size:21px}.golden-v21 .pay-card footer .btn{min-height:44px}
  .golden-v21 .pay-history td{font-size:12px;overflow-wrap:anywhere}
  .golden-v21 .pay-history td[data-label=Montant]{font-size:18px}
  .golden-v21 .pay-history td[data-label=Référence]{white-space:normal}
  .golden-v21 .dr-b p,.golden-v21 .dr-b summary{overflow-wrap:anywhere}
  .golden-v21 .dr-b summary{min-height:44px;padding:8px 0}
  .golden-v21 .toast{bottom:calc(var(--gx-nav-height) + env(safe-area-inset-bottom,0px) + 10px)}
}
@media(max-width:430px){
  body.golden-v21 #view{padding:12px 12px 16px}
  .gx-header h1{font-size:20px}.gx-header{gap:6px;margin-bottom:12px}
  .gx-card{padding:12px}.gx-kpi{padding:10px}.gx-kpi strong{font-size:20px}
  .gx-strip{gap:9px 12px}.gx-table td{gap:8px}
}
@media(min-width:431px) and (max-width:767px){
  .gx-header h1{font-size:23px}.gx-kpi strong{font-size:24px}
  .gx-deal-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}
  .gx-deal-row:first-child{padding-top:12px}.gx-deal-row:last-child{padding-bottom:12px}
  .gx-board{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(prefers-reduced-motion:reduce){.golden-v21 .drawer{transition:none}}
.gx-paid-label{display:none}
@media(max-width:767px){
  /* Keep the useful greeting; the repeated generic helper does not earn mobile space. */
  #view:not([data-page=dashboard]):not([data-page=primes]) .gx-header-help{display:none}
  .gx-filter input,.gx-filter select{font-weight:400}
  .gx-deal-values>div:nth-child(n+5){order:-1}
  .golden-v21 .pay-history,.golden-v21 .pay-history tbody{display:block;width:100%}
  .golden-v21 .pay-history caption{display:block;width:100%;text-align:left;font-size:11px;margin:10px 0}
  .golden-v21 .pay-history tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 10px;padding:12px 0;border-bottom:1px solid var(--line)}
  .golden-v21 .pay-history td{display:block;padding:3px 0;text-align:left;border:0;min-width:0}
  .golden-v21 .pay-history td::before{display:none}
  .golden-v21 .pay-history td[data-label=Montant]{grid-row:1;grid-column:1/-1;display:flex;justify-content:space-between;align-items:center}
  .gx-paid-label{display:inline-block;font-size:10px;font-weight:600;border-radius:6px;padding:3px 7px;background:#E4F2EA;color:#1D6F47}
  .golden-v21 .pay-history td[data-label=Date]{grid-row:2;grid-column:1;color:var(--mut)}
  .golden-v21 .pay-history td[data-label=Mode]{grid-row:2;grid-column:2;text-align:right;color:var(--mut)}
  .golden-v21 .pay-history td[data-label=Bénéficiaire]{grid-row:3;grid-column:1/-1}
  .golden-v21 .pay-history td[data-label=Période]{grid-row:4;grid-column:1/-1;font-size:11px;color:var(--mut)}
  .golden-v21 .pay-history td[data-label=Référence]{grid-row:5;grid-column:1/-1;font-size:11px;color:var(--mut)}
  .golden-v21 .pay-history td[data-label=Détail]{grid-row:6;grid-column:1/-1;text-align:right}
  #pay-confirm>.fin-tabs:last-child,#fin-form>button[type=submit]{position:sticky;bottom:-14px;background:var(--surface);padding:10px 0;margin-bottom:-14px;border-top:1px solid var(--line);z-index:2}
  #pay-confirm>.fin-tabs:last-child{display:flex;flex-wrap:wrap}#pay-confirm>.fin-tabs:last-child .btn{flex:1;white-space:normal}
  #fin-form>button[type=submit]{background:var(--accent);width:100%;min-height:44px;padding:10px}
}
.gx-table .gx-member-activity{display:none}
@media(max-width:767px){
  .gx-table .gx-member-activity{display:block;margin-top:6px;font-size:11px}
  .golden-v21 .gx-top::before{content:"";position:absolute;inset-inline:0;bottom:100%;height:env(safe-area-inset-top,0px);background:#0B1A2E}
}
@media(max-width:767px){
  .golden-v21 .btn{min-height:44px}
  .gx-header #gx-period{width:180px}
  .golden-v21 .gx-top [data-gx=theme]{font-size:20px}
}
/* Keep long client names from squeezing amounts and status words on desktop. */
@media(min-width:1024px){
  .gx-deal-desktop .gx-table{table-layout:fixed}
  .gx-deal-desktop th:nth-child(1){width:30%}
  .gx-deal-desktop th:nth-child(2){width:18%}
  .gx-deal-desktop th:nth-child(3){width:11%}
  .gx-deal-desktop th:nth-child(4),.gx-deal-desktop th:nth-child(5){width:13%}
  .gx-deal-desktop th:nth-child(6){width:15%}
  .gx-deal-desktop td:nth-child(4),.gx-deal-desktop td:nth-child(5){white-space:nowrap;font-variant-numeric:tabular-nums}
  .gx-deal-desktop .gx-badge{overflow-wrap:normal;word-break:normal}
}
