/*
 * WCAG 2.2 AA: every text colour below is >= 4.5:1 on --bg, --panel and its badge background
 * (checked by test/contrast.test.ts). Sizes are rem so text follows the user's browser font size.
 * Never fade text with opacity: it silently drops contrast below AA.
 */
:root {
  --bg: #12141a; --panel: #161922; --line: #2a2f3d; --text: #e3e5ea; --muted: #9aa1b0;
  --pos: #86c285; --neg: #ec8a7e; --amber: #e8bb5c; --blue: #93abf0; --red: #f08a7a;
  --near-bg: #3a1f1f; --mid-bg: #3a321c; --far-bg: #1f2640;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { font-size: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 0.875rem; line-height: 1.5; }
main { max-width: 1400px; margin: 0 auto; padding: 16px; }
.panel { background: var(--panel); border-top: 1px solid var(--line); }
.panel-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 10px 8px 6px; }
h1 { font-size: 0.875rem; font-weight: 600; margin: 0; }
.sub { margin: 2px 0 0; color: var(--muted); font-size: 0.8125rem; }
.meta { text-align: right; color: var(--muted); font-size: 0.8125rem; }
.updated.stale { color: var(--amber); font-weight: 600; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 900px; }
th { text-transform: uppercase; font-size: 0.75rem; font-weight: 600; color: var(--muted); text-align: right; padding: 8px; letter-spacing: .03em; border-bottom: 1px solid var(--line); }
td { padding: 8px; text-align: right; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 0.8125rem; color: var(--muted); white-space: nowrap; }
th.l, td.l { text-align: left; }
th.c, td.c { text-align: center; }
td.exp { font-family: inherit; color: var(--text); }
td.mp { color: var(--text); font-weight: 700; }
td.mp.amb { font-weight: 400; color: var(--muted); }
.q { color: var(--muted); font-size: 0.75rem; margin-left: 2px; }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.dte { display: inline-block; font-family: var(--mono); font-size: 0.75rem; padding: 0 5px; margin-left: 6px; border-radius: 3px; font-weight: 700; }
.dte.near { color: var(--red); background: var(--near-bg); }
.dte.mid { color: var(--amber); background: var(--mid-bg); }
.dte.far { color: var(--blue); background: var(--far-bg); }
.kind { display: inline-block; font-family: var(--mono); font-size: 0.75rem; border: 1px solid var(--muted); border-radius: 3px; padding: 0 3px; margin-left: 6px; color: var(--muted); }
.g-long { color: var(--pos); }
.g-short { color: var(--neg); }
.g-too_close { color: var(--amber); }
.pin { color: var(--pos); font-weight: 700; }
.held { color: var(--red); font-weight: 700; }
.held.dim { color: var(--muted); font-weight: 400; font-style: italic; }
.status { padding: 24px 8px; color: var(--muted); text-align: center; }
footer { color: var(--muted); font-size: 0.75rem; padding: 12px 8px; }
