@font-face{font-family:Metri;src:url('./assets/metri-regular.woff') format('woff');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:Metri;src:url('./assets/metri-bold.woff') format('woff');font-style:normal;font-weight:600 900;font-display:swap}
:root{--paper:#ffffff;--white:#fff;--canvas:#f3f8fe;--ink:#111820;--muted:#344c65;--action:#102338;--action-hover:#263d54;--line:#c9dbea;--control-line:#5b7e9f;--soft:#edf6ff;--selection:#cce7ff;--accent:#114f83;--focus:#114f83;--radius:20px;--font:Metri,'Noto Sans Georgian',system-ui,sans-serif}
*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:100px}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--font);font-size:16px;line-height:1.65;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button,a,input,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button,a,summary,input{outline-offset:4px}button:focus-visible,a:focus-visible,summary:focus-visible{outline:2px solid #297ab5}input:focus-visible{outline:2px solid #297ab5}a{color:inherit;text-decoration:none}button{color:inherit}svg{display:block}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1,h2,h3{font-weight:700}fieldset{border:0;padding:0;margin:0;min-width:0}.shell{max-width:1216px;margin:0 auto;padding:0 32px}.skip{position:absolute;top:-100px;left:20px;padding:12px;background:var(--action);color:white;z-index:100}.skip:focus{top:10px}.header{height:92px;background:var(--paper)}.header-inner{height:100%;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:inline-flex;align-items:center;gap:11px;font-size:30px;letter-spacing:-1.3px;font-weight:700;line-height:1.1}.brand-symbol{background:var(--action);width:36px;height:36px;border-radius:10px;display:block}.brand-symbol svg{width:36px;height:36px;fill:none;stroke:var(--paper);stroke-width:2.1;stroke-linecap:square;stroke-linejoin:round}.brand-dot{color:#3c9ad4}.brand.small{font-size:25px}.nav{display:flex;align-items:center;gap:30px;font-size:14px;color:#40566b}.nav a:first-child{color:var(--action)}.nav a:hover{color:var(--action)}.header-actions{display:flex;gap:16px;align-items:center}.settings-button{border:1px solid #c9dced;background:transparent;border-radius:9px;display:flex;align-items:center;gap:8px;padding:9px 12px;font-size:13px}.settings-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round}.settings-button:hover{background:var(--soft)}.text-button{border:0;background:transparent;font-size:13px;color:var(--action);padding:8px 0}.text-button span{font-size:12px;background:#dce8f3;border-radius:20px;padding:2px 6px}.hero{display:grid;grid-template-columns:1.05fr 1fr;gap:76px;padding-top:46px;padding-bottom:64px;align-items:start}.eyebrow{display:flex;align-items:center;gap:8px;font-size:12px;letter-spacing:.1px;color:#40566b}.eyebrow>span{height:5px;width:5px;border-radius:50%;background:#4e9cd2}.hero h1{font-size:clamp(36px,3.6vw,48px);line-height:1.52;letter-spacing:-1.5px;margin:19px 0 17px}.hero h1 span{color:var(--action)}.hero-description{font-size:15px;line-height:1.95;color:#53697e;max-width:405px}.scope-pills{display:flex;gap:8px;flex-wrap:wrap;margin-top:22px}.scope-pills span{font-size:11px;border:1px solid #c9dced;border-radius:20px;padding:4px 9px;color:#53697e}.calculator-card{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:29px 30px 22px;box-shadow:0 8px 40px #183b6110;scroll-margin-top:20px}.calculator-card h2{font-size:20px;letter-spacing:-.5px}.field{margin-bottom:22px}.field>label,.field legend{font-size:13px;font-weight:700;margin-bottom:10px;display:block}.floor-options{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.floor-option{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:73px;border-radius:9px;border:1px solid #dce8f3;background:white;font-size:12px;color:#53697e;transition:background .15s,border-color .15s}.floor-option:hover{background:#edf5fc}.floor-option.selected{border-color:#53697e;background:#edf5fc;color:var(--action)}.floor-icon{width:19px;height:19px;background:repeating-linear-gradient(to top,currentColor 0 1.2px,transparent 1.2px 6px);border-left:1.2px solid currentColor;border-right:1.2px solid currentColor;display:block;opacity:.8}.floor-icon[data-level="1"]{height:7px;margin-top:12px}.floor-icon[data-level="2"]{height:13px;margin-top:6px}.area-control{display:flex;border:1px solid #c9dced;border-radius:9px;height:51px;align-items:center;overflow:hidden;background:#fff}.area-control>button{border:0;background:none;font-size:22px;width:49px;height:100%;color:#53697e}.area-control>button:hover{background:var(--soft)}.area-number{display:flex;gap:7px;align-items:center;justify-content:center;flex:1}.area-number input{font-size:20px;color:var(--ink);border:0;background:transparent;width:85px;text-align:right;font-variant-numeric:tabular-nums;appearance:textfield;-moz-appearance:textfield;padding:4px 1px}.area-number span{font-size:13px;color:#53697e;margin-right:22px}.area-number input::-webkit-inner-spin-button,.area-number input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.field .checkbox-label{display:flex;gap:7px;align-items:center;font-weight:400;font-size:11px;color:#53697e;margin:9px 0 0;cursor:pointer;line-height:1.5}.checkbox-label input{accent-color:var(--action);margin:0;width:12px;height:12px;flex-shrink:0}.total-area{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#53697e;margin-top:10px;padding:9px 0 0}.total-area output{font-weight:700;color:var(--action);font-size:15px}.individual-row{display:flex;align-items:center;gap:8px;justify-content:space-between;margin-top:8px;background:#edf5fc;padding:8px 12px;border-radius:7px;font-size:13px}.individual-row input{width:88px;border:1px solid #c9dced;padding:6px;border-radius:6px;background:#fff}.individual-row>div{display:flex;gap:8px;align-items:center}.individual-row span{color:var(--muted);font-size:12px}.site-options{display:grid;gap:8px}.site-option{display:flex;gap:10px;align-items:center;border:1px solid #dce8f3;border-radius:9px;padding:11px 12px;cursor:pointer;position:relative}.site-option.selected{background:#f6faff;border-color:#a4bfd7}.site-option input{position:absolute;opacity:0;width:15px;height:15px}.site-option input:focus-visible+.radio-dot{outline:2px solid #297ab5;outline-offset:3px}.radio-dot{width:14px;height:14px;border:1px solid #c9dced;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0}.selected .radio-dot{border-color:#53697e}.selected .radio-dot:after{content:"";width:6px;height:6px;border-radius:50%;background:var(--action)}.site-option strong{font-size:12px;display:block;font-weight:400}.site-option small{display:block;font-size:11px;color:#53697e;margin-top:2px}.reserve-details{margin:4px 0 20px;border-top:1px solid #dce8f3;padding-top:13px}.reserve-details summary{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#53697e;cursor:pointer;list-style:none}.reserve-details summary::after{content:"+";font-size:16px;margin-left:8px}.reserve-details[open] summary::after{content:"−"}.reserve-details summary strong{margin-left:auto;font-size:13px;color:#40566b;font-weight:400}.reserve-details p{font-size:11px;color:#53697e;margin:10px 0}.reserve-options{display:flex;gap:8px}.reserve-options button{border:1px solid var(--line);background:white;padding:5px 15px;font-size:13px;border-radius:6px}.reserve-options button.selected{background:var(--action);color:#fff;border-color:var(--action)}.primary-button{border:0;background:var(--action);color:#fff;border-radius:9px;font-size:13px;font-weight:700;padding:15px 20px;display:flex;justify-content:center;align-items:center;gap:15px;min-height:49px;transition:background .15s,transform .15s}.primary-button:hover{background:var(--action-hover)}.primary-button:active{transform:translateY(1px)}.calculate-button{width:100%;justify-content:space-between;font-size:14px}.calculate-button span:last-child{font-size:19px;font-weight:400}.form-scope{font-size:10px;line-height:1.8;color:#53697e;text-align:center;margin-top:8px}.unsupported-note{font-size:12px;border-left:2px solid #b76d32;background:#faf7ee;padding:12px 14px;border-radius:0 7px 7px 0;margin-bottom:18px}.unsupported-note strong{font-size:13px}.unsupported-note p{margin-top:6px;color:#897c60;line-height:1.8}.field-error{font-size:12px;color:#ab4c39;margin-top:8px;line-height:1.8}.how-section{padding-top:28px;padding-bottom:70px;border-top:1px solid var(--line)}.section-heading{display:flex;align-items:baseline;justify-content:space-between;padding-top:28px}.section-heading h2{font-size:22px;letter-spacing:-.4px}.how-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:55px;margin-top:37px}.how-steps article{position:relative}.step-number{font-size:13px;color:#53697e;display:block;margin-bottom:13px}.how-steps h3{font-size:15px;margin-bottom:8px}.how-steps p{font-size:13px;line-height:1.9;color:#53697e;max-width:290px}.scope-section{border-top:1px solid var(--line);padding-top:54px;padding-bottom:55px;display:grid;grid-template-columns:.9fr 1.4fr;gap:70px}.scope-section h2{font-size:25px;margin:15px 0 10px;letter-spacing:-.6px}.scope-section>div>p{font-size:13px;color:#53697e;max-width:255px;line-height:1.9}.scope-lists{display:grid;grid-template-columns:1fr 1.1fr;gap:28px}.scope-lists h3{font-size:13px;margin-bottom:15px}.check-list,.neutral-list{list-style:none;padding:0;margin:0}.check-list li,.neutral-list li{position:relative;padding-left:20px;font-size:12px;color:#53697e;margin:9px 0;line-height:1.8}.check-list li:before{content:"✓";position:absolute;left:0;color:#40566b}.neutral-list li:before{content:"—";position:absolute;left:0;color:#53697e}.faq-section{padding-top:37px;padding-bottom:85px;border-top:1px solid var(--line);display:grid;grid-template-columns:.9fr 1.4fr;gap:70px}.faq-section>h2{font-size:21px;letter-spacing:-.4px;max-width:300px}.faq-list details{border-bottom:1px solid var(--line);padding:16px 0}.faq-list details:first-child{padding-top:1px}.faq-list summary{font-size:13px;cursor:pointer;display:flex;justify-content:space-between;gap:15px;list-style:none}.faq-list summary:after{content:"+";color:#53697e;font-size:17px;line-height:1}.faq-list details[open] summary:after{content:"−"}.faq-list details p{font-size:12px;color:#53697e;line-height:1.95;margin-top:13px}.footer{border-top:1px solid var(--line);background:#edf5fc}.footer-inner{padding-top:28px;padding-bottom:28px;display:flex;gap:30px;align-items:center}.footer p{font-size:12px;color:#53697e}.footer-inner>span{margin-left:auto;font-size:11px;color:#53697e}.modal{background:white;color:var(--ink);border:1px solid var(--line);border-radius:20px;padding:35px;max-width:min(94vw,500px);width:100%;max-height:90dvh;overflow:auto;box-shadow:0 20px 100px #14294025}.modal::backdrop{background:#14213666;backdrop-filter:blur(5px)}.modal h2{font-size:22px;margin:13px 20px 8px 0;letter-spacing:-.4px}.modal-intro{font-size:13px;color:#53697e;line-height:1.95}.close-button{position:absolute;right:15px;top:12px;border:0;background:transparent;font-size:27px;line-height:1;padding:5px;color:#53697e;border-radius:6px}.close-button:hover{background:var(--soft);color:var(--action)}.fine-print{font-size:11px;color:#53697e;line-height:1.9;margin-top:16px}.rate-fields{display:grid;grid-template-columns:1fr 1fr;gap:17px;margin:24px 0}.rate-field label{display:block;font-size:12px;margin-bottom:6px;min-height:30px;line-height:1.5}.rate-input{display:flex;border:1px solid var(--line);border-radius:7px;align-items:center;padding:0 9px}.rate-input input{min-width:0;width:100%;padding:9px 0;border:0;background:transparent;font-size:16px}.rate-input span{font-size:11px;color:#53697e;white-space:nowrap}.settings-note{font-size:12px;color:#53697e;background:#edf5fc;padding:13px;border-radius:8px;line-height:1.9}.modal-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:22px}.secondary-button{border:1px solid #c9dced;background:transparent;border-radius:9px;padding:11px 16px;font-size:12px;color:#40566b;display:inline-flex;align-items:center;justify-content:center;gap:8px}.secondary-button:hover{background:var(--soft)}.assumption-group{margin-top:20px}.assumption-group h3{font-size:14px;margin-bottom:9px}.assumption-group p,.assumption-group li{font-size:12px;color:#53697e;line-height:1.95}.assumption-group ul{padding-left:18px;margin:6px 0}.history-entry{border:1px solid var(--line);border-radius:10px;margin-top:12px;padding:15px;display:flex;justify-content:space-between;gap:15px;align-items:center}.history-entry strong{font-size:14px}.history-entry small{display:block;font-size:11px;color:#53697e;margin-top:4px}.history-entry button{font-size:12px;border:0;background:var(--soft);color:var(--action);padding:7px 11px;border-radius:6px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);padding:13px 20px;background:var(--action);color:white;border-radius:10px;box-shadow:0 8px 35px #183b6120;font-size:13px;z-index:150;max-width:90vw;min-width:240px;text-align:center}.report-view{padding-top:36px;padding-bottom:70px}.report-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.report-top>div{display:flex;align-items:center;gap:9px;font-size:12px;color:#53697e}.report-actions{display:flex;gap:9px}.report-header{display:flex;justify-content:space-between;align-items:end;margin-bottom:25px}.report-header h1{font-size:30px;letter-spacing:-.8px;line-height:1.6;margin-top:7px}.report-header p{font-size:12px;color:#53697e;margin-top:5px}.report-pill{font-size:12px;background:#dce8f3;color:#53697e;border-radius:20px;padding:5px 12px;white-space:nowrap}.result-hero{background:var(--action);color:#fff;border-radius:18px;padding:33px 37px;display:grid;grid-template-columns:1fr 1fr;gap:30px;overflow:hidden;position:relative}.result-hero::after{content:"";position:absolute;right:0;top:0;width:300px;height:300px;background:repeating-linear-gradient(45deg,transparent 0 20px,#ffffff04 20px 21px);pointer-events:none}.result-eyebrow{color:#c8dff4;font-size:12px}.result-amount{font-size:41px;letter-spacing:-1.6px;margin:8px 0;font-variant-numeric:tabular-nums;font-weight:700;line-height:1.5}.result-per-area{font-size:13px;color:#d3e6f6}.result-context{align-self:center;position:relative;z-index:1;display:grid;grid-template-columns:repeat(3,1fr);gap:16px;padding-left:24px;border-left:1px solid #ffffff20}.result-context span{display:block;font-size:11px;color:#c8dff4;margin-bottom:5px}.result-context strong{font-size:17px;font-weight:400}.scenarios{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:17px 0 8px}.scenario{background:white;border:1px solid var(--line);border-radius:11px;padding:17px 20px}.scenario.current{background:#edf5fc;border-color:#9dbfe0}.scenario span{font-size:11px;color:#53697e;display:block}.scenario strong{display:block;font-size:20px;letter-spacing:-.5px;margin-top:5px;font-weight:400}.scenarios-note{font-size:11px;color:#53697e;margin:8px 0 28px}.report-grid{display:grid;grid-template-columns:1.7fr 1fr;gap:22px}.report-box{background:white;border:1px solid var(--line);border-radius:13px;padding:24px;margin-bottom:20px}.report-box h2{font-size:17px;letter-spacing:-.3px;margin-bottom:8px}.report-box>.subtext{font-size:12px;color:#53697e;margin-bottom:15px}.distribution-bar{height:9px;display:flex;overflow:hidden;border-radius:10px;gap:3px;margin:22px 0}.distribution-bar i{display:block;height:100%;min-width:2px}.cost-item{padding:17px 0;border-bottom:1px solid #dce8f3;display:grid;grid-template-columns:1fr auto;gap:10px}.cost-item:last-child{border-bottom:0;padding-bottom:4px}.cost-label{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:700}.cost-dot{height:7px;width:7px;border-radius:2px}.cost-item small{font-size:11px;color:#53697e;display:block;margin-top:4px}.cost-item>div:last-child{text-align:right}.cost-item strong{font-size:16px;font-weight:400}.cost-quantity{font-size:11px;color:#53697e;margin-top:5px}.summary-row{display:flex;justify-content:space-between;gap:15px;font-size:13px;padding:10px 0;color:#53697e}.summary-row strong{font-size:14px;color:var(--ink);font-weight:400}.summary-row.total{border-top:1px solid var(--line);margin-top:9px;padding-top:17px;font-size:14px;color:var(--action)}.summary-row.total strong{color:var(--action);font-weight:700;font-size:17px}.summary-note{font-size:11px;color:#53697e;line-height:1.9;margin-top:13px}.report-detail{margin-top:12px}.report-detail summary{cursor:pointer;font-size:13px;color:#40566b}.breakdown-table{width:100%;border-collapse:collapse;margin-top:17px;font-size:12px}.breakdown-table th{font-weight:400;color:#53697e;text-align:right;padding:10px 5px;background:#edf5fc;white-space:nowrap}.breakdown-table th:first-child{text-align:left}.breakdown-table td{padding:11px 5px;border-bottom:1px solid #dce8f3;text-align:right;font-variant-numeric:tabular-nums}.breakdown-table td:first-child{text-align:left}.report-assumptions{font-size:12px;line-height:1.95;color:#53697e}.report-assumptions p+p{margin-top:10px}.report-note{border:1px solid #dddcc7;background:#f7f6e9;padding:19px 22px;border-radius:11px;font-size:12px;line-height:1.95;color:#8a8969;margin-top:5px}.report-note strong{color:#40566b}.report-print-brand{display:none}
@media(min-width:1500px){.shell{max-width:1290px}.hero{gap:105px;padding-top:80px}.hero h1{font-size:54px}.calculator-card{padding:32px 34px}}
@media(max-width:1050px){.hero{gap:40px}.shell{padding-left:25px;padding-right:25px}.hero h1{font-size:40px}.calculator-card{padding:25px 23px}.nav{gap:18px}.scope-pills{gap:5px}.scope-pills span{font-size:10px;padding:4px 7px}.hero-description{font-size:14px}.scope-section,.faq-section{gap:40px}.report-grid{grid-template-columns:1.5fr 1fr}.result-amount{font-size:35px}}
@media(max-width:760px){.header{height:76px}.header-inner{gap:10px}.brand{font-size:26px;gap:9px}.brand-symbol,.brand-symbol svg{width:31px;height:31px}.nav{display:none}.header-actions{gap:12px}.settings-button{font-size:12px;padding:8px 10px}.text-button{font-size:11px}.shell{padding-left:20px;padding-right:20px}.hero{display:block;padding-top:30px;padding-bottom:45px}.hero-copy{text-align:center}.hero .eyebrow{justify-content:center;font-size:11px}.hero h1{font-size:34px;line-height:1.45;margin:12px 0}.hero-description{font-size:13px;max-width:360px;margin:auto}.scope-pills{justify-content:center;margin-top:16px}.calculator-card{padding:24px;max-width:520px;margin:auto;border-radius:17px;box-shadow:0 5px 24px #183b6109}.calculator-card h2{font-size:20px}.field{margin-bottom:20px}.field>label,.field legend{font-size:14px}.floor-option{min-height:73px;font-size:13px}.area-control{height:54px}.area-number input{font-size:23px}.field .checkbox-label{font-size:12px}.site-option{padding:12px}.site-option strong{font-size:13px}.site-option small{font-size:12px}.reserve-details summary{font-size:13px}.primary-button{font-size:14px;min-height:51px}.form-scope{font-size:10px}.section-heading{display:block;padding-top:5px}.section-heading h2{font-size:21px;margin-top:10px}.how-section{padding-top:30px;padding-bottom:35px}.how-steps{display:block;margin-top:25px}.how-steps article{padding-left:35px;margin-top:22px}.step-number{position:absolute;left:0;top:2px;margin:0}.how-steps h3{font-size:14px;margin-bottom:4px}.how-steps p{font-size:13px;max-width:none}.scope-section{display:block;padding-top:32px;padding-bottom:32px}.scope-section h2{font-size:23px;margin-top:12px}.scope-section>div>p{font-size:13px;max-width:none}.scope-lists{margin-top:26px;gap:20px}.scope-lists h3{font-size:13px}.check-list li,.neutral-list li{font-size:12px;padding-left:17px}.faq-section{display:block;padding-top:30px;padding-bottom:40px}.faq-section>h2{font-size:21px;max-width:none;margin-bottom:25px}.faq-list summary{font-size:13px}.faq-list details p{font-size:13px}.footer-inner{flex-wrap:wrap;gap:12px 20px;padding-top:23px;padding-bottom:23px}.footer p{font-size:11px;flex:1;min-width:170px}.footer-inner>span{margin-left:0;font-size:10px}.modal{padding:28px 22px;max-width:calc(100vw - 24px);border-radius:17px}.modal h2{font-size:20px}.rate-fields{gap:14px 12px}.rate-field label{font-size:12px;min-height:35px}.rate-input input{font-size:16px}.modal-intro{font-size:13px}.report-view{padding-top:23px;padding-bottom:35px}.report-top{align-items:start;margin-bottom:23px;gap:10px}.report-top>div{display:none}.report-actions{gap:8px;flex-wrap:wrap}.report-actions .secondary-button{padding:8px 11px;font-size:12px}.report-header{display:block;margin-bottom:20px}.report-header h1{font-size:25px;line-height:1.65}.report-header p{font-size:11px}.report-pill{display:inline-block;margin-top:12px;font-size:11px}.result-hero{padding:24px;display:block;border-radius:14px}.result-amount{font-size:36px;letter-spacing:-1px;margin:5px 0}.result-context{padding:20px 0 0;margin-top:21px;border-left:0;border-top:1px solid #ffffff20;gap:15px}.result-context span{font-size:11px}.result-context strong{font-size:17px}.scenarios{gap:7px;margin-top:12px}.scenario{padding:12px 8px;border-radius:9px}.scenario span{font-size:10px}.scenario strong{font-size:16px;letter-spacing:-.6px}.scenarios-note{font-size:11px;line-height:1.9;margin-bottom:20px}.report-grid{display:block}.report-box{padding:20px;margin-bottom:15px}.report-box h2{font-size:16px}.report-box>.subtext{font-size:12px}.cost-item strong{font-size:16px}.cost-item small{max-width:200px}.cost-quantity{font-size:11px}.breakdown-table{font-size:11px}.breakdown-table th{font-size:10px;white-space:normal}.report-note{font-size:12px;padding:16px 18px}.history-entry{padding:12px}.history-entry strong{font-size:13px}.history-entry small{font-size:10px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation:none!important;transition:none!important}}
@media print{@page{size:A4;margin:14mm}body{background:#fff;font-size:12px;color:#111820;print-color-adjust:exact;-webkit-print-color-adjust:exact}.no-print,.modal,.toast,.report-actions,.report-top,.skip{display:none!important}#landing{display:none!important}.shell{padding:0;max-width:none}.report-view{padding:0}.report-header h1{font-size:21px}.report-header p{font-size:11px}.report-print-brand{display:block;font-size:20px;color:var(--action);font-weight:700;margin-bottom:15px}.result-hero{padding:20px 23px;border-radius:9px}.result-amount{font-size:30px}.result-context strong{font-size:16px}.scenarios{gap:8px;margin:10px 0}.scenario{padding:10px 12px}.scenario strong{font-size:16px}.report-grid{display:block}.report-box{padding:15px 18px;margin-bottom:12px;break-inside:avoid}.report-box h2{font-size:15px}.cost-item{padding:9px 0}.cost-item strong{font-size:14px}.report-detail>div{display:block!important}.report-detail summary{display:none}.breakdown-table{font-size:11px}.breakdown-table td{padding:7px 4px}.report-note{font-size:11px;break-inside:avoid}.summary-row{padding:6px 0}.report-header{margin-bottom:15px}.report-pill{font-size:10px}.scenarios-note{margin-bottom:15px}.print-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px}.print-optional{display:none}.report-box,.result-hero,.scenarios{break-inside:avoid}.report-assumptions{font-size:11px}}

@media(max-width:500px){.settings-button span{display:none}.settings-button{padding:9px}.header-actions{gap:10px}}

.report-view:focus{outline:none}.field .checkbox-label{min-height:27px}.checkbox-label input{width:15px;height:15px}

.mobile-start{display:none}@media(max-width:760px){.mobile-start{display:flex;max-width:280px;margin:18px auto 0;padding:12px 18px;min-height:46px;font-size:13px;justify-content:space-between}}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.frame-editor {
  --frame-length: #206a9d;
  --frame-width: #8e6530;
  margin-top: 24px;
  padding: 16px;
  min-width: 0;
  border: 1px solid #c9dced;
  border-radius: 18px;
  background: #f6faff;
  text-align: left;
}
.frame-heading, .frame-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.frame-heading { flex-wrap: wrap; margin-bottom: 12px; }
.frame-heading h2 { font-size: 15px; color: var(--action); }
.tool-icon-sprite {
  position: absolute;
  inline-size: 0;
  block-size: 0;
  overflow: hidden;
  pointer-events: none;
}
.has-tool-icon { display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.tool-icon {
  inline-size: 15px;
  block-size: 15px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.frame-view-switch {
  display: flex;
  padding: 3px;
  gap: 3px;
  border-radius: 8px;
  background: var(--soft);
}
.frame-view-switch button, .frame-plan-levels button, .frame-stair-button {
  min-height: 31px;
  padding: 4px 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--action);
  font-size: 11px;
  font-weight: 700;
}
.frame-view-switch button[aria-pressed="true"], .frame-plan-levels button[aria-pressed="true"], .frame-stair-button[aria-pressed="true"] {
  border-color: #a0c7e9;
  background: #fff;
}
.frame-system { margin-bottom: 11px; }
.frame-system legend { margin-bottom: 5px; color: #182e44; font-size: 11px; }
.frame-system-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.frame-system-choice {
  display: grid;
  align-content: center;
  position: relative;
  min-height: 46px;
  padding: 6px 28px 6px 9px;
  border: 1px solid #c9dced;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.frame-system-choice:has(input:checked) { border-color: #8fbce2; background: #e9f4ff; }
.frame-system-choice:has(input:focus-visible) { outline: 2px solid #297ab5; outline-offset: 2px; }
.frame-system-choice strong { font-size: 12px; color: var(--action); }
.frame-system-choice small { font-size: 10px; line-height: 1.45; color: #40566b; }
.frame-system-choice input { position: absolute; top: 8px; right: 8px; width: 13px; height: 13px; margin: 0; accent-color: var(--action); cursor: pointer; }
.frame-system-choice.roof-choice { min-height: 35px; }
.roof-settings { margin-bottom: 11px; padding: 8px 9px; border: 1px solid #c9dced; border-radius: 8px; background: #f6faff; }
.roof-settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.roof-settings-grid label { display: grid; gap: 3px; color: #182e44; font-size: 11px; min-width: 0; }
.roof-settings-grid select, .roof-input-unit { width: 100%; min-width: 0; min-height: 34px; border: 1px solid #c9dced; border-radius: 6px; background: #fff; color: var(--action); }
.roof-settings-grid select { font-size: 12px; padding: 2px 5px; }
.roof-input-unit { display: flex; align-items: center; padding-right: 7px; }
.roof-input-unit input { width: 100%; min-width: 0; padding: 4px 5px; border: 0; background: transparent; color: var(--action); font-size: 16px; }
:is(#roof-hip-control, #black-roof-hip-control) { grid-column: 1 / -1; }
.frame-dimensions-note { margin-bottom: 10px; color: #40566b; font-size: 11px; }
.frame-stage {
  position: relative;
  border: 1px solid #dce8f3;
  border-radius: 11px;
  overflow: hidden;
  background: radial-gradient(#d8e8f7 0.65px, transparent 0.65px) 0 0 / 14px 14px, #edf5fc;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.frame-stage:focus-visible { outline: 2px solid #297ab5; outline-offset: 3px; }
.frame-stage>svg { width: 100%; height: auto; aspect-ratio: 2 / 1; }
.frame-stage.is-rotating, .frame-stage.is-resizing { cursor: grabbing; }
.frame-grid { fill: none; stroke: #d8e8f7; stroke-width: 0.65; }
.frame-timber { fill: none; stroke: #956c3d; stroke-width: 1.5; stroke-linejoin: round; }
.frame-guide { fill: none; stroke-width: 1.35; stroke-dasharray: 2 2; }
.frame-guide.frame-length { stroke: var(--frame-length); }
.frame-guide.frame-width { stroke: var(--frame-width); }
.frame-handle { cursor: move; color: var(--frame-length); }
.frame-handle:not([transform]) { visibility: hidden; }
.frame-handle[data-frame-axis="width"] { color: var(--frame-width); }
.frame-hit { fill: transparent; }
.frame-grip { fill: currentColor; stroke: #fff; stroke-width: 1.5; }
.frame-handle path { fill: none; stroke: #fff; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.frame-handle:hover .frame-grip, .is-resizing .frame-grip { stroke-width: 2.5; }
.frame-view-buttons {
  display: flex;
  position: absolute;
  top: 7px;
  right: 7px;
  gap: 3px;
}
.frame-view-buttons button, .frame-floor-stepper button {
  display: grid;
  place-items: center;
  border: 0;
  color: var(--action);
  padding: 0;
  font-size: 19px;
  line-height: 1;
}
.frame-view-buttons button {
  width: 32px;
  height: 32px;
  border: 1px solid #c9dced;
  border-radius: 7px;
  background: #fffffff0;
}
.frame-view-buttons svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.frame-view-buttons button:hover:not(:disabled), .frame-floor-stepper button:hover:not(:disabled) { background: #dce8f3; }
.frame-help, .frame-error { font-size: 11px; margin-top: 7px; line-height: 1.6; color: #40566b; }
.frame-help-row, .frame-plan-toolbar, .frame-plan-levels, .frame-plan-legend { display: flex; align-items: center; gap: 7px; }
.frame-help-row { justify-content: space-between; margin-top: 6px; }
.frame-help-row .frame-help { margin-top: 0; }
.frame-stair-button { flex-shrink: 0; border-color: #e4d9c4; background: #faf5ea; color: #694c28; }
.frame-stair-button[aria-pressed="true"] { border-color: #af8b58; background: #f2e3cc; }
.frame-plan-toolbar { justify-content: space-between; flex-wrap: wrap; margin-bottom: 7px; font-size: 11px; color: #40566b; }
.frame-plan-levels { gap: 4px; flex-wrap: wrap; }
.frame-plan-levels span { margin-right: 4px; }
.frame-plan-levels button { min-width: 32px; background: #edf5fc; }
.frame-plan-toolbar output { color: var(--action); font-size: 13px; font-weight: 700; }
.frame-plan-stage {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  border: 1px solid #dce8f3;
  border-radius: 11px;
  background: radial-gradient(#d8e8f7 0.65px, transparent 0.65px) 0 0 / 14px 14px, #edf5fc;
}
.frame-plan-stage:focus-visible { outline: 2px solid #297ab5; outline-offset: 3px; }
.frame-plan-stage:not([data-tool="roof"]):not([data-tool="foundation"]) { touch-action: none; user-select: none; }
.frame-plan-stage[data-tool="column"], .frame-plan-stage[data-tool="stair"], .frame-plan-stage[data-tool="balcony"] { cursor: crosshair; }
.frame-plan-stage [data-plan-column], .frame-plan-stage [data-plan-stair-part], .frame-plan-stage [data-plan-balcony] { cursor: grab; }
.frame-plan-stage:active { cursor: grabbing; }
.plan-tools, .plan-balcony-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.plan-tools button, .plan-tools select, .plan-balcony-controls button {
  min-height: 32px;
  padding: 4px 8px;
  border: 1px solid #c9dced;
  border-radius: 6px;
  background: #f6faff;
  color: var(--action);
  font-size: 11px;
}
.plan-tools button[aria-pressed="true"], .plan-balcony-controls button[aria-pressed="true"] { background: #e0efff; border-color: #8fbce2; font-weight: 700; }
.plan-tools select { margin-left: auto; background: #fff; }
.plan-stair-angle { font-size: 11px; color: #40566b; }
.plan-balcony-controls { margin-top: 5px; font-size: 10px; color: #40566b; }
.plan-balcony-controls button.has-balcony::after { content: ''; display: inline-block; width: 5px; height: 5px; margin-left: 4px; border-radius: 50%; background: #206a9d; vertical-align: middle; }
.plan-balcony-controls :is(#plan-balcony-remove, #black-plan-balcony-remove) { color: #894b42; background: #fbf5f1; border-color: #ead9d2; }
.plan-edit-help, .plan-edit-message { font-size: 11px; line-height: 1.55; margin: 5px 0 7px; color: #40566b; }
.plan-edit-message { color: #963d33; }
.plan-outline { fill: #f6faff; stroke: #40566b; stroke-width: 1.35; }
.plan-beam { stroke: #9fb9d2; stroke-linecap: round; }
.plan-column { fill: #173e62; }
.plan-auto-column { fill: #5691c2; stroke: #edf5fc; stroke-width: 0.9; }
.plan-common { fill: none; stroke: #53697e; stroke-dasharray: 5 4; stroke-width: 1.15; pointer-events: none; }
.plan-column-marker { fill: #285a83; stroke: #fff; stroke-width: 1.25; }
.plan-column-marker.is-selected { fill: #123b62; stroke: #83b7e4; stroke-width: 2.7; }
.plan-column-number { font: 700 10px var(--font); text-anchor: middle; fill: white; pointer-events: none; }
.plan-part-hit { fill: transparent; }
.plan-stair { fill: #ead8b6; stroke: #9b7549; stroke-width: 1.2; }
.plan-stair.is-selected { stroke-width: 2.5; stroke: #8b5924; }
.plan-balcony { fill: #dcecf9; stroke: #527b9d; stroke-width: 1.2; }
.plan-balcony.is-selected { fill: #bbd9f3; stroke-width: 2.5; stroke: #366185; }
.plan-timber-roof { fill: #efe0c8; stroke: #a58457; }
.plan-roof-ridge { stroke: #a58457; stroke-width: 1.7; stroke-dasharray: 4 2; }
.plan-roof-hip { stroke: #a58457; stroke-width: 1.25; }
.plan-axis-dimension { stroke: #53697e; stroke-width: 0.85; pointer-events: none; }
.plan-axis-text { fill: #173e62; font: 700 12px var(--font); text-anchor: middle; pointer-events: none; }
.plan-foundation-pad, .plan-foundation-raft { fill: #d8e8f7; stroke: #7698b8; stroke-width: 1; }
.plan-foundation-outline { fill: none; stroke: #53697e; stroke-dasharray: 4 3; }
.plan-tread { stroke: #b28d59; stroke-width: 0.8; }
.plan-stair-arrow { fill: none; stroke: #684723; stroke-width: 1.35; stroke-linecap: round; stroke-linejoin: round; }
.plan-dimension { stroke: #53697e; stroke-width: 0.9; }
.plan-dimension-text, .plan-empty-text { fill: #173e62; font: 700 13px var(--font); text-anchor: middle; }
.frame-plan-legend { flex-wrap: wrap; gap: 3px 12px; margin-top: 6px; color: #40566b; font-size: 11px; }
.plan-key { display: inline-flex; align-items: center; gap: 5px; }
.plan-key::before { content: ''; width: 7px; height: 7px; border-radius: 2px; background: #173e62; }
.plan-key-beam::before { background: #9dbcd7; }
.plan-key-auto::before { background: #5691c2; }
.plan-key-stair::before { background: #c8a775; }
.plan-key-balcony::before { background: #89adc9; }
.frame-error { color: #963d33; }
.frame-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(92px, 1.2fr);
  gap: 9px;
  margin-top: 12px;
}
.frame-option-label { display: flex; align-items: center; gap: 5px; margin-bottom: 4px; font-size: 11px; color: #182e44; }
.frame-option-label.frame-length::before, .frame-option-label.frame-width::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--frame-length); }
.frame-option-label.frame-width::before { background: var(--frame-width); }
.frame-value, .frame-floor-stepper {
  display: flex;
  align-items: center;
  height: 40px;
  border: 1px solid #c9dced;
  border-radius: 8px;
  background: #fff;
}
.frame-value { padding: 0 8px; gap: 4px; }
.frame-value input { min-width: 0; width: 100%; padding: 0; border: 0; background: transparent; color: var(--ink); font-size: 16px; appearance: textfield; }
.frame-value input::-webkit-inner-spin-button, .frame-value input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.frame-value:has([aria-invalid="true"]) { border-color: #b1594a; }
.frame-value span { font-size: 12px; color: #40566b; }
.frame-floor-stepper { justify-content: space-between; }
.frame-floor-stepper button { height: 100%; width: 32px; flex-shrink: 0; border-radius: 7px; background: #edf5fc; }
.frame-floor-stepper output { min-width: 16px; text-align: center; font-size: 16px; }
.frame-bottom { margin-top: 12px; padding-top: 8px; border-top: 1px solid #dce8f3; font-size: 11px; color: #40566b; }
.frame-bottom strong { margin-left: 3px; font-size: 14px; font-weight: 700; color: var(--action); }
.build-summary { margin: -14px 0 18px; }
.slab-summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #40566b; font-size: 12px; }
.slab-summary button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 0 5px 8px; border: 0; border-radius: 4px; background: transparent; color: var(--action); font-size: 12px; }
.slab-summary button:hover span:first-child { text-decoration: underline; }

@media (max-width: 760px) {
  .frame-editor { max-width: 520px; margin: 18px auto 22px; padding: 12px; }
  .frame-view-buttons button { width: 34px; height: 34px; }
  .frame-options { gap: 7px; }
  .frame-value { padding: 0 6px; }
}

/* Structural and black-frame stages */
.structure-actions, .locked-actions { display: grid; gap: 8px; }
.structure-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.structure-actions button, .locked-actions button { width: 100%; line-height: 1.45; }
.structure-actions button, .black-estimate-actions button { justify-content: space-between; text-align: left; }
.structure-locked {
  padding: clamp(13px, 2vw, 21px);
  border: 1px solid #bfd8ea;
  border-radius: 13px;
  background: #f1f8ff;
}
.stage-lock-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
}
.stage-lock-label svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}
.locked-budget-label { margin-top: 14px; color: var(--muted); font-size: 12px; }
.structure-locked > output {
  display: block;
  margin: 1px 0 13px;
  color: var(--action);
  font-size: clamp(22px, 4vw, 33px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.black-stage-top { max-width: 1456px; padding-top: 12px; }
.black-stage-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 10px clamp(13px, 2vw, 20px);
  border-radius: 18px;
  background: #122d46;
  color: #f5faff;
}
.black-back-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: #dcf0ff;
  font-size: 12px;
  text-align: left;
}
.black-back-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.black-back-button:focus-visible { outline-color: #a6d2f5; }
.black-stage-banner h1 {
  margin: 0 0 3px;
  font-size: clamp(24px, 3vw, 39px);
  line-height: 1.2;
  letter-spacing: -.035em;
}
.black-stage-banner h1:focus { outline: none; }
.black-stage-banner h1:focus-visible { outline: 2px solid #a6d2f5; outline-offset: 3px; }
.black-stage-description { color: #dfedf7; font-size: 12px; line-height: 1.55; }
.black-stage-banner .finish-workbench-jump:focus-visible { outline-color: #a6d2f5; }
.frozen-summary {
  min-width: 0;
  padding: clamp(11px, 2vw, 20px);
  border: 1px solid #496982;
  border-radius: 12px;
  background: #1f3c57;
  color: #f5faff;
}
.frozen-summary .stage-lock-label { margin-bottom: 9px; color: #d7ebfd; }
.frozen-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 13px; }
.frozen-metrics span { display: block; color: #c0d9ec; font-size: 11px; line-height: 1.5; }
.frozen-metrics output {
  display: block;
  margin-top: 3px;
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
#black-controls .masonry-options { min-width: 0; margin: 0; }
.black-opening-options {
  min-width: 0;
  margin: 0;
  padding: 9px 11px 10px;
  border: 1px solid #d7e6f2;
  border-radius: 9px;
  background: #f6fbff;
}
.black-opening-options legend { padding: 0 4px; color: var(--action); font-size: 12px; font-weight: 700; }
.black-opening-actions { display: grid; gap: 6px; }
.black-opening-actions .secondary-button { justify-content: flex-start; min-height: 42px; padding: 6px 9px; gap: 6px; font-size: 12px; }
.black-opening-actions .secondary-button span { margin-inline-start: auto; }
.black-opening-options p { margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.wall-history-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.wall-history-actions .secondary-button { justify-content: center; gap: 5px; min-height: 44px; padding: 5px 9px; font-size: 12px; }
.wall-history-actions .secondary-button:disabled { opacity: .55; cursor: default; }
#black-controls #black-calculate { line-height: 1.45; text-align: left; }
.black-workspace .frame-editor { margin-top: 10px; }
.frame-workspace:has(> .frame-settings[hidden]) { grid-template-columns: minmax(0, 1fr); }
.frame-lock-note { font-weight: 700; }
.frame-editor[data-structure-locked] .frame-plan-stage [data-plan-column],
.frame-editor[data-structure-locked] .frame-plan-stage [data-plan-stair-part],
.frame-editor[data-structure-locked] .frame-plan-stage [data-plan-balcony],
.frame-editor[data-structure-locked] .frame-plan-stage:not([data-tool="masonry"]):active { cursor: default; }

@media (min-width: 761px) and (max-width: 940px) {
  .header-inner { gap: 12px; }
  .nav { gap: 11px; font-size: 12px; }
}
@media (max-width: 640px) {
  .structure-actions { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  #black-workspace { display: none !important; }
}

/* Model workspace */
.header { height: 76px; }
.eyebrow { color: #476781; }
.workspace-shell { max-width: 1456px; }
.secondary-button { min-height: 49px; }
.secondary-button { border-color: #cbdcec; color: #304e68; background: #fff; }
.frame-editor {
  --frame-length: #176197;
  --frame-width: #7553a5;
  max-width: none;
  margin: 0;
  padding: clamp(12px, 1.65vw, 23px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 45px #183b610b;
  scroll-margin-top: 14px;
}
.frame-heading { gap: 12px 18px; margin-bottom: 16px; }
.frame-heading h2 { font-size: clamp(18px, 2vw, 25px); line-height: 1.45; letter-spacing: -0.025em; }
.frame-heading .eyebrow { font-size: 10px; color: #55728c; }
.frame-heading-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.frame-view-switch { border: 1px solid #d9e8f5; border-radius: 9px; background: #f0f7fe; }
.frame-view-switch button { min-height: 34px; padding-inline: 12px; }
.frame-view-switch button[aria-pressed="true"] { border-color: #a1c7e8; background: #fff; color: #175682; box-shadow: 0 1px 4px #183b6114; }
.workspace-expand { min-height: 42px; padding: 8px 11px; }
.workspace-expand svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.frame-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(272px, 292px); align-items: start; gap: clamp(12px, 1.45vw, 20px); }
:is(#frame-editor, #black-frame-editor, #white-frame-editor) {
  --workbench-height: clamp(330px, calc(100dvh - 285px), 760px);
  padding: clamp(10px, 1.3vw, 18px);
}
:is(#black-frame-editor, #white-frame-editor) { --workbench-height: clamp(330px, calc(100dvh - 300px), 760px); }
:is(#frame-editor, #black-frame-editor, #white-frame-editor) .frame-heading { margin-bottom: 11px; }
:is(#frame-editor, #black-frame-editor, #white-frame-editor) .frame-workspace {
  grid-template-columns: minmax(0, 1fr) clamp(330px, 32vw, 420px);
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(9px, 1.15vw, 16px);
  block-size: var(--workbench-height);
}
.frame-main, .frame-inspector { min-width: 0; }
.frame-settings { display: grid; min-width: 0; gap: 12px; }
:is(#frame-editor, #black-frame-editor, #white-frame-editor) .frame-settings { grid-template-rows: minmax(0, 1fr); min-block-size: 0; }
:is(#frame-editor, #black-frame-editor, #white-frame-editor) .frame-main {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-block-size: 0;
  min-inline-size: 0;
}
:is(#frame-editor, #black-frame-editor) :is(#frame-model-view, #black-frame-model-view) { display: flex; flex-direction: column; min-block-size: 0; }
:is(#frame-editor, #black-frame-editor) .frame-stage { flex: 1 1 0; min-block-size: 0; }
:is(#frame-editor, #black-frame-editor) .frame-stage > svg { display: block; inline-size: 100%; block-size: 100%; min-block-size: 0; aspect-ratio: auto; }
:is(#frame-editor, #black-frame-editor) :is(#frame-plan-view, #black-frame-plan-view) {
  overflow: auto;
  overscroll-behavior: contain;
  padding: 3px 4px;
  scrollbar-gutter: stable;
}
:is(#frame-editor, #black-frame-editor) .frame-bottom { margin-top: 10px; padding-top: 7px; }
.frame-inspector { padding: 14px; border: 1px solid #dce8f3; border-radius: 13px; background: #f5faff; }
.inspector-title { font-size: 14px; line-height: 1.5; color: var(--ink); }
.frame-inspector .frame-options { grid-template-columns: repeat(2, minmax(0, 1fr)) 82px; gap: 6px; margin: 9px 0 12px; }
.frame-inspector .frame-value { padding: 0 5px; }
.frame-inspector .frame-floor-stepper button { width: 26px; }
.frame-inspector .frame-system { margin-bottom: 10px; }
.frame-inspector .frame-system legend { font-weight: 700; color: #253f56; }
.frame-inspector .frame-system-choice { border-color: #d4e3ef; }
.frame-inspector .frame-system-choice:has(input:checked) { border-color: #88b8df; background: #e6f3ff; }
.frame-inspector .frame-dimensions-note { color: #4f667a; line-height: 1.6; }
.frame-inspector .roof-settings { background: #eaf4ff; }
.workspace-budget { width: 100%; min-height: 42px; justify-content: space-between; padding: 9px 13px; font-size: 12px; }
.frame-bottom { margin-top: 14px; padding-top: 11px; }
.frame-stage, .frame-plan-stage {
  border-color: #d5e6f5;
  border-radius: 13px;
  background-color: #f7fbff;
  background-image:
    linear-gradient(#dcebf9 1px, transparent 1px),
    linear-gradient(90deg, #dcebf9 1px, transparent 1px),
    linear-gradient(#edf5fd 1px, transparent 1px),
    linear-gradient(90deg, #edf5fd 1px, transparent 1px);
  background-size: 88px 88px, 88px 88px, 22px 22px, 22px 22px;
  background-position: center center;
}
.frame-stage[data-camera-tool="pan"] { cursor: move; }
.frame-stage.is-panning, .frame-stage[data-camera-tool="pan"].is-panning { cursor: grabbing; }
.frame-camera-buttons, .frame-view-buttons { position: absolute; top: 9px; display: flex; align-items: center; gap: 4px; }
.frame-camera-buttons { left: 9px; }
.frame-view-buttons { right: 9px; }
.frame-camera-buttons button, .frame-view-buttons button {
  height: 34px;
  min-width: 34px;
  border: 1px solid #cadced;
  border-radius: 7px;
  background: #fffffff2;
  color: #1a4161;
  line-height: 1.3;
}
.frame-camera-buttons button { padding: 0 8px; font-size: 11px; font-weight: 700; }
.frame-camera-buttons [data-frame-pan] { padding: 0; font-size: 19px; font-weight: 400; }
.frame-camera-buttons button:hover, .frame-view-buttons button:hover:not(:disabled) { background: #e7f4ff; }
.frame-camera-buttons button[aria-pressed="true"] { border-color: #74abd9; background: #dcefff; color: #144d78; }
.frame-help-row { gap: 9px; margin-top: 8px; }
.frame-stair-button { border-color: #c9deef; background: #f5faff; color: #204763; }
.frame-stair-button[aria-pressed="true"] { border-color: #8bb8df; background: #e0efff; }
.frame-grid { stroke: #d8e8f7; }
.frame-timber { stroke: #b76d32; }
.plan-outline { fill: #fafdff; stroke: #7096b8; }
.plan-foundation-pad, .plan-foundation-raft { fill: #dcecf9; stroke: #789abb; }
.plan-foundation-outline { fill: none; stroke: #6b8ba8; }
.plan-foundation-tie, .plan-foundation-tie-joint, .plan-key-tie::before { fill: #88afd2; background: #88afd2; }
.plan-axis-dimension, .plan-dimension { stroke: #5b7d9c; }
.plan-balcony { fill: #dcecf9; stroke: #527b9d; }
.plan-key-auto::before { background: #5691c2; }
.plan-key-beam::before { background: #9fb9d2; }

.workspace-dialog {
  width: min(1680px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 1px solid #bad3e9;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
  overflow: auto;
  overscroll-behavior: contain;
  box-shadow: 0 22px 100px #14294038;
}
.workspace-dialog::backdrop { background: #15283d88; backdrop-filter: blur(5px); }
.workspace-dialog .frame-editor.is-expanded { padding: clamp(12px, 2.1vw, 30px); border: 0; border-radius: 0; box-shadow: none; }
:is(#frame-editor, #black-frame-editor, #white-frame-editor).is-expanded { --workbench-height: max(285px, calc(100dvh - 155px)); }
.workspace-dialog .frame-heading {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  padding-bottom: 8px;
}

/* Structural estimate workspace */
.estimate-layout {
  max-width: 1456px;
  padding-block: 13px 10px;
}
.estimate-layout h1 {
  margin: 0;
  font-size: clamp(26px, 2.7vw, 39px);
  line-height: 1.23;
  letter-spacing: -.04em;
}
.estimate-layout .hero-copy > .eyebrow { display: none; }
.estimate-layout h1 span { color: var(--accent); }
.estimate-layout .hero-description {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
@media (min-width: 1050px) {
  .estimate-layout .hero-copy {
    display: flex;
    align-items: center;
    gap: 14px 20px;
  }
  .estimate-layout h1 { flex: 0 1 auto; }
  .estimate-layout .hero-description { flex: 0 1 36ch; }
}
.basis-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}
.basis-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.estimate-notes.shell { max-width: 1456px; }
.estimate-basis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 22px;
  padding: 16px 18px;
  border: 1px solid #dbeaf6;
  border-radius: 13px;
  background: #f5faff;
}
.estimate-basis strong { display: block; margin-bottom: 3px; font-size: 13px; }
.estimate-basis p { color: var(--muted); font-size: 12px; line-height: 1.65; }
.basis-link { margin-bottom: -6px; }
.frame-settings .calculator-card {
  width: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-block-size: 0;
  max-width: none;
  margin: 0;
  padding: 0;
  border-color: var(--line);
  border-radius: 14px;
  box-shadow: none;
  container-type: inline-size;
  overflow: hidden;
}
.workbench-settings-header, .workbench-actions { padding: 11px 13px; }
.workbench-settings-header { border-bottom: 1px solid var(--line); background: var(--soft); }
.workbench-settings-header .calculator-heading { margin-bottom: 8px; }
.workbench-settings-header .calculator-heading h2 { font-size: clamp(14px, 1.35vw, 17px); }
.workbench-settings-header .calculator-tag { border: 1px solid #c6dcef; background: var(--paper); }
.workbench-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 3px;
  border: 1px solid #c9ddeb;
  border-radius: 9px;
  background: var(--paper);
}
.workbench-tabs button {
  min-inline-size: 0;
  min-block-size: 34px;
  padding: 4px 5px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--action);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}
.workbench-tabs button:hover { background: var(--soft); }
.workbench-tabs button[aria-selected="true"] { background: var(--accent); color: var(--white); }
.workbench-tabs button:focus-visible { outline-offset: -2px; }
.workbench-tabs button[aria-selected="true"]:focus-visible { outline-color: var(--white); }
.frame-settings-scroll {
  min-block-size: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 13px 12px 16px 13px;
  scroll-padding-block: 10px;
  scrollbar-gutter: stable;
  scrollbar-color: #7898b4 var(--soft);
}
.frame-settings-scroll:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.workbench-panel { min-inline-size: 0; }
.workbench-panel > :last-child { margin-bottom: 0; }
.workbench-panel .frame-options { grid-template-columns: repeat(2, minmax(0, 1fr)) 82px; gap: 6px; margin: 0 0 10px; }
.workbench-panel .frame-value { padding-inline: 5px; }
.workbench-panel .frame-floor-stepper button { width: 26px; }
.workbench-panel .frame-inspector { padding: 0; border: 0; background: transparent; }
.workbench-actions { border-top: 1px solid var(--line); background: var(--soft); }
.workbench-actions :is(.structure-actions, .black-estimate-actions) { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 7px; }
.workbench-actions :is(.structure-actions, .black-estimate-actions) button { min-block-size: 42px; padding: 7px 8px; font-size: 11px; }
.workbench-actions > p.form-scope { margin-top: 5px; font-size: 10px; }
.workbench-actions :is(#layout-error, #black-layout-error, #white-error) { max-block-size: 66px; margin-bottom: 7px; overflow: auto; overscroll-behavior: contain; }
.calculator-card:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
.calculator-heading, .area-field-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3px 10px;
}
.calculator-heading { align-items: center; margin-bottom: 17px; }
.calculator-heading h2 { font-size: 19px; line-height: 1.35; }
.calculator-tag {
  padding: 3px 9px;
  border-radius: 20px;
  background: #eaf5ff;
  color: #235579;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.calculator-card .field { margin-bottom: 15px; }
.calculator-card .field legend { margin-bottom: 7px; }
.masonry-options {
  margin-bottom: 15px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f5faff;
}
.masonry-options legend { padding: 0 4px; color: var(--action); font-size: 12px; font-weight: 700; }
.masonry-choices { display: grid; gap: 8px; }
.masonry-check, .masonry-partition-mode { color: var(--action); font-size: 11px; font-weight: 700; }
.masonry-check { display: flex; gap: 7px; align-items: center; min-height: 40px; cursor: pointer; }
.masonry-check input { width: 15px; height: 15px; accent-color: var(--action); }
.masonry-partition-mode { display: grid; gap: 3px; min-width: 0; }
.masonry-partition-mode select, .plan-wall-controls select {
  width: 100%;
  min-width: 0;
  min-height: 39px;
  padding: 5px 7px;
  border: 1px solid #c9dced;
  border-radius: 6px;
  background: #fff;
  color: var(--action);
  font-size: 12px;
}
.masonry-options p { margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.inline-model-link { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; color: var(--accent); font-size: 11px; font-weight: 700; }
.inline-model-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.calculator-card .floor-option { min-width: 0; min-height: 52px; gap: 4px; padding: 5px; font-size: 11px; }
.calculator-card .floor-option.selected { border-color: #80aed2; background: #eaf5ff; color: #214c6d; }
.area-field-heading { margin-bottom: 7px; }
.area-field-heading label { color: var(--ink); font-size: 13px; font-weight: 700; }
.area-field-heading p { color: var(--muted); font-size: 10px; }
.calculator-card .area-control { height: 46px; }
.calculator-card .total-area {
  margin-top: 7px;
  padding: 5px 10px;
  border-radius: 7px;
  background: #f2f8fd;
}
.total-area output { font-variant-numeric: tabular-nums; }
.supported-area-note {
  margin: 0 0 6px;
  padding: 7px 9px;
  border-inline-start: 3px solid var(--accent);
  background: var(--selection);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.5;
}
.calculator-card .basement-area { margin-top: 4px; }

.calculator-card .site-field { margin-bottom: 8px; }
.calculator-card .site-options { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.calculator-card .site-option { align-items: flex-start; gap: 7px; min-height: 59px; padding: 8px; line-height: 1.35; }
.calculator-card .site-option strong { font-size: 11px; font-weight: 700; overflow-wrap: anywhere; }
.calculator-card .site-option small { font-size: 10px; overflow-wrap: anywhere; }
.calculator-card .site-option .radio-dot { margin-top: 1px; }
.calculator-card .site-option:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.calculator-card .site-option input:focus-visible + .radio-dot { outline: 0; }
.calculator-card .site-option.selected { border-color: #80aed2; background: #eaf5ff; }
.site-baseline { margin: 0 0 9px; color: #36546d; font-size: 11px; line-height: 1.65; }
.calculator-card .unsupported-note { margin-bottom: 9px; }
.calculator-card .unsupported-note p { color: #625036; }
.basement-setting {
  margin: 7px 0;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5faff;
}
.basement-setting:has(input:checked) { border-color: #80aed2; }
.basement-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  color: var(--action);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.basement-toggle input { width: 15px; height: 15px; accent-color: var(--action); }
.basement-height {
  display: grid;
  grid-template-columns: auto 78px minmax(0, 1fr);
  align-items: center;
  gap: 5px 8px;
  padding: 7px 0 9px;
  border-top: 1px solid var(--line);
  color: var(--action);
  font-size: 11px;
}
.basement-height p { grid-column: 1 / -1; line-height: 1.55; }
.basement-height small, .basement-height p { color: var(--muted); }
.basement-height .inline-model-link { grid-column: 1 / -1; justify-self: start; }

.estimate-options { margin: 8px 0; border-block: 1px solid var(--line); }
.estimate-options > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 43px;
  color: #34536c;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.estimate-options summary::-webkit-details-marker { display: none; }
.estimate-options > summary::after { content: '+'; font-size: 16px; font-weight: 400; }
.estimate-options[open] > summary::after { content: '−'; }
.estimate-options .build-summary { margin: 0 0 7px; }
.estimate-options .slab-summary { min-height: 34px; }
.storey-height-settings { margin-bottom: 12px; scroll-margin-top: 16px; }
.storey-height-settings legend { color: var(--action); font-size: 12px; font-weight: 700; }
.storey-height-settings p { margin: 3px 0 7px; color: var(--muted); font-size: 11px; }
.storey-height-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.storey-height-grid label { display: grid; gap: 3px; min-width: 0; color: var(--action); font-size: 11px; }
.storey-height-grid .roof-input-unit { min-height: 39px; }

.estimate-options .reserve-details { margin: 4px 0 9px; padding-top: 6px; }
.estimate-options .reserve-details summary { min-height: 36px; }
.calculator-card .form-scope { margin: 7px 0 0; font-size: 11px; text-align: left; line-height: 1.6; }
.calculator-card .calculate-button { min-height: 49px; padding-block: 10px; }
.workspace-shell { padding-bottom: clamp(27px, 4vw, 52px); }
#workspace-shell { padding-bottom: 16px; }
.workspace-intro { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.frame-height-link { display: flex; align-items: center; gap: 7px; min-height: 37px; color: var(--accent); font-size: 11px; font-weight: 700; }
.frame-height-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.frame-system-choice:has(input:disabled) { opacity: .62; cursor: default; }
.frame-help-row { flex-wrap: wrap; }
.frame-help-row .frame-help { flex: 1 1 15rem; }
.frame-help-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.frame-basement-legend { margin-top: 5px; color: #40566b; font-size: 11px; line-height: 1.55; }

/* Masonry layout controls */
.plan-partition-options {
  display: grid;
  grid-template-columns: minmax(160px, .55fr) minmax(0, 1fr);
  align-items: end;
  gap: 6px 12px;
  margin: 7px 0 8px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f5faff;
}
.plan-partition-options p { align-self: center; color: var(--muted); font-size: 11px; line-height: 1.55; }
.plan-wall-controls, .plan-opening-tools {
  display: grid;
  margin-top: 7px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f5faff;
  color: var(--action);
  font-size: 11px;
}
.plan-opening-tools { gap: 5px; margin-bottom: 8px; }
.plan-opening-actions, .plan-wall-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.plan-wall-selected {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 10px;
  padding: 6px 8px;
  border: 1px solid #b3cee7;
  border-radius: 7px;
  background: #eef7ff;
}
.plan-wall-selected strong { flex: 1 1 auto; overflow-wrap: anywhere; font-size: 12px; }
.plan-opening-guidance { min-block-size: 3em; }
.plan-opening-guidance:has(.plan-opening-status:not([hidden])) .plan-opening-help { display: none; }
.plan-opening-help { color: var(--muted); line-height: 1.5; }
.plan-opening-status { color: var(--action); font-weight: 700; line-height: 1.5; }
.plan-wall-controls p { color: var(--muted); line-height: 1.55; }
:is(.plan-wall-controls, .plan-opening-tools) button {
  min-height: 38px;
  padding: 5px 9px;
  border: 1px solid #a2c6e3;
  border-radius: 7px;
  background: #e8f4ff;
  color: var(--action);
  font-size: 11px;
  font-weight: 700;
}
:is(.plan-wall-controls, .plan-opening-tools) button:hover:not(:disabled) { border-color: #78aad1; background: #d8edff; }
.plan-opening-tools button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--white); }
.plan-opening-tools button.plan-opening-cancel { background: var(--white); }
.plan-wall-controls button.wall-remove { border-color: #ead9d2; background: #fbf5f1; color: #894b42; }
.plan-wall-controls button.wall-remove:hover:not(:disabled) { border-color: #dab4a5; background: #f8e8e0; }
:is(.plan-wall-controls, .plan-opening-tools) button:disabled { opacity: .55; cursor: default; }
.plan-wall-precision summary { min-height: 30px; color: var(--accent); font-weight: 700; cursor: pointer; }
.plan-wall-precision-fields { display: grid; gap: 8px; padding-top: 6px; }
.plan-wall-coordinates { padding-block: 4px; border-block: 1px solid var(--line); }
.plan-wall-coordinates summary { padding: 5px 0; color: var(--accent); cursor: pointer; font-weight: 700; }
.plan-wall-coordinates .plan-wall-fields { margin: 6px 0; }
.plan-wall-picker { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; }
.plan-wall-picker select { flex: 1 1 11rem; }
.plan-wall-note { color: var(--muted); line-height: 1.5; }
.plan-wall-note:empty { display: none; }
.plan-wall-opening { display: grid; gap: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.plan-wall-opening legend { padding-right: 5px; font-weight: 700; }
.plan-wall-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: 6px; }
.plan-wall-fields.plan-wall-selects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.plan-wall-fields label { display: grid; gap: 3px; min-width: 0; }
.frame-editor .frame-plan-stage[data-tool="masonry"] { cursor: crosshair; touch-action: pan-y pinch-zoom; }
.frame-plan-stage[data-tool="view"] [data-wall-hit] { cursor: pointer; }
.frame-plan-stage [data-wall-edit-handle],
.frame-plan-stage [data-wall-edit-handle] * { touch-action: none; }
.frame-plan-stage [data-wall-edit-handle] { cursor: grab; }
.frame-plan-stage [data-wall-edit-handle][data-axis="x"] { cursor: ew-resize; }
.frame-plan-stage [data-wall-edit-handle][data-axis="y"] { cursor: ns-resize; }
.frame-plan-stage [data-wall-edit-handle="partition-move"] { cursor: move; }
.plan-edit-hit { fill: transparent; stroke: none; pointer-events: all; }
.plan-edit-grip {
  fill: #fff;
  stroke: #1256a1;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.plan-wall-edit-handle:hover .plan-edit-grip { fill: #dceeff; stroke: #0c427f; }
.plan-wall-edit-handle[data-wall-edit-handle="partition-move"] .plan-edit-grip { fill: #1256a1; stroke: #fff; }
.plan-edit-ghost { color: #137245; pointer-events: none; }
.plan-edit-ghost[data-valid="false"] { color: #ab3c30; }
.plan-edit-ghost :is(line, polyline) {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 5 3;
}
.plan-edit-ghost circle { fill: #fff; stroke: currentColor; stroke-width: 1.7; }
.plan-opening-preview { color: #137245; pointer-events: none; }
.plan-opening-preview[data-valid="false"] { color: #ab3c30; }
.plan-opening-preview line { stroke: currentColor; stroke-width: 5; stroke-linecap: round; }
.plan-opening-preview[data-valid="false"] line { stroke-dasharray: 4 3; }
.plan-opening-preview circle { fill: var(--white); stroke: currentColor; stroke-width: 1.7; }
.plan-partition-preview { color: #216fa5; pointer-events: none; }
.plan-partition-preview[data-valid="false"] { color: #ab3c30; }
.plan-partition-preview line { stroke: currentColor; stroke-width: 2.4; stroke-dasharray: 5 3; stroke-linecap: round; }
.plan-partition-preview circle { fill: var(--white); stroke: currentColor; stroke-width: 1.6; }
.plan-partition-preview text, .plan-room-area-label {
  font: 700 13px var(--font);
  text-anchor: middle;
  paint-order: stroke;
  stroke: #f9fcff;
  stroke-width: 3.5;
  stroke-linejoin: round;
  pointer-events: none;
}
.plan-partition-preview text { fill: currentColor; }
.plan-room-area-label { fill: #15544e; }
.wall-plan-legend { display: inline-flex; flex-wrap: wrap; gap: 5px 12px; }
.plan-key-block::before { background: #84644a; }
.plan-key-window::before { background: #007a98; }
.plan-key-door::before { background: #984427; }
.plan-key-glazing::before { background: #6e43a7; }
.plan-key-room-area::before { background: #15544e; }

.workspace-comparison {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #c6dfef;
  border-radius: 9px;
  background: #f2f8fe;
  color: #294963;
  font-size: 12px;
  line-height: 1.55;
}
.comparison-amount { color: var(--ink); font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.comparison-drivers { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.workspace-comparison > div { display: grid; gap: 3px; }
.workspace-comparison .text-button { min-height: 44px; padding-inline: 5px; color: var(--accent); }

/* Detailed estimate */
.report-basis {
  margin: 12px 0 20px;
  padding: 13px 16px;
  border: 1px solid #dbeaf6;
  border-radius: 11px;
  background: #f5faff;
  color: #34536c;
  font-size: 12px;
  line-height: 1.65;
}
.report-basis h2 { color: var(--ink); font-size: 16px; }
.report-basis .scope-lists { margin: 8px 0; gap: 8px 20px; }
.report-basis .scope-lists h3 { margin-bottom: 4px; }
.report-basis .scope-lists li { margin-block: 4px; }
.report-basis .report-assumptions { border-top: 1px solid #dbeaf6; padding-top: 8px; }
.report-scenarios .scenario { min-width: 0; }
.report-scenarios .scenario small { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.takeoff-list { display: grid; gap: 9px; margin-top: 15px; }
.takeoff-list > h2, .takeoff-list > p.subtext { margin: 0; }
.takeoff-group { min-width: 0; border: 1px solid #dce8f3; border-radius: 10px; background: #fff; }
.takeoff-group summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 7px 12px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 9px;
  background: #f6fbff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.takeoff-group summary::-webkit-details-marker { display: none; }
.takeoff-group summary strong { margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.takeoff-group summary::after { content: '+'; color: #24648f; font-size: 15px; font-weight: 400; }
.takeoff-group[open] summary::after { content: '−'; }
.takeoff-group[open] summary { border-bottom: 1px solid #dce8f3; border-radius: 9px 9px 0 0; }
.takeoff-group h3 { margin: 10px 14px 6px; color: #243f55; font-size: 13px; }
.takeoff-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.takeoff-table, .inventory-table { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.takeoff-table th, .takeoff-table td, .inventory-table th, .inventory-table td { padding: 8px 10px; border-bottom: 1px solid #e5eef6; text-align: left; vertical-align: top; }
.takeoff-table thead th, .inventory-table thead th { color: #294963; font-weight: 700; background: #eef6fd; }
.takeoff-table tbody th, .inventory-table tbody th { color: #253c50; font-weight: 700; }
.takeoff-table tbody tr:last-child > *, .inventory-table tbody tr:last-child > * { border-bottom: 0; }
.takeoff-table small, .inventory-table small { display: block; margin-top: 2px; color: #50687b; font-size: 10px; font-weight: 400; line-height: 1.5; white-space: normal; }
.takeoff-money { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
td.takeoff-money, th.takeoff-money { text-align: right; }
.takeoff-sources { margin: 10px 14px; color: #50687b; font-size: 11px; line-height: 1.7; }
.takeoff-sources a, .takeoff-table a, .inventory-table a { color: #175e96; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }

@media (min-width: 831px) and (max-height: 620px) {
  :is(#frame-editor, #black-frame-editor, #white-frame-editor) { --workbench-height: max(285px, calc(100dvh - 170px)); }
}
@media (max-width: 830px) {
  :is(#frame-editor, #black-frame-editor, #white-frame-editor) { --workbench-height: clamp(405px, calc(100dvh - 130px), 740px); }
  :is(#frame-editor, #black-frame-editor, #white-frame-editor).is-expanded { --workbench-height: max(405px, calc(100dvh - 125px)); }
  :is(#frame-editor, #black-frame-editor, #white-frame-editor) .frame-workspace {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: clamp(135px, 29dvh, 238px) minmax(0, 1fr);
  }
  :is(#frame-editor, #black-frame-editor) .frame-workspace:has(:is(#frame-plan-view, #black-frame-plan-view):not([hidden])) {
    grid-template-rows: auto clamp(300px, calc(100dvh - 140px), 530px);
    block-size: auto;
  }
  :is(#frame-editor, #black-frame-editor) :is(#frame-plan-view, #black-frame-plan-view) { overflow: visible; padding: 0; }
  :is(#frame-editor, #black-frame-editor) .frame-help-row { justify-content: end; margin-top: 5px; }
  :is(#frame-editor, #black-frame-editor) :is(#frame-help, #black-frame-help),
  #white-frame-editor :is(.white-render-help, .white-preview-card figcaption) {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  :is(#frame-editor, #black-frame-editor) .frame-stair-button { min-block-size: 31px; }
  .estimate-layout h1 { margin: 3px 0; font-size: clamp(23px, 5.2vw, 33px); }
  .estimate-basis { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .frame-workspace { grid-template-columns: minmax(0, 1fr); }
  .frame-stage > svg { min-height: 228px; }
}
@media screen and (max-width: 760px) {
  .report-top > .report-actions { display: flex; flex-wrap: wrap; }
  .report-actions .secondary-button { min-height: 44px; }
}
@media (max-width: 540px) {
  .header { height: 64px; }
  .header .settings-button { min-width: 44px; min-height: 44px; justify-content: center; }
  .estimate-layout { padding: 10px 14px 8px; }
  .estimate-layout .hero-description { margin-inline: auto; line-height: 1.55; }
  .workbench-settings-header, .workbench-actions { padding: 7px 9px; }
  .workbench-settings-header .calculator-heading { margin-bottom: 5px; }
  .workbench-settings-header .calculator-tag,
  :is(#frame-editor, #black-frame-editor, #white-frame-editor) .frame-heading .eyebrow { display: none; }
  .frame-settings-scroll { padding: 10px 9px; }
  .workbench-tabs button { min-block-size: 36px; }
  .calculator-heading { margin-bottom: 10px; }
  .calculator-heading h2 { font-size: 17px; }
  .calculator-card .field { margin-bottom: 12px; }
  .masonry-choices { gap: 2px; }
  .calculator-card .floor-option { min-height: 45px; }
  .basement-height { grid-template-columns: minmax(0, 1fr) 68px auto; }

  .calculator-card .site-option { display: grid; align-content: start; gap: 4px; padding: 7px; }
  .calculator-card .form-scope { font-size: 10px; }
  .workspace-intro { font-size: 11px; }
  .report-basis .scope-lists { grid-template-columns: minmax(0, 1fr); }
  .workspace-shell.shell, .estimate-notes.shell { padding-inline: 12px; }
  .frame-editor { border-radius: 15px; }
  .frame-heading { gap: 8px; margin-bottom: 9px; }
  .frame-heading-actions { gap: 5px; }
  .frame-view-switch button { padding-inline: 7px; min-height: 30px; }
  .frame-heading-actions .tool-icon, .frame-camera-buttons .tool-icon { inline-size: 13px; block-size: 13px; }
  .workspace-expand { min-height: 38px; padding-inline: 8px; }
  .frame-camera-buttons, .frame-view-buttons { top: 6px; gap: 3px; }
  .frame-camera-buttons { left: 6px; }
  .frame-view-buttons { right: 6px; }
  .frame-camera-buttons button { padding-inline: 5px; font-size: 10px; }
  .frame-view-buttons button, .frame-camera-buttons button { min-width: 31px; width: auto; height: 32px; }
  .frame-help-row { align-items: start; }
  .plan-wall-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-wall-controls button, .plan-wall-controls select { min-height: 42px; }
  .plan-partition-options select { min-height: 44px; }
  .plan-opening-actions button { min-height: 44px; }
  .plan-partition-preview text, .plan-room-area-label { font-size: 16px; }
  .workspace-dialog { width: 100%; max-height: 100dvh; border-radius: 0; }
  .takeoff-table th, .takeoff-table td, .inventory-table th, .inventory-table td { padding: 6px; font-size: 11px; }
  .takeoff-scroll .takeoff-table, .takeoff-scroll .inventory-table { min-width: 390px; }
}

@media screen and (max-width: 430px) {
  .plan-partition-options { grid-template-columns: minmax(0, 1fr); }
  .plan-opening-guidance { min-block-size: 4.5em; }
  .report-scenarios { grid-template-columns: minmax(0, 1fr); }
  .report-scenarios .scenario {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: baseline;
    gap: 2px 8px;
    padding: 8px 11px;
  }
  .report-scenarios .scenario strong { margin-top: 0; }
  .report-scenarios .scenario small { grid-column: 1 / -1; }
}

@media print {
  .workspace-dialog { display: none !important; }
  .report-basis, .report-scenarios { break-inside: avoid; }
  .takeoff-list { display: block; }
  .takeoff-group { margin: 8px 0; }
  .takeoff-group > :not(summary) { display: block; }
  .takeoff-group::details-content { content-visibility: visible; }
  .takeoff-group summary::after { display: none; }
  .takeoff-scroll { overflow: visible; }
  .takeoff-scroll .takeoff-table, .takeoff-scroll .inventory-table { min-width: 0; }
  .takeoff-table thead, .inventory-table thead { display: table-header-group; }
  .takeoff-table tr, .inventory-table tr { break-inside: avoid; }
}

/* Finish workspaces */
.finish-workbench-jump {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-block-size: 38px;
  padding: 6px 10px;
  border: 1px solid var(--control-line);
  border-radius: 8px;
  background: var(--white);
  color: var(--action);
  font-size: 11px;
  font-weight: 700;
}
.finish-workbench-jump:hover { background: var(--soft); }
.black-frozen-status {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #bfd8ea;
  border-radius: 12px;
  background: #f1f8ff;
}
.black-frozen-status p:not(.stage-lock-label) { color: var(--muted); font-size: 12px; }
.black-frozen-status output { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.black-frozen-status .secondary-button { min-height: 44px; }
.black-estimate-actions { display: grid; }
.black-estimate-actions > button { gap: 5px; width: 100%; line-height: 1.45; }
.black-estimate-actions:has(#freeze-black[hidden]) #freeze-black-hint { display: none; }
.black-estimate-actions #freeze-black-hint { grid-column: 1 / -1; }
#black-budget-note, #white-rates-note { margin-top: 9px; }

.white-workspace {
  max-width: 1456px;
  padding-top: 12px;
  padding-bottom: clamp(26px, 5vw, 64px);
}
.white-stage-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 10px clamp(13px, 2vw, 20px);
  border: 1px solid #c8dfef;
  border-radius: 19px;
  background: linear-gradient(115deg, #f7fbfe, #e6f4fe);
}
.white-back-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: #275371;
  font-size: 12px;
  text-align: left;
}
.white-back-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.white-stage-banner h1 {
  margin: 0 0 3px;
  font-size: clamp(24px, 3vw, 39px);
  line-height: 1.2;
  letter-spacing: -.035em;
}
.white-stage-banner h1:focus:not(:focus-visible) { outline: none; }
.white-stage-intro { max-width: 58ch; color: var(--muted); font-size: 12px; line-height: 1.55; }
#white-workspace-shell { margin-top: 10px; }
.white-preview-card {
  display: flex;
  flex-direction: column;
  min-block-size: 0;
  min-inline-size: 0;
  margin: 0;
}
.white-preview-canvas {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-block-size: 0;
  min-inline-size: 0;
}
#white-frame-editor .white-render-stage { flex: 1 1 0; min-block-size: 0; border-color: var(--control-line); }
#white-frame-editor .white-render-model { inline-size: 100%; block-size: 100%; }
#white-frame-editor .white-render-controls { flex: none; gap: 4px 6px; margin-top: 6px; }
#white-frame-editor .white-render-help, .white-preview-card figcaption { margin-top: 4px; color: var(--muted); font-size: 11px; }
.white-preview-canvas:empty { border-radius: 10px; background: #edf5fb; }
#white-controls .workbench-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px 8px; }
#white-controls #white-error { flex-basis: 100%; }
.white-total { display: grid; min-inline-size: 0; }
.white-total span { color: var(--muted); font-size: 11px; }
.white-total output { color: var(--action); font-size: clamp(17px, 2vw, 21px); font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#white-show-budget { min-block-size: 42px; padding: 7px 8px; font-size: 11px; }
@media (max-width: 830px) {
  #white-frame-editor .white-render-controls button { min-width: 36px; padding-inline: 5px; font-size: 11px; }
  #white-frame-editor .white-render-controls [data-render-zoom] { font-size: 17px; }
}
.white-choice {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f6fbff;
}
.white-choice legend { padding-inline: 4px; color: #214a66; font-size: 13px; font-weight: 700; }
.white-select { display: grid; gap: 3px; min-width: 0; }
.white-select span, .white-color-row > span, .white-rate-field > span:first-child { color: #34536a; font-size: 12px; font-weight: 700; }
.white-select select, .white-rate-input {
  min-width: 0;
  min-height: 44px;
  border: 1px solid #bdd2e3;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.white-select select { width: 100%; padding: 6px 8px; font-size: 14px; }
.white-select select:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.white-color-row, .white-rate-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}
.white-color-row input {
  width: 58px;
  height: 44px;
  padding: 4px;
  border: 1px solid #bdd2e3;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.white-rate-input {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px 7px 3px 4px;
}
.white-rate-input input {
  width: 5.5ch;
  min-width: 0;
  padding: 3px 1px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: right;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.white-rate-input > span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.white-check { display: flex; align-items: center; gap: 7px; min-height: 42px; font-size: 13px; font-weight: 700; cursor: pointer; }
.white-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.white-choice-note { color: var(--muted); font-size: 11px; line-height: 1.6; }
.white-summary-lines .summary-row { border-bottom: 1px solid #edf3f7; }
.white-summary-lines .summary-row small { display: block; margin-top: 2px; font-size: 11px; }
.white-summary-lines .summary-row strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
.white-summary-lines .summary-row.total {
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid #c4deee;
  border-radius: 9px;
  background: #edf7fd;
}
.manual-span-panel { padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; background: #f6fbff; }
.manual-span-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-bottom: 8px; }
.manual-span-fields label { display: grid; min-width: 0; gap: 3px; color: #34536a; font-size: 11px; font-weight: 700; }
.manual-span-fields input { min-width: 0; min-height: 42px; width: 100%; padding: 5px 8px; border: 1px solid #bdd2e3; border-radius: 8px; color: var(--ink); font-size: 16px; }
.manual-span-actions button { min-height: 42px; }

@media (min-width: 761px) {
  .how-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(13px, 2.6vw, 32px); }
}
@media (min-width: 761px) and (max-width: 940px) {
  .nav-model-link { display: none; }
}
@media (max-width: 540px) {
  .black-stage-top.shell, .white-workspace.shell { padding-inline: 12px; }
  .manual-span-fields { grid-template-columns: minmax(0, 1fr); }
  .manual-span-fields label { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; }
}
@media print {
  .white-stage-banner, .white-preview-card { break-inside: avoid; }
  .white-back-button, .finish-workbench-jump,
  #white-frame-editor :is(.workspace-expand, .workbench-settings-header, .workbench-actions, .white-render-controls, .white-render-help),
  #white-frame-editor .workbench-panel:not(#white-panel-budget) { display: none !important; }
  #white-frame-editor { padding: 0; border: 0; box-shadow: none; }
  #white-frame-editor :is(.frame-workspace, .frame-main, .frame-settings, .calculator-card, .frame-settings-scroll, .white-preview-canvas) {
    display: block;
    block-size: auto;
    overflow: visible;
  }
  #white-frame-editor .white-render-model { block-size: 245px; }
  #white-frame-editor .white-preview-card figcaption { position: static; inline-size: auto; block-size: auto; clip-path: none; }
  #white-frame-editor .calculator-card { container-type: normal; margin-top: 10px; }
  #white-frame-editor #white-panel-budget { display: block !important; }
}

/* Step navigation and visible control states */
@media screen {
  body { background: var(--canvas); }
  .header { border-bottom: 1px solid var(--line); }
}
.stage-progress.shell { max-width: 1456px; padding-top: 14px; }
.new-project-button { color: var(--action); font-weight: 700; white-space: nowrap; }
.project-export { margin-top: 12px; }
@media (max-width: 500px) {
  .header-actions { gap: 6px; }
  .header-actions .settings-button { min-inline-size: 40px; min-block-size: 40px; justify-content: center; }
}
@media print { .project-export { display: none; } }
.stage-progress ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stage-progress :is(a, button) {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  height: 100%;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid var(--control-line);
  border-radius: 9px;
  background: var(--white);
  color: var(--action);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  overflow-wrap: anywhere;
}
.stage-progress-number {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--accent);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.stage-progress :is(a, button):hover:not(:disabled) { background: var(--soft); }
.stage-progress [data-complete] { border-color: var(--accent); }
.stage-progress [data-complete] .stage-progress-number { background: var(--accent); color: var(--white); }
.stage-progress [data-complete]::after { content: '✓' / ''; margin-left: auto; color: var(--accent); }
.stage-progress [aria-current="step"]:not(:disabled),
.stage-progress [aria-current="step"]:hover:not(:disabled) { border-color: var(--accent); background: var(--accent); color: var(--white); }
.stage-progress [aria-current="step"] .stage-progress-number { background: var(--selection); color: var(--action); }
.stage-progress [aria-current="step"]::after { color: var(--white); }
.stage-progress button:disabled { border-color: var(--line); background: #edf2f7; color: #455c71; opacity: 1; }
.stage-progress button:disabled .stage-progress-number { background: #dce7f0; color: #455c71; }

.stage-next { background: var(--accent); color: var(--white); }
.stage-next:hover:not(:disabled) { background: #10385e; }
.stage-review { border-color: var(--control-line); background: var(--white); color: var(--action); }
.stage-review:hover:not(:disabled) { background: var(--soft); color: var(--action); }
.stage-next:disabled, .stage-review:disabled { border-color: var(--line); background: #edf2f7; color: #455c71; opacity: 1; }
.report-top { flex-wrap: wrap; gap: 10px; }
.report-top > .report-actions { flex-wrap: wrap; }

:is(button, a, summary, input, select):focus-visible { outline-color: var(--focus); }
.black-back-button:focus-visible { outline-color: #a6d2f5; }
.secondary-button, .settings-button { border-color: var(--control-line); }
.secondary-button:hover:not(:disabled), .settings-button:hover:not(:disabled) { border-color: var(--accent); background: var(--soft); }
:is(.area-control, .radio-dot, .individual-row input, .rate-input, .frame-value, .frame-floor-stepper, .roof-input-unit,
  .roof-settings-grid select, .masonry-partition-mode select, .plan-wall-controls select, .manual-span-fields input,
  .white-select select, .white-color-row input, .white-rate-input) { border-color: var(--control-line); }
.calculator-card :is(.floor-option, .site-option), .frame-inspector .frame-system-choice { border-color: var(--control-line); }
.calculator-card :is(.floor-option.selected, .site-option.selected), .frame-inspector .frame-system-choice:has(input:checked) {
  border-color: var(--accent);
  background: var(--selection);
  color: var(--action);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.calculator-card .site-option.selected .radio-dot { border-color: var(--accent); }
.calculator-card .basement-setting:has(input:checked) { border-color: var(--accent); background: var(--selection); }
.calculator-card .form-scope, .frame-help, .plan-edit-help, .white-render-help { color: var(--muted); }
.frame-inspector, .masonry-options, .black-opening-options, .white-choice, .estimate-basis { background: var(--soft); }
.frame-editor :is(.frame-camera-buttons, .frame-view-buttons, .plan-tools, .plan-balcony-controls) :is(button, select),
.frame-editor .frame-stair-button, .white-preview-card .white-render-controls button { border-color: var(--control-line); }
.frame-editor :is(.frame-view-switch, .frame-plan-levels, .frame-camera-buttons, .plan-tools, .plan-balcony-controls) button[aria-pressed="true"],
.frame-editor .frame-stair-button[aria-pressed="true"], .white-preview-card .white-render-controls button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
}
.frame-stage, .frame-plan-stage { border-color: var(--control-line); }
.plan-outline, .plan-beam { stroke: var(--control-line); }
.plan-key-beam::before { background: var(--control-line); }
.calculator-card .unsupported-note p, .report-note { color: #625036; }
.field-error { color: #873222; }
.scenario.current, .white-summary-lines .summary-row.total { border-color: var(--accent); background: var(--selection); }

@media (max-width: 640px) {
  .stage-progress.shell { padding-inline: 14px; padding-top: 10px; }
  .stage-progress ol { gap: 5px; }
  .stage-progress :is(a, button) { flex-direction: column; justify-content: center; gap: 4px; min-height: 64px; padding: 6px 4px; font-size: 11px; text-align: center; }
  .stage-progress-number { width: 22px; height: 22px; font-size: 10px; }
  .stage-progress [data-complete]::after { position: absolute; top: 4px; right: 5px; margin: 0; }
}
@container (max-width: 330px) {
  .calculator-card .site-options { grid-template-columns: minmax(0, 1fr); }
  .calculator-card .site-option { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 7px 9px; }
  .calculator-card .site-option > span:last-child { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
  .calculator-card .site-option strong { font-size: 12px; overflow-wrap: normal; }
  .calculator-card .site-option small { margin: 0; font-size: 11px; overflow-wrap: normal; }
}

.brand-wordmark {
  font-family: system-ui, sans-serif;
  font-size: .95em;
  font-weight: 750;
  letter-spacing: -.055em;
  white-space: nowrap;
}
.brand-symbol { flex-shrink: 0; }

.stage-clear-button {
  min-height: 42px;
  padding: 8px 11px;
  color: #873222;
}
.stage-clear-button:hover:not(:disabled) {
  border-color: #a3594c;
  background: #fff3ef;
}
.clear-stage-modal h2 { padding-inline-end: 26px; }
.clear-stage-scope:not([hidden]) {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
}
.clear-stage-scope select {
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid var(--control-line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}
.clear-stage-all { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.clear-stage-options {
  display: grid;
  gap: 7px;
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.clear-stage-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid var(--control-line);
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}
.clear-stage-options label:has(input:checked) {
  border-color: var(--accent);
  background: var(--selection);
}
.clear-stage-options input[type="checkbox"] {
  flex: none;
  inline-size: 17px;
  block-size: 17px;
  margin: 0;
  accent-color: var(--accent);
}
.clear-stage-modal .modal-actions { flex-wrap: wrap; }
.clear-stage-modal .primary-button { background: #873222; }
.clear-stage-modal .primary-button:hover:not(:disabled) { background: #672519; }

@media (max-width: 540px) {
  .stage-clear-button { min-height: 44px; padding-inline: 8px; }
}

.result-scope {
  margin-block: 10px 14px;
  padding: 9px 13px;
  border-inline-start: 3px solid var(--accent);
  background: var(--soft);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.6;
}
.result-scope p + p { margin-block-start: 2px; }
.finish-budget-scope {
  order: 1;
  flex-basis: 100%;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

/* Shared budget indicators for the two active workspaces. */
.workbench-live-budget {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 2px 10px;
  padding: 9px 12px;
  margin-block-end: 9px;
  border: 1px solid #d5e5f1;
  border-radius: 9px;
  background: #eff6fc;
  color: var(--action);
  font-size: .875rem;
}
.workbench-live-budget output {
  font-size: 1.25rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#black-stage-cost { margin-block: 10px; }

.takeoff-stage {
  display: grid;
  min-width: 0;
  gap: 8px;
}
.takeoff-stage > header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0 16px;
  padding-block: 8px;
  border-block-end: 1px solid var(--line);
}
.takeoff-stage > header h3 { margin: 0; color: var(--action); font-size: 1rem; }
.takeoff-stage > header p { margin: 0; font-size: .875rem; }
.takeoff-stage + .takeoff-stage { margin-block-start: 14px; }
@media print {
  .takeoff-stage { display: block; }
  .takeoff-stage > header { break-after: avoid; }
}
@media (min-width: 761px) {
  body.two-stage-flow .how-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.workbench-budget-breakdown {
  display: grid;
  gap: .25rem;
  margin: 0 0 .5rem;
  color: var(--ink);
  font-size: .8125rem;
  line-height: 1.4;
}
.workbench-budget-breakdown > div {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
}
.workbench-budget-breakdown dd {
  margin: 0;
  color: var(--action);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.workbench-budget-reserve {
  border-block-start: 1px solid var(--line);
  padding-block-start: .25rem;
}
.workbench-budget-scope {
  margin-block: .5rem;
  font-size: .8125rem;
  line-height: 1.45;
}
.workbench-budget-scope summary {
  cursor: pointer;
  color: var(--action);
  font-weight: 700;
}
.workbench-budget-scope p { margin-block: .375rem 0; }

.workbench-budget-exclusion { margin-block: .5rem 0; font-size: .8125rem; line-height: 1.45; }
