/* Shared shadcn-style design tokens. Server-rendered controls remain usable. */
:root,html[data-theme=light]{--fm-font:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei","FM CJK",sans-serif;--ink:#202124;--muted:#6e727a;--navy:#202124;--blue:#0071e3;--line:#e5e7eb;--bg:#f5f5f7;--green:#13795b;--orange:#a96512;--workspace-surface:#fff;--surface:#fff;--surface-soft:#f8f9fb;--surface-glass:rgba(255,255,255,.88);--shadow:0 2px 5px rgba(20,25,35,.02),0 12px 32px rgba(20,25,35,.035);--ring:rgba(0,113,227,.28)}
html[data-theme=dark]{--ink:#f0f1f4;--muted:#a4a8b2;--navy:#f0f1f4;--blue:#70b5ff;--line:#303238;--bg:#111215;--green:#72d8b4;--orange:#efb768;--workspace-surface:#1c1d21;--surface:#1c1d21;--surface-soft:#23252a;--surface-glass:rgba(28,29,33,.9);--shadow:0 10px 32px rgba(0,0,0,.13);--ring:rgba(112,181,255,.32)}
html{background:var(--bg)}
body{font-family:var(--fm-font);background:var(--bg);color:var(--ink);-webkit-font-smoothing:antialiased;line-height:1.55}
main{max-width:1660px;margin:32px auto 60px;padding:0 clamp(18px,4vw,64px);min-width:0}
h1{font-size:clamp(28px,2.4vw,38px);font-weight:700;letter-spacing:-1.2px;line-height:1.2;margin:8px 0 12px}
h2,main .cv-header h2,main .cmp-header h2{font-size:20px;font-weight:650;letter-spacing:-.45px;line-height:1.4}
h3{font-weight:600;letter-spacing:-.2px}
.eyebrow{color:var(--muted);font-size:12px;font-weight:600;letter-spacing:1.8px}
.page-top{padding:8px 0 10px;align-items:center}
.view-scope{font-size:13px;color:var(--muted)}
.chart-heading-en{font-size:11px;letter-spacing:.1px;color:var(--muted);margin-top:4px}
.site-header{min-height:86px;padding:16px clamp(18px,4vw,64px);background:var(--surface);border-bottom:1px solid var(--line);gap:20px}
html[data-theme] .site-header{background:var(--surface);color:var(--ink)}
.brand{gap:20px}.brand-logo img{width:130px}.brand .brand-title{padding-left:20px;border-color:var(--line);gap:4px}
.brand .brand-line{font-size:21px;color:var(--ink);letter-spacing:-.6px}.brand .brand-description{font-size:11px;color:var(--muted);letter-spacing:.2px}
.header-tools{gap:12px 22px;align-items:center}.display-preferences{gap:12px}
.preference-label{font-size:12px;color:var(--muted);letter-spacing:.2px}.preference-segments{background:var(--surface-soft);border:1px solid var(--line);border-radius:11px;padding:3px}
.preference-segments button{min-height:34px;padding:6px 10px;font-size:12px;color:var(--muted)}
html[data-theme] .preference-segments button[aria-pressed=true]{background:var(--surface);color:var(--ink);box-shadow:0 1px 4px #0000000c}
.site-header .header-right{gap:12px;font-size:12px;color:var(--muted)}.site-header .header-right a,.account-label{color:var(--ink)}
.account-role{background:var(--surface-soft);color:var(--muted);border-color:var(--line);font-size:12px}
.site-header .quiet{background:var(--surface);color:var(--ink);border-color:var(--line);border-radius:10px}
.header-settings{border:0;padding:0;margin:0;min-width:0;flex:0 1 auto}
.header-settings>.header-tools{max-width:100%}
.header-settings-toggle{display:none}
.site-nav-shell{position:relative;min-width:0;max-width:100%}
.site-nav-shell::after{display:none}
html[data-theme] .site-nav{background:var(--surface-glass);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);padding:8px clamp(18px,4vw,64px);border-color:var(--line);box-shadow:none;gap:8px}
/* Dropdowns share this stacking context; keep them above sticky dashboard tabs. */
.site-nav.admin-nav{z-index:20;grid-template-columns:repeat(2,minmax(0,1.15fr)) repeat(3,minmax(0,1fr))}
@media(min-width:701px){.site-nav.admin-nav:has(>#nav-daily-cost){grid-template-columns:repeat(2,minmax(0,1.15fr)) minmax(0,.8fr) repeat(3,minmax(0,1fr))}}
.site-nav .nav-primary,.site-nav.admin-nav .nav-primary,.nav-group-toggle{min-height:50px;padding:8px 12px;border-radius:11px}
.site-nav.admin-nav .nav-group-toggle{min-height:50px;padding:8px 12px}
.nav-label,.site-nav.admin-nav .nav-label{font-size:12px;font-weight:600}.nav-subtitle,.site-nav.admin-nav .nav-subtitle{font-size:11px;letter-spacing:0}
.site-nav .nav-disabled{display:flex;align-items:center;gap:10px;color:var(--muted);opacity:.65;cursor:default}
.nav-icon{width:18px;height:18px;color:var(--muted)}.site-nav a,.nav-group-toggle{color:var(--muted)}
html[data-theme] .site-nav a.is-active,html[data-theme] .nav-group.is-active>.nav-group-toggle{background:var(--surface-soft);color:var(--ink)}
.site-nav .nav-primary.is-active::after{height:2px;background:var(--blue);left:12px;right:12px}
html[data-theme] .nav-dropdown{background:var(--surface);border-color:var(--line);border-radius:14px;box-shadow:0 14px 44px #00000018;padding:6px}
html[data-theme] .nav-dropdown a:hover,html[data-theme] .site-nav a:hover,html[data-theme] .nav-group-toggle:hover{background:var(--surface-soft);color:var(--ink)}
html[data-theme] .panel,html[data-theme] main .customer-volume,html[data-theme] main .station-comparison{background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:22px;box-shadow:var(--shadow);margin:18px 0}
.chart-grid{gap:20px;grid-template-columns:repeat(2,minmax(0,1fr))}.chart-grid>.panel{margin:0 0 20px;min-width:0}
.filter-panel{padding:16px 22px!important}.filter-scope-label{color:var(--muted);font-size:12px;margin:0 0 10px}
label{color:var(--muted);font-size:12px;font-weight:500}
html[data-theme] input,html[data-theme] select,html[data-theme] textarea{background:var(--surface);color:var(--ink);border-color:var(--line);border-radius:10px;min-height:44px;box-shadow:0 1px 2px #00000003}
html[data-theme] input[type=checkbox]{min-height:16px;border-radius:4px;accent-color:var(--blue);box-shadow:none}
html[data-theme] input:focus,html[data-theme] select:focus,html[data-theme] textarea:focus{outline:3px solid var(--ring);outline-offset:1px;border-color:var(--blue)}
html[data-theme] button,html[data-theme] .button{background:var(--surface);border-color:var(--line);color:var(--ink);border-radius:10px;font-weight:550;min-height:38px;transition:background-color .16s,border-color .16s,color .16s}
html[data-theme] button:hover,html[data-theme] .button:hover{background:var(--surface-soft);border-color:var(--line)}
html[data-theme] .primary{background:var(--blue);border-color:var(--blue);color:#fff;box-shadow:0 2px 4px #0071e31a}
html[data-theme=dark] .primary{background:#0071e3;border-color:#0071e3;color:#fff}
html[data-theme] .primary:hover{background:#0064cc;border-color:#0064cc;color:#fff}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--ring);outline-offset:3px}
html[data-theme] .data-status{background:transparent;border-color:var(--line);font-size:12px;padding:8px 4px;color:var(--muted)}
html[data-theme] .data-status strong{color:var(--ink);font-weight:600}.data-status small{font-size:12px}
html[data-theme] .dashboard-navigation{background:var(--surface-glass);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid var(--line);border-radius:16px;padding:5px;margin:12px 0;box-shadow:0 3px 12px #00000003}
html[data-theme] .dashboard-context{border:0;background:transparent;padding:6px 10px;font-size:12px;color:var(--muted)}
.dashboard-context b{color:var(--ink);font-weight:600}.dashboard-context a{color:var(--blue)}
.dashboard-tab-row{gap:6px;align-items:stretch}.dashboard-tabs{gap:4px;min-width:0}
html[data-theme] .dashboard-tabs button,html[data-theme] .dashboard-tab-link{min-height:44px;border:0;padding:10px 16px;font-family:inherit;font-size:12px;font-weight:600;line-height:1.4;color:var(--muted);background:transparent;border-radius:11px}
html[data-theme] .dashboard-tabs button[aria-selected=true]{background:var(--surface);color:var(--ink);box-shadow:0 2px 8px #0000000a}
html[data-theme] .dashboard-tab-link:hover{background:var(--surface-soft);color:var(--ink)}
.kpis{grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;margin:14px 0 18px}
html[data-theme] .kpi{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:18px;box-shadow:var(--shadow);min-width:0}
.kpi .metric-name{font-size:12px;font-weight:550;color:var(--muted)}.kpi .metric-cn{font-size:12px;color:var(--muted)}
html[data-theme] .kpi strong{font-size:clamp(22px,2.1vw,32px);font-weight:650;letter-spacing:-1px;color:var(--ink);margin:14px 0 18px;line-height:1.2;font-variant-numeric:tabular-nums;white-space:normal}
.kpi .change-period{font-size:12px;color:var(--muted)}.kpi .delta{border-radius:6px;font-size:12px;font-weight:550}
/* Direction is still written in words and arrows; metric semantics set the tone. */
html[data-theme] .fm-change--favorable,html[data-theme] .delta.fm-change--favorable{color:var(--green);background:color-mix(in srgb,var(--green) 10%,transparent)}
html[data-theme] .fm-change--adverse,html[data-theme] .delta.fm-change--adverse{color:var(--orange);background:color-mix(in srgb,var(--orange) 10%,transparent)}
html[data-theme] .fm-change--neutral,html[data-theme] .delta.fm-change--neutral{color:var(--muted);background:var(--surface-soft)}
html[data-theme] #network-cost-analysis .nca-adverse{color:var(--orange)!important}
html[data-theme] #network-cost-analysis .nca-favorable{color:var(--green)!important}
html[data-theme] .kpi:nth-child(3){border-color:color-mix(in srgb,var(--blue) 35%,var(--line));background:var(--surface)}
html[data-theme] .highlight-summary>div,html[data-theme] .attention-card{background:var(--surface);border-color:var(--line);border-radius:14px}
html[data-theme] .highlight-summary>div{box-shadow:none}.highlight-summary strong{font-weight:600}.attention-card{padding:15px}
html[data-theme] .attention-card[data-reason=increase] .attention-tag{color:var(--orange);background:var(--surface-soft)}
html[data-theme] .attention-card[data-reason=decrease] .attention-tag{color:var(--green);background:var(--surface-soft)}
html[data-theme] th{background:var(--surface-soft);color:var(--muted);border-color:var(--line);font-weight:550}
html[data-theme] td{border-color:var(--line);color:var(--ink)}
html[data-theme] tbody tr:nth-child(even){background:transparent}
html[data-theme] tbody tr:hover{background:var(--surface-soft)}
html[data-theme] .station-metrics th[scope=row],html[data-theme] .comparison-table .metric-row>th{background:var(--surface);color:var(--ink)}
html[data-theme] .comparison-table .metric-row td,html[data-theme] .comparison-table .metric-row .current-value{color:var(--ink);background:transparent}
.station-link{color:var(--blue);font-weight:600}.table-wrap{border-radius:12px;min-width:0}
html[data-theme] .station-metrics thead button{background:transparent;border:0;border-radius:0;min-height:auto;box-shadow:none;color:inherit}
.chart{height:310px}.chart-toolbar{margin:0;gap:7px}.chart-data-range{font-size:12px;color:var(--muted)}
.chart-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:8px 14px;margin:0 0 8px;min-width:0}
.chart-heading>h2,.chart-heading>h3{flex:1 1 auto;min-width:0;margin:0;font-size:18px;line-height:1.4}
.chart-heading>.chart-toolbar{flex:0 0 auto;max-width:60%;margin:0}
.chart-workspace>.chart-data-range{margin:0 0 6px;line-height:1.4}
.chart-workspace .chart-values{margin-top:6px}
html[data-theme] .chart-toolbar button{min-height:34px;font-size:12px;border-radius:8px;padding:6px 10px;color:var(--muted)}
.fm-ui-toolbar-island{display:flex;justify-content:flex-end;min-width:0}.fm-ui-toolbar{display:flex;align-items:center;gap:5px;flex-wrap:wrap;justify-content:flex-end}
.fm-ui-button{display:inline-flex!important;align-items:center;justify-content:center;gap:6px;white-space:nowrap;font-family:inherit;line-height:1.4;margin:0!important;cursor:pointer}
.fm-ui-button svg{height:14px;width:14px;flex-shrink:0}.fm-ui-button:disabled{opacity:.45;pointer-events:none}
.fm-ui-button--ghost{border-color:transparent!important;background:transparent!important}.fm-ui-button--ghost:hover{background:var(--surface-soft)!important}
.fm-ui-button--outline{background:var(--surface)!important;border-color:var(--line)!important}.fm-ui-button--secondary{background:var(--surface-soft)!important}
.fm-ui-button--sm{min-height:34px!important;padding:6px 10px!important;font-size:12px!important}.fm-ui-button--icon{width:36px;height:36px;padding:0!important}
.fm-ui-tooltip{z-index:1000;max-width:260px;padding:7px 10px;background:var(--ink);color:var(--surface);border-radius:7px;font:12px/1.4 var(--fm-font);box-shadow:0 4px 16px #00000012}
.fm-ui-tooltip-arrow{fill:var(--ink)}
html[data-theme] .workspace-dialog{background:var(--surface);color:var(--ink);border-color:var(--line);border-radius:22px;padding:28px;box-shadow:0 28px 90px #00000026}
.workspace-dialog::backdrop{background:#11182755;backdrop-filter:blur(7px)}
html[data-theme] .nca-chart-card,html[data-theme] .nca-metric-card,html[data-theme] .nca-week-kpi{background:var(--surface);border-color:var(--line);border-radius:14px}
html[data-theme] .nca-metric-card span{font-size:22px;font-weight:600;letter-spacing:-.6px}
html[data-theme] .nca-context-grid>div,html[data-theme] .nca-screening-item{background:var(--surface-soft);border-color:var(--line);border-radius:10px}
html[data-theme] .cv-chart,html[data-theme] .cmp-chart{background:var(--surface)}
html[data-theme] .badge{background:var(--surface-soft);color:var(--green);border:1px solid var(--line);font-size:12px;font-weight:550}
footer{color:var(--muted);font-size:12px;border-top:1px solid var(--line);padding:28px 18px}
/* Readable auxiliary copy also covers legacy module styles loaded earlier. */
.metric-cn,.kpi .metric-cn,.kpi small,.change-period,.data-status small,.filter-status,.comparison-basis,.station-metric-unit,.station-metric-status,.station-metric-comparison,.station-metric-comparison .delta,.station-metric-comparison .comparison-unavailable,.station-metric-footnote,.attention-card small,.attention-link,.admin-status-summary .coverage-provenance,.admin-metric-methods>summary span,.chart-data-range,.cmp-delta,.nca-chart-empty,.nca-chart-card small,.nca-chart-readout,.cv-hint{font-size:12px}
/* Module helpers keep the same readable minimum after their mobile/preview styles. */
html[data-theme] #station-comparison .cmp-controls>label,
html[data-theme] #station-comparison .cmp-control-right>label,
html[data-theme] #station-comparison .cmp-popover-heading button,
html[data-theme] #station-comparison .cmp-station-popover p,
html[data-theme] #station-comparison .cmp-context,
html[data-theme] #station-comparison .cmp-number-block>span,
html[data-theme] #station-comparison .cmp-number-block>small,
html[data-theme] #station-comparison .cmp-workspace-header p,
html[data-theme] #station-comparison .cmp-scale-switch button,
html[data-theme] #station-comparison .cmp-range-note,
html[data-theme] #station-comparison .cmp-range-note button,
html[data-theme] #station-comparison .cmp-rank-table thead th,
html[data-theme] #station-comparison .cmp-tick,
html[data-theme] #station-comparison .cmp-rank-index,
html[data-theme] #station-comparison .cmp-value-cell small,
html[data-theme] #station-comparison .cmp-chart-footer,
html[data-theme] #station-comparison .cmp-method,
html[data-theme] #station-comparison .cmp-subtitle,
html[data-theme] #station-comparison .cmp-date-control input,
html[data-theme] #station-comparison .cmp-sort-label select,
html[data-theme] #station-comparison .cmp-station-picker>summary,
html[data-theme] #station-comparison .cmp-dialog-bar{font-size:12px}
html[data-theme] #customer-volume .cv-source-badge,
html[data-theme] #customer-volume .cv-filter-fields>label,
html[data-theme] #customer-volume .cv-control-caption,
html[data-theme] #customer-volume .cv-catalog-heading span,
html[data-theme] #customer-volume .cv-search-label,
html[data-theme] #customer-volume .cv-sort-label,
html[data-theme] #customer-volume .cv-customer-top,
html[data-theme] #customer-volume .cv-station,
html[data-theme] #customer-volume .cv-customer-delta,
html[data-theme] #customer-volume .cv-customer-coverage,
html[data-theme] #customer-volume .cv-pagination,
html[data-theme] #customer-volume .cv-pagination button,
html[data-theme] #customer-volume .cv-chip-volume,
html[data-theme] #customer-volume .cv-values th small{font-size:12px}
html[data-theme] #network-cost-analysis .nca-selection-actions button,
html[data-theme] #network-cost-analysis .nca-summary-table th button,
html[data-theme] #network-cost-analysis .nca-summary-table thead th small,
html[data-theme] #network-cost-analysis .nca-status-item small,
html[data-theme] #network-cost-analysis .nca-cpp-summary small,
html[data-theme] #network-cost-analysis .nca-cell-note,
html[data-theme] #network-cost-analysis .nca-screening-item small,
html[data-theme] #network-cost-analysis .nca-chart-card h3 span,
html[data-theme] #network-cost-analysis .nca-values th,
html[data-theme] #network-cost-analysis .nca-values td,
html[data-theme] #network-cost-analysis .nca-breakdown-block td,
html[data-theme] #network-cost-analysis .nca-breakdown-block th,
html[data-theme] #network-cost-analysis .nca-note-context,
html[data-theme] #network-cost-analysis #nca-note-context,
html[data-theme] #network-cost-analysis .nca-station-status,
html[data-theme] #network-cost-analysis .nca-basic-table td small,
html[data-theme] #network-cost-analysis .nca-precision-summary td small,
html[data-theme] #network-cost-analysis .nca-week-kpi small,
html[data-theme] #network-cost-analysis .nca-wtd-table caption,
html[data-theme] #network-cost-analysis .nca-wtd-table th,
html[data-theme] #network-cost-analysis .nca-wtd-table td,
html[data-theme] #network-cost-analysis .nca-historical-week-table caption,
html[data-theme] #network-cost-analysis .nca-metric-card small,
html[data-theme] #network-cost-analysis .nca-mobile-station-context:not([hidden]),
html[data-theme] #network-cost-analysis .nca-mobile-card-period,
html[data-theme] #network-cost-analysis .nca-mobile-metrics-list{font-size:12px}
@media(max-width:650px){html[data-theme] #station-comparison .cmp-rank-table tbody th,html[data-theme] #station-comparison .cmp-value-cell{font-size:12px}}
/* Three legend/label rows on very narrow phones still need a readable plot. */
@media(max-width:380px){#station-chart{height:420px}}
.column-en{font-size:12px}
.comparison-heading h2 span,.nav-subtitle,.site-nav.admin-nav .nav-subtitle,.brand .brand-description,.chart-heading-en{font-size:11px}
@media(min-width:1400px){.kpi strong{font-size:32px}}
@media(min-width:1101px){
 main{margin-top:24px}.page-top{padding:0}.page-top h1{margin:4px 0 8px}
 .header-settings>.header-tools,.header-settings .display-preferences,.header-settings .header-right{flex-wrap:nowrap}
 .header-settings .header-right{gap:10px}.header-settings .account-label{white-space:nowrap}
 .site-header{padding-top:12px;padding-bottom:12px}
 #page-filters{padding:14px 20px!important;margin:12px 0!important}
 #page-filters .filter-scope-label{margin-bottom:8px}
 #page-filters .filter-version{padding-top:2px}.filter-version summary{padding:5px 0}
 html[data-theme] .data-status{margin:10px 0;padding:6px 4px}
 html[data-theme] .dashboard-navigation{margin:8px 0;padding:4px}
 .dashboard-context{padding:3px 10px!important}.dashboard-tab-row{margin-top:4px;padding-bottom:0}
 html[data-theme] .dashboard-tabs button,html[data-theme] .dashboard-tab-link{min-height:40px;padding:8px 14px}
}
@media(max-width:1100px){.kpis{grid-template-columns:repeat(3,minmax(0,1fr))}.header-tools{gap:10px}.brand-logo img{width:115px}.brand .brand-description{font-size:12px}}
@media(max-width:900px){.chart-grid,.form-grid{grid-template-columns:minmax(0,1fr)}.site-header{align-items:flex-start}.site-nav.admin-nav{gap:4px}.nav-subtitle{font-size:12px}.site-nav.admin-nav .nav-primary,.nav-group-toggle{padding:8px;gap:7px}}
@media(max-width:700px){
 main{padding:0 16px;margin-top:16px}.site-header{padding:12px 16px;gap:10px;min-height:68px;flex-wrap:nowrap}.brand{gap:10px}.brand-logo img{width:95px}.brand .brand-title{padding-left:10px;gap:2px}.brand .brand-line{font-size:18px}.brand .brand-description{font-size:11px;max-width:125px}
 .header-tools{width:100%;justify-content:space-between;align-items:center;gap:12px}.display-preferences{gap:10px}.preference-label{font-size:12px}.preference-segments button{min-height:36px;padding:6px 8px;font-size:12px}.site-header .header-right{width:100%;justify-content:flex-start;gap:12px}
 .header-settings{position:relative;flex:0 0 auto;align-self:center;z-index:40}
 .header-settings-toggle{display:flex;align-items:center;justify-content:center;gap:5px;min-width:44px;min-height:44px;max-width:44px;padding:8px;border:1px solid var(--line);border-radius:11px;background:var(--surface-soft);color:var(--ink);list-style:none}
 .header-settings-toggle::-webkit-details-marker{display:none}.header-settings-toggle::marker{content:''}
 .header-settings-toggle svg{width:20px;height:20px;flex:none}.header-settings-toggle>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .header-settings>.header-tools{position:absolute;right:0;top:calc(100% + 8px);width:min(358px,calc(100vw - 32px));max-width:calc(100vw - 32px);padding:16px;background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:0 12px 44px #0003;align-items:flex-start;gap:14px}
 .header-settings .display-preferences{width:100%;gap:10px}.header-settings .preference-form{flex:1 1 140px}.header-settings .preference-label{margin-bottom:6px}
 .header-settings .header-right{padding-top:10px;border-top:1px solid var(--line);gap:10px;font-size:12px;flex-wrap:wrap}.header-settings .header-right .account-label{max-width:100%;flex-basis:100%;margin:0}.header-settings .header-right>a{font-size:12px}
 html[data-theme] .site-nav{padding:5px 12px;backdrop-filter:none;-webkit-backdrop-filter:none;display:flex;flex-wrap:nowrap;overflow-x:auto;gap:5px;scrollbar-width:thin}.site-nav.admin-nav{display:flex;grid-template-columns:none;gap:5px}.site-nav>.nav-primary,.site-nav>.nav-group{flex:0 0 auto;min-width:max-content}.site-nav.admin-nav .nav-primary,.site-nav .nav-primary,.site-nav.admin-nav .nav-group-toggle{min-height:44px;padding:8px 10px;gap:7px}.site-nav .nav-copy,.site-nav.admin-nav .nav-copy,html[lang=en] .site-nav.admin-nav .nav-copy{white-space:nowrap;max-width:none}.nav-label{font-size:12px}.site-nav .nav-subtitle{display:none}.nav-group-toggle .nav-chevron{margin-left:2px}.site-nav .nav-dropdown,.site-nav .nav-group:last-child .nav-dropdown{position:fixed;top:124px;left:12px;right:auto;width:calc(100vw - 24px);max-width:400px;max-height:70dvh;overflow-y:auto;z-index:30}.site-nav .nav-dropdown .nav-primary{min-height:44px}
 /* Override the older Admin flex/shrink rules: labels remain fully readable. */
 html[data-theme] .site-nav>.nav-primary,html[data-theme] .site-nav.admin-nav>.nav-primary,html[data-theme] .site-nav>.nav-group{flex:0 0 auto;width:max-content;min-width:max-content;max-width:none}
 html[data-theme] .site-nav .nav-copy,html[data-theme] .site-nav.admin-nav .nav-copy,html[lang=en][data-theme] .site-nav.admin-nav .nav-copy{flex:0 0 auto;white-space:nowrap;overflow:visible;text-overflow:clip;max-width:none}
 html[data-theme] .site-nav .nav-primary,html[data-theme] .site-nav .nav-group-toggle{min-height:44px;min-width:44px}
 html[data-theme] .site-nav .nav-label{display:block;font-size:12px;white-space:nowrap}
 .site-nav-shell::after{content:"";display:block;position:absolute;right:0;top:0;bottom:1px;width:28px;z-index:21;pointer-events:none;background:linear-gradient(to left,var(--surface) 20%,transparent)}
 .site-nav-shell[data-scroll-right=false]::after{display:none}
 h1{font-size:29px;letter-spacing:-.8px}.page-top{align-items:flex-start;gap:10px}.page-top .badge{white-space:nowrap;margin-top:10px}
 html[data-theme] .panel,html[data-theme] main .customer-volume,html[data-theme] main .station-comparison{padding:18px;border-radius:17px;margin:16px 0}.filter-panel{padding:16px!important}.filters{gap:12px}.filters label{min-width:0;flex:1 1 140px}.filters .primary{min-height:44px;width:100%;margin:4px 0 0}
 html[data-theme] .data-status{display:grid;grid-template-columns:1fr;gap:8px;padding:6px 2px}.data-status>span{min-width:0}
 html[data-theme] .dashboard-navigation{border-radius:13px;margin:16px 0;padding:5px}.dashboard-context{flex-wrap:wrap;gap:6px}.dashboard-context span{min-width:0}.dashboard-tab-row{flex-wrap:wrap}.dashboard-tabs{display:flex;flex-wrap:wrap;flex:1 1 100%;gap:3px}
 html[data-theme] .dashboard-tabs button{flex:1;min-width:0;min-height:44px;padding:9px 8px;white-space:normal;font-size:12px}.dashboard-tab-link{width:100%;text-align:center;font-size:12px!important;min-height:40px!important}
 .kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0}.kpis .kpi:first-child{grid-column:auto}.kpis .kpi:nth-child(3){grid-column:1/-1;grid-row:1}.kpis .kpi{padding:18px 14px}.kpis .kpi strong{font-size:25px;white-space:normal;margin:12px 0 15px}.kpis .kpi:nth-child(3) strong{font-size:34px}
 .chart{height:300px}.chart-toolbar button{min-height:40px!important}.fm-ui-toolbar{gap:4px}.fm-ui-button--sm{min-height:40px!important}.chart-grid{gap:0}.workspace-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px)}
 .chart-heading{gap:8px;flex-wrap:wrap}.chart-heading>h2,.chart-heading>h3{flex:1 1 140px;font-size:18px}.chart-heading>.chart-toolbar{max-width:100%;margin-left:auto}
 .chart-heading .fm-ui-button--sm{width:44px;min-width:44px;padding:8px!important}.chart-heading .fm-ui-button>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.chart-heading .fm-ui-button svg{width:17px;height:17px}
 html[data-theme] .workspace-dialog{padding:20px;border-radius:18px}.nca-detail-pickers{flex-wrap:wrap}.nca-detail-pickers label{flex:1;min-width:130px}
}
@media(max-width:700px),(pointer:coarse){html[data-theme] button,html[data-theme] .button,html[data-theme] .preference-segments button,html[data-theme] .dashboard-tab-link,html[data-theme] .fm-ui-button--sm{min-height:44px!important}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:0s!important;animation-duration:0s!important}}
@media(forced-colors:active){.kpi,.panel,.dashboard-navigation{border:1px solid CanvasText!important}.fm-ui-button:focus-visible{outline:2px solid Highlight}}
