:root { --bg: #fafafa; --fg: #1a1a1a; --muted: #666; --accent: #6d28d9; --on-accent: #fff; --bad: #b3261e; --line: #ddd; }
@media (prefers-color-scheme: dark) { :root { --bg: #141414; --fg: #eee; --muted: #aaa; --accent: #6ab0ff; --on-accent: #0b1a2b; --bad: #ff8a80; --line: #333; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.5 system-ui, sans-serif; }
main { max-width: 760px; margin: 0 auto; padding: 16px; }
h1 { font-size: 1.3rem; }
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
input, button, select, textarea { font: inherit; padding: .5rem .6rem; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: inherit; }
button { background: var(--accent); color: var(--on-accent); border: 0; cursor: pointer; }
button.danger { background: var(--bad); }
.error { color: var(--bad); }
.muted { color: var(--muted); }
.synthetic { color: var(--accent); }
.warn { color: var(--bad); }
.prompter { white-space: pre-wrap; font-size: 2rem; line-height: 1.6; padding: 40vh 0 80vh; }
.prompter-bar { position: fixed; top: 0; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px; display: flex; gap: 12px; align-items: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.card { border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.card .value { font-size: 1.5rem; font-weight: 600; }
label { display: block; margin: .6rem 0 .2rem; }
form.inline { display: inline; }
.clips li { margin: .6rem 0; }
.clips audio { width: 100%; max-width: 360px; vertical-align: middle; }
.clips button { padding: .3rem .6rem; }
fieldset { border: 1px solid var(--line); border-radius: 6px; margin: .8rem 0; } table { border-collapse: collapse; width: 100%; } td, th { padding: .3rem .4rem; border-bottom: 1px solid var(--line); text-align: left; }
/* Phone width (FR-022): the same panel installed as an app from the browser's menu. */
@media (max-width: 480px) {
  main { padding: 12px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .card .value { font-size: 1.25rem; }
  table { display: block; overflow-x: auto; }
  button, input, select { min-height: 44px; }
}
.notice { white-space: pre-wrap; border: 1px solid var(--line); border-radius: 8px; padding: 12px; font: inherit; }
