:root{--bg:#0a0e1a;--panel:#111728db;--border:#96aadc29;--text:#e7ecf8;--muted:#94a1bf;--accent:#6ea8ff;--accent-strong:#4d8df7;--danger:#ff8080;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg);color:var(--text);font:14px/1.5 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;overflow:hidden}h1,h2,h3,h4,p{margin:0}button,textarea,input{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}code{background:#96aadc24;border-radius:4px;padding:1px 5px;font:12px ui-monospace,SFMono-Regular,Menlo,monospace}.muted{color:var(--muted)}.app{height:100%;display:flex}.sidebar{border-right:1px solid var(--border);background:#0d1222;flex-direction:column;flex:none;gap:12px;width:360px;min-height:0;padding:18px 16px 36px;display:flex}.sidebar-header{align-items:center;gap:8px;display:flex}.sidebar-footer{flex-direction:column;gap:8px;margin-top:4px;padding-top:14px;font-size:11.5px;display:flex}.account{align-items:center;gap:8px;font-size:13px;display:flex}.account img{border-radius:50%;width:22px;height:22px}.account span{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--text);flex:1;overflow:hidden}.account .note{color:var(--muted)}.link{color:var(--accent);background:0 0;border:0;padding:0}.link:hover{text-decoration:underline}.gate{z-index:300;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);background:#0a0e1ab8;place-items:center;padding:24px;display:grid;position:fixed;inset:0}.gate-card{text-align:center;flex-direction:column;gap:14px;width:min(380px,100%);padding:28px;display:flex;position:relative}.gate-card .logo{font-size:44px}.gate-card h1{letter-spacing:-.01em;font-size:18px;font-weight:600}.gate-card form{flex-direction:column;gap:10px;display:flex}.gate-or{color:var(--muted);align-items:center;gap:10px;font-size:12px;display:flex}.gate-or:before,.gate-or:after{content:"";border-top:1px solid var(--border);flex:1}.gate-links{justify-content:space-between;font-size:13px;display:flex}.gate-close{position:absolute;top:12px;right:12px}textarea,input{border:1px solid var(--border);resize:none;background:#05081099;border-radius:10px;outline:none;width:100%;padding:10px 12px}textarea:focus,input:focus{border-color:var(--accent)}.thread{flex-direction:column;flex:1;gap:12px;min-height:0;margin:0 -8px;padding:4px 8px;display:flex;overflow-y:auto}.thread-empty{flex-direction:column;gap:10px;margin:auto 0;padding:0 6px;display:flex}.message{overflow-wrap:anywhere}.message.user{white-space:pre-wrap;background:#6ea8ff2e;border-radius:14px 14px 4px;align-self:flex-end;max-width:88%;padding:8px 12px}.message.agent{flex-direction:column;gap:8px;display:flex}.message.agent p{white-space:pre-wrap}.message.working{flex-direction:row;align-items:center;gap:8px}.tool{border:1px solid var(--border);color:#c6cfe4;background:#96aadc0f;border-radius:10px;gap:8px;padding:7px 10px;font-size:13px;display:flex}.tool-mark{text-align:center;color:#5ee0a0;flex:none;width:16px}.tool.failed .tool-mark{color:var(--danger)}.tool-mark .building-mark{margin-top:2px}.tool ul{color:var(--muted);margin:4px 0 0;padding-left:16px}.composer{flex-direction:column;gap:8px;display:flex}.session-list{flex:1;min-height:0;margin:0;padding:0;list-style:none;overflow-y:auto}.session-list li{border-radius:10px;align-items:center;gap:6px;padding-right:6px;display:flex}.session-list li:hover,.session-list li.current{background:#96aadc1a}.session-open{text-align:left;background:0 0;border:0;flex-direction:column;flex:1;min-width:0;padding:8px 10px;font-size:12px;display:flex}.session-title{text-overflow:ellipsis;white-space:nowrap;font-size:14px;overflow:hidden}.session-list li.current .session-title{color:var(--accent)}.session-list-empty{flex:1}.button{border:1px solid var(--border);background:#96aadc1a;border-radius:10px;padding:8px 14px;font-weight:600}.button:hover:not(:disabled){background:#96aadc2e}.button.small{border-radius:8px;padding:4px 10px;font-size:13px}.button.active{border-color:var(--accent);color:var(--accent)}.button.primary{background:var(--accent-strong);color:#fff;border-color:#0000}.button.primary:hover:not(:disabled){background:var(--accent)}.icon-button{border:1px solid var(--border);background:#96aadc1a;border-radius:50%;flex:none;width:36px;height:36px;font-size:20px;line-height:1}.icon-button:hover:not(:disabled){background:#96aadc33}.icon-button.small{width:26px;height:26px;font-size:16px}.chips{flex-wrap:wrap;gap:8px;display:flex}.chip{border:1px solid var(--border);background:0 0;border-radius:999px;padding:5px 12px}.chip:hover{background:#96aadc1f}.chip.active{border-color:var(--accent);color:var(--accent)}.notice{border:1px solid var(--border);color:var(--muted);overflow-wrap:anywhere;background:#96aadc12;border-radius:10px;padding:10px 12px;font-size:13px}.notice.error{color:var(--danger);background:#ff808014;border-color:#ff808066}.notice ul{margin:6px 0 0;padding-left:18px}.stage{background:radial-gradient(ellipse at 50% 38%, #1a2440 0%, #0d1324 55%, var(--bg) 100%);flex:1;min-width:0;position:relative}.panel{border:1px solid var(--border);background:var(--panel);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-radius:14px;box-shadow:0 12px 40px #00000059}.stage-top{z-index:100;flex-direction:column;align-items:flex-end;gap:12px;max-height:calc(100% - 220px);display:flex;position:absolute;top:16px;right:16px}.spec-toggle{background:var(--panel);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.node-card{width:300px;min-height:0;padding:14px 16px;overflow-y:auto}.node-card header,.spec-editor header{align-items:center;gap:10px;display:flex}.node-card h3,.spec-editor h3{flex:1;font-size:15px}.node-card p{color:#c6cfe4;margin-top:8px}.swatch{border-radius:50%;flex:none;width:12px;height:12px}.node-card ul{border-top:1px solid var(--border);margin:10px 0 0;padding:8px 0 0;list-style:none}.node-card li button{text-align:left;background:0 0;border:0;border-radius:6px;width:100%;padding:3px 6px}.node-card li button:hover{background:#96aadc1f}.direction{width:20px;color:var(--muted);display:inline-block}.spec-editor{border-left:1px solid var(--border);background:#0d1222;flex-direction:column;flex:none;gap:10px;width:440px;padding:18px 16px 16px;display:flex}.spec-editor textarea{resize:none;white-space:pre;tab-size:2;flex:1;min-height:0;font:12px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace}.spec-editor .notice{max-height:140px;overflow-y:auto}.spec-editor footer{gap:8px;display:flex}.stepbar{z-index:100;align-items:center;gap:14px;width:min(640px,100% - 32px);padding:14px 16px;display:flex;position:absolute;bottom:20px;left:50%;transform:translate(-50%)}.stepbar-body{text-align:center;flex:1;min-width:0}.eyebrow{letter-spacing:.08em;text-transform:uppercase;color:var(--accent);font-size:11px;font-weight:600}.stepbar h2{letter-spacing:-.01em;font-size:17px}.stepbar p{color:#c6cfe4;margin-top:4px}.stepbar-controls{justify-content:space-between;align-items:center;margin-top:8px;display:flex}.stepbar-buttons{gap:6px;width:58px;display:flex}.stepbar-buttons .icon-button{place-items:center;display:grid}.icon-button.on{border-color:var(--accent);color:var(--accent)}.stepbar .narration-error{color:var(--danger);overflow-wrap:anywhere;margin-top:6px;font-size:12px}.step-dots{justify-content:center;gap:4px;display:flex}.step-dots button{background:0 0;border:0;width:18px;height:14px;padding:0}.step-dots button:before{content:"";background:#96aadc4d;border-radius:50%;width:8px;height:8px;margin:auto;transition:background .2s,transform .2s;display:block}.step-dots button.current:before{background:var(--accent);transform:scale(1.3)}.welcome{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:10px;padding:24px;display:flex;position:absolute;inset:0}.welcome>:not(.logo){animation:.7s cubic-bezier(.2,.7,.2,1) both rise}.welcome>:nth-child(2){animation-delay:.55s}.welcome>:nth-child(3){animation-delay:.7s}.welcome>:nth-child(4){animation-delay:.85s}.welcome .hero{letter-spacing:-.02em;max-width:640px;margin-top:6px;font-size:clamp(24px,3vw,38px);font-weight:600;line-height:1.15}.welcome p{max-width:460px;font-size:15px}.welcome .chips{justify-content:center;margin-top:8px}.welcome .chip{padding:7px 16px;font-size:14px}@keyframes rise{0%{opacity:0;transform:translateY(10px)}}.logo{letter-spacing:.01em;visibility:hidden;flex-direction:column;align-self:center;font:700 1em/1 Caveat,Segoe Script,Bradley Hand,cursive;display:inline-flex;transform:rotate(-2deg)}.welcome .logo{font-size:clamp(44px,6.5vw,72px)}.logo.ready{visibility:visible}.logo-word{padding:.15em .12em .2em}.logo.ready .logo-word{animation:.8s cubic-bezier(.4,0,.6,1) both write}.logo-tld{color:var(--accent)}.logo-stroke{width:100%;height:auto;margin-top:-.22em;display:block;overflow:visible}.logo-stroke path{fill:none;stroke:var(--accent);stroke-width:2.2px;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1px;opacity:0}.logo.ready .logo-stroke path{animation:.5s ease-out .55s both draw}@keyframes write{0%{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0)}}@keyframes draw{0%{stroke-dashoffset:1px;opacity:0}5%{opacity:1}to{stroke-dashoffset:0;opacity:1}}@property --t{syntax:"<number>";inherits:true;initial-value:0}.building{z-index:100;--line:2.5px;border-radius:50%;width:60px;height:60px;padding:6px;animation:6.4s linear infinite build;position:absolute;top:16px;left:50%;transform:translate(-50%)}.building.large{--line:.5px;width:min(340px,64%);height:auto;padding:0;top:46%;transform:translate(-50%,-50%)}.building svg{opacity:clamp(0, (.98 - var(--t)) / .06, 1);animation:5s ease-in-out infinite float;display:block;overflow:visible}.building.large svg{filter:drop-shadow(0 0 14px #6ea8ff40)}.building .piece{--p:clamp(0, (var(--t) - var(--at)) / var(--for), 1);--e:calc(var(--p) * var(--p) * (3 - 2 * var(--p)))}.building .face{stroke:none;opacity:var(--e)}.building .draw{fill:none;stroke-width:var(--line);stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;stroke-dashoffset:calc((1 - var(--e)) * 1px);opacity:clamp(0, var(--p) * 20, 1)}.building .cube{fill:#6ea8ff;stroke:#8dbbff}.building .sphere{stroke:#ffc57a}.building .gem{fill:#5ee0a0;stroke:#7dedb6}.building .floor{stroke:#96aadc66;stroke-width:calc(var(--line) * .7)}.building .faint{stroke-opacity:.5}.building .links{stroke:#c6cfe4;stroke-opacity:.8;stroke-width:calc(var(--line) * .8)}.building .spark{fill:#fff;animation:1.6s ease-in-out infinite flow}.building .spark.late{animation-delay:-.8s}@keyframes build{to{--t:1}}@keyframes float{50%{transform:translateY(-2.5%)}}@keyframes flow{0%{opacity:0}15%,85%{opacity:1}to{opacity:0;transform:translate(var(--dx), var(--dy))}}.building-mark{flex:none;width:16px;height:16px;display:block;overflow:visible}.building-mark path{fill:none;stroke:var(--accent);stroke-width:1.3px;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1;animation:2.6s ease-in-out infinite trace}@keyframes trace{0%{stroke-dashoffset:1px;opacity:0}6%{opacity:1}45%,62%{stroke-dashoffset:0}94%{opacity:1}to{stroke-dashoffset:-1px;opacity:0}}@media (prefers-reduced-motion:reduce){.building{--t:.8;animation:none}.building svg,.building .spark,.building-mark path,.welcome>*,.logo-word,.logo-stroke path{animation:none}.logo-stroke path{stroke-dashoffset:0;opacity:1}}.spinner{border:2px solid #96aadc4d;border-top-color:var(--accent);border-radius:50%;width:14px;height:14px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.viewer{position:absolute;inset:0}.labels{z-index:1;isolation:isolate;pointer-events:none;transition:opacity .2s;position:absolute;inset:0;overflow:hidden}.labels.off{opacity:0}.label{visibility:hidden;opacity:0;transition:opacity .2s;position:absolute;top:0;left:0}.node-label,.link-label{white-space:nowrap;-webkit-user-select:none;user-select:none;background:#080c189e;border-radius:999px;padding:1px 8px;font-size:12px;font-weight:600;position:absolute}.link-label{color:#c6cfe4;font-style:italic;font-weight:400}.node-label.above{transform:translate(-50%,calc(-100% - 6px))}.centered{transform:translate(-50%,-50%)}.node-label.active{background:var(--accent-strong)}.library{z-index:150;background:var(--bg);flex-direction:column;gap:12px;padding:16px 20px;display:flex;position:absolute;inset:0}.library-header{align-items:center;gap:12px;display:flex}.library-header h2{letter-spacing:-.01em;flex:1;font-size:19px}.library-body{flex:1;gap:16px;min-height:0;display:flex}.library-grid{flex:1;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));align-content:start;gap:10px;min-width:0;padding-right:4px;display:grid;overflow-y:auto}.model-card{text-align:center;background:#96aadc0f;border:1px solid #0000;border-radius:12px;flex-direction:column;gap:4px;padding:6px;font-size:12.5px;display:flex;position:relative}.model-card:hover{background:#96aadc1f}.model-card.selected{border-color:var(--accent)}.model-thumb{aspect-ratio:1;background:radial-gradient(circle at 50% 45%,#6ea8ff24,#0000 70%);border-radius:8px;display:block}.model-thumb img{width:100%;height:100%;display:block}.model-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.model-any{color:var(--accent);background:#6ea8ff2e;border-radius:999px;padding:0 6px;font-size:11px;font-weight:600;line-height:18px;position:absolute;top:8px;left:8px}.model-flag{width:18px;height:18px;color:var(--danger);background:#ff808033;border-radius:50%;font-size:12px;font-weight:600;line-height:18px;position:absolute;top:8px;right:8px}.model-detail{flex-direction:column;flex:none;align-self:flex-start;gap:8px;width:320px;max-height:100%;padding:14px 16px;display:flex;overflow-y:auto}.model-detail h3{font-size:16px}.model-view{aspect-ratio:1;background:#05081080;border-radius:10px;flex:none;overflow:hidden}.model-facts{grid-template-columns:auto 1fr;gap:4px 12px;margin:4px 0 0;font-size:12.5px;display:grid}.model-facts dt{color:var(--muted)}.model-facts dd{overflow-wrap:anywhere;margin:0}@media (width<=760px){.app,.library-body{flex-direction:column}.model-detail{width:auto}.sidebar{border-right:0;border-top:1px solid var(--border);order:1;width:auto;height:46%}.stage{min-height:0}.spec-editor{z-index:200;border-left:0;width:auto;position:fixed;inset:0}}
