:root{--bg:#f7f8f6;--panel:#fff;--ink:#24343b;--muted:#52636b;--line:#d9e0e1;--accent:#8a4b32;--copper:#a05f46;--good:#267555;--bad:#ad4939;--soft:#edf2ef;--variable:#7f969f;--fixed:#bdab94;--total:#3f626e;--shadow:0 8px 30px #23343b06;color-scheme:light}
:root[data-theme=dark]{--bg:#0b1418;--panel:#132127;--ink:#cbd6da;--muted:#a0b2bb;--line:#30454f;--accent:#d6af9b;--copper:#d58972;--good:#79c5a1;--bad:#ec9c83;--soft:#192e2b;--variable:#799eae;--fixed:#bcab95;--total:#9cbac6;--shadow:none;color-scheme:dark}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.55 var(--sans)}button,input{font:inherit}button,a,input,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:var(--accent);text-underline-offset:4px}:is(a,button,input,summary):focus-visible{outline:2px solid var(--accent);outline-offset:4px}.wrap{max-width:1440px;padding:0 42px;margin:auto}.nav{display:flex;align-items:center;gap:24px;min-height:80px;border-bottom:1px solid var(--line)}.brand{color:var(--ink);text-decoration:none;font-size:21px;letter-spacing:-1px}.brand span{color:var(--copper)}.prototype{font:10px/1.5 var(--mono);letter-spacing:1.4px;color:var(--muted);margin-left:auto}.theme{display:flex}.theme button{background:var(--panel);color:var(--ink);border:1px solid var(--line);padding:8px 14px;min-height:40px;font-size:12px}.theme button+button{border-left:0}.theme button[aria-pressed=true]{background:var(--ink);color:var(--bg)}.skip{position:absolute;top:-100px;left:20px;padding:14px;background:var(--panel);z-index:30}.skip:focus{top:10px}.intro{display:flex;justify-content:space-between;gap:32px;padding:34px 0 26px}.eyebrow{font:10px/1.5 var(--mono);letter-spacing:1.4px;color:var(--accent);margin:0 0 12px;display:block}h1,h2,h3,p{margin-top:0}h1{font-size:42px;line-height:1.08;letter-spacing:-1.6px;font-weight:400;margin-bottom:15px}h1 span{color:var(--muted)}h2{font-weight:400;font-size:21px;letter-spacing:-.5px;line-height:1.25;margin:0 0 9px}h3{font-size:15px;font-weight:500}.lead{font-size:15px;max-width:62ch;color:var(--muted);margin-bottom:0}.period{display:flex;flex-direction:column;text-align:right;justify-content:flex-end;gap:8px;flex-shrink:0}.period span{font-size:12px;color:var(--muted)}.period strong{font-size:24px;font-weight:400;letter-spacing:-.5px}.period small{font-size:11px;color:var(--muted);line-height:1.6}.presets{display:flex;align-items:center;gap:8px;flex-wrap:wrap;border-top:1px solid var(--line);padding:16px 0 20px}.presets>span{font-size:12px;color:var(--muted);margin-right:10px}.presets button{border:1px solid var(--line);background:var(--panel);color:var(--ink);padding:10px 13px;min-height:42px;font-size:12px}.presets button[aria-pressed=true]{border-color:var(--accent);background:var(--ink);color:var(--bg)}.presets button.reset{margin-left:auto;border:0;background:none;color:var(--muted);padding-right:0}.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:22px}.kpi{border-top:2px solid var(--line);padding:15px 18px 14px;background:var(--panel);box-shadow:var(--shadow)}.kpi.main{border-top-color:var(--copper)}.kpi-label{font-size:12px;color:var(--muted);margin-bottom:9px}.kpi-value{font-size:30px;letter-spacing:-1px;line-height:1.2;font-variant-numeric:tabular-nums;white-space:nowrap}.kpi-value small{font-size:14px;letter-spacing:0;color:var(--muted);margin-left:4px}.kpi-budget{font-size:11px;color:var(--muted);margin:7px 0 5px}.kpi-delta{font-size:12px;font-variant-numeric:tabular-nums}.good{color:var(--good)}.bad{color:var(--bad)}.neutral{color:var(--muted)}.workspace{display:grid;grid-template-columns:300px minmax(0,1fr);gap:22px;align-items:start}.panel{background:var(--panel);border:1px solid var(--line);padding:23px;min-width:0;box-shadow:var(--shadow)}.panel-head p:last-child{font-size:12px;color:var(--muted);margin-bottom:18px}.control{padding:15px 0 14px;border-top:1px solid var(--line)}.control label{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:13px}.control output{font-size:16px;letter-spacing:-.5px;color:var(--accent);font-variant-numeric:tabular-nums;white-space:nowrap}.control input{width:100%;margin:12px 0 6px;accent-color:var(--copper);min-height:24px;cursor:pointer}.control small{font-size:11px;color:var(--muted);display:block}.control-note{font-size:11px;color:var(--muted);border-top:1px solid var(--line);padding-top:16px;margin:0;line-height:1.65}.chart-heading{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.unit{font:11px/1.5 var(--mono);color:var(--muted);white-space:nowrap}.chart-help{font-size:12px;color:var(--muted);margin-bottom:12px;max-width:75ch}.bridge{width:100%;min-width:0}.bridge svg{width:100%;height:auto;display:block;overflow:visible}.bridge text{font-family:var(--sans);fill:var(--ink);font-variant-numeric:tabular-nums}.bridge .axis-label{fill:var(--muted);font-size:10px}.bridge .value-label{font-size:12px;font-weight:500}.bridge .bar-name{font-size:11px}.bridge .grid{stroke:var(--line);stroke-dasharray:3 4}.bridge .connector{stroke:var(--muted);stroke-width:1;opacity:.55}.bridge .bar:hover rect,.bridge .bar:focus rect{opacity:.8;stroke:var(--ink);stroke-width:1.5}.bridge .bar:focus{outline:0}.legend{display:flex;gap:14px;flex-wrap:wrap;font-size:10px;color:var(--muted);margin:4px 0 0}.legend span{display:flex;align-items:center;gap:6px}.legend i{display:inline-block;width:9px;height:9px}.total{background:var(--total);fill:var(--total)}.positive{background:var(--good);fill:var(--good)}.negative{background:var(--bad);fill:var(--bad)}.variable{background:var(--variable)}.fixed{background:var(--fixed)}.reconciliation{border-top:1px solid var(--line);padding-top:12px;font-size:11px;color:var(--muted);margin:15px 0 0}.insight{padding:23px 26px;border-left:3px solid var(--copper);background:var(--soft);margin-top:18px}.insight h2{font-size:24px;letter-spacing:-.6px}.insight p{font-size:13px;line-height:1.7;max-width:85ch;margin:0}.detail-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:22px;margin-top:22px}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:12px;white-space:nowrap}th,td{padding:11px 8px;text-align:right;border-bottom:1px solid var(--line);font-variant-numeric:tabular-nums}th:first-child,td:first-child{text-align:left;padding-left:0}th{font-size:10px;font-weight:400;color:var(--muted)}tbody th{font-size:12px;color:var(--ink)}tr.strong td,tr.strong th{font-weight:500;border-top:1px solid var(--ink);border-bottom:0}tr.margin td,tr.margin th{border-bottom:0;color:var(--muted);font-size:11px}.footnote{font-size:10px;color:var(--muted);line-height:1.7;margin:14px 0 0}.allocation-row{margin:24px 0}.allocation-head{display:flex;justify-content:space-between;font-size:12px;margin-bottom:8px}.allocation-track{height:33px;display:flex;background:var(--line)}.allocation-piece{min-width:0;display:flex;align-items:center;justify-content:center;font-size:11px;font-variant-numeric:tabular-nums;color:#fff;overflow:hidden}.allocation-piece.fixed{color:#24343b}.allocation-piece.positive{color:#fff}.allocation-piece.negative{color:#fff}.allocation-alert{font-size:12px;color:var(--bad);padding:12px;border:1px solid var(--line)}.method{margin-top:22px}.method summary{display:flex;justify-content:space-between;gap:20px;cursor:pointer;font-size:13px;list-style:none}.method summary::-webkit-details-marker{display:none}.method summary span{font-size:11px;color:var(--muted)}.method-body{display:grid;grid-template-columns:1fr 1fr;gap:32px;padding-top:24px}.method-body p{font-size:12px;color:var(--muted);line-height:1.75}.disclosure{font-size:11px;color:var(--muted);margin:22px 0 28px;line-height:1.8}footer{border-top:1px solid var(--line);padding:20px 0;display:flex;justify-content:space-between;gap:20px;color:var(--muted);font-size:11px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.allocation-piece.variable{color:#132127}
:root[data-theme=dark] .allocation-piece.positive{color:#132127}
@media(min-width:1100px){.bridge{min-height:300px}}
@media(max-width:1000px){.wrap{padding:0 24px}.workspace{grid-template-columns:250px minmax(0,1fr);gap:16px}.panel{padding:18px}.detail-grid{gap:16px}.kpi{padding:13px}.kpi-value{font-size:27px}.bridge .bar-name{font-size:12px}}
@media(max-width:760px){.wrap{padding:0 18px}.nav{flex-wrap:wrap;gap:12px;min-height:72px;padding:14px 0}.prototype{font-size:9px;letter-spacing:.6px}.theme button{min-height:40px;padding:8px 11px}.intro{padding:28px 0 22px}h1{font-size:34px}.period{display:none}.lead{font-size:14px}.presets{gap:7px}.presets>span{width:100%}.presets button{font-size:11px;padding:9px 10px}.presets button.reset{margin-left:0}.kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.kpi-value{font-size:28px}.workspace,.detail-grid{grid-template-columns:1fr}.controls{padding-bottom:16px}#levers{display:grid;grid-template-columns:1fr 1fr;gap:0 24px}.control:last-child{grid-column:1 / -1}.control-note{margin-top:6px}.analysis{min-width:0}.chart-heading h2{font-size:20px}.bridge{overflow-x:auto}.bridge svg{min-width:570px}.insight{padding:20px}.insight h2{font-size:22px}.method-body{grid-template-columns:1fr;gap:8px}.method summary{flex-direction:column;gap:8px}.detail-grid{gap:16px}.prototype{max-width:150px}.disclosure{font-size:10px}}
@media(max-width:420px){#levers{grid-template-columns:1fr}.control:last-child{grid-column:auto}.prototype{display:none}.theme{margin-left:auto}.kpi{padding:12px 10px}.kpi-value{font-size:25px}.presets button{width:100%;text-align:left}.presets button.reset{width:auto}}

@media(max-width:760px){html:not(.co-embedded) .bridge svg{min-width:760px}html:not(.co-embedded) .bridge .axis-label,html:not(.co-embedded) .bridge .bar-name{font-size:12px}}

/* Embedded views keep the complete model, with the home providing the frame. */
html.co-embedded{height:auto!important;min-height:0!important;overflow-y:hidden}
html.co-embedded body{padding:0!important;min-height:0!important;height:auto!important;overflow-y:hidden}
.co-embedded :is(.nav,.co-nav,.co-footer,.bs-nav,.bs-footer,body>.skip,body>.co-skip,body>.bs-skip,footer){display:none!important}
.co-embedded .wrap{max-width:none;padding:20px}
.co-embedded .app{padding:20px;max-width:none}
.co-embedded .bh-page{padding:20px;max-width:none}
.co-embedded .band{position:static}
.co-embedded :is(.ctrls,.bh-controls){position:static;max-height:none;overflow-y:visible}
.co-embedded .tw.tall{max-height:none}
.co-embedded .bh-kpis{position:static}
.co-embedded .presets{border-top:0;padding-top:0}
.co-embedded .intro{padding:18px 0;gap:24px}
.co-embedded .intro h1{font-size:28px;line-height:1.15;letter-spacing:-1px;margin-bottom:10px}
.co-embedded .intro .lead{font-size:13px}
/* In the home, explanatory copy is optional; the working model comes first. */
.co-embedded .co-app-intro{margin:0 0 8px;font:12px/1.5 var(--sans);color:var(--muted,var(--bh-fg-muted))}
.co-embedded .co-app-intro>summary{cursor:pointer;min-height:28px;display:list-item;list-style:disclosure-closed;font-size:11px}
.co-embedded .co-app-intro[open]>summary{list-style:disclosure-open}
.co-embedded .co-app-intro>summary:focus-visible{outline:2px solid var(--accent,var(--bs-accent));outline-offset:2px}
.co-embedded :is(.wrap,.app,.bh-page){padding:12px 16px}
.co-embedded .bs-frame{padding:0 16px}
.co-embedded .bs-frame:has(.co-app-intro){padding-top:10px}
.co-embedded .bs-theme{display:none}
.co-embedded .presets{padding:0 0 10px;gap:6px}
.co-embedded .presets button{min-height:32px;padding:6px 10px;font-size:11px}
.co-embedded .status{font-size:11px;margin-bottom:10px}
.co-embedded .kpis{gap:8px;margin-bottom:12px}
.co-embedded .kpi{padding:9px 12px;box-shadow:none}
.co-embedded .kpi-label{font-size:11px;margin-bottom:5px}
.co-embedded .kpi-value{font-size:25px}
.co-embedded :is(.kpi-note,.kpi-budget){margin-top:4px;font-size:10px}
.co-embedded .kpi-delta{font-size:11px}
.co-embedded .panel{box-shadow:none}
.co-embedded .eyebrow{font-size:9px;margin-bottom:6px}
.co-embedded h2{font-size:18px;margin-bottom:6px}
.co-embedded :is(.help,.chart-help){font-size:11px;margin-bottom:8px}

.co-embedded .control label{font-size:12px}
.co-embedded .control output{font-size:14px}
.co-embedded .panel-head p:last-child{margin-bottom:10px;font-size:11px}
.co-embedded .chip span{display:none}
.co-embedded .band .k{padding:10px!important}
.co-embedded .band .kv{font-size:22px}
.co-embedded .band .hero .kv{font-size:28px}
.co-embedded .band .ks{font-size:10px}
.co-embedded .band .kd:empty{display:none}
.co-embedded .bh-kpis{padding:0;margin-bottom:10px;gap:6px}
.co-embedded .bh-tile{min-height:0;padding:7px 9px}
.co-embedded .bh-tile-v{font-size:22px}
.co-embedded .bh-tile-s{display:none}
.co-embedded .bh-bar{margin-bottom:10px;padding:6px 9px}
.co-embedded .bh-tabs{margin-bottom:8px}
/* Reduce empty space and plotting height, keeping the original text sizes. */
.co-embedded .panel{padding:12px}
.co-embedded .control{padding:5px 0 4px}
.co-embedded .control input{display:block;margin:3px 0 1px;min-height:24px}
.co-embedded .control label{line-height:1.3}
.co-embedded .control output{line-height:1.3}
.co-embedded .control small{line-height:1.35}
.co-embedded .controls>.small-note{padding-top:9px;margin-top:8px}
.co-embedded .control-note{padding-top:9px;line-height:1.45}
.co-embedded .advanced{padding:8px 0}
.co-embedded .small-note{margin-top:8px;line-height:1.5}
.co-embedded .bridge{min-height:0}
.co-embedded .bridge .axis-label{font-size:12px}
.co-embedded .bridge :is(.value-label,.bar-name){font-size:13px}
.co-embedded :is(.bid,.insight){margin-top:10px;padding:14px 16px;gap:12px}
.co-embedded :is(.bid,.insight) h2{font-size:19px}
.co-embedded :is(.bid,.insight) p{font-size:12px;line-height:1.5}
.co-embedded :is(.two-up,.detail-grid,.detail){margin-top:14px;gap:14px}
.co-embedded .grp>button{padding:8px 11px}
.co-embedded .grp .gb{padding:0 11px 10px;gap:9px}
.co-embedded .ctl{gap:3px}
.co-embedded .ctrls{gap:7px}
.co-embedded .card{padding:11px 12px;gap:7px}
.co-embedded .results{gap:10px}
.co-embedded .bh-chart{min-height:0}
.co-embedded .bh-card{padding:10px}
.co-embedded .bh-lev{padding:4px 0 3px}
.co-embedded .bh-lev-sub{line-height:1.35;min-height:0}
.co-embedded .bh-sub{margin:9px 0 4px}
.co-embedded .bh-range{height:24px}
.co-embedded .bh-card .bh-note{margin-bottom:6px}
.co-embedded .bh-tabs button{padding:6px 10px}
@media(min-width:850px){
 .co-embedded .workspace{grid-template-columns:250px minmax(0,1fr);gap:14px}
 .co-embedded .bench{flex-direction:row;align-items:flex-start;gap:14px}
 .co-embedded .ctrls{width:280px;flex:none}
 .co-embedded .bench>.results{flex:1;min-width:0}
 .co-embedded .bh-main{grid-template-columns:270px minmax(0,1fr);gap:14px}
 .co-embedded .bh-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .co-embedded .bh-chart{min-height:0}
}
@media(max-width:700px){
 .co-embedded :is(.wrap,.app,.bh-page){padding:14px}
 .co-embedded .band .hero{padding:14px}
 .co-embedded .band .hero .kv{font-size:30px}
 .co-embedded .band .k{padding:12px}
 .co-embedded .band .kv{font-size:21px}
}
@media(max-width:849px){
 .co-embedded .workspace{display:flex;flex-direction:column}
 .co-embedded .workspace>:is(.results,.analysis){order:-1;width:100%}
 .co-embedded .workspace>.controls{width:100%}
 .co-embedded .bridge svg{min-width:0}
 .co-embedded .bench{display:flex;flex-direction:column}
 .co-embedded .bench>.results{order:-1;width:100%}
 .co-embedded .band{grid-template-columns:repeat(3,minmax(0,1fr))}
 .co-embedded .band .k{grid-column:auto!important;min-width:0}
 .co-embedded .band .hero .spark{display:none}
 .co-embedded .band .hero .ks{max-width:none}
 .co-embedded .band .kl{font-size:9px;letter-spacing:0}
 .co-embedded .band .kv{font-size:20px}
 .co-embedded .bh-main{display:flex;flex-direction:column}
 .co-embedded .bh-results{order:-1;width:100%}
 .co-embedded .bh-controls{width:100%}
 .co-embedded .bh-bar{gap:6px}
}

.work-return{display:flex;align-items:center;min-height:44px;max-width:1440px;margin:12px auto;padding:0 24px;box-sizing:border-box}.work-return a{display:inline-flex;align-items:center;min-height:44px;padding:8px 0;color:inherit;font:500 14px/1.4 var(--sans);text-decoration:none;border-bottom:1px solid #82939988}.work-return a:hover{text-decoration:underline;text-underline-offset:5px}.work-return a:focus-visible{outline:2px solid #ae7056;outline-offset:4px}@media(max-width:600px){.work-return{padding:0 16px;margin:8px auto}}
