:root{--ink:#34392e;--muted:#777b72;--paper:#fcfbf8;--line:#e1e1d8;--warm:#f1eee7;--gold:#9d7b4e;--font:'DM Sans',Arial,sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--font);font-size:14px}button,input,select{font:inherit}button,a,input,summary,select{outline-offset:4px}button{cursor:pointer}button:disabled{opacity:.4;cursor:not-allowed}a{color:inherit}button{border:0;background:none;color:inherit}button,i{flex-shrink:0}i{display:inline-flex;width:18px;height:18px}i svg{width:100%;height:100%;stroke:currentColor;stroke-width:1.6;fill:none;stroke-linecap:round;stroke-linejoin:round}[hidden]{display:none!important}header{height:80px;padding:0 36px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.logo{display:flex;align-items:center;gap:12px;text-decoration:none;font-family:Georgia,serif;font-size:28px;letter-spacing:4px}.logo svg{width:29px;height:34px;stroke:var(--ink);fill:none;stroke-width:1.4}.logo small{display:block;font:8px var(--font);letter-spacing:2.6px;margin-top:5px}.header-actions,.button-row,.tools,.flow-buttons{display:flex;align-items:center;gap:10px}.quiet,.outline,.primary,.text-button,.icon-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;border-radius:3px;padding:10px 12px;font-weight:500}.quiet:hover,.icon-button:hover{background:#e9e8df}.outline{border:1px solid #cdd0c3;background:transparent}.outline:hover{background:var(--warm)}.primary{background:var(--ink);color:white;padding:13px 18px;min-height:47px}.primary:hover{background:#4b5541}.text-button{padding:12px 0;text-decoration:underline;text-underline-offset:4px;color:var(--muted);font-size:12px}.icon-button{padding:10px;min-width:40px}.full{width:100%}.danger{color:#9b4c3f}.skip{position:fixed;top:-80px;left:16px;padding:12px;background:white;z-index:10}.skip:focus{top:8px}main{padding:24px 36px 30px;max-width:1800px;margin:auto}.intro{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.eyebrow{font-size:9px;letter-spacing:2px;font-weight:600;margin:0 0 8px;color:var(--gold)}h1,h2{font-family:'Libre Caslon Display',Georgia,serif;font-weight:400;margin:0}h1{font-size:38px}h2{font-size:31px;line-height:1.15}h3{font-size:14px;font-weight:600;margin:0 0 10px}.save-status{font-size:11px;color:var(--muted)}.steps{display:grid;grid-template-columns:repeat(4,1fr);max-width:850px;gap:14px;margin-bottom:24px}.steps button{display:flex;align-items:center;gap:10px;text-align:left;padding:10px 0;border-bottom:2px solid #deded4;color:var(--muted);font-size:12px}.steps span{font-size:10px;letter-spacing:1px}.steps [aria-current]{color:var(--ink);border-bottom-color:var(--ink);font-weight:600}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 410px;gap:24px;align-items:stretch;height:calc(100dvh - 248px);min-height:500px;max-height:1000px}.preview{display:flex;flex-direction:column;min-width:0;background:#f1efe8;border:1px solid var(--line);border-radius:4px;position:sticky;top:20px;overflow:hidden}.board-toolbar{display:flex;justify-content:space-between;align-items:center;padding:12px 14px;border-bottom:1px solid var(--line);background:#f8f7f2;gap:8px}.view-tabs{display:flex;gap:4px;background:#e9e8df;border-radius:3px;padding:3px}.view-tabs button{display:flex;gap:7px;align-items:center;min-height:34px;padding:7px 10px;font-size:11px;border-radius:2px}.view-tabs .active{background:white;box-shadow:0 1px 4px #00000009}.tools{gap:2px}.tools .quiet{font-size:11px}.board{flex:1;min-height:0;position:relative;overflow:hidden}.board canvas{display:block;width:100%;height:100%;touch-action:none}.board-badge{position:absolute;left:18px;top:15px;pointer-events:none;color:#919489;font-size:8px;letter-spacing:1.4px}.empty-hint{position:absolute;bottom:32px;left:0;right:0;display:flex;flex-direction:column;align-items:center;gap:7px;pointer-events:none;color:var(--muted);font-size:11px}.empty-title{font-family:Georgia,serif;font-size:22px;color:var(--ink)}.preview-footer{display:flex;justify-content:space-between;align-items:center;padding:0 18px;background:#f8f7f2;min-height:43px;border-top:1px solid var(--line);gap:15px}.preview-footer p{font-size:10px;line-height:1.5;margin:9px 0}.preview-footer>span{white-space:nowrap;font-size:10px;color:var(--muted)}.selection-toolbar{display:flex;align-items:center;gap:3px;background:#fff;padding:6px 10px;border-top:1px solid var(--line);flex-wrap:wrap}.selection-toolbar>span{margin-right:auto;font-size:11px}.selection-toolbar button{font-size:10px;min-height:32px;padding:7px}.selection-toolbar .icon-button{min-width:32px}.plan-legend{display:flex;flex-wrap:wrap;gap:12px;padding:10px 18px;font-size:9px;color:var(--muted)}.plan-legend span{display:flex;gap:5px;align-items:center}.key{display:inline-block;width:11px;height:8px;border:1px solid #829076}.key.furniture{background:#d5c8b5}.key.own{background:#f4f4ed;border-style:dashed}.key.clearance{border:1px dashed #b59667;background:#ba996911}.sidebar{display:flex;flex-direction:column;min-height:0;min-width:0;border:1px solid var(--line);background:white;border-radius:4px;overflow:hidden}.sidebar-scroll{flex:1;min-height:0;overflow-y:auto;scrollbar-gutter:stable;padding:23px 22px 38px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#a7ad9c #f1f1eb}.step-help{color:var(--muted);font-size:12px;line-height:1.6;margin:12px 0 23px}.sidebar-footer{flex-shrink:0;border-top:1px solid var(--line);padding:15px 22px 12px;background:#fcfcf8}.price-line{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;font-size:11px}.price-line strong{font-size:22px;font-weight:500;white-space:nowrap}.price-line small{display:block;font-size:9px;color:var(--muted);margin-top:5px}.flow-buttons .primary{flex:1}.footer-note{font-size:8px;color:var(--muted);line-height:1.5;margin:9px 0 0;text-align:center}.field-row{display:flex;gap:10px}.field-row>*{flex:1;min-width:0}label{display:block;font-size:11px;font-weight:500;margin:0 0 15px}input:not([type=checkbox]):not([type=range]):not([type=file]),select{width:100%;min-height:44px;border:1px solid #d8dbd0;border-radius:3px;padding:10px 12px;margin-top:7px;background:white;color:var(--ink)}select{appearance:none;background-image:url('/icons/chevron-down.svg');background-position:right 14px center;background-size:13px 13px;background-repeat:no-repeat;padding-right:42px}input[type=range]{width:100%;accent-color:var(--ink);margin-top:10px}.small{font-size:10px;line-height:1.6;color:var(--muted);margin:9px 0 17px}details{border-top:1px solid var(--line);margin-top:20px}summary{cursor:pointer;padding:16px 0;font-size:11px;font-weight:500}details .button-row{flex-wrap:wrap;margin-bottom:10px}details .outline{font-size:10px;padding:8px 10px;min-height:35px}.note{display:flex;gap:10px;padding:13px;background:#f5f5ee;border-radius:3px;margin-top:18px;align-items:flex-start}.note p{font-size:10px;line-height:1.65;margin:0;color:var(--muted)}.note i{color:var(--gold)}.search-field{position:relative}.search-field i{position:absolute;top:22px;left:12px}.search-field input{padding-left:38px!important;margin-top:0!important}.category-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}.category-tabs button{border:1px solid var(--line);font-size:10px;padding:8px 10px;border-radius:20px}.category-tabs button.active{background:var(--ink);color:white;border-color:var(--ink)}.product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 12px}.product-card{text-align:left;padding:0;width:100%;border:1px solid #e6e7df;border-radius:3px;overflow:hidden;display:flex;flex-direction:column;background:white;transition:box-shadow .15s}.product-card:hover{box-shadow:0 4px 14px #0000000c;border-color:#a2a991}.product-card img{width:100%;aspect-ratio:1;object-fit:contain;background:#f2f1ec}.product-card>div{padding:10px;width:100%}.product-card strong{font-size:10px;font-weight:500;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:30px}.product-card small{font-size:9px;color:var(--muted);display:block;margin:7px 0}.product-card .card-price{display:flex;justify-content:space-between;align-items:center;font-size:10px}.card-price i{width:14px}.catalogue-source{font-size:8px}.section-head{display:flex;align-items:center;justify-content:space-between;margin:24px 0 10px}.section-head h3{margin:0}.section-head span{font-size:9px;color:var(--muted)}.item-row{display:flex;align-items:center;gap:9px;padding:11px 0;border-bottom:1px solid var(--line);text-align:left;width:100%}.item-row.active{background:#f1f3e9}.item-row img{width:42px;height:42px;object-fit:contain;background:var(--warm);border-radius:3px}.item-row .item-copy{flex:1;min-width:0}.item-copy strong{font-size:10px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.item-copy small{font-size:9px;line-height:1.5;color:var(--muted);display:block;margin-top:4px}.item-row .own-icon{width:42px;height:42px;display:grid;place-items:center;background:var(--warm)}.item-row .icon-button{min-width:30px;padding:6px}.fit-status{font-size:11px;line-height:1.6;margin:15px 0;padding:12px;background:#f0f4eb;border:1px solid #dae4d2}.fit-status.error{background:#fcf2ec;border-color:#e8cec0;color:#9b4c3f}.warning-text{color:#987748;font-size:10px}.inspector{margin-top:18px;padding:15px;background:#f6f6ef;border:1px solid var(--line)}.inspector strong{font-size:11px}.inspector p{font-size:10px;color:var(--muted);line-height:1.6}.inspector label{font-size:10px}.inspector .outline{font-size:10px;min-height:34px}.chair-attach{margin-top:14px}.measurement-row{display:flex;align-items:center;justify-content:space-between;font-size:11px;border-bottom:1px solid var(--line);padding:8px 0}.review-stats{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--line);margin-bottom:16px;background:#f8f8f3}.review-stats div{padding:13px 7px;text-align:center;border-right:1px solid var(--line)}.review-stats div:last-child{border:0}.review-stats strong{display:block;font-size:22px;font-weight:400}.review-stats small{font-size:9px;color:var(--muted)}.purchase-row{padding:14px 0;border-bottom:1px solid var(--line);font-size:11px}.purchase-row strong{font-size:12px;line-height:1.5;display:block}.purchase-row p{font-size:10px;color:var(--muted);line-height:1.6;margin:5px 0}.purchase-row>div{display:flex;justify-content:space-between}.download-block{margin-top:22px;padding:17px;background:#f4f5ed;border:1px solid var(--line)}.download-block .outline{font-size:10px;flex:1;padding:9px 7px}.confirmation{display:flex;gap:10px;align-items:flex-start;margin:24px 0 8px;font-size:11px;line-height:1.6}.confirmation input{accent-color:var(--ink);margin:3px 0 0;width:17px;height:17px;flex-shrink:0}dialog{padding:24px;border:1px solid var(--line);border-radius:6px;width:min(650px,calc(100% - 30px));max-height:85dvh;overflow-y:auto;overscroll-behavior:contain;color:var(--ink);background:var(--paper);box-shadow:0 20px 100px #0002}dialog::backdrop{background:#23271e80;backdrop-filter:blur(3px)}.modal-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:20px}.modal-heading h2{font-size:28px}.catalog-modal{width:min(780px,calc(100% - 30px))}.catalog-modal .product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.picker-image{width:100%;height:230px;object-fit:contain;background:#eeeae1;border-radius:3px;margin-bottom:18px}.picker-price{display:flex;align-items:center;justify-content:space-between;margin:18px 0;font-size:22px}.picker-meta{padding:12px;background:#f2f3eb;font-size:11px;line-height:1.8}.picker-meta p{margin:0}.picker-options{display:grid;grid-template-columns:1fr;gap:0;margin-top:18px}.picker-options label{margin-bottom:12px}.picker-error{color:#9b4c3f;font-size:11px;line-height:1.6}.toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:var(--ink);color:white;padding:13px 22px;border-radius:4px;box-shadow:0 5px 30px #0002;font-size:12px;z-index:30;max-width:calc(100% - 30px);line-height:1.5}.import-label{margin:14px 0;text-align:center;cursor:pointer}.saved-row{border-top:1px solid var(--line);padding:14px 0;display:flex;justify-content:space-between;align-items:center}.saved-row strong{font-size:12px}.saved-row small{display:block;color:var(--muted);font-size:10px;margin-top:6px}.saved-row .outline{font-size:10px}.checkout-link{width:100%;text-decoration:none;margin-top:15px}.checkout-summary{font-size:13px;line-height:1.7;padding:14px;background:#f2f3eb}.checkout-summary strong{font-size:19px}.checkout-note{font-size:11px;line-height:1.7;color:var(--muted)}body:has(dialog[open]){overflow:hidden}@media(min-width:1500px){.workspace{grid-template-columns:minmax(0,1fr) 450px}.sidebar-scroll{padding:28px}.product-card strong{font-size:11px}}@media(max-width:1050px){header{padding:0 22px}main{padding:22px}.workspace{grid-template-columns:minmax(0,1fr) 360px;gap:16px}.tools .quiet span{display:none}.view-tabs button{font-size:10px;padding:7px}.sidebar-scroll{padding:20px 16px}.sidebar-footer{padding:14px 16px}.intro h1{font-size:33px}}@media(max-width:760px){header{height:68px;padding:0 16px}.logo{font-size:23px;gap:8px}.logo svg{width:24px}.logo small{font-size:7px}.header-actions{gap:0}.header-actions .quiet{font-size:10px;padding:8px}.shop-link{display:none}.header-actions .quiet span{display:none}main{padding:20px 14px}.intro{display:block}.intro h1{font-size:32px}.save-status{margin:10px 0 0;font-size:9px}.steps{gap:8px;margin:20px 0}.steps button{font-size:9px;line-height:1.5;gap:5px;align-items:flex-start}.steps span{font-size:8px}.workspace{display:flex;flex-direction:column;height:auto;min-height:0;gap:15px}.preview{position:relative;top:auto;height:390px;flex-shrink:0}.board-toolbar{padding:8px}.sidebar{overflow:visible}.sidebar-scroll{overflow:visible;padding:23px 20px;max-height:none;flex:auto}.sidebar-footer{position:sticky;bottom:0;z-index:2;padding:14px 20px;box-shadow:0 -4px 15px #00000006}.selection-toolbar>span{width:100%;padding:4px}.preview-footer{padding:0 12px;gap:8px}.preview-footer p{font-size:9px}.plan-legend{padding:8px 12px;font-size:8px;gap:9px}.empty-hint{bottom:22px}.empty-title{font-size:18px}.product-grid{gap:14px}.product-card strong{font-size:11px}.catalog-modal .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}dialog{padding:20px;max-height:90dvh}.modal-heading h2{font-size:25px}.picker-image{height:200px}.field-row{gap:8px}.selection-toolbar .quiet{font-size:10px}.board-badge{font-size:7px;left:12px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}@media(forced-colors:active){select{appearance:auto;background-image:none}}
.team-box{background:#f5f6ee;border:1px solid var(--line);padding:14px;margin-bottom:20px}.team-box label{margin-bottom:7px}.team-box .small{margin-bottom:7px}.team-box input{max-width:120px;display:block}.auto-layout-box{margin-top:18px}
@media(min-width:761px){body{height:100dvh;overflow:hidden}main{height:calc(100dvh - 80px);display:flex;flex-direction:column}.intro,.steps{flex-shrink:0}.workspace{flex:1;min-height:0;height:auto;max-height:none}.preview{position:relative;top:auto}}
svg{flex-shrink:0}.card-price>svg{width:14px;height:14px}.search-field i,.search-field>svg{position:absolute;top:13px;left:12px}

.quantity-step{padding:24px 20px}.quantity-control{display:flex;align-items:center;gap:12px;margin:20px 0}.quantity-control input{max-width:none;width:100px!important;text-align:center;font-size:28px;margin:0!important;height:62px}.quantity-control button{width:46px;height:46px;padding:0}.quantity-step label{font-size:13px}.starter-summary{border:1px solid var(--line);background:#f5f6ee;padding:14px;margin-bottom:14px}.starter-summary:empty{display:none}.starter-product{display:flex;gap:12px;margin:12px 0;align-items:center}.starter-product img{width:70px;height:70px;object-fit:contain;background:#eeeae1}.starter-product div{min-width:0}.starter-product strong{font-size:11px;line-height:1.6}.starter-product p,.starter-product small{font-size:9px;line-height:1.6;color:var(--muted);margin:4px 0}.starter-summary button{font-size:10px}

.quantity-step{background:transparent;padding:10px 0 20px;border-bottom:1px solid var(--line)}.quantity-step>label{font-size:13px;line-height:1.7;margin-bottom:20px}.quantity-control{position:relative;display:grid;grid-template-columns:48px 1fr 48px;align-items:center;gap:8px;width:100%;max-width:280px;height:106px;padding:15px 12px 34px;background:#fff;border:1px solid #d5d8cb;border-radius:12px;box-shadow:0 4px 18px #34392e05}.quantity-control input{appearance:textfield;-moz-appearance:textfield;border:0!important;background:transparent!important;width:100%!important;max-width:none;font-size:36px;font-weight:500;letter-spacing:-1px;line-height:1;min-height:50px;height:50px;padding:0!important}.quantity-control input::-webkit-inner-spin-button,.quantity-control input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.quantity-control button{border:0;background:#f0f2e9;width:40px;height:40px;min-height:40px;border-radius:50%;justify-self:center}.quantity-control button:hover{background:#e1e7d4}.quantity-control button:focus-visible{outline:2px solid var(--ink)}.quantity-unit{position:absolute;bottom:13px;left:0;right:0;text-align:center;font-size:10px;color:var(--muted);letter-spacing:.3px}.quantity-step .small{max-width:320px;margin:16px 0 0}.chair-modal{width:min(880px,calc(100% - 30px))}.chair-parent{padding:14px 16px;border:1px solid var(--line);background:#f3f4ec;font-size:12px}.chair-parent p,.chair-parent small{font-size:10px;color:var(--muted);line-height:1.7}.chair-selection{margin:20px 0;padding:16px;border:1px solid var(--line);background:white}.chair-selected-row{display:flex;gap:12px;align-items:center;border-bottom:1px solid var(--line);padding:10px 0}.chair-selected-row>div{flex:1;min-width:0}.chair-selected-row strong{display:block;font-size:11px}.chair-selected-row small{display:block;font-size:10px;line-height:1.6;color:var(--muted);margin-top:5px}.chair-selected-row label{width:66px;margin:0}.chair-selected-row input{min-height:36px!important;padding:7px!important}.chair-selection>p{font-size:13px;font-weight:500}.chair-products{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.chair-card{border:1px solid var(--line);background:white;min-width:0}.chair-card>img{width:100%;height:160px;object-fit:contain;background:#f3f1eb}.chair-card>div{padding:14px}.chair-card strong{font-size:11px;line-height:1.6;display:block;margin-bottom:14px}.chair-card select{font-size:10px;white-space:normal;min-height:42px}.chair-card-actions{display:flex;gap:10px;align-items:flex-end}.chair-card-actions label{flex:1;margin:0;max-width:85px}.chair-card-actions button{flex:1}.chair-footer{display:flex;gap:12px;justify-content:flex-end;position:sticky;bottom:-24px;background:var(--paper);padding:18px 0;border-top:1px solid var(--line);margin-top:20px;z-index:2}.chair-footer button{font-size:11px}@media(max-width:580px){.chair-products{grid-template-columns:1fr}.chair-card{display:grid;grid-template-columns:100px 1fr}.chair-card>img{height:100%;max-height:200px}.chair-card>div{padding:12px}.chair-footer{bottom:-20px}.chair-footer button{flex:1;padding:10px}}

.chair-layout-choice{font-size:9px!important;display:flex;align-items:center;gap:6px;margin:8px 0 0!important;color:var(--muted)}.chair-layout-choice input{accent-color:var(--ink)}

#quantityFit{margin:18px 0;padding:16px;border:1px solid #c9d4c0;background:#edf3e8;font-size:12px;line-height:1.7}#quantityFit.error{background:#fbf0e9;border-color:#d5b09b}#quantityFit p{font-size:11px;margin:8px 0 0}
