:root{--bg: #0e1014;--bg-elev: #161a22;--bg-elev-2: #1d222c;--border: #262c38;--text: #e7ebf2;--muted: #8a93a4;--accent: #6aa9ff;--accent-strong: #4f8cff;--good: #4ade80;--warn: #fbbf24;--bad: #f87171;--radius: 10px;--preview-height: clamp(220px, 32vh, 340px)}*{box-sizing:border-box}html,body{margin:0;padding:0;height:100%;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Inter,Roboto,Helvetica,Arial,sans-serif;font-size:14px;line-height:1.5}body{display:flex;flex-direction:column;height:100vh;min-height:100vh;overflow:hidden}.muted{color:var(--muted);font-weight:400}.dot{width:10px;height:10px;border-radius:50%;background:var(--muted);box-shadow:0 0 0 4px #8a93a426;transition:background .15s ease,box-shadow .15s ease}.dot[data-state=connecting]{background:var(--warn);box-shadow:0 0 0 4px #fbbf242e;animation:pulse 1.2s ease-in-out infinite}.dot[data-state=connected]{background:var(--good);box-shadow:0 0 0 4px #4ade802e}.dot[data-state=speaking]{background:var(--accent);box-shadow:0 0 0 4px #6aa9ff38;animation:pulse .8s ease-in-out infinite}.dot[data-state=error]{background:var(--bad);box-shadow:0 0 0 4px #f871712e}@keyframes pulse{0%,to{transform:scale(1)}50%{transform:scale(1.25)}}button{cursor:pointer;font-family:inherit;font-size:13px;border-radius:8px;padding:9px 16px;border:1px solid transparent;transition:background .15s ease,border-color .15s ease,transform .05s ease}button:active{transform:translateY(1px)}button.primary{background:var(--good);color:#052e16;border-color:var(--good);font-weight:700}button.primary:hover:not(:disabled){background:#86efac;border-color:#86efac}button.primary[data-state=active]{background:var(--bad);color:#fff;border-color:var(--bad)}button.primary[data-state=active]:hover:not(:disabled){background:#ef5d5d;border-color:#ef5d5d}button.ghost{background:var(--bg-elev-2);color:var(--text);border-color:var(--border)}button.ghost:hover:not(:disabled){border-color:var(--accent)}button:disabled{opacity:.5;cursor:not-allowed}main{flex:1;display:grid;grid-template-columns:minmax(320px,1fr) minmax(640px,2fr);gap:14px;padding:14px;min-height:0;overflow:hidden}.stage{min-height:0;overflow:hidden}.video-column{height:100%;min-height:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) minmax(0,auto) auto;grid-template-areas:"scroll" "workflow" "bottom";gap:10px;overflow:hidden}.left-panel-scroll{grid-area:scroll;min-height:0;display:flex;flex-direction:column;gap:10px;overflow-y:auto;overflow-x:hidden;padding-right:4px;scrollbar-width:thin;scrollbar-color:var(--border) transparent}.left-panel-scroll>*{flex:0 0 auto;position:relative;min-height:0}.left-panel-scroll::-webkit-scrollbar{width:8px}.left-panel-scroll::-webkit-scrollbar-track{background:transparent}.left-panel-scroll::-webkit-scrollbar-thumb{background:var(--border);border-radius:4px}.left-panel-scroll::-webkit-scrollbar-thumb:hover{background:var(--muted)}.left-panel-bottom{grid-area:bottom;display:flex;flex-direction:column;gap:8px;flex:none}.video-sources{display:flex;flex-direction:column;gap:10px;min-height:0}.video-source-card{position:relative;flex:0 0 var(--preview-height);height:var(--preview-height);max-height:var(--preview-height);min-height:220px;border-radius:var(--radius);border:1px solid var(--border);background:#05070a;overflow:hidden;display:flex;flex-direction:column;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease}.video-source-card[data-transmitting=true]{border-color:#4ade80d9;box-shadow:0 0 0 3px #4ade801f,0 0 24px #4ade802e}.video-source-card[data-use-flash=true]{animation:video-source-used 1s ease-out}@keyframes video-source-used{0%{border-color:#4ade80;box-shadow:0 0 0 5px #4ade8042,0 0 30px #4ade8061}to{border-color:var(--border);box-shadow:none}}.video-camera-switch{max-width:150px;background:var(--bg-elev-2);color:var(--text);border:1px solid var(--border);border-radius:7px;padding:5px 7px;font-size:11px;font-family:inherit;outline:none}.video-camera-switch:focus{border-color:var(--accent);box-shadow:0 0 0 3px #6aa9ff26}.video-source-header{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px;background:#0e1014e6;border-bottom:1px solid rgba(38,44,56,.9)}.video-source-title{display:flex;flex-direction:column;gap:1px;min-width:0}.video-source-title strong{color:var(--text);font-size:12px;font-weight:700}.video-source-title span{color:var(--muted);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.video-source-actions{display:flex;align-items:center;gap:7px;flex:0 0 auto}.video-main-control{display:inline-flex;align-items:center;gap:5px;color:var(--muted);font-size:11px;user-select:none}.video-main-control input{width:14px;height:14px;margin:0;accent-color:var(--good)}.video-source-reset{padding:5px 8px;font-size:11px}.video-source-body{position:relative;flex:1;min-height:0;display:flex;align-items:center;justify-content:center}.video-source-preview{width:100%;height:100%;object-fit:contain;background:#000}.video-source-options{width:100%;display:flex;align-items:center;justify-content:center;gap:9px;flex-wrap:wrap;padding:18px;text-align:center}.video-source-options button{min-width:120px}.video-source-empty{color:var(--muted);font-size:13px;line-height:1.4;max-width:240px}.video-source-select-panel{width:100%;padding:18px;display:flex;flex-direction:column;gap:10px}.video-source-select-panel label{display:flex;flex-direction:column;gap:6px;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.5px}.video-source-select-panel select{width:100%;background:var(--bg-elev-2);color:var(--text);border:1px solid var(--border);border-radius:8px;padding:8px 10px;font-size:13px;font-family:inherit;outline:none}.video-source-select-panel select:focus{border-color:var(--accent);box-shadow:0 0 0 3px #6aa9ff26}.video-source-hint{margin:0;color:var(--muted);font-size:12px;line-height:1.4}.video-source-error{margin:0;color:var(--bad);font-size:12px;line-height:1.35}.video-source-meta{position:absolute;left:8px;bottom:8px;z-index:2;max-width:calc(100% - 16px);padding:4px 7px;border-radius:999px;background:#000000ad;color:#d1fae5;border:1px solid rgba(74,222,128,.35);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.video-source-toolbar{display:flex;align-items:center;padding:0 4px}.add-video-source{width:100%}.left-panel-controls{display:flex;flex-direction:column;gap:10px;padding:0 4px}.left-start-button{width:100%;min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:9px}.left-start-button .dot{flex:0 0 auto}.workflow-focus{min-height:0;display:grid;grid-template-rows:minmax(0,2fr) minmax(0,1fr);gap:9px;align-items:stretch}.step-display-zone{min-height:0;display:flex;flex-direction:column;gap:8px;overflow:hidden}.interrupt-zone{min-height:0;display:flex;overflow:hidden}.workflow-picker{display:flex;flex-direction:column;gap:6px;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.5px}.workflow-picker select{width:100%;min-width:0;background:var(--bg-elev-2);color:var(--text);border:1px solid var(--border);border-radius:10px;padding:10px 12px;font-size:13px;font-family:inherit;outline:none}.workflow-picker select:focus{border-color:var(--accent);box-shadow:0 0 0 3px #6aa9ff26}.current-step-card{position:relative;width:100%;flex:1 1 auto;min-height:0;padding:12px;border-radius:14px;border:1px solid var(--border);background:radial-gradient(circle at top,rgba(106,169,255,.08),transparent 45%),var(--bg-elev-2);overflow:hidden;box-shadow:0 14px 30px #0000002e}.current-step-card:before{content:"";position:absolute;inset:-2px;z-index:0;pointer-events:none;opacity:0;background:linear-gradient(100deg,transparent 0%,rgba(74,222,128,.05) 30%,rgba(74,222,128,.55) 48%,rgba(74,222,128,.05) 66%,transparent 100%);transform:translate(-120%)}.step-motion{position:relative;z-index:1;height:100%;min-height:0;display:grid;grid-template-rows:minmax(0,1fr) clamp(72px,20%,128px);gap:9px}.current-step-main{min-height:0;min-width:0;height:100%;display:grid;grid-template-columns:minmax(130px,clamp(150px,34%,320px)) minmax(0,1fr);gap:clamp(12px,1.5vw,24px);align-items:stretch;overflow:hidden}.current-step-card[data-has-image=false] .current-step-main{grid-template-columns:minmax(0,1fr)}.current-step-image-shell{position:relative;width:100%;height:100%;min-height:0;max-height:100%;border-radius:14px;border:1px solid rgba(106,169,255,.3);background:#060b1494;overflow:hidden;display:flex;align-items:center;justify-content:center}.current-step-image-shell[hidden]{display:none}.current-step-image-shell[data-state=loading]:before{content:"Loading image";position:absolute;left:8px;right:8px;bottom:8px;color:var(--muted);font-size:11px;text-align:center;pointer-events:none}#current-step-image{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;display:block}.current-step-text{min-width:0;min-height:0;max-height:100%;display:flex;flex-direction:column;justify-content:center;gap:clamp(8px,1vw,16px);overflow:hidden}.current-step-meta{flex:0 0 auto;display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:clamp(10px,.78vw,12px);text-transform:uppercase;letter-spacing:.08em;overflow:hidden}.current-step-meta span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#current-step-title{flex:0 0 auto;display:block;color:var(--text);font-size:var(--current-title-fit-size, clamp(34px, 4.2vw, 72px));line-height:1.02;font-weight:850;letter-spacing:-.04em;overflow-wrap:anywhere;overflow:hidden}#current-step-instruction{flex:0 1 auto;min-height:0;margin:0;color:#dbeafe;font-size:var(--current-instruction-fit-size, clamp(26px, 3vw, 56px));line-height:1.08;font-weight:780;letter-spacing:-.025em;overflow-wrap:anywhere;overflow:hidden}.next-step-preview{min-height:0;display:grid;grid-template-columns:minmax(78px,.28fr) minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);align-items:center;gap:3px 10px;padding:8px 10px;border-radius:11px;border:1px solid rgba(106,169,255,.22);background:#060b146b;overflow:hidden}.next-step-label{grid-row:1 / 3;align-self:stretch;display:flex;align-items:center;justify-content:center;padding:5px 7px;border-radius:8px;background:#6aa9ff21;color:#bfdbfe;font-size:clamp(9px,.7vw,11px);font-weight:850;line-height:1.05;text-align:center;text-transform:uppercase;letter-spacing:.08em}.next-step-preview strong{min-width:0;color:#e0f2fe;font-size:clamp(13px,1vw,18px);font-weight:850;line-height:1.05;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.next-step-preview p{margin:0;min-width:0;color:#a9c7ee;font-size:clamp(12px,.9vw,16px);line-height:1.12;font-weight:700;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.next-step-preview[data-empty=true]{border-color:#4ade8047}.next-step-preview[data-empty=true] .next-step-label{background:#4ade8024;color:#bbf7d0}.current-step-card[data-motion^=complete]{border-color:#4ade80f2;animation:step-complete-pop .42s ease-out;box-shadow:0 0 0 5px #4ade8029,0 0 34px #4ade804d}.current-step-card[data-motion^=complete]:before{animation:step-complete-sweep .42s ease-out}.current-step-card[data-motion=move-next] .step-motion{animation:step-move-next .72s cubic-bezier(.2,.9,.2,1)}.current-step-card[data-motion=move-prev] .step-motion{animation:step-move-prev .72s cubic-bezier(.2,.9,.2,1)}.current-step-card[data-motion^=move]{border-color:#6aa9ffe6;box-shadow:0 0 0 5px #6aa9ff29,0 0 34px #6aa9ff47}.current-step-card[data-motion^=move] .next-step-preview{animation:next-step-pulse .72s ease-out}@keyframes step-complete-pop{0%{transform:scale(1)}32%{transform:scale(1.025)}to{transform:scale(1)}}@keyframes step-complete-sweep{0%{opacity:0;transform:translate(-120%)}35%{opacity:1}to{opacity:0;transform:translate(120%)}}@keyframes step-move-next{0%{opacity:.35;transform:translateY(26px) scale(.965)}48%{opacity:1;transform:translateY(-7px) scale(1.025)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes step-move-prev{0%{opacity:.35;transform:translateY(-26px) scale(.965)}48%{opacity:1;transform:translateY(7px) scale(1.025)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes next-step-pulse{0%{background:#6aa9ff14}42%{background:#6aa9ff42}to{background:#060b146b}}.workflow-indicators{flex:0 0 auto;display:grid;grid-template-columns:1fr 1fr;gap:8px}.step-indicator{min-width:0;text-align:center;padding:10px 12px;border-radius:10px;border:1px solid var(--border);background:var(--bg-elev-2);color:var(--muted);font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;user-select:none;display:inline-flex;align-items:center;justify-content:center;gap:7px;transition:background .08s ease,border-color .08s ease,color .08s ease,box-shadow .08s ease}.step-indicator:not(:disabled){cursor:pointer;color:var(--text)}.step-indicator:not(:disabled):hover{border-color:var(--accent)}.step-indicator[data-state=active]{background:#4ade8038;border-color:#4ade80bf;color:var(--good);box-shadow:0 0 0 4px #4ade801f}.step-indicator[data-state=standby],.step-indicator:not([data-state]){background:var(--bg-elev-2);border-color:var(--border);color:var(--muted);box-shadow:none}.interrupt-notice{display:flex;align-items:center;gap:10px;width:100%;height:100%;min-height:0;padding:10px 12px;border-radius:13px;border:2px solid rgba(248,113,113,.9);background:#f8717129;color:#fecaca;font-size:clamp(16px,1.45vw,26px);font-weight:850;line-height:1.08;box-shadow:0 0 0 4px #f8717114;overflow:hidden}#interrupt-notice-text{display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.interrupt-notice[hidden]{display:flex;visibility:hidden;pointer-events:none}.interrupt-notice[data-state=active]{visibility:visible;animation:interrupt-outline-blink 1.25s ease-in-out infinite}.interrupt-symbol{flex:0 0 auto;width:clamp(28px,3vw,44px);height:clamp(28px,3vw,44px);border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:var(--bad);color:#fff;font-weight:900;font-size:clamp(18px,2vw,30px);line-height:1}.workflow-status,.bottom-media-controls{flex:0 0 auto}.workflow-focus{grid-area:workflow;min-height:0}@keyframes interrupt-outline-blink{0%,to{border-color:#f871718c;box-shadow:0 0 0 3px #f871710f}50%{border-color:#f87171;box-shadow:0 0 0 7px #f8717129,0 0 26px #f8717152}}.workflow-status{display:flex;align-items:center;justify-content:center;padding-top:4px}.status-line{color:var(--muted);font-size:13px;text-align:center}.bottom-media-controls{display:grid;grid-template-columns:1fr 1fr auto;gap:8px;align-items:center}.bottom-media-controls button{min-height:44px}.language-switcher{display:inline-flex;align-items:center;gap:6px;font-size:.78rem;padding:6px 8px;border:1px solid var(--panel-border, rgba(255, 255, 255, .18));border-radius:6px;background:var(--panel-bg, rgba(255, 255, 255, .04));min-height:44px;box-sizing:border-box}.language-switcher-label{opacity:.7;text-transform:uppercase;letter-spacing:.04em}.language-switcher select{background:transparent;color:inherit;border:none;font:inherit;padding:2px 4px;outline:none;cursor:pointer}.media-btn[data-active=true]{background:#4ade802e;border-color:#4ade80b3;color:var(--good);box-shadow:0 0 0 3px #4ade801a}.media-btn[data-active=true]:hover:not(:disabled){border-color:#4ade80f2}.icon{display:inline-block;width:14px;height:14px;vertical-align:-2px;background:currentColor;-webkit-mask-position:center;mask-position:center;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-size:contain;mask-size:contain;margin-right:6px}.icon[data-icon=mic]{-webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M12 14a3 3 0 0 0 3-3V6a3 3 0 1 0-6 0v5a3 3 0 0 0 3 3zm5-3a5 5 0 1 1-10 0H5a7 7 0 0 0 6 6.92V21h2v-3.08A7 7 0 0 0 19 11h-2z'/></svg>");mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M12 14a3 3 0 0 0 3-3V6a3 3 0 1 0-6 0v5a3 3 0 0 0 3 3zm5-3a5 5 0 1 1-10 0H5a7 7 0 0 0 6 6.92V21h2v-3.08A7 7 0 0 0 19 11h-2z'/></svg>")}.icon[data-icon=mic-off]{-webkit-mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M19 11h-1.7c0 .74-.16 1.43-.43 2.05l1.23 1.23c.56-.98.9-2.09.9-3.28zM4.27 3 3 4.27l6.01 6.01V11a3 3 0 0 0 3 3l1.74 1.74c-.51.24-1.07.36-1.74.36-2.76 0-5-2.24-5-5H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.18c.91-.13 1.77-.45 2.55-.92l4.18 4.18 1.27-1.27L4.27 3z'/></svg>");mask-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'><path d='M19 11h-1.7c0 .74-.16 1.43-.43 2.05l1.23 1.23c.56-.98.9-2.09.9-3.28zM4.27 3 3 4.27l6.01 6.01V11a3 3 0 0 0 3 3l1.74 1.74c-.51.24-1.07.36-1.74.36-2.76 0-5-2.24-5-5H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.18c.91-.13 1.77-.45 2.55-.92l4.18 4.18 1.27-1.27L4.27 3z'/></svg>")}@media (max-width: 1260px){main{grid-template-columns:1fr}.debug-panel{min-height:520px}}@media (max-width: 860px){main{padding:10px}.bottom-media-controls,.workflow-indicators{grid-template-columns:1fr}}.chat{display:flex;flex-direction:column;background:var(--bg-elev);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;min-height:0}.chat-log{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:8px;scroll-behavior:smooth}.msg{padding:8px 12px;border-radius:12px;max-width:90%;word-wrap:break-word;white-space:pre-wrap;font-size:13px;line-height:1.45}.msg.user{background:var(--accent-strong);color:#fff;align-self:flex-end;border-bottom-right-radius:4px}.msg.model{background:var(--bg-elev-2);color:var(--text);border:1px solid var(--border);align-self:flex-start;border-bottom-left-radius:4px}.msg.system{align-self:center;background:transparent;color:var(--muted);font-size:12px;font-style:italic;padding:4px 0}.msg.error{align-self:center;background:#f871711f;color:var(--bad);border:1px solid rgba(248,113,113,.3);font-size:12px}.msg.interrupted{opacity:.85}.msg.interrupted:after{content:" (interrupted)";color:var(--muted);font-style:italic;font-size:.9em}.chat-form{display:flex;gap:8px;padding:10px;border-top:1px solid var(--border);background:var(--bg-elev-2)}.chat-form input{flex:1;background:var(--bg);color:var(--text);border:1px solid var(--border);padding:9px 12px;border-radius:8px;font-size:13px;font-family:inherit;outline:none}.chat-form input:focus{border-color:var(--accent);box-shadow:0 0 0 3px #6aa9ff26}.chat-form button{background:var(--bg);color:var(--text);border:1px solid var(--border)}.chat-form button:hover:not(:disabled){border-color:var(--accent);color:var(--accent)}.chat-form.locked{opacity:.82}.chat-form.locked input{cursor:not-allowed}.msg.prompt{align-self:stretch;max-width:100%;background:#0a0c10;color:#cbd5e1;border:1px solid var(--border);border-radius:10px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:10.5px;line-height:1.35;white-space:pre-wrap}.msg.auto{background:#6aa9ff29;color:#bfdbfe;border:1px solid rgba(106,169,255,.3);align-self:flex-end;border-bottom-right-radius:4px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:11px}.debug-panel{display:flex;flex-direction:column;background:var(--bg-elev);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;min-height:0}.debug-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:12px;border-bottom:1px solid var(--border);background:var(--bg-elev-2)}.debug-header h2{margin:0;font-size:14px;font-weight:600}.debug-header p{margin:2px 0 0;color:var(--muted);font-size:12px}.debug-header button{padding:6px 10px;font-size:12px}.debug-header-actions{display:flex;align-items:center;gap:8px}.debug-state-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;padding:10px 12px;border-bottom:1px solid var(--border)}.debug-state-grid div{background:var(--bg);border:1px solid var(--border);border-radius:8px;padding:8px;min-width:0}.debug-state-grid span{display:block;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.5px;margin-bottom:2px}.debug-state-grid strong{display:block;color:var(--text);font-size:12px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.debug-settings{display:flex;align-items:end;gap:12px;flex-wrap:wrap;padding:10px 12px;border-bottom:1px solid var(--border)}.debug-settings label{display:flex;flex-direction:column;gap:5px;color:var(--muted);font-size:11px;text-transform:uppercase;letter-spacing:.5px}.debug-settings select{background:var(--bg);color:var(--text);border:1px solid var(--border);border-radius:7px;padding:7px 9px;font-size:12px;font-family:inherit;outline:none}.debug-settings select:focus{border-color:var(--accent);box-shadow:0 0 0 3px #6aa9ff26}.debug-settings .check-control{align-items:center}.debug-settings .check-control input{width:18px;height:18px;padding:0;accent-color:var(--accent-strong)}.debug-options{display:flex;align-items:center;gap:14px;padding:8px 12px;border-bottom:1px solid var(--border);color:var(--muted);font-size:12px}.debug-options label{display:flex;align-items:center;gap:6px}.debug-options input{accent-color:var(--accent-strong)}.debug-options select{background:var(--bg);color:var(--text);border:1px solid var(--border);border-radius:6px;padding:4px 6px;font-size:11px;font-family:inherit}.debug-body{flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.debug-chat{border:0;border-radius:0;border-right:1px solid var(--border)}.debug-log-panel{min-height:0;display:flex;flex-direction:column}.debug-log{flex:1;overflow-y:auto;padding:10px;background:#0a0c10;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace;font-size:10.5px;line-height:1.28}.debug-row{border:1px solid var(--border);background:#ffffff08;border-radius:8px;padding:6px 7px;margin-bottom:6px}.debug-row.warn{border-color:#fbbf2459;background:#fbbf2414}.debug-row.error{border-color:#f8717173;background:#f871711a}.debug-row-title{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:4px;align-items:center}.debug-time{color:var(--muted)}.debug-source{color:var(--accent)}.debug-name{color:var(--text);font-weight:600}.debug-row pre{margin:0;white-space:pre-wrap;word-break:break-word;color:#cbd5e1}.debug-summary{margin:0;color:#cbd5e1;white-space:pre-wrap;word-break:break-word}.debug-row.clean{display:grid;gap:3px}#layout-root.debug-collapsed{grid-template-columns:minmax(0,1fr) 46px}#layout-root.debug-collapsed .debug-panel{min-width:46px}#layout-root.debug-collapsed .debug-header{height:100%;padding:8px 4px;justify-content:center;align-items:center;border-bottom:0}#layout-root.debug-collapsed .debug-header>div:first-child,#layout-root.debug-collapsed #debug-clear,#layout-root.debug-collapsed .debug-state-grid,#layout-root.debug-collapsed .debug-settings,#layout-root.debug-collapsed .debug-options,#layout-root.debug-collapsed .debug-body{display:none}#layout-root.debug-collapsed #debug-toggle{writing-mode:vertical-rl;text-orientation:mixed;padding:10px 6px;min-height:72px}#layout-root.debug-collapsed .stage{overflow:hidden}#layout-root.debug-collapsed .video-column{grid-template-columns:minmax(260px,340px) minmax(420px,1fr);grid-template-rows:minmax(0,1fr) auto;grid-template-areas:"scroll workflow" "bottom workflow";gap:12px 16px}#layout-root.debug-collapsed .workflow-focus{width:min(100%,1100px);height:100%;min-height:0;justify-self:center;align-self:stretch;display:grid;grid-template-rows:minmax(0,2fr) minmax(0,1fr)}#layout-root.debug-collapsed .step-display-zone,#layout-root.debug-collapsed .interrupt-zone{width:100%}#layout-root.debug-collapsed .current-step-card{padding:clamp(16px,2.4vw,34px)}#layout-root.debug-collapsed .step-motion{grid-template-rows:minmax(0,1fr) clamp(86px,18%,150px);gap:clamp(10px,1.4vw,18px)}#layout-root.debug-collapsed .current-step-main{grid-template-columns:minmax(220px,clamp(260px,36%,430px)) minmax(0,1fr);gap:clamp(16px,2vw,34px)}#layout-root.debug-collapsed .current-step-card[data-has-image=false] .current-step-main{grid-template-columns:minmax(0,1fr)}#layout-root.debug-collapsed .current-step-image-shell{border-radius:16px}#layout-root.debug-collapsed .current-step-text{gap:clamp(10px,1.25vw,20px)}#layout-root.debug-collapsed .current-step-meta{font-size:clamp(12px,1.05vw,17px)}#layout-root.debug-collapsed #current-step-title{font-size:var(--current-title-fit-size, clamp(40px, 4.8vw, 86px))}#layout-root.debug-collapsed #current-step-instruction{font-size:var(--current-instruction-fit-size, clamp(30px, 3.5vw, 64px))}#layout-root.debug-collapsed .next-step-preview{grid-template-columns:minmax(108px,.25fr) minmax(0,1fr);padding:clamp(10px,1.15vw,18px);gap:4px clamp(12px,1.4vw,20px)}#layout-root.debug-collapsed .next-step-label{font-size:clamp(11px,.9vw,15px)}#layout-root.debug-collapsed .next-step-preview strong{font-size:clamp(18px,1.55vw,30px)}#layout-root.debug-collapsed .next-step-preview p{font-size:clamp(15px,1.25vw,24px)}#layout-root.debug-collapsed .step-indicator{padding:clamp(12px,1.4vw,20px) 18px;font-size:clamp(14px,1.2vw,20px)}#layout-root.debug-collapsed .interrupt-notice{height:100%;min-height:0;padding:clamp(14px,1.8vw,26px);font-size:clamp(20px,2.35vw,42px)}#layout-root.debug-collapsed .interrupt-symbol{width:clamp(34px,4vw,64px);height:clamp(34px,4vw,64px);font-size:clamp(22px,3vw,44px)}@media (max-width: 1260px){.debug-state-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.debug-body{min-height:460px}#layout-root.debug-collapsed{grid-template-columns:1fr}#layout-root.debug-collapsed .debug-panel{min-height:46px}#layout-root.debug-collapsed .debug-header{height:46px}#layout-root.debug-collapsed #debug-toggle{writing-mode:horizontal-tb;min-height:0}#layout-root.debug-collapsed .stage{grid-template-columns:minmax(240px,320px) minmax(320px,1fr)}}@media (max-width: 860px){.debug-body{grid-template-columns:1fr}.debug-chat{border-right:0;border-bottom:1px solid var(--border);min-height:300px}.debug-log-panel{min-height:300px}.debug-state-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#layout-root.debug-collapsed .video-column{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) minmax(0,auto) auto;grid-template-areas:"scroll" "workflow" "bottom"}.current-step-main{grid-template-columns:minmax(100px,34%) minmax(0,1fr);gap:10px}.current-step-text{gap:7px}#current-step-title{font-size:var(--current-title-fit-size, clamp(20px, 4.5vw, 34px))}#current-step-instruction{font-size:var(--current-instruction-fit-size, clamp(16px, 3.8vw, 28px))}.step-motion{grid-template-rows:minmax(0,1fr) clamp(68px,19%,112px)}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}}button:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:2px;box-shadow:0 0 0 3px #6aa9ff2e}.recorder-card{display:flex;flex-direction:column;gap:8px;padding:10px 12px;border-radius:var(--radius);border:1px solid var(--border);background:var(--bg-elev)}.recorder-card[data-state=workflow-armed]{border-color:#6aa9ff8c;box-shadow:0 0 0 3px #6aa9ff1a}.recorder-card[data-state=workflow-recording],.recorder-card[data-state=free-recording]{border-color:#f87171d9;background:#f8717114;box-shadow:0 0 0 3px #f871711f;animation:recorder-pulse 2.4s ease-in-out infinite}.recorder-card[data-state=finalizing]{border-color:#fbbf2499;background:#fbbf240f}.recorder-card[data-state=error]{border-color:#f87171b3;background:#f871711a}@keyframes recorder-pulse{0%,to{box-shadow:0 0 0 3px #f871711f}50%{box-shadow:0 0 0 5px #f8717138}}.recorder-header{display:flex;align-items:center;justify-content:space-between;gap:8px}.recorder-header strong{font-size:12px;letter-spacing:.02em;color:var(--text)}.recorder-badge{display:inline-flex;align-items:center;padding:2px 8px;border-radius:999px;background:var(--bg-elev-2);border:1px solid var(--border);color:var(--muted);font-size:11px;font-weight:600;letter-spacing:.02em;text-transform:uppercase;white-space:nowrap}.recorder-card[data-state=workflow-armed] .recorder-badge{background:#6aa9ff29;border-color:#6aa9ff73;color:#bfdbfe}.recorder-card[data-state=workflow-recording] .recorder-badge,.recorder-card[data-state=free-recording] .recorder-badge{background:#f871712e;border-color:#f871718c;color:#fecaca}.recorder-card[data-state=finalizing] .recorder-badge{background:#fbbf2429;border-color:#fbbf2480;color:#fde68a}.recorder-card[data-state=error] .recorder-badge{background:#f8717133;border-color:#f8717199;color:var(--bad)}.recorder-disclaimer{margin:0;color:var(--muted);font-size:11px;line-height:1.45}.recorder-controls{display:grid;grid-template-columns:1fr 1fr;gap:6px}.recorder-btn{padding:7px 10px;font-size:12px;min-height:34px}.recorder-btn[data-active=true]{background:#f8717129;border-color:#f8717199;color:#fecaca}.recorder-btn[data-active=true]:hover:not(:disabled){border-color:#f87171e6}.recorder-status{margin:0;color:var(--muted);font-size:11px;line-height:1.4;min-height:14px}.recorder-card[data-state=workflow-recording] .recorder-status,.recorder-card[data-state=free-recording] .recorder-status{color:#fecaca;font-weight:600}.recorder-card[data-state=error] .recorder-status{color:var(--bad);font-weight:600}@media (max-width: 860px){.recorder-controls{grid-template-columns:1fr}}.login-overlay{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;background:#080b12c7;backdrop-filter:blur(6px)}.login-overlay[hidden]{display:none}.login-card{background:#11151f;border-radius:14px;padding:28px 28px 22px;width:min(360px,92vw);border:1px solid rgba(255,255,255,.08);box-shadow:0 20px 60px #0009;color:var(--fg, #e7eaf2)}.login-card h1{margin:0 0 4px;font-size:1.3rem}.login-card p{margin:0 0 18px;opacity:.75;font-size:.95rem}.login-card form{display:flex;flex-direction:column;gap:14px}.login-card label{display:flex;flex-direction:column;gap:6px;font-size:.92rem}.login-card input{background:#ffffff0a;border:1px solid rgba(255,255,255,.12);border-radius:8px;padding:10px 12px;color:inherit;font:inherit}.login-card .primary{margin-top:6px}.login-error{margin:0;color:#ff8c8c;font-size:.9rem;background:#ff505014;border:1px solid rgba(255,80,80,.2);border-radius:6px;padding:8px 10px}.auth-status{display:flex;align-items:center;gap:8px;margin-top:8px;font-size:.85rem;opacity:.85}.auth-status[hidden]{display:none}.auth-status-label{opacity:.6}.auth-status strong{font-weight:600}.auth-status .ghost{padding:4px 10px;font-size:.85rem}
