@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700&display=swap');
:root{font-family:'DM Sans',sans-serif;color:#34302d;background:#fbf8f3;--line:#e1d8ce;--accent:#9a5e45;--muted:#766b62}*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,.file-button{cursor:pointer;border:1px solid #3d3631;background:#3d3631;color:white;padding:12px 17px;border-radius:7px;font-size:12px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:6px}button:hover,.file-button:hover{filter:brightness(.92)}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:3px}.secondary,.file-button{background:#fffdf9;color:#3d3631;border-color:var(--line)}.text-button{background:none;color:var(--accent);border:0}header{display:flex;align-items:center;gap:28px;padding:22px 4%;border-bottom:1px solid var(--line);background:#fffdf9}.brand{display:flex;align-items:center;gap:10px;font-family:Manrope,sans-serif;font-size:28px;font-weight:700}.brand small{display:block;font-size:8px;letter-spacing:2px;margin-top:2px}.brand img{width:36px}.back{margin-left:auto;font-size:12px}.local-label{font-size:10px;color:var(--muted);border-left:1px solid var(--line);padding-left:28px}main{max-width:1550px;margin:auto;padding:36px 4%}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:Manrope,sans-serif;font-weight:500}h1{font-size:44px;letter-spacing:-1.6px}h2{font-size:23px;letter-spacing:-.5px}h3{font-size:17px}.eyebrow{font-size:10px;letter-spacing:1.6px;color:var(--accent);margin-bottom:12px}.intro{display:flex;align-items:center;justify-content:space-between;gap:20px}.intro p:last-child{font-size:13px;color:var(--muted);margin-top:12px;line-height:1.7}.toolbar{display:flex;flex-wrap:wrap;gap:9px;margin-top:26px}.file-button input{width:1px;height:1px;opacity:0;position:absolute}.file-button:focus-within{outline:2px solid var(--accent)}#message{font-size:12px;color:var(--accent);min-height:36px;padding:12px 0}.project-head{display:flex;align-items:center;justify-content:space-between;gap:25px;margin-bottom:24px}.project-head label{width:min(340px,100%)}label{display:block;color:var(--muted);font-size:11px}input:not([type=checkbox]):not([type=file]),select,textarea{display:block;width:100%;border:1px solid #d8cec3;border-radius:5px;background:#fff;padding:10px;color:#34302d;margin-top:6px;font-size:13px;min-width:0}textarea{min-height:70px;resize:vertical}input[type=checkbox]{accent-color:var(--accent);width:16px;height:16px}.stats{display:flex;gap:32px}.stats strong{display:block;font-size:25px;font-family:Manrope,sans-serif;font-weight:500}.stats span{display:block;font-size:10px;color:var(--muted);margin-top:4px}.tabs{display:flex;gap:20px;border-bottom:1px solid var(--line);margin-bottom:24px}.tabs button{background:none;color:var(--muted);border:0;border-bottom:2px solid transparent;border-radius:0;padding:14px 0}.tabs [aria-selected=true]{border-color:var(--accent);color:#34302d}.workspace{display:grid;grid-template-columns:235px minmax(0,1fr);gap:26px}aside{border-right:1px solid var(--line);padding-right:20px}aside h2{font-size:13px;margin:5px 0 18px}.cabinet-button{display:block;width:100%;text-align:left;padding:14px 12px;margin-bottom:7px;border-color:transparent;background:none;color:#34302d}.cabinet-button[aria-pressed=true]{background:#efe6da;border-color:#d2b9a7}.cabinet-button small{display:block;font-size:10px;font-weight:400;color:var(--muted);margin-top:7px}.badge{font-size:9px;padding:4px 7px;border-radius:4px;background:#f0e8de;color:#7a573e;white-space:nowrap}.badge.ok{background:#e7ece4;color:#45503e}.aside-note{font-size:10px;line-height:1.8;color:var(--muted);margin:24px 0}.detail-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;gap:15px}.detail-head p{font-size:11px;line-height:1.7;color:var(--muted);margin-top:8px}.card{background:#fffdf9;border:1px solid var(--line);padding:22px;border-radius:9px;margin-bottom:18px}.fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.settings-grid{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:25px}.wide{grid-column:1/-1}.notice{padding:14px 16px;background:#f3e8db;border-left:3px solid #b17d54;font-size:11px;line-height:1.8;margin:16px 0;color:#72543e}.muted{font-size:11px;line-height:1.8;color:var(--muted);margin:12px 0}.form-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:18px}.check{display:flex;align-items:center;gap:9px;font-size:11px;line-height:1.6}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:7px;margin:15px 0;background:#fff}table{border-collapse:collapse;width:100%;font-size:11px;white-space:nowrap}th{text-align:left;background:#f2ece3;color:#766b62;font-size:10px;font-weight:500;padding:13px 10px}td{padding:12px 10px;border-top:1px solid #eee7df}td small{display:block;color:var(--muted);font-size:9px;margin-top:5px;max-width:210px;white-space:normal;line-height:1.6}td select{font-size:10px;padding:5px;margin:0;width:65px}td button{padding:5px 7px;font-size:10px}td .edge-set{display:flex;gap:4px}td .edge-set label{display:grid;justify-items:center;font-size:8px}td input[type=checkbox]{width:13px;height:13px;margin:3px}.part-preview{display:flex;align-items:center;gap:22px;padding:15px;background:#f2ece3;border-radius:7px}.part-preview svg{width:200px;max-width:45%;height:140px}.part-preview p{font-size:11px;line-height:1.8;color:var(--muted);max-width:450px}.panel-head{max-width:800px;margin:10px 0 25px}.panel-head>p:last-child,.method p{font-size:12px;line-height:1.9;color:var(--muted);margin-top:14px}.method{max-width:850px;padding:25px 0}.empty{padding:65px 25px;border:1px dashed #d6c6b5;border-radius:10px;text-align:center}.empty h2{font-size:25px;margin:15px 0}.empty p{font-size:13px;color:var(--muted);line-height:1.8;max-width:450px;margin:auto}.empty-symbol{font-size:44px;color:#b89c83}.manual-row{display:grid;grid-template-columns:2fr repeat(4,1fr);gap:10px}.manual-row label:first-child{grid-column:1/-1}details{margin-top:20px}summary{font-size:12px;color:var(--accent);cursor:pointer;padding:10px 0}ul.issues{font-size:11px;line-height:1.8;padding-left:20px;color:#8e583b}.report-note{white-space:pre-wrap;font-size:11px;line-height:1.8;color:var(--muted);margin:6px 0 16px}footer{border-top:1px solid var(--line);padding-top:22px;margin-top:40px;color:var(--muted);font-size:10px;line-height:1.8}footer p:last-child{max-width:850px;margin-top:8px}dialog{border:1px solid var(--line);border-radius:12px;padding:30px;max-width:540px;width:calc(100% - 30px)}dialog::backdrop{background:#30292280}dialog p{font-size:13px;line-height:1.8;margin:18px 0}.dialog-actions{display:flex;gap:8px;flex-wrap:wrap}[hidden]{display:none!important}
@media(max-width:950px){.settings-grid{grid-template-columns:repeat(2,1fr)}.workspace{grid-template-columns:190px minmax(0,1fr);gap:18px}.stats{gap:20px}.fields{grid-template-columns:repeat(2,minmax(0,1fr))}.card{padding:17px}}
@media(max-width:650px){header{padding:16px 5%;gap:15px}.local-label{display:none}.brand{font-size:23px}.brand img{width:29px}main{padding:25px 5%}h1{font-size:34px}.intro{align-items:flex-start}.intro>button{font-size:10px;padding:10px}.toolbar button,.file-button{flex:1}.project-head{display:block}.stats{margin-top:22px;justify-content:space-between}.tabs{gap:20px}.tabs button{font-size:11px}.workspace{display:block}aside{border:0;padding:0}#cabinet-list{display:flex;gap:7px;overflow:auto;margin-bottom:15px}.cabinet-button{min-width:165px}.aside-note{margin:10px 0 25px}.settings-grid{gap:12px}.part-preview{gap:12px;padding:10px}.detail-head{align-items:flex-start}.manual-row{grid-template-columns:repeat(2,1fr)}.table-wrap{max-width:100%}footer{margin-top:25px}}
@media print{@page{size:A4 landscape;margin:12mm}body{background:white}header,.intro,.toolbar,.project-head,.tabs,footer,#message,#cabinets-panel,#settings-panel,button,.no-print{display:none!important}main{padding:0;max-width:none}#summary-panel{display:block!important}.table-wrap{overflow:visible;border:0}table{white-space:normal;font-size:9px}th,td{padding:7px 5px}tr{break-inside:avoid}thead{display:table-header-group}.card{break-inside:avoid}.notice{color:#543824}.panel-head h2{font-size:24px}}
.price-total{display:flex;justify-content:space-between;align-items:center;gap:25px;padding:26px;background:#efe6da;border-radius:10px;margin:22px 0}.price-total span{font-size:12px;color:#766b62;display:block}.price-total strong{display:block;font-family:Manrope,sans-serif;font-size:40px;margin-top:8px;font-weight:500;white-space:nowrap}.price-total p{max-width:420px;font-size:12px;line-height:1.8}.price-group h3{overflow-wrap:anywhere;max-width:800px}.price-group>.check{margin-top:20px}.tabs{overflow-x:auto;white-space:nowrap}#pricing-panel input[type=number]{max-width:400px}.price-group>.table-wrap{margin-top:22px}#pricing-panel .panel-head{max-width:1000px}@media(max-width:650px){.price-total{display:block;padding:20px}.price-total p{margin-top:15px}.price-total strong{font-size:32px}.price-group .detail-head{flex-direction:column;align-items:flex-start;gap:12px}}
@media print{body:not(.print-pricing) #pricing-panel{display:none!important}body.print-pricing #summary-panel{display:none!important}body.print-pricing #pricing-panel{display:block!important}.price-total{padding:15px}.price-group{break-inside:auto}.price-group input,.price-group label{display:none!important}}
/* The project preview stays outside the tab panels and follows the page scroll. */
main{max-width:1900px}.workbench{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,37%);gap:28px;align-items:start}.workbench-content{min-width:0}.workshop-preview{position:sticky;top:18px;min-width:0;border:1px solid var(--line);border-radius:13px;background:#fffdf9;padding:18px;box-shadow:0 10px 30px #49372408}.preview-heading{display:flex;align-items:center;justify-content:space-between;gap:15px}.preview-heading h2{font-size:21px}.preview-heading .eyebrow{font-size:9px;margin-bottom:6px}#preview-count{font-size:11px;color:var(--muted);white-space:nowrap}.preview-modes{display:flex;gap:7px;margin:17px 0 12px}.preview-modes button{flex:1;padding:10px;font-size:11px}.preview-modes [aria-pressed=true]{background:#3d3631;border-color:#3d3631;color:white}.preview-stage{height:clamp(240px,42vh,420px);position:relative;overflow:hidden;background:#eae8e1;border-radius:8px}#workshop-scene,#preview-plan{position:absolute;inset:0}#workshop-scene canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}#workshop-scene canvas:active{cursor:grabbing}#preview-plan svg{width:100%;height:100%;padding:28px}#preview-placeholder{position:absolute;inset:0;display:grid;place-content:center;text-align:center;pointer-events:none;font-size:12px;color:var(--muted);padding:20px;background:#eee9e0c9}#preview-plan:not([hidden])+#preview-placeholder{display:none}.preview-tools{display:flex;gap:6px;margin:10px 0 16px}.preview-tools button{padding:7px 11px;min-width:33px}.preview-tools button:last-child{margin-left:auto;font-size:10px}.preview-picker{font-size:10px}#preview-dimensions{font-size:11px;line-height:1.7;margin-top:12px;color:#6b4a34}#preview-note{font-size:10px;line-height:1.7;color:var(--muted);margin-top:9px}.workbench .workspace{display:block}.workbench #cabinets-panel>aside{border:0;padding:0}.workbench #cabinet-list{display:flex;gap:6px;overflow:auto;max-height:130px}.workbench .cabinet-button{min-width:185px;max-width:235px;margin-bottom:5px}.workbench .aside-note{margin:8px 0 22px}.workbench .settings-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.workbench .price-total{display:block}.workbench .price-total p{margin-top:14px}.workbench .tabs{gap:18px}.workbench .tabs button{font-size:11px}
@media(max-width:1050px){.workbench{display:flex;flex-direction:column;gap:18px}.workbench-content{width:100%;order:2}.workshop-preview{order:1;width:100%;top:0;z-index:5;padding:12px;border-radius:0 0 12px 12px;display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,35%);gap:8px 16px;box-shadow:0 8px 20px #49372415}.preview-heading{grid-column:2;grid-row:1}.preview-heading h2{font-size:16px}.preview-heading .eyebrow,#preview-count,#preview-note{display:none}.preview-stage{grid-column:1;grid-row:1/6;height:210px}.preview-modes{grid-column:2;grid-row:2;margin:0;gap:4px}.preview-modes button{padding:7px 5px;font-size:10px}.preview-tools{grid-column:2;grid-row:3;margin:0;gap:4px;flex-wrap:wrap}.preview-tools button{padding:5px 8px}.preview-picker{grid-column:2;grid-row:4}.preview-picker select{font-size:11px;padding:7px}#preview-dimensions{grid-column:2;grid-row:5;margin:0;font-size:10px}.workbench .settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:550px){.workshop-preview{grid-template-columns:minmax(0,1fr) 142px;gap:6px 10px;padding:8px}.preview-stage{height:195px}.preview-heading h2{font-size:14px}.preview-modes{flex-direction:column}.preview-modes button{padding:5px}.preview-tools button:last-child{display:none}.preview-picker{font-size:9px}#preview-dimensions{font-size:9px}.workbench .tabs{gap:14px}.workbench .fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media print{.workshop-preview{display:none!important}.workbench,.workbench-content{display:block;width:100%}}

.preview-stage.is-fallback #preview-placeholder{inset:auto 0 0;background:#fffdf9dd;padding:8px;font-size:10px}.preview-stage.is-fallback #preview-plan svg{padding-bottom:45px}

.board-prices{border-color:#c9a98c;background:#fff9f0}.board-prices h3{font-size:21px}.board-price-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(190px,40%);gap:20px;align-items:center;padding:18px 0;border-top:1px solid var(--line)}.board-price-row strong{font-size:13px;line-height:1.6;display:block;overflow-wrap:anywhere}.board-price-row small{display:block;font-size:11px;color:var(--muted);line-height:1.7;margin-top:7px}.board-price-row input{font-size:20px!important;font-weight:600;border-color:#b58c6c!important;background:white}.board-price-save{margin-top:12px}@media(max-width:650px){.board-price-row{grid-template-columns:1fr;gap:12px}.board-prices h3{font-size:19px}}
