:root {
  color-scheme: dark;
  --bg: #10151f;
  --panel: #192332;
  --line: #35445a;
  --text: #edf3fc;
  --muted: #b4c2d7;
  --accent: #87e5c2;
  --amber: #f4d38e;
  --red: #ffc1c1;
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 15px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); }
.topbar { height: 68px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; padding: 0 max(24px, calc((100% - 1160px) / 2)); background: #141c28; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--accent); font-weight: 800; letter-spacing: .09em; white-space: nowrap; }
.brand small { color: var(--muted); font-weight: 500; letter-spacing: normal; margin-left: 8px; }
.brand-mark { display: grid; place-items: center; height: 34px; width: 34px; border: 1px solid #416c64; border-radius: 9px; background: #203d3b; }
.brand-mark svg { width: 22px; height: 22px; }
main { max-width: 1210px; min-height: 72vh; margin: auto; padding: 38px 24px 24px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -.035em; margin-bottom: 9px; }
h2 { font-size: 1.45rem; letter-spacing: -.02em; margin-bottom: 6px; }
h3 { font-size: 1rem; margin-bottom: 10px; }
.muted { color: var(--muted); line-height: 1.5; }
.eyebrow { font-size: .72rem; font-weight: 750; letter-spacing: .13em; color: var(--accent); margin-bottom: 8px; }
.intro, .section-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.intro { margin-bottom: 24px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 13px; padding: 21px; margin-bottom: 16px; }
.login { margin: 6vh auto; max-width: 475px; padding: 28px; }
.login h1 { font-size: 2rem; }
.login form { display: grid; margin-top: 20px; gap: 9px; }
label { display: block; font-size: .82rem; font-weight: 650; color: var(--muted); }
input, button { border: 1px solid #536784; border-radius: 7px; min-height: 40px; padding: 8px 12px; font: inherit; }
input { min-width: 0; background: var(--bg); color: var(--text); }
button { color: var(--text); background: #26364e; font-weight: 650; cursor: pointer; }
button:hover:not(:disabled) { border-color: var(--accent); }
button:disabled { opacity: .46; cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.primary { background: var(--accent); border-color: var(--accent); color: #102921; }
.primary:hover:not(:disabled) { background: #a5efd5; }
.quiet { background: transparent; }
.danger { color: var(--red); }
.notice { padding: 10px 14px; margin: 0 0 14px; background: #203d3b; border-radius: 7px; color: #d0f9ea; overflow-wrap: anywhere; }
.notice[data-error="true"] { background: #432a34; color: var(--red); }
.login .notice { margin: 12px 0 0; }
.invite { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 17px 25px; align-items: center; }
.actions { display: flex; gap: 8px; align-items: center; }
.invite form label, .invite-result label { margin-bottom: 6px; }
.invite .actions input { flex: 1; }
.revoke-invite { min-height: 32px; margin-top: 7px; font-size: .82rem; }
.invite-result { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 14px; }
.invite-result p { margin-top: 6px; font-size: .84rem; }
.section-top { margin-bottom: 12px; }
.filter { margin-bottom: 14px; flex-wrap: wrap; }
.filter input { width: 175px; }
.empty { text-align: center; border: 1px dashed var(--line); border-radius: 9px; color: var(--muted); padding: 28px 16px; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
table { border-collapse: collapse; width: 100%; min-width: 635px; text-align: left; }
th, td { padding: 8px 11px; white-space: nowrap; }
th { background: #202e43; font-size: .78rem; color: var(--muted); }
td { border-top: 1px solid var(--line); font-size: .9rem; }
tbody tr:hover, tbody tr[data-selected="true"] { background: #203342; }
.player-link { padding: 4px 3px; border: 0; min-height: 30px; background: transparent; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.pill { display: inline-block; padding: 4px 8px; border-radius: 4px; background: #29384e; color: var(--muted); font-size: .76rem; font-weight: 700; }
.pill[data-tone="green"] { color: var(--accent); background: #20413b; }
.pill[data-tone="amber"] { color: var(--amber); background: #443824; }
.pill[data-tone="red"] { color: var(--red); background: #452c37; }
.pagination { display: flex; gap: 9px; justify-content: flex-end; align-items: center; margin-top: 12px; }
.pagination button { min-height: 34px; }
.mono { font-family: Consolas, ui-monospace, monospace; overflow-wrap: anywhere; }
.coverage { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.coverage div, .evidence { border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; background: var(--bg); }
.coverage dt { color: var(--muted); font-size: .76rem; }
.coverage dd { margin: 4px 0 0; font-weight: 650; }
.evidence-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.evidence { margin-bottom: 8px; }
.evidence p { margin-top: 4px; }
.evidence .mono { font-size: .84rem; }
.detail-actions { flex-wrap: wrap; margin-top: 16px; }
footer { text-align: center; color: var(--muted); padding: 12px 20px 25px; font-size: .8rem; }
@media (max-width: 720px) {
  main { padding: 24px 14px; }
  .topbar { padding: 0 14px; }
  .card { padding: 15px; }
  .intro { align-items: flex-start; flex-direction: column; }
  .invite, .evidence-grid { grid-template-columns: minmax(0, 1fr); }
  .invite .actions { flex-wrap: wrap; }
  .invite .actions input { flex-basis: 100%; }
  .section-top { align-items: flex-start; flex-wrap: wrap; }
}
