:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#0b0d12;--bg-elevated:#12151c;--surface:#171b24;--surface-hover:#1e2330;--border:#262c3a;--text:#e7e9ee;--text-muted:#8b93a7;--accent:#7c5cff;--accent-hover:#8f74ff;--accent-soft:#7c5cff24;--success:#2fbf71;--warning:#f2b544;--danger:#f2545b;--info:#4aa3ff;--radius:10px;--radius-sm:6px;--sidebar-width:248px;--topbar-height:56px;-webkit-font-smoothing:antialiased;font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:15px;line-height:1.5}*,:before,:after{box-sizing:border-box}body{background:var(--bg);color:var(--text);min-height:100vh;margin:0}h1,h2,h3{letter-spacing:-.01em;margin:0;font-weight:600}h1{font-size:1.6rem}h2{font-size:1.1rem}h3{font-size:1rem}a{color:inherit}code{background:var(--bg-elevated);border-radius:4px;padding:2px 6px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.9em}.muted{color:var(--text-muted)}:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.app-shell{min-height:100vh;display:flex}.sidebar{width:var(--sidebar-width);background:var(--bg-elevated);border-right:1px solid var(--border);z-index:30;flex-direction:column;padding:16px 12px;display:flex;position:fixed;inset:0 auto 0 0}.sidebar__brand{align-items:center;gap:10px;padding:6px 10px 20px;font-weight:600;display:flex}.brand-mark__text{flex-direction:column;min-width:0;line-height:1.15;display:flex}.brand-mark__logo{object-fit:contain;background:#fff;border-radius:10px;flex:none;width:40px;height:40px}.brand-mark__name{letter-spacing:.04em;white-space:nowrap;font-weight:800}.brand-mark__tagline{letter-spacing:.14em;color:var(--accent);white-space:nowrap;font-size:.62rem;font-weight:600}.auth-card__footer{text-align:center;margin:16px 0 0;font-size:.8rem}.auth-card__note{margin:16px 0 0;font-size:.8rem;line-height:1.5}.sidebar__logo{background:var(--accent);color:#fff;border-radius:8px;place-items:center;width:30px;height:30px;display:grid}.sidebar__nav{flex-direction:column;gap:2px;margin:0;padding:0;list-style:none;display:flex}.sidebar__link{border-radius:var(--radius-sm);color:var(--text-muted);align-items:center;gap:12px;padding:9px 12px;text-decoration:none;transition:background .15s,color .15s;display:flex}.sidebar__link:hover{background:var(--surface);color:var(--text)}.sidebar__link--active{background:var(--accent-soft);color:var(--text)}.sidebar__link--active svg{color:var(--accent)}.sidebar__footer{padding:10px 12px 0;font-size:.8rem}.sidebar-backdrop{z-index:20;background:#0000008c;position:fixed;inset:0}.app-main{min-width:0;margin-left:var(--sidebar-width);flex-direction:column;flex:1;display:flex}.topbar{z-index:10;height:var(--topbar-height);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-bottom:1px solid var(--border);background:#0b0d12d9;align-items:center;gap:12px;padding:0 28px;display:flex;position:sticky;top:0}.topbar__spacer{flex:1}.topbar .topbar__menu{display:none}.content{flex-direction:column;gap:20px;width:100%;max-width:1200px;padding:28px;display:flex}.page-header{flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px;display:flex}.page-header p{margin:4px 0 0}.page-header__actions{flex-wrap:wrap;gap:8px;display:flex}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:20px}.section{flex-direction:column;gap:12px;display:flex}.section__header{justify-content:space-between;align-items:center;gap:12px;margin-bottom:4px;display:flex}.stats{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;display:grid}.stat{flex-direction:column;gap:4px;display:flex}.stat__label{color:var(--text-muted);font-size:.85rem}.stat__value{font-size:1.9rem;font-weight:600}.stat__hint{font-size:.8rem}.button{border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--surface);color:var(--text);font:inherit;cursor:pointer;align-items:center;gap:8px;padding:8px 14px;font-weight:500;text-decoration:none;transition:background .15s,border-color .15s;display:inline-flex}.button:hover:not(:disabled){background:var(--surface-hover)}.button:disabled{opacity:.55;cursor:not-allowed}.button--primary{background:var(--accent);border-color:var(--accent);color:#fff}.button--primary:hover:not(:disabled){background:var(--accent-hover)}.icon-button{border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--surface);width:36px;height:36px;color:var(--text);cursor:pointer;place-items:center;display:grid}.link{color:var(--accent-hover);font-weight:500;text-decoration:none}.link:hover{text-decoration:underline}.alert{border-radius:var(--radius-sm);border:1px solid;padding:12px 14px;font-size:.92rem}.alert--error{color:#ffb3b6;background:#f2545b1a;border-color:#f2545b66}.alert--info{color:#b5d9ff;background:#4aa3ff1a;border-color:#4aa3ff66}.empty-state{text-align:center;border:1px dashed var(--border);border-radius:var(--radius);background:var(--bg-elevated);flex-direction:column;align-items:center;gap:8px;padding:48px 20px;display:flex}.empty-state__icon{background:var(--accent-soft);width:56px;height:56px;color:var(--accent);border-radius:50%;place-items:center;margin-bottom:4px;display:grid}.badge{white-space:nowrap;border-radius:999px;padding:2px 10px;font-size:.78rem;font-weight:500;display:inline-block}.badge--draft{color:var(--text-muted);background:#8b93a726}.badge--in_progress{color:var(--info);background:#4aa3ff26}.badge--completed{color:var(--success);background:#2fbf7126}.badge--archived{color:var(--warning);background:#f2b54426}.status-pill{border:1px solid var(--border);color:var(--text-muted);border-radius:999px;align-items:center;gap:8px;padding:4px 12px;font-size:.82rem;display:inline-flex}.status-pill__dot{background:var(--text-muted);border-radius:50%;width:8px;height:8px}.status-pill--ok .status-pill__dot{background:var(--success)}.status-pill--warn .status-pill__dot{background:var(--warning)}.status-pill--error .status-pill__dot{background:var(--danger)}.table-wrap{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);overflow-x:auto}.table{border-collapse:collapse;width:100%}.table th,.table td{text-align:left;border-bottom:1px solid var(--border);vertical-align:top;padding:12px 16px}.table th{text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted);font-size:.78rem;font-weight:600}.table tbody tr:last-child td{border-bottom:none}.table tbody tr:hover{background:var(--surface-hover)}.table__primary{font-weight:500}.table__secondary{margin-top:2px;font-size:.85rem}.form{flex-direction:column;gap:18px;max-width:720px;display:flex}.form__grid{grid-template-columns:repeat(3,1fr);gap:16px;display:grid}.form__actions{justify-content:flex-end;display:flex}.field{flex-direction:column;gap:6px;display:flex}.field label{font-size:.88rem;font-weight:500}.field input,.field textarea,.field select{font:inherit;color:var(--text);background:var(--bg-elevated);border:1px solid var(--border);border-radius:var(--radius-sm);width:100%;padding:9px 12px}.field textarea{resize:vertical}.field input:focus,.field textarea:focus,.field select:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft);outline:none}.details{grid-template-columns:max-content 1fr;gap:10px 24px;margin:12px 0 0;display:grid}.details dt{color:var(--text-muted)}.details dd{margin:0}@media (width<=900px){.sidebar{transition:transform .2s;transform:translate(-100%)}.sidebar--open{transform:translate(0)}.app-main{margin-left:0}.topbar{padding:0 16px}.topbar .topbar__menu{display:grid}.content{padding:20px 16px}.form__grid{grid-template-columns:1fr}}@media (width<=640px){.table thead{display:none}.table,.table tbody,.table tr,.table td{width:100%;display:block}.table tr{border-bottom:1px solid var(--border);padding:8px 0}.table tbody tr:last-child{border-bottom:none}.table td{border-bottom:none;padding:6px 16px}.table td:before{content:attr(data-label);text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted);font-size:.72rem;display:block}.details{grid-template-columns:1fr;gap:2px}.details dd{margin-bottom:10px}}@media (prefers-reduced-motion:reduce){*{transition:none!important}}.sidebar__user{border-top:1px solid var(--border);flex-direction:column;gap:2px;margin-top:auto;padding-top:8px;display:flex}.sidebar__avatar{background:var(--accent-soft);width:24px;height:24px;color:var(--accent);border-radius:50%;flex:none;place-items:center;font-size:.8rem;font-weight:700;display:grid}.sidebar__user-text{flex-direction:column;min-width:0;line-height:1.25;display:flex}.sidebar__user-name,.sidebar__user-email{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.sidebar__user-email{font-size:.75rem}.sidebar__signout{font:inherit;cursor:pointer;text-align:left;background:0 0;border:0;width:100%}.sidebar__signout:focus-visible{outline:2px solid var(--accent)}.auth-screen{place-items:center;min-height:100vh;padding:24px 16px;display:grid}.auth-card{width:100%;max-width:420px}.auth-card h1{margin:12px 0 4px}.auth-card>.muted{margin:0 0 16px}.auth-card__brand{align-items:center;gap:10px;font-weight:600;display:flex}.auth-card__switch,.auth-card__hint{text-align:center;margin:0;font-size:.9rem}.storage-meter{flex-direction:column;gap:6px;min-width:160px;display:flex}.storage-meter__bar--warning .progress__bar{background:var(--warning)}.storage-meter__bar--danger .progress__bar{background:var(--danger)}.storage-meter__detail{margin:0;font-size:.85rem}.stat--wide{grid-column:span 1}.account-grid{grid-template-columns:repeat(auto-fit,minmax(300px,1fr));align-items:start;gap:16px;display:grid}.account-grid h2{margin-top:0}.admin-quota{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.admin-quota input{width:90px}.admin-actions{flex-wrap:wrap;gap:6px;display:flex}.admin-jobs{margin-bottom:16px}.admin-failures{gap:6px;margin:0;padding-left:18px;font-size:.9rem;display:grid}.table__delete{color:var(--danger);margin-left:12px}.batch-new{flex-wrap:wrap;align-items:flex-end;gap:12px;margin-bottom:16px;display:flex}.batch-new .field{flex:260px;margin:0}.batch-section{margin-bottom:16px}.batch-section h2{margin-top:0}.batch-presets{grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:8px;display:grid}.batch-run__actions{flex-wrap:wrap;gap:8px;display:flex}.batch-player{border-radius:var(--radius-sm);background:#000;width:100%;max-width:360px;max-height:320px;margin-top:8px;display:block}.batch-item__stage{font-size:.85rem}.batch-methods{font-size:.9rem}.kit-grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;margin:0;padding:0;list-style:none;display:grid}.kit-card{flex-direction:column;gap:10px;display:flex}.kit-card__preview{background:var(--bg);border-radius:var(--radius-sm);place-items:center;height:90px;display:grid}.kit-card__preview img{object-fit:contain;max-width:80%;max-height:76px}.kit-card__details{font-size:.9rem}.kit-swatch{border:1px solid var(--border);vertical-align:-2px;border-radius:3px;width:14px;height:14px;margin-left:4px;display:inline-block}.kit-list{gap:6px;margin:0 0 12px;padding:0;list-style:none;display:grid}.kit-list li{justify-content:space-between;align-items:center;gap:8px;display:flex}.kit-save{flex-wrap:wrap;gap:8px;display:flex}.kit-save input{flex:200px}.home{text-align:center;flex-direction:column;align-items:center;gap:.75rem;max-width:760px;margin:0 auto;padding:2rem 1rem;display:flex}.home__logo{object-fit:contain;background:#fff;border-radius:24px;width:120px;height:120px}.home__title{margin:0;font-size:2rem}.home__sub{margin:0 0 1rem}.home__choices{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1rem;width:100%;display:grid}.home__choice{background:var(--accent);color:#fff;border-radius:16px;flex-direction:column;justify-content:center;gap:.5rem;min-height:150px;padding:2rem 1.25rem;text-decoration:none;display:flex}.home__choice--editor{background:#334155}.home__choice:hover,.home__choice:focus-visible{filter:brightness(1.1);outline-offset:2px;outline:3px solid #ffffff80}.home__choice-title{font-size:1.6rem;font-weight:800}.home__choice-text{opacity:.92;font-size:1rem}.home__more{margin-top:1rem;font-size:1.05rem}.feature-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:.75rem;display:grid}.feature-card{color:inherit;flex-direction:column;gap:.25rem;padding:1rem;text-decoration:none;display:flex}.visually-hidden{clip:rect(0 0 0 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;position:absolute!important}.button--small{gap:6px;padding:5px 10px;font-size:.82rem}.button--danger{color:#ffb3b6;border-color:#f2545b66}.button--danger:hover:not(:disabled){background:#f2545b26}.button--active{border-color:var(--accent);background:var(--accent-soft)}.icon-button:disabled{opacity:.4;cursor:not-allowed}.icon-button:hover:not(:disabled){background:var(--surface-hover)}.icon-button--small{width:30px;height:30px}.icon-button--primary{background:var(--accent);border-color:var(--accent);color:#fff}.icon-button--primary:hover:not(:disabled){background:var(--accent-hover)}.icon-button--active{border-color:var(--accent);color:var(--accent-hover);background:var(--accent-soft)}.link-button{font:inherit;color:var(--accent-hover);cursor:pointer;background:0 0;border:none;padding:2px 4px;font-size:.8rem}.link-button:hover:not(:disabled){text-decoration:underline}.link-button:disabled{opacity:.5;cursor:not-allowed}.link-button--muted{color:var(--text-muted)}.tabs{border-bottom:1px solid var(--border);scrollbar-width:none;gap:2px;display:flex;overflow-x:auto}.tabs__tab{color:var(--text-muted);font:inherit;cursor:pointer;background:0 0;border:none;border-bottom:2px solid #0000;flex:none;padding:8px 10px;font-size:.84rem}.tabs__tab:hover{color:var(--text)}.tabs__tab--active{color:var(--text);border-bottom-color:var(--accent)}.tabs__count{color:var(--text-muted);margin-left:2px;font-size:.72rem}input[type=search],.media-panel__filters select,.preview__view select,.inspector select,.control select,.control input[type=text],.control input[type=number],.control textarea,.inspector textarea{font:inherit;color:var(--text);background:var(--bg);border:1px solid var(--border);border-radius:var(--radius-sm);min-width:0;padding:6px 8px;font-size:.85rem}.control select,.control input[type=text],.control textarea,.inspector select,.inspector textarea{width:100%}.control textarea,.inspector textarea{resize:vertical}[aria-invalid=true]{border-color:var(--danger)!important}select:disabled,input:disabled,textarea:disabled{opacity:.5;cursor:not-allowed}.sidebar--compact{width:64px;padding:16px 8px}.sidebar--compact .sidebar__text{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.sidebar--compact .sidebar__brand{justify-content:center;padding:6px 0 20px}.sidebar--compact .sidebar__link{justify-content:center;padding:10px 0}.app-main--compact{margin-left:64px}.content--editor{max-width:none;height:calc(100vh - var(--topbar-height));gap:0;padding:0}.project-picker{gap:10px;margin:0;padding:0;list-style:none;display:grid}.project-picker__item{align-items:center;gap:14px;padding:14px 16px;text-decoration:none;display:flex}.project-picker__item:hover{background:var(--surface-hover)}.project-picker__icon{background:var(--accent-soft);width:38px;height:38px;color:var(--accent);border-radius:8px;flex:none;place-items:center;display:grid}.project-picker__body{flex-direction:column;flex:1;min-width:0;font-size:.88rem;display:flex}.editor-page__status{flex-direction:column;align-items:flex-start;gap:12px;padding:28px;display:flex}.editor{background:var(--bg);flex-direction:column;height:100%;min-height:0;display:flex}.editor>*{flex:none}.editor__alert{margin:8px 12px 0}.editor__tabs{background:var(--bg-elevated);padding:0 12px}.editor>.editor__main{grid-template-columns:minmax(240px, 280px) minmax(0, 1fr) var(--settings-w,360px);flex:1 1 0;min-height:0;display:grid;position:relative}.editor__panel{border-right:1px solid var(--border);background:var(--bg-elevated);min-height:0;overflow:auto}.editor__panel--preview{background:var(--bg);flex-direction:column;display:flex;overflow:hidden}.editor__panel--settings{border-right:none;border-left:1px solid var(--border)}.editor__panel[hidden]{display:none}.editor>.editor__timeline{flex:0 0 min(var(--timeline-h,clamp(250px, 36%, 340px)), 70vh);border-top:1px solid var(--border);background:var(--bg-elevated);min-height:0}.editor[data-layout=medium] .editor__main{grid-template-columns:minmax(0, 1fr) var(--settings-w,360px)}.editor[data-layout=medium] .editor__panel--media{border-right:none;border-left:1px solid var(--border)}.editor[data-layout=narrow]{flex-direction:column;height:auto;display:flex}.editor[data-layout=narrow]>.editor__main{flex:none;display:block}.editor[data-layout=narrow] .editor__panel{border:none;overflow:visible}.editor[data-layout=narrow] .editor__panel--preview{height:auto}.editor[data-layout=narrow] .preview__stage{flex:none;height:clamp(240px,62vh,560px)}.editor[data-layout=narrow]>.editor__timeline{flex-basis:auto;height:320px}.content--editor:has(.editor[data-layout=narrow]){height:auto}.editor-toolbar{border-bottom:1px solid var(--border);background:var(--bg-elevated);align-items:center;gap:10px;min-width:0;padding:8px 12px;display:flex}.editor-toolbar__title{flex-direction:column;flex:1;min-width:0;display:flex}.editor-toolbar__title h1{white-space:nowrap;text-overflow:ellipsis;font-size:1rem;overflow:hidden}.editor-toolbar__status{color:var(--text-muted);font-size:.75rem}.editor-toolbar__status--dirty{color:var(--warning)}.editor-toolbar__status--error{color:var(--danger)}.editor-toolbar__status--saved{color:var(--success)}.editor-toolbar__actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:6px;display:flex}a.icon-button{text-decoration:none}.panel-title{font-size:.95rem}.media-panel{flex-direction:column;gap:10px;padding:12px;display:flex}.media-panel__head{justify-content:space-between;align-items:center;gap:8px;display:flex}.media-panel__filters{grid-template-columns:1fr auto;gap:6px;display:grid}.media-panel__note{color:var(--text-muted);margin:0;font-size:.75rem;line-height:1.4}.media-panel__notice{flex-direction:column;gap:4px;margin:0 12px 12px;padding:8px 10px;font-size:.8rem;display:flex}.media-panel .media-panel__notice{margin:0}.media-panel .empty-state{padding:28px 12px}.media-grid{grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:10px;margin:0;padding:0;list-style:none;display:grid}.media-card{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);flex-direction:column;display:flex;overflow:hidden}.media-card__thumb{aspect-ratio:16/9;cursor:pointer;color:var(--text-muted);background:#000;border:none;place-items:center;padding:0;display:grid;position:relative}.media-card__thumb:disabled{cursor:default}.media-card__thumb img{object-fit:cover;width:100%;height:100%}.media-card__duration{color:#fff;background:#000000bf;border-radius:4px;padding:1px 5px;font-size:.7rem;position:absolute;bottom:4px;right:4px}.media-card__used{color:var(--accent);font-size:.8rem;position:absolute;top:2px;left:6px}.media-card__body{flex-direction:column;gap:2px;min-width:0;padding:6px 8px 4px;display:flex}.media-card__name{text-overflow:ellipsis;white-space:nowrap;font-size:.78rem;font-weight:500;overflow:hidden}.media-card__meta{color:var(--text-muted);font-size:.7rem}.media-card__error{color:var(--danger)}.media-card__actions{flex-wrap:wrap;gap:2px;margin-left:-4px;display:flex}.media-card--error .media-card__thumb{opacity:.5}.preview{flex-direction:column;height:100%;min-height:0;display:flex}.preview__stage{background:repeating-conic-gradient(#0e1117 0% 25%,#0b0d12 0% 50%) 50%/24px 24px;flex:1;place-items:center;min-height:0;display:grid;position:relative;overflow:auto}.preview__stage[data-fit=zoom]{place-items:start}.preview__stage:fullscreen{background:#000}.preview__frame{flex:none;position:relative;overflow:hidden;box-shadow:0 8px 30px #00000080;container-type:size}.preview__media{position:absolute;inset:0}.preview__video,.preview__overlay{width:100%;height:100%;position:absolute;inset:0}.preview__pip{aspect-ratio:auto;object-fit:cover;border-radius:4px;height:auto;position:absolute;box-shadow:0 2px 12px #0009}.preview__tint{mix-blend-mode:soft-light;pointer-events:none;position:absolute;inset:0}.preview__border{pointer-events:none;position:absolute;inset:0}.preview__text,.preview__title{text-align:center;text-shadow:0 2px 8px #0009;white-space:pre-wrap;word-break:break-word;pointer-events:none;place-items:center;padding:8%;font-weight:700;line-height:1.15;display:grid;position:absolute;inset:0}.preview__subtitle{pointer-events:none;justify-content:center;padding:0 6%;display:flex;position:absolute;left:0;right:0}.preview__subtitle--bottom{bottom:7%}.preview__subtitle--top{top:7%}.preview__subtitle--middle{top:50%;transform:translateY(-50%)}.preview__subtitle span{text-align:center;white-space:pre-wrap;border-radius:.2em;padding:.15em .45em;line-height:1.3}.preview__lower-third{border-left:.2em solid var(--accent);color:#fff;pointer-events:none;background:#0a0c12c7;flex-direction:column;padding:.35em .8em;line-height:1.25;display:flex;position:absolute;bottom:18%}.preview__lower-third span{opacity:.85;font-size:.7em}.preview__lower-third--left{left:5%}.preview__lower-third--right{right:5%}.preview__lower-third--center{text-align:center;left:50%;transform:translate(-50%)}.preview__logo{pointer-events:none;height:auto;position:absolute}.preview__watermark{color:#ffffff8c;pointer-events:none;font-weight:600;position:absolute;bottom:3%}.preview__empty{color:var(--text-muted);text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:16px;font-size:.85rem;display:flex;position:absolute;inset:0}.preview__empty--warn{color:var(--warning);background:#000000b3;padding:6px;font-size:.78rem;inset:auto 0 0}.preview__controls{border-top:1px solid var(--border);background:var(--bg-elevated);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;padding:8px 12px;display:flex}.preview__transport,.preview__view{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.preview__transport .icon-button{width:32px;height:32px}.preview__timecode{margin-left:6px;font-family:ui-monospace,Menlo,monospace;font-size:.82rem}.preview__badge{color:var(--text-muted);border:1px solid var(--border);white-space:nowrap;border-radius:999px;padding:3px 10px;font-size:.75rem}.settings-panel{flex-direction:column;display:flex}.settings-panel__toolbar{z-index:2;background:var(--bg-elevated);border-bottom:1px solid var(--border);flex-direction:column;gap:8px;padding:12px;display:flex;position:sticky;top:0}.settings-panel__search{width:100%}.settings-panel__buttons{flex-wrap:wrap;gap:6px;display:flex}.settings-panel__none{padding:16px;font-size:.85rem}.panel-section{border-bottom:1px solid var(--border)}.panel-section__head{align-items:center;padding-right:10px;display:flex}.panel-section__toggle{color:var(--text);font:inherit;cursor:pointer;text-align:left;background:0 0;border:none;flex:1;align-items:center;gap:8px;padding:11px 12px;font-size:.88rem;font-weight:600;display:flex}.panel-section__toggle:hover{background:var(--surface)}.panel-section__chevron{color:var(--text-muted);transition:transform .15s;display:inline-block}.panel-section--open .panel-section__chevron{transform:rotate(90deg)}.panel-section__body{padding:0 12px 14px}.panel-section__desc{color:var(--text-muted);margin:0 0 10px;font-size:.76rem}.count-badge{background:var(--accent-soft);color:var(--accent-hover);border-radius:999px;padding:0 7px;font-size:.7rem;font-weight:600}.controls-grid{flex-direction:column;gap:12px;display:flex}.settings-panel .control{scroll-margin-top:120px}.control{flex-direction:column;gap:5px;min-width:0;display:flex}.control--disabled .control__label{color:var(--text-muted)}.control__head{align-items:center;gap:6px;min-height:20px;display:flex}.control__label{font-size:.8rem;font-weight:500}.control__range{align-items:center;gap:8px;display:flex}.control__range input[type=range]{min-width:0;accent-color:var(--accent);flex:1}.control__number{width:72px}.control__number--wide{width:110px}.control__unit{color:var(--text-muted);min-width:14px;font-size:.75rem}.control__color{align-items:center;gap:8px;display:flex}.control__color input[type=color]{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--bg);cursor:pointer;width:38px;height:30px;padding:0 2px}.control__hex{font-family:ui-monospace,Menlo,monospace;width:100px!important}.control__hint{color:var(--text-muted);margin:0;font-size:.72rem}.control__error{color:#ff9da2;margin:0;font-size:.74rem}.control__reset{color:var(--text-muted);cursor:pointer;background:0 0;border:none;border-radius:4px;place-items:center;margin-left:auto;padding:2px;display:grid}.control__reset:hover{color:var(--text);background:var(--surface-hover)}.tag{text-transform:uppercase;letter-spacing:.05em;border-radius:4px;padding:0 5px;font-size:.62rem;font-weight:600}.tag--live{color:var(--success);background:#2fbf711f}.tag--export{color:var(--text-muted);background:#8b93a724}.tag--render{color:var(--accent-hover);background:var(--accent-soft)}.tag--saved{color:var(--text-muted);background:#8b93a724}.infotip{border:1px solid var(--border);width:15px;height:15px;color:var(--text-muted);cursor:help;border-radius:50%;flex:none;place-items:center;font-size:.62rem;font-style:italic;font-weight:700;display:inline-grid;position:relative}.infotip__bubble{border:1px solid var(--border);width:max-content;max-width:230px;color:var(--text);z-index:20;visibility:hidden;opacity:0;pointer-events:none;background:#23293a;border-radius:6px;padding:7px 9px;font-size:.74rem;font-style:normal;font-weight:400;line-height:1.4;transition:opacity .12s;position:absolute;bottom:calc(100% + 6px);left:50%;transform:translate(-50%);box-shadow:0 6px 20px #00000080}.infotip:hover .infotip__bubble,.infotip:focus .infotip__bubble{visibility:visible;opacity:1}.switch{cursor:pointer;align-items:center;gap:8px;width:fit-content;display:inline-flex;position:relative}.switch input{z-index:1;opacity:0;cursor:pointer;width:100%;height:100%;margin:0;position:absolute;top:0;left:0}.switch__track{background:var(--border);border-radius:999px;width:36px;height:20px;transition:background .15s;position:relative}.switch__track:after{content:"";background:#fff;border-radius:50%;width:16px;height:16px;transition:transform .15s;position:absolute;top:2px;left:2px}.switch input:checked+.switch__track{background:var(--accent)}.switch input:checked+.switch__track:after{transform:translate(16px)}.switch input:focus-visible+.switch__track{outline:2px solid var(--accent);outline-offset:2px}.switch__text{color:var(--text-muted);font-size:.8rem}.inspector{flex-direction:column;gap:12px;display:flex}.inspector__meta{color:var(--text-muted);margin:0;font-size:.76rem}.inspector__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.inspector__grid .control__number--wide{width:100%}.inspector__actions{flex-wrap:wrap;gap:6px;display:flex}.timeline{flex-direction:column;height:100%;min-height:0;display:flex}.timeline__toolbar{border-bottom:1px solid var(--border);flex-wrap:wrap;align-items:center;gap:6px;padding:6px 10px;display:flex}.timeline__spacer{flex:1}.timeline__info{font-family:ui-monospace,Menlo,monospace;font-size:.75rem}.timeline__zoom{width:110px;accent-color:var(--accent)}.timeline__message{color:#ffb3b6;background:#f2545b1a;justify-content:space-between;align-items:center;gap:8px;padding:5px 10px;font-size:.78rem;display:flex}.timeline__body{flex:1;min-height:0;display:flex;overflow-y:auto}.timeline__headers{border-right:1px solid var(--border);background:var(--bg-elevated);z-index:3;flex:none;width:132px;position:sticky;left:0}.timeline__ruler-spacer{border-bottom:1px solid var(--border);height:26px}.timeline__header{height:44px;color:var(--text-muted);border-bottom:1px solid var(--border);white-space:nowrap;align-items:center;gap:6px;padding:0 10px;font-size:.74rem;display:flex;overflow:hidden}.timeline__scroll{flex:1;min-width:0;position:relative;overflow:auto hidden}.timeline__content{min-height:100%;position:relative}.timeline__ruler{border-bottom:1px solid var(--border);cursor:col-resize;background-image:linear-gradient(to right, var(--border) 1px, transparent 1px);touch-action:none;background-position:0 100%;background-repeat:repeat-x;height:26px;position:relative}.timeline__tick{height:100%;color:var(--text-muted);pointer-events:none;border-left:1px solid #3a4256;padding-left:4px;font-family:ui-monospace,Menlo,monospace;font-size:.66rem;line-height:16px;position:absolute;top:0}.timeline__target{background:var(--warning);pointer-events:auto;width:2px;position:absolute;top:0;bottom:0}.timeline__lane{border-bottom:1px solid var(--border);background:#ffffff03;height:44px;position:relative}.timeline__lane:nth-child(odd){background:#ffffff06}.timeline__playhead{pointer-events:none;z-index:2;background:#ff4d6d;width:2px;margin-left:-1px;position:absolute;top:0;bottom:0}.timeline__playhead:before{content:"";border:6px solid #0000;border-top-color:#ff4d6d;position:absolute;top:0;left:-5px}.clip{color:#fff;cursor:grab;-webkit-user-select:none;user-select:none;touch-action:none;border:1px solid #ffffff26;border-radius:5px;align-items:center;gap:6px;padding:0 6px;font-size:.72rem;display:flex;position:absolute;top:5px;bottom:5px;overflow:hidden}.clip--video{background:#3b4fb8}.clip--overlay{background:#2f8f8a}.clip--audio{background:#2e7d4f}.clip--subtitle{background:#8a6d1f}.clip--text{background:#7a3d9e}.clip--selected{outline-offset:-1px;z-index:1;outline:2px solid #fff}.clip--dragging{opacity:.75;cursor:grabbing;z-index:2}.clip--offline{background-image:repeating-linear-gradient(45deg,#00000040 0 6px,#0000 6px 12px);border-style:dashed}.clip__thumb{object-fit:cover;flex:none;width:auto;max-width:50%;height:100%;margin-left:-6px}.clip__label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.modal-backdrop{z-index:50;background:#0009;place-items:center;padding:16px;display:grid;position:fixed;inset:0}.modal{width:100%;max-width:480px}.modal__note{margin:0;font-size:.82rem}.modal__actions{gap:8px}@media (width<=900px){.app-main--compact{margin-left:0}.sidebar--compact{width:var(--sidebar-width);padding:16px 12px}.sidebar--compact .sidebar__text{clip:auto;width:auto;height:auto;position:static;overflow:visible}.sidebar--compact .sidebar__brand{justify-content:flex-start;padding:6px 10px 20px}.sidebar--compact .sidebar__link{justify-content:flex-start;padding:9px 12px}}@media (width<=767px){.editor-toolbar{flex-wrap:wrap}.editor-toolbar__actions{justify-content:flex-start;width:100%}.timeline__headers{width:44px}.timeline__header span{display:none}.timeline__header{justify-content:center;padding:0}.preview__controls{flex-direction:column;align-items:stretch}.preview__view{justify-content:space-between}.inspector__grid{grid-template-columns:1fr}}.media-panel .tabs__tab,.editor__panel .media-library .tabs__tab{flex:1 1 0;padding:8px 2px;font-size:.8rem}.media-library{flex-direction:column;gap:10px;min-height:100%;padding:12px;display:flex;position:relative}.media-library--dragging{outline:2px dashed var(--accent);outline-offset:-6px}.media-library__drop{z-index:5;border-radius:var(--radius);color:var(--text);pointer-events:none;background:#7c5cff29;flex-direction:column;justify-content:center;align-items:center;gap:8px;font-weight:600;display:flex;position:absolute;inset:6px}.media-library-page{padding:4px}.media-library-page .media-grid{grid-template-columns:repeat(auto-fill,minmax(170px,1fr))}.media-library-page__picker{max-width:360px}.media-panel__usage{margin:0;font-size:.75rem}.media-card__tools{flex-wrap:wrap;gap:3px;margin-top:4px;display:flex}.media-card__rename{flex-direction:column;gap:2px;display:flex}.media-card__rename input{font:inherit;color:var(--text);background:var(--bg);border:1px solid var(--accent);border-radius:4px;width:100%;padding:3px 6px;font-size:.78rem}.icon-button--tiny{border-radius:4px;width:24px;height:24px;font-size:.72rem}.icon-button--danger{color:#ff9da2}.icon-button--danger:hover:not(:disabled){background:#f2545b26}.upload-queue{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--surface);flex-direction:column;gap:6px;padding:8px;display:flex}.upload-queue__head{justify-content:space-between;align-items:center;font-size:.8rem;display:flex}.upload-queue__list{flex-direction:column;gap:8px;max-height:260px;margin:0;padding:0;list-style:none;display:flex;overflow-y:auto}.upload-item{flex-direction:column;gap:3px;font-size:.76rem;display:flex}.upload-item__row{justify-content:space-between;align-items:center;gap:6px;min-width:0;display:flex}.upload-item__name{text-overflow:ellipsis;white-space:nowrap;font-weight:500;overflow:hidden}.upload-item__tag{text-transform:uppercase;background:var(--accent-soft);color:var(--accent-hover);border-radius:3px;margin-right:5px;padding:0 4px;font-size:.62rem}.upload-item__actions{flex:none;align-items:center;gap:2px;display:flex}.upload-item__meta{color:var(--text-muted);font-size:.7rem}.upload-item__error{color:#ff9da2;font-size:.72rem}.upload-item--done .upload-item__meta{color:var(--success)}.progress{background:var(--border);border-radius:999px;height:5px;overflow:hidden}.progress__bar{background:var(--accent);height:100%;transition:width .15s linear}.progress__bar--busy{background:repeating-linear-gradient(45deg, var(--accent) 0 8px, var(--accent-hover) 8px 16px)}.upload-indicator{position:relative;overflow:hidden}.upload-indicator__bar{background:var(--accent-soft);z-index:0;position:absolute;top:0;bottom:0;left:0}.upload-indicator{isolation:isolate}.upload-indicator>:not(.upload-indicator__bar){position:relative}.render-dialog{flex-direction:column;gap:14px;width:100%;max-width:620px;max-height:calc(100vh - 32px);display:flex;overflow-y:auto}.render-dialog__head{justify-content:space-between;align-items:center;display:flex}.render-dialog__summary{margin:0}.render-dialog__quality{border:none;flex-direction:column;gap:8px;margin:0;padding:0;display:flex}.render-dialog__quality legend{margin-bottom:6px;font-size:.88rem;font-weight:500}.render-option{border:1px solid var(--border);border-radius:var(--radius-sm);cursor:pointer;align-items:flex-start;gap:10px;padding:10px 12px;display:flex}.render-option>span{flex-direction:column;gap:2px;font-size:.85rem;display:flex}.render-option--active{border-color:var(--accent);background:var(--accent-soft)}.render-option input{accent-color:var(--accent);margin-top:3px}.render-list{flex-direction:column;gap:12px;display:flex}.render-card{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);flex-direction:column;gap:10px;padding:14px 16px;display:flex}.render-card__head{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.render-card__title{flex-direction:column;gap:2px;min-width:0;display:flex}.render-card__meta{font-size:.8rem}.render-card__progress{flex-direction:column;gap:4px;display:flex}.render-card__stage,.render-card__note{margin:0;font-size:.8rem}.render-card__warnings{color:var(--warning);border-radius:var(--radius-sm);background:#f2b54414;margin:0;padding:8px 12px 8px 28px;font-size:.8rem}.render-card__video{border-radius:var(--radius-sm);background:#000;width:100%;max-height:360px}.render-card__actions{flex-wrap:wrap;gap:8px;display:flex}.render-card__log{margin-top:6px}.render-card__log pre{white-space:pre-wrap;max-height:200px;color:var(--text-muted);font-size:.72rem;overflow:auto}a.button{text-decoration:none}.render-badge--queued,.render-badge--running{color:var(--info);background:#4aa3ff26}.render-badge--completed{color:var(--success);background:#2fbf7126}.render-badge--failed{color:var(--danger);background:#f2545b26}.render-badge--cancelled{color:var(--text-muted);background:#8b93a726}.preview__text--top{place-items:start center;padding-top:6%}.preview__text--bottom{place-items:end center;padding-bottom:6%}.preview__watermark--top_left{top:3%;bottom:auto;left:3%}.preview__watermark--top_right{top:3%;bottom:auto;right:3%}.preview__watermark--bottom_left{left:3%}.preview__watermark--bottom_right{right:3%}.preview__watermark--center{top:50%;bottom:auto;left:50%;transform:translate(-50%,-50%)}.preview__pip{object-fit:cover}.render-dialog__fields{grid-template-columns:repeat(2,minmax(0,1fr))}.vo-recording{align-items:center;gap:10px;font-weight:600;display:flex}.vo-recording__dot{background:var(--danger);border-radius:50%;width:12px;height:12px;animation:1s infinite vo-pulse}@keyframes vo-pulse{50%{opacity:.3}}@media (width<=600px){.render-dialog__fields{grid-template-columns:1fr}}.autoedit{max-width:760px;max-height:92vh;overflow-y:auto}.autoedit__group{border:0;margin:0 0 12px;padding:0}.autoedit__group legend{margin-bottom:6px;font-weight:600}.autoedit__templates{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:8px;display:grid}.autoedit__switches{flex-wrap:wrap;gap:8px 20px;margin:8px 0 12px;display:flex}.autoedit__media{gap:4px;max-height:160px;margin:0;padding:0;list-style:none;display:grid;overflow-y:auto}.autoedit__media label{overflow-wrap:anywhere;align-items:center;gap:6px;font-size:13px;display:flex}.autoedit__kind{text-transform:uppercase;letter-spacing:.04em;color:var(--color-text-muted,#9aa0aa);min-width:40px;font-size:11px}.autoedit__caps{margin:8px 0;font-size:13px}.autoedit__caps ul,.autoedit__steps{gap:6px;margin:6px 0;padding-left:0;font-size:13px;list-style:none;display:grid}.autoedit__unavailable{color:var(--color-warning,#f5a524)}.autoedit__engine{font-size:12px;display:block}.autoedit__step--skipped{opacity:.7}.autoedit__report{margin-top:8px}.method-tag{letter-spacing:.04em;vertical-align:1px;text-transform:uppercase;border-radius:999px;margin:0 2px;padding:1px 6px;font-size:10px;font-weight:700;display:inline-block}.method-tag--ai{color:#b9a8ff;background:#7c5cff33;border:1px solid #7c5cff80}.method-tag--rule{color:#c3cad5;background:#94a3b826;border:1px solid #94a3b866}.studio{flex-direction:column;gap:16px;display:flex}.studio__section{flex-direction:column;gap:12px;padding:16px;display:flex}.studio__section h2,.studio h2{margin:0;font-size:1.05rem}.studio__row{border:0;flex-wrap:wrap;align-items:flex-end;gap:12px;margin:0;padding:0;display:flex}.studio__row .field{flex:180px}.studio__hint{font-size:.82rem}.studio__scenes{grid-template-columns:repeat(auto-fill,minmax(min(100%,340px),1fr));gap:12px;margin-top:8px;display:grid}.studio__jobs{flex-direction:column;gap:4px;margin:0;padding:0;font-size:.85rem;list-style:none;display:flex}.studio__job{background:var(--surface-hover);border-radius:6px;justify-content:space-between;gap:12px;padding:4px 8px;display:flex}.studio__job--failed{color:#ffb3b6}.studio__job--done{color:#9be3b0}.studio progress{width:100%}.scene-card{flex-direction:column;gap:10px;padding:12px;display:flex}.scene-card__head{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.scene-card__media{flex-direction:column;gap:6px;display:flex}.scene-card__media img,.scene-card__media video{object-fit:contain;background:#000;border-radius:6px;width:100%;max-height:220px}.scene-card__media audio{width:100%}.scene-card__empty{border:1px dashed var(--border);border-radius:6px;place-items:center;min-height:120px;display:grid}.scene-card__actions{flex-wrap:wrap;align-items:flex-end;gap:8px;display:flex}.scene-card__kind{flex-direction:column;gap:2px;font-size:.8rem;display:flex}.scene-card__note{margin:0;font-size:.8rem}.badge--accent{color:#cdbfff;background:#7c5cff2e}.studio-settings{flex-direction:column;gap:12px;max-width:560px;max-height:90vh;display:flex;overflow-y:auto}.studio-settings__group{border:1px solid var(--border);border-radius:8px;flex-direction:column;gap:10px;padding:10px 12px;display:flex}@media (width<=640px){.studio__row .field{flex:none}.scene-card__actions .button{flex:100%}}.scene-card__order{gap:4px;margin-left:auto;display:inline-flex}.scene-card__look{flex-wrap:wrap;gap:8px;display:flex}.scene-card__look .scene-card__kind{flex:140px}.scene-card__look select,.scene-card__kind select{width:100%}.studio__sync{align-items:flex-start;gap:8px;font-size:.88rem;display:flex}.studio__order{align-items:center}@media (width<=640px){.studio__section{padding:12px}.studio textarea,.studio input,.studio select{font-size:16px}.studio__scenes{grid-template-columns:1fr}.studio__row{flex-flow:column;align-items:stretch}.studio__row .button,.studio__row a.button{text-align:center;width:100%}.scene-card__order .icon-button{min-width:44px;min-height:44px}.scene-card__media img,.scene-card__media video{max-height:56vw}.studio__job{flex-direction:column;gap:2px}.studio-settings{max-width:100%;max-height:96vh}}.editor__splitter{touch-action:none;z-index:5;background:0 0}.editor__splitter:hover,.editor__splitter:focus-visible,body.is-resizing .editor__splitter{background:var(--accent,#7c5cff);opacity:.55;outline:none}.editor__splitter--v{top:0;bottom:0;right:calc(var(--settings-w,360px) - 3px);cursor:col-resize;width:6px;position:absolute}.editor>.editor__splitter--h{cursor:row-resize;height:6px;margin:-3px 0;position:relative}body.is-resizing{-webkit-user-select:none;user-select:none;cursor:grabbing}.editor[data-layout=narrow] .editor__splitter{display:none}.remix__steps{flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none;display:flex}.remix__steps li{background:var(--surface-hover);border-radius:999px;align-items:center;gap:6px;padding:6px 12px;font-size:.85rem;display:flex}.remix__steps li span{background:var(--surface);border-radius:50%;place-items:center;width:22px;height:22px;font-weight:600;display:inline-grid}.remix__steps li.is-current{background:var(--accent-soft);border:1px solid var(--accent)}.remix__steps li.is-done span{background:var(--accent);color:#fff}.remix__how{max-width:70ch}.remix__cols{grid-template-columns:repeat(auto-fit,minmax(min(100%,380px),1fr));align-items:start;gap:16px;display:grid}.remix__tabs{gap:8px;display:flex}.remix__tabs .button{flex:1}.remix__list{flex-direction:column;gap:4px;margin:0;padding-left:20px;display:flex}.remix__ok{color:#9be3b0;margin:0}.remix__big{min-height:44px;font-size:1rem}@media (width<=640px){.remix__steps li{padding:4px 8px;font-size:.78rem}}
