/* Ramp Rush web admin (ARCHITECTURE §2.27). Light and dark follow the system; no inline styles (CSP). */
:root {
  color-scheme: light;
  --bg: #f5f6f8;
  --bg-glow: #e9edfb;
  --surface: #ffffff;
  --surface-2: #f2f4f7;
  --border: #e3e6ec;
  --grid: #edf0f4;
  --text: #111827;
  --text-2: #4a5263;
  --muted: #6b7385;
  --accent: #4b5fe0;
  --accent-ink: #ffffff;
  --accent-soft: #eceffd;
  --series-1: #4b6be8;
  --series-2: #ee8a3c;
  --series-3: #12a87b;
  --good: #11845b;
  --good-soft: #e3f5ed;
  --bad: #c83a3a;
  --bad-soft: #fbe9e9;
  --warn: #9a6a00;
  --warn-soft: #fff4d6;
  --tip-bg: #1d2333;
  --tip-ink: #f3f5f9;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-lg: 0 10px 30px rgba(16, 24, 40, .12);
  --i-blue: #4b6be8; --i-blue-bg: #eaeefd;
  --i-green: #12a87b; --i-green-bg: #e2f6ef;
  --i-orange: #e07b2c; --i-orange-bg: #fdefe3;
  --i-violet: #8a55e0; --i-violet-bg: #f1eafc;
  --i-gold: #c08a00; --i-gold-bg: #fdf4d9;
  --i-pink: #d6457f; --i-pink-bg: #fce8f0;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0c0f15; --bg-glow: #151b2c; --surface: #141923; --surface-2: #1b212d; --border: #262d3b; --grid: #1f2633;
    --text: #eef1f6; --text-2: #b6bdcb; --muted: #8790a3; --accent: #7d8cff; --accent-ink: #0c0f15; --accent-soft: #1e2440;
    --series-1: #7d95ff; --series-2: #f3a15c; --series-3: #2fc495;
    --good: #45cf96; --good-soft: #13291f; --bad: #ff7676; --bad-soft: #351819; --warn: #f0c050; --warn-soft: #33290f;
    --tip-bg: #eef1f6; --tip-ink: #111827;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4); --shadow-lg: 0 12px 32px rgba(0, 0, 0, .55);
    --i-blue: #7d95ff; --i-blue-bg: #1c2340; --i-green: #2fc495; --i-green-bg: #12291f; --i-orange: #f3a15c;
    --i-orange-bg: #33220f; --i-violet: #b18cff; --i-violet-bg: #251c3d; --i-gold: #f0c050; --i-gold-bg: #2f2710;
    --i-pink: #ff7fb0; --i-pink-bg: #351a27;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c0f15; --bg-glow: #151b2c; --surface: #141923; --surface-2: #1b212d; --border: #262d3b; --grid: #1f2633;
  --text: #eef1f6; --text-2: #b6bdcb; --muted: #8790a3; --accent: #7d8cff; --accent-ink: #0c0f15; --accent-soft: #1e2440;
  --series-1: #7d95ff; --series-2: #f3a15c; --series-3: #2fc495;
  --good: #45cf96; --good-soft: #13291f; --bad: #ff7676; --bad-soft: #351819; --warn: #f0c050; --warn-soft: #33290f;
  --tip-bg: #eef1f6; --tip-ink: #111827;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4); --shadow-lg: 0 12px 32px rgba(0, 0, 0, .55);
  --i-blue: #7d95ff; --i-blue-bg: #1c2340; --i-green: #2fc495; --i-green-bg: #12291f; --i-orange: #f3a15c;
  --i-orange-bg: #33220f; --i-violet: #b18cff; --i-violet-bg: #251c3d; --i-gold: #f0c050; --i-gold-bg: #2f2710;
  --i-pink: #ff7fb0; --i-pink-bg: #351a27;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text); min-height: 100vh;
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; line-height: 1.25; margin: 0; font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: 15px; margin: 0; font-weight: 650; }
h3 { font-size: 12px; margin: 16px 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- Icons ---------------------------------------------------------------------------------------- */
svg.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.ic.sm { width: 15px; height: 15px; }

/* --- Top bar -------------------------------------------------------------------------------------- */
.top {
  display: flex; align-items: center; gap: 20px; padding: 10px 24px; position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; white-space: nowrap; }
.brand img { width: 28px; height: 28px; border-radius: 8px; display: block; }
.brand span { color: var(--muted); font-weight: 500; }
nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
nav::-webkit-scrollbar { display: none; }
nav a { display: flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 8px; color: var(--text-2); font-weight: 500; white-space: nowrap; }
nav a:hover { text-decoration: none; background: var(--surface-2); color: var(--text); }
nav a.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.who { margin-left: auto; display: flex; gap: 10px; align-items: center; color: var(--text-2); white-space: nowrap; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px;
  background: var(--accent-soft); color: var(--accent); text-transform: uppercase; }
.who .meta { display: flex; flex-direction: column; line-height: 1.2; }
.who .meta b { color: var(--text); font-weight: 600; font-size: 13px; }
.who .meta small { color: var(--muted); font-size: 11px; }

/* --- Layout --------------------------------------------------------------------------------------- */
main { padding: 24px; max-width: 1440px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.section { margin: 28px 0 12px; display: flex; align-items: center; gap: 8px; }
.section h2 { font-size: 16px; }
.section .ic { color: var(--muted); }
.section p { margin: 0 0 0 4px; color: var(--muted); font-size: 12.5px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; min-width: 0; box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head .legend { margin: 0 0 0 auto; }
.card-foot { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1000px) { .g2 { grid-template-columns: minmax(0, 1fr); } }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.wide { grid-column: 1 / -1; }
.spacer { height: 14px; }
.mt { margin-top: 16px; }

/* --- KPI cards ------------------------------------------------------------------------------------ */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 14px; }
.kpis.k3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpis.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .kpis.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tall { max-height: 440px; overflow: auto; }
.tall thead th { position: sticky; top: 0; z-index: 1; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label icon" "value icon" "foot foot"; gap: 2px 12px; min-width: 0; }
.kpi .label { grid-area: label; display: flex; align-items: center; gap: 4px; color: var(--text-2); font-size: 13px; font-weight: 500; min-width: 0; }
.kpi .value { grid-area: value; font-size: 26px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.25; white-space: nowrap; }
.kpi .icon { grid-area: icon; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; align-self: start; }
.kpi .icon svg.ic { width: 20px; height: 20px; }
.kpi .foot { grid-area: foot; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; font-size: 12px; color: var(--muted); }
.kpis.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kpis.compact .kpi { grid-template-areas: "label" "value" "foot"; grid-template-columns: 1fr; padding: 12px 14px; box-shadow: none; background: var(--surface-2); border-color: transparent; }
.kpis.compact .kpi .value { font-size: 20px; }
.c-blue { color: var(--i-blue); background: var(--i-blue-bg); }
.c-green { color: var(--i-green); background: var(--i-green-bg); }
.c-orange { color: var(--i-orange); background: var(--i-orange-bg); }
.c-violet { color: var(--i-violet); background: var(--i-violet-bg); }
.c-gold { color: var(--i-gold); background: var(--i-gold-bg); }
.c-pink { color: var(--i-pink); background: var(--i-pink-bg); }
.delta { display: inline-flex; align-items: center; gap: 2px; padding: 1px 7px; border-radius: 999px; font-weight: 600; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.delta.up { color: var(--good); background: var(--good-soft); }
.delta.down { color: var(--bad); background: var(--bad-soft); }
.delta.flat { color: var(--muted); background: var(--surface-2); }

/* --- Controls ------------------------------------------------------------------------------------- */
button, .btn { font: inherit; font-weight: 500; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  border-radius: 9px; padding: 7px 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; justify-content: center; }
button:hover { background: var(--surface-2); }
button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
button.primary:hover { filter: brightness(1.06); background: var(--accent); }
button.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, var(--border)); }
button.danger:hover { background: var(--bad-soft); }
button.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
button.ghost:hover { background: var(--surface-2); color: var(--text); }
button:disabled { opacity: .55; cursor: default; }
input, select, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 9px; padding: 7px 10px; max-width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
textarea { width: 100%; min-height: 180px; }
label { display: block; color: var(--text-2); font-size: 12px; font-weight: 500; margin: 10px 0 4px; }
.row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.row > div { min-width: 0; }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { border: 0; border-radius: 7px; background: transparent; color: var(--text-2); padding: 5px 12px; font-size: 13px; }
.seg button:hover { color: var(--text); background: transparent; }
.seg button.on { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow); }
.switch { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--text-2); cursor: pointer; }
.switch input { appearance: none; -webkit-appearance: none; width: 34px; height: 20px; border-radius: 999px; background: var(--border); position: relative; margin: 0; padding: 0; border: 0; cursor: pointer; transition: background .15s; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: transform .15s; }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(14px); }
.label-with-tip { display: inline-flex; align-items: center; gap: 4px; }

