:root{font-family:Avenir Next,Avenir,Segoe UI,sans-serif;color:#f6efeb;color-scheme:dark;background:#1b1818;--muted: #c4b4b2;--line: #463a39;--accent: #f3a596}*{box-sizing:border-box}body{margin:0;min-width:280px}button{font:inherit;color:inherit;cursor:pointer}button:focus-visible,a:focus-visible,canvas:focus-visible{outline:2px solid #ffc4b6;outline-offset:3px}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.topbar{min-height:67px;padding:10px max(24px,calc((100% - 1400px)/2));display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid #3a3030;background:#211c1c}.topbar-actions{display:flex;align-items:center;gap:10px}.lang-switch{display:inline-flex;padding:3px;border:1px solid var(--line);border-radius:8px;background:#1b1717;gap:2px}.lang-switch button{min-height:30px;min-width:34px;padding:0 8px;border:1px solid transparent;border-radius:5px;background:transparent;color:var(--muted);font-size:12px;font-weight:700;letter-spacing:.04em}.lang-switch button:hover{color:#f6efeb}.lang-switch button[aria-pressed=true]{background:#412d2b;border-color:#df9b8d;color:#ffe2dc}.brand{display:flex;align-items:center;gap:10px;color:inherit;text-decoration:none;font-size:18px;font-weight:700;letter-spacing:-.035em;white-space:nowrap}.brand-icon{width:33px;height:33px;display:grid;place-items:center;color:#381f1f;background:var(--accent);border-radius:9px}.export,.cut-view{min-height:38px;display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;border:1px solid #654a47;border-radius:8px;background:#392827;padding:0 11px;color:#ffe2dc;font-size:14px;font-weight:650}.export:hover,.cut-view:hover{background:#503331}button:disabled{opacity:.45;cursor:default}.export svg,.cut-view svg{width:17px;height:17px}main{width:min(1400px,calc(100% - 48px));margin:0 auto;padding:31px 0 24px}.intro{margin-bottom:23px}h1{margin:0;font-size:clamp(2.45rem,5vw,4rem);font-family:Georgia,serif;font-weight:400;letter-spacing:-.06em;line-height:1}h1 span{color:var(--accent)}.intro p{margin:10px 0 0;color:var(--muted);font-size:16px;line-height:1.5}.studio{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:17px;align-items:start}.viewport{position:sticky;top:16px;isolation:isolate;overflow:hidden;height:clamp(510px,68vh,750px);border-radius:17px;border:1px solid var(--line);background:#000}.canvas-host{position:absolute;inset:0}.canvas-host canvas{width:100%;height:100%;display:block;cursor:grab;touch-action:none}.canvas-host canvas:active{cursor:grabbing}.preview-top,.preview-bottom{position:absolute;left:15px;right:15px;display:flex;align-items:center;justify-content:space-between;gap:8px;pointer-events:none}.preview-top{top:15px}.preview-bottom{bottom:15px}.preview-top button,.preview-bottom button{pointer-events:auto}.preview-top h2,.view-hint{margin:0;border:1px solid #665351;border-radius:8px;padding:8px 10px;font-size:14px;font-weight:600;background:#261e1eea}.cut-view{background:#261e1e}.cut-view[aria-pressed=true]{border-color:#d59083}.view-hint{font-size:13px;font-weight:500}.view-hint span{padding:0 4px;color:var(--accent)}.preview-tools{display:flex;gap:7px;margin-left:auto}.icon-button{display:grid;place-items:center;width:38px;height:38px;border-radius:8px;background:#261e1e;border:1px solid #665351}.icon-button:hover,.icon-button[aria-pressed=true]{background:#503331;color:#ffc6bb}.canvas-error{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);margin:0;padding:14px;background:#302625;border-radius:8px;text-align:center}.controls{border:1px solid var(--line);border-radius:17px;background:#261f1f;padding:17px}fieldset{margin:0;padding:0 0 13px;border:0;min-width:0}fieldset+fieldset{padding-top:13px;border-top:1px solid var(--line)}fieldset:last-child{padding-bottom:0}legend{float:left;width:100%;margin:0 0 8px;padding:0;font-size:16px;font-weight:700}.mold-options,.layers,.finish-options{clear:both;display:grid;gap:6px}.mold-options{grid-template-columns:repeat(2,minmax(0,1fr))}.choice{min-width:0;border:1px solid #544442;background:#302727;border-radius:7px;color:#f1e4e0;font-size:14px}.choice:hover,.layer-select:hover{border-color:#bc8c81}.choice[aria-pressed=true],.layer-row[data-active=true]{background:#412d2b;border-color:#df9b8d}.mold{min-height:35px;text-align:left;padding:4px 9px}.detail{margin:7px 0 0;color:var(--muted);font-size:13px}.layer-row{display:flex;gap:3px;align-items:center;border:1px solid #544442;border-radius:7px;background:#302727;padding:2px 4px 2px 0}.layer-select{flex:1;min-width:0;border:0;background:transparent;display:flex;align-items:center;text-align:left;gap:8px;min-height:31px;padding:2px 7px;font-size:14px}.layer-dot{flex:none;width:13px;height:13px;border-radius:50%;border:1px solid #ffffff4a;background:var(--swatch)}.layer-op{display:grid;place-items:center;padding:2px;width:25px;height:26px;border:0;background:transparent;border-radius:4px;color:#dcc5c0}.layer-op:hover{background:#62453f}.layer-op svg{width:15px;height:15px}.layer-actions{display:flex;align-items:center;justify-content:space-between;margin:5px 0 8px;min-height:27px}.layer-actions .detail{margin:0}.text-button{padding:4px 1px;border:0;background:none;color:#ffc0b1;font-size:14px;font-weight:650}.text-button:hover{text-decoration:underline}.flavor-label{margin:0 0 8px;font-size:14px;color:#eee0dc}.swatches{display:flex;gap:8px;flex-wrap:wrap}.swatch{display:grid;place-items:center;width:27px;height:27px;border-radius:50%;border:1px solid #ffffff38;background:var(--swatch);color:var(--tick, #321d1a);padding:0}.swatch:hover{outline:1px solid #ad8176;outline-offset:2px}.swatch[aria-pressed=true]{outline:1px solid #ffc1b2;outline-offset:2px}.swatch:focus-visible{outline:2px solid #ffe9e4;outline-offset:3px}.swatch svg{width:15px;height:15px;stroke-width:2.6;visibility:hidden}.swatch[aria-pressed=true] svg{visibility:visible}.finish-options{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:12px}.finish{min-height:34px;padding:3px 4px;font-size:13px}.status{margin:9px 0 0;color:var(--muted);font-size:14px}@media(max-width:800px){.studio{grid-template-columns:minmax(0,1fr)}.viewport{position:relative;top:auto;height:clamp(350px,73vw,570px)}main{padding-top:25px}}@media(max-width:440px){main{width:calc(100% - 24px)}.topbar{padding-inline:12px;min-height:58px;flex-wrap:wrap}.topbar-actions{gap:6px}.controls{padding:13px}}@media(pointer:coarse){.view-hint{display:none}}.environment-options{clear:both;display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.environment-options .choice{min-height:38px}.preview-loading{position:absolute;bottom:58px;left:50%;transform:translate(-50%);margin:0;padding:8px 12px;border-radius:8px;background:#261e1eea;color:#fff;pointer-events:none;white-space:nowrap}#preview-poster{position:absolute;inset:0;pointer-events:none}#preview-poster img{width:100%;height:100%;object-fit:cover}.fit-control{clear:both;display:flex;justify-content:space-between;align-items:baseline;font-weight:600}.fit-control output{font-variant-numeric:tabular-nums}.fit-control~input[type=range]{width:100%;margin:.45rem 0 0;accent-color:var(--accent);cursor:pointer}.detail+.fit-control{margin-top:1rem}.layer-row{flex-wrap:wrap}.thickness-control{flex:0 0 100%;display:flex;align-items:center;gap:8px;padding:0 5px 5px 8px;color:var(--muted);font-size:12px}.thickness-control input{flex:1;min-width:0;accent-color:var(--accent)}.thickness-control span{min-width:3ch;text-align:right;font-variant-numeric:tabular-nums}#mousse-heading{clear:both}#mousse-flavors,#height-budget{margin-bottom:12px}.recipe-links{clear:both;display:flex;gap:6px;flex-wrap:wrap}.recipe-links a{color:#f1e4e0;border:1px solid #544442;background:#302727;padding:8px 10px;border-radius:7px;font-size:14px;text-decoration:none}.recipe-links a:hover,.recipe-links a[aria-current]{background:#412d2b;border-color:#df9b8d}#mousse-debug{margin:0 0 14px;font-size:14px}#mousse-debug summary,#mousse-debug label{cursor:pointer}#mousse-debug label{display:inline-flex;align-items:center;gap:4px;margin:8px 10px 0 0}#mousse-debug input{accent-color:var(--accent)}
