:root{font:16px/1.5 system-ui,sans-serif;color:#14272c;background:#f4f6f7;color-scheme:light}
*{box-sizing:border-box}
[hidden]{display:none!important}
body,h1,h2,p,dl,dd{margin:0}
.shell{width:min(1120px,100% - 40px);margin-inline:auto}
.masthead{background:#fff;border-bottom:1px solid #d5dedf}
.masthead-inner{min-height:62px;display:flex;align-items:center}
.wordmark{display:flex;gap:10px;align-items:center;text-decoration:none;color:#14272c;font-size:19px}
.wordmark strong{color:#006354}
.brand-mark{display:grid;place-items:center;width:34px;height:34px;background:#006354;color:white;border-radius:6px;font-weight:800}
.page-heading{padding:27px 0 23px}
h1{font-size:30px;line-height:1.2}
h2{font-size:18px}
.workspace{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:30px;align-items:start}
form section{padding:16px 0 18px;border-top:1px solid #d2dddd}
form section:first-child{padding-top:0;border:0}
.fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:10px}
label{display:grid;gap:4px;min-width:0;font-size:13px;font-weight:650}
input,select{width:100%;height:39px;min-width:0;border:1px solid #aebec0;border-radius:5px;background:white;color:inherit;padding:0 9px;font:inherit;font-weight:500}
input:invalid{border-color:#b44939}
.checkbox{display:flex;align-items:center;min-height:39px;align-self:end}
.checkbox input{width:16px;height:16px;margin:0 6px 0 0;accent-color:#006354}
.section-title{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px}
.opening{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) minmax(0,1fr) 36px;gap:8px;align-items:end;margin-top:8px}
.button,.remove{min-height:36px;border-radius:6px;font:inherit;font-size:14px;font-weight:700;cursor:pointer}
.button{padding:5px 12px}
.primary{background:#006354;border:1px solid #006354;color:white}
.secondary,.remove{background:white;border:1px solid #aebec0;color:#00584b}
.remove{height:39px;font-size:20px;line-height:1}
.button:hover:not(:disabled),.remove:hover{filter:brightness(.93)}
button:disabled{opacity:.55;cursor:not-allowed}
:focus-visible{outline:2px solid #8a4c00;outline-offset:2px}
details{margin-top:9px;padding:8px 0;border-bottom:1px solid #d2dddd}
summary{cursor:pointer;font-size:14px;font-weight:700}
.detail-fields{margin:8px 0 2px}
.result{position:sticky;top:12px;background:white;border:1px solid #cddcda;border-radius:8px;padding:16px;min-width:0}
.result-heading{margin-bottom:14px}
.plan{display:grid;place-items:center;width:min(100%,240px);height:110px;margin-inline:auto;border:3px solid #40736d;color:#16473f;background:repeating-linear-gradient(90deg,transparent 0 15px,#dce8e7 15px 16px),repeating-linear-gradient(0deg,#edf5f4 0 15px,#dce8e7 15px 16px);font-size:14px;font-weight:700}
@supports(aspect-ratio:1){.plan{height:auto;min-height:70px;max-height:135px;aspect-ratio:var(--room-ratio,1.3)}}
.muted{color:#526367;font-size:13px}
.dimension-line{text-align:center;margin:8px 0 12px}
.quantities>div{display:flex;justify-content:space-between;gap:8px;padding:11px 0;border-top:1px solid #d7e2e1}
.quantities dt{font-weight:700;min-width:0}
.quantities dt span{display:block;color:#526367;font-size:13px;font-weight:500}
.quantities dd{flex-shrink:0;font-size:17px;font-weight:800;color:#00584b;white-space:nowrap}
.result-note{margin-top:8px}
.budget{border-top:1px solid #d7e2e1;padding-top:10px;color:#16473f;font-weight:750}
#error{padding:9px 10px;background:#f9eee8;color:#843224;border-radius:4px;font-size:14px}
footer,footer nav{display:flex;gap:10px 20px;flex-wrap:wrap}
footer{justify-content:space-between;border-top:1px solid #d2dddd;margin-top:22px;padding:16px 0;font-size:13px;color:#526367}
a{color:#00584b;text-underline-offset:3px}
@media(max-width:820px){.workspace{grid-template-columns:1fr;gap:18px}.result{position:static}}
@media(max-width:460px){.shell{width:calc(100% - 24px)}h1{font-size:24px}.detail-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media print{body{background:#fff}.masthead,form,footer,#print,.page-heading{display:none!important}.workspace{display:block}.shell{width:100%}.result{position:static;border:0;padding:0}.quantities>div{break-inside:avoid}.plan{print-color-adjust:exact}}
