:root{--bg:#f6f6f7;--surface:#fff;--text:#17171a;--muted:#6b6b76;--border:#e3e3e8;--accent:#e5191e;--accent-text:#fff;--focus:#2563eb;--danger:#b42318;--ok:#067647;--warn:#b54708;--code:#f1f1f4;--radius:10px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}@media (prefers-color-scheme:dark){:root{--bg:#0f0f12;--surface:#18181c;--text:#ececf1;--muted:#9a9aa6;--border:#2a2a31;--focus:#60a5fa;--danger:#f97066;--ok:#47cd89;--warn:#fdb022;--code:#222228;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}}*{box-sizing:border-box}body{background:var(--bg);color:var(--text);margin:0;font:400 15px/1.5 system-ui,-apple-system,Segoe UI,sans-serif}h1{margin:0;font-size:22px}h2{align-items:center;gap:6px;margin:0 0 12px;font-size:16px;display:flex}a{color:inherit}:focus-visible{outline:2px solid var(--focus);outline-offset:2px}.muted{color:var(--muted)}.error{color:var(--danger);margin:8px 0}.error ul{margin:6px 0 0;padding-left:18px}.topbar{background:var(--surface);border-bottom:1px solid var(--border);align-items:center;gap:24px;padding:12px 24px;display:flex}.brand{font-weight:700;text-decoration:none}.topbar nav{gap:16px;display:flex}.topbar nav a{color:var(--muted);text-decoration:none}.topbar nav a[aria-current=page]{color:var(--text);font-weight:600}.account{align-items:center;gap:12px;margin-left:auto;font-size:14px;display:flex}.page{max-width:1200px;margin:0 auto;padding:24px}.page-head{flex-wrap:wrap;align-items:center;gap:12px 16px;margin-bottom:20px;display:flex}.page-head h1{margin-right:auto}.columns{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);align-items:start;gap:20px;display:grid}.column{gap:20px;display:grid}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:18px 20px}.card-head{justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px;display:flex}.card-head h2{margin:0}.save{align-items:center;gap:12px;display:flex}.row{gap:8px;display:flex}.button{border:1px solid var(--border);background:var(--surface);color:var(--text);font:inherit;cursor:pointer;border-radius:8px;justify-content:center;align-items:center;gap:6px;padding:8px 14px;font-weight:600;display:inline-flex}.button:disabled{opacity:.5;cursor:default}.button.primary{border-color:var(--accent);background:var(--accent);color:var(--accent-text)}.button.ghost{background:0 0;border-color:#0000}.button.danger{border-color:var(--danger);background:var(--danger);color:#fff}.button.small{padding:4px 10px;font-size:13px}input,select,textarea{border:1px solid var(--border);background:var(--surface);width:100%;color:var(--text);font:inherit;border-radius:8px;padding:8px 10px}input[type=checkbox]{width:auto;accent-color:var(--accent)}input[type=color]{flex:none;width:40px;height:38px;padding:2px}.column.sticky{scrollbar-width:thin;max-height:calc(100vh - 32px);position:sticky;top:16px;overflow-y:auto}.settings-card{padding-top:0}.settings-head{z-index:5;border-radius:var(--radius) var(--radius) 0 0;background:var(--surface);border-bottom:1px solid #0000;justify-content:space-between;align-items:center;gap:12px;margin:0 -20px 12px;padding:14px 20px 12px;display:flex;position:sticky;top:0}.settings-head[data-dirty]{border-bottom-color:var(--border)}.settings-head h2{margin:0}.unsaved{color:var(--warn);font-size:13px;font-weight:600}.preview-head{justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px;display:flex}.preview-head h2{margin:0}.preview-states{margin-bottom:10px}.preview-frame{margin-bottom:8px}.preview-frame.phone{border:1px solid var(--border);background:var(--code);border-radius:22px;max-width:340px;margin-inline:auto;padding:10px}.video-grid{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px;margin:0;padding:0;list-style:none;display:grid}.video-card{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);text-decoration:none;transition:border-color .15s,box-shadow .15s;display:grid;overflow:hidden}.video-card:hover{border-color:var(--muted);box-shadow:0 4px 16px #00000014}.thumb{aspect-ratio:16/9;background:#18181c;display:block;position:relative}.thumb img{object-fit:cover;width:100%;height:100%;display:block}.duration{color:#fff;font-variant-numeric:tabular-nums;background:#000000bf;border-radius:4px;padding:2px 6px;font-size:12px;font-weight:600;position:absolute;bottom:8px;right:8px}.video-card-body{gap:6px;padding:10px 12px 12px;display:grid}.video-title{text-overflow:ellipsis;white-space:nowrap;font-weight:600;overflow:hidden}.video-meta{justify-content:space-between;align-items:center;gap:8px;font-size:13px;display:flex}.empty.card p{margin:4px 0}progress{width:100%;accent-color:var(--accent)}.inline-form{gap:8px;display:flex}.inline-form input{width:260px}.title-input{background:0 0;border-color:#0000;flex:1;min-width:200px;padding:4px 8px;font-size:22px;font-weight:700}.title-input:hover,.title-input:focus{border-color:var(--border)}.settings{gap:8px;display:grid}.section{border:1px solid var(--border);border-radius:8px}.section summary{cursor:pointer;align-items:baseline;gap:10px;padding:12px 14px;font-weight:600;display:flex}.section summary::marker{color:var(--muted)}.section-hint{text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:400;overflow:hidden}.section[data-failed]{border-color:var(--danger)}.group{gap:10px;display:grid}.group-title{color:var(--muted);letter-spacing:.04em;text-transform:uppercase;font-size:12px;font-weight:600}.grid.compact{grid-template-columns:repeat(auto-fill,minmax(120px,1fr))}.note{border-left:3px solid var(--warn);background:var(--code);border-radius:4px;margin:0;padding:8px 12px;font-size:13px}.field-error{color:var(--danger);font-size:12.5px}:is(.field:has(.field-error) input,.field:has(.field-error) select,.field:has(.field-error) textarea){border-color:var(--danger)}.choice{border:1px solid var(--border);background:var(--code);border-radius:8px;width:max-content;max-width:100%;padding:2px;display:inline-flex}.choice button{color:var(--muted);font:inherit;white-space:nowrap;cursor:pointer;background:0 0;border:0;border-radius:6px;padding:5px 12px;font-size:13.5px;font-weight:600}.choice button[aria-checked=true]{background:var(--surface);color:var(--text);box-shadow:0 1px 2px #0000001f}.choice.small button{padding:3px 10px;font-size:12.5px}.position{background:#18181c;border-radius:8px;grid-template-rows:repeat(3,18px);grid-template-columns:repeat(3,26px);gap:3px;width:max-content;padding:5px;display:grid}.position button{cursor:pointer;background:0 0;border:1px solid #ffffff40;border-radius:4px;padding:0}.position button:hover{background:#ffffff26}.position button[aria-checked=true]{border-color:var(--accent);background:var(--accent)}.swatch{border:1px solid var(--border);border-radius:8px;flex:none;width:38px;height:38px;position:relative;overflow:hidden}.swatch[data-empty]{border:1px dashed var(--muted)}.swatch input[type=color]{opacity:0;cursor:pointer;width:100%;height:100%;position:absolute;inset:0}.color .clear{width:24px;height:24px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:50%;flex:none;padding:0;font-size:18px;line-height:1}.color .clear:hover{background:var(--code)}.section-body{gap:14px;padding:4px 14px 16px;display:grid}.grid{grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px;display:grid}.field{border:0;align-content:start;gap:4px;min-width:0;margin:0;padding:0;display:grid}.field.wide{grid-column:1/-1}.field-label{align-items:center;gap:4px;font-size:13px;font-weight:600;display:inline-flex}.toggle{cursor:pointer;align-items:center;gap:8px;display:inline-flex}.toggles{flex-wrap:wrap;gap:10px 20px;display:flex}.days{flex-wrap:wrap;grid-column:1/-1;gap:4px 12px;display:flex}.days legend{margin-bottom:4px}.optional-body{gap:12px;margin:10px 0 2px 24px;display:grid}.with-suffix,.color{align-items:center;gap:6px;display:flex}.with-suffix>.muted{white-space:nowrap}.list{justify-items:start;gap:10px;display:grid}.list-item{border:1px dashed var(--border);border-radius:8px;justify-items:start;gap:6px;width:100%;padding:10px;display:grid}.list-item .grid{width:100%}.info{display:inline-flex;position:relative}.info-button{border:1px solid var(--border);background:var(--surface);width:18px;height:18px;color:var(--muted);cursor:pointer;border-radius:50%;padding:0;font:italic 600 11px/1 Georgia,serif}.info-bubble{z-index:10;border:1px solid var(--border);background:var(--surface);width:max-content;max-width:280px;color:var(--text);border-radius:8px;padding:8px 10px;font-size:13px;font-weight:400;line-height:1.4;position:absolute;top:calc(100% + 6px);left:-8px;box-shadow:0 8px 24px #0000001f}.badge{background:var(--code);color:var(--muted);white-space:nowrap;border-radius:999px;padding:2px 8px;font-size:12px;font-weight:600}.badge-ready{color:var(--ok)}.badge-encoding{color:var(--warn)}.badge-failed{color:var(--danger)}.table{border-collapse:collapse;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);width:100%;overflow:hidden}.table th,.table td{border-bottom:1px solid var(--border);text-align:left;padding:10px 14px}.table th{color:var(--muted);font-size:13px;font-weight:600}.table tr:last-child td{border-bottom:0}.empty{text-align:center;padding:32px 0}.copy-block{margin-top:10px}.copy-head{justify-content:space-between;align-items:center;font-size:13px;font-weight:600;display:flex}pre{background:var(--code);white-space:pre-wrap;word-break:break-all;border-radius:8px;margin:4px 0 0;padding:10px 12px;font-size:12.5px;overflow-x:auto}.card.danger{background:0 0;border-color:#0000;padding:0}.stack{gap:20px;max-width:820px;display:grid}.stack .page-head{margin-bottom:0}.card.narrow{gap:12px;max-width:460px;margin:40px auto;display:grid}.card.narrow p{margin:0}.small{font-size:13px}.table-wrap{margin-top:14px;overflow-x:auto}.table.plain{border:0;border-radius:0}.table.plain th,.table.plain td{padding:8px 10px 8px 0}.table select{width:auto;padding:4px 8px}.table .actions{text-align:right;white-space:nowrap}.card .inline-form select{width:auto}code{font-size:.92em}.switcher{position:relative}.switcher summary{border:1px solid var(--border);cursor:pointer;border-radius:8px;align-items:center;gap:6px;max-width:220px;padding:6px 10px;font-weight:600;list-style:none;display:flex}.switcher summary::-webkit-details-marker{display:none}.switcher summary:after{content:"";border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);flex:none;width:6px;height:6px;margin-top:-3px;transform:rotate(45deg)}.switcher-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.switcher-menu{z-index:20;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);width:280px;padding:6px;position:absolute;top:calc(100% + 6px);left:0;box-shadow:0 8px 24px #0000001f}.switcher-menu ul{margin:0;padding:0;list-style:none}.switcher-item{width:100%;color:var(--text);font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:6px;justify-content:space-between;gap:12px;padding:8px 10px;display:flex}.switcher-item:hover{background:var(--code)}.switcher-item[aria-current=true]{font-weight:600}.switcher-item .muted{font-size:13px}.switcher-new{border-top:1px solid var(--border);margin-top:6px;padding:8px 4px 2px}.switcher-new .inline-form input{flex:1;width:auto;min-width:0}.auth{place-items:center;min-height:100vh;padding:16px;display:grid}.auth-card{gap:14px;width:min(380px,100%);display:grid}.auth-card p{margin:0}.divider{text-align:center;font-size:13px}@media (width<=860px){.columns{grid-template-columns:1fr}.column.sticky{max-height:none;position:static;overflow:visible}.topbar,.page{padding-left:16px;padding-right:16px}.topbar{flex-wrap:wrap;gap:8px 16px}.topbar .account .muted{display:none}.switcher summary{max-width:150px}.inline-form{width:100%}.inline-form input{flex:1;width:auto}}.video-source{margin-bottom:20px}.video-source .grid{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)}.video-source p{margin:8px 0 0}.preview-empty{aspect-ratio:16/9;border:1px dashed var(--border);text-align:center;border-radius:8px;place-items:center;padding:16px;display:grid}.dialog{border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);width:min(560px,100vw - 32px);color:var(--text);padding:20px}.dialog::backdrop{background:#0006}.dialog .field{margin-bottom:12px}@media (width<=720px){.video-source .grid{grid-template-columns:1fr}}
