:root{--ui:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;--ink-2:#526277;--cost-raw:#db985b;--cost-other:#7d91ab}
.analysis-tools{margin:16px 0 10px}
.analysis-tools input[type=search]{width:290px;max-width:100%;font:13px inherit;border:1px solid var(--line);border-radius:8px;padding:8px 10px}
.analysis-tools .switch-label{align-self:flex-end;padding-bottom:8px}
.subheading{margin-top:24px}
.subheading h3{margin:0;font-size:16px}
.tablewrap .tree-name{min-width:300px;max-width:430px;white-space:normal;text-align:left;position:sticky;left:0;z-index:1;background:inherit}
.tree-table th:first-child{z-index:3}
.tree-table thead th{position:sticky;top:0}
.tree-cell{display:flex;gap:7px;align-items:center;padding-left:var(--indent)}
.tree-cell button{font:inherit;color:inherit;border:0;background:transparent;cursor:pointer;text-align:left;line-height:1.4;padding:3px 0;overflow-wrap:anywhere}
.tree-cell button:hover{color:var(--brand2);text-decoration:underline}
.tree-toggle{width:17px;flex:none}
.state-label{font:10px system-ui;color:var(--muted);display:block}
.delta-line{font:11px system-ui;display:block;color:var(--muted);margin-top:3px}
.cost-up{color:var(--bad)}
.cost-down{color:var(--good)}
.overview-kpis{grid-template-columns:1.3fr 1fr 1fr}
.overview-kpis .v{font-size:30px}
.overview-meta{line-height:1.7}
@media(max-width:750px){.overview-kpis{grid-template-columns:1fr}
.overview-kpis>.kpi:first-child{grid-column:auto}
.analysis-tools .field{min-width:100%}
.analysis-tools input[type=search]{width:100%}
.tablewrap .tree-name{min-width:190px;max-width:220px}
.tree-cell{padding-left:min(var(--indent),30px)}
.overview-kpis .v{font-size:28px}
}
.tree-open{background:none;border:0;color:var(--brand2);font:inherit;cursor:pointer;text-align:left;padding:0}
.tree-open:hover{text-decoration:underline}
.tree-table thead tr:nth-child(2) th{top:40px}
.tree-table thead tr:first-child th[rowspan]{vertical-align:middle}
.tree-table thead tr:first-child th:not([rowspan]){text-align:center}
#overviewPanel{margin-top:10px;padding:14px 16px}
#overviewPanel>.section-heading h2{font-size:19px}
#overviewPanel>.overview-kpis .kpi{padding:12px 16px}
.analysis-tools{gap:8px 12px}
.analysis-tools select{min-height:34px;padding:5px 9px}
.tablewrap .row-total .tree-name{background:#eef2f8}
.tablewrap .row-dept .tree-name{background:#fce4d6}
.tablewrap .row-g40 .tree-name{background:#edf4fb}
.tablewrap .row-group .tree-name{background:#f8f9fb}
.delta-line{font-size:11px}
.overview-kpis{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px}
.overview-kpis .v{font-size:28px!important;margin-top:9px}
.overview-kpis .s{display:flex;gap:6px;align-items:baseline;flex-wrap:wrap}
.overview-kpis .s .delta-line{display:inline;margin:0}
.overview-meta{gap:10px 22px;margin-top:14px}
.overview-action{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:20px;padding:16px 18px;background:#f8f9fb;border:1px solid var(--line);border-radius:9px;font-size:13px}
.overview-action .btn{flex:none}
#overviewPanel,#costPanel{padding:20px;margin-top:14px;border-radius:10px}
#costPanel>.section-heading h2{font-size:22px}
#costPanel .eyebrow{font-size:10px;margin-bottom:5px}
#costPanel h3{font-size:15px;margin:0}
.subheading{align-items:end}
.table-secondary{display:block;margin-top:3px;background:none;border:0;color:var(--muted);font:11px inherit;padding:0;cursor:pointer}
.table-secondary:hover{color:var(--brand2)}
.state-label{font-size:11px;line-height:1.5}
.cost-mode{display:flex;gap:0;flex:none;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.cost-mode button{border:0;background:#fff;padding:9px 12px;color:var(--muted);font:600 12px var(--ui);cursor:pointer}
.cost-mode button+button{border-left:1px solid var(--line)}
.cost-mode button.active{background:var(--brand);color:#fff}
.cost-result{display:flex;gap:25px;justify-content:space-between;align-items:center;margin:16px 0 18px;padding:18px 20px;background:#f7f8fa;border:1px solid var(--line);border-radius:9px}
.result-label{font-size:13px;color:var(--ink-2);margin-bottom:6px}
.result-number{font-size:32px;font-weight:700;font-variant-numeric:tabular-nums;line-height:1.2;letter-spacing:-.025em}
.cost-result p{font-size:12px;color:var(--muted);line-height:1.9;margin:0}
.cost-result p b{color:var(--ink);font-weight:600}
.cost-bridge{display:grid;grid-template-columns:1fr 18px 1fr 18px 1fr 18px 1fr;gap:8px;align-items:center;margin:16px 0 24px}
.cost-step{padding:14px;border:1px solid var(--line);border-radius:8px;min-width:0}
.cost-step>span{display:block;font-size:12px;color:var(--muted);min-height:17px}
.cost-step strong{display:block;font-size:21px;font-variant-numeric:tabular-nums;line-height:1.25;margin-top:8px;overflow-wrap:anywhere}
.cost-step small{display:block;color:var(--muted);font-size:10.5px;line-height:1.5;margin-top:8px}
.cost-step-change{background:#fcfcfd}
.cost-step-arrow{color:#9aa5b3;text-align:center}
.cost-reading{display:grid;grid-template-columns:minmax(270px,.8fr) minmax(0,1.5fr);gap:24px;align-items:start;border-top:1px solid var(--line);padding-top:22px}
.cost-reading .section-heading{margin-bottom:14px}
.cost-reading>section{min-width:0}
.cost-reading .tablewrap{margin-top:0;max-height:none}
.cost-reading .tablewrap td{padding:10px 11px;font-size:12px}
.cost-reading .tablewrap th{font-size:11px;padding:10px;min-width:90px}
.cost-reading .tablewrap td.left{min-width:170px;max-width:260px}
.cost-row-totalCost>td{font-weight:700!important;background:#f3f5f8!important}
.cost-row-other>td{border-top:1px solid var(--line)}
.cost-child{padding-left:24px!important;color:var(--muted)}
.cost-row-residual>td{color:var(--muted)}
.cost-source-details{margin-top:12px;font-size:12px}
.cost-source-details summary{cursor:pointer;color:var(--ink-2);padding:7px 0;font-weight:550}
.cost-source-details[open] .tablewrap{margin-top:6px}
.cost-source-details p{line-height:1.5}
.composition-period{margin:0 0 22px}
.composition-heading{display:flex;gap:12px;align-items:baseline;justify-content:space-between;font-size:12px;line-height:1.5;margin-bottom:9px}
.composition-heading>span{color:var(--muted)}
.composition-heading strong{white-space:nowrap;font-size:13px;font-variant-numeric:tabular-nums}
.composition-track{display:flex;gap:2px;height:19px;background:#eef1f5;border-radius:4px;overflow:hidden}
.composition-raw{background:var(--cost-raw)}
.composition-other{background:var(--cost-other)}
.composition-legend{display:flex;gap:8px;flex-direction:column;margin-top:10px;font-size:11.5px;color:var(--muted)}
.composition-legend span{display:flex;align-items:center;gap:6px}
.composition-legend b{color:var(--ink-2);font-weight:550;margin-left:auto;font-variant-numeric:tabular-nums}
.raw-dot,.other-dot{display:inline-block;width:7px;height:7px;border-radius:2px;flex:none}
.raw-dot{background:var(--cost-raw)}
.other-dot{background:var(--cost-other)}
.composition-unknown{padding:10px;background:#f7f8fa;border-radius:5px;color:var(--muted);font-size:12px}
.cost-article-action{display:flex;gap:16px;justify-content:space-between;padding:16px;align-items:center;font-size:13px}
.article-cost .cost-bridge{margin:12px 0}
.article-cost .cost-step strong{font-size:18px}
.analysis-tools{background:#f8f9fb;padding:12px;border:1px solid var(--line);border-radius:9px;align-items:end}
.analysis-tools select,.analysis-tools input[type=search]{min-height:35px}
.analysis-tools .field{gap:5px}
.analysis-tools .field:has(#search){flex:1;min-width:190px}
.analysis-tools #search{width:100%}
.analysis-tools label:has(input[type=checkbox]){font-size:11px;gap:5px}
#metricsPanel .tree-table{max-height:67vh}
#metricTable th:first-child{min-width:270px}
#metricTable tfoot td{position:sticky;bottom:0;border-top:1px solid var(--line);font-weight:700}
@media(max-width:1100px){.cost-reading{grid-template-columns:1fr}
.cost-reading>section:first-child{display:grid;grid-template-columns:1fr 1fr;gap:10px 22px}
.cost-reading>section:first-child .section-heading{grid-column:1/-1}
.cost-reading>section:first-child #costComposition{display:contents}
.cost-step strong{font-size:18px}
.overview-kpis .v{font-size:23px!important}
}
@media(max-width:700px){#overviewPanel,#costPanel{padding:15px 12px}
.overview-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px}
.overview-kpis>.kpi:first-child{grid-column:auto!important}
.overview-kpis .v{font-size:21px!important}
.overview-kpis .l{font-size:10.5px}
.overview-kpis .kpi{padding:12px!important}
.overview-kpis .s{font-size:10px}
.overview-action{padding:12px;align-items:flex-start;flex-direction:column;font-size:12px}
.overview-action .btn{width:100%}
#costPanel>.section-heading{align-items:flex-start;gap:12px}
#costPanel>.section-heading h2{font-size:20px}
.cost-mode{width:100%}
.cost-mode button{flex:1;font-size:11px;padding:9px}
.cost-result{padding:14px;gap:10px;align-items:flex-start;flex-direction:column}
.result-number{font-size:28px}
.cost-result p{font-size:11px}
.cost-bridge{grid-template-columns:1fr 1fr;gap:8px;margin:12px 0 20px}
.cost-step-arrow{display:none}
.cost-step{padding:10px}
.cost-step strong{font-size:17px}
.cost-step>span{font-size:10.5px;min-height:29px}
.cost-step small{font-size:10px}
.cost-reading{gap:18px;padding-top:16px}
.cost-reading>section:first-child{display:block}
.composition-period{margin-bottom:16px}
.cost-reading .tablewrap{overflow-x:auto}
.cost-reading .tablewrap td.left{min-width:150px}
.cost-reading .tablewrap td{font-size:11px;padding:9px}
.cost-reading .tablewrap th{font-size:10px;min-width:90px}
.analysis-tools{padding:10px}
.analysis-tools .field{min-width:0!important;flex:1 1 43%}
.analysis-tools .field:has(#search){min-width:100%!important;order:-1}
.analysis-tools input[type=search]{font-size:12px}
#metricTable th:first-child{min-width:210px}
.cost-article-action{align-items:stretch;flex-direction:column}
.article-cost .cost-step strong{font-size:15px}
}
#costPanel{scroll-margin-top:145px}
@media(max-width:1100px){#costPanel{scroll-margin-top:65px}
}
#metricTable th:first-child{text-align:left}
.result-relative{font-size:15px;font-weight:600;margin-top:7px}
#costPanel{scroll-margin-top:190px}
@media(max-width:1100px){#costPanel{scroll-margin-top:65px}
}
@media(max-width:700px){.result-relative{font-size:14px}
}

.navtabs{overflow-x:auto;flex-wrap:nowrap}.navtab{white-space:nowrap;flex:none}
.shared-search{flex:1;min-width:180px}.shared-search input{width:100%;font:12px system-ui;padding:8px 10px;border:1px solid var(--line);border-radius:6px}
#overviewPanel,#metricsPanel,#costPanel{padding:20px}#metricsPanel .tree-table{max-height:67vh}
@media(max-width:700px){.shared-search{grid-column:1/-1;min-width:0}#overviewPanel,#metricsPanel,#costPanel{padding:15px 12px}.navtabs{max-width:100%;gap:18px}.cost-mode{flex-wrap:wrap}.cost-mode button{white-space:normal}}
