/* Dashboard 2.1: purposeful density, semantic colors, no external assets. */
:root { --chart-other: #b6becb; --chart-fixed: #d29cab; }
:root[data-theme='light'] { --chart-other: #748499; --chart-fixed: #b57388; }
.dash { min-width: 0; font-variant-numeric: tabular-nums; }
.dash h1, .dash h2, .dash h3 { overflow-wrap: anywhere; }
.dash-heading { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-bottom:24px; }
.dash-heading h1 { font-size:clamp(25px,2.1vw,33px); line-height:1.22; letter-spacing:-.85px; margin:10px 0 8px; font-weight:650; }
.dash-heading .eyebrow { font-size:9px; letter-spacing:1.8px; }
.dash-description { color:var(--muted); font-size:12px; line-height:1.65; margin:0; }
.dash-head-actions { display:flex; gap:10px; flex-shrink:0; }
.dash .btn { min-height:44px; font-size:12px; }
.dash .icon-btn, .dashboard-detail-modal .icon-btn, .scenario-modal .icon-btn { min-width:44px; min-height:44px; }
.dash .segments button { min-height:44px; font-size:11px; }
.dash-filterbar { display:grid; grid-template-columns:minmax(140px,1.1fr) minmax(0,4fr); gap:14px; padding:16px 18px; border:1px solid var(--border-soft); background:var(--surface); border-radius:12px; }
.dash-filter-fields { display:grid; grid-template-columns:1.3fr .9fr 1fr 1fr; gap:14px; min-width:0; }
.dash-filter-fields:has(> :nth-child(3):last-child) { grid-template-columns:1.3fr 1fr 1fr; }
.dash-filterbar .field { margin:0; }
.dash-filterbar .field > label { font-size:10px; margin-bottom:6px; }
.dash-filterbar select { height:40px; min-height:40px; font-size:11.5px; width:100%; text-overflow:ellipsis; }
.plan-filter { min-width:0; }
.mobile-filter-toggle { display:none !important; }
.active-filters { grid-column:1/-1; display:flex; align-items:center; flex-wrap:wrap; gap:8px; border-top:1px solid var(--border-soft); padding-top:10px; }
.filter-chip { font-size:11px; background:var(--accent-soft); color:var(--accent); padding:7px 10px; border-radius:6px; max-width:100%; overflow-wrap:anywhere; }
.scope-strip { display:flex; align-items:center; gap:12px; margin:14px 2px 18px; font-size:10.5px; color:var(--subtle); flex-wrap:wrap; }
.scope-strip .badge { font-size:9px; padding:4px 7px; }
.scope-mode { display:flex; align-items:center; gap:6px; color:var(--muted); }
.scope-mode i { width:6px; height:6px; border-radius:50%; background:var(--accent); }
.scope-tail { margin-left:auto; }
.dash-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.dash-kpi { text-align:left; padding:19px 20px 17px; background:var(--surface); border:1px solid var(--border); border-radius:12px; color:var(--text); display:flex; flex-direction:column; min-width:0; transition:border-color .16s ease,background .16s ease; }
.dash-kpi:hover { border-color:var(--subtle); background:var(--surface-raised); }
.kpi-top { display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:11.5px; color:var(--muted); min-height:21px; line-height:1.4; }
.kpi-top > .icon { flex-shrink:0; opacity:.8; }
.kpi-value { display:block; font-size:clamp(26px,2.4vw,36px); font-weight:620; letter-spacing:-1px; margin:18px 0 19px; line-height:1; overflow-wrap:anywhere; }
.kpi-bottom { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:auto; }
.kpi-context { display:flex; align-items:center; gap:6px; font-size:9.5px; color:var(--subtle); line-height:1.5; }
.kpi-context i { width:4px; height:4px; border-radius:50%; background:var(--subtle); flex-shrink:0; }
.kpi-highlight { background:var(--profit-bg); border-color:var(--profit-border); }
.kpi-highlight .kpi-value { color:var(--positive); }
.kpi-highlight .kpi-context { color:var(--profit-text); }
.kpi-highlight .kpi-context i { background:var(--positive); }
.kpi-loss { background:var(--negative-soft); border-color:var(--negative); }
.kpi-loss .kpi-value { color:var(--negative); }
.kpi-difference { font-size:10px; line-height:1.5; margin-top:10px; color:var(--info); }
.dash-micro-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:0; margin:16px 0 17px; padding:0 4px; }
.dash-micro-kpis > div { display:flex; gap:8px; align-items:center; padding:0 15px; border-right:1px solid var(--border-soft); min-width:0; }
.dash-micro-kpis > div:first-child { padding-left:0; }
.dash-micro-kpis > div:last-child { border:0; padding-right:0; }
.dash-micro-kpis .icon { color:var(--subtle); flex-shrink:0; }
.dash-micro-kpis span { font-size:10px; color:var(--subtle); line-height:1.4; }
.dash-micro-kpis strong { margin-left:auto; font-size:12px; font-weight:600; white-space:nowrap; }
.dash-grid { display:grid; gap:18px; margin-top:18px; align-items:stretch; }
.dash-main-grid, .dash-secondary-grid { grid-template-columns:minmax(0,1.85fr) minmax(285px,1fr); }
.dash-bottom-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.dash-card { padding:22px; overflow:hidden; }
.dash-card-head { display:flex; justify-content:space-between; align-items:flex-start; gap:14px; margin-bottom:16px; min-width:0; }
.dash-card-head h2, .plan-products-section h2 { font-size:15px; letter-spacing:-.2px; font-weight:650; line-height:1.5; }
.dash-card-head p { margin-top:4px; font-size:11px; color:var(--subtle); line-height:1.6; }
.dash-card-head > .icon { color:var(--subtle); flex-shrink:0; margin-top:2px; }
.dash-card-head .badge { flex-shrink:0; margin-top:2px; font-size:10px; }
.dash-card-head .segments { flex-shrink:0; }
.flow-segments { width:max-content; max-width:100%; margin:0 0 6px; background:var(--input); }
.flow-segments button { padding-left:13px; padding-right:13px; }
.dash-chart { width:100%; min-width:0; position:relative; }
.dash-chart svg { display:block; overflow:visible; }
.dash-axis { fill:var(--subtle); font:10px var(--font); }
.dash-bar-value { fill:var(--muted); font:10px var(--font); font-weight:600; }
.dash-grid-line { stroke:var(--border-soft); stroke-width:1; stroke-dasharray:3 5; }
.dash-zero-line { stroke:var(--subtle); stroke-width:1; opacity:.55; }
.dash-connector { stroke:var(--subtle); stroke-dasharray:3 3; opacity:.45; }
.chart-pick { cursor:pointer; }
.chart-pick:hover rect, .chart-pick:focus rect { opacity:1; stroke:var(--text); stroke-width:1; }
.chart-pick:focus { outline:1px solid var(--accent); }
.chart-tooltip { position:absolute; right:12px; top:4px; display:flex; flex-direction:column; gap:6px; max-width:230px; padding:12px 15px; border:1px solid var(--border); background:var(--input); color:var(--text); font-size:11px; border-radius:8px; box-shadow:var(--shadow); pointer-events:none; z-index:2; overflow-wrap:anywhere; }
.chart-tooltip strong { font-size:15px; }
.mobile-money-flow { display:none; }
.flow-takeaway { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 16px; border:1px solid var(--border-soft); border-radius:9px; background:var(--input); }
.flow-takeaway > div:first-child { display:grid; grid-template-columns:auto 1fr; gap:4px 8px; align-items:center; }
.flow-takeaway > div:first-child > span { font-size:10px; color:var(--subtle); grid-column:1/-1; }
.flow-takeaway strong { font-size:23px; font-weight:600; letter-spacing:-.6px; color:var(--positive); }
.flow-takeaway small { font-size:9px; color:var(--muted); max-width:130px; line-height:1.5; }
.flow-takeaway-side { text-align:right; }
.flow-takeaway-side strong { font-size:15px; color:var(--muted); letter-spacing:0; }
.flow-takeaway-side span { display:block; font-size:9px; color:var(--subtle); margin-top:4px; }
.dash-footnote { font-size:10px; color:var(--subtle); line-height:1.7; margin:12px 0 0; }
.dash-data { margin-top:12px; border-top:1px solid var(--border-soft); }
.dash-data > summary { min-height:44px; padding:12px 0 0; font-size:10.5px; color:var(--muted); cursor:pointer; display:flex; align-items:center; gap:7px; list-style:none; }
.dash-data > summary::-webkit-details-marker { display:none; }
.dash-data > summary:hover { color:var(--accent); }
.dash-data[open] > summary { color:var(--accent); margin-bottom:10px; }
.dash-table { width:100%; font-size:11.5px; }
.dash-table th[scope='row'] { text-transform:none; letter-spacing:0; font-weight:500; font-size:11.5px; color:var(--muted); white-space:normal; line-height:1.6; }
.dash-table th:not(:first-child),.dash-table td:not(:first-child) { text-align:right; }
.dash-table th, .dash-table td { padding:13px 10px; }
.dash-table td { color:var(--text); }
.dash-table th[scope='col'] { font-size:9px; line-height:1.5; white-space:normal; }
.text-button { border:0; background:none; color:var(--accent); font-size:11.5px; font-weight:550; min-height:44px; padding:6px 0; text-align:left; line-height:1.6; }
.text-button:hover { color:var(--accent-hover); text-decoration:underline; text-underline-offset:4px; }
.arrow-link { display:inline-flex; align-items:center; gap:8px; }
.cost-ranking > .field { margin-bottom:4px; }
.cost-ranking > .field > label { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
.cost-ranking select { height:40px; min-height:40px; font-size:11px; }
.cost-bars { padding-top:6px; }
.cost-bar-row { display:block; width:100%; padding:12px 0; background:none; border:0; text-align:left; color:var(--text); min-height:54px; }
.cost-bar-title { display:flex; justify-content:space-between; align-items:center; gap:12px; font-size:11.5px; }
.cost-bar-title > span { display:flex; align-items:center; gap:7px; }
.cost-bar-title i, .category-dot { display:inline-block; width:6px; height:6px; border-radius:2px; flex-shrink:0; }
.category-dot { margin-right:7px; }
.cost-bar-title strong { white-space:nowrap; font-weight:600; font-size:12px; }
.cost-bar-track { display:block; height:5px; background:var(--border-soft); border-radius:2px; margin-top:10px; }
.cost-bar-track > span { display:block; height:100%; border-radius:2px; }
.cost-bar-row:hover .cost-bar-title { color:var(--accent); }
.cost-total { display:flex; justify-content:space-between; gap:16px; border-top:1px solid var(--border-soft); margin-top:12px; padding-top:17px; font-size:12px; }
.cost-total span { color:var(--muted); }
.cost-total strong { font-weight:650; }
.contribution-toolbar { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:8px; }
.contribution-toolbar .field { margin:0; max-width:210px; }
.contribution-toolbar label { display:none; }
.contribution-toolbar select { font-size:11px; min-height:40px; height:40px; }
.signed-bar-row { width:100%; display:grid; grid-template-columns:minmax(110px,1fr) minmax(60px,1.1fr) auto; align-items:center; gap:16px; border:0; background:none; color:var(--text); text-align:left; padding:16px 0; border-bottom:1px solid var(--border-soft); }
.signed-bar-row:last-child { border-bottom:0; }
.signed-bar-row:disabled { opacity:1; cursor:default; }
.signed-bar-row:hover:not(:disabled) { color:var(--accent); }
.signed-label { display:flex; gap:10px; align-items:center; min-width:0; }
.signed-label > span:last-child { min-width:0; }
.signed-label strong { display:block; font-size:11.5px; font-weight:550; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.signed-label small { display:block; font-size:9.5px; color:var(--subtle); margin-top:5px; line-height:1.6; }
.signed-label .product-symbol { width:32px; height:36px; border-radius:7px; flex-shrink:0; }
.signed-plot { position:relative; height:25px; background:linear-gradient(to right,var(--border-soft) 1px,transparent 1px) 0 0/25% 100%; }
.signed-zero { position:absolute; top:-4px; bottom:-4px; width:1px; background:var(--subtle); opacity:.65; }
.signed-fill { position:absolute; top:5px; height:15px; background:var(--positive); border-radius:3px; opacity:.7; }
.signed-fill.is-negative { background:var(--negative); }
.signed-amount { display:flex; align-items:center; gap:7px; font-size:12px; font-weight:600; min-width:60px; justify-content:flex-end; }
.signed-amount .icon { color:var(--subtle); }
.signed-bar-row:hover:not(:disabled) .signed-fill { opacity:1; }
.mobile-products-table { display:none; }
.product-table-name { font-size:11px; max-width:180px; }
.insight-items { display:flex; flex-direction:column; }
.dash-insight { padding:15px 0; border-bottom:1px solid var(--border-soft); }
.dash-insight:first-child { padding-top:0; }
.dash-insight:last-child { border-bottom:0; padding-bottom:0; }
.insight-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.insight-number { color:var(--subtle); font-size:10px; letter-spacing:1px; }
.insight-top strong { font-size:12px; font-weight:600; color:var(--info); background:var(--info-soft); border-radius:5px; padding:4px 8px; }
.dash-insight.warn .insight-top strong { color:var(--warning); background:var(--warning-soft); }
.dash-insight.danger .insight-top strong { color:var(--negative); background:var(--negative-soft); }
.dash-insight.good .insight-top strong { color:var(--positive); background:var(--positive-soft); }
.dash-insight h3 { font-size:12px; font-weight:600; line-height:1.6; }
.dash-insight p { color:var(--subtle); font-size:10.5px; line-height:1.8; margin-top:6px; }
.dash-insight p.insight-product { color:var(--muted); font-weight:550; }
.dash-insight .text-button { font-size:10.5px; margin-top:3px; }
.axis-caption { font-size:9px; color:var(--subtle); letter-spacing:.6px; margin:8px 0; text-transform:uppercase; }
.axis-caption-center { text-align:center; }
.channel-card .signed-bar-row { grid-template-columns:minmax(100px,1fr) minmax(70px,1fr) auto; }
.channel-card .signed-label small { max-width:130px; font-size:9px; }
.volume-breakeven { text-align:right; max-width:115px; flex-shrink:0; }
.volume-breakeven small { color:var(--subtle); font-size:9px; display:block; line-height:1.5; }
.volume-breakeven strong { display:block; font-size:23px; margin-top:4px; font-weight:550; }
.dashboard-model-note { display:flex; gap:24px; align-items:center; justify-content:space-between; margin:24px 0 0; padding:18px 0; border-top:1px solid var(--border-soft); }
.dashboard-model-note > div { display:flex; align-items:center; gap:14px; }
.dashboard-model-note > div > .icon { color:var(--subtle); flex-shrink:0; }
.dashboard-model-note strong { font-size:11px; font-weight:600; color:var(--muted); }
.dashboard-model-note p { font-size:10px; color:var(--subtle); margin-top:5px; line-height:1.7; max-width:650px; }
.dashboard-model-note .text-button { flex-shrink:0; font-size:10px; }
.sample-note,.scope-fixed-note { font-size:10px; color:var(--subtle); display:flex; gap:7px; align-items:center; margin:12px 0 0; line-height:1.6; }
.sample-note .icon,.scope-fixed-note .icon { flex-shrink:0; }
.dashboard-warnings .notice { margin:16px 0; }
.dashboard-warnings .notice .text-button { display:flex; }
.dashboard-detail-modal { width:min(760px,calc(100vw - 40px)); }
.dashboard-detail-modal .money-row { padding:14px 0; }
.detail-amount { font-size:38px; letter-spacing:-1px; margin:8px 0 16px; font-weight:600; }
.detail-badges { display:flex; gap:8px; margin-bottom:18px; }
.dashboard-detail-modal .dash-table { margin-top:18px; }
.dashboard-detail-modal .modal-actions,.scenario-modal .modal-actions { flex-wrap:wrap; }
.cost-overview-amount { display:flex; flex-direction:column; gap:7px; margin:28px 0; }
.cost-overview-amount > span { font-size:12px; color:var(--muted); }
.cost-overview-amount > strong { font-size:40px; font-weight:600; letter-spacing:-1.3px; }
.cost-overview-amount > small { color:var(--subtle); font-size:11px; }
.expense-stack { display:flex; height:17px; border-radius:5px; overflow:hidden; margin:25px 0; gap:3px; }
.expense-stack button { border:0; height:100%; min-width:0; }
.expense-stack button:focus { outline:2px solid var(--text); outline-offset:-2px; }
.model-source-list > div { margin-top:15px; }
.model-source-list dt { font-size:11.5px; font-weight:600; margin-bottom:5px; }
.model-source-list dd { color:var(--subtle); font-size:11px; line-height:1.75; }
.scenario-modal { width:min(1040px,calc(100vw - 48px)); }
.scenario-layout { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:26px; }
.scenario-inputs { padding:20px; background:var(--input); border:1px solid var(--border-soft); border-radius:10px; }
.scenario-inputs .input-wrap { background:var(--surface); }
.scenario-results { min-width:0; }
.scenario-impact { padding:20px; background:var(--positive-soft); border:1px solid var(--profit-border); border-radius:10px; margin-bottom:14px; display:flex; flex-direction:column; gap:8px; }
.scenario-impact > span { font-size:11px; color:var(--muted); }
.scenario-impact strong { font-size:35px; color:var(--positive); letter-spacing:-1px; }
.scenario-impact small { color:var(--muted); font-size:10px; }
.scenario-impact.is-negative { background:var(--negative-soft); border-color:var(--negative); }
.scenario-impact.is-negative strong { color:var(--negative); }
.scenario-curve { border:1px solid var(--border-soft); border-radius:10px; padding:18px 18px 8px; margin-top:22px; }
.chart-legend { display:flex; justify-content:center; gap:22px; font-size:11px; color:var(--muted); }
.chart-legend > span { display:flex; align-items:center; gap:7px; }
.chart-legend i { width:14px; height:3px; display:block; }
.snapshot-name-field { margin-top:20px; }
.lab-back { margin:-10px 0 12px; }
.lab-back .text-button { font-size:11px; }
.plans-selection { display:flex; gap:12px; align-items:flex-end; flex-wrap:wrap; margin-bottom:20px; }
.plans-selection > .field { min-width:220px; margin:0; flex:1; }
.plan-editor-layout { display:grid; grid-template-columns:minmax(0,1fr) 285px; gap:22px; align-items:start; }
.plan-editor-main { min-width:0; display:flex; flex-direction:column; gap:24px; }
.plan-meta-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.plan-meta-fields .field { margin:0; }
.plan-meta-fields small { display:block; color:var(--subtle); font-size:10px; margin-top:8px; }
.plan-sample-note { display:flex; gap:20px; align-items:center; justify-content:space-between; margin-top:18px; padding-top:16px; border-top:1px solid var(--border-soft); }
.plan-sample-note p { font-size:11px; color:var(--subtle); line-height:1.7; }
.plan-sample-note .btn { max-width:200px; flex-shrink:0; }
.plan-search { margin:18px 0; }
.plan-product-card { border:1px solid var(--border); border-radius:12px; padding:20px; background:var(--surface); margin-top:14px; }
.plan-product-card.is-excluded { background:transparent; }
.plan-product-top { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.plan-product-name { display:flex; align-items:center; gap:12px; min-width:0; }
.plan-product-name .product-symbol { flex-shrink:0; width:36px; height:40px; }
.plan-product-name h3 { font-size:13px; line-height:1.5; }
.plan-product-name p { color:var(--subtle); font-size:10px; margin-top:3px; }
.include-toggle { display:flex; align-items:center; gap:7px; font-size:10px; color:var(--muted); flex-shrink:0; min-height:44px; cursor:pointer; }
.include-toggle input, .review-cost-row input { width:17px; height:17px; accent-color:var(--accent); flex-shrink:0; }
.plan-line-fields { margin-top:20px; display:grid; grid-template-columns:1.1fr 1fr 1fr .8fr; gap:13px; }
.plan-line-fields .field { margin:0; }
.plan-line-fields .field label { font-size:10px; }
.plan-line-fields .field small { min-height:0; font-size:10px; }
.plan-line-fields .input-wrap input { padding:10px; }
.organic-share-readout { display:flex; flex-direction:column; justify-content:flex-start; padding:0 8px; }
.organic-share-readout span { font-size:10px; color:var(--subtle); margin-bottom:14px; }
.organic-share-readout strong { font-size:20px; color:var(--positive); font-weight:550; }
.review-cost-row { margin-top:14px; border-top:1px solid var(--border-soft); padding-top:12px; }
.review-cost-row label { display:flex; align-items:center; gap:9px; font-size:10.5px; line-height:1.7; color:var(--muted); min-height:44px; cursor:pointer; }
.review-cost-row small { display:block; color:var(--subtle); font-size:9px; margin-left:26px; }
.plan-line-actions { display:flex; justify-content:space-between; gap:12px; padding-top:5px; }
.plan-line-actions .text-button { font-size:10px; }
.plan-live-summary { position:sticky; top:94px; }
.plan-live-summary .badge { margin-bottom:18px; }
.plan-live-summary h2 { font-size:13px; color:var(--muted); }
.plan-profit { display:block; font-size:34px; margin:12px 0; font-weight:600; letter-spacing:-1px; color:var(--positive); overflow-wrap:anywhere; }
.plan-live-summary .money-row { padding:13px 0; font-size:11px; }
.plan-live-summary .btn { width:100%; margin-top:16px; }
.plan-live-summary .dash-footnote { margin-bottom:12px; }
.plan-partial-note { font-size:10px; color:var(--warning); line-height:1.7; margin:15px 0; }
.fixed-expense-line { display:grid; grid-template-columns:minmax(0,1fr) minmax(110px,.6fr) 44px; gap:14px; align-items:center; margin-top:16px; }
.fixed-expense-line .field { margin:0; }
.fixed-expense-line .field label { font-size:10px; }
.snapshot-section { margin-top:24px; }
.snapshot-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.snapshot-tile { border:1px solid var(--border-soft); border-radius:10px; background:var(--input); padding:18px; min-width:0; }
.snapshot-tile-top { display:flex; justify-content:space-between; align-items:center; color:var(--accent); margin-bottom:10px; }
.snapshot-tile h3 { font-size:12px; margin-bottom:7px; line-height:1.5; }
.snapshot-tile small { color:var(--subtle); font-size:10px; }
.snapshot-profit { display:block; font-size:26px; font-weight:550; margin:20px 0 12px; }
.snapshot-tile p { font-size:10px; color:var(--muted); }
.snapshot-tile .text-button { font-size:10px; margin-top:8px; }
.dash-pagination { display:flex; justify-content:flex-end; align-items:center; gap:12px; margin-top:14px; font-size:11px; color:var(--subtle); }
.legacy-tools-links { display:flex; justify-content:flex-end; margin-top:15px; }
.bottom-nav { grid-template-columns:repeat(4,minmax(0,1fr)); }
.sidebar { overflow-y:auto; scrollbar-width:thin; }
@media (min-width:1600px) { .page-container { max-width:1700px; padding:32px 38px; } .dash-card { padding:25px; } .dash-main-grid,.dash-secondary-grid { grid-template-columns:minmax(0,2fr) minmax(320px,1fr); } }
@media (max-width:1279px) { .dash-heading { flex-wrap:wrap; gap:16px; } .dash-heading h1 { font-size:27px; } .dash-filterbar { padding:14px; gap:12px; } .dash-filter-fields { gap:10px; } .dash-kpi { padding:17px 16px; } .kpi-value { font-size:28px; } .dash-card { padding:18px; } .dash-card-head h2 { font-size:14px; } .dash-micro-kpis > div { padding:0 10px; gap:6px; } .dash-micro-kpis .icon { display:none; } .dash-main-grid,.dash-secondary-grid { grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr); } .contribution-card .dash-card-head { flex-wrap:wrap; } .signed-bar-row { gap:10px; } .plan-editor-layout { grid-template-columns:minmax(0,1fr) 265px; gap:18px; } .plan-line-fields { grid-template-columns:repeat(2,minmax(0,1fr)); } .snapshot-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:1099px) { .dash-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); } .kpi-value { font-size:33px; margin:15px 0; } .dash-main-grid,.dash-secondary-grid,.dash-bottom-grid { grid-template-columns:minmax(0,1fr); } .dash-filterbar { grid-template-columns:minmax(0,1fr); } .dash-filter-fields { grid-template-columns:repeat(4,minmax(0,1fr)); } .plan-filter { max-width:340px; } .scope-strip { row-gap:8px; } .cost-bars { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 28px; } .cost-ranking > .field { max-width:260px; } .cost-ranking .dash-footnote { margin:10px 0; } .cost-total { margin-top:12px; } .insight-items { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px; } .dash-insight { padding:0; border:0; } .dash-insight .text-button { min-height:44px; } .dash-card-head h2 { font-size:16px; } .dash-card { padding:22px; } .plan-editor-layout { grid-template-columns:minmax(0,1fr); } .plan-live-summary { position:static; } .plan-live-summary .card { display:grid; grid-template-columns:1fr 1fr; column-gap:25px; } .plan-live-summary .badge,.plan-live-summary .plan-partial-note,.plan-live-summary h2 { grid-column:1/-1; width:max-content; max-width:100%; } .plan-live-summary .plan-profit { grid-column:1/-1; } .plan-live-summary .dash-footnote { grid-column:1/-1; } .plan-line-fields { grid-template-columns:repeat(4,minmax(0,1fr)); } .dashboard-model-note { align-items:flex-start; } }
@media (max-width:760px) { .dash-head-actions { width:100%; } .dash-heading { flex-direction:column; align-items:flex-start; } .dash-micro-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 16px; } .dash-micro-kpis > div { border:0; padding:0; } .dash-filter-fields { grid-template-columns:repeat(2,minmax(0,1fr)); } .scope-tail { width:100%; margin-left:0; } .insight-items { grid-template-columns:minmax(0,1fr); gap:0; } .dash-insight { padding:15px 0; border-bottom:1px solid var(--border-soft); } .dash-card-head { flex-wrap:wrap; } .scenario-layout { grid-template-columns:minmax(0,1fr); gap:18px; } .plan-line-fields { grid-template-columns:repeat(2,minmax(0,1fr)); } .dashboard-model-note { flex-direction:column; gap:8px; } .snapshot-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .flow-takeaway small { max-width:100px; } }
@media (max-width:639px) { .dash-heading h1 { font-size:28px; margin-top:9px; } .dash-description { font-size:12px; } .dash-heading { margin-bottom:20px; } .dash-head-actions { gap:8px; } .dash-head-actions .btn { flex:1; padding:10px 9px; font-size:11px; } .dash-filterbar { padding:13px; } .plan-filter { max-width:none; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; align-items:flex-end; } .mobile-filter-toggle { display:inline-flex !important; font-size:11px !important; } .dash-filter-fields { display:none; } .dash-filter-fields.is-open { display:grid; } .dash-filterbar select { min-height:44px; height:44px; font-size:13px; } .dash-filterbar .field > label { font-size:11px; } .scope-strip { font-size:10px; gap:8px; margin:14px 0; } .scope-tail { font-size:9px; } .dash-kpis { gap:10px; } .dash-kpi { padding:16px 13px 14px; border-radius:10px; } .kpi-top { font-size:10.5px; align-items:flex-start; min-height:29px; } .kpi-top .icon { width:15px; height:15px; } .kpi-value { font-size:27px; margin:13px 0 15px; letter-spacing:-.7px; } .kpi-context { font-size:9px; gap:5px; } .kpi-bottom > .icon { display:none; } .kpi-difference { font-size:9px; } .dash-micro-kpis { margin:17px 0; gap:13px; } .dash-micro-kpis span { font-size:10px; } .dash-micro-kpis strong { font-size:11px; } .dash-grid { gap:14px; margin-top:14px; } .dash-card { padding:18px 16px; border-radius:12px; } .dash-card-head { gap:12px; margin-bottom:13px; } .dash-card-head h2 { font-size:15px; } .dash-card-head p { font-size:11px; } .flow-segments { display:flex; width:100%; padding:3px; margin:8px 0 12px; } .flow-segments button { padding:8px 5px; min-height:44px; font-size:10px !important; flex:1; } .desktop-flow { display:none; } .mobile-money-flow { display:block; } .flow-mobile-row { width:100%; border:0; border-bottom:1px solid var(--border-soft); background:none; color:var(--text); display:flex; align-items:center; gap:10px; text-align:left; min-height:61px; padding:11px 0; } .flow-mobile-icon { display:flex; justify-content:center; align-items:center; width:26px; font-size:21px; flex-shrink:0; } .flow-mobile-label { display:flex; flex-direction:column; font-size:11.5px; flex:1; gap:4px; min-width:0; } .flow-mobile-label small { font-size:9px; color:var(--subtle); } .flow-mobile-row > strong { font-size:12px; font-weight:600; white-space:nowrap; } .flow-total { border:0; color:var(--positive); margin-bottom:8px; } .flow-total .flow-mobile-label > span { font-weight:650; } .flow-total > strong { font-size:17px; } .flow-takeaway { padding:12px; flex-direction:column; align-items:flex-start; gap:12px; margin-top:8px; } .flow-takeaway > div:first-child { grid-template-columns:auto 1fr; width:100%; gap:7px; } .flow-takeaway > div:first-child > span { font-size:10px; } .flow-takeaway small { max-width:none; font-size:10px; } .flow-takeaway-side { display:flex; align-items:center; gap:8px; width:100%; border-top:1px solid var(--border-soft); padding-top:9px; text-align:left; } .flow-takeaway-side span { font-size:9px; margin:0; } .cost-bars { grid-template-columns:minmax(0,1fr); gap:0; } .cost-ranking > .field { max-width:none; } .cost-bar-title { font-size:12px; } .cost-bar-row { padding:14px 0; } .cost-bar-track { height:6px; margin-top:12px; } .signed-bar-row { grid-template-columns:minmax(0,1fr) auto; gap:12px; padding:15px 0; } .signed-label { grid-column:1; } .signed-label strong { font-size:12px; } .signed-amount { grid-column:2; grid-row:1; font-size:12px; } .signed-plot { grid-column:1/-1; grid-row:2; margin:0 0 0 43px; height:17px; } .signed-fill { height:11px; top:3px; } .signed-label small { font-size:10px; } .signed-zero { top:-1px; bottom:-1px; } .channel-card .signed-bar-row { grid-template-columns:minmax(0,1fr) auto; } .channel-card .signed-label small { max-width:200px; font-size:10px; } .channel-card .signed-plot { margin-left:0; } .contribution-toolbar { margin-top:5px; } .contribution-toolbar select { max-width:180px; font-size:11px; } .desktop-products-table { display:none; } .mobile-products-table { display:block; } .mobile-product-data { display:flex; flex-direction:column; gap:10px; width:100%; border:1px solid var(--border-soft); border-radius:9px; background:var(--input); color:var(--text); padding:15px; text-align:left; margin-top:12px; } .mobile-product-data > strong { margin-bottom:4px; font-size:12px; line-height:1.5; } .mobile-product-data > span { display:flex; justify-content:space-between; gap:10px; color:var(--subtle); font-size:11px; } .mobile-product-data b { color:var(--text); font-weight:500; } .dash-insight h3 { font-size:13px; } .dash-insight p { font-size:11px; } .dash-insight .text-button { font-size:11px; } .dashboard-detail-modal,.scenario-modal { width:100vw; max-width:none; height:100dvh; max-height:100dvh; border:0; border-radius:0; margin:0; } .dashboard-detail-modal .modal-body,.scenario-modal .modal-body { padding:18px 16px calc(20px + env(safe-area-inset-bottom)); } .dashboard-detail-modal .modal-heading,.scenario-modal .modal-heading { padding:17px 16px; } .dashboard-detail-modal .modal-heading h2,.scenario-modal .modal-heading h2 { font-size:17px; } .scenario-inputs { padding:16px; } .scenario-modal .input-wrap input,.scenario-modal select { font-size:16px; } .scenario-modal .modal-actions .btn { min-height:44px; flex:1; font-size:11px; } .dashboard-detail-modal .modal-actions .btn { flex:1; min-height:44px; } .scenario-curve { padding:14px 8px 4px; } .plan-meta-fields { grid-template-columns:minmax(0,1fr); gap:16px; } .plan-sample-note { align-items:flex-start; flex-direction:column; gap:8px; } .plan-sample-note .btn { max-width:none; } .plans-selection { gap:9px; } .plans-selection > .field { flex-basis:100%; min-width:0; } .plans-selection > .btn { flex:1; font-size:11px; } .plan-product-card { padding:16px; } .plan-product-top { align-items:flex-start; flex-direction:column; gap:7px; } .plan-product-name h3 { font-size:13px; } .include-toggle { align-self:flex-end; margin-top:-5px; } .plan-line-fields { margin-top:12px; gap:12px; } .plan-line-fields .input-wrap input { font-size:16px; } .review-cost-row label { font-size:11px; align-items:flex-start; padding:8px 0; } .review-cost-row input { margin-top:3px; } .review-cost-row small { font-size:9px; line-height:1.7; } .plan-line-actions { flex-wrap:wrap; } .plan-line-actions .text-button { font-size:11px; } .fixed-expense-line { grid-template-columns:minmax(0,1fr) 44px; gap:8px; } .fixed-expense-line > .field:first-child { grid-column:1/-1; } .fixed-expense-line > .field:nth-child(2) { grid-column:1; } .fixed-expense-line input { font-size:16px; } .snapshot-grid { grid-template-columns:minmax(0,1fr); } .plan-live-summary .card { display:block; } .plan-live-summary .money-row { font-size:12px; } .snapshot-profit { font-size:29px; } .snapshot-tile h3 { font-size:13px; } .sample-note,.scope-fixed-note { font-size:10px; align-items:flex-start; } .scope-fixed-note { flex-wrap:wrap; } .dash .input-wrap input { min-width:0; } .dashboard-model-note p { font-size:10.5px; } .bottom-nav .nav-item { font-size:9px; } }
@media (max-width:359px) { .dash-heading h1 { font-size:25px; } .kpi-value { font-size:23px; } .dash-kpi { padding:14px 11px; } .kpi-top { font-size:10px; } .kpi-top .icon { display:none; } .kpi-context { font-size:8.5px; } .dash-card { padding:17px 13px; } .flow-mobile-label { font-size:11px; } .flow-mobile-row { gap:7px; } .flow-mobile-row > strong { font-size:11px; } .signed-label strong { font-size:11px; } .signed-amount { font-size:11px; } .dash-head-actions .btn { font-size:10px; padding:9px 7px; } }
@media (prefers-reduced-motion:reduce) { .dash *, .scenario-modal *, .dashboard-detail-modal * { transition:none !important; animation:none !important; scroll-behavior:auto !important; } }
@media print { .sidebar,.topbar,.bottom-nav,.dash-head-actions,.dash-filterbar,.page-footer { display:none !important; } .app-main { margin:0; } .dash-grid { display:block; } .dash-card,.dash-kpi { break-inside:avoid; margin-bottom:15px; } .page-container { padding:0; } }

/* The colored strip is descriptive; the table below provides full-size actions. */
.expense-stack{height:20px}.expense-stack span{display:block;height:20px}.loss-filter{margin-bottom:10px;color:var(--negative)}
@media(min-width:1100px){.dash-kpi .kpi-value{font-size:clamp(25px,2.2vw,34px)}}

/* Scenario actions stay visible without covering scrollable fields. */
.scenario-modal .modal-body{flex:1;scroll-padding-bottom:24px}
.modal-footer{flex-shrink:0;padding:14px 23px max(14px,env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--border)}
.modal-footer .modal-actions{margin:0;padding:0;border:0}
.flow-unconfirmed{color:var(--muted)!important}.flow-loss,.takeaway-loss>div:first-child strong{color:var(--negative)!important}
@media(max-width:639px){.modal-footer{padding:12px 16px max(12px,env(safe-area-inset-bottom))}.modal-footer .btn{font-size:11px;min-height:44px}}
