:root{--bg:#f5f6f8;--surface:#fff;--text:#12151c;--muted:#5d6576;--border:#e2e5eb;--accent:#2f6bff;--accent-text:#fff;--rec:#ff3b4e;--ok:#138a4b;--danger:#d12c3c;--radius:16px;--safe-b:env(safe-area-inset-bottom,0px);--safe-t:env(safe-area-inset-top,0px);color:var(--text);-webkit-tap-highlight-color:transparent;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}@media (prefers-color-scheme:dark){:root{--bg:#0b0d12;--surface:#161a22;--text:#eef0f4;--muted:#949cae;--border:#262c38;--accent:#5b8cff;--ok:#4cd08a;--danger:#ff6b78}}*{box-sizing:border-box}html,body,#root{background:var(--bg);min-height:100%;margin:0}body{overscroll-behavior:none}button{font:inherit;color:inherit;cursor:pointer}button:disabled{opacity:.4;cursor:default}input,textarea{font:inherit;color:var(--text)}h1{letter-spacing:-.02em;margin:0;font-size:28px}h2{align-items:center;gap:8px;margin:0;font-size:17px;display:flex}.splash{background:var(--bg);min-height:100vh}.btn{border:1px solid var(--border);background:var(--surface);border-radius:14px;justify-content:center;align-items:center;gap:8px;min-height:48px;padding:0 18px;font-weight:600;display:inline-flex}.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-text)}.btn.danger{color:var(--danger)}.btn.big{width:100%;min-height:58px;font-size:18px}.btn.small{min-height:40px;padding:0 12px;font-size:15px}.icon-btn{background:0 0;border:0;border-radius:12px;flex:none;place-items:center;width:44px;height:44px;display:inline-grid}.link-btn{color:var(--accent);background:0 0;border:0;min-height:44px;font-weight:600}input[type=email],input:not([type]),.title-input,textarea{border:1px solid var(--border);background:var(--surface);border-radius:12px;width:100%;min-height:48px;padding:12px 14px;font-size:16px}.segmented{background:var(--border);border-radius:14px;gap:4px;padding:4px;display:flex}.segmented button{background:0 0;border:0;border-radius:10px;flex:1;min-height:44px;font-size:15px;font-weight:600}.segmented button.on{background:var(--surface);box-shadow:0 1px 3px #00000026}.hint{color:var(--muted);margin:8px 0 0;font-size:14px;line-height:1.45}.hint.ok{color:var(--ok)}.hint.error{color:var(--danger)}.hint.progress{color:var(--accent);font-weight:600}.page{max-width:680px;padding:calc(12px + var(--safe-t)) 16px calc(120px + var(--safe-b));min-height:100vh;margin:0 auto}.topbar{align-items:center;gap:8px;min-height:56px;margin-bottom:8px;display:flex}.topbar h1{flex:1}.title-input{background:0 0;border-color:#0000;flex:1;padding:8px;font-size:20px;font-weight:700}.title-input:focus{border-color:var(--border);background:var(--surface);outline:none}.save-state{color:var(--muted);white-space:nowrap;font-size:13px}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);margin-bottom:14px;padding:16px}.card h2+.segmented{margin-top:12px}.card-head{justify-content:space-between;align-items:center;gap:8px;margin-bottom:12px;display:flex}.card.notice{border-color:var(--accent)}.card.notice p{margin-bottom:10px}.inline-form,.new-project{gap:8px;display:flex}.new-project input{flex:1}.project-list,.file-list{margin:0;padding:0;list-style:none}.project-row{align-items:center;gap:8px;padding:6px 6px 6px 16px;display:flex}.project-open{text-align:left;background:0 0;border:0;flex-direction:column;flex:1;gap:2px;min-width:0;padding:10px 0;display:flex}.project-open strong{text-overflow:ellipsis;white-space:nowrap;font-size:17px;overflow:hidden}.project-open .hint{margin:0}.empty-state{text-align:center;color:var(--muted);padding:40px 16px}.script-input{resize:vertical;min-height:38vh;line-height:1.5}.file-list li{border-top:1px solid var(--border);align-items:center;gap:10px;padding:6px 0;display:flex}.file-list li:first-child{border-top:0}.file-name{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-weight:500;overflow:hidden}.file-list .hint{margin:0}.take-row{text-align:left;background:0 0;border:0;align-items:center;gap:8px;width:100%;min-height:44px;display:flex}.sticky-cta{padding:12px 16px calc(12px + var(--safe-b));background:linear-gradient(transparent, var(--bg) 30%);position:fixed;bottom:0;left:0;right:0}.sticky-cta .btn{max-width:648px;margin:0 auto;display:flex}.auth{max-width:440px;padding:calc(48px + var(--safe-t)) 20px 40px;text-align:center;flex-direction:column;align-items:stretch;gap:12px;margin:0 auto;display:flex}.auth-logo{width:72px;height:72px;margin:0 auto}.lede{color:var(--muted);margin:0 0 12px;font-size:17px;line-height:1.5}.auth-form{flex-direction:column;gap:10px;display:flex}.divider{color:var(--muted);align-items:center;gap:12px;margin:16px 0 4px;font-size:14px;display:flex}.divider:before,.divider:after{content:"";background:var(--border);flex:1;height:1px}.studio{color:#fff;touch-action:manipulation;-webkit-user-select:none;user-select:none;background:#000;display:flex;position:fixed;inset:0;overflow:hidden}.studio.portrait{flex-direction:column}.studio.landscape{flex-direction:row}.stage{flex:1;min-width:0;min-height:0;position:relative;overflow:hidden}.camera{object-fit:cover;background:#000;width:100%;height:100%;position:absolute;inset:0}.camera-error,.studio-msg{text-align:center;background:#141418e6;border-radius:14px;padding:16px;position:absolute;inset:auto 16px 40%}.studio-msg{color:#fff;background:#000;place-content:center;gap:16px;display:grid;position:fixed;inset:0}.panel{border-radius:16px;position:absolute;overflow:hidden}.panel-handle{color:#fff;touch-action:none;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);z-index:2;background:#ffffff2e;border:0;border-radius:10px;place-items:center;width:36px;height:36px;display:grid;position:absolute}.panel-handle.move{top:6px;right:6px}.panel-handle.resize{bottom:6px;right:6px}.prompter{position:absolute;inset:0}.prompter-scroll{-webkit-overflow-scrolling:touch;scrollbar-width:none;padding:14px 52px 0 18px;position:absolute;inset:0;overflow-y:auto}.prompter-scroll::-webkit-scrollbar{display:none}.prompter-text{white-space:pre-wrap;text-shadow:0 1px 3px #0009;padding-bottom:85%;font-weight:600;line-height:1.35}.prompter-guide{pointer-events:none;border-top:8px solid #0000;border-bottom:8px solid #0000;border-left:10px solid var(--rec);opacity:.85;width:0;height:0;position:absolute;top:18px;left:0}.prompter-text span{transition:opacity .25s}.prompter-text span.said{opacity:.38}.prompter-voice{pointer-events:none;white-space:nowrap;text-overflow:ellipsis;background:#0000008c;border-radius:99px;align-items:center;gap:6px;width:fit-content;max-width:calc(100% - 62px);padding:4px 10px;font-size:13px;display:flex;position:absolute;bottom:8px;left:10px;right:52px;overflow:hidden}.prompter-voice.err{white-space:normal;background:#a0141ed9;border-radius:10px}.mic-dot{background:#4cd08a;border-radius:50%;flex:none;width:8px;height:8px;animation:1.2s infinite blink}.field-note{color:var(--muted);font-size:13px;line-height:1.4}.prompter-paused{pointer-events:none;white-space:nowrap;background:#0000008c;border-radius:99px;padding:4px 10px;font-size:13px;position:absolute;bottom:8px;left:50%;transform:translate(-50%)}.slides{background:#000000bf;flex-direction:column;display:flex;position:absolute;inset:0}.slides img{object-fit:contain;flex:1;width:100%;min-height:0}.slides.empty{text-align:center;color:#cfd3dc;place-items:center;padding:20px 52px 20px 20px;font-size:15px;display:grid}.slides-bar{justify-content:center;align-items:center;gap:12px;padding:4px 48px 4px 8px;display:flex}.slides-bar .icon-btn{color:#fff;background:#ffffff29;width:52px;height:44px}.slides-count{font-variant-numeric:tabular-nums;text-align:center;min-width:64px;font-weight:600}.slides-progress{background:var(--rec);height:3px;transition:width .2s linear;position:absolute;bottom:0;left:0}.countdown{text-shadow:0 4px 24px #0009;pointer-events:none;place-items:center;font-size:140px;font-weight:800;display:grid;position:absolute;inset:0}.rec-pill{font-variant-numeric:tabular-nums;pointer-events:none;background:#0009;border-radius:99px;align-items:center;gap:8px;padding:6px 14px;font-weight:700;display:flex;position:absolute;bottom:12px;left:50%;transform:translate(-50%)}.rec-pill small{opacity:.8;font-weight:500}.rec-pill .dot{background:var(--rec);border-radius:50%;width:10px;height:10px;animation:1s infinite blink}@keyframes blink{50%{opacity:.25}}.controls{background:#000;flex:none;gap:10px;display:flex}.portrait .controls{padding:10px 16px calc(10px + var(--safe-b));flex-direction:column}.landscape .controls{padding:10px calc(10px + env(safe-area-inset-right,0px)) 10px 10px;flex-direction:column-reverse;justify-content:center;width:132px}.controls .segmented{background:#1c1f26}.controls .segmented button{color:#c9cdd6;min-height:38px;font-size:14px}.controls .segmented button.on{color:#fff;background:#3a3f4b}.landscape .controls .segmented{flex-direction:column}.control-row{justify-content:space-between;align-items:center;display:flex}.landscape .control-row{flex-direction:column;gap:10px}.round-btn{color:#fff;background:#1c1f26;border:0;border-radius:50%;place-items:center;width:52px;height:52px;display:grid}.rec-btn{background:0 0;border:4px solid #fff;border-radius:50%;place-items:center;width:76px;height:76px;padding:0;display:grid}.rec-btn span{background:var(--rec);border-radius:50%;width:58px;height:58px;transition:all .2s}.rec-btn.recording span{border-radius:8px;width:30px;height:30px}.rec-btn.countdown span{opacity:.5}.sheet-backdrop{z-index:20;background:#0000008c;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet,.preview{background:var(--surface);width:100%;max-width:560px;max-height:88vh;color:var(--text);padding:8px 16px calc(20px + var(--safe-b));border-radius:22px 22px 0 0;flex-direction:column;gap:14px;display:flex;overflow-y:auto}.sheet-head,.preview-head{background:var(--surface);z-index:1;justify-content:space-between;align-items:center;min-height:52px;display:flex;position:sticky;top:-8px}.field{flex-direction:column;gap:8px;display:flex}.field>span{justify-content:space-between;font-weight:600;display:flex}.field em{color:var(--muted);font-variant-numeric:tabular-nums;font-style:normal}.field input[type=range]{width:100%;height:32px;accent-color:var(--accent)}.toggle{justify-content:space-between;align-items:center;gap:16px;min-height:44px;font-weight:600;display:flex}.toggle span{flex-direction:column;gap:4px;display:flex}.toggle small{color:var(--muted);font-size:13px;font-weight:400;line-height:1.4}.toggle input{width:24px;height:24px;accent-color:var(--accent);flex:none}.toggle.disabled{opacity:.5}.swatches{gap:12px;display:flex}.swatch{border:2px solid var(--border);border-radius:50%;width:44px;height:44px}.swatch.on{outline:3px solid var(--accent);outline-offset:2px}.preview-video{background:#000;border-radius:14px;width:100%;max-height:55vh}.preview-actions{gap:10px;display:grid}.preview .hint{margin:0}@media (width>=700px) and (orientation:landscape){.sheet-backdrop{align-items:center}.sheet,.preview{border-radius:22px}}
