/* Deliberately small. One table, read at a desk, often beside the Telegram
   client -- so the priority is legible transcripts, not decoration. */
:root {
  --bg: #fbfbfa; --fg: #1b1b1a; --muted: #6b6b66; --line: #e3e3df;
  --card: #fff; --accent: #2d6a5a; --warn: #a04a2a;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16181a; --fg: #e8e8e4; --muted: #9a9a94; --line: #2c2f33;
    --card: #1d2023; --accent: #6fb3a0; --warn: #d98a63;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg);
  font: 14px/1.5 ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif; }
header { display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap;
  padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--card); }
h1 { font-size: 16px; margin: 0; letter-spacing: .01em; }
.muted { color: var(--muted); }
.err { color: var(--warn); }
main { padding: 20px; max-width: 1200px; }
.controls { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
input, select, button { font: inherit; padding: 6px 10px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--card); color: var(--fg); }
button { cursor: pointer; }
table { width: 100%; border-collapse: collapse; background: var(--card);
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line);
  vertical-align: top; }
th { font-weight: 600; font-size: 12px; text-transform: uppercase;
  letter-spacing: .04em; color: var(--muted); cursor: pointer; user-select: none; }
th[data-sort]:hover { color: var(--fg); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.engine { display: grid; grid-template-columns: 110px 1fr auto; gap: 8px;
  padding: 3px 0; align-items: baseline; }
.engine + .engine { border-top: 1px dashed var(--line); }
.tag { font-size: 12px; color: var(--accent); font-weight: 600; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.users { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px;
  padding: 4px 12px; cursor: pointer; }
.chip.on { border-color: var(--accent); color: var(--accent); }
.login { max-width: 320px; margin: 18vh auto; display: grid; gap: 10px;
  background: var(--card); padding: 24px; border: 1px solid var(--line); border-radius: 10px; }
