.designer{--card:#f7f2e7;--press:#2f3d2b;--stage-h:min(44svh, 420px);max-width:1120px;padding:0 var(--gutter) 7rem;margin:0 auto}@media (width<=899px){.designer.compact{--stage-h:min(30svh, 260px)}}.designer{--tray-h:11.1rem}.designer.placing{padding-bottom:calc(var(--tray-h) + 2rem)}@media (width<=899px){.designer.placing{--stage-h:calc(100svh - var(--tray-h) - env(safe-area-inset-bottom) - 2.1rem)}.designer.placing .stage{padding-left:0;padding-right:0}}.designer[hidden],.designer [hidden]{display:none!important}.designer h1{font-family:var(--font-display);margin:.25rem 0;font-size:clamp(1.6rem,5vw,2.2rem);font-weight:500}.designer .lede{color:var(--muted);margin:0 0 1rem}.stage{z-index:2;background:var(--bg-elev);border-bottom:1px solid var(--rule);margin:0 calc(-1 * var(--gutter));padding:.5rem var(--gutter) .25rem;perspective:900px;position:sticky;top:0}.stage figure{margin:0}.stage svg{width:100%;height:var(--stage-h);touch-action:pan-y;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;transform-origin:50% 55%;transition:transform .9s cubic-bezier(.2,.8,.2,1);display:block}.stage img{width:100%;height:var(--stage-h);object-fit:contain;display:block}.stage figcaption{text-align:center;color:var(--muted);font-size:.8rem}.stage.turned svg{animation:7s ease-in-out .9s infinite alternate turn;transform:rotateX(28deg)rotate(-10deg)scale(.84)}@keyframes turn{0%{transform:rotateX(28deg)rotate(-10deg)scale(.84)}to{transform:rotateX(22deg)rotate(10deg)scale(.84)}}.stage figure{position:relative}.turn{z-index:1;border:1px solid var(--rule);background:var(--card);min-width:44px;min-height:44px;color:var(--fg);font:inherit;cursor:pointer;touch-action:manipulation;border-radius:999px;padding:0 .9rem;font-size:.85rem;position:absolute;top:.25rem;right:0}.turn[aria-pressed=true]{background:var(--press);color:#fff;border-color:var(--press)}.stage .edge{opacity:0;transition:opacity .6s}.stage.turned .edge{opacity:1}.stage.painting .pocket{cursor:pointer}.stage.painting svg{touch-action:manipulation}.stage .pocket.hit{stroke:var(--accent-text);stroke-width:2.4px}.stage .ins.drop{transform-box:fill-box;transform-origin:50%;animation:.5s cubic-bezier(.2,1.5,.4,1) both drop}@keyframes drop{0%{opacity:0;transform:scale(1.35)}60%{opacity:1}to{transform:none}}@media (prefers-reduced-motion:reduce){.stage .ins.drop,.stage.turned svg{animation:none}.stage svg{transition:none}}.steps{margin:1rem 0 0;padding:0;list-style:none}.step{border-bottom:1px solid var(--rule);scroll-margin-top:calc(var(--stage-h) + 3rem)}.step h2{font:inherit;margin:0}.step-head{width:100%;min-height:3.25rem;color:var(--fg);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;grid-template-columns:2rem auto 1fr;align-items:center;gap:.5rem;padding:.5rem 0;display:grid}.step-head .num{background:var(--bg-elev);border-radius:50%;place-items:center;width:1.6rem;height:1.6rem;font-size:.85rem;display:inline-grid}.step.open .num{background:var(--press);color:var(--bg)}.step-head .title{font-family:var(--font-display);font-size:1.2rem}.step-head .value{color:var(--muted);text-align:right;justify-self:end;font-size:.9rem}.step-body{padding:0 0 1.25rem;animation:.35s ease-out both open}@keyframes open{0%{opacity:0;transform:translateY(-4px)}}.step-body h3{font-family:var(--font-display);margin:1rem 0 .4rem;font-size:1.05rem;font-weight:500}.fine{color:var(--muted);margin:.4rem 0;font-size:.88rem}.cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem;display:grid}.card,.pattern,.row,.pick-chip,.toggle,.button,.swatch{font:inherit;color:var(--fg);cursor:pointer;-webkit-tap-highlight-color:transparent}.card{text-align:left;border:1px solid var(--rule);background:var(--card);border-radius:14px;gap:.15rem;min-height:5rem;padding:.75rem;transition:border-color .2s,box-shadow .2s;display:grid}.card[aria-pressed=true]{border-color:var(--press);box-shadow:0 0 0 1px var(--press)}.card-name{font-family:var(--font-display);font-size:1.1rem}.card-meta{color:var(--muted);font-size:.85rem}.card-price{font-weight:600}.scene{border:1px dashed var(--rule);border-radius:14px;margin-top:1rem;padding:.75rem}.scene p{margin:0 0 .5rem}.colors .picked{align-items:center;gap:.4rem;margin:.25rem 0 .5rem;font-size:.95rem;display:flex}.dot{background:var(--c);border-radius:50%;flex:none;width:1.1rem;height:1.1rem;display:inline-block;box-shadow:inset 0 0 0 1px #0000002e}.colors details{border-top:1px solid var(--rule)}.colors summary{cursor:pointer;padding:.6rem 0;font-size:.9rem}.swatches{flex-wrap:wrap;gap:.15rem;padding-bottom:.6rem;display:flex}.swatch{background:0 0;border:0;border-radius:50%;place-items:center;width:44px;height:44px;padding:0;display:grid}.swatch .dot{width:32px;height:32px;transition:transform .15s}.swatch[aria-pressed=true] .dot{box-shadow:0 0 0 2px var(--bg), 0 0 0 4px var(--press);transform:scale(1.05)}.swatch[aria-disabled=true] .dot{opacity:.35}.toggle-row{flex-wrap:wrap;align-items:center;gap:.5rem .75rem;margin:1rem 0 .25rem;display:flex}.toggle{border:1px solid var(--press);background:0 0;border-radius:999px;min-height:44px;padding:.5rem .9rem}.toggle[aria-pressed=true]{background:var(--press);color:var(--bg)}.toggle[aria-pressed=true]:before{content:"✓ "}.patterns{grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem;display:grid}.pattern{border:1px solid var(--rule);background:var(--card);border-radius:12px;justify-items:center;gap:.2rem;padding:.5rem .25rem;font-size:.85rem;display:grid;position:relative}.pattern[aria-pressed=true]{border-color:var(--press);box-shadow:0 0 0 1px var(--press)}.pattern .thumb{width:54px;height:47px}.patterns.small .thumb{width:40px;height:35px}.badge{background:var(--press);width:1.3rem;height:1.3rem;color:var(--bg);border-radius:50%;place-items:center;font-size:.75rem;display:grid;position:absolute;top:.3rem;right:.4rem}.pick-chips{flex-wrap:wrap;gap:.4rem;margin-bottom:.4rem;display:flex}.pick-chip{border:1px solid var(--rule);background:var(--card);border-radius:999px;align-items:center;gap:.35rem;min-height:40px;padding:.3rem .75rem;display:inline-flex}.pick-chip[aria-pressed=true]{border-color:var(--press);box-shadow:0 0 0 1px var(--press)}.paint{background:var(--bg-elev);border-radius:14px;margin-top:.75rem;padding:.75rem}.rows{display:grid}.row{border:0;border-bottom:1px solid var(--rule);text-align:left;background:0 0;justify-content:space-between;gap:1rem;padding:.65rem 0;display:flex}.row-v{color:var(--muted);text-align:right}.row:hover .row-v{color:var(--fg)}.color-list{margin:.25rem 0;padding:0;list-style:none}.color-list li{align-items:center;gap:.45rem;padding:.2rem 0;font-size:.95rem;display:flex}.get,.packs{margin:.25rem 0;padding-left:1.1rem}.terms p{margin:.35rem 0;font-size:.92rem}.code{background:var(--bg-elev);border-radius:14px;margin:1rem 0 .75rem;padding:.75rem}.code p{margin:.25rem 0}.code-id{-webkit-user-select:all;user-select:all;word-break:break-all;font-family:ui-monospace,SF Mono,Menlo,monospace;font-size:1.05rem}.button{border:1px solid var(--press);background:0 0;border-radius:14px;justify-content:center;align-items:center;min-height:46px;padding:.55rem 1.1rem;font-weight:600;text-decoration:none;display:inline-flex}.button.primary{background:var(--press);color:var(--bg)}.button.primary:hover{color:var(--bg);background:#3d4e38}.button.small{min-height:44px;padding:.3rem .7rem;font-size:.9rem}.button[disabled]{opacity:.6;cursor:default}.code+.button.primary,.step-body>.button.primary{width:100%;font-size:1.05rem}.bar{z-index:3;padding:.65rem var(--gutter) calc(.65rem + env(safe-area-inset-bottom));background:var(--card);border-top:1px solid var(--rule);touch-action:manipulation;align-items:center;gap:.75rem;display:flex;position:fixed;bottom:0;left:0;right:0}.bar-sum{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;flex:1;min-width:0;margin:0;font-size:.85rem;line-height:1.35;overflow:hidden}.bar-note{color:var(--accent-text);font-weight:600}.bar-sum strong{color:var(--fg)}.bar.tray{padding-top:.4rem;display:block}.tray-head{align-items:center;gap:.5rem;margin-bottom:.35rem;display:flex}.tray-hint{min-width:0;color:var(--muted);white-space:nowrap;text-overflow:ellipsis;flex:1;margin:0;font-size:.82rem;overflow:hidden}.tray-row{overscroll-behavior-x:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch;gap:.4rem;display:flex;position:relative;overflow-x:auto}.tray-row::-webkit-scrollbar{display:none}.tray-inserts{margin:0 calc(-1 * var(--gutter));padding:0 var(--gutter) .35rem}.tray-chip{border:1px solid var(--rule);background:var(--bg);min-width:56px;min-height:56px;color:var(--fg);font:inherit;cursor:pointer;touch-action:manipulation;border-radius:12px;flex-direction:column;flex:none;justify-content:center;align-items:center;gap:.1rem;padding:.2rem .35rem;font-size:.72rem;display:flex}.tray-chip .thumb{width:30px;height:26px}.tray-chip[aria-pressed=true]{border-color:var(--press);box-shadow:inset 0 0 0 2px var(--press)}.tray-clear[disabled]{opacity:.5}.tray-foot{align-items:center;gap:.5rem;display:flex}.tray-colors{flex:1;align-items:center;min-width:0}.tray-colors .swatch{flex:none}.tray-more{white-space:nowrap;flex:none;padding-left:.6rem;padding-right:.6rem}.tray-actions{flex:none;gap:.4rem;display:flex}.tray-actions .button{padding-left:.8rem;padding-right:.8rem}.sheet{overscroll-behavior:contain;max-height:55svh;padding:.5rem var(--gutter) .75rem;background:var(--card);border-top:1px solid var(--rule);position:absolute;bottom:100%;left:0;right:0;overflow-y:auto;box-shadow:0 -8px 24px #0000001f}.sheet-head{justify-content:space-between;align-items:center;display:flex}.sheet-head h3{margin:0}.layouts{grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem;margin-bottom:.5rem;display:grid}.layout{border:1px solid var(--rule);background:var(--card);color:var(--fg);font:inherit;cursor:pointer;touch-action:manipulation;border-radius:14px;justify-items:center;gap:.25rem;padding:.45rem;font-size:.9rem;display:grid}.layout[aria-pressed=true]{border-color:var(--press);box-shadow:inset 0 0 0 2px var(--press)}.board-thumb{width:100%;height:96px}.button.place{width:100%;margin-top:.25rem}.bar-actions{gap:.5rem;display:flex}.status{min-height:1.4em;color:var(--accent-text);font-size:.9rem}@media (width>=900px){.designer{--stage-h:min(70vh, 640px);grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);column-gap:2.5rem;padding-bottom:6rem;display:grid}.designer>header,.designer>.status{grid-column:1/-1}.stage{border:1px solid var(--rule);border-radius:20px;align-self:start;margin:0;top:1rem}.steps{margin-top:0}.step{scroll-margin-top:1rem}.cards{grid-template-columns:repeat(2,minmax(0,1fr))}.bar{left:auto;right:max(var(--gutter), calc((100vw - 1120px) / 2));border:1px solid var(--rule);border-radius:18px;width:min(460px,40vw);bottom:1rem}}
