:root {
  --bg: #0a0f14;
  --panel: #111a23;
  --panel-edge: #1e2c3a;
  --ink: #dce8f2;
  --ink-dim: #7d93a8;
  --accent: #c8f542;      /* electric turf green */
  --wr: #4cc9f0;
  --rb: #ff5d8f;
  --te: #ffd166;
  --qb: #9b5de5;
  --k: #2dd4bf;
  --grid: #1a2733;
  --hover: #182430;
  --tile: #0d151d;
  --accent-rgb: 200, 245, 66;
  --good: #4ade80;
}
/* Light theme: explicit choice, or system preference when no override */
:root[data-theme="light"] {
  --bg: #f2f5f7; --panel: #ffffff; --panel-edge: #d9e1e8;
  --ink: #16232f; --ink-dim: #5b6d7e; --accent: #4f7d08;
  --wr: #0369a1; --rb: #be185d; --te: #a16207; --qb: #6d28d9; --k: #0f766e;
  --grid: #e5eaef; --hover: #eef2f5; --tile: #f7f9fb;
  --accent-rgb: 79, 125, 8; --good: #15803d;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]):not([data-theme="light"]) {
    --bg: #f2f5f7; --panel: #ffffff; --panel-edge: #d9e1e8;
    --ink: #16232f; --ink-dim: #5b6d7e; --accent: #4f7d08;
    --wr: #0369a1; --rb: #be185d; --te: #a16207; --qb: #6d28d9; --k: #0f766e;
    --grid: #e5eaef; --hover: #eef2f5; --tile: #f7f9fb;
    --accent-rgb: 79, 125, 8; --good: #15803d;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.5 "IBM Plex Mono", ui-monospace, monospace;
}
header { padding: 26px 20px 10px; max-width: 1200px; margin: 0 auto; }
.wordmark {
  font-family: "Barlow Condensed", sans-serif; font-style: italic; font-weight: 700;
  font-size: 44px; letter-spacing: 1px; color: var(--ink);
}
.wordmark span { color: var(--accent); }
.tagline { color: var(--ink-dim); font-size: 13px; margin: -4px 0 16px 2px; }
.controls { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.controls label { color: var(--ink-dim); font-size: 12px; display: flex; gap: 6px; align-items: center; }
select, input[type=search] {
  background: var(--panel); color: var(--ink); border: 1px solid var(--panel-edge);
  border-radius: 6px; padding: 6px 8px; font: inherit; font-size: 13px;
}
input[type=search] { min-width: 180px; }
.status { font-size: 12px; color: var(--ink-dim); }
.status .prov { color: var(--te); }

main { max-width: 1200px; margin: 0 auto; padding: 8px 20px 40px; }
.panel {
  background: var(--panel); border: 1px solid var(--panel-edge);
  border-radius: 12px; padding: 16px 18px; margin-top: 18px;
}
.panel h2 {
  font-family: "Barlow Condensed", sans-serif; font-weight: 700; font-size: 24px;
  margin: 0 0 10px; letter-spacing: 0.5px;
}
.panel h2 small { display: block; font-family: "IBM Plex Mono", monospace; font-weight: 400; font-size: 12px; color: var(--ink-dim); letter-spacing: 0; }
.row { display: flex; gap: 18px; }
.half { flex: 1; min-width: 0; }
@media (max-width: 900px) { .row { flex-direction: column; } }

.chart { position: relative; height: 340px; display: flex; flex-direction: column; }
.chart svg { flex: 1 1 auto; min-height: 0; }
.chart.tall { height: 460px; }
.chart svg { width: 100%; height: 100%; display: block; }
.chart .axis text { fill: var(--ink-dim); font: 11px "IBM Plex Mono", monospace; }
.chart .gridline { stroke: var(--grid); stroke-width: 1; }
.chart .axlabel { fill: var(--ink-dim); font: 12px "IBM Plex Mono", monospace; }
.chart circle { cursor: pointer; transition: r .1s; }
.chart circle:hover { stroke: var(--accent); stroke-width: 2; }
.chart .ptlabel { fill: var(--ink); font: 11px "IBM Plex Mono", monospace; pointer-events: none; paint-order: stroke; stroke: var(--bg); stroke-width: 3px; }
.chart .refline { stroke: var(--accent); stroke-dasharray: 5 5; opacity: .5; }
.chart .trend { fill: none; stroke-width: 2.5; }
.chart .empty { color: var(--ink-dim); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; }

.tooltip {
  position: fixed; z-index: 10; pointer-events: none; background: var(--panel); box-shadow: 0 4px 18px #0006;
  border: 1px solid var(--accent); border-radius: 8px; padding: 8px 12px;
  font-size: 12px; max-width: 260px; display: none;
}
.tooltip b { color: var(--accent); }

.tablewrap { overflow-x: auto; }
table { border-collapse: collapse; width: auto; min-width: 60%; font-size: 12.5px; white-space: nowrap; }
th, td { padding: 5px 10px; text-align: right; }
th:first-child, td:first-child { text-align: left; }
th { color: var(--ink-dim); cursor: pointer; user-select: none; border-bottom: 1px solid var(--panel-edge); position: sticky; top: 0; background: var(--panel); }
th.sorted { color: var(--accent); }
tbody tr { cursor: pointer; }
tbody tr:hover { background: var(--hover); }
tbody tr.pinned td:first-child { color: var(--accent); }
td.pos-WR { color: var(--wr); } td.pos-RB { color: var(--rb); }
td.pos-TE { color: var(--te); } td.pos-QB { color: var(--qb); }
td.pos-K { color: var(--k, #2dd4bf); }

.note { border-color: var(--te); color: var(--ink-dim); }
.prov { color: var(--te); }
footer { max-width: 1200px; margin: 0 auto; padding: 10px 20px 40px; color: var(--ink-dim); font-size: 12px; }

/* ---- nav ---- */
.topnav {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 14px 20px; border-bottom: 1px solid var(--panel-edge);
  background: var(--panel); position: sticky; top: 0; z-index: 5;
}
.topnav .wordmark { font-size: 26px; margin-right: 8px; text-decoration: none; }
.topnav a { color: var(--ink-dim); text-decoration: none; font-size: 14px; }
.topnav a.active, .topnav a:hover { color: var(--accent); }
.navright { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.glossbtn, .qmark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--panel-edge);
  color: var(--ink-dim); text-decoration: none; font-size: 12px; line-height: 1; flex: none;
}
.glossbtn:hover, .qmark:hover { color: var(--accent); border-color: var(--accent); }
.qmark { width: 17px; height: 17px; font-size: 11px; align-self: center; vertical-align: middle; }
.navsearch { position: relative; }
.navresults { position: absolute; right: 0; top: 36px; background: var(--panel); border: 1px solid var(--panel-edge); border-radius: 8px; min-width: 260px; z-index: 20; }
.navresults a { display: block; padding: 7px 12px; color: var(--ink); text-decoration: none; font-size: 13px; }
.navresults a:hover { background: var(--hover); }
.navresults small { color: var(--ink-dim); }
header { padding-top: 16px; }

/* ---- charts extras ---- */
.legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 12px; font-size: 11px; color: var(--ink-dim); padding: 0 4px 5px 0; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; }
.chartctl { display: flex; gap: 14px; margin-bottom: 8px; flex-wrap: wrap; }
.chartctl label { color: var(--ink-dim); font-size: 12px; display: flex; gap: 6px; align-items: center; }
.scoringhost select { margin-right: 0; }

/* ---- misc ---- */
.up { color: var(--good); }
.down { color: #e5484d; }
.pincell { cursor: pointer; color: var(--ink-dim); }
.pincell:hover { color: var(--accent); }
.namecell { cursor: pointer; }
.namecell:hover { color: var(--accent); text-decoration: underline; }
span[class^="pos-"] { font-weight: 500; }
span.pos-WR { color: var(--wr); } span.pos-RB { color: var(--rb); }
span.pos-TE { color: var(--te); } span.pos-QB { color: var(--qb); }
span.pos-K { color: var(--k, #2dd4bf); }
.panel h3 { font-family: "Barlow Condensed", sans-serif; font-size: 19px; margin: 4px 0 8px; }
.empty { color: var(--ink-dim); padding: 16px; }

/* ---- glossary ---- */
.glossary dl { display: grid; grid-template-columns: 220px 1fr; gap: 0 16px; font-size: 13px; border: 1px solid var(--panel-edge); border-radius: 10px; overflow: hidden; }
.glossary dt { color: var(--accent); padding: 9px 12px; border-top: 1px solid var(--panel-edge); }
.glossary dd { margin: 0; color: var(--ink-dim); padding: 9px 12px 9px 0; border-top: 1px solid var(--panel-edge); }
.glossary dt:first-of-type, .glossary dd:first-of-type { border-top: none; }
.glossary dt:nth-of-type(odd), .glossary dd:nth-of-type(odd) { background: var(--tile); }
@media (max-width: 700px) { .glossary dl { grid-template-columns: 1fr; } .glossary dd { margin-bottom: 8px; } }

/* ---- depth charts ---- */
.teamgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.teamcard h3 { margin: 0 0 6px; }
.room { margin-bottom: 8px; }
.room .roomtitle { color: var(--ink-dim); font-size: 11px; letter-spacing: 1px; }
.roomrow { display: flex; align-items: center; gap: 8px; font-size: 12.5px; padding: 2px 0; }
.roomrow .nm { min-width: 150px; cursor: pointer; }
.roomrow .nm:hover { color: var(--accent); }
.roomrow .nm.noid { cursor: default; color: var(--ink-dim); }
.bar { height: 8px; border-radius: 4px; background: var(--grid); flex: 1; position: relative; overflow: hidden; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; }
.roomrow small { color: var(--ink-dim); min-width: 74px; text-align: right; }

/* ---- player page ---- */
.pheader { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 18px 0 4px; }
.pheader .scoringhost { display: inline-flex; gap: 8px; }
.pheader .scoringrow { display: inline-flex; }
.pheader a { color: var(--accent); }
.pheader h1 { font-family: "Barlow Condensed", sans-serif; font-size: 40px; margin: 0; font-style: italic; }
.pheader .meta { color: var(--ink-dim); }
.statgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.stattile { background: var(--tile); border: 1px solid var(--panel-edge); border-radius: 10px; padding: 10px 12px; }
.stattile .v { font-size: 22px; font-family: "Barlow Condensed", sans-serif; font-weight: 700; }
.stattile .k { font-size: 11px; color: var(--ink-dim); }
.benchlist li { margin: 6px 0; color: var(--ink-dim); } .benchlist b { color: var(--ink); }

/* ---- mobile ---- */
/* clip, not hidden: overflow hidden on an ancestor disables position:sticky */
html, body { max-width: 100%; overflow-x: clip; }
@media (max-width: 700px) {
  .topnav { gap: 4px 14px; padding: 8px 12px; position: static; }
  .topnav .wordmark { font-size: 20px; margin-right: 4px; flex-basis: auto; }
  .topnav a { font-size: 12.5px; }
  .navright { margin-left: 0; flex-basis: 100%; }
  .navsearch input { width: 100%; min-width: 0; }
  header { padding: 10px 12px 6px; }
  main { padding: 4px 12px 24px; }
  .controls { gap: 6px 10px; }
  .controls label { font-size: 11px; }
  select, input[type=search] { font-size: 12px; padding: 4px 6px; max-width: 44vw; }
  input[type=search] { min-width: 0; width: 100%; max-width: none; }
  .panel { padding: 12px; border-radius: 10px; margin-top: 12px; }
  .panel h2 { font-size: 20px; }
  .chart { height: 260px; }
  .chart.tall { height: 320px; }
  .legend { font-size: 10px; padding: 2px 6px; gap: 7px; }
  .wordmark { font-size: 32px; }
  .pheader h1 { font-size: 30px; }
  .roomrow .nm { min-width: 110px; font-size: 12px; }
  .roomrow small { min-width: 58px; font-size: 10.5px; }
  table { font-size: 11.5px; }
  th, td { padding: 4px 6px; }
  footer { padding: 8px 12px 28px; }
}

.tlogo { vertical-align: -2px; margin-right: 4px; }
.hshot { border-radius: 50%; object-fit: cover; object-position: top; background: #1a2733; vertical-align: middle; margin-right: 6px; }
.pheader .hshot { margin-right: 0; }

/* toggle-chip checkboxes, consistent with the selects */
label.chk {
  border: 1px solid var(--panel-edge); border-radius: 6px; padding: 5px 10px;
  background: var(--panel); cursor: pointer; user-select: none;
}
label.chk input { accent-color: var(--accent); margin-right: 5px; vertical-align: -1px; }
label.chk:has(input:checked) { border-color: var(--accent); color: var(--accent); }

/* nav dropdown */
.navdrop { position: relative; }
.navdropmenu {
  display: none; position: absolute; left: -8px; top: 100%; padding-top: 8px; z-index: 30;
}
.navdrop:hover .navdropmenu, .navdrop:focus-within .navdropmenu { display: block; }
.navdropmenu a {
  display: block; background: var(--panel); border: 1px solid var(--panel-edge);
  border-bottom: none; padding: 8px 14px; white-space: nowrap; font-size: 13px;
}
.navdropmenu a:last-child { border-bottom: 1px solid var(--panel-edge); border-radius: 0 0 8px 8px; }
.navdropmenu a:first-child { border-radius: 8px 8px 0 0; }


.themesel { font-size: 12px; padding: 4px 6px; }
/* theme: single 1x3 segmented control on the far right */
.themeseg { display: inline-grid; grid-template-columns: repeat(3, auto); border: 1px solid var(--panel-edge); border-radius: 8px; overflow: hidden; }
.themeseg button { font: inherit; font-size: 12px; padding: 5px 8px; border: none; background: none; color: var(--ink-dim); cursor: pointer; display: inline-flex; align-items: center; }
.themeseg svg { width: 14px; height: 14px; display: block; }
.themeseg button + button { border-left: 1px solid var(--panel-edge); }
.themeseg button.on { background: var(--accent); color: #0a0f14; font-weight: 600; }
/* nav group separator */
.navsep { display: inline-block; width: 1px; height: 16px; background: var(--panel-edge); margin: 0 8px; vertical-align: middle; }
body { transition: background .15s; }
.navresults:empty { display: none; }
.ver { color: var(--ink-dim); font-size: 11px; border: 1px solid var(--panel-edge); border-radius: 10px; padding: 2px 8px; }

/* nav structure */
.navburger { display: none; background: none; border: 1px solid var(--panel-edge); border-radius: 6px; color: var(--ink); font-size: 16px; padding: 3px 10px; cursor: pointer; }
.navlinks { display: contents; }
@media (max-width: 700px) {
  .navburger { display: block; margin-left: auto; }
  .topnav { position: static; }
  .navlinks { display: none; }
  .topnav.open .navlinks { display: flex; flex-direction: column; flex-basis: 100%; gap: 2px; }
  .topnav.open .navlinks > a, .topnav.open .navlinks .navdrop > a { display: block; padding: 8px 4px; border-bottom: 1px solid var(--panel-edge); font-size: 14px; }
  .navdropmenu { display: none; position: static; padding: 0 0 0 16px; }
  .navdrop.open .navdropmenu { display: block; }
  .navdrop:hover .navdropmenu { display: none; }
  .navdrop.open:hover .navdropmenu { display: block; }
  .navdropmenu a { border: none; background: none; padding: 6px 4px; color: var(--ink-dim); }
  .themesel, .themeseg { margin-left: 0; }
  .navsep { display: none; }
  .navsearch { flex-basis: 100%; margin: 4px 0 0; }
}

/* leaderboard-style bar rows: fixed label column -> shared bar baseline */
.lbrow { display: grid; grid-template-columns: 250px 1fr 84px; align-items: center; gap: 8px; font-size: 12.5px; padding: 2px 0; }
.lbrow .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.lbrow .nm:hover { color: var(--accent); }
.lbrow small { color: var(--ink-dim); text-align: right; }
.hsp { display: inline-block; border-radius: 50%; background: var(--grid); vertical-align: middle; margin-right: 6px; }
@media (max-width: 700px) {
  .lbrow { grid-template-columns: 1fr 64px; }
  .lbrow .nm { grid-column: 1 / -1; }
}

/* tables: mark overflow with a fade + pin the first column on mobile */
.tablewrap { position: relative; }
.tablewrap.overflowing::after {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 28px;
  pointer-events: none;
  background: linear-gradient(to right, transparent, var(--panel));
}
@media (max-width: 700px) {
  .tablewrap.overflowing th:first-child, .tablewrap.overflowing td:first-child {
    position: sticky; left: 0; background: var(--panel); z-index: 1;
  }
}
th, td { padding: 5px 8px; }



/* compare head-to-head stays readable */
#cmpTable { max-width: 720px; }
#cmpTable tbody tr:nth-child(even) { background: color-mix(in srgb, var(--hover) 50%, transparent); }

@media (max-width: 900px) { .lbrow { grid-template-columns: 240px 1fr 70px; } }

.csvbtn {
  position: absolute; top: -34px; right: 0; font-size: 11px; color: var(--ink-dim);
  background: none; border: 1px solid var(--panel-edge); border-radius: 6px;
  padding: 3px 9px; cursor: pointer;
}
.csvbtn:hover { color: var(--accent); border-color: var(--accent); }
.tablewrap { margin-top: 34px; }
#matrixTable { width: 100%; }

/* ---- sidebar layout (Positions) ---- */
.layout { max-width: 1500px; margin: 0 auto; padding: 8px 20px 40px; display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 18px; align-items: start; }
.layout .content { min-width: 0; }
/* pages with a filter sidebar: the page header sits over the main column,
   not over the sidebar */
header:has(~ .layout) { max-width: 1500px; box-sizing: border-box; padding-left: calc(268px + 18px + 20px); }
.sidebar {
  /* --navh is set from the real nav height so the sticky top nav never
     covers the first filters (default matches a single-row nav) */
  margin-top: 18px;  /* matches .panel margin-top so both columns start flush */
  position: sticky; top: calc(var(--navh, 58px) + 10px); background: var(--panel); border: 1px solid var(--panel-edge);
  border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px;
  max-height: calc(100vh - var(--navh, 58px) - 20px); overflow: auto;
}
.sidebar label { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-dim); }
.sidebar label.chk { justify-content: flex-start; }
.sidebar select, .sidebar .scoringrow select { width: 150px; max-width: none; flex: none; margin-left: auto; }
.sidebar .fgroup, .sidebar .fgroup label { width: 100%; }
.sidebar input[type=search] { width: 100%; min-width: 0; }
.sidebar .scoringhost { display: flex; flex-direction: column; gap: 6px; }
.sidebar .status { order: 99; white-space: normal; }
/* ---- home page ---- */
.homegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 6px; }
.homecard { display: block; text-decoration: none; color: inherit; transition: border-color .12s, transform .12s; }
.homecard:hover { border-color: var(--accent); transform: translateY(-2px); }
.homecard h2 { color: var(--accent); }
.homecard p { margin: 0; color: var(--ink-dim); font-size: 13px; line-height: 1.55; }
/* little schematic preview of what each page looks like */
.homecard .preview { display: block; width: 100%; height: 74px; margin-top: 12px; border-top: 1px solid var(--panel-edge); padding-top: 10px; box-sizing: content-box; }
.homecard .preview .pv-dim { stroke: var(--grid); }
.homecard .preview .pv-ink { stroke: var(--ink-dim); }
.homecard .preview .pv-acc { stroke: var(--accent); }
.homecard .preview .pv-fill-dim { fill: var(--grid); }
.homecard .preview .pv-fill-ink { fill: var(--ink-dim); }
.homecard .preview .pv-fill-acc { fill: var(--accent); }

/* multi-select position chips (Positions sidebar) */
.poschips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 12px; }
/* draft-class multi-select: compact button opening a checkbox list */
.clspick { position: relative; width: 150px; margin-left: auto; }
.clspick summary {
  list-style: none; cursor: pointer; background: var(--tile); color: var(--ink);
  border: 1px solid var(--panel-edge); border-radius: 8px; padding: 5px 10px;
  font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.clspick summary::-webkit-details-marker { display: none; }
.clspick summary::after { content: " ▾"; color: var(--ink-dim); }
.clspick .clsmenu {
  position: absolute; right: 0; top: calc(100% + 4px); z-index: 8; min-width: 150px;
  max-height: 260px; overflow: auto; background: var(--panel);
  border: 1px solid var(--panel-edge); border-radius: 10px; padding: 8px;
  display: flex; flex-direction: column; gap: 4px; box-shadow: 0 6px 24px rgba(0,0,0,.25);
}
/* sidebar position picker: one row of four equal boxes */
.sidebar .poschips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: 100%; }
.sidebar .poschips label.chk { justify-content: center; padding: 6px 4px; margin: 0; }
.poschips .poslbl { color: var(--ink-dim); margin-right: 2px; }
/* filter groups: one consistent structure everywhere filters appear */
.fgroup { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; border-top: 1px solid var(--panel-edge); }
.fgroup:first-of-type { border-top: none; padding-top: 0; }
.fgroup h4 { margin: 0; font: 600 10px/1 "IBM Plex Mono", monospace; letter-spacing: 1.6px; text-transform: uppercase; color: var(--ink-dim); }
.controls .fgroup { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 12px; border-top: none; padding: 0 14px 0 0; border-right: 1px solid var(--panel-edge); }
.controls .fgroup:last-of-type { border-right: none; }
.controls .fgroup h4 { width: auto; }
.scoringrow { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-dim); }
.sidebar .scoringhost, .sidebar .scoringrow { width: 100%; }
.controls .scoringrow span, .pheader .scoringrow span { display: none; }  /* compact contexts: selects only */
.fltbtn { display: none; }
@media (max-width: 900px) {
  .layout { display: block; padding: 4px 12px 24px; }
  header:has(~ .layout) { padding-left: 12px; }
  /* narrow screens: the sidebar becomes a sticky, collapsible Filters bar —
     it stays at the top while scrolling without covering the page */
  .sidebar { position: sticky; top: var(--navh, 58px); z-index: 6; flex-direction: row; flex-wrap: wrap; margin-bottom: 4px; max-height: none; border-radius: 0 0 12px 12px; }
  .fltbtn { display: block; width: 100%; text-align: left; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); background: none; border: none; padding: 2px 0; cursor: pointer; }
  .sidebar:not(.open) > *:not(.fltbtn) { display: none; }
  .sidebar select { width: auto; }
  .sidebar input[type=search] { width: auto; flex: 1; }
  .sidebar .scoringhost { flex-direction: row; }
}
/* compare player chips: breathing room and pill shape */
#chips { margin-top: 14px; gap: 10px; }
#chips .panel { border-radius: 999px; padding: 5px 14px; margin: 0; }
#chips + * , .controls .status { margin-top: 2px; }
label.chk:has(input:disabled) { opacity: .45; cursor: not-allowed; }

/* draggable controls under a chart */
.sliderrow { display: flex; gap: 18px; flex-wrap: nowrap; align-items: center; justify-content: space-between; padding: 8px 4px 2px; font-size: 12px; color: var(--ink-dim); }
.sliderrow label { display: flex; align-items: center; gap: 10px; flex: 1 1 220px; min-width: 0; }
.sliderrow label.chk { flex: 0 0 150px; width: 150px; justify-content: center; margin: 0; }
.sliderrow input[type=range] { flex: 1; min-width: 100px; accent-color: var(--accent); }
.sliderrow input[type=search] { flex: 0 0 150px; min-width: 150px; }
.sliderrow b { color: var(--ink); min-width: 38px; }
@media (max-width: 900px) { .sliderrow { flex-wrap: wrap; } }

/* player-picker chips: equal width; only the NAME fades when too long —
   the chip border stays crisp */
#playerPick label.chk { width: 128px; margin: 0; justify-content: flex-start; overflow: hidden; }
#playerPick .nmfade {
  white-space: nowrap; overflow: hidden; min-width: 0; flex: 1;
  -webkit-mask-image: linear-gradient(90deg, #000 78%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 78%, transparent 100%);
}

/* bye weeks: fill the panel, no dead whitespace on the right */
#byeTable { width: 100%; }
#byeTable th:last-child { text-align: left; }
#byeTable th:first-child, #byeTable td:first-child { width: 110px; white-space: nowrap; }
