:root { --bg: #fff; --fg: #1b1f24; --muted: #5b6470; --line: #e3e6ea; --on: #1f5fbf; --on-bg: #e6efff; --hl: #fff4d6; --err: #b3261e; }
@media (prefers-color-scheme: dark) { :root { --bg: #121417; --fg: #e8eaed; --muted: #9aa3ad; --line: #2a2f35; --on: #8ab4ff; --on-bg: #1d2b44; --hl: #3a3217; --err: #ff8a80; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.45 system-ui, sans-serif; }
main { max-width: 820px; margin: 0 auto; padding: 16px; }
h1 { font-size: 1.4rem; margin: 8px 0; }
.lede, .readout { color: var(--muted); }
label { display: block; margin: 10px 0; }
select, input, textarea { display: block; width: 100%; margin-top: 4px; padding: 8px; font: inherit; color: inherit; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; }
.cues { list-style: none; padding: 0; margin: 12px 0; max-height: 60vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; }
.cue { display: grid; grid-template-columns: 4.5em 9em minmax(0, 1fr); gap: 8px; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.cue.hl { background: var(--hl); }
.cue.off { opacity: .45; }
.cue .t, .cue .w { color: var(--muted); font-size: .85rem; -webkit-user-select: none; user-select: none; }
.cue .x { overflow-wrap: anywhere; cursor: text; }
.cue .wd.on { background: var(--on-bg); box-shadow: 0 2px 0 var(--on); }
.hint { color: var(--muted); font-size: .85rem; margin: 4px 0 8px; }
.selmsg { color: var(--err); font-size: .9rem; margin: 4px 0; }
.quote { overflow-wrap: anywhere; }
@media (max-width: 560px) { .cue { grid-template-columns: 1fr; gap: 0; } }
button#submit, button#another, button#clear, button#add { margin: 8px 8px 0 0; padding: 10px 16px; font: inherit; border-radius: 6px; border: 1px solid var(--line); background: var(--on); color: #fff; cursor: pointer; }
button#clear { background: transparent; color: inherit; }
button:disabled { opacity: .5; cursor: not-allowed; }
.error { color: var(--err); border: 1px solid var(--err); padding: 8px 12px; border-radius: 6px; }
blockquote { margin: 12px 0; padding-left: 12px; border-left: 3px solid var(--on); }
fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 10px 0; padding: 4px 12px 8px; }
legend { color: var(--muted); font-size: .9rem; padding: 0 4px; }
