:root{color-scheme:light;--ink:#203b32;--line:#dce3d8;--accent:#315c48;--paper:#f6f7f2;--muted:#5d6e64}
*{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.5 system-ui,sans-serif}
a{color:inherit}
.masthead{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:12px max(20px,calc((100vw - 1140px)/2));background:#f0e8d9;border-bottom:1px solid #e1d9cc}
.brand{display:grid;justify-items:center;gap:4px;text-decoration:none}
.brand img{display:block;width:180px;height:auto;max-width:45vw}
.brand span{font-size:9px;font-weight:750;letter-spacing:.24em}
.back{font-size:13px;font-weight:650;text-decoration:none;text-align:right}
main{max-width:1180px;margin:auto;padding:32px 20px 48px}
.intro{margin-bottom:24px}
.eyebrow{font-size:10px;letter-spacing:.19em;font-weight:750;color:var(--accent)}
h1{font-size:clamp(34px,5vw,56px);line-height:1.02;letter-spacing:-.045em;margin:7px 0 10px}
.intro p,.hint{color:var(--muted);margin:0}
.workspace{display:grid;grid-template-columns:minmax(260px,320px) minmax(0,1fr);gap:18px;align-items:start}
.panel{border:1px solid var(--line);border-radius:14px;background:white;padding:22px}
h2{font-size:17px;margin:0 0 12px}
.controls h2:not(:first-child){margin-top:22px}
.dimensions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.options{display:grid;grid-template-columns:1fr 1.2fr;gap:10px}
label{display:block;font-size:13px;font-weight:650}
label span{color:var(--muted);font-size:10px;font-weight:500}
input,select,textarea,button,.primary{font:inherit}
input:not([type=checkbox]),select,textarea{width:100%;min-height:43px;border:1px solid #c9d4c8;border-radius:7px;color:var(--ink);background:#fafbf8;padding:7px;margin-top:5px}
.customer-note{margin-top:16px}
.customer-note textarea{display:block;resize:vertical;font-weight:400}
.customer-note + .hint{margin:6px 0 12px}
.finish,.check{margin-top:14px}
.check{display:flex;align-items:start;gap:8px;font-weight:500}
.check input{accent-color:var(--accent);margin-top:4px}
.material-choice{display:flex;align-items:center;gap:12px;width:min(100%,420px);padding:12px 16px;margin:0 0 18px auto;border:1px solid #a9bca8;border-radius:12px;background:#edf3e9;cursor:pointer}
.material-choice input{width:19px;height:19px;flex:none;margin:0;accent-color:var(--accent)}
.material-choice strong{display:block;color:var(--ink);font-size:15px}
.material-choice small{display:block;color:var(--muted);font-size:12px}
.hint{font-size:12px;margin-top:15px}
.error{font-size:12px;color:#923d2a}
.preview-top{display:flex;justify-content:space-between;align-items:baseline;gap:8px;flex-wrap:wrap}
.preview-top h2,.preview-top p{margin:0}
.preview-top p{font-size:12px;color:var(--muted)}
.preview-view-toggle{padding:10px 12px;border:1px solid #a9bca8;border-radius:8px;background:#edf3e9;color:var(--ink);font-weight:700;cursor:pointer}
.preview-view-toggle input{width:16px;height:16px;flex:none;margin:2px 0 0}
#cabinet{display:block;width:100%;height:auto;margin:13px 0;background:#fafbf8;border-radius:9px}
.actions{display:flex;gap:8px;flex-wrap:wrap}
button,.primary{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:8px 12px;border:1px solid #c9d4c8;border-radius:7px;background:white;color:var(--ink);font-size:13px;font-weight:650;text-decoration:none;cursor:pointer}
.primary{background:var(--accent);border-color:var(--accent);color:white}
button:disabled,.primary[aria-disabled=true]{opacity:.45;cursor:default;pointer-events:none}
:focus-visible{outline:2px solid #45664b;outline-offset:3px}
@media(max-width:760px){.workspace{grid-template-columns:1fr}.panel{padding:16px}main{padding-top:22px}}
@media print{body{background:white}.masthead,.controls,.actions{display:none}main{padding:0}.workspace{display:block}.preview{border:0}}

.wardrobe-shelf-gap{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;margin-top:8px}
.wardrobe-shelf-gap span{padding-bottom:10px;color:#476353;font-size:13px}

.production-board{min-width:0;padding:20px;border-radius:12px;background:#142d29;color:#fff}
.production-board-kicker{margin:0 0 7px;color:#d5e8a7;font-size:10px;font-weight:750;letter-spacing:.15em}
.production-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 14px}
.production-metrics div{padding:8px;border:1px solid #52675f;border-radius:7px;background:#203e34}
.production-metrics dt{font-size:11px;color:#d0ded5}
.production-metrics dd{margin:3px 0 0;font-size:15px;font-weight:750}
.production-sheet-groups{display:grid;gap:8px;margin-bottom:14px}
.production-sheet-group{border:1px solid #52675f;border-radius:7px;padding:8px;break-inside:avoid}
.production-sheet-group h3,.production-sheet-row{display:flex;justify-content:space-between;gap:8px}
.production-sheet-group h3{margin:0 0 6px;font-size:13px}
.production-sheet-group h3 span,.production-sheet-row small{font-size:11px;color:#d0ded5}
.production-sheet-row{font-size:11px;align-items:end;overflow-wrap:anywhere}
.production-sheet-row + .production-sheet-row{margin-top:6px}
.production-sheet-row small{display:block}
.production-sheet-row strong{white-space:nowrap}
.production-board h2{font-size:21px}
.production-board #production-total,.production-board #production-labor,.production-board .hint{color:#d0ded5}
.production-board #production-total{margin-top:0}
.production-board #production-total div:last-child{margin-top:7px;padding-top:10px;border-color:#52675f;color:#fff}
.production-board #production-total div:last-child strong{font-size:20px}
.production-board .tower-table{border-color:#52675f}
.production-board table{color:#f5f8f5}
.production-board th,.production-board td{padding:7px 5px;overflow-wrap:anywhere;border-color:#52675f}
.production-board thead th{background:#28443c;color:#fff}
.production-board td:last-child{text-align:right}
.production-board label span{color:#d0ded5}
.production-prices,.production-share{margin-top:13px}
.production-prices summary,.production-share summary,.optional-drawing-details summary{cursor:pointer;font-weight:700;font-size:13px}
.production-print{width:100%;margin-top:14px;background:#d5e8a7;border-color:#d5e8a7;color:#142d29}
.production-empty{margin:0;color:#d0ded5;font-size:13px}
.production-board > :not([hidden]) + .production-empty{display:none}
.optional-drawing-details{margin-top:16px}
.optional-drawing-details[open] > summary{margin-bottom:12px}

@media(min-width:1100px){
  .quote-workspace{grid-template-columns:minmax(235px,275px) minmax(0,1fr) 300px}
  .production-board{position:sticky;top:16px;max-height:calc(100vh - 32px);overflow:auto}
}
@media(min-width:761px) and (max-width:1099px){.production-board{grid-column:2}}
@media(max-width:760px){.production-board{grid-row:1}}

@media print{
  .quote-page > :not(main),.quote-page main > :not(.quote-workspace),.quote-workspace > :not(.production-board),
  .production-board .screen-only,.production-board button,.production-board summary{display:none!important}
  .production-board{position:static;max-height:none;overflow:visible;padding:0;background:white;color:black}
  .production-board .tower-table{overflow:visible}
  .production-board .tower-table table,.production-board thead th,.production-board #production-total,
  .production-board #production-labor,.production-board #production-total div:last-child,.production-board-kicker{color:black}
  .production-board thead th,.production-metrics div{background:white}
  .production-metrics dt,.production-sheet-group h3 span,.production-sheet-row small{color:black}
  .production-metrics{break-inside:avoid}
  .production-board table tr,.production-board #production-total{break-inside:avoid}
}
