:root{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif;color:#303936;background:#f7f7f0;font-size:13px;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;color-scheme:light;--panel: #f7f7f0;--paper: #fcfcf7;--ink: #303936;--muted: #727970;--line: #dddfd5;--line-strong: #c9cec2;--header: #242b2a;--accent: #d66c3c;--accent-ink: #a64925;--accent-soft: #f5e7db;--sage: #e5e9e3;--mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;--header-height: 72px;--toolbar-height: 52px;--status-height: 32px}*,*:before,*:after{box-sizing:border-box}[hidden]{display:none!important}html,body{width:100%;height:100%;margin:0;overflow:hidden;overscroll-behavior:none}body{line-height:1.45}#app{display:flex;flex-direction:column;width:100%;height:100vh;height:100dvh;overflow:hidden;isolation:isolate}button,input,select,textarea{font:inherit}button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:32px;margin:0;padding:6px 10px;border:1px solid transparent;border-radius:5px;background:transparent;color:inherit;font-size:12px;font-weight:550;line-height:1.3;text-align:center;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}button:hover:not(:disabled){background:#eaece3;border-color:var(--line-strong)}button:active:not(:disabled){background:#dfe3d8}button:disabled,input:disabled,select:disabled{opacity:.38;cursor:not-allowed}:where(button,a,input,select,textarea,[tabindex]):focus-visible{outline:2px solid var(--accent);outline-offset:3px}input:not([type=checkbox]):not([type=color]):not([type=file]),select,textarea{min-width:0;min-height:36px;padding:8px 10px;border:1px solid var(--line);border-radius:5px;background:var(--paper);color:var(--ink)}input::placeholder,textarea::placeholder{color:#858b80;opacity:1}input::selection,textarea::selection{background:#edd0ba;color:#242b2a}a{color:inherit}h1,h2,h3,p{margin:0}svg{display:block}.icon{flex:0 0 auto;width:17px;height:17px;pointer-events:none}kbd,.mono{font-family:var(--mono);font-size:10px;font-weight:400;font-variant-numeric:tabular-nums}kbd{display:inline-flex;align-items:center;justify-content:center;min-width:17px;height:19px;padding:0 4px;border:1px solid var(--line);border-radius:3px;background:#fbfbf580;color:var(--muted);line-height:1;white-space:nowrap}.eyebrow,.section-label,.catalog-heading{font-family:var(--mono);font-size:10px;font-weight:500;line-height:1.4;letter-spacing:.09em}.eyebrow{display:block;color:var(--muted)}.live-dot,.project-dot,.orange-dot,.offline-dot{display:inline-block;flex:0 0 auto;width:6px;height:6px;border-radius:50%;background:#879d80}.orange-dot,.live-dot.pending{background:var(--accent)}.wide-button,.primary-button{min-height:36px;border-color:var(--line-strong);font-size:12px;font-weight:600}.wide-button{width:100%;background:var(--paper)}.primary-button{padding:8px 13px;border-color:var(--accent);background:var(--accent);color:#241b15}.primary-button:hover:not(:disabled){border-color:#b8532a;background:#b8532a;color:#fffaf3}.text-button{min-height:30px;padding:6px 2px;color:var(--muted);font-size:10px;font-weight:400}.text-button:hover:not(:disabled){border-color:transparent;background:transparent;color:var(--accent-ink);text-decoration:underline;text-underline-offset:3px}.app-header{position:relative;z-index:40;display:flex;flex:0 0 var(--header-height);align-items:center;gap:24px;min-width:0;height:var(--header-height);padding:0 24px;border-bottom:1px solid #151e1b;background:var(--header);color:var(--panel)}.brand{display:flex;flex:0 0 212px;align-items:center;gap:11px;border-radius:4px;font-size:25px;font-weight:700;line-height:1;letter-spacing:-.065em;text-decoration:none}.brand-mark{display:grid;flex:0 0 35px;width:35px;height:38px;place-items:center;border:1px solid #d98257;border-radius:6px;background:var(--accent);color:#282b24}.brand-mark .icon{width:24px;height:24px;stroke-width:1.5}.brand-dot{color:var(--accent)}.brand small{display:block;margin-top:7px;color:#a7b0a6;font-family:var(--mono);font-size:8px;font-weight:400;letter-spacing:.19em}.brand:hover{color:#fff}.project-title{display:flex;flex:1 1 0;align-items:center;gap:10px;min-width:0;height:30px;padding-left:24px;border-left:1px solid #48514a}.project-dot{width:5px;height:5px;background:#d1d5c5}.project-title #project-name{width:175px;min-width:0;min-height:32px;padding:6px 5px;border-color:transparent;background:transparent;color:#efefe5;font-size:13px;font-weight:500;text-overflow:ellipsis}.project-title #project-name:hover,.project-title #project-name:focus-visible{border-color:#60675b;background:#ffffff06}.file-tag{flex-shrink:0;padding:3px 5px;border:1px solid #4b5249;border-radius:3px;color:#b8bdaf;font-family:var(--mono);font-size:8px;letter-spacing:.09em}.header-actions{display:flex;flex:0 0 auto;align-items:center;gap:9px}#save-state{display:flex;align-items:center;gap:7px;margin-right:12px;color:#b8c0b4;font-size:10px;white-space:nowrap}.header-actions>button{width:34px;height:36px;padding:7px;color:#c7cec0}.header-actions>button:hover:not(:disabled){border-color:#535e54;background:#37423a;color:#fffdf2}.header-actions .save-button{width:auto;gap:8px;padding:8px 14px;border-color:#e5e5d5;background:#efeedc;color:#30372f;font-size:11px;font-weight:650;white-space:nowrap}.header-actions .save-button:hover:not(:disabled){border-color:#fff9e6;background:#fff9e6;color:#242b2a}.app-body{position:relative;display:flex;flex:1 1 0;min-width:0;min-height:0;overflow:hidden}.build-credit{display:flex;flex:0 0 auto;align-items:center;justify-content:space-between;gap:8px 20px;min-height:32px;padding:7px 18px;border-top:1px solid var(--line-strong);background:#eeeee3;color:#596252;font-size:11px;line-height:1.5}.build-credit a{color:var(--accent-ink);text-decoration:underline;text-underline-offset:3px}.build-credit strong{color:var(--ink);font-weight:650}.build-credit .source-link{white-space:nowrap}.library,.inspector{z-index:10;display:flex;flex-direction:column;min-height:0;background:var(--panel)}.library{flex:0 0 260px;width:260px;border-right:1px solid var(--line-strong);overflow:hidden}.panel-heading{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;gap:12px;padding:22px 18px 19px}.panel-heading h1{margin-top:4px;font-size:23px;font-weight:600;line-height:1.2;letter-spacing:-.045em}.count-tag{display:grid;min-width:27px;height:25px;margin-top:12px;padding:0 6px;place-items:center;border:1px solid var(--line);border-radius:4px;background:#eceee5;color:#687060;font-family:var(--mono);font-size:11px}.library-tabs{display:grid;flex-shrink:0;grid-template-columns:1fr 1fr;height:39px;margin:0 16px 16px;border-bottom:1px solid var(--line)}.library-tabs button{gap:7px;margin-bottom:-1px;padding:8px 3px 11px;border:0;border-bottom:2px solid transparent;border-radius:0;color:var(--muted);font-size:11px}.library-tabs button:hover:not(:disabled){border-color:var(--line-strong);background:#eeefe7;color:var(--ink)}.library-tabs button[aria-selected=true]{border-bottom-color:var(--accent);background:transparent;color:var(--accent-ink);font-weight:600}.search-field{display:flex;flex-shrink:0;align-items:center;gap:7px;height:35px;margin:0 16px 12px;padding:0 9px;border:1px solid var(--line);border-radius:5px;background:#f0f1e9;color:#879080;cursor:text}.search-field:focus-within{outline:2px solid var(--accent);outline-offset:2px;border-color:transparent;background:var(--paper)}.search-field #search{flex:1 1 0;width:100%;min-height:0;height:100%;padding:0;border:0;border-radius:0;outline:none;background:transparent;font-size:11px}.search-field .icon{width:15px;height:15px}.search-field kbd{min-width:16px;height:18px;padding:0 3px;color:#919788}.filter-row{display:flex;flex-shrink:0;align-items:center;gap:4px;margin:0 16px 17px}.filter-row button{flex:1 1 0;min-height:25px;padding:4px 6px;border-radius:4px;color:var(--muted);font-size:10px}.filter-row button.active{border-color:#d8ddcf;background:#e8ebdf;color:#394336;font-weight:600}.library-scroll{flex:1 1 0;min-height:0;padding:0 16px 20px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scroll-padding-block:12px}.library-scroll,.inspector,dialog{scrollbar-width:thin;scrollbar-color:#c8cebf transparent}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-thumb{border:1px solid var(--panel);border-radius:4px;background:#c8cebf}::-webkit-scrollbar-thumb:hover{background:#a6b09c}::-webkit-scrollbar-track{background:transparent}.catalog-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:20px 0 10px;color:#757d6e;font-size:9px;letter-spacing:.065em}.catalog-heading:first-child{margin-top:1px}.catalog-heading>span{color:#949b8c;font-size:9px}.shape-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.shape-card{position:relative;display:flex;flex-direction:column;gap:0;min-height:119px;padding:8px 5px 11px;border:1px solid var(--line);border-radius:6px;background:#fafaf4;color:#63745d}.shape-card:hover:not(:disabled){border-color:#a9b39e;background:#f0f2e8}.shape-card.active,.shape-card.active:hover:not(:disabled){border-color:#d7865c;background:var(--accent-soft);box-shadow:inset 0 0 0 1px #d66c3c0a;color:var(--accent-ink)}.shape-svg{flex:0 0 auto;width:80px;height:72px;max-width:100%;pointer-events:none}.shape-card strong{max-width:100%;color:#424c3d;font-size:11px;font-weight:550;line-height:1.4;overflow-wrap:anywhere}.shape-card small{margin-top:3px;color:#808776;font-family:var(--mono);font-size:8px;font-weight:400;line-height:1.4}.shape-card.active strong{color:var(--accent-ink)}.shape-card.active small{color:#9b745b}.shape-check{position:absolute;top:7px;right:7px;display:grid;width:14px;height:14px;place-items:center;border-radius:3px;background:var(--accent);color:#fffaf1;visibility:hidden;pointer-events:none}.shape-check .icon{width:10px;height:10px;stroke-width:2.5}.shape-card.active .shape-check{visibility:visible}.assembly-list{display:grid;gap:8px}.assembly-entry{position:relative;min-width:0}.assembly-card{justify-content:flex-start;gap:10px;width:100%;min-height:77px;padding:12px 36px 12px 9px;border-color:var(--line);background:var(--paper);text-align:left}.assembly-card.active{border-color:#d7865c;background:var(--accent-soft)}.assembly-thumbnail{display:grid;flex:0 0 34px;width:34px;height:39px;place-items:center;border:1px solid #d8dece;border-radius:4px;background:#e9eddf;color:#718361}.assembly-card.active .assembly-thumbnail{border-color:#e4c7b0;background:#efdbc7;color:var(--accent-ink)}.assembly-card>span:nth-child(2){flex:1 1 0;min-width:0}.assembly-card strong,.assembly-card small{display:block;overflow-wrap:anywhere}.assembly-card strong{font-size:11px;font-weight:600}.assembly-card small{margin-top:4px;color:var(--muted);font-family:var(--mono);font-size:9px}.assembly-card>.icon{position:absolute;top:10px;right:11px;width:13px;height:13px;color:#8b9580}.edit-assembly{position:absolute;right:5px;bottom:6px;width:27px;min-height:27px;padding:4px;color:#75816b}.library-empty{padding:34px 6px;color:var(--muted);font-size:12px;line-height:1.8;text-align:center}.library-footer{flex-shrink:0;padding:15px 16px 17px;border-top:1px solid var(--line);background:var(--panel)}.library-footer .wide-button{justify-content:flex-start;gap:7px;padding-inline:9px;font-size:11px}.library-footer .wide-button>.icon:last-child{width:15px;height:15px;margin-left:auto;color:#939b88}.library-note{display:flex;align-items:flex-start;gap:9px;margin-top:15px;padding-left:2px;color:#858d7c;font-size:9px;line-height:1.8}.library-note strong{color:#6f7965;font-family:var(--mono);font-size:8px;font-weight:400}.small-square{flex:0 0 7px;height:7px;margin-top:5px;border:1px solid #8a997b;background:#dce3ce}.workspace{display:flex;flex:1 1 0;flex-direction:column;min-width:0;min-height:0;overflow:hidden;background:var(--sage);container:workspace / inline-size}.main-toolbar{position:relative;z-index:15;display:flex;flex:0 0 var(--toolbar-height);align-items:center;gap:10px;min-width:0;height:var(--toolbar-height);padding:0 16px;border-bottom:1px solid var(--line-strong);background:var(--panel)}.tool-group,.toolbar-end{display:flex;flex-shrink:0;align-items:center;gap:3px}.main-toolbar button{flex-shrink:0;min-width:32px;height:34px;padding:7px;color:#697361}.tools .tool{gap:7px;padding:7px 9px;font-size:11px;white-space:nowrap}.tools .tool kbd{min-width:16px;height:17px;margin-left:2px;padding:0 3px;border-color:#e1e3d8;color:#929988;font-size:9px}.tools .tool.active{border-color:#e8bba1;background:var(--accent-soft);color:var(--accent-ink)}.tools .tool.active kbd{border-color:#e5c2a9;background:#fbf3e9;color:#ae7552}.tools .icon-tool{width:34px;padding:7px}.toolbar-divider{flex:0 0 1px;height:21px;background:var(--line)}.toolbar-end{margin-left:auto}.mobile-tools,.main-toolbar .mobile-inspector{display:none}.viewport{position:relative;flex:1 1 0;min-width:0;min-height:0;overflow:hidden;background:var(--sage);isolation:isolate}.viewport>canvas,#bench-viewport>canvas{position:absolute;z-index:0;inset:0;display:block;width:100%;height:100%;touch-action:none}.viewport>canvas:focus-visible,#bench-viewport>canvas:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}.viewport>:not(canvas){position:absolute;z-index:2;pointer-events:none}.viewport button{pointer-events:auto}.viewport-label{top:23px;left:23px;display:flex;align-items:center;gap:9px;max-width:calc(100% - 93px);color:#73806c;font-size:10px;white-space:nowrap;-webkit-user-select:none;user-select:none}.viewport-label strong{color:#56664e;font-family:var(--mono);font-size:9px;font-weight:500;letter-spacing:.09em}.viewport-label .live-dot{width:5px;height:5px;background:#6d8662}.label-divider{margin:0 2px;color:#a7b09e}.inactive-canvas .viewport-label{padding:6px 8px;top:17px;left:15px;border:1px dashed #a5af9c;border-radius:4px;background:#f7f7f078}.inactive-canvas .viewport-label .live-dot{background:#aab29f}.view-controls{top:19px;right:18px;display:flex;flex-direction:column;align-items:stretch;gap:8px}.view-buttons{display:flex;flex-direction:column;border:1px solid #c9d0c0;border-radius:5px;background:#f7f7f0ed;box-shadow:0 2px 4px #34432d08}.view-controls button,.canvas-buttons button{width:34px;height:34px;padding:8px;border-color:#c9d0c0;background:#f7f7f0ed;color:#66765b;box-shadow:0 2px 4px #34432d08}.view-buttons button{border:0;border-radius:0;background:transparent;box-shadow:none}.view-buttons button+button{border-top:1px solid #d9dfd0}.view-buttons button:first-child{border-radius:4px 4px 0 0}.view-buttons button:last-child{border-radius:0 0 4px 4px}.view-controls button:hover:not(:disabled),.canvas-buttons button:hover:not(:disabled){border-color:#acb69f;background:#fffef4;color:#36492e}.canvas-buttons button[aria-pressed=true]{border-color:#aebba3;background:#e5eadc;color:#4e6543}.axis-widget{bottom:78px;left:21px;width:66px;height:66px;-webkit-user-select:none;user-select:none}.axis-widget svg{width:100%;height:100%;overflow:visible;font-family:var(--mono);font-size:10px}.axis-widget path{stroke-width:1.5;stroke-linecap:round}.canvas-bottom{right:18px;bottom:18px;left:20px;display:flex;align-items:flex-end;justify-content:space-between;gap:12px}.canvas-hint{display:flex;flex-wrap:wrap;align-items:center;gap:7px 14px;min-width:0;padding:8px 11px;border:1px solid #cbd3c194;border-radius:5px;background:#f7f7f0d9;color:#6d7963;font-size:9px;line-height:1.5;-webkit-user-select:none;user-select:none}.canvas-hint>span{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}.canvas-hint .icon{width:13px;height:13px}.canvas-hint kbd{height:17px;border-color:#cfd6c5;background:#f8faf3;color:#6b785e;font-size:8px}.canvas-buttons{display:flex;flex-shrink:0;gap:6px}.gesture-badge{bottom:80px;left:50%;width:max-content;max-width:calc(100% - 40px);padding:9px 13px;transform:translate(-50%);border:1px solid #485549;border-radius:5px;background:var(--header);color:#f0f1e5;box-shadow:0 4px 16px #24302118;font-family:var(--mono);font-size:11px;text-align:center}.empty-canvas{top:43%;left:50%;width:calc(100% - 90px);max-width:440px;transform:translate(-50%,-50%);color:#465740;text-align:center;text-shadow:0 1px 15px #e5e9e3;pointer-events:none;-webkit-user-select:none;user-select:none}.empty-canvas>span{font-family:var(--mono);font-size:9px;letter-spacing:.16em}.empty-canvas h2{margin:15px 0;font-size:clamp(28px,3.5vw,46px);font-weight:500;line-height:1.07;letter-spacing:-.055em}.empty-canvas p{color:#68795f;font-size:12px;line-height:1.6}.webgl-error{inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:32px;background:var(--sage);text-align:center}.webgl-error h2{max-width:420px;font-size:24px;font-weight:550;letter-spacing:-.035em}.webgl-error p{max-width:360px;color:var(--muted);font-size:12px;line-height:1.8}.statusbar{display:flex;flex:0 0 var(--status-height);align-items:center;justify-content:space-between;gap:12px;min-width:0;height:var(--status-height);padding:0 16px;overflow:hidden;border-top:1px solid #cbd1c2;background:#f0f2e8;color:#7a8470;font-size:9px}.statusbar>div{display:flex;align-items:center;gap:8px;min-width:0;white-space:nowrap}.statusbar>div:first-child,.statusbar>div:last-child{flex:1 1 0}.statusbar>div:last-child{justify-content:flex-end}.statusbar .live-dot{width:5px;height:5px;background:#8c9d7b}.status-divider{flex:0 0 1px;height:10px;background:#d2d8c7}.status-coords{flex:0 0 auto;color:#707e65;font-family:var(--mono);font-size:9px;font-variant-numeric:tabular-nums;white-space:pre!important}#status-tool,#status-selection{min-width:0;overflow:hidden;text-overflow:ellipsis}#status-count{flex-shrink:0;font-variant-numeric:tabular-nums}.inspector{flex:0 0 280px;width:280px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scroll-padding-block:18px;border-left:1px solid var(--line-strong)}.inspector>section{flex-shrink:0;min-width:0;padding:20px 18px;border-bottom:1px solid var(--line)}.section-label{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#707b65;font-size:9px;letter-spacing:.085em}.section-label>.icon{width:15px;height:15px;color:#919b85}.selected-shape{display:flex;align-items:center;gap:9px;min-width:0;min-height:112px;padding:8px 0}.selected-shape>.shape-svg,.selected-assembly{flex:0 0 90px;width:90px;height:90px;color:#78866c}.selected-assembly{display:grid;place-items:center}.selected-assembly .icon{width:40px;height:40px;stroke-width:1.2}.selected-shape>div:last-child{min-width:0}.selected-shape h2{font-size:17px;font-weight:550;line-height:1.2;letter-spacing:-.03em;overflow-wrap:anywhere}.selected-shape>div>span{display:block;margin-top:6px;color:#858d7b;font-size:9px;line-height:1.65;overflow-wrap:anywhere}.orientation-header,.color-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#67735d;font-size:11px}.orientation-header .mono{color:#949c89;font-size:8px;letter-spacing:.03em}.rotation-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 32px;align-items:start;gap:9px;margin-top:9px}.rotation-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0}.rotation-pair button,.reset-rotation{height:32px;padding:6px;border-color:var(--line);background:#fcfcf6;color:#6c7b60}.rotation-pair button:first-child{border-radius:4px 0 0 4px}.rotation-pair button:nth-child(2){margin-left:-1px;border-radius:0 4px 4px 0}.rotation-pair button:focus-visible{position:relative;z-index:1}.rotation-pair small{grid-column:1 / -1;margin-top:5px;color:#929b85;font-size:8px;text-align:center}.reset-rotation{width:32px;background:#eeefe6}.color-heading{margin-top:20px;margin-bottom:10px}#color-name{min-width:0;overflow:hidden;color:#8a947d;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.swatches{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));align-items:center;gap:7px;padding:2px}.swatches>button,.custom-color{position:relative;display:grid;width:100%;min-height:0;height:27px;padding:0;place-items:center;border:1px solid #3d4b3226;border-radius:4px;background:var(--swatch, #fcfcf5);color:#30392a;cursor:pointer}.swatches>button:hover:not(:disabled){border-color:#778568;background:var(--swatch);box-shadow:0 0 0 2px #d9decd}.swatches>button.active{outline:2px solid var(--accent);outline-offset:2px}.swatches>button:focus-visible{outline:2px solid #242b2a;outline-offset:4px}.swatches>button .icon{visibility:hidden;width:14px;height:14px;stroke-width:2}.swatches>button.active .icon{visibility:visible}.swatches>button[data-color="#637775"],.swatches>button[data-color="#424c4a"]{color:#fafbf1}.custom-color{overflow:hidden;border-style:dashed;border-color:#b9c1ac;color:#8d997f}.custom-color:hover{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-ink)}.custom-color:focus-within{outline:2px solid var(--accent);outline-offset:3px}.custom-color input{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;opacity:0;cursor:pointer}#selection-actions{margin-top:17px;padding-top:13px;border-top:1px solid var(--line)}.selection-action-row{display:flex;gap:5px}.selection-action-row>button{flex:0 0 30px;min-height:31px;padding:6px;border-color:var(--line);background:var(--paper);color:#6b785f}.selection-action-row>button:last-child{flex:1 1 0;font-size:10px}.selection-action-row>button[data-action=delete]{color:#a05e44}.selection-action-row>button[data-action=delete]:hover:not(:disabled){border-color:#d9aa96;background:#f6e6dc}.move-fields{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;margin-top:11px}.move-fields>span{grid-column:1 / -1;margin-bottom:3px;color:var(--muted);font-size:10px}.move-fields button{min-height:28px;padding:5px;border-color:var(--line);background:#f0f2e8;color:#68795b}.layer-control{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:17px 0 15px;font-size:11px}.layer-control>span{color:#6a775f}.layer-control b{display:inline-block;margin-left:5px;color:#929c85;font-family:var(--mono);font-size:10px;font-weight:400}.layer-control>div{display:flex;align-items:center;gap:0}.layer-control button{width:29px;height:31px;min-height:31px;padding:6px;border-color:var(--line);background:#fcfcf6;color:#849177}.layer-control button:first-child{border-radius:4px 0 0 4px}.layer-control button:last-child{border-radius:0 4px 4px 0}.layer-control #layer{width:46px;min-height:31px;height:31px;padding:4px;border-inline:0;border-radius:0;background:#eeefe6;color:#46573b;font-family:var(--mono);font-size:12px;text-align:center;appearance:textfield;-moz-appearance:textfield}#layer::-webkit-inner-spin-button,#layer::-webkit-outer-spin-button{margin:0;-webkit-appearance:none}.switch-row{position:relative;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:30px;color:#748066;font-size:10px;cursor:pointer;touch-action:manipulation}.switch-row input{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);border:0;white-space:nowrap}.switch{position:relative;flex:0 0 29px;width:29px;height:17px;border:1px solid #c3cbb7;border-radius:9px;background:#d9dfcf}.switch:before{position:absolute;top:2px;left:2px;width:11px;height:11px;border-radius:50%;background:#fffef6;box-shadow:0 1px 2px #34432d26;content:""}.switch-row input:checked+.switch{border-color:#c36336;background:var(--accent)}.switch-row input:checked+.switch:before{transform:translate(12px)}.switch-row input:focus-visible+.switch{outline:2px solid var(--accent);outline-offset:3px}.switch-row:hover .switch{box-shadow:0 0 0 3px #bbc6ab26}.switch-row input:disabled+.switch{opacity:.45;cursor:not-allowed}.inspector>.bench-panel{display:flex;flex:1 0 auto;flex-direction:column;min-height:273px;padding-top:20px;padding-bottom:17px;border-bottom:0}.mini-tag{flex-shrink:0;padding:2px 4px;border:1px solid #dce0d1;border-radius:3px;background:#ecefe3;color:#879578;font-family:var(--mono);font-size:7px;font-weight:400;letter-spacing:.025em}.bench-intro{display:flex;flex:1 0 auto;flex-direction:column;align-items:center;justify-content:center;padding-top:20px;text-align:center}.bench-illustration{position:relative;display:grid;width:62px;height:56px;margin-bottom:13px;place-items:center;border:1px solid #dce2d0;border-radius:6px;background:#ecefe4;color:#a2ad95}.bench-illustration>.icon{width:33px;height:33px;stroke-width:1.1}.bench-plus{position:absolute;right:-6px;bottom:-4px;display:grid;width:20px;height:20px;place-items:center;border:3px solid var(--panel);border-radius:5px;background:var(--accent);color:#fff8eb;font-size:12px;line-height:1}.bench-intro h3{color:#59674f;font-size:12px;font-weight:550;letter-spacing:-.01em}.bench-intro p{margin-top:7px;margin-bottom:19px;color:#909b83;font-size:10px;line-height:1.8}.bench-intro .wide-button{color:#6b795e;font-size:11px}.bench-intro .text-button{margin-top:5px;color:#929c87;font-size:9px}#bench-workspace{min-width:0;margin-top:15px}.bench-active-label{display:flex;align-items:center;gap:7px;min-height:31px;color:var(--accent-ink);font-family:var(--mono);font-size:8px;letter-spacing:.05em}.bench-active-label .live-dot{width:5px;height:5px;background:var(--accent)}.bench-active-label button{width:26px;min-height:26px;margin-left:auto;padding:4px;color:#8d967f}#bench-viewport{position:relative;width:100%;height:220px;min-height:0;overflow:hidden;border:1px solid #c7cfbd;border-radius:5px;background:var(--sage);isolation:isolate}#bench-viewport.active-canvas{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.bench-help{margin:10px 0 12px;color:#858f79;font-size:9px;line-height:1.7}#assembly-name{width:100%;font-size:11px}.bench-footer{display:flex;gap:7px;margin-top:8px}.bench-footer>button:first-child{flex:0 0 32px;padding-inline:6px;border-color:var(--line);background:var(--paper);color:#8a927f}.bench-footer .primary-button{flex:1 1 0;gap:6px;padding-inline:7px;font-size:10px}.bench-footer .primary-button .icon{width:15px;height:15px}.inspector-footer{display:flex;flex-shrink:0;align-items:center;gap:6px;min-height:37px;margin-top:auto;padding:11px 16px;border-top:1px solid var(--line);background:#f0f2e8;color:#8f9a81;font-family:var(--mono);font-size:7px;line-height:1.5;letter-spacing:.025em;white-space:nowrap}.offline-dot{width:4px;height:4px;background:#91a47c}.inspector-footer>span:last-child{margin-left:auto;color:#a5ae99}.toast{position:fixed;z-index:100;bottom:49px;left:50%;width:max-content;max-width:min(520px,calc(100% - 32px));padding:12px 17px;transform:translate(-50%);border:1px solid #56604f;border-radius:6px;background:#242b2a;color:#f5f5e9;box-shadow:0 8px 30px #18251c30;font-size:12px;line-height:1.6;text-align:center;overflow-wrap:anywhere;pointer-events:none}.toast.error{border-color:#b86e59;background:#893c30;color:#fff6ed}dialog{position:fixed;inset:0;width:min(820px,calc(100% - 48px));max-width:820px;max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);margin:auto;padding:0;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;border:1px solid #cbd1bf;border-radius:7px;background:var(--panel);color:var(--ink);box-shadow:0 24px 100px #14231b42,0 3px 12px #14231b1a}dialog::backdrop{background:#1e2926a6;backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}.dialog-close{position:absolute;z-index:5;top:15px;right:15px;width:31px;min-height:31px;padding:6px;border-color:var(--line);background:#eeefe5;color:#758168}dialog:has(.simple-dialog){width:min(480px,calc(100% - 48px))}.simple-dialog,.help-dialog{padding:37px}.simple-dialog>.eyebrow,.help-dialog>.eyebrow{padding-right:30px;color:var(--accent-ink);font-size:9px}.simple-dialog h2,.help-dialog h2{margin:12px 0 16px;font-size:29px;font-weight:550;line-height:1.12;letter-spacing:-.045em;overflow-wrap:anywhere}.simple-dialog>p,.help-dialog>p{max-width:600px;color:#7b8570;font-size:12px;line-height:1.8}.simple-dialog>label{display:grid;gap:7px;margin-top:23px;color:#6c785f;font-size:11px;font-weight:550}.simple-dialog input{width:100%}.dialog-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px;margin-top:26px;padding-top:20px;border-top:1px solid var(--line)}.dialog-actions>button{min-height:36px;padding:8px 14px}.dialog-actions>button:not(.primary-button){border-color:var(--line-strong);background:var(--paper);color:#6a795d}.help-dialog h2{font-size:37px}.help-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 30px;margin-top:28px}.help-grid section{min-width:0;padding-top:14px;border-top:1px solid var(--line)}.help-grid h3{margin-bottom:9px;color:#526444;font-family:var(--mono);font-size:11px;font-weight:500}.help-grid p{color:#818c74;font-size:11px;line-height:1.8;overflow-wrap:anywhere}.help-grid b{color:#576b47;font-weight:600}.help-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;margin-top:28px;padding-top:20px;border-top:1px solid var(--line)}.help-foot>span{color:#8b957d;font-family:var(--mono);font-size:9px;line-height:1.8}.help-foot .wide-button{width:auto;color:#687b58;font-size:11px}dialog.profile-dialog{width:min(900px,calc(100% - 48px));max-width:900px}#dialog .bw-profile{--bwp-ink: var(--ink);--bwp-muted: #78856c;--bwp-line: var(--line);--bwp-accent: var(--accent-ink);--bwp-soft: var(--accent-soft);--bwp-error: #a34331;max-width:none;padding:30px;border-radius:0;background:var(--panel);font-family:var(--sans)}#dialog .bw-profile>header{padding-right:34px}#dialog .bw-profile .bwp-eyebrow,#dialog .bw-profile h3,#dialog .bw-profile .bwp-badge{font-family:var(--mono)}#dialog .bw-profile :is(.bwp-panel,.bwp-inspector){border-radius:6px;background:var(--paper)}#dialog .bw-profile :is(button,input,select){border-radius:5px}#dialog .bw-profile :is(button,input,select,svg[tabindex]):focus-visible{outline:2px solid var(--accent);outline-offset:3px}#dialog .bw-profile .bwp-close{border-color:#e5bda2;background:var(--accent-soft);color:var(--accent-ink)}#dialog .bw-profile .bwp-save{border-color:var(--accent);background:var(--accent);color:#241b15;box-shadow:none}#dialog .bw-profile .bwp-save:hover:not(:disabled){border-color:#b8532a;background:#b8532a;color:#fffaf3}@container workspace (max-width: 700px){.tools .tool kbd,.desktop-note,.desktop-note+.status-divider{display:none}.main-toolbar{gap:8px;padding-inline:12px}.canvas-hint>span:last-child{display:none}.statusbar{gap:10px;padding-inline:12px}}@container workspace (max-width: 560px){.tools .tool>span{display:none}.tools .tool{width:34px;padding-inline:7px}.canvas-hint>span:not(:first-child){display:none}.statusbar>div:first-child{flex:1 1 auto}.statusbar>div:last-child{flex:0 1 auto;max-width:85px}}@container workspace (max-width: 420px){.viewport-label>.label-divider,.viewport-label>span:last-child,.statusbar>div:last-child{display:none}.viewport-label{top:20px;left:16px}.canvas-bottom{right:12px;bottom:13px;left:12px;gap:8px}.canvas-hint{padding-inline:8px;font-size:8px}.axis-widget{left:13px;bottom:69px;width:55px;height:55px}.empty-canvas p{font-size:11px}}@media(min-height:900px){#bench-viewport{height:250px}}@media(max-width:1250px){.app-header{gap:18px}.brand{flex-basis:218px}.project-title{padding-left:18px}.file-tag{display:none}#save-state{margin-right:3px;font-size:9px}}@media(max-width:1100px){.inspector{position:absolute;z-index:30;top:var(--toolbar-height);right:0;bottom:0;display:none;width:280px;border-top:1px solid var(--line);box-shadow:-12px 8px 30px #23352120;pointer-events:auto}.inspector.mobile-open{display:flex}.main-toolbar .mobile-inspector{display:inline-flex}.app-body:has(.inspector.mobile-open) .mobile-inspector{border-color:#e2b396;background:var(--accent-soft);color:var(--accent-ink)}#save-state{display:none}}@media(max-width:760px){.app-header{gap:14px;padding-inline:16px}.brand{flex:0 0 auto;gap:9px;font-size:23px}.brand-mark{flex-basis:32px;width:32px;height:34px}.brand small,.project-dot,.save-button>span{display:none}.project-title{gap:0;padding-left:12px}.project-title #project-name{width:100%;font-size:12px}.header-actions{gap:4px}.header-actions>button,.header-actions .save-button{width:34px;height:36px;padding:7px}.library{position:absolute;z-index:30;top:var(--toolbar-height);bottom:0;left:0;display:none;width:260px;max-width:calc(100% - 40px);border-top:1px solid var(--line);box-shadow:12px 8px 30px #23352120;pointer-events:auto}.library.mobile-open,.mobile-tools{display:flex}.app-body:has(.library.mobile-open) .mobile-tools button{border-color:#e2b396;background:var(--accent-soft);color:var(--accent-ink)}.main-toolbar{gap:7px;padding-inline:10px}.tool-group,.toolbar-end{gap:2px}.tools .tool kbd{display:none}.view-controls{top:16px;right:12px}.simple-dialog,.help-dialog{padding:29px}.help-grid{gap:21px}}@media(max-width:480px){.build-credit{justify-content:center;padding-inline:10px;text-align:center}.build-credit .source-link{display:none}.app-header{gap:10px;padding-inline:12px}.brand>span:last-child{display:none}.project-title{padding-left:8px}.header-actions{gap:3px}.header-actions>button,.header-actions .save-button{width:32px;padding-inline:6px}.inspector{width:100%;border-left:0}.inspector>section{padding-inline:22px}.selected-shape{gap:17px}.selected-shape>div>span{font-size:10px}.swatches{grid-template-columns:repeat(7,minmax(0,32px));justify-content:space-between;gap:8px}.swatches>button,.custom-color{height:30px}#bench-viewport{height:250px}.main-toolbar{gap:4px;padding-inline:6px}.main-toolbar button,.tools .tool{width:30px;min-width:30px;height:36px;padding:6px}.tools .tool>span{display:none}.toolbar-divider{margin-inline:2px}.canvas-hint{max-width:calc(100% - 82px)}.canvas-hint>span{white-space:normal}.statusbar{padding-inline:10px;font-size:8px}.statusbar>div{gap:6px}.status-coords{font-size:8px}dialog,dialog.profile-dialog,dialog:has(.simple-dialog){width:calc(100% - 20px);max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px)}.dialog-close{top:11px;right:11px}.simple-dialog,.help-dialog{padding:25px 21px}.simple-dialog h2{padding-right:15px;font-size:26px}.help-dialog h2{font-size:32px}.help-grid{grid-template-columns:minmax(0,1fr);gap:19px}.help-foot{align-items:stretch;flex-direction:column}#dialog .bw-profile{padding:23px 16px 18px}.toast{bottom:43px;padding:10px 13px;font-size:11px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
