@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--green:#244b40;--ink:#263d37;--muted:#66766f;--line:#dce3dd;--paper:#fff;--soft:#f3f6f2;--gold:#ad8753}*{box-sizing:border-box}body{margin:0;font:16px/1.5 'DM Sans',sans-serif;color:var(--ink);background:var(--soft);overflow:hidden}button,input,select,textarea{font:inherit}button,.button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:42px;padding:9px 13px;border:1px solid var(--line);border-radius:8px;background:white;color:var(--ink);font-size:14px;font-weight:600;line-height:1.3;text-align:center;cursor:pointer;text-decoration:none}button:hover,.button:hover{background:#edf3ee;border-color:#c4d0c7}.primary{color:white;background:var(--green);border-color:var(--green)}.primary:hover{background:#173d32;color:white}.danger{color:#9d3934}button:disabled{opacity:.42;cursor:not-allowed}a{color:inherit}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,#viewport:focus-visible{outline:3px solid var(--gold);outline-offset:2px}input,select,textarea{width:100%;padding:10px 11px;border:1px solid #ccd7ce;border-radius:7px;color:var(--ink);background:white;min-height:44px;font-size:15px}input[type=range]{padding:0}label{display:block;font-size:14px;font-weight:600;margin-bottom:14px}label input,label select{display:block;margin-top:6px}h1,h2,h3{font-family:Manrope,sans-serif}h2{font-size:21px;line-height:1.35;letter-spacing:-.5px;margin:0 0 20px}h3{font-size:16px;margin:18px 0 12px}h4{font-size:14px}p{margin:10px 0 16px}.muted{font-size:13px;line-height:1.55;color:var(--muted)}.full{width:100%;margin:5px 0}.app-header{height:72px;display:flex;align-items:center;gap:25px;padding:12px 24px;border-bottom:1px solid var(--line);background:white}.back-link{font-size:14px;text-decoration:none;border-right:1px solid var(--line);padding-right:24px}.app-title span{font-size:11px;letter-spacing:2px;font-weight:700;color:var(--muted)}.app-title h1{font-size:20px;letter-spacing:-.5px;margin:0}.header-actions{display:flex;gap:8px;margin-left:auto}.workspace{height:calc(100dvh - 72px);display:grid;grid-template-columns:320px minmax(0,1fr)}body.has-selection .workspace{grid-template-columns:320px minmax(0,1fr) 320px}.workflow-panel{display:flex;flex-direction:column;min-height:0;background:white;border-right:1px solid var(--line);min-width:0}.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:0;padding:10px 8px;border-bottom:1px solid var(--line);flex-shrink:0}.steps button{border:0;padding:9px 3px;flex-direction:column;gap:4px;font-size:13px;background:transparent;border-radius:7px}.steps b{width:24px;height:24px;border-radius:50%;background:#eef2ed;display:grid;place-items:center;font-size:12px}.steps [aria-selected=true]{background:#edf3ec;color:var(--green)}.steps [aria-selected=true] b{background:var(--green);color:white}.panel-scroll{padding:24px 18px;overflow:auto;min-height:0;overscroll-behavior:contain;scrollbar-width:thin}.eyebrow{font-size:11px;font-weight:700;letter-spacing:1.5px;color:#79887d}.intro{font-size:15px;line-height:1.6;color:var(--muted)}.room-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.room-fields label:last-child{grid-column:1/-1}.room-guide{padding:18px;border:1px solid var(--line);border-radius:10px;background:#f6f8f4;margin:24px 0}.room-guide strong{font-size:15px}.room-guide p{font-size:14px;color:var(--muted);margin:9px 0 0}details summary{cursor:pointer;font-size:14px;font-weight:600;padding:12px 0;line-height:1.5}.help-box{border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:20px 0}.help-box p{font-size:14px}.filters{border:1px solid var(--line);border-radius:8px;padding:0 12px;margin:0 0 16px}.filters summary{font-size:13px}.filters label{margin-top:8px}.surface-target{background:#f2f5ed;padding:12px;border-radius:8px}.results{margin:12px 0}.coverage-link{font-size:13px;display:block;margin:20px 0;text-align:center}#products{display:grid;grid-template-columns:1fr 1fr;gap:10px}.product{border:1px solid var(--line);border-radius:10px;overflow:hidden;display:flex;flex-direction:column;cursor:grab;background:white;min-width:0}.product img{width:100%;height:110px;object-fit:contain;background:#fafbf8;padding:9px}.product>div{padding:10px;display:flex;flex-direction:column;flex:1;gap:4px}.product strong{font-size:13px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:54px}.product small{display:block;font-size:12px;color:var(--muted);line-height:1.4}.product small:last-of-type{font-size:11px;color:#547058;margin:2px 0 5px}.product button{font-size:13px;padding:7px 5px;width:100%;margin-top:auto;min-height:38px}.product [disabled]{font-size:12px}.design-stage{display:flex;flex-direction:column;min-width:0;min-height:0;position:relative}.viewbar{display:flex;gap:10px;justify-content:space-between;align-items:center;flex-wrap:wrap;padding:12px 16px;flex-shrink:0;border-bottom:1px solid var(--line);background:#fcfdfb}.view-buttons,.history-buttons{display:flex;gap:4px}.view-buttons button{border-color:transparent;background:transparent}.view-buttons [aria-pressed=true]{background:#e5ede5;border-color:#d0dece;color:var(--green)}.history-buttons button{font-size:13px;padding:8px}.view-settings{position:relative}.view-settings summary{list-style:none;padding:10px;border:1px solid var(--line);border-radius:8px;background:white}.view-settings[open]>div{position:absolute;right:0;top:48px;width:250px;z-index:15;padding:18px;background:white;border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 30px #193b3020}.check-label{font-weight:400;display:flex;align-items:center;gap:8px}.check-label input{width:18px;min-height:18px;margin:0}#viewport{position:relative;flex:1;min-height:280px;overflow:hidden;background:#e6e8e2}canvas{display:block;touch-action:none;width:100%;height:100%}.scene-label{position:absolute;top:20px;left:22px;pointer-events:none;z-index:1}.scene-label span{font:600 22px Manrope,sans-serif;display:block}.scene-label small{font-size:12px;color:#697970}.view-help{position:absolute;bottom:14px;left:18px;right:18px;text-align:center;font-size:12px;pointer-events:none;color:#466153;text-shadow:0 1px 2px #fff;z-index:2}.empty-scene{position:absolute;top:42%;left:50%;transform:translate(-50%,-50%);width:min(320px,82%);padding:22px;display:flex;flex-direction:column;gap:12px;align-items:center;text-align:center;background:#ffffffed;border:1px solid #dce4d7;border-radius:14px;box-shadow:0 12px 40px #30443812;z-index:3}.empty-scene strong{font:700 19px Manrope,sans-serif}.empty-scene span{font-size:14px;color:var(--muted)}.selected-tools{position:absolute;bottom:48px;left:50%;transform:translateX(-50%);display:flex;gap:4px;max-width:calc(100% - 24px);padding:6px;background:#ffffffed;border:1px solid var(--line);border-radius:12px;box-shadow:0 6px 22px #142e3020;z-index:5}.selected-tools button{border:0;white-space:nowrap;padding:9px;font-size:13px;background:transparent}.selected-tools button:hover{background:#eaf1e7}#status{margin:0;min-height:46px;max-height:74px;overflow:auto;padding:13px 18px;font-size:13px;color:#425e4d;background:#edf2e8;border-top:1px solid #d9e2d3;line-height:1.5;flex-shrink:0}.inspector{display:flex;flex-direction:column;min-height:0;min-width:0;background:white;border-left:1px solid var(--line)}.inspector-header{height:57px;padding:10px 16px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;flex-shrink:0}.inspector-header span{font-size:11px;letter-spacing:1.5px;font-weight:700;color:var(--muted)}.inspector-header button{min-height:34px;font-size:13px;padding:6px 10px}.inspector-scroll{overflow:auto;padding:20px 18px;overscroll-behavior:contain;scrollbar-width:thin}#selected-name{font-size:17px;letter-spacing:-.3px;margin-bottom:16px}.selected-reference{display:flex;gap:12px;align-items:center;margin-bottom:16px}.selected-reference img{width:100px;height:106px;object-fit:contain;background:#fafbf8;border-radius:9px;border:1px solid var(--line);padding:8px}.selected-reference p{font-size:12px;margin:0}.technical-state{font-size:13px;background:#f0f5ed;padding:12px;border-left:3px solid #728d6d;border-radius:0 6px 6px 0;line-height:1.55}.technical-note{font-size:12px}.technical-details,.manual-controls{border-top:1px solid var(--line);margin-top:18px}.technical-details>summary,.manual-controls>summary{font-size:14px}.technical-links{display:grid;gap:8px}.technical-links a{font-size:13px;padding:10px 12px;border:1px solid var(--line);border-radius:7px;text-decoration:none;overflow-wrap:anywhere}.technical-links a:hover{background:var(--soft)}#technical dl{font-size:13px}#technical dt{font-weight:700}#technical dd{margin:0 0 9px;color:var(--muted)}.technical-drawing img{width:100%;height:auto;background:white}.technical-drawing small{display:block;font-size:12px;color:var(--muted)}.edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.edit-grid label{font-size:13px}.inspector-actions{margin-top:20px}.inspector-notice{border-top:1px solid var(--line);padding-top:16px;font-size:12px}.bill-row{padding:16px 0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:44px minmax(0,1fr);gap:10px}.bill-row img{width:44px;height:56px;object-fit:contain}.bill-row strong{font-size:14px;line-height:1.4;display:block}.bill-row small{display:block;font-size:12px;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}.bill-row>button{grid-column:2;font-size:12px;justify-self:start;min-height:34px;padding:7px 12px}.bill-row details summary{font-size:12px;padding:7px 0}.bill-row .edit-line{font-size:12px;padding:5px 10px;min-height:32px;margin-top:8px}.total{display:flex;flex-direction:column;padding:22px 0 10px;gap:5px}.total span{font-size:20px;font-weight:600;color:var(--green)}.empty{font-size:14px;padding:18px 5px;color:var(--muted)}dialog{border:0;border-radius:15px;max-width:800px;width:calc(100% - 32px);padding:28px;max-height:85dvh;color:var(--ink)}dialog::backdrop{background:#17392e77}dialog .close{float:right;margin-left:15px}.saved-project{display:flex;gap:8px;align-items:center;padding:15px 0;border-bottom:1px solid var(--line);flex-wrap:wrap}.saved-project strong{flex:1}.compare-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.compare-grid img{width:100%}.compare-grid article{border:1px solid var(--line);padding:12px;border-radius:9px}.compare-grid p{font-size:13px}.mobile-panel-toggle{display:none}[hidden]{display:none!important}
@media(min-width:1700px){.workspace{grid-template-columns:360px minmax(0,1fr)}body.has-selection .workspace{grid-template-columns:360px minmax(0,1fr) 340px}.product img{height:130px}.product strong{font-size:14px}}
@media(max-width:1150px) and (min-width:761px){.workspace,body.has-selection .workspace{grid-template-columns:290px minmax(0,1fr)}.inspector{position:absolute;right:16px;top:144px;bottom:70px;width:310px;z-index:10;border:1px solid var(--line);border-radius:12px;box-shadow:0 8px 32px #17392e25}.viewbar{padding:10px}.history-buttons{margin-left:auto}.app-header{gap:16px;padding:12px 16px}}
@media(max-width:760px){body{overflow:hidden}.app-header{height:64px;padding:9px 12px;gap:8px}.back-link{font-size:12px;padding-right:8px}.app-title span{display:none}.app-title h1{font-size:15px;letter-spacing:-.3px}.header-actions{gap:4px}.header-actions button{font-size:12px;padding:8px;min-height:38px}#share{display:none}.workspace,body.has-selection .workspace{display:block;height:calc(100dvh - 64px)}.design-stage{height:calc(52dvh - 64px);transition:height .15s}.workflow-panel{position:fixed;left:0;right:0;bottom:0;height:48dvh;z-index:20;border:0;border-top:1px solid #c9d6c9;border-radius:16px 16px 0 0;box-shadow:0 -5px 25px #18392c15}.steps{padding:5px 8px}.steps button{flex-direction:row;min-height:40px;font-size:13px;gap:7px}.steps b{width:22px;height:22px}.mobile-panel-toggle{display:block;position:absolute;right:8px;top:-38px;border-radius:9px 9px 0 0;min-height:34px;font-size:12px;padding:7px 10px;box-shadow:0 -3px 10px #17392e10}.panel-scroll{padding:18px;flex:1}.room-fields{grid-template-columns:1fr 1fr 1fr}.room-fields label:last-child{grid-column:auto}.room-guide,.help-box{margin:16px 0}#products{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.product img{height:130px}.product strong{font-size:14px}.product button{min-height:42px}.viewbar{padding:6px 8px;gap:3px;flex-wrap:nowrap}.viewbar button{font-size:12px;padding:7px;min-height:34px}.view-settings summary{font-size:12px;padding:7px;min-height:34px}.history-buttons button{font-size:0;padding:5px;min-width:34px}.history-buttons{display:none}.scene-label{left:14px;top:12px}.scene-label span{font-size:17px}.scene-label small{font-size:11px}#viewport{min-height:150px}.view-help{display:none}#status{font-size:12px;padding:8px 12px;min-height:36px;max-height:54px}.empty-scene{top:49%;padding:14px;gap:8px;max-width:260px}.empty-scene strong{font-size:16px}.empty-scene span{font-size:12px}.empty-scene button{min-height:34px;font-size:13px}.selected-tools{bottom:9px;padding:4px;gap:0;width:max-content}.selected-tools button{min-height:36px;padding:7px;font-size:12px}.inspector{position:fixed;left:0;right:0;bottom:0;height:48dvh;z-index:25;border:0;border-top:1px solid #c9d6c9;border-radius:16px 16px 0 0;box-shadow:0 -5px 25px #18392c15}.inspector-header{height:45px}.inspector-scroll{padding:16px 18px}.selected-reference img{width:84px;height:84px}.selected-reference p{font-size:13px}.inspector #selected-name{font-size:17px}.inspector-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.technical-state{font-size:13px}.manual-controls{margin:12px 0}.edit-grid{grid-template-columns:repeat(3,1fr)}body.panel-closed:not(.has-selection) .workflow-panel{height:50px}body.panel-closed:not(.has-selection) .panel-scroll{display:none}body.panel-closed:not(.has-selection) .design-stage{height:calc(100dvh - 114px)}.compare-grid{grid-template-columns:1fr}.view-settings[open]>div{top:40px;width:230px}dialog{padding:22px}h2{font-size:20px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
@media(max-width:760px){.app-title{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}#share{display:inline-flex}.header-actions{margin-left:auto}.history-buttons{display:flex;gap:2px}.history-buttons button{font-size:11px;padding:5px;min-width:0}.history-buttons button:before{content:none}.viewbar{gap:2px}.view-buttons{gap:0}.view-buttons button{padding:7px 6px}}
@media(max-width:1150px) and (min-width:761px){body.has-selection .workspace{grid-template-columns:minmax(0,1fr) 320px}body.has-selection .workflow-panel{display:none}.inspector{position:static;width:auto;z-index:auto;border:0;border-left:1px solid var(--line);border-radius:0;box-shadow:none}}

.placement-box{padding:16px;background:#edf3ed;border:1px solid #c8d9cc;border-radius:8px;margin:18px 0}.placement-box h3{margin:0 0 10px;font-size:17px}.placement-box label{display:block;margin:12px 0}.placement-box select{width:100%;min-height:44px}.placement-box [hidden]{display:none}.placement-box button{margin-top:8px}.placement-box .muted{font-size:14px;line-height:1.5}

.group-toggle{display:flex;align-items:center;gap:.6rem;font-size:.875rem}.group-toggle input{width:auto;margin:0;accent-color:#294c42}
/* Short paths to common actions; advanced controls remain available. */
.compact{margin-top:-10px;font-size:14px}.category-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin:16px 0 10px}.category-shortcuts button{min-height:44px;padding:9px 5px;font-size:14px;overflow-wrap:anywhere}.category-shortcuts [aria-pressed=true]{background:var(--green);border-color:var(--green);color:#fff}.category-more{margin-bottom:14px}.clear-search{width:100%;font-size:14px;margin:-4px 0 14px;background:#f5f7f3}.editor-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;background:#edf2ed;border-radius:10px;padding:4px;margin:14px 0;position:sticky;top:-1px;z-index:3}.editor-tabs button{border-color:transparent;background:transparent;font-size:14px;padding:9px 5px;min-height:44px}.editor-tabs [aria-selected=true]{background:white;color:var(--green);box-shadow:0 2px 6px #244b401a}.placement-more{border-top:1px solid #c8d9cc;margin-top:16px}.placement-tip{font-size:14px;color:var(--muted);line-height:1.5;margin:12px 0}.placement-box{margin:12px 0;padding:14px}.summary-exports{border-top:1px solid var(--line);margin-top:18px}.product strong,.product button{font-size:14px}.product small{font-size:13px}.product small:last-of-type{font-size:12px}.product button{min-height:44px}.product img{height:125px}.selected-reference{margin-bottom:10px}.selected-reference img{width:74px;height:80px}.selected-reference p{font-size:13px}.inspector-scroll{padding-top:16px}.inspector-header span{font-size:12px;letter-spacing:.7px}.inspector-header button{min-height:40px;font-size:14px}.technical-state{font-size:14px}#add-complement:empty{display:none}
@media(min-width:1151px){body.has-selection .workspace{grid-template-columns:280px minmax(0,1fr) 330px}body.has-selection #products{grid-template-columns:1fr}body.has-selection .product{display:grid;grid-template-columns:84px minmax(0,1fr)}body.has-selection .product img{height:100%;min-height:115px;padding:6px}body.has-selection .product strong{min-height:0;-webkit-line-clamp:2}body.has-selection .product>div{padding:9px}}
@media(max-width:760px){.category-shortcuts{grid-template-columns:repeat(3,minmax(0,1fr))}.inspector-header{height:52px}.editor-tabs{top:-2px;margin-top:10px}.inspector-scroll{padding:12px 16px}.selected-reference img{width:60px;height:64px}#selected-name{margin-bottom:10px}.viewbar{flex-wrap:wrap}.view-buttons{flex:1}.viewbar button{min-height:40px;font-size:13px}.view-settings summary{min-height:40px}.selected-tools{flex-wrap:wrap;justify-content:center}.selected-tools button{min-height:40px;font-size:13px}.header-actions button{min-height:42px}.panel-scroll{padding-top:16px}}

.product-image{display:flex;align-items:center;justify-content:center;height:125px;padding:9px;background:#fafbf8;min-width:0}.product-piece{display:block;position:relative;overflow:hidden;width:min(100%,calc(107px * var(--piece-ratio)))}.product .product-piece img,body.has-selection .product .product-piece img{position:absolute;display:block;max-width:none;min-height:0;padding:0;object-fit:fill;background:transparent}
