:root{--bg-1: #142443;--bg-2: #070d1a;--glass: rgba(12, 22, 42, .74);--glass-border: rgba(255, 255, 255, .08);--surface: rgba(255, 255, 255, .04);--surface-hover: rgba(255, 255, 255, .08);--text: #f2f3fa;--muted: #8e9bb8;--orange: #ff5f1f;--grad: linear-gradient(135deg, #ff5f1f 0%, #ff7a2e 55%, #ffa04a 100%);--accent: #ff6a24;--radius: 22px;--sidebar-w: 340px;font-family:Outfit,system-ui,-apple-system,Segoe UI,sans-serif;color:var(--text)}*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden}body{background:radial-gradient(1200px 700px at 70% 30%,rgba(46,92,170,.28),transparent 60%),radial-gradient(900px 600px at 95% 100%,rgba(255,95,31,.14),transparent 60%),linear-gradient(160deg,var(--bg-1),var(--bg-2))}button{font:inherit;color:inherit}.app{position:relative;height:100%}.viewer{position:absolute;top:0;right:0;bottom:0;left:0}.viewer canvas{display:block}.sidebar{position:absolute;top:20px;bottom:20px;left:20px;width:var(--sidebar-w);display:flex;flex-direction:column;background:var(--glass);backdrop-filter:blur(18px) saturate(140%);-webkit-backdrop-filter:blur(18px) saturate(140%);border:1px solid var(--glass-border);border-radius:var(--radius);box-shadow:0 24px 60px #00000073;overflow:hidden}.brand{display:flex;align-items:center;gap:12px;padding:22px 22px 18px}.brand-mark{width:46px;height:46px;border-radius:14px;background:#fff;flex-shrink:0;display:grid;place-items:center;box-shadow:0 8px 24px #ff5f1f4d}.brand-mark img{width:34px;height:34px;object-fit:contain}.brand-title{font-weight:700;font-size:18px;letter-spacing:-.01em}.brand-sub{font-size:13px;color:var(--muted)}.brand-sub strong{color:var(--text);font-weight:600}.brand-sub strong span{color:var(--orange)}.steps{display:flex;flex-direction:column;gap:6px;padding:0 14px 14px;border-bottom:1px solid var(--glass-border)}.step{display:flex;align-items:center;gap:12px;padding:10px;text-align:left;border:1px solid transparent;border-radius:14px;background:none;cursor:pointer;transition:background .15s}.step:hover{background:var(--surface-hover)}.step.active{background:var(--surface);border-color:var(--glass-border)}.step-num{width:30px;height:30px;border-radius:10px;flex-shrink:0;display:grid;place-items:center;font-weight:600;font-size:14px;background:var(--surface-hover);color:var(--muted)}.step.active .step-num{background:var(--grad);color:#fff}.step-text b{display:block;font-weight:600;font-size:15px}.step-text small{color:var(--muted);font-size:12.5px}.step-content{flex:1;overflow-y:auto;padding:18px 22px;display:flex;flex-direction:column;gap:22px}.group h2{margin:0 0 12px;font-size:11.5px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.12em}.select{position:relative}.select-trigger{width:100%;display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:14px;cursor:pointer;text-align:left;background:var(--surface);border:1px solid var(--glass-border);transition:background .15s,border-color .15s}.select-trigger:hover{background:var(--surface-hover)}.select.open .select-trigger{border-color:#ff5f1f99;background:var(--surface-hover)}.select-text{flex:1;display:flex;flex-direction:column;min-width:0}.select-label{font-weight:600;font-size:15px}.select-text small{font-size:12px;color:var(--muted)}.select-panel{margin-top:8px;border-radius:14px;overflow:hidden;background:#060c1a99;border:1px solid var(--glass-border);animation:select-in .15s ease-out}.chips{display:flex;flex-wrap:wrap;gap:6px;padding:10px;border-bottom:1px solid var(--glass-border)}.chip{display:flex;align-items:center;gap:6px;padding:6px 11px;border-radius:999px;cursor:pointer;font-size:12.5px;white-space:nowrap;background:var(--surface);border:1px solid var(--glass-border);transition:background .15s}.chip:hover{background:var(--surface-hover)}.chip span{font-size:11px;color:var(--muted)}.chip.active{background:var(--grad);border-color:transparent;color:#fff;font-weight:600}.chip.active span{color:#ffffffd9}.select-chevron{width:18px;height:18px;fill:none;stroke:var(--muted);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s}.select.open .select-chevron{transform:rotate(180deg)}.select-icon{width:36px;height:36px;flex-shrink:0;border-radius:10px;display:grid;place-items:center;background:#ffffff0d}.select-icon svg{width:24px;height:24px;overflow:visible}.select-icon path{fill:url(#shape-grad)}.select-icon .empty{fill:none;stroke:#ffffff59;stroke-width:.05;stroke-dasharray:.12 .09}.select-menu{display:grid;grid-template-columns:repeat(auto-fill,minmax(76px,1fr));gap:6px;padding:8px;max-height:340px;overflow-y:auto;align-content:start;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.15) transparent}@keyframes select-in{0%{opacity:0;transform:translateY(-4px)}}.select-group{grid-column:1 / -1;position:sticky;top:-8px;z-index:1;margin:4px -8px 0;padding:10px 12px 6px;font-size:11px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.1em;background:#0a1121}.shape-tile{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:84px;padding:10px 4px 8px;border-radius:12px;cursor:pointer;background:var(--surface);border:1px solid transparent;transition:background .15s,transform .15s,border-color .15s}.shape-tile:hover,.shape-tile:focus-visible{background:var(--surface-hover);transform:translateY(-1px);outline:none}.shape-tile svg:first-child{width:34px;height:34px;overflow:visible}.shape-tile path{fill:#ffffff8c}.shape-tile .empty{fill:none;stroke:#ffffff59;stroke-width:.05;stroke-dasharray:.12 .09}.shape-tile-label{font-size:11.5px;line-height:1.2;text-align:center;color:var(--muted)}.shape-tile.active{background:#ff5f1f1f;border-color:#ff5f1f8c}.shape-tile.active path{fill:url(#shape-grad)}.shape-tile.active .shape-tile-label{color:var(--text);font-weight:600}.select-check{position:absolute;top:5px;right:5px;width:16px;height:16px;padding:2px;border-radius:50%;background:var(--orange);fill:none;stroke:#fff;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;visibility:hidden}.shape-tile.active .select-check{visibility:visible}.hint,.muted{margin:-4px 0 10px;font-size:12.5px;color:var(--muted);line-height:1.4}.decor-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(76px,1fr));gap:6px}.decor-row{display:flex;align-items:center;gap:10px;padding:6px 6px 6px 8px;margin-bottom:6px;border-radius:12px;cursor:pointer;background:var(--surface);border:1px solid transparent;transition:background .15s,border-color .15s}.decor-row:hover{background:var(--surface-hover)}.decor-row.active{background:#ff5f1f1f;border-color:#ff5f1f8c}.decor-row .select-icon{width:32px;height:32px}.decor-row .select-icon svg{width:22px;height:22px}.decor-row:not(.active) .select-icon path{fill:#fff9}.decor-row-label{flex:1;font-size:14px}.icon-btn{width:30px;height:30px;display:grid;place-items:center;border:0;border-radius:8px;background:none;cursor:pointer;color:var(--muted)}.icon-btn:hover{background:#ff505026;color:#ff8080}.icon-btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}.decor-actions{display:flex;gap:8px}.btn-ghost{flex:1;padding:9px;border-radius:10px;cursor:pointer;font-size:13.5px;background:var(--surface);border:1px solid var(--glass-border);transition:background .15s}.btn-ghost:hover{background:var(--surface-hover)}.btn-ghost.danger:hover{background:#ff505026;border-color:#ff505066;color:#ff9a9a}.field{display:flex;flex-direction:column;gap:12px}.value-pill{align-self:flex-start;padding:4px 12px;border-radius:999px;background:var(--surface-hover);font-weight:600;font-size:14px}input[type=range]{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;height:6px;border-radius:999px;background:linear-gradient(90deg,#ff5f1f,#ffa04a) 0 / var(--fill, 50%) 100% no-repeat,var(--surface-hover);outline:none}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:20px;height:20px;border-radius:50%;background:#fff;border:4px solid var(--accent);cursor:pointer;box-shadow:0 4px 14px #ff5f1f99}input[type=range]::-moz-range-thumb{width:14px;height:14px;border-radius:50%;background:#fff;border:4px solid var(--accent);cursor:pointer}input[type=range]:disabled{opacity:.4}.range-ends{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);margin-top:-4px}.sidebar-actions{margin:0 18px 18px;display:flex;flex-direction:column;gap:8px}.snap-wrap{position:relative;display:flex;flex-direction:column}.snap-menu{position:absolute;left:0;right:0;min-width:220px;bottom:calc(100% + 8px);z-index:20;display:flex;flex-direction:column;gap:6px;padding:8px;border-radius:16px;background:#0e162cf5;border:1px solid rgba(255,255,255,.12);box-shadow:0 18px 40px #00000073;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.snap-menu[hidden]{display:none}.snap-menu button{display:flex;align-items:center;gap:12px;padding:8px;border:0;border-radius:12px;background:transparent;color:#fff;font:inherit;font-size:14.5px;font-weight:600;cursor:pointer;text-align:left}.snap-menu button:hover{background:#ffffff14}.snap-thumb{width:54px;height:40px;border-radius:9px;flex:none;box-shadow:inset 0 0 0 1px #ffffff2e}.snap-fireplace{background:radial-gradient(circle at 70% 60%,#ffb347 0 14%,transparent 34%),linear-gradient(180deg,#3b2414,#7a4a25 60%,#b07a4c 61%,#8a5a36)}.snap-loft{background:radial-gradient(circle at 30% 35%,#fff6d8 0 16%,transparent 40%),linear-gradient(180deg,#4e7a62,#6f9a7c 60%,#c99b6b 61%,#a77a50)}.snap-planks{background:url(/scene/wood-planks-wall.jpg) center 70% / cover}.btn-snapshot{width:100%;display:flex;align-items:center;justify-content:center;gap:8px;padding:11px;color:var(--text, #fff)}.btn-snapshot svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}.btn-export{margin:0;padding:15px;border:0;border-radius:16px;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:10px;background:var(--grad);color:#fff;font-weight:600;font-size:15.5px;box-shadow:0 12px 30px #ff5f1f59;transition:transform .15s,box-shadow .15s}.btn-export:hover{transform:translateY(-1px);box-shadow:0 16px 36px #ff5f1f80}.top-right{position:absolute;top:20px;right:20px;z-index:6;display:flex;align-items:center;gap:10px}.patreon{position:relative;z-index:5;display:flex;align-items:center;gap:10px;padding:10px 14px 10px 12px;border-radius:999px;background:var(--glass);border:1px solid var(--glass-border);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);color:var(--text);text-decoration:none;font-size:14px;box-shadow:0 10px 30px #00000059;transition:border-color .15s,transform .15s}.patreon:hover{border-color:#ff5f1f99;transform:translateY(-1px)}.patreon>svg:first-child{width:26px;height:26px;padding:6px;border-radius:50%;background:#000;fill:#fff;box-shadow:0 0 0 1px #ffffff40}.patreon b{color:var(--orange);font-weight:600}.patreon .arrow{width:16px;height:16px;fill:none;stroke:var(--muted);stroke-width:2;stroke-linecap:round}.btn-export svg{width:20px;height:20px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.palette{position:absolute;top:80px;right:20px;z-index:4;width:250px;max-height:calc(100% - 160px);display:flex;flex-direction:column;background:var(--glass);backdrop-filter:blur(18px) saturate(140%);-webkit-backdrop-filter:blur(18px) saturate(140%);border:1px solid var(--glass-border);border-radius:var(--radius);box-shadow:0 24px 60px #0006;overflow:hidden}.palette-head{display:flex;align-items:center;gap:10px;padding:14px 16px;border:0;background:none;cursor:pointer;text-align:left}.palette-title{flex:1;font-weight:700;font-size:15px}.palette-head-dots{display:flex}.palette-head-dots i{width:14px;height:14px;border-radius:50%;margin-right:-4px;border:2px solid rgba(12,22,42,.9)}.palette:not(.collapsed) .select-chevron{transform:rotate(180deg)}.palette.collapsed .palette-body{display:none}.palette-body{overflow-y:auto;padding:0 14px 14px;border-top:1px solid var(--glass-border)}.palette-body h2{margin:14px 2px 8px;font-size:11px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.1em}.paint-parts{display:flex;flex-direction:column;gap:4px}.paint-part{display:flex;align-items:center;gap:10px;padding:7px 10px;border-radius:10px;cursor:pointer;border:1px solid transparent;background:var(--surface);font-size:13.5px;text-align:left}.paint-part:hover{background:var(--surface-hover)}.paint-part.active{border-color:#ff5f1f99;background:#ff5f1f1a}.paint-part i,.slot i{width:18px;height:18px;border-radius:50%;flex-shrink:0;border:1px solid rgba(255,255,255,.25)}.paint-part span{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.swatches{display:grid;grid-template-columns:repeat(8,1fr);gap:6px}.swatch{aspect-ratio:1;border-radius:50%;cursor:pointer;border:2px solid rgba(255,255,255,.15);transition:transform .12s}.swatch:hover{transform:scale(1.12)}.swatch.active{border-color:#fff;box-shadow:0 0 0 2px var(--orange)}.custom-color{display:flex;align-items:center;gap:8px;margin-top:10px;font-size:13px;color:var(--muted);cursor:pointer}.custom-color input{width:30px;height:30px;padding:0;border:0;border-radius:8px;background:none;cursor:pointer}.slots{display:flex;flex-wrap:wrap;gap:6px}.slot{display:flex;align-items:center;gap:5px;padding:4px 8px 4px 5px;border-radius:999px;background:var(--surface);font-size:12px;font-weight:600}.slot i{width:16px;height:16px}.btn-3mf{width:100%;margin:14px 0 0;padding:12px;font-size:14px}.palette-hint{margin:10px 2px 0;font-size:12px}.palette-hint b{color:var(--orange)}.view-toggle{position:absolute;right:20px;bottom:20px;z-index:5;display:flex;gap:4px;padding:4px;border-radius:999px;background:var(--glass);border:1px solid var(--glass-border);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);box-shadow:0 10px 30px #00000059}.view-toggle button{display:flex;align-items:center;gap:7px;padding:8px 14px;border:0;border-radius:999px;background:none;color:var(--muted);font-size:13.5px;white-space:nowrap;cursor:pointer;transition:background .15s,color .15s}.view-toggle button:hover{color:var(--text)}.view-toggle button.active{background:var(--grad);color:#fff;font-weight:600}.view-toggle svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}@media(max-width:760px){.sidebar{top:auto;left:0;right:0;bottom:0;width:auto;max-height:52vh;border-radius:var(--radius) var(--radius) 0 0;border-bottom:0}.sidebar{transition:max-height .2s}.sidebar:has(.select.open){max-height:82vh}.brand{padding:16px 16px 12px}.steps{flex-direction:row;overflow-x:auto;padding:0 12px 12px}.step-content{padding:16px}.sidebar-actions{margin:0 16px 16px;flex-direction:row}.sidebar-actions .btn-export{flex:1.4;padding:12px}.top-right{top:16px;right:16px;left:16px;justify-content:center}.patreon{flex:1;justify-content:center}.top-right .acct-name{display:none}.view-toggle{top:72px;bottom:auto;right:50%;transform:translate(50%)}.palette{top:124px;right:16px;width:210px;max-height:46vh}.palette-head{padding:10px 12px}}.text-input{width:100%;min-height:64px;resize:vertical;box-sizing:border-box;padding:10px 12px;border-radius:12px;font:inherit;font-size:15px;line-height:1.35;color:inherit;background:var(--surface);border:1px solid var(--glass-border);outline:none}.text-input:focus{border-color:var(--orange);box-shadow:0 0 0 3px #ff6a242e}.font-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.font-tile{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:10px 10px 8px;border-radius:12px;cursor:pointer;text-align:left;color:inherit;background:var(--surface);border:1px solid var(--glass-border);transition:background .15s,border-color .15s}.font-tile:hover{background:var(--surface-hover)}.font-tile.active{border-color:var(--orange);background:#ff6a241f}.font-tile .font-sample{font-size:19px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}.font-tile small{font-size:11px;opacity:.6}.segmented{display:flex;gap:6px}.segmented button{flex:1;padding:8px;border-radius:10px;cursor:pointer;color:inherit;font:inherit;font-size:13px;background:var(--surface);border:1px solid var(--glass-border)}.segmented button.active{border-color:var(--orange);background:#ff6a2424}.btn-add{width:100%;padding:11px;font-weight:600}.hint.warn{margin:8px 2px 0;color:#ffb38a}.hint.warn b{color:var(--orange)}
