:root{--bg:#f6f1e7;--surface:#fffdf8;--surface-2:#ece3d2;--text:#1d2230;--muted:#5f6472;--accent:#9b2a1f;--accent-strong:#b8352a;--on-accent:#fff;--border:#d9cfbd;--focus:#2a63d6;--danger:#b3261e;--danger-strong:#d93025;--rec:#e53935;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;color:var(--text);background:var(--bg);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}:root:not([data-theme=light]){--bg:#12141b;--surface:#1b1e27;--surface-2:#262a36;--text:#ece6da;--muted:#9fa3b0;--accent:#f08a7e;--accent-strong:#d9493b;--on-accent:#fff;--border:#343948;--focus:#8fb8f0;--danger:#ff8a80;--danger-strong:#d93025;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}:root[data-theme=dark]{--bg:#12141b;--surface:#1b1e27;--surface-2:#262a36;--text:#ece6da;--muted:#9fa3b0;--accent:#f08a7e;--accent-strong:#d9493b;--on-accent:#fff;--border:#343948;--focus:#8fb8f0;--danger:#ff8a80;--danger-strong:#d93025;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}:root[data-theme=light]{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}[hidden]{display:none!important}*{box-sizing:border-box}html,body{background:var(--bg);-webkit-tap-highlight-color:transparent;height:100%;margin:0;overflow:hidden}#root{height:100%}h1,h2,h3,p{margin:0}button,.button{border:1px solid var(--border);background:var(--surface);min-height:44px;color:var(--text);font:inherit;cursor:pointer;border-radius:12px;justify-content:center;align-items:center;padding:0 16px;font-weight:500;text-decoration:none;transition:background .1s,transform .1s;display:inline-flex}@media (hover:hover){button:hover:not(:disabled),.button:hover{background:var(--surface-2)}button.primary:hover:not(:disabled){filter:brightness(1.06);background:var(--accent-strong)}}button:active:not(:disabled),.button:active{transform:scale(.97)}button:focus-visible,.button:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid var(--focus);outline-offset:2px}button:disabled{opacity:.55;cursor:default}button.primary{background:var(--accent-strong);border-color:var(--accent-strong);color:var(--on-accent);font-weight:650}input{border:1px solid var(--border);background:var(--surface);width:100%;min-height:48px;color:var(--text);font:inherit;border-radius:12px;padding:0 12px;font-size:16px}label{gap:6px;font-weight:500;display:grid}.muted{color:var(--muted)}.small{font-size:.85rem}.error{color:var(--danger);font-weight:500}.auth{height:100%;padding:calc(env(safe-area-inset-top) + 16px) 16px calc(env(safe-area-inset-bottom) + 16px);flex-direction:column;justify-content:center;align-items:center;gap:24px;display:flex;overflow-y:auto}.auth-logo{border-radius:22px}.auth-form{gap:16px;width:100%;max-width:360px;display:grid}.auth-form h1{text-align:center;font-size:1.75rem}.app{top:var(--app-top,0);height:var(--app-height,100%);flex-direction:column;display:flex;position:fixed;left:0;right:0}.top{padding:calc(env(safe-area-inset-top) + 16px) 16px 8px;flex-shrink:0;justify-content:space-between;align-items:center;gap:12px;display:flex}.top h1{flex:1;align-items:center;gap:10px;font-size:1.75rem;display:flex}.top>button:not(.icon-button){white-space:nowrap}@media (width<=480px){.top h1{font-size:1.35rem}}.top-icon{width:32px;height:32px}.icon-button{background:0 0;border-color:#0000;width:44px;padding:0;font-size:1.3rem}.content{overscroll-behavior-y:contain;flex:1;min-height:0;padding:8px 16px 16px;overflow-y:auto}.empty{text-align:center;max-width:420px;color:var(--muted);justify-items:center;gap:12px;margin:15vh auto 0;line-height:1.45;display:grid}.empty-icon{font-size:3rem}.tab-bar{background:var(--surface);border-top:1px solid var(--border);padding-bottom:env(safe-area-inset-bottom);flex-shrink:0;display:flex}.tab{min-height:56px;color:var(--muted);font:inherit;background:0 0;border:none;border-radius:0;flex-direction:column;flex:1;align-items:center;gap:2px;padding:8px 0;font-size:.8rem;line-height:18px;display:flex;position:relative}.tab[aria-current=page]{color:var(--accent);font-weight:600}.tab-icon{font-size:1.3rem;line-height:28px}.keyboard-open .tab-bar{display:none}.sheet-backdrop{z-index:10;background:#0006;justify-content:flex-end;display:flex;position:fixed;inset:0}.sheet{background:var(--surface);width:min(360px,100%);height:100%;padding:calc(env(safe-area-inset-top) + 12px) 16px calc(env(safe-area-inset-bottom) + 16px);flex-direction:column;gap:16px;display:flex;overflow-y:auto}.sheet-head{justify-content:space-between;align-items:center;gap:8px;display:flex}.diagnostics{border-top:1px solid var(--border);gap:12px;padding-top:16px;display:grid}.diagnostics h2{font-size:1.1rem}.release h3{font-size:1rem}.release small{color:var(--muted);font-weight:400}.release ul{margin:4px 0 0;padding-left:20px}.history summary{cursor:pointer;min-height:44px;color:var(--accent);align-items:center;font-weight:500;display:flex}.choices{border:none;grid-template-columns:1fr 1fr;gap:8px;margin:0;padding:0;display:grid}.choices legend{margin-bottom:8px;padding:0;font-weight:600}.choices button[aria-pressed=true],.toggle[aria-pressed=true]{background:var(--accent-strong);border-color:var(--accent-strong);color:var(--on-accent);font-weight:650}.form-buttons{flex-wrap:wrap;gap:8px;display:flex}.form-buttons .primary{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}button.danger{background:var(--danger-strong);border-color:var(--danger-strong);color:#fff;font-weight:650}select{border:1px solid var(--border);background:var(--surface);width:100%;min-height:48px;color:var(--text);font:inherit;border-radius:12px;padding:0 12px;font-size:16px}select:focus-visible{outline:3px solid var(--focus);outline-offset:2px}kbd{font:inherit;opacity:.7;border:1px solid;border-radius:6px;margin-left:6px;padding:1px 6px;font-size:.75rem}@media (hover:none){kbd{display:none}}h2{font-size:1.25rem}h3{margin:0;font-size:1.05rem}.projects{gap:24px;max-width:900px;margin:0 auto;display:grid}.new-project{grid-template-columns:1fr auto;align-items:end;gap:8px 12px;display:grid}.new-project .error{grid-column:1/-1}@media (width<=560px){.new-project{grid-template-columns:1fr}}input[aria-invalid=true]{border-color:var(--danger)}.project-list{gap:8px;margin:0;padding:0;list-style:none;display:grid}.project-card{text-align:left;justify-content:flex-start;gap:16px;width:100%;padding:8px}.project-card img{aspect-ratio:16/9;object-fit:cover;background:var(--surface-2);border-radius:8px;flex-shrink:0;width:160px}.project-text{gap:4px;min-width:0;display:grid}.project-text strong{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}@media (width<=560px){.project-card img{width:96px}}.project{gap:24px;max-width:1200px;margin:0 auto;display:grid}@media (width>=960px){.project{grid-template-columns:minmax(280px,1fr) 2fr;align-items:start}}.project-side,.project-main{gap:24px;min-width:0;display:grid}.steps{gap:8px;display:flex}.steps button[aria-pressed=true]{background:var(--accent-strong);border-color:var(--accent-strong);color:var(--on-accent);font-weight:650}.source{gap:12px;display:grid}.source img{aspect-ratio:16/9;object-fit:cover;background:var(--surface-2);border-radius:12px;width:100%;max-width:480px}.source>div{justify-items:start;gap:8px;display:grid}.source a:not(.button){color:var(--accent)}.folder{justify-items:start;gap:8px;display:grid}code{overflow-wrap:anywhere;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.9rem}.recorder{text-align:center;justify-items:center;gap:12px;display:grid}.stage{aspect-ratio:16/9;color:#fff;background:#000;border-radius:12px;place-items:center;width:100%;display:grid;position:relative;overflow:hidden}.stage video{object-fit:contain;width:100%;height:100%}.stage .muted{color:#c9ccd6}.rec-badge{color:#fff;font-variant-numeric:tabular-nums;background:#0009;border-radius:999px;align-items:center;gap:8px;padding:4px 12px;font-weight:700;display:flex;position:absolute;top:12px;left:12px}.rec-dot{background:var(--rec);border-radius:50%;width:12px;height:12px;animation:1s steps(2,end) infinite blink}@keyframes blink{to{visibility:hidden}}@media (prefers-reduced-motion:reduce){.rec-dot{animation:none}}button.record{border-radius:999px;min-width:240px;min-height:56px;font-size:1.1rem;font-weight:700}button.record.stop{background:var(--rec);border-color:var(--rec);color:#fff}.saved{font-weight:600}.error-box{justify-items:center;gap:8px;display:grid}.cutter{gap:12px;display:grid}.cut-stage video:first-child{cursor:pointer}.cut-stage .pip{border-radius:8px;width:26%;height:auto;position:absolute;bottom:3%;right:2%;box-shadow:0 2px 12px #00000080}.transport{align-items:center;gap:12px;display:flex}button.play{width:48px;padding:0;font-size:1.2rem}.time{font-variant-numeric:tabular-nums;white-space:nowrap}.timeline{flex:1;align-items:center;min-width:0;height:44px;display:flex;position:relative}.timeline input[type=range]{appearance:none;cursor:pointer;background:0 0;border:none;width:100%;min-height:44px;margin:0;padding:0;position:relative}.timeline input[type=range]::-webkit-slider-runnable-track{background:0 0;height:14px}.timeline input[type=range]::-webkit-slider-thumb{appearance:none;background:var(--text);width:6px;height:32px;box-shadow:0 0 0 2px var(--bg);border-radius:3px;margin-top:-9px}.timeline input[type=range]::-moz-range-track{background:0 0;height:14px}.timeline input[type=range]::-moz-range-thumb{background:var(--text);border:none;border-radius:3px;width:6px;height:32px}.cut-marks{background:var(--surface-2);border-radius:7px;height:14px;position:absolute;top:50%;left:0;right:0;overflow:hidden;transform:translateY(-50%)}.cut-marks span{background:repeating-linear-gradient(45deg, var(--danger-strong) 0 4px, transparent 4px 8px);opacity:.8;position:absolute;top:0;bottom:0}.cut-marks span.pending{background:var(--accent);opacity:.4}.cut-buttons{flex-wrap:wrap;gap:8px;display:flex}.kept{font-variant-numeric:tabular-nums}.cut-list{gap:4px;margin:0;padding:0;list-style:none;display:grid}.cut-list li{align-items:center;gap:12px;display:flex}.cut-list li .muted{flex:1}button.link{color:var(--accent);font-variant-numeric:tabular-nums;background:0 0;border-color:#0000;padding:0 8px}.finish{text-align:center;justify-items:center;gap:16px;display:grid}.render-progress{gap:8px;width:min(480px,100%);display:grid}.render-progress progress{width:100%;height:12px;accent-color:var(--accent-strong)}video.result{background:#000;border-radius:12px;width:100%}pre.log{background:var(--surface-2);max-width:100%;max-height:240px;color:var(--text);text-align:left;white-space:pre-wrap;border-radius:8px;padding:8px 12px;font-size:.8rem;overflow:auto}.publish{gap:16px;display:grid}textarea{border:1px solid var(--border);background:var(--surface);width:100%;color:var(--text);font:inherit;resize:vertical;border-radius:12px;padding:12px;font-size:16px}textarea:focus-visible{outline:3px solid var(--focus);outline-offset:2px}.description-preview pre{background:var(--surface-2);color:var(--text);font:inherit;white-space:pre-wrap;overflow-wrap:anywhere;border-radius:12px;margin:4px 0 0;padding:12px;font-size:.9rem}.field{gap:4px;display:grid}