/* --- Tooltips ------------------------------------------------------------------------------------- */
.info { position: relative; display: inline-grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--muted); cursor: help; flex: none; vertical-align: middle; }
.info:hover, .info[aria-expanded="true"] { color: var(--accent); background: var(--accent-soft); }
.info svg.ic { width: 15px; height: 15px; }
.tipbox { position: fixed; z-index: 60; max-width: min(300px, calc(100vw - 24px)); padding: 9px 11px; border-radius: 9px;
  background: var(--tip-bg); color: var(--tip-ink); font-size: 12.5px; line-height: 1.45; box-shadow: var(--shadow-lg);
  pointer-events: none; font-weight: 400; text-transform: none; letter-spacing: 0; white-space: normal; text-align: left; }
.tipbox b { font-weight: 650; }

/* --- Tables --------------------------------------------------------------------------------------- */
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--grid); vertical-align: middle; }
th { color: var(--muted); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; background: var(--surface-2); white-space: nowrap; }
thead th:first-child { border-top-left-radius: 8px; }
thead th:last-child { border-top-right-radius: 8px; }
th .label-with-tip { gap: 2px; }
tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
tbody tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; }
th.num .label-with-tip { flex-direction: row-reverse; }
td:first-child { white-space: nowrap; }
.scroll { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* --- Pills, banners, toasts ----------------------------------------------------------------------- */
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
  background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.good { background: var(--good-soft); color: var(--good); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.accent { background: var(--accent-soft); color: var(--accent); }
.banner { padding: 12px 14px; border-radius: 10px; background: var(--bad-soft); color: var(--bad); margin-bottom: 14px; }
.toast { position: fixed; bottom: 20px; right: 20px; background: var(--tip-bg); color: var(--tip-ink); padding: 11px 16px; border-radius: 10px;
  max-width: min(440px, calc(100vw - 32px)); z-index: 70; box-shadow: var(--shadow-lg); }
.toast.bad { background: var(--bad); color: #fff; }
.empty { color: var(--muted); font-size: 13px; padding: 18px 0; text-align: center; }
.loading { display: grid; place-items: center; min-height: 40vh; color: var(--muted); }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Charts --------------------------------------------------------------------------------------- */
.chart { position: relative; touch-action: pan-y; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .gridline { stroke: var(--grid); stroke-width: 1; }
.chart .baseline { stroke: var(--border); stroke-width: 1; }
.chart .cross { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.chart .line { fill: none; stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { stroke: none; }
.chart .dot { stroke: var(--surface); stroke-width: 2; }
.chart .bar { rx: 2; }
.s1 { stroke: var(--series-1); } .s2 { stroke: var(--series-2); } .s3 { stroke: var(--series-3); }
.f1 { fill: var(--series-1); } .f2 { fill: var(--series-2); } .f3 { fill: var(--series-3); }
.gs1 { stop-color: var(--series-1); } .gs2 { stop-color: var(--series-2); } .gs3 { stop-color: var(--series-3); }
.gtop { stop-opacity: .22; } .gbot { stop-opacity: 0; }
.ctip { position: absolute; pointer-events: none; background: var(--surface); border: 1px solid var(--border); border-radius: 9px;
  padding: 8px 10px; font-size: 12px; box-shadow: var(--shadow-lg); white-space: nowrap; z-index: 3; min-width: 120px; }
.ctip .t { color: var(--muted); margin-bottom: 4px; font-weight: 500; }
.ctip .r { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.ctip .r b { font-variant-numeric: tabular-nums; }
.ctip .r span { display: inline-flex; align-items: center; color: var(--text-2); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); }
.legend > span { display: inline-flex; align-items: center; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; flex: none; }
.sw1 { background: var(--series-1); } .sw2 { background: var(--series-2); } .sw3 { background: var(--series-3); }
.bars { display: flex; flex-direction: column; gap: 10px; }
.bars .bar { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; font-size: 13px; }
.bars .k { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.bars .k small { color: var(--muted); margin-left: 6px; font-size: 11.5px; }
.bars .v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.bars .v small { color: var(--muted); font-weight: 400; margin-left: 6px; }
.bars .track { grid-column: 1 / -1; background: var(--surface-2); border-radius: 999px; height: 8px; overflow: hidden; }
.bars .fill { background: var(--series-1); height: 100%; border-radius: 999px; min-width: 2px; }
.bars .fill.neg { background: var(--bad); }
.bars .bar[tabindex] { cursor: help; border-radius: 6px; }

/* --- Login ---------------------------------------------------------------------------------------- */
body.signed-out { background: radial-gradient(1200px 600px at 50% -10%, var(--bg-glow), transparent 70%), var(--bg); }
body.signed-out .top { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; justify-content: center; }
body.signed-out .top .brand { display: none; }
.login { max-width: 400px; margin: 6vh auto 0; padding: 32px 28px 26px; border-radius: 18px; box-shadow: var(--shadow-lg); }
.login .mark { width: 56px; height: 56px; border-radius: 16px; display: block; margin: 0 auto 14px; }
.login h1 { text-align: center; font-size: 22px; }
.login .lead { text-align: center; color: var(--muted); margin: 6px 0 18px; font-size: 13.5px; }
.login input { width: 100%; padding: 10px 12px; font-size: 15px; }
.login input#code { letter-spacing: .3em; font-variant-numeric: tabular-nums; }
.login button.primary { width: 100%; margin-top: 18px; padding: 11px 14px; font-size: 15px; }
.login .fine { text-align: center; color: var(--muted); font-size: 12px; margin: 16px 0 0; }
.err { color: var(--bad); margin-top: 10px; min-height: 1.3em; font-size: 13px; text-align: center; }

@media (max-width: 760px) {
  .top { gap: 10px 12px; padding: 8px 16px; flex-wrap: wrap; }
  nav { order: 3; width: 100%; margin: 0 -4px; }
  nav a { padding: 6px 10px; }
  .who .meta { display: none; }
  main { padding: 16px; }
  h1 { font-size: 20px; }
  .kpis, .kpis.k3, .kpis.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpis.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .kpis.compact .kpi { padding: 10px; }
  .kpis.compact .kpi .value { font-size: 17px; }
  .kpi { padding: 12px; grid-template-areas: "icon" "label" "value" "foot"; grid-template-columns: 1fr; }
  .kpi .icon { width: 32px; height: 32px; border-radius: 9px; margin-bottom: 6px; }
  .kpi .icon svg.ic { width: 17px; height: 17px; }
  .kpi .value { font-size: 21px; }
  .kpi .label { font-size: 12px; }
  .card { padding: 14px; border-radius: 12px; }
  .section { flex-wrap: wrap; }
  .section p { flex-basis: 100%; margin: 0; }
  .page-head { align-items: flex-start; }
  .toast { left: 16px; right: 16px; bottom: 16px; }
  .login { margin-top: 3vh; padding: 26px 20px 22px; }
  dl.kv { grid-template-columns: 1fr; gap: 2px; }
  dl.kv dd { margin-bottom: 8px; }
}

/* --- Players list --------------------------------------------------------------------------------- */
.plist-head { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; }
.plist-search { display: flex; align-items: center; gap: 6px; flex: 1 1 360px; max-width: 560px; position: relative; }
.plist-search > svg.ic { position: absolute; left: 11px; color: var(--muted); pointer-events: none; }
.plist-search input { flex: 1; min-width: 0; padding-left: 34px; }
.plist-summary { margin: 0 0 0 auto; }
.plist-filters { display: flex; gap: 8px 16px; align-items: flex-end; flex-wrap: wrap; margin: 4px 0 14px; }
.plist-toggles { display: flex; gap: 8px 18px; flex-wrap: wrap; padding-bottom: 7px; }
.plist-body { transition: opacity .15s; }
.plist-body.busy { opacity: .55; }
table.players th { padding: 6px 8px; }
table.players td { padding: 9px 8px; white-space: nowrap; }
table.players tr.click { cursor: pointer; }
.pcell { display: flex; align-items: center; gap: 8px; }
.pcell a { font-weight: 600; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
button.sort { border: 0; background: transparent; padding: 2px 0; font: inherit; color: inherit; text-transform: inherit;
  letter-spacing: inherit; gap: 3px; border-radius: 4px; }
button.sort:hover { background: transparent; color: var(--text); }
button.sort.on { color: var(--accent); }
.pager { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; }
.pager button { padding: 5px 11px; }
@media (max-width: 760px) {
  .plist-summary { margin: 0; flex-basis: 100%; }
  .plist-filters > div:not(.plist-toggles) { flex: 1 1 140px; }
  .plist-filters select { width: 100%; }
  table.players td.first { position: sticky; left: 0; background: var(--surface); z-index: 1; }
  table.players th:first-child { position: sticky; left: 0; z-index: 2; }
  .pcell { flex-wrap: wrap; gap: 2px 6px; }
  .pcell a { max-width: 150px; }
}

/* Author display rules (.top, .who) would otherwise beat the UA [hidden] rule. */
[hidden] { display: none !important; }
