@font-face{font-family:IBM Plex Sans;font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/ibm-plex-sans-latin-400.woff2)format("woff2")}@font-face{font-family:IBM Plex Sans;font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/ibm-plex-sans-latin-500.woff2)format("woff2")}@font-face{font-family:IBM Plex Sans;font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/ibm-plex-sans-latin-600.woff2)format("woff2")}:root{--bg:#0f172a;--stage:#020617;--raised:#1e293b;--raised-hover:#243044;--line:#334155;--text:#e2e8f0;--muted:#cbd5e1;--action:#4f46e5;--action-hover:#4338ca;--action-press:#3730a3;--selected:#312e81;--selected-line:#818cf8;--selected-text:#eef2ff;--keep:#10b981;--seam:#ef4444;--face:#3b82f6;--idle:#94a3b8;--focus:#c7d2fe;--credit:#a5b4fc;--ok-bg:#064e3b;--ok-text:#a7f3d0;--ok-line:#10b981;--danger-bg:#450a0a;--danger-text:#fecaca;--danger-line:#7f1d1d;--radius:12px;--setup:20.5rem;--assistant:22rem;--font:"IBM Plex Sans", "Segoe UI", system-ui, sans-serif;--ease:cubic-bezier(.16, 1, .3, 1);--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*,:before,:after{box-sizing:border-box}html,body,#root{height:100%}body{background:var(--bg);color:var(--text);font-family:var(--font);text-rendering:optimizelegibility;margin:0;font-size:1rem;line-height:1.5}::selection{background:var(--action);color:#fff}:focus{outline:none}:focus-visible{outline:2px solid var(--focus);outline-offset:2px}button,input{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.skip{z-index:20;background:var(--text);color:var(--stage);border-radius:10px;padding:8px 12px;font-weight:600;text-decoration:none;position:absolute;top:-48px;left:12px}.skip:focus{top:12px}.num{font-variant-numeric:tabular-nums}.shell{flex-direction:column;height:100dvh;min-height:0;display:flex}.header{padding:max(12px, env(safe-area-inset-top)) 16px 12px;border-bottom:1px solid var(--line);background:var(--bg);flex:none;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"brand actions""credit credit";align-items:center;gap:4px 12px;display:grid;position:relative}.brand{grid-area:brand;align-items:center;gap:10px;min-width:0;display:flex}.brand-mark{background:var(--action);color:#fff;border-radius:10px;flex:none;place-items:center;width:36px;height:36px;display:grid}.brand h1{letter-spacing:-.02em;min-width:0;margin:0;font-size:1.125rem;font-weight:600;line-height:1.25}.brand h1 .sub{color:var(--muted);font-weight:400}.header-actions{grid-area:actions;align-items:center;display:flex}.credit{color:var(--muted);grid-area:credit;margin:0;font-size:.875rem}.credit strong{color:var(--credit);font-weight:600}.ghost{min-height:40px;color:var(--text);background:0 0;border:0;border-radius:10px;align-items:center;gap:8px;padding:8px 10px;display:inline-flex}.ghost:hover{background:var(--raised)}.header-meter{background:var(--line);grid-column:1/-1;height:3px}.header-meter span,.track>span{background:var(--credit);transform-origin:0;width:100%;height:100%;transition:transform .2s var(--ease);display:block}.workspace{flex-direction:column;flex:1;min-height:0;display:flex}.region-stage,.region-setup,.region-assistant{min-width:0;min-height:0}.region-stage{background:var(--stage);flex-direction:column;flex:1;display:flex}.region-setup,.region-assistant{background:var(--bg);flex-direction:column;display:flex}.setup-scroll{flex-direction:column;flex:1;gap:16px;min-height:0;padding:14px 16px 12px;display:flex;overflow:auto}.section h2,.chat-head h2,.stage-foot h2{letter-spacing:-.02em;margin:0;font-size:1rem;font-weight:600;line-height:1.3}.section h2{margin-bottom:8px}.stack{flex-direction:column;gap:8px;display:flex}.shape-btn,.upload-face,.primary,.segment button,.pane-nav button{border-radius:var(--radius)}.shape-btn{text-align:left;background:var(--raised);width:100%;min-height:44px;color:var(--text);border:1px solid var(--line);padding:10px 12px}.shape-btn:hover:not(:disabled){background:var(--raised-hover);border-color:var(--idle)}.shape-btn[aria-pressed=true]{background:var(--selected);border-color:var(--selected-line);color:var(--selected-text)}.shape-btn:disabled{color:var(--muted)}.upload{position:relative}.upload-face{border:1px dashed var(--idle);min-height:64px;color:var(--muted);text-align:center;cursor:pointer;background:0 0;flex-direction:column;justify-content:center;align-items:center;gap:4px;padding:12px;display:flex}.upload-face:hover{background:var(--raised);color:var(--text)}.upload-face.is-selected{border-style:solid;border-color:var(--selected-line);background:var(--selected);color:var(--selected-text)}.upload-face span{font-size:.9375rem;font-weight:500}.upload.is-disabled .upload-face{cursor:not-allowed;color:var(--muted)}.shape-note{color:var(--text);white-space:pre-wrap;margin:8px 0 0;font-size:.9375rem;line-height:1.5}.algo-name{letter-spacing:-.02em;margin:0 0 4px;font-size:1.125rem;font-weight:600;line-height:1.3}.algo-copy,.efficiency-hint,.stage-foot p,.quiet{color:var(--muted);margin:0}.algo-copy{margin-bottom:8px}.efficiency-hint{margin-bottom:12px;font-size:.9375rem;line-height:1.45;display:none}.primary{background:var(--action);color:#fff;border:1px solid #0000;justify-content:center;align-items:center;gap:8px;width:100%;min-height:44px;padding:10px 14px;font-weight:600;display:inline-flex}.primary:hover:not(:disabled){background:var(--action-hover)}.primary:active:not(:disabled){background:var(--action-press)}.primary.is-done:disabled{background:var(--ok-bg);color:var(--ok-text);border-color:var(--ok-line)}.primary.is-busy:disabled{background:var(--raised);color:var(--muted);border-color:var(--line)}.progress-meta{color:var(--muted);justify-content:space-between;gap:12px;margin:12px 0 6px;font-size:.875rem;display:flex}.track{background:var(--line);border-radius:999px;height:8px;overflow:hidden}.stat-list{grid-template-columns:1fr 1fr;gap:8px 16px;margin:0 0 8px;display:grid}.stat-list dt{color:var(--muted);font-size:.8125rem;line-height:1.2}.stat-list dd{letter-spacing:-.02em;font-variant-numeric:tabular-nums;margin:0;font-size:1.125rem;font-weight:600;line-height:1.2}.chart{width:100%;height:84px}.alert{border:1px solid var(--danger-line);border-radius:var(--radius);background:var(--danger-bg);color:var(--danger-text);margin:0;padding:10px 12px;font-size:.9375rem;line-height:1.45}.stage-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 12px;padding:12px 16px 0;display:flex}.segment{border:1px solid var(--line);background:var(--bg);border-radius:999px;gap:2px;padding:3px;display:inline-flex}.segment button{min-height:36px;color:var(--text);background:0 0;border:0;border-radius:999px;align-items:center;gap:6px;padding:6px 12px;font-size:.9375rem;font-weight:500;display:inline-flex}.segment button[aria-pressed=true]{background:var(--action);color:#fff}.segment button:disabled{color:var(--idle)}.legend{flex-wrap:wrap;gap:6px;display:flex}.legend span{min-height:28px;color:var(--text);align-items:center;gap:6px;padding:2px 8px;font-size:.8125rem;display:inline-flex}.swatch{border-top-style:solid;border-top-width:3px;width:18px;height:0}.swatch.interior{border-top-color:var(--keep)}.swatch.seam{border-top-color:var(--seam);border-top-style:dashed}.swatch.idle{border-top-color:var(--idle);border-top-width:2px}.stage-canvas{flex:1;min-height:0;margin-top:8px;display:flex;position:relative}.graph-wrap,.mesh-root,.mesh-empty{flex:1;width:100%;height:100%;min-height:0}.graph-wrap{position:relative}.graph-wrap svg{width:100%;height:100%;display:block}.graph-wrap .nodes circle{cursor:grab}.stage-foot{border-top:1px solid var(--line);background:var(--bg);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px 16px;padding:12px 16px 14px;display:flex}.stage-foot p{max-width:68ch;margin-top:2px;font-size:.9375rem;line-height:1.4}.stage-actions{display:none}.stage-actions .primary{width:auto;min-width:12.5rem}.mesh-root{position:relative}.mesh-empty{text-align:center;color:var(--muted);place-items:center;padding:24px;display:grid}.mesh-hint{text-align:center;color:var(--muted);pointer-events:none;margin:0;font-size:.875rem;position:absolute;bottom:10px;left:16px;right:16px}.chat{flex-direction:column;height:100%;min-height:0;display:flex}.chat-head{border-bottom:1px solid var(--line);flex:none;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;display:flex}.chat-head h2{align-items:center;gap:8px;display:flex}.chat-head p{color:var(--muted);margin:0;font-size:.875rem}.chat-log{flex-direction:column;flex:1;gap:12px;min-height:0;padding:16px;display:flex;overflow:auto}.bubble{max-width:min(100%,38rem);padding:10px 12px;font-size:.9375rem;line-height:1.5}.bubble.assistant{background:var(--raised);border:1px solid var(--line);border-radius:12px 12px 12px 4px;align-self:flex-start}.bubble.user{background:var(--action);color:#fff;border-radius:12px 12px 4px;align-self:flex-end}.bubble code{font-family:ui-monospace,monospace;font-size:.92em}.dots{gap:5px;padding:4px 2px;display:inline-flex}.dots i{background:var(--credit);width:7px;height:7px;animation:pulse 1.1s var(--ease) infinite;border-radius:999px}.dots i:nth-child(2){animation-delay:.15s}.dots i:nth-child(3){animation-delay:.3s}@keyframes pulse{0%,to{opacity:.35}50%{opacity:1}}.composer{padding:12px 16px max(16px, env(safe-area-inset-bottom));border-top:1px solid var(--line);flex:none;gap:8px;display:flex}.composer input{border:1px solid var(--line);border-radius:var(--radius);background:var(--raised);min-width:0;min-height:44px;caret-color:var(--focus);flex:1;padding:10px 12px}.composer input::placeholder{color:#94a3b8;opacity:1}.send{border-radius:var(--radius);background:var(--action);color:#fff;border:0;flex:none;place-items:center;width:44px;height:44px;display:grid}.send:hover:not(:disabled){background:var(--action-hover)}.send:disabled{background:var(--raised);color:var(--muted)}.pane-nav{border-top:1px solid var(--line);background:var(--bg);padding-bottom:env(safe-area-inset-bottom);flex:none;display:flex}.pane-nav button{min-height:52px;color:var(--muted);background:0 0;border:0;border-radius:0;flex:1;font-size:.875rem;font-weight:500;box-shadow:inset 0 -2px #0000}.pane-nav button[aria-selected=true]{color:#fff;box-shadow:inset 0 -2px 0 var(--action)}.icon{flex:none;width:1.15rem;height:1.15rem}.icon-lg{width:1.35rem;height:1.35rem}@media (width>=800px){.header{grid-template-columns:minmax(0,1fr) auto auto;grid-template-areas:"brand actions credit";gap:12px 20px;padding-left:20px;padding-right:20px}.brand h1{font-size:1.25rem}.credit{justify-self:end}}@media (width>=1100px){.workspace{flex-direction:row}.pane-nav{display:none}.region-setup{width:var(--setup);border-right:1px solid var(--line);flex:none}.region-assistant{width:var(--assistant);border-left:1px solid var(--line);flex:none}.header-meter{display:none}}@media (width<=1099px){.shell[data-pane=stage] .region-setup,.shell[data-pane=stage] .region-assistant,.shell[data-pane=setup] .region-stage,.shell[data-pane=setup] .region-assistant,.shell[data-pane=assistant] .region-stage,.shell[data-pane=assistant] .region-setup{display:none}.region-setup,.region-assistant,.region-stage{flex:1}.efficiency-hint{display:block}.stage-actions{flex:100%;display:flex}.stage-actions .primary{width:100%}}.shell.is-fullscreen .region-setup,.shell.is-fullscreen .region-assistant,.shell.is-fullscreen .pane-nav{display:none!important}.shell.is-fullscreen .region-stage{flex:1;display:flex!important}.shell.is-fullscreen .stage-actions{display:flex}@media (pointer:fine){.shape-btn{min-height:40px;padding-top:8px;padding-bottom:8px}}@media (pointer:coarse){.segment button,.ghost,.shape-btn{min-height:44px}}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{border:2px solid var(--bg);background:#475569;border-radius:999px}::-webkit-scrollbar-thumb:hover{background:#64748b}
