:root { color-scheme: light; font: 16px/1.5 system-ui, -apple-system, sans-serif; color: #16182c; background: #f2f2fa; --ink: #16182c; --muted: #51546d; --accent: #443ab7; --line: #dcdced; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
a { color: #3c329e; text-underline-offset: 3px; }
.top { display: flex; align-items: center; justify-content: space-between; padding: 13px max(20px, calc((100% - 1100px) / 2)); min-height: 64px; border-bottom: 1px solid var(--line); background: #fbfaff; }
.home { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; color: var(--ink); text-decoration: none; font-weight: 700; }
.home img { border-radius: 9px; }
main { width: min(1100px, calc(100% - 40px)); margin: 0 auto; }
.intro { padding: clamp(26px, 5vw, 63px) 0 26px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2.45rem, 6vw, 4.25rem); line-height: 1.06; letter-spacing: -.055em; font-weight: 760; }
.intro p { color: var(--muted); margin-top: 13px; font-size: clamp(1rem, 2vw, 1.15rem); }
.workspace { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 16px; align-items: start; }
.panel { padding: clamp(15px, 2vw, 23px); border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 6px 24px #25205109; min-width: 0; }
.panel h2 { font-size: 1.27rem; margin-bottom: 14px; }
.screen { display: grid; place-items: center; text-align: center; overflow: hidden; background: #24223b; color: #fff; min-height: 155px; aspect-ratio: 16 / 9; border-radius: 12px; }
.screen video { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.screen p { color: #e1def7; margin: 8px 14px 0; font-size: .82rem; }
.screen strong { font-size: 1.17rem; }
.filename { margin-top: 8px; overflow-wrap: anywhere; font-size: .86rem; color: var(--muted); }
.selection, .run { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
button, .button, select, textarea { font: inherit; color: var(--ink); }
button, .button, select { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; background: #f8f7ff; }
button, .button, select { cursor: pointer; }
button:hover:not(:disabled), .button:hover { border-color: #867dda; }
.file-control { position: relative; display: inline-grid; place-items: center; }
.file-control input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
:focus-visible, .file-control:focus-within { outline: 3px solid #675be2; outline-offset: 2px; }
.primary { background: var(--accent); color: #fff; border-color: transparent; font-weight: 700; }
button:disabled { opacity: .54; cursor: default; }
.quiet { background: #fff; }
.field { display: grid; gap: 5px; margin-top: 14px; color: var(--muted); font-size: .88rem; }
.field select { width: 100%; max-width: 100%; }
.local, #status, #export-status, .notes { color: var(--muted); font-size: .875rem; }
.local { margin-top: 13px; }
#status, #export-status { margin-top: 8px; }
#status.error, #export-status.error { color: #983535; font-weight: 600; }
progress { width: 100%; margin-top: 10px; accent-color: var(--accent); }
.notes { margin-top: -6px; }
.empty { display: grid; min-height: 200px; place-items: center; text-align: center; color: var(--muted); background: #f8f7ff; margin-top: 12px; border: 1px dashed var(--line); border-radius: 12px; }
.cues { max-height: 420px; overflow-y: auto; margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; }
.cue { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 10px; padding: 9px; }
.cue + .cue { border-top: 1px solid var(--line); }
.cue.active { background: #eeedff; }
.time { font: .85rem ui-monospace, monospace; font-variant-numeric: tabular-nums; padding-inline: 8px; }
textarea { field-sizing: content; min-height: 67px; width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; resize: vertical; background: #fff; }
.download { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.download .field { flex: 1 1 180px; }
footer { display: flex; justify-content: center; gap: 20px; font-size: .87rem; padding: 23px 20px 28px; }
.article { max-width: 780px; padding-top: 32px; }
.article section { margin: 26px 0; scroll-margin-top: 16px; }
.article section p, .article li { margin-top: 9px; }
@media (max-width: 720px) { .workspace { grid-template-columns: minmax(0, 1fr); } main { width: calc(100% - 24px); } .top { padding-inline: 12px; } textarea { min-height: 90px; } }
