:root {
  color-scheme:light;
  color:#272239;
  background:#f6f3fb;
  font-family:"Avenir Next",Avenir,system-ui,sans-serif;
  --ink:#503584;
  --line:#dacfed;
  --paper:#fff;
  --soft:#ede5fa;
  --muted:#5c526c;
}
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; }
a { color:var(--ink); text-underline-offset:4px; }
:focus-visible { outline:3px solid #8d63cb; outline-offset:3px; }
header,footer { display:flex; align-items:center; gap:14px; padding:12px max(16px,calc((100% - 1110px)/2)); font-size:14px; }
header { background:var(--paper); border-bottom:1px solid var(--line); justify-content:space-between; }
.brand { display:flex; align-items:center; gap:8px; color:inherit; text-decoration:none; font-weight:740; }
.brand img { border-radius:8px; }
main { width:min(1110px,calc(100% - 32px)); margin:clamp(28px,5vw,60px) auto 22px; }
h1 { margin:0; font-size:clamp(37px,6vw,68px); line-height:1; letter-spacing:-.055em; }
.intro { margin:11px 0 20px; color:var(--muted); }
.controls,.workbench { background:var(--paper); border:1px solid var(--line); border-radius:12px; padding:12px; }
.top,.choices,.table-head { display:flex; align-items:center; flex-wrap:wrap; gap:9px; }
.choices { align-items:flex-end; margin-top:12px; }
label { display:grid; gap:3px; color:var(--muted); font-weight:690; font-size:13px; }
button,select,textarea { font:inherit; }
.action,.outline,.file { border:1px solid var(--ink); border-radius:7px; padding:8px 11px; font-size:13px; font-weight:740; cursor:pointer; }
.action { color:#fff; background:var(--ink); }
.outline,.file { color:var(--ink); background:var(--soft); }
button:disabled { opacity:.45; cursor:default; }
.file { display:inline-flex; position:relative; }
.file input { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
.file:focus-within { outline:3px solid #8d63cb; }
#name,#compatibility,#status,#count,#empty { font-size:13px; color:var(--muted); }
#name { min-width:0; overflow-wrap:anywhere; }
#compatibility,#status { margin:8px 0; }
#status { min-height:18px; }
#status.error { color:#99233e; }
select,textarea { min-width:0; border:1px solid #bbacce; border-radius:6px; padding:7px 8px; color:#272239; background:white; }
select { max-width:173px; }
.table-head { justify-content:space-between; }
#empty { text-align:center; padding:36px 8px; background:#f9f6fd; border-radius:7px; }
#list { list-style:none; padding:0; margin:8px 0 0; }
.cue { display:grid; grid-template-columns:195px minmax(0,1fr) minmax(0,1fr); gap:12px; padding:8px 0; border-top:1px solid var(--line); }
.time { color:var(--ink); font:13px/1.5 ui-monospace,monospace; overflow-wrap:anywhere; }
.original { margin:0; font-size:14px; white-space:pre-wrap; overflow-wrap:anywhere; }
.translation { width:100%; }
textarea { resize:vertical; width:100%; font-size:14px; }
footer { flex-wrap:wrap; color:var(--muted); }
.info { max-width:730px; line-height:1.65; }
.info h1 { font-size:42px; }
@media(max-width:680px) {
  .cue { grid-template-columns:minmax(0,1fr); gap:6px; }
  .choices select { max-width:100%; }
}
