/* Compact financial workspace. 4px spacing base, warm surfaces and clear hierarchy. */
:root{--canvas:#f5f6f8;--surface:#fff;--ink:#222b37;--muted:#5c6878;--line:#dfe4eb;--accent:#215e49;--rail:204px;--panel-radius:12px;color:var(--ink);background:var(--canvas);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body.dashboard-shell{background:var(--canvas);color:var(--ink)}.dashboard-shell .topbar{position:sticky;top:0;z-index:15;margin-left:var(--rail);height:60px;border-bottom:1px solid var(--line);background:#fff}.dashboard-shell .topbar-inner{max-width:none;margin:0;padding:10px 28px;height:60px}.dashboard-shell .company-name{font-size:14px;font-weight:600;color:var(--ink)}.dashboard-shell .languages{background:transparent;padding:0;gap:2px}.dashboard-shell .languages button{min-height:32px;min-width:36px;border-radius:5px;padding:5px 8px;color:var(--muted);font-size:11px}.dashboard-shell .languages button[aria-pressed=true]{background:#edf3ef;color:#174e39;box-shadow:none}
.workspace-rail{position:fixed;inset:0 auto 0 0;width:var(--rail);border-right:1px solid var(--line);background:#fff;display:flex;flex-direction:column;z-index:25}.rail-brand{height:60px;display:flex;align-items:center;padding:0 20px;border-bottom:1px solid var(--line);font-weight:650;font-size:14px;letter-spacing:-.02em;color:#24372e}.rail-company-slot{padding:20px 12px 16px}.workspace-rail .company-controls{display:grid;grid-template-columns:1fr auto;max-width:none;width:100%;margin:0;padding:0;gap:8px;background:transparent;border:0}.workspace-rail .company-controls label{display:block;grid-column:1/-1;font-size:11px;color:var(--muted);font-weight:500}.workspace-rail .company-picker-shell{grid-column:1/-1;min-width:0}.workspace-rail .company-controls select{width:100%;height:38px;border-radius:6px;min-height:38px;border:1px solid var(--line);background:#f8f9fa;padding:7px 28px 7px 9px;font-size:12px;font-weight:550;color:var(--ink)}.workspace-rail .company-controls button{min-height:32px;font-size:11px;padding:6px 8px;border:1px solid var(--line);border-radius:6px;background:white;color:var(--muted);box-shadow:none}.workspace-rail .company-controls button:hover{background:#f2f5f6;color:var(--ink)}.workspace-navigation{display:flex;flex-direction:column;gap:4px;padding:12px}.workspace-navigation button{display:flex;align-items:center;gap:10px;min-height:44px;padding:10px;border:0;border-radius:6px;background:transparent;text-align:left;font-size:12px;font-weight:500;line-height:1.5;color:#536172}.workspace-navigation button img{width:18px;height:18px;opacity:.65;flex-shrink:0}.workspace-navigation button:hover{background:#f5f6f8;color:var(--ink)}.workspace-navigation button[aria-current=page]{background:#eaf2ed;color:#174d38;font-weight:650}.workspace-navigation button[aria-current=page] img{opacity:1}.workspace-navigation button:disabled{opacity:.45;cursor:default}.rail-foot{margin-top:auto;padding:20px 16px;font-size:11px;color:var(--muted);line-height:1.6;border-top:1px solid var(--line)}
.dashboard-shell main{max-width:1600px;width:calc(100% - var(--rail));margin:0 0 0 var(--rail);padding:24px 28px 20px;display:grid;grid-template-columns:minmax(250px,.85fr) minmax(0,2fr);gap:16px;align-items:stretch}.dashboard-shell main>.intro,.dashboard-shell main>#numbers,.dashboard-shell main>#attention,.dashboard-shell main>#details,.dashboard-shell main>.workspace-auxiliary,.dashboard-shell main>.footer,.dashboard-shell main>.welcome{grid-column:1/-1}.dashboard-shell main>.surface{margin:0;border:1px solid var(--line);border-radius:var(--panel-radius);padding:20px;background:var(--surface);box-shadow:none;min-width:0}.dashboard-shell h1{font-size:22px;line-height:1.3;font-weight:600;letter-spacing:-.025em;margin:0 0 6px}.dashboard-shell h2{font-size:14px;font-weight:600;letter-spacing:-.015em;line-height:1.5}.dashboard-shell h3{font-size:14px;font-weight:600;letter-spacing:-.015em;line-height:1.5}.dashboard-shell .intro{margin:0 0 4px;min-height:68px;align-items:center;gap:16px}.workspace-identity{display:inline;font-size:11px;color:var(--muted);line-height:1.5}.dashboard-shell .intro .muted{display:inline;font-size:11px;margin:0 0 0 12px;color:var(--muted)}.dashboard-shell .primary-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:40px;padding:10px 14px;border-radius:7px;font-size:12px;font-weight:550;line-height:1.5;background:var(--accent);border:1px solid var(--accent);box-shadow:none}.dashboard-shell .primary-button img{filter:brightness(0) invert(1);width:16px;height:16px;flex-shrink:0}.dashboard-shell .primary-button:hover{background:#174b39}.dashboard-shell .section-heading{margin:0 0 20px;gap:12px;align-items:center}.dashboard-shell .period-caption{font-size:11px;color:var(--muted)}.dashboard-shell .text-link{font-size:11px;color:#245a48;line-height:1.5;text-underline-offset:3px}.dashboard-shell .label{font-size:12px;font-weight:400;color:var(--muted);line-height:1.5}.dashboard-shell .hero-number{font-size:28px;font-weight:600;letter-spacing:-.03em;line-height:1.3;font-variant-numeric:tabular-nums;margin:12px 0 20px}.dashboard-shell .brief{color:var(--muted);font-size:12px;line-height:1.55}
/* Revenue sits alongside withdrawal decisions, rather than occupying a hero section. */
.dashboard-shell .revenue-panel{border-top:1px solid var(--line);display:flex;flex-direction:column}.dashboard-shell .revenue-panel .section-heading{flex-wrap:wrap;gap:4px;margin-bottom:24px}.dashboard-shell .revenue-panel .period-caption{width:100%}.dashboard-shell .revenue-grid{display:flex;flex-direction:column;align-items:stretch;gap:0}.dashboard-shell .revenue-main .hero-number{font-size:30px;margin:12px 0 10px}.dashboard-shell .revenue-main .brief{font-size:11px;line-height:1.5;margin:0}.dashboard-shell .delta{display:block;width:fit-content;margin:8px 0 0;background:#ecf4ef;color:#285c43;font-size:11px;border-radius:4px;padding:3px 6px;letter-spacing:0}.dashboard-shell .delta.negative{color:#903c30;background:#faf0ed}.dashboard-shell .revenue-previous{padding:20px 0 0;margin-top:20px;border:0;border-top:1px solid var(--line)}.dashboard-shell .revenue-previous strong{font-size:22px;font-weight:550;letter-spacing:-.02em;margin:10px 0 6px}.dashboard-shell .revenue-previous .brief{font-size:11px;margin:0}.dashboard-shell .revenue-breakdown{margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}.dashboard-shell .revenue-breakdown summary{font-size:11px;line-height:1.6;min-height:32px}.dashboard-shell .revenue-breakdown th,.dashboard-shell .revenue-breakdown td{padding:8px 4px;font-size:11px}.dashboard-shell .revenue-breakdown th:first-child{font-weight:500}
/* A single divided panel replaces nested cards. */
.dashboard-shell .overview{display:flex;flex-direction:column}.dashboard-shell .withdrawal-panels{grid-template-columns:1fr 1fr;gap:0;flex:1}.dashboard-shell .withdrawal-card{background:transparent;box-shadow:none;border:0;border-radius:0;padding:0 20px 0 0;min-width:0}.dashboard-shell .withdrawal-card+.withdrawal-card{border-left:1px solid var(--line);padding:0 0 0 20px}.dashboard-shell .withdrawal-title{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin-bottom:16px}.dashboard-shell .withdrawal-title .state-pill{max-width:none;flex-shrink:0}.dashboard-shell .state-pill{padding:3px 7px;font-size:10px;line-height:1.6;border-radius:4px;letter-spacing:0;font-weight:550}.dashboard-shell .pending{background:#faf3e5;color:#755920}.dashboard-shell .settled{background:#eaf3ed;color:#265d42}.dashboard-shell .blocked{background:#faece7;color:#913f2c}.dashboard-shell .withdrawal-card>.label{min-height:36px}.dashboard-shell .money-line{font-size:11px;border-top:1px solid var(--line);padding-top:12px;margin-bottom:12px;gap:12px;min-height:46px;line-height:1.6;align-items:flex-start}.dashboard-shell .money-line span{max-width:58%}.dashboard-shell .money-line b{font-size:12px;font-weight:600;white-space:normal;text-align:right}.dashboard-shell .withdrawal-card .brief{font-size:12px;line-height:1.55;margin-bottom:14px}.dashboard-shell .withdrawal-card .text-link{padding-top:4px}.overview-assumptions{border-top:1px solid var(--line);padding-top:12px;margin-top:16px}.overview-assumptions summary{font-size:11px;color:var(--muted);min-height:24px;line-height:1.6;cursor:pointer}.dashboard-shell .overview-note{font-size:11px;line-height:1.6;color:var(--muted);margin:10px 0 0}.dashboard-shell .pfa-money-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:0;flex:1}.dashboard-shell .pfa-money-grid .fact{padding:0 16px;border:0;border-radius:0;background:transparent;box-shadow:none}.dashboard-shell .pfa-money-grid .fact:first-child{padding-left:0}.dashboard-shell .pfa-money-grid .fact+.fact{border-left:1px solid var(--line)}.dashboard-shell .pfa-money-grid .fact:last-child{padding-right:0}.dashboard-shell .pfa-money-grid .fact .label{min-height:40px}.dashboard-shell .pfa-money-grid .fact .value{font-size:26px;margin:16px 0 12px}.dashboard-shell .pfa-money-grid .fact .brief{font-size:12px;margin:0;line-height:1.6}
/* Compact key figures, without a separate card around every value. */
.dashboard-shell #numbers .section-heading{margin-bottom:16px}.dashboard-shell .facts-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border-top:1px solid var(--line)}.dashboard-shell .facts-grid .fact{padding:16px 16px 12px 0;border:0;border-radius:0;background:transparent;box-shadow:none;min-width:0}.dashboard-shell .facts-grid .fact:nth-child(n+5){border-top:1px solid var(--line)}.dashboard-shell .facts-grid .fact .label{font-size:12px;font-weight:400;line-height:1.5;min-height:36px;color:var(--muted)}.dashboard-shell .fact .value{font-size:23px;letter-spacing:-.025em;line-height:1.4;font-weight:600;font-variant-numeric:tabular-nums;margin:8px 0 0;overflow-wrap:anywhere}.dashboard-shell .fact .unit{display:inline;font-size:10px;font-weight:450;letter-spacing:0;color:var(--muted)}.dashboard-shell .fact .brief{font-size:11px;margin:8px 0 0}.dashboard-shell .attention{padding:14px 20px;margin:0;border:1px solid #ebdfc8;border-radius:8px;background:#fdf8ef}.dashboard-shell .attention strong{font-size:12px}.dashboard-shell .attention p{font-size:11px}.dashboard-shell .footer{margin:0;text-align:left;font-size:10px;line-height:1.6;color:var(--muted)}
/* Navigation changes presentation only; the original forms, text and handlers remain. */
.dashboard-shell main[data-pane=overview]>#details,.dashboard-shell main[data-pane=overview]>.workspace-auxiliary{display:none}.dashboard-shell main[data-pane=details]>:is(#revenue,#overview,#numbers,#attention,.workspace-auxiliary),.dashboard-shell main[data-pane=history]>:is(#revenue,#overview,#numbers,#attention,#details,#transactions-view),.dashboard-shell main[data-pane=transactions]>:is(#revenue,#overview,#numbers,#attention,#details,#history-view){display:none}.dashboard-shell .workspace-replaced-navigation{display:none!important}.dashboard-shell .workspace-auxiliary>h2{margin-bottom:20px}.dashboard-shell .workspace-auxiliary>details>summary{font-weight:500;font-size:12px;cursor:pointer}.dashboard-shell .details-area h2{margin-bottom:8px}.dashboard-shell .details-area details{padding:16px 0;border-bottom:1px solid var(--line)}.dashboard-shell .details-area summary{font-weight:500;font-size:13px;min-height:32px;line-height:1.6;cursor:pointer}.dashboard-shell .details-body{font-size:12px;line-height:1.7;color:#4e5b69;max-width:none}.dashboard-shell .details-body p{max-width:78ch}.dashboard-shell .row{font-size:12px}.dashboard-shell .pfa-form-grid{max-width:900px}.dashboard-shell .review-confirm{max-width:100ch}.dashboard-shell th{font-weight:550}.dashboard-shell .table-wrap{max-width:100%}.dashboard-shell #transaction-table{min-width:580px}.dashboard-shell #review-save-error:empty{display:none}.dashboard-shell .welcome{max-width:680px;width:100%;margin:50px auto!important;padding:32px!important}.dashboard-shell .welcome h1{font-size:24px}.dashboard-shell .welcome .tag{font-size:10px}.dashboard-shell ::selection{background:#dcebe1;color:#163d2d}.dashboard-shell input{caret-color:var(--accent)}.dashboard-shell :focus-visible{outline:2px solid #326e9b;outline-offset:3px}.dashboard-shell h1:focus{outline:none}
@media(min-width:1800px){.dashboard-shell main{grid-template-columns:minmax(280px,.85fr) minmax(0,2fr);margin-left:var(--rail);max-width:calc(100% - var(--rail))}}
@media(max-width:1200px){:root{--rail:184px}.dashboard-shell main{padding:20px;gap:14px;grid-template-columns:minmax(220px,.8fr) minmax(0,1.6fr)}.dashboard-shell main>.surface{padding:18px}.dashboard-shell .hero-number,.dashboard-shell .revenue-main .hero-number{font-size:25px}.dashboard-shell .withdrawal-card{padding-right:14px}.dashboard-shell .withdrawal-card+.withdrawal-card{padding-left:14px}.dashboard-shell .fact .value{font-size:21px}.workspace-navigation button{font-size:11px;gap:8px}.rail-brand{padding:0 16px;font-size:13px}.dashboard-shell .pfa-money-grid{grid-template-columns:1fr;gap:0}.dashboard-shell .pfa-money-grid .fact,.dashboard-shell .pfa-money-grid .fact:first-child,.dashboard-shell .pfa-money-grid .fact:last-child{padding:14px 0;border:0}.dashboard-shell .pfa-money-grid .fact+.fact{border-top:1px solid var(--line)}.dashboard-shell .pfa-money-grid .fact .label{min-height:0}.dashboard-shell .pfa-money-grid .fact .value{font-size:24px;margin:8px 0}.dashboard-shell .pfa-money-grid .fact .brief{font-size:11px}}
@media(max-width:960px){:root{--rail:172px}.dashboard-shell main{grid-template-columns:1fr}.dashboard-shell main>.surface{grid-column:1}.dashboard-shell .revenue-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.dashboard-shell .revenue-panel .section-heading{margin-bottom:16px;flex-wrap:nowrap}.dashboard-shell .revenue-panel .period-caption{width:auto}.dashboard-shell .revenue-previous{margin:0;padding:0 0 0 20px;border-top:0;border-left:1px solid var(--line)}.dashboard-shell .revenue-breakdown{margin-top:16px}.dashboard-shell .withdrawal-title{flex-direction:row;flex-wrap:wrap}.dashboard-shell .pfa-money-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-shell .pfa-money-grid .fact,.dashboard-shell .pfa-money-grid .fact:first-child,.dashboard-shell .pfa-money-grid .fact:last-child{padding:0 12px;border:0}.dashboard-shell .pfa-money-grid .fact:first-child{padding-left:0}.dashboard-shell .pfa-money-grid .fact+.fact{border-left:1px solid var(--line)}.dashboard-shell .pfa-money-grid .fact:last-child{padding-right:0}.dashboard-shell .facts-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-shell .facts-grid .fact:nth-child(n+3){border-top:1px solid var(--line)}}
@media(max-width:700px){.dashboard-shell .topbar{margin-left:0;height:56px}.dashboard-shell .topbar-inner{height:56px;padding:10px 16px}.dashboard-shell .company-name{max-width:calc(100% - 120px);font-size:12px;overflow-wrap:anywhere}.workspace-rail{position:static;width:100%;border-right:0;border-bottom:1px solid var(--line);display:flex}.rail-brand,.rail-foot{display:none}.rail-company-slot{padding:12px 16px 8px}.workspace-rail .company-controls{grid-template-columns:minmax(0,1fr) auto auto;gap:8px}.workspace-rail .company-controls label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.workspace-rail .company-picker-shell{grid-column:1}.workspace-rail .company-controls select{height:40px;min-height:40px}.workspace-rail .company-controls button{min-height:40px;font-size:11px}.workspace-navigation{flex-direction:row;gap:4px;padding:4px 12px 8px;overflow-x:auto}.workspace-navigation button{min-height:44px;gap:6px;padding:9px 10px;flex-shrink:0;font-size:11px;white-space:nowrap}.workspace-navigation button img{width:16px;height:16px}.dashboard-shell main{margin:0;width:100%;padding:20px 14px 24px;gap:14px}.dashboard-shell main>.surface{padding:18px}.dashboard-shell .intro{align-items:stretch;gap:16px;margin:0}.dashboard-shell h1{font-size:21px}.dashboard-shell .intro .muted{display:block;margin:5px 0 0}.dashboard-shell .primary-button{min-height:44px}.dashboard-shell .hero-number,.dashboard-shell .revenue-main .hero-number{font-size:27px}.dashboard-shell .revenue-previous strong{font-size:20px}.dashboard-shell .revenue-panel .section-heading{flex-wrap:wrap}.dashboard-shell .revenue-panel .period-caption{width:auto}.dashboard-shell .withdrawal-panels{grid-template-columns:1fr;gap:20px}.dashboard-shell .withdrawal-card{padding:0}.dashboard-shell .withdrawal-card+.withdrawal-card{padding:20px 0 0;border-left:0;border-top:1px solid var(--line)}.dashboard-shell .withdrawal-card>.label{min-height:0}.dashboard-shell .withdrawal-title{gap:8px;margin-bottom:12px;flex-direction:row;justify-content:space-between;align-items:center}.dashboard-shell .withdrawal-title .state-pill{max-width:155px}.dashboard-shell .withdrawal-card .brief{font-size:12px}.dashboard-shell .money-line{font-size:12px;min-height:0;gap:12px}.dashboard-shell .money-line b{font-size:12px}.dashboard-shell .overview-note{font-size:11px}.dashboard-shell .pfa-money-grid{grid-template-columns:1fr}.dashboard-shell .pfa-money-grid .fact,.dashboard-shell .pfa-money-grid .fact:first-child,.dashboard-shell .pfa-money-grid .fact:last-child{padding:14px 0;border:0}.dashboard-shell .pfa-money-grid .fact+.fact{border-top:1px solid var(--line)}.dashboard-shell .pfa-money-grid .fact .label{min-height:0}.dashboard-shell .pfa-money-grid .fact .value{font-size:26px;margin:8px 0}.dashboard-shell .facts-grid .fact{padding:14px 12px 14px 0}.dashboard-shell .facts-grid .fact .label{font-size:12px}.dashboard-shell .fact .value{font-size:22px}.dashboard-shell .unit{white-space:normal}.dashboard-shell .section-heading{flex-direction:row;align-items:baseline;gap:8px}.dashboard-shell .section-heading h2{font-size:14px}.dashboard-shell .text-link{font-size:11px}.dashboard-shell .details-area summary{display:list-item}.dashboard-shell .row b{max-width:48%}.dashboard-shell .welcome{margin:12px auto!important;padding:24px!important}.dashboard-shell .footer{font-size:10px}}
@media(max-width:360px){.dashboard-shell main{padding:16px 10px}.dashboard-shell main>.surface{padding:16px}.dashboard-shell .revenue-grid{grid-template-columns:1fr}.dashboard-shell .revenue-previous{padding:16px 0 0;margin-top:4px;border-left:0;border-top:1px solid var(--line)}.dashboard-shell .workspace-navigation button{font-size:10px}.dashboard-shell .fact .value{font-size:20px}}
@media(prefers-reduced-motion:reduce){.dashboard-shell *{scroll-behavior:auto!important}}
@media(min-width:961px){
 .dashboard-shell #numbers{padding:16px 20px}.dashboard-shell #numbers .section-heading{margin-bottom:12px}
 .dashboard-shell .facts-grid .fact{padding:10px 16px 8px 0}.dashboard-shell .facts-grid .fact .label{min-height:24px}
 .dashboard-shell .facts-grid .fact .value{font-size:22px;line-height:1.25;margin:6px 0 0}.dashboard-shell .facts-grid .fact .brief{font-size:11px;line-height:1.5;margin-top:6px}
 .dashboard-shell .overview .section-heading{margin-bottom:16px}.dashboard-shell .withdrawal-title{gap:6px;margin-bottom:12px}
 .dashboard-shell .withdrawal-card>.label{min-height:30px}.dashboard-shell .withdrawal-card>.hero-number{margin:8px 0 12px}
 .dashboard-shell .money-line{padding-top:10px;margin-bottom:10px;min-height:38px}.dashboard-shell .withdrawal-card .brief{margin-bottom:10px}
 .dashboard-shell .overview-assumptions{margin-top:10px;padding-top:10px}
}
.workspace-rail .company-picker-shell::after{content:none}.workspace-rail .company-controls select{appearance:auto;background-image:none}
.dashboard-shell .workspace-auxiliary>details>summary{font-size:14px;font-weight:600;line-height:1.6;min-height:40px;padding-bottom:12px}
.dashboard-shell:has(.pfa-money-grid) .pfa-money-grid{flex:0}.dashboard-shell:has(.pfa-money-grid) .overview-assumptions{margin-top:auto}
@media(max-width:700px){
 .dashboard-shell .revenue-grid{grid-template-columns:1fr;gap:16px}.dashboard-shell .revenue-previous{padding:16px 0 0;margin:0;border-left:0;border-top:1px solid var(--line)}
 .workspace-navigation{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible;gap:4px}.workspace-navigation:has(button:nth-child(4)){grid-template-columns:repeat(2,minmax(0,1fr))}
 .workspace-navigation button{white-space:normal;min-width:0;padding:8px;line-height:1.5}.workspace-navigation button span{min-width:0;overflow-wrap:normal}
}
.dashboard-shell .company-name{min-width:0;max-width:calc(100% - 130px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dashboard-shell .languages{flex-shrink:0}
/* Geist is self-hosted, including Romanian and Hungarian diacritics. */
:root{font-family:'Geist',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-optical-sizing:auto}
.dashboard-shell button,.dashboard-shell input,.dashboard-shell select,.dashboard-shell textarea{font-family:inherit}
.dashboard-shell .hero-number,.dashboard-shell .fact .value,.dashboard-shell .revenue-previous strong{font-variant-numeric:tabular-nums;letter-spacing:-.025em}
/* One switcher surface; the original select stays as the unchanged event/data source. */
.workspace-rail .company-picker-shell{position:relative;display:block;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;outline:none}
.workspace-rail .company-picker-shell:focus-within{outline:none}
.workspace-rail .company-controls .workspace-native-company-picker{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;margin:-1px!important;padding:0!important;border:0!important;clip-path:inset(50%);overflow:hidden;opacity:0;pointer-events:none}
.workspace-rail .company-controls .company-switcher{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:64px;padding:10px 11px;text-align:left;background:white;border:1px solid #d4dce5;border-radius:8px;color:var(--ink);box-shadow:0 1px 2px #17253605}
.workspace-rail .company-controls .company-switcher:hover,.workspace-rail .company-controls .company-switcher[aria-expanded=true]{background:#f9fafb;border-color:#a9b8c8}
.company-switcher:focus-visible{outline:2px solid #326e9b!important;outline-offset:3px}.switcher-selected{display:flex;flex-direction:column;gap:5px;min-width:0}.switcher-selected strong{font-size:12px;line-height:1.4;letter-spacing:-.01em;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.switcher-selected small{font-size:10px;line-height:1.4;color:#657183;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.company-switcher img{width:16px;height:16px;opacity:.65;flex-shrink:0}.company-switcher-menu{position:fixed;inset:auto;margin:0;padding:6px;max-width:calc(100vw - 24px);overflow:auto;border:1px solid #dce2e9;border-radius:10px;background:#fff;box-shadow:0 12px 32px #1725361f;color:#222b37;font-family:'Geist',sans-serif}
.company-switcher-menu::backdrop{background:transparent}.company-switcher-menu [role=option]{display:flex;align-items:center;gap:10px;width:100%;padding:10px;min-height:58px;border:0;border-radius:6px;background:transparent;text-align:left;cursor:pointer;color:inherit;font-family:inherit}.company-switcher-menu [role=option]:hover,.company-switcher-menu [role=option]:focus-visible{background:#f1f4f7;outline:none}.company-switcher-menu [role=option][aria-selected=true]{background:#edf4ef}.company-option-initial{display:flex;align-items:center;justify-content:center;width:32px;height:32px;flex-shrink:0;border:1px solid #dce3e9;border-radius:7px;background:#f6f8fa;color:#536172;font-size:12px;font-weight:600}.company-option-text{display:flex;flex-direction:column;gap:5px;min-width:0;flex:1}.company-option-text strong{font-size:12px;font-weight:550;line-height:1.4;overflow-wrap:anywhere}.company-option-text small{font-size:11px;color:#657183;line-height:1.4}.company-switcher-menu [role=option]>img{width:16px;height:16px;flex-shrink:0;opacity:.8}.company-switcher-menu [role=option]:focus-visible{box-shadow:inset 0 0 0 2px #477a9c}
@media(max-width:700px){.workspace-rail .company-controls .company-switcher{min-height:56px;padding:8px 10px}.switcher-selected strong{font-size:11px}.switcher-selected small{font-size:9px}.workspace-rail .company-controls{align-items:center}.company-switcher-menu [role=option]{min-height:60px}}

/* Warm ivory, persimmon and cool blue. Semantic status colors remain distinct. */
:root{--canvas:#f4efe7;--surface:#fffdf9;--ink:#2b2928;--muted:#6b625b;--line:#ded7cd;--accent:#b4472e;--panel-radius:12px;--rail-ink:#29262b;--revenue-ink:#243f59}
.dashboard-shell .topbar{display:none}
.workspace-rail{background:var(--rail-ink);border-color:var(--rail-ink);color:#faf3e9}
.rail-brand{height:72px;color:#faf3e9;border-color:#ffffff1c;font-weight:600}
.workspace-rail .company-controls label{color:#c4b9ae}
.workspace-rail .company-controls{grid-template-columns:1fr}
.workspace-rail .company-controls>button{background:#3b363c;color:#f8eee3;border-color:#61565b;min-height:36px;font-size:12px}
.workspace-rail .company-controls>button:hover{background:#51454a;color:#fff}
.workspace-rail .company-controls .company-switcher{background:#fff6ec;border-color:#fff6ec;color:var(--ink);box-shadow:none}
.workspace-rail .company-controls .company-switcher:hover,.workspace-rail .company-controls .company-switcher[aria-expanded=true]{background:#ffebd9;border-color:#edb28e}
.switcher-selected small{color:#736357}
.workspace-navigation button{color:#ddd3cb;font-size:12px}
.workspace-navigation button img{filter:brightness(0) invert(1);opacity:.8}
.workspace-navigation button:hover{background:#ffffff0e;color:#fff}
.workspace-navigation button[aria-current=page]{background:#f3bb9e;color:#39251e}
.workspace-navigation button[aria-current=page] img{filter:none;opacity:1}
.rail-foot{color:#c4b9ae;border-color:#ffffff1c}
.nav-label-compact,.upload-label-compact{display:none}
.workspace-navigation .workspace-language{margin-top:24px;border-top:1px solid #ffffff26;border-radius:0;padding-top:16px}
.workspace-language-menu{position:fixed;inset:auto;margin:0;width:180px;padding:6px;border:1px solid var(--line);border-radius:10px;background:var(--surface);box-shadow:0 12px 32px #30241c26;color:var(--ink);font-family:inherit}
.workspace-language-menu::backdrop{background:transparent}
.dashboard-shell .workspace-language-menu .languages{display:flex;flex-direction:column;gap:2px;padding:0;border:0;background:transparent;border-radius:0;box-shadow:none}
.dashboard-shell .workspace-language-menu .languages button{width:100%;min-height:44px;padding:10px 12px;border:0;border-radius:6px;background:transparent;color:var(--muted);text-align:left;font-size:13px;font-weight:500}
.dashboard-shell .workspace-language-menu .languages button:hover{background:#f6ede3;color:var(--ink)}
.dashboard-shell .workspace-language-menu .languages button[aria-pressed=true]{background:#fbe0ce;color:#79361f;box-shadow:none}
.dashboard-shell main{padding-top:20px}
.dashboard-shell .primary-button:hover{background:#933922;border-color:#933922}
.dashboard-shell .text-link{color:#a33d27}
.dashboard-shell .details-body{color:#5e564e}
.dashboard-shell main>.revenue-panel{background:#dceaf3;border-color:#c8dce9;color:var(--revenue-ink)}
.dashboard-shell .revenue-panel .label,.dashboard-shell .revenue-panel .brief,.dashboard-shell .revenue-panel .period-caption,.dashboard-shell .revenue-breakdown summary{color:#496379}
.dashboard-shell .revenue-previous,.dashboard-shell .revenue-breakdown{border-color:#b9d0df}
.dashboard-shell .delta{background:#f5fafc;color:#284e69;border:1px solid #bfd4e1}
.dashboard-shell .delta.negative{color:#913b28;background:#fff0e7;border-color:#e9beab}
.dashboard-shell .settled{background:#dcece3;color:#285740}
.dashboard-shell .pending{background:#f9e9c7;color:#74521f}
.dashboard-shell .blocked{background:#fbdcd1;color:#913a27}
.dashboard-shell #numbers{background:#fdf9f2}
.dashboard-shell .choice-icon{background:#f9dfcc;color:#913a27}
.dashboard-shell .choice-card:hover,.dashboard-shell .upload-slot{background:#fff6ec;border-color:#d7aa90}
.dashboard-shell .attention{background:#fff0d6;border-color:#e4c896}
.dashboard-shell ::selection{background:#f5bd9c;color:#39251e}
.dashboard-shell :focus-visible{outline-color:#225d83}
.dashboard-shell .company-switcher-menu{background:#fffdf9;border-color:#ded7cd;color:var(--ink);box-shadow:0 12px 32px #30241c26}
.company-switcher-menu [role=option]:hover,.company-switcher-menu [role=option]:focus-visible{background:#f4ede4}
.company-switcher-menu [role=option][aria-selected=true]{background:#fbe5d5}
.company-option-initial{background:#dceaf3;border-color:#c8dce9;color:#36586e}
.company-option-text small{color:#736357}
.company-menu-actions{border-top:1px solid var(--line);margin:6px 4px 0;padding:6px 0 0}
.dashboard-shell .company-menu-actions button{display:block;width:100%;min-height:44px;border:0;background:transparent;color:#9d3826;text-align:left;font-size:12px;padding:8px 10px;border-radius:6px}
.dashboard-shell .company-menu-actions button:hover{background:#fbe5d5;color:#7c281c}
.amount-number{white-space:nowrap}
.currency-unit{font-size:.43em;font-weight:500;letter-spacing:0;white-space:nowrap}
.dashboard-shell .money-line b span{max-width:none}
.dashboard-shell .money-line .currency-unit{font-size:10px}
.card-context{border:0;margin:0;padding:0}
.card-context>summary{display:none}
.dashboard-shell .card-context .brief{margin-top:0}

@media(max-width:700px){
 .workspace-rail{position:static;inset:auto;width:100%;background:var(--canvas);border:0;z-index:25}
 .rail-company-slot{padding:10px 12px 0}
 .rail-brand,.rail-foot{display:none}
 .workspace-rail .company-controls{grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:stretch}
 .workspace-rail .company-controls .company-picker-shell{grid-column:1}
 .workspace-rail .company-controls>button,.workspace-rail .company-controls .company-switcher{height:44px;min-height:44px;max-height:44px;padding:6px 10px;border-radius:8px;border:1px solid #d3bfb0;background:#fffdf9;color:var(--ink);font-size:11px;line-height:1.4}
 .workspace-rail .company-controls>button{background:#fbe0ce;border-color:#edc5ab;color:#783a27;font-weight:550}
 .workspace-rail .company-controls>button:hover{background:#f6c5a6;color:#5b2b1d}
 .switcher-selected{gap:1px}.switcher-selected strong{font-size:11px;line-height:1.35}.switcher-selected small{font-size:9px;line-height:1.35}
 .workspace-navigation,.workspace-navigation:has(button:nth-child(4)){position:fixed;inset:auto 0 0;z-index:50;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);grid-template-columns:none;gap:2px;padding:6px 8px calc(6px + env(safe-area-inset-bottom));border-top:1px solid #ffffff26;background:var(--rail-ink);box-shadow:0 -3px 16px #352a2014;overflow:visible}
 .workspace-navigation button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:52px;padding:5px 2px;border-radius:8px;font-size:10px;line-height:1.3;text-align:center;white-space:normal}
 .workspace-navigation button img{width:20px;height:20px}
 .workspace-navigation button[aria-current=page]{background:#f3bb9e}
 .workspace-navigation .nav-label-full{display:none}.workspace-navigation .nav-label-compact{display:block}
 .workspace-navigation .workspace-language{margin:0;border:0;border-radius:8px;padding:5px 2px}
 .dashboard-shell main{width:100%;margin:0;padding:10px 12px calc(88px + env(safe-area-inset-bottom));gap:10px;grid-template-columns:minmax(0,1fr)}
 .dashboard-shell main>.surface{padding:14px;border-radius:12px}
 .dashboard-shell .intro{min-height:44px;margin:0;gap:10px;display:flex;flex-direction:row;align-items:center;justify-content:space-between}
 .dashboard-shell .intro>div{min-width:0;flex:1}
 .dashboard-shell .intro h1,.dashboard-shell .intro .workspace-identity{display:none}
 .dashboard-shell .intro .muted{display:block;margin:0;font-size:11px;line-height:1.45;color:#6b625b}
 .dashboard-shell .intro .primary-button{width:auto;max-width:57%;min-height:40px;gap:6px;padding:8px 10px;border-radius:8px;font-size:11px;line-height:1.4;flex-shrink:0}
 .upload-label-full{display:none}.upload-label-compact{display:inline}
 .dashboard-shell .intro .primary-button img{width:15px;height:15px}
 .dashboard-shell h2,.dashboard-shell .section-heading h2{font-size:13px;line-height:1.45}
 .dashboard-shell .section-heading{margin-bottom:12px;gap:8px;align-items:center}
 .dashboard-shell .label{font-size:11px;line-height:1.45}
 .dashboard-shell .revenue-panel .section-heading{margin-bottom:12px;flex-wrap:wrap;gap:2px}
 .dashboard-shell .revenue-panel .period-caption{width:auto;font-size:10px}
 .dashboard-shell .revenue-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
 .dashboard-shell .revenue-main .hero-number{font-size:22px;line-height:1.35;margin:8px 0 5px;overflow-wrap:normal}
 .dashboard-shell .revenue-previous{padding:0 0 0 12px;margin:0;border-top:0;border-left:1px solid #b9d0df;min-width:0}
 .dashboard-shell .revenue-previous strong{font-size:18px;line-height:1.4;margin:8px 0 5px;overflow-wrap:normal}
 .dashboard-shell .revenue-main .brief,.dashboard-shell .revenue-previous .brief{font-size:10px;line-height:1.45}
 .dashboard-shell .delta{font-size:10px;padding:2px 5px;margin:6px 0 0}
 .dashboard-shell .revenue-breakdown{margin-top:12px;padding-top:8px}
 .dashboard-shell .revenue-breakdown summary{font-size:11px;min-height:28px;line-height:1.5;padding:4px 0}
 .dashboard-shell .withdrawal-panels{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0}
 .dashboard-shell .withdrawal-card{padding:0 12px 0 0}
 .dashboard-shell .withdrawal-card+.withdrawal-card{padding:0 0 0 12px;border-top:0;border-left:1px solid var(--line)}
 .dashboard-shell .withdrawal-title{flex-direction:column;align-items:flex-start;gap:6px;margin-bottom:10px}
 .dashboard-shell .withdrawal-title h3{font-size:12px;line-height:1.4}
 .dashboard-shell .state-pill{font-size:9px;padding:3px 5px;line-height:1.45;max-width:100%}
 .dashboard-shell .withdrawal-card>.label{min-height:48px;margin:0;font-size:11px;line-height:1.45}
 .dashboard-shell .withdrawal-card>.hero-number{font-size:22px;line-height:1.4;margin:6px 0 10px;overflow-wrap:normal}
 .dashboard-shell .money-line{display:flex;flex-direction:column;gap:4px;min-height:0;padding-top:8px;margin-bottom:10px;font-size:11px;line-height:1.45}
 .dashboard-shell .money-line>span{max-width:100%;min-height:48px}
 .dashboard-shell .money-line b{font-size:15px;text-align:left;line-height:1.4}
 .dashboard-shell .money-line .currency-unit{font-size:9px}
 .dashboard-shell .withdrawal-card .text-link{display:inline-block;font-size:11px;line-height:1.5;padding-top:4px}
 .card-context{margin:0 0 8px}
 .card-context>summary{display:list-item;min-height:28px;padding:5px 0;font-size:11px;color:#8e452f;line-height:1.5;cursor:pointer}
 .dashboard-shell .card-context .brief{font-size:11px;line-height:1.5;margin:4px 0 8px}
 .dashboard-shell .overview-assumptions{padding-top:8px;margin-top:10px}
 .dashboard-shell .overview-assumptions summary{font-size:11px;min-height:28px;line-height:1.5;padding:4px 0}
 .dashboard-shell .pfa-money-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:0}
 .dashboard-shell .pfa-money-grid .fact,.dashboard-shell .pfa-money-grid .fact:first-child,.dashboard-shell .pfa-money-grid .fact:last-child{padding:0 10px;border:0}
 .dashboard-shell .pfa-money-grid .fact:first-child{padding-left:0}.dashboard-shell .pfa-money-grid .fact:last-child{padding-right:0}
 .dashboard-shell .pfa-money-grid .fact+.fact{border-left:1px solid var(--line)}
 .dashboard-shell .pfa-money-grid .fact .label{min-height:48px;font-size:11px;line-height:1.45}
 .dashboard-shell .pfa-money-grid .fact .value{font-size:18px;line-height:1.4;margin:8px 0 6px;overflow-wrap:normal}
 .dashboard-shell .pfa-money-grid .fact .unit{display:block;font-size:9px;line-height:1.4;margin-top:1px}
 .dashboard-shell .pfa-money-grid .card-context>summary{font-size:10px}
 .dashboard-shell #numbers .section-heading{margin-bottom:10px;flex-wrap:wrap;gap:4px}
 .dashboard-shell #numbers .period-caption{font-size:10px}
 .dashboard-shell .facts-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .dashboard-shell .facts-grid .fact{padding:10px 10px 10px 0}
 .dashboard-shell .facts-grid .fact .label{font-size:11px;min-height:32px;line-height:1.45}
 .dashboard-shell .facts-grid .fact .value{font-size:20px;line-height:1.4;margin:5px 0 0;overflow-wrap:normal}
 .dashboard-shell .fact .unit{font-size:9px;white-space:nowrap}
 .dashboard-shell .facts-grid .fact .brief{font-size:10px;line-height:1.5;margin:5px 0 0}
 .dashboard-shell .footer{font-size:10px;line-height:1.5;margin-top:4px}
 .dashboard-shell .attention{padding:12px;gap:10px}
 .dashboard-shell .welcome{margin:0 auto!important;padding:20px!important}
}
@media(max-width:360px){
 .dashboard-shell main{padding-left:10px;padding-right:10px}
 .rail-company-slot{padding-left:10px;padding-right:10px}
 .dashboard-shell main>.surface{padding:12px}
 .dashboard-shell .revenue-main .hero-number,.dashboard-shell .withdrawal-card>.hero-number{font-size:20px}
 .dashboard-shell .revenue-previous strong{font-size:17px}
 .dashboard-shell .pfa-money-grid .fact .value{font-size:15px}
 .dashboard-shell .withdrawal-card{padding-right:10px}.dashboard-shell .withdrawal-card+.withdrawal-card{padding-left:10px}
 .dashboard-shell .withdrawal-title{min-height:60px}.dashboard-shell .withdrawal-card>.label{min-height:64px}
 .workspace-navigation button{font-size:9px}
}
