*{box-sizing:border-box}body{margin:0;background:#f3f2ee;color:#292d27;font:14px Arial,Helvetica,sans-serif}button,input,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer;color:inherit}button,a{touch-action:manipulation}button{border:1px solid #d7d9d0;background:transparent;border-radius:7px}button:hover{border-color:#69765f}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #d96b3d;outline-offset:3px}a{color:inherit;text-underline-offset:3px}[hidden]{display:none!important}.app{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden}header{height:76px;flex-shrink:0;display:flex;align-items:center;gap:24px;padding:0 30px;border-bottom:1px solid #d7d9d0;background:#f8f7f2}.brand img{width:147px;height:auto;filter:brightness(0);display:block}.header-note,.eyebrow{font:10px monospace;letter-spacing:1.6px;color:#777e6f}.header-actions{margin-left:auto;display:flex;align-items:center;gap:20px;font-size:12px}.header-actions button{padding:11px 14px}.header-actions a{text-decoration:none}main{min-height:0;flex:1;display:grid;grid-template-columns:minmax(0,1fr) 348px}.stage{position:relative;overflow:hidden;min-height:0;background:radial-gradient(ellipse at 50% 44%,#fff8,transparent 74%)}#canvas{position:absolute;inset:0;outline:none}canvas{display:block;touch-action:none}.stage-heading{position:absolute;left:30px;top:29px;pointer-events:none;z-index:2}h1{font-size:39px;letter-spacing:-1.8px;font-weight:500;margin:9px 0}p{line-height:1.6}.stage-heading p{font-size:12px;color:#7d8377;margin:0}.camera-tools{position:absolute;right:20px;top:40%;display:grid;gap:7px}.camera-tools button{height:43px;width:43px;background:#fafbf7e8;font-size:23px;border-radius:12px;box-shadow:0 2px 5px #26342108}.camera-tools button[aria-pressed=true]{background:#344331;color:white}.view-controls{position:absolute;bottom:58px;left:50%;transform:translateX(-50%);display:flex;gap:5px;padding:5px;background:#f9faf5ed;border:1px solid #d7d9d0;border-radius:11px;white-space:nowrap;box-shadow:0 4px 18px #2738210a}.view-controls button{padding:10px 14px;border:0;font-size:11px;min-height:40px}.view-controls button[aria-pressed=true]{background:#344331;color:white}.stage-bottom{position:absolute;left:30px;right:20px;bottom:14px;display:flex;align-items:center;justify-content:space-between;font:10px monospace;color:#777e6f;gap:10px}.stage-bottom button{background:#fafbf5b3;font:10px Arial;padding:11px;min-height:36px}.stage-bottom button[aria-pressed=true]{background:#344331;color:white}.panel{background:#fbfaf6;border-left:1px solid #d7d9d0;overflow:auto;scrollbar-width:thin;scrollbar-color:#c5cabd transparent}.panel-content{padding:26px 22px 18px}.panel-title{display:flex;align-items:center;justify-content:space-between;gap:7px;margin-bottom:27px}.panel-title h2{font-size:19px;letter-spacing:-.6px;font-weight:500;margin:8px 0 0}.panel-title button{font-size:10px;border:0;text-decoration:underline;min-height:44px}.config-section{border-top:1px solid #e0e2d8;padding:20px 0}.section-title{display:flex;align-items:center;gap:8px;margin-bottom:15px}.section-title>span:first-child{font:10px monospace;color:#a0a78f}h3{font-size:12px;font-weight:600;margin:0}.section-title .small,.section-title output{margin-left:auto;font:10px monospace;color:#6f7866}.cards{display:grid;grid-template-columns:repeat(4,1fr);gap:6px}.shelf-card{padding:10px 3px 9px;text-align:center;background:#fff9;border-color:#e1e3d8;border-radius:8px}.shelf-card[aria-pressed=true]{background:#eaf0e1;border-color:#7e8d70}.shelf-card b{font-size:10px;display:block;font-weight:500;white-space:nowrap}.shelf-card small{display:block;font-size:8px;color:#859079;margin-top:5px}.shelf-icon{width:35px;height:43px;display:flex;flex-direction:column;justify-content:space-around;margin:0 auto 10px;border-left:3px solid #99a2a0;border-right:3px solid #99a2a0;transform:skewY(-7deg)}.shelf-icon i{height:4px;background:#b9c3c1;margin:0 -1px}.shelf-icon.oak{border-color:#626e62}.shelf-icon.oak i{background:#b89265}.shelf-icon.white{border-color:#c4cbc3}.shelf-icon.white i{background:#dde2d9}.shelf-icon.graphite{border-color:#505a58}.shelf-icon.graphite i{background:#aeb6ab}.toggle{margin-left:auto;font-size:10px;display:flex;align-items:center;gap:4px}.toggle input{accent-color:#536746;width:17px;height:17px}.inventory{display:grid;grid-template-columns:1fr 1fr;gap:5px}.inventory button{font-size:10px;display:flex;justify-content:space-between;align-items:center;gap:5px;border:0;padding:9px 7px;background:#eeefe8;border-radius:5px;min-height:34px;text-align:left}.inventory button b{font:10px monospace;color:#66745e}.inventory button[data-active=true]{background:#dae5ce}.note{font-size:10px;color:#858b7e;line-height:1.6;margin:10px 0 0}.range-label{display:block;font-size:11px;color:#7c8472;margin-bottom:14px}input[type=range]{width:100%;margin:0;height:22px;accent-color:#61774d;cursor:pointer}.range-ends{display:flex;justify-content:space-between;font-size:9px;color:#929986;margin-top:6px}.coverage{background:#e7e9e1;height:4px;border-radius:3px;overflow:hidden;margin-top:17px}.coverage-fill{display:block;height:100%;background:#879d65}.coverage-caption{font:10px monospace;color:#737d66;margin:8px 0 15px}.segmented{display:flex;gap:4px;background:#eeefe8;border-radius:7px;padding:3px}.segmented button{flex:1;font-size:10px;padding:9px;border:0}.segmented button[aria-pressed=true]{background:white;box-shadow:0 1px 4px #0001}.field-label{display:flex;justify-content:space-between;font-size:11px;margin:19px 0 12px}.field-label span{font-size:10px;color:#849075}.swatches{display:flex;gap:12px}.swatches button{position:relative;width:35px;height:35px;border-radius:50%;background:var(--swatch);border:4px solid #fbfaf6;box-shadow:0 0 0 1px #d3d8cb;overflow:hidden}.swatches button[aria-pressed=true]{box-shadow:0 0 0 2px #5d714d}.swatches i{position:absolute;inset:0;opacity:.3}.swatches .wood{background:repeating-linear-gradient(0deg,transparent 0 4px,#785435 4px 5px)}.swatches .tile{background:linear-gradient(90deg,transparent 46%,#eee 48% 52%,transparent 54%),linear-gradient(0deg,transparent 46%,#eee 48% 52%,transparent 54%)}.panel-footer{border-top:1px solid #e0e2d8;padding-top:17px;font:9px monospace;color:#919985;display:grid;gap:12px}.mobile-handle{display:none}#loading,#error{position:absolute;left:50%;top:48%;transform:translate(-50%,-50%);background:#fcfcf4e8;border:1px solid #ddd;padding:22px;border-radius:12px;font-size:12px;z-index:5;white-space:nowrap}#error{white-space:normal;width:280px}#error button{padding:10px 17px}.spinner{display:inline-block;width:15px;height:15px;border:2px solid #d8dfcc;border-top-color:#7b9358;border-radius:50%;animation:spin 1s linear infinite;vertical-align:middle;margin-right:8px}@keyframes spin{to{transform:rotate(360deg)}}.toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:#303e29;color:#fff;padding:13px 20px;border-radius:9px;font-size:12px;z-index:20;box-shadow:0 5px 25px #0002}.selection{position:absolute;left:24px;bottom:118px;width:252px;z-index:4;background:#fffffff2;border:1px solid #d4dccc;border-radius:10px;box-shadow:0 5px 20px #0001;padding:18px}.selection strong{display:block;margin-top:9px;font-size:14px;font-weight:500}.selection p{font-size:10px;margin:8px 0 0;color:#7d8674}.selection>button{float:right;border:0;font-size:19px;width:26px;height:26px;margin:-8px -8px 0 0}.app.expanded main{grid-template-columns:1fr}.app.expanded aside{display:none}
@media(min-width:1450px){main{grid-template-columns:minmax(0,1fr) 380px}.panel-content{padding:30px}.stage-heading{top:36px;left:40px}}
@media(max-width:760px){header{height:61px;padding:0 16px;gap:10px}.brand img{width:124px}.header-note{display:none}.header-actions{gap:8px;font-size:9px}.header-actions button{padding:9px;font-size:10px}.header-actions a{max-width:63px;line-height:1.5}main{display:flex;flex-direction:column}.stage{height:60%;min-height:260px;flex:1}.stage-heading{left:18px;top:18px}.stage-heading .eyebrow{font-size:8px}h1{font-size:29px;margin:7px 0;letter-spacing:-1.2px}.stage-heading p{font-size:10px}.camera-tools{right:12px;top:36%;gap:5px}.camera-tools button{width:36px;height:36px;font-size:20px;border-radius:10px}.view-controls{bottom:43px;padding:3px;gap:2px}.view-controls button{min-height:34px;padding:8px 11px;font-size:10px}.stage-bottom{left:15px;right:12px;bottom:7px;font-size:8px}.stage-bottom>span{max-width:140px;line-height:1.5}.stage-bottom button{padding:8px;min-height:30px;font-size:8px}.panel{height:40%;max-height:52%;min-height:50px;border-left:0;border-top:1px solid #d7d9d0;flex-shrink:0;border-radius:16px 16px 0 0;box-shadow:0 -5px 25px #26342107}.panel.collapsed{height:50px}.mobile-handle{position:sticky;top:0;width:100%;height:50px;padding:0 20px;display:flex;align-items:center;justify-content:space-between;border:0;border-radius:0;font-size:12px;background:#fbfaf6;z-index:2;box-shadow:0 1px 0 #e6e8de}.mobile-handle:before{content:'';position:absolute;width:28px;height:3px;border-radius:4px;background:#ccd2c2;top:5px;left:calc(50% - 14px)}.panel-content{padding:18px 22px 28px}.panel-title{margin-bottom:17px}.panel-title h2{font-size:18px}.cards{gap:9px}.shelf-card b{font-size:11px}.shelf-card small{font-size:9px}.inventory button{min-height:39px;font-size:11px}.selection{left:14px;bottom:93px;width:230px;padding:14px}.selection strong{font-size:12px}.note{font-size:11px}.swatches button{width:40px;height:40px}.app.expanded .stage{height:100%}}
@media(max-height:520px) and (min-width:761px){header{height:52px}.stage-heading{top:16px}h1{font-size:27px}.stage-heading p{display:none}.camera-tools{top:25%}.view-controls{bottom:44px}.stage-bottom{bottom:5px}}
@media(prefers-reduced-motion:reduce){.spinner{animation:none}}

@media(max-width:760px){.view-controls{max-width:calc(100% - 18px);gap:0}.view-controls button{padding:8px;font-size:9px}}
.cards{grid-template-columns:repeat(3,1fr)}.shelf-icon.black,.shelf-icon.black i{border-color:#243340;background-color:#243340}.shelf-icon.black{background:transparent}.shelf-icon.floating{border-right:0;border-color:#435665}.shelf-icon.floating i{background:#b48752}.swatches.labelled{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px 12px;padding-bottom:20px}.swatches.labelled button{width:100%;height:36px;border-radius:6px;overflow:visible;margin-bottom:7px}.swatches.labelled button span{position:absolute;top:37px;left:-5px;right:-5px;font-size:9px;white-space:normal;line-height:1.1;color:#3d493e}.swatches.labelled button i{border-radius:3px;overflow:hidden}.source-link{display:inline-block;font-size:10px;margin-top:12px}.segmented button{min-height:36px}.note{color:#687060}.section-title>span:first-child{color:#64705a}
.shelf-icon.enclosed{border:3px solid #3e5159;transform:none;border-radius:2px}.shelf-icon.enclosed.mesh{background:repeating-linear-gradient(90deg,transparent 0 3px,#51616a80 3px 4px)}.shelf-icon.enclosed.glass{background:#7197a655}.cards{grid-template-columns:repeat(4,1fr)}
.layout-options{display:grid;grid-template-columns:1fr 1fr;gap:6px}.layout-options button{font-size:10px;padding:10px 6px;min-height:40px;background:#f0f1ea}.layout-options button[aria-pressed=true]{background:#344331;color:#fff;border-color:#344331}
