:root{color-scheme:light;--bg:#f7f5f4;--ink:#241d1d;--muted:#625653;--line:#e9e1df;--brand:#821517;--wash:#fbf2f2;--gold:#f6a720;--alert:#89272a;--good:#235947;font:16px/1.55 system-ui,-apple-system,"Segoe UI",Tahoma,Arial,sans-serif}
*,*::before,*::after{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink)}[hidden]{display:none!important}.shell{width:min(100% - 2rem,72rem);margin-inline:auto}.mast{background:#fff;border-top:4px solid var(--brand);border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:7rem}.brand img{width:clamp(4.5rem,11vw,8rem);height:auto;max-height:5.25rem;object-fit:contain}.eyebrow{color:var(--brand);font-size:.75rem;font-weight:800;letter-spacing:.13em}h1,h2,h3,h4{line-height:1.35;margin:0;font-weight:750}h1{font-size:clamp(1.3rem,3.9vw,2.25rem)}h2{font-size:1.25rem}h3{font-size:1.08rem}h4{font-size:1rem}p{margin:.5rem 0}main{padding-block:1.4rem 2rem}
.toolbar,.section-head,.actions,.dialog-head,.inline{display:flex;align-items:center;gap:.65rem;flex-wrap:wrap}.toolbar{margin-bottom:.9rem}.toolbar>label{font-weight:700}.actions{margin-inline-start:auto}.metrics,.form-grid,.short-stats{display:grid;gap:.65rem;grid-template-columns:repeat(4,minmax(0,1fr))}.metrics>div,.short-stats>div{background:#fff;border:1px solid var(--line);border-radius:.7rem;padding:.8rem;min-width:0}.metrics>div:first-child{border-inline-start:3px solid var(--gold)}.metrics span,.short-stats span{display:block;color:var(--muted);font-size:.88rem}.metrics strong,.short-stats strong{display:block;font-size:clamp(.98rem,2.1vw,1.3rem);margin-top:.2rem}.status,.hint{color:var(--muted);font-size:.875rem}.status{margin:.4rem 0 .9rem}.panel{border:1px solid var(--line);border-radius:.85rem;background:white;margin-bottom:1rem;box-shadow:0 5px 24px #47231d0b;overflow:clip}.section-head,.panel>summary,.dialog-head{padding:.78rem 1rem}.section-head{justify-content:space-between}.panel-inner{padding:.15rem 1rem 1rem}.panel>summary{font-weight:750;font-size:1.1rem}.form-section,.subdetail{border:1px solid var(--line);border-radius:.6rem;margin:.65rem 0}.form-section>summary,.subdetail>summary{padding:.65rem .8rem;font-weight:700}.form-inner,.subdetail>div{padding:.2rem .8rem .8rem}.form-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}.field{display:grid;gap:.24rem;min-width:0;color:var(--muted);font-size:.9rem}.field input,.field select{width:100%;font-size:1rem}.sales-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.construct{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;align-items:end;gap:.6rem;margin-block:.5rem}.budget-select{justify-content:space-between}.preview{padding:1rem;border-inline-start:3px solid var(--gold)}.preview h2,.results h3{margin-bottom:.55rem}
button,input,select{font:inherit;color:inherit}input,select,button{min-height:2.75rem;border-radius:.42rem;border:1px solid #d9ceca;background:#fff;padding:.45rem .65rem}input.numeric,input[type=date]{direction:ltr;text-align:right}input:focus-visible,button:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #d9921c;outline-offset:2px}select{appearance:none;padding-inline:.65rem 1.8rem;background:white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='none' stroke='%23625553' stroke-width='1.7' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat left .55rem center}button{cursor:pointer;font-weight:700}.primary{background:var(--brand);border-color:var(--brand);color:#fff}.primary:hover{background:#661013}.quiet{color:var(--brand);border-color:#d9c8c5}.quiet:hover{background:var(--wash)}.small{min-height:2.45rem;font-size:.875rem;padding:.3rem .55rem}button[disabled]{opacity:.5;cursor:not-allowed}.tag{background:#f2ece9;border-radius:1rem;padding:.17rem .55rem;font-size:.875rem;color:#574a48}.tag.good{background:#e8f3ef;color:var(--good)}.notice,.deficit{padding:.65rem .8rem;margin:.55rem 0;border-radius:.5rem;background:#fff4f2;color:var(--alert);border:1px solid #f1d4ce}.note{background:#f8f5f3;border-radius:.5rem;padding:.55rem .7rem;margin:.5rem 0;color:var(--muted);font-size:.9rem}.num{direction:ltr;unicode-bidi:isolate;white-space:nowrap;font-variant-numeric:tabular-nums}.year{border:1px solid var(--line);border-radius:.55rem;margin:.5rem 0;background:#fff}.year>summary{padding:.68rem .8rem;font-weight:750}.year[open]>summary{background:var(--wash);color:var(--brand);border-radius:.5rem .5rem 0 0}.year-body{padding:.08rem .8rem .7rem}.accordion-label{display:inline-flex;max-width:92%;gap:.65rem;flex-wrap:wrap}.accordion-label span:last-child{font-size:.875rem;font-weight:650}summary{cursor:pointer;min-height:2.75rem}.pair-row td:last-child,.pair-row th:last-child{text-align:left}table{width:100%;border-collapse:collapse;table-layout:auto;font-size:.925rem}th,td{text-align:right;padding:.52rem .25rem;border-bottom:1px solid var(--line);vertical-align:top}thead th{color:var(--muted);font-size:.875rem}tbody tr.total{background:#f7f2f0;font-weight:800}tbody tr:last-child>*{border-bottom:0}.results{border-top:1px solid var(--line);margin-top:1.1rem;padding-top:.8rem}.scroll-table{max-width:100%;overflow:auto}.scroll-table table{min-width:42rem}.negative{color:var(--alert)}.sr{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
dialog{border:1px solid var(--line);border-radius:.8rem;width:min(calc(100% - 1rem),46rem);max-height:90vh;max-height:90dvh;color:var(--ink);padding:0;overscroll-behavior:contain}dialog::backdrop{background:#25101088}.dialog-head{position:sticky;top:0;background:white;z-index:2;border-bottom:1px solid var(--line);justify-content:space-between}#purchase-editor{padding:.65rem 1rem 1rem}.purchase-bar{background:#fff;border-top:1px solid var(--line);position:sticky;bottom:0;padding:.5rem 0 .1rem}.purchase-bar .actions{justify-content:flex-end;margin-top:.4rem}
@media(max-width:670px){.brand{min-height:5.8rem}.shell{width:min(100% - 1.15rem,72rem)}.toolbar .actions{margin-inline-start:0;width:100%}.toolbar .actions button{flex:1 1 auto}.metrics,.short-stats,.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sales-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.panel-inner,.section-head,.panel>summary{padding-inline:.65rem}.year-body,.year>summary{padding-inline:.55rem}}
