:root{--bg: #ffffff;--fg: #111827;--muted: #f3f4f6;--muted-2: #e5e7eb;--muted-fg: #6b7280;--primary: #3b82f6;--primary-hover: #2563eb;--secondary: #10b981;--secondary-hover: #059669;--accent: #f59e0b;--danger: #ef4444;--media: #111827;--media-2: #1f2937;--blue-50: #eff6ff;--emerald-50: #ecfdf5;--amber-50: #fffbeb;--red-50: #fef2f2;--radius: 8px;--panel: #ffffff;--panel-2: #f3f4f6;--line: #e5e7eb;--text: #111827;--ok: #10b981;--warn: #f59e0b;--err: #ef4444;--info: #3b82f6;font-family:Ubuntu,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:15px;font-weight:400;color:var(--fg)}*{box-sizing:border-box}body{margin:0;color:var(--fg)}a{color:var(--primary);text-decoration:none;font-weight:600}a:hover{color:var(--primary-hover)}h1,h2,h3{letter-spacing:-.01em;margin:0}h1{font-size:40px;font-weight:300;line-height:1.1}h2{font-size:24px;font-weight:500}h1 em,h2 em,.hero p em{font-style:italic;font-weight:300;color:var(--accent)}em.tag,.tag{font-style:italic;color:var(--accent);font-weight:400}b,strong{font-weight:500}code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:13px;background:var(--muted-2);padding:1px 6px;border-radius:4px}pre{background:var(--media);color:#e5e7eb;border-radius:var(--radius);padding:12px;overflow:auto;font-size:12px;max-height:360px}:root[data-theme=dark]{--bg: #1f2937;--fg: #f9fafb;--muted: #374151;--muted-2: #4b5563;--muted-fg: #9ca3af;--primary-hover: #60a5fa;--media: #030712;--media-2: #1f2937;--page: #111827;--blue-50: #1e3a5f;--emerald-50: #0f3d2e;--amber-50: #3b2f0f;--red-50: #3f1d1d;--panel: #1f2937;--panel-2: #374151;--line: #4b5563;--text: #f9fafb;color-scheme:dark}:root{--page: #f3f4f6;color-scheme:light}body{background:var(--page)}:root[data-theme=dark] .badge.running,:root[data-theme=dark] .badge.delivering,:root[data-theme=dark] .badge.rendering,:root[data-theme=dark] .badge.info{color:#93c5fd}:root[data-theme=dark] .badge.succeeded,:root[data-theme=dark] .badge.approved,:root[data-theme=dark] .badge.ok{color:#6ee7b7}:root[data-theme=dark] .badge.failed,:root[data-theme=dark] .badge.rejected,:root[data-theme=dark] .badge.err{color:#fca5a5}:root[data-theme=dark] .badge.cancelled,:root[data-theme=dark] .badge.warn,:root[data-theme=dark] .badge.review,:root[data-theme=dark] .badge.pending,:root[data-theme=dark] .badge.planned{color:#fcd34d}:root[data-theme=dark] .stat.amber{color:#fbbf24}:root[data-theme=dark] .tips li{color:#d1d5db}:root[data-theme=dark] .ask button{color:#93c5fd}:root[data-theme=dark] button.danger{color:#fca5a5}:root[data-theme=dark] input:focus,:root[data-theme=dark] select:focus,:root[data-theme=dark] textarea:focus{background:#111827}:root[data-theme=dark] .sidebar{background:var(--media)}:root[data-theme=dark] .tile.gray{background:var(--muted);color:var(--fg)}:root[data-theme=dark] .tile.gray .icon{background:var(--media-2);color:#fff}:root[data-theme=dark] .hero-right select,:root[data-theme=dark] .hero-right input{background:#111827d9;color:#fff}:root[data-theme=dark] code{background:var(--muted)}:root[data-theme=dark] .empty .icon{color:#93c5fd}:root[data-theme=dark] pre{background:var(--media)}:root[data-theme=dark] .msg.assistant{background:var(--muted)}button.theme{flex:1}.theme-float{position:absolute;top:18px;right:18px;background:#ffffff1f;color:#fff;height:38px}.theme-float:hover{background:#ffffff40}button,input,select,textarea{font:inherit;color:inherit}button{background:var(--muted);border:0;border-radius:var(--radius);padding:0 16px;height:44px;font-weight:500;cursor:pointer;transition:all .2s;display:inline-flex;align-items:center;gap:8px;white-space:nowrap}button:hover{background:var(--muted-2);transform:scale(1.04)}button.primary{background:var(--primary);color:#fff}button.primary:hover{background:var(--primary-hover)}button.danger{background:var(--red-50);color:var(--danger)}button.danger:hover{background:var(--danger);color:#fff}button.outline{background:transparent;border:4px solid var(--primary);color:var(--primary);height:48px}button.outline:hover{background:var(--primary);color:#fff}button.big{height:56px;padding:0 24px;font-size:16px}button:disabled{opacity:.45;cursor:not-allowed;transform:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,.chip:focus-visible{outline:2px solid var(--primary);outline-offset:2px}input,select,textarea{background:var(--muted);border:2px solid transparent;border-radius:var(--radius);padding:10px 12px;width:100%;transition:all .2s}input:focus,select:focus,textarea:focus{background:#fff;border-color:var(--primary);outline:none}textarea{min-height:96px;resize:vertical;line-height:1.45}label{display:block;font-size:12px;font-weight:500;text-transform:uppercase;letter-spacing:.08em;color:var(--muted-fg);margin-bottom:6px}input[type=range]{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;padding:0;height:28px;border:0}input[type=range]::-webkit-slider-runnable-track{height:6px;background:var(--muted-2);border-radius:3px}input[type=range]::-moz-range-track{height:6px;background:var(--muted-2);border-radius:3px}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:20px;height:20px;border-radius:6px;background:var(--primary);margin-top:-7px;transition:transform .2s}input[type=range]::-moz-range-thumb{width:20px;height:20px;border:0;border-radius:6px;background:var(--primary)}input[type=range]:hover::-webkit-slider-thumb{transform:scale(1.15);background:var(--primary-hover)}input[type=number]{width:auto;min-width:84px}input[type=file]{padding:8px}.layout{display:grid;grid-template-columns:236px minmax(0,1fr) 360px;min-height:100vh}.layout:has(.rail.collapsed){grid-template-columns:236px minmax(0,1fr) 48px}.sidebar{background:var(--media);color:#fff;padding:22px 16px;position:sticky;top:0;height:100vh;overflow:auto}.brand{font-weight:500;letter-spacing:-.02em;font-size:20px;margin-bottom:18px;display:flex;align-items:center;gap:10px}.brand small{color:#9ca3af;font-weight:500;font-size:12px}.brand .mark{width:36px;height:36px;border-radius:8px;background:var(--primary);display:grid;place-items:center}.nav a{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 10px;border-radius:8px;color:#e5e7eb;font-weight:500;transition:all .2s}.nav a span.l{display:flex;align-items:center;gap:10px}.nav .sdot{width:20px;height:20px;border-radius:50%;display:grid;place-items:center;flex:none}.nav a.active{background:var(--primary);color:#fff;font-weight:600}.nav a:hover:not(.active){background:var(--media-2);color:#fff;transform:translate(2px)}.nav .pill{background:var(--accent);color:var(--fg);border-radius:999px;padding:0 8px;font-size:12px;font-weight:700}.nav .group{font-size:11px;letter-spacing:.1em;color:#9ca3af;padding:14px 10px 4px;font-weight:600}.sidebar .status{font-size:12px;color:#9ca3af;display:flex;align-items:center;gap:8px;margin-top:8px}.sidebar button{background:var(--media-2);color:#fff;height:40px;width:100%;justify-content:center;margin-top:14px}:root[data-theme=dark] .sidebar button{background:#1f2937}.sidebar button:hover{background:#374151}.main{padding:26px 30px 60px;position:relative;min-width:0}.top{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px;flex-wrap:wrap}.top .muted{font-size:14px}.hero{position:relative;overflow:hidden;background:var(--primary);color:#fff;border-radius:var(--radius);padding:28px 30px;margin-bottom:18px}.hero h1{color:#fff;font-size:40px;font-weight:300}.hero h1 em{color:#fde68a}.hero.studio h1 em{color:#ffffffd9;font-weight:300}.hero.studio p{color:#ffffffe6}.hero.studio .icon{width:56px;height:56px;border-radius:50%;background:#fff;display:grid;place-items:center;flex:none}.hero.studio .step{display:block;font-size:12px;letter-spacing:.1em;text-transform:uppercase;font-weight:500;opacity:.85;margin-bottom:4px}.hero-right{display:flex;align-items:center;gap:10px}.hero-right select,.hero-right input{background:#ffffffeb}.hero .on-color{background:#fff;color:var(--fg)}.hero .ghost{background:#fff3;color:#fff}.hero p{margin:8px 0 0;color:#dbeafe;max-width:720px;font-size:16px}.hero .deco{position:absolute;right:-60px;top:-80px;width:280px;height:280px;border-radius:50%;background:#ffffff1f;pointer-events:none}.hero .deco2{position:absolute;right:140px;bottom:-110px;width:200px;height:200px;transform:rotate(18deg);background:#11182726;border-radius:16px;pointer-events:none}.hero.emerald{background:var(--secondary)}.hero.emerald p{color:#d1fae5}.hero.dark{background:var(--media)}.hero.dark p{color:#9ca3af}.muted{color:var(--muted-fg)}.grid{display:grid;gap:16px}.cols-2{grid-template-columns:repeat(2,1fr)}.cols-3{grid-template-columns:repeat(3,1fr)}.cols-4{grid-template-columns:repeat(4,1fr)}.cols-7{grid-template-columns:repeat(7,1fr)}@media (max-width: 1200px){.cols-3,.cols-4{grid-template-columns:repeat(2,1fr)}.cols-7{grid-template-columns:repeat(4,1fr)}}@media (max-width: 1100px){.layout,.layout:has(.rail.collapsed){grid-template-columns:236px minmax(0,1fr)}.rail{grid-column:1 / -1;position:static;height:auto}}@media (max-width: 800px){.layout,.layout:has(.rail.collapsed){grid-template-columns:1fr}.sidebar{position:static;height:auto}.cols-2,.cols-3,.cols-4{grid-template-columns:1fr}.cols-7{grid-template-columns:repeat(2,1fr)}}.panel{background:var(--bg);border-radius:var(--radius);padding:20px 22px;transition:all .2s}.panel.tint-blue{background:var(--blue-50)}.panel.tint-emerald{background:var(--emerald-50)}.panel.tint-amber{background:var(--amber-50)}.panel.tint-gray{background:var(--muted)}.panel h3{font-size:13px;text-transform:uppercase;letter-spacing:.1em;color:var(--muted-fg);margin-bottom:12px;font-weight:500;display:flex;align-items:center;gap:6px}a.panel{color:var(--fg);display:block}a.panel:hover{transform:scale(1.02)}.tile{border-radius:var(--radius);padding:18px 20px;color:#fff;display:flex;flex-direction:column;gap:10px;transition:all .2s;position:relative;overflow:hidden}.tile:hover{transform:scale(1.03)}.tile .icon{width:44px;height:44px;border-radius:50%;background:#ffffffe6;display:grid;place-items:center;transition:transform .2s}.tile:hover .icon{transform:scale(1.1)}.tile b{font-size:17px;font-weight:500;letter-spacing:-.01em}.tile .n{font-size:40px;font-weight:300;letter-spacing:-.02em;line-height:1}.tile small{font-size:12px;opacity:.9}.tile.blue{background:var(--primary)}.tile.blue .icon{color:var(--primary)}.tile.emerald{background:var(--secondary)}.tile.emerald .icon{color:var(--secondary)}.tile.amber{background:var(--accent);color:var(--fg)}.tile.amber .icon{color:var(--accent)}.tile.dark{background:var(--media)}.tile.dark .icon{color:var(--fg)}.tile.gray{background:var(--muted-2);color:var(--fg)}.tile.gray .icon{color:var(--fg);background:#fff}.stat{font-size:40px;font-weight:300;letter-spacing:-.02em;line-height:1}.stat small{font-size:12px;color:var(--muted-fg);font-weight:400;font-style:italic;margin-left:8px;letter-spacing:0}.stat.blue{color:var(--primary)}.stat.emerald{color:var(--secondary)}.stat.amber{color:#b45309}.stat.red{color:var(--danger)}.row{display:flex;gap:10px;align-items:center}.row.wrap{flex-wrap:wrap}.spread{justify-content:space-between}.badge{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:6px;font-size:11px;font-weight:500;text-transform:uppercase;letter-spacing:.06em;background:var(--muted-2);color:var(--fg)}.badge.queued{background:var(--muted-2);color:var(--muted-fg)}.badge.running,.badge.delivering,.badge.rendering,.badge.info{background:var(--blue-50);color:var(--primary-hover)}.badge.succeeded,.badge.approved,.badge.ok{background:var(--emerald-50);color:#047857}.badge.failed,.badge.rejected,.badge.err{background:var(--red-50);color:#b91c1c}.badge.cancelled,.badge.warn,.badge.review,.badge.pending,.badge.planned{background:var(--amber-50);color:#b45309}.chip{display:inline-flex;flex-direction:column;gap:2px;background:var(--muted);border-radius:var(--radius);padding:8px 12px;cursor:pointer;transition:all .2s;font-weight:500;-webkit-user-select:none;user-select:none}.chip:hover{background:var(--muted-2);transform:scale(1.04)}.chip.on{background:var(--primary);color:#fff}.chip.on .muted{color:#dbeafe}.dot{width:10px;height:10px;border-radius:3px;display:inline-block;margin-right:8px;background:var(--muted-2)}.dot.ok{background:var(--secondary)}.dot.err{background:var(--danger)}.dot.warn{background:var(--accent)}.health{display:grid;gap:8px}.health>div{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;border-radius:8px;background:var(--muted)}.progress{height:8px;background:var(--muted-2);border-radius:4px;overflow:hidden}.progress i{display:block;height:100%;background:var(--primary);transition:width .3s}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:10px;vertical-align:top}thead th{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted-fg);border-bottom:2px solid var(--muted-2)}tbody tr{transition:background .2s}tbody tr:hover{background:var(--muted)}tr.clickable{cursor:pointer}.gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}.card{background:var(--media);color:#e5e7eb;border-radius:var(--radius);overflow:hidden;transition:all .2s;border-top:6px solid var(--primary)}.card:hover{transform:scale(1.02)}.card.chosen{border-top-color:var(--secondary)}.card.pending{border-top-color:var(--accent)}.card.rejected{border-top-color:var(--danger)}.card.plain{border-top-color:var(--media-2)}.card video,.card img{width:100%;aspect-ratio:16/9;object-fit:contain;background:#000;display:block}.card .body{padding:10px 12px;font-size:12px;color:#d1d5db}.card .body b{display:block;font-size:13px;color:#fff;margin-bottom:4px}.card .body .muted{color:#9ca3af}.card .body a{color:#93c5fd}.card .body button{height:32px;padding:0 10px;font-size:12px;background:var(--media-2);color:#fff}.card .body button:hover{background:#374151}.card .body button.primary{background:var(--primary)}.card .body button.primary:hover{background:var(--primary-hover)}.card .body .badge{background:var(--media-2);color:#e5e7eb}.card .body .badge.ok{background:var(--secondary);color:#fff}.card .body .badge.warn{background:var(--accent);color:var(--fg)}.card audio,audio{width:100%}video[controls]{background:#000;border-radius:6px}.feed{max-height:420px;overflow:auto;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;background:var(--media);color:#d1d5db;border-radius:var(--radius);padding:8px 12px}.feed>div{padding:5px 0;display:grid;grid-template-columns:70px 100px 1fr;gap:10px}.feed .warn{color:#fbbf24}.feed .error{color:#f87171}.feed a{color:#93c5fd}.feed .muted{color:#6b7280}.form{display:grid;gap:14px}.form .two{display:grid;grid-template-columns:1fr 1fr;gap:14px}.empty{display:grid;place-items:center;text-align:center;gap:10px;padding:30px;color:var(--muted-fg)}.empty .icon{width:56px;height:56px;border-radius:50%;background:var(--blue-50);color:var(--primary);display:grid;place-items:center}.error{color:var(--danger);font-weight:600}.login{min-height:100vh;display:grid;place-items:center;background:var(--media);position:relative;overflow:hidden}.login .deco{position:absolute;width:520px;height:520px;border-radius:50%;background:var(--primary);opacity:.25;left:-160px;top:-160px}.login .deco2{position:absolute;width:360px;height:360px;background:var(--secondary);opacity:.2;right:-100px;bottom:-120px;transform:rotate(20deg);border-radius:24px}.login .panel{width:400px;padding:28px;position:relative}.login h2{font-size:32px;font-weight:300}.milestones{display:flex;gap:4px}.milestones span{width:18px;height:18px;border-radius:4px;background:var(--muted-2)}.milestones span.done{background:var(--secondary)}.milestones span.wip{background:var(--accent)}details summary{cursor:pointer;font-weight:600}@media (prefers-reduced-motion: reduce){*,*:before,*:after{transition:none!important;transform:none!important}}.rail{background:var(--bg);padding:22px 18px;position:sticky;top:0;height:100vh;overflow:auto;display:flex;flex-direction:column}.rail.collapsed{padding:14px 6px;align-items:center;gap:14px}.rail.collapsed button{width:36px;height:36px;padding:0;justify-content:center}.rail.collapsed .v{writing-mode:vertical-rl;font-size:12px;font-style:italic;font-weight:500}.rail-head{display:grid;grid-template-columns:32px 1fr auto;gap:10px;align-items:center;margin-bottom:10px}.rail-head .icon{width:32px;height:32px;border-radius:50%;display:grid;place-items:center}.rail-head b{display:block;font-weight:500;font-size:16px}.rail-head em{display:block;font-size:12px;font-style:italic}.rail-head button{height:32px;width:32px;padding:0;justify-content:center}.tips{list-style:none;margin:0;padding:0;display:grid;gap:8px}.tips li{display:grid;grid-template-columns:8px 1fr;gap:10px;font-size:13px;line-height:1.45;color:#374151;background:var(--muted);border-radius:8px;padding:9px 10px}.tips li i{width:8px;height:8px;border-radius:2px;margin-top:6px}.chat{flex:1;min-height:160px;overflow:auto;display:flex;flex-direction:column;gap:8px;padding:4px 0}.ask{display:flex;flex-direction:column;gap:6px}.ask button{height:auto;padding:8px 10px;font-size:13px;font-weight:400;text-align:left;white-space:normal;justify-content:flex-start;background:var(--blue-50);color:var(--primary-hover)}.ask button:hover{background:var(--primary);color:#fff;transform:none}.msg{font-size:13.5px;line-height:1.5;padding:9px 12px;border-radius:8px;white-space:pre-wrap;word-break:break-word;max-width:100%}.msg.user{background:var(--primary);color:#fff;align-self:flex-end;border-bottom-right-radius:2px}.msg.assistant{background:var(--muted);color:var(--fg);align-self:flex-start;border-bottom-left-radius:2px}.msg pre{margin:6px 0;max-height:none;white-space:pre-wrap;font-size:12px}.compose{display:grid;grid-template-columns:1fr 44px;gap:8px;margin-top:8px}.compose textarea{min-height:44px;font-size:13.5px}.compose button{width:44px;padding:0;justify-content:center}.proposal{border-left:6px solid var(--accent);background:var(--amber-50);border-radius:8px;padding:10px 12px;font-size:13px;display:grid;gap:6px}.proposal.done{border-left-color:var(--secondary);background:var(--emerald-50)}.proposal.error{border-left-color:var(--danger);background:var(--red-50)}.proposal.dismissed{border-left-color:var(--muted-2);background:var(--muted);opacity:.7}.proposal b{display:flex;align-items:center;gap:6px;font-weight:500}.proposal em{font-style:italic;color:var(--muted-fg)}.proposal .kv{display:flex;flex-wrap:wrap;gap:4px 10px;font-size:12px;color:var(--muted-fg)}.proposal textarea{min-height:72px;font-size:12.5px;background:var(--bg)}.proposal button{height:34px;padding:0 12px;font-size:13px}.proposal .result{display:flex;align-items:center;gap:6px;font-size:12.5px}.proposal .result.ok{color:var(--secondary)}.proposal .result.err{color:var(--danger)}
