:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#0d0f13;--surface:#15181f;--surface-2:#1d212a;--surface-3:#2a2f3a;--border:#2c313c;--text:#f3f4f6;--muted:#9aa3b2;--accent:#ef4444;--accent-hover:#dc2626;--primary:#3b82f6;--primary-hover:#2563eb;--ok:#22c55e;--warn:#f59e0b;--radius:12px;--gutter:16px;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:14px;line-height:1.45}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);min-height:100vh;margin:0}[hidden]{display:none!important}h1,h2,p{margin:0}h2{letter-spacing:.04em;text-transform:uppercase;color:var(--muted);align-items:center;gap:8px;font-size:12px;font-weight:600;display:flex}kbd{background:var(--surface-3);border-radius:4px;padding:1px 5px;font:11px ui-monospace,monospace}button,select,input{font:inherit;color:inherit}button{cursor:pointer;background:var(--surface-3);border:0;border-radius:10px;padding:9px 14px;transition:background .15s,opacity .15s}button:hover:not(:disabled){background:#363c4a}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid var(--primary);outline-offset:2px}button.primary{background:var(--primary);color:#fff}button.primary:hover:not(:disabled){background:var(--primary-hover)}button.secondary{background:var(--surface-3)}button.danger{background:var(--accent);color:#fff}button.danger:hover:not(:disabled){background:var(--accent-hover)}button.ghost{color:var(--muted);border:1px solid var(--border);background:0 0}button.ghost:hover:not(:disabled){background:var(--surface-2);color:var(--text)}button.small{padding:6px 10px;font-size:13px}select{background:var(--surface-2);border:1px solid var(--border);border-radius:10px;width:100%;padding:9px 10px}.app{max-width:1400px;padding:0 var(--gutter) 48px;margin:0 auto}.topbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:16px 0;display:flex}.brand{align-items:center;gap:10px;font-size:17px;font-weight:700;display:flex}.brand-dot{background:var(--accent);border-radius:50%;width:14px;height:14px;box-shadow:0 0 0 4px #ef444433}.problem{color:#fed7aa;border-radius:var(--radius);background:#3a1d12;border:1px solid #7c2d12;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:16px;padding:12px 16px;display:flex}.problem p{color:#fdba74;margin-top:4px}.layout{grid-template-columns:minmax(0,1fr) 320px;align-items:start;gap:20px;display:grid}@media (max-width:980px){.layout{grid-template-columns:minmax(0,1fr)}}.stage{flex-direction:column;gap:12px;min-width:0;display:flex}.preview{border-radius:var(--radius);border:1px solid var(--border);background:#000;position:relative;overflow:hidden}.preview canvas{aspect-ratio:16/9;object-fit:contain;touch-action:none;width:100%;height:auto;max-height:72vh;display:block}.preview canvas.can-drag{cursor:grab}.preview canvas.dragging{cursor:grabbing}.overlay{background:#0000008c;justify-content:center;align-items:center;gap:12px;font-weight:600;display:flex;position:absolute;inset:0}.countdown{font-variant-numeric:tabular-nums;font-size:clamp(64px,14vw,160px)}.saving{font-size:18px}.spinner{border:3px solid #ffffff40;border-top-color:#fff;border-radius:50%;width:22px;height:22px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.record-bar{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);flex-wrap:wrap;align-items:center;gap:10px;padding:10px 12px;display:flex}.record{background:var(--accent);color:#fff;align-items:center;gap:10px;padding:11px 18px;font-weight:600;display:inline-flex}.record:hover:not(:disabled){background:var(--accent-hover)}.rec-dot{background:#fff;border-radius:50%;width:12px;height:12px}.record.live .rec-dot{animation:1.2s infinite pulse}@keyframes pulse{50%{opacity:.3}}.timer{font-variant-numeric:tabular-nums;min-width:64px;font-size:18px;font-weight:600}.stats{color:var(--muted);font-variant-numeric:tabular-nums;font-size:12px}.shortcut{margin-left:auto}.done{border-radius:var(--radius);background:#0f2a1a;border:1px solid #166534;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;display:flex}.done-text{flex-direction:column;display:flex}.done-text span{color:#86efac;font-size:13px}.panel{flex-direction:column;gap:12px;display:flex}.group{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);flex-direction:column;gap:10px;padding:14px;display:flex}.row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.hint{color:var(--muted);text-transform:none;letter-spacing:0;font-size:12px;font-weight:400}.source-label{color:var(--text);overflow-wrap:anywhere;font-weight:500}.source-label.empty{color:var(--muted);font-weight:400}.status{letter-spacing:.02em;text-transform:none;background:var(--surface-3);color:var(--muted);border-radius:999px;padding:2px 8px;font-size:11px;font-weight:600}.status.live{color:#86efac;background:#22c55e26}.status.connecting{color:#93c5fd;background:#3b82f626}.status.lost,.status.error{color:#fcd34d;background:#f59e0b26}.segmented{background:var(--surface-2);border-radius:10px;grid-auto-columns:1fr;grid-auto-flow:column;gap:3px;padding:3px;display:grid}.segmented button{color:var(--muted);background:0 0;padding:7px 6px;font-size:13px}.segmented button[aria-pressed=true]{background:var(--surface-3);color:var(--text)}.corners{grid-template-columns:repeat(4,1fr);gap:6px;display:grid}.corners button{padding:6px;font-size:16px}.corners button[aria-pressed=true]{background:var(--primary);color:#fff}.check{cursor:pointer;align-items:center;gap:8px;display:flex}.field{color:var(--muted);flex-direction:column;gap:6px;font-size:13px;display:flex}.slider{color:var(--muted);flex:1;align-items:center;gap:8px;font-size:13px;display:flex}.slider input{min-width:60px;accent-color:var(--primary);flex:1}.meter{background:var(--surface-2);border-radius:999px;height:6px;overflow:hidden}.meter div{background:var(--ok);width:0;height:100%;transition:width 80ms linear}.pairing{border-top:1px solid var(--border);flex-direction:column;gap:10px;padding-top:10px;display:flex}.pairing-status{color:#93c5fd;font-weight:600}.pairing-status.live{color:#86efac}.pairing-status.lost{color:#fcd34d}.pairing-qr{flex-direction:column;align-items:center;gap:8px;display:flex}.qr{background:#fff;border-radius:10px;padding:6px;line-height:0}.qr svg{width:200px;height:200px}.pairing-url{align-items:center;gap:6px;width:100%;display:flex}.pairing-url code{min-width:0;color:var(--muted);overflow-wrap:anywhere;flex:1;font-size:11px}.pairing-steps{color:var(--muted);flex-direction:column;gap:4px;margin:0;padding-left:18px;font-size:13px;display:flex}.pairing-steps strong{color:var(--text)}.hint.warn{color:#fcd34d}.library{flex-direction:column;gap:12px;margin-top:28px;display:flex}.library h2{flex-wrap:wrap}.recordings{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.recordings li{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:10px 14px;display:flex}.recordings li.recover{background:#261a0d;border-color:#92400e}.recordings .meta{flex-direction:column;min-width:0;display:flex}.recordings .meta span{color:var(--muted);font-size:12px}.recordings .empty-list{color:var(--muted);justify-content:center}.toasts{z-index:10;flex-direction:column;gap:8px;max-width:min(420px,100vw - 32px);display:flex;position:fixed;bottom:16px;right:16px}.toast{background:var(--surface-2);border:1px solid var(--border);border-left:4px solid var(--primary);border-radius:10px;justify-content:space-between;align-items:flex-start;gap:12px;padding:10px 12px;display:flex;box-shadow:0 8px 24px #0006}.toast.success{border-left-color:var(--ok)}.toast.warning{border-left-color:var(--warn)}.toast.error{border-left-color:var(--accent)}.toast button{color:var(--muted);background:0 0;padding:0 4px}.help{background:var(--surface);width:calc(100vw - 32px);max-width:640px;color:var(--text);border:1px solid var(--border);border-radius:var(--radius);padding:20px 22px}.help::backdrop{background:#0009}.help h1{margin-bottom:6px;font-size:18px}.help h3{margin:16px 0 6px;font-size:14px}.help ol{flex-direction:column;gap:4px;margin:0;padding-left:20px;display:flex}.help .yours{border:1px solid var(--primary);border-radius:10px;padding:4px 12px 12px}.help footer{justify-content:flex-end;margin-top:18px;display:flex}.unsupported{max-width:560px;padding:0 var(--gutter);flex-direction:column;gap:12px;margin:15vh auto;display:flex}.unsupported li{color:var(--muted)}.topbar-actions{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.account-signed-in{align-items:center;gap:8px;min-width:0;display:flex}.avatar{background:var(--primary);color:#fff;border-radius:50%;flex:none;justify-content:center;align-items:center;width:30px;height:30px;font-size:12px;font-weight:700;display:inline-flex}.who{text-overflow:ellipsis;white-space:nowrap;max-width:180px;color:var(--text);font-weight:500;overflow:hidden}.auth{max-width:420px}.auth>.hint{margin-bottom:16px}.auth-body,.auth-form,.auth-success{flex-direction:column;gap:12px;display:flex}.auth footer{justify-content:flex-end;gap:8px;margin-top:4px;display:flex}.text-input{background:var(--surface-2);border:1px solid var(--border);width:100%;color:var(--text);border-radius:10px;padding:10px 12px;font-size:15px}.text-input:focus-visible{border-color:var(--primary)}.field .hint{margin-top:-2px}.form-error{color:#fca5a5;min-height:1em;font-size:13px}.form-error:empty{display:none}button.google{color:#1f1f1f;background:#fff;justify-content:center;align-items:center;gap:10px;padding:11px 14px;font-weight:600;display:flex}button.google:hover:not(:disabled){background:#f2f2f2}button.google svg{width:18px;height:18px}.divider{color:var(--muted);align-items:center;gap:10px;font-size:12px;display:flex}.divider:before,.divider:after{content:"";background:var(--border);flex:1;height:1px}.auth-success p{font-size:15px}@media (max-width:520px){.who{display:none}}.share-progress{flex-direction:column;gap:4px;display:flex}.share-progress progress{width:100%;height:8px;accent-color:var(--primary)}.recordings .meta a{color:var(--text);text-decoration:none}.recordings .meta a:hover{text-decoration:underline}.viewer-page{justify-content:center;display:flex}.viewer{width:100%;max-width:1100px;padding:16px var(--gutter) 40px;flex-direction:column;gap:18px;display:flex}.viewer-head .brand{color:var(--text);text-decoration:none}.viewer-body{flex-direction:column;gap:12px;display:flex}.viewer-body h1{overflow-wrap:anywhere;font-size:20px}.viewer-frame{border-radius:var(--radius);border:1px solid var(--border);background:#000;overflow:hidden}.viewer-frame video{background:#000;width:100%;max-height:78vh;display:block}.viewer-message{text-align:center;align-items:center;margin-top:12vh}.camera-only-note{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);color:var(--muted);margin:0 0 12px;padding:10px 14px}.camera-only-device .shortcut{display:none}
