@font-face{font-family:Instrument;src:url("assets/fonts/instrument-sans.ttf") format("truetype");font-weight:400 700;font-display:swap}
:root{--ink:#252521;--muted:#686861;--line:#d8d7cf;--paper:#fbfaf6;--stage:#ecebe6;--accent:#f6a15b;--mono:ui-monospace,"SFMono-Regular",Consolas,monospace;font:14px/1.4 Instrument,"Helvetica Neue",sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select,textarea{outline-offset:3px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,canvas:focus-visible{outline:2px solid #9d4d12}button{cursor:pointer;border:1px solid var(--line);background:var(--paper);border-radius:5px;padding:8px 12px;font-weight:550}button:hover{border-color:#918f85}button:disabled{opacity:.43;cursor:default}a{color:inherit}button,input,select,textarea{max-width:100%}[hidden]{display:none!important}
.appbar{height:58px;padding:0 clamp(16px,2.6vw,42px);display:flex;align-items:center;gap:24px;background:#252522;color:#faf9f5}
.wordmark{display:flex;align-items:baseline;gap:3px;font-size:24px;letter-spacing:-1.6px;font-weight:680;white-space:nowrap}.wordmark span{color:#b9b8ad;font-weight:400}.wordmark i{align-self:center;display:inline-block;width:21px;height:23px;margin-right:7px;background:var(--accent);clip-path:polygon(0 0,100% 0,100% 20%,22% 20%,22% 39%,76% 39%,76% 59%,22% 59%,22% 100%,0 100%)}
.breadcrumb{border-left:1px solid #53534d;padding-left:22px;font-size:12px;color:#dddcd4}#save{margin-left:auto;color:#d7d6cc;font-size:11px}#save::before{content:"";display:inline-block;width:6px;height:6px;background:#b5c899;border-radius:100%;margin-right:7px;vertical-align:1px}#upload{background:#f8f7f0;color:#24241f;border:none;padding:8px 13px}#upload span{margin-right:4px}
main{display:grid;grid-template-columns:minmax(0,1fr) clamp(290px,25vw,410px);min-height:calc(100svh - 88px)}
.workspace{display:flex;flex-direction:column;min-width:0;padding:clamp(18px,2.5vw,40px);padding-bottom:16px}.heading,.libraryHead,.editorTools,.stagebar,.links,.statusbar{display:flex;align-items:center;justify-content:space-between;gap:12px}
.heading{margin-bottom:22px}.heading>div{min-width:0}h1,h2,h3,p{margin:0}h1{font-size:clamp(30px,3.3vw,52px);line-height:1.08;letter-spacing:-.055em;font-weight:550;overflow-wrap:anywhere}#projectInfo,#viewLabel,.statusbar,#count,.product em{font-family:var(--mono);font-size:11px;color:var(--muted)}#projectInfo{margin-top:8px}#export{white-space:nowrap;background:none;font-size:12px}#export span{margin-left:5px}
.sheet{position:relative;isolation:isolate;overflow:hidden;flex:1;display:flex;flex-direction:column;min-height:380px;background:var(--stage);border:1px solid #d5d4cc;border-radius:6px}
.stagebar{position:absolute;z-index:2;inset:16px 18px auto;pointer-events:none}.stagebar>*{pointer-events:auto}#viewLabel{color:#4d4d44;display:flex;align-items:center;gap:8px}#viewLabel::before{content:"";width:8px;height:8px;border:1px solid #77786d;transform:rotate(45deg)}
.zoom{display:flex;border:1px solid #c7c7be;border-radius:5px;background:#f9f8f2ef}.zoom button{min-width:30px;height:30px;border:0;background:none;padding:0 5px;font:14px var(--mono)}.zoom #fit{font-size:11px}.zoom button:hover{background:#e3e2da}
.drawing{position:absolute;inset:0;display:grid;place-items:stretch}.drawing canvas{display:block;width:100%;height:100%;min-width:0;min-height:0;touch-action:none;cursor:grab}.drawing canvas:active{cursor:grabbing}
.previewDock{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:6px;background:#242521;color:#fafaf4;padding:5px;border:1px solid #242521;border-radius:11px;box-shadow:0 5px 14px #28281f24;white-space:nowrap}
.previewDock button{display:flex;align-items:center;justify-content:center;gap:8px;font-size:13px;border:0;height:36px;padding:0 12px;background:none;color:inherit;border-radius:6px}.previewDock button:focus-visible{outline-color:var(--accent);outline-offset:0}.viewSwitch{display:flex;position:relative;isolation:isolate}.viewSwitch i{z-index:-1;position:absolute;inset:0 auto 0 0;width:50%;background:#f2f0e7;border-radius:6px;transition:transform .18s ease}.viewSwitch.model i{transform:translateX(100%)}.viewSwitch button{width:80px}.viewSwitch [aria-pressed=true]{color:#292a25}.previewDock #tour{border-left:1px solid #5b5b52;border-radius:0;padding-left:14px}.previewDock #tour:hover{color:var(--accent)}.planIcon{width:13px;height:12px;border:1.5px solid currentColor;background:linear-gradient(currentColor,currentColor) 55% 0/1px 7px no-repeat,linear-gradient(currentColor,currentColor) 0 55%/7px 1px no-repeat}.cubeIcon{font:20px/1 Arial}.playIcon{border:5px solid transparent;border-left:8px solid var(--accent);border-right:0}
.editorTools{min-height:48px;border-bottom:1px solid var(--line);font-size:12px}.editorTools #selection{font-weight:550;min-width:0;overflow-wrap:anywhere}.editorTools #tools{display:flex;gap:3px;margin-left:auto}.editorTools button{padding:5px 7px;font-size:12px;border:0;background:none}.editorTools button:enabled:hover{background:#ecebe3}.editorTools #scale{border-left:1px solid var(--line);border-radius:0;padding-left:12px}#notice{min-height:25px;padding-top:8px;font-size:12px;color:var(--muted)}
aside{border-left:1px solid var(--line);background:#f4f3ed;padding:23px 18px 16px;min-width:0;display:flex;flex-direction:column;height:calc(100svh - 88px);min-height:530px}.libraryHead{margin-bottom:17px}h2{font-size:24px;line-height:1.12;font-weight:570;letter-spacing:-.052em}#count{font-size:10px}
.finder{display:flex;align-items:center;gap:10px;border-bottom:1px solid #aaa99e;padding:1px 2px 8px}.finder i{width:12px;height:12px;border:1.5px solid #57584e;border-radius:50%;position:relative}.finder i::after{content:"";background:#57584e;width:6px;height:1.5px;position:absolute;left:8px;top:9px;transform:rotate(45deg)}.finder input{min-width:0;flex:1;border:0;background:none;padding:3px;font-size:13px}.finder input::placeholder{color:#64645a}
.tabs{display:flex;gap:4px;flex-wrap:wrap;padding:12px 0 15px}.tabs button{border:1px solid transparent;background:none;border-radius:4px;font-size:11px;padding:4px 9px}.tabs button.active{background:#34352f;color:white}.tabs button:hover:not(.active){border-color:var(--line)}
.libraryItems{flex:1;min-height:0;overflow:auto;scrollbar-width:thin;scrollbar-color:#cac9bf transparent}#catalog{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px 10px;align-content:start;padding:3px 2px 15px}
.product{position:relative;min-width:0;text-align:left;border:0;border-radius:0;padding:0;background:none;display:block}.thumb{display:flex;align-items:center;justify-content:center;height:auto;aspect-ratio:1.38;background:#fdfcf8;overflow:hidden;border-radius:4px;border:1px solid transparent}.thumb img{width:100%;height:100%;object-fit:contain;padding:9%;mix-blend-mode:multiply}.product:hover .thumb{border-color:#9c998a}.product .add{position:absolute;right:5px;top:5px;background:#fffdf5e8;color:#4f5046;width:20px;height:20px;border-radius:4px;text-align:center;font:15px/20px var(--mono)}.product small,.product b,.product em{display:block}.product small{font:9px var(--mono);letter-spacing:.07em;color:#616259;margin:7px 0 2px}.product b{font-size:15px;letter-spacing:-.04em;line-height:1.15}.product em{font-size:10px;font-weight:400;font-style:normal;margin-top:3px}.product em:last-child{font:10px Instrument,Arial,sans-serif;color:#66675e}.thumb.noPhoto{font-size:11px;color:var(--muted)}
.libraryFoot{padding-top:13px;border-top:1px solid var(--line)}#import{width:100%;text-align:left;background:#e7e6dd;border-color:#cecec1}#import span{margin-right:7px}.links{margin-top:12px;font-size:10px}.links a{text-decoration:none;color:#636459}.links a:hover{text-decoration:underline}
.statusbar{padding:0 clamp(16px,2.6vw,42px);height:30px;border-top:1px solid var(--line);font-size:10px;background:#f1f0e9}.statusbar span:first-child{letter-spacing:.02em}
dialog{width:min(470px,94vw);max-height:90svh;overflow:auto;border:1px solid #b9b9aa;border-radius:8px;padding:24px;color:var(--ink);background:var(--paper);box-shadow:0 20px 90px #1b1d1633}dialog::backdrop{background:#202119a6}dialog h3{font-size:27px;letter-spacing:-.05em;margin:5px 0 12px}dialog p{margin:8px 0 13px}dialog label{font-size:13px}dialog input,dialog select,dialog textarea{display:block;width:100%;background:#fffefa;padding:8px;border:1px solid #c9c8bd;border-radius:4px;margin:4px 0 10px}dialog small{font:10px var(--mono);letter-spacing:.06em}.closeform{float:right}.closeform button,#closeTour{font-size:20px;line-height:1;border:0;background:none}.fields,.mode,#mapTools,#mapTools label{display:flex;gap:8px;align-items:center}.fields label{flex:1;min-width:0}.primary,.mode button[aria-pressed=true]{background:var(--ink);color:var(--paper);border-color:var(--ink)}dialog summary{cursor:pointer;padding:8px 0}.photoStudio{background:#eeede6;border:1px solid var(--line);padding:8px;margin:12px 0}.photoStudio canvas{width:100%;height:auto;touch-action:none}.photoStudio input[type=range]{accent-color:#70573b}#err{color:#843516}
#walkthrough{width:min(1300px,97vw);max-width:97vw;max-height:97svh;padding:0}.tourHead{display:flex;align-items:center;justify-content:space-between;background:#282923;color:var(--paper);padding:13px 18px}.tourHead small{color:#d1d1c7;font-size:9px}.tourHead h2{font-size:22px;margin-top:3px}.tourPane{position:relative;background:var(--stage)}.tourPane canvas{display:block;width:100%;height:min(64svh,760px);touch-action:none}.tourFooter{padding:11px 16px}.tourFooter p{font-size:12px;color:var(--muted);margin:7px 0}.tourFooter select,.tourFooter button{min-height:34px;font-size:12px}#legend{font-size:12px;margin:8px 0}#lightControl{display:inline-flex;align-items:center;gap:5px}#lighting,#roomView,#mapTools select{display:inline-block;width:auto;margin:0}#roomView{margin:0 4px}#pad{position:absolute;bottom:14px;left:14px;text-align:center}#pad button{background:#fffdf1df;min-width:37px;height:36px;touch-action:none;user-select:none}#scene:focus{outline:none}
@media(max-width:760px){.appbar{height:51px;gap:12px}.breadcrumb{display:none}.wordmark{font-size:21px}#save{font-size:10px}#upload{font-size:12px}main{display:block;min-height:0}.workspace{padding:18px 14px 10px}.heading{margin-bottom:14px}h1{font-size:32px}#projectInfo{margin-top:4px;font-size:10px}.sheet{min-height:clamp(295px,49svh,530px)}.stagebar{inset:10px 10px auto}.previewDock{bottom:10px}.drawing{inset:0}.editorTools{flex-wrap:wrap;gap:2px}.editorTools button{padding:7px 5px}.editorTools #selection{font-size:11px}.editorTools #scale{padding-left:6px}#notice{font-size:11px}aside{height:auto;min-height:0;padding:20px 15px;border-left:0;border-top:1px solid var(--line)}.libraryItems{overflow:visible}#catalog{grid-template-columns:repeat(auto-fill,minmax(134px,1fr))}.libraryHead{margin-bottom:12px}.libraryFoot{margin-top:6px}.viewSwitch button{width:66px}.previewDock button{font-size:12px;padding:0 9px}.tourPane canvas{height:49svh}.tourFooter button,.tourFooter select{margin-bottom:4px}.tourFooter{padding:9px 10px}#mapTools{flex-wrap:wrap}}
@media(max-width:400px){#save{font-size:0}#save::before{margin:0}.appbar{gap:10px}.editorTools #selection{flex-basis:100%;padding-top:5px}.editorTools #tools{margin-left:0}.libraryFoot button{min-height:40px}}
@media(prefers-reduced-motion:reduce){.viewSwitch i{transition:none}}

.workspace.modelView #selection,.workspace.modelView #rotate,.workspace.modelView #remove{display:none}
.workspace.modelView .editorTools #tools{margin-left:0}
.workspace.modelView .editorTools #scale{margin-left:auto}
#selection[hidden]{display:none}
@media(min-width:761px){.workspace{height:calc(100svh - 88px);min-height:590px}.sheet{min-height:300px}}

.shortcuts{display:flex;gap:6px;align-items:center}.shortcuts kbd{font:10px var(--mono);padding:0 3px;line-height:14px;border:1px solid #cac9be;border-radius:3px;margin-left:5px}.shortcuts kbd:first-child{margin-left:0}@media(hover:none){.shortcuts{display:none}.statusbar{justify-content:flex-end}}
