/* The Sports Mattress
   Layout: sticky brand bar + section nav over a single centered column; pages are stacks of
   panels (tables, card grids). The red→green matchup scale is the brand: logo, band, cells. */
:root {
  --bg: #f2f4f8;
  --surface: #ffffff;
  --surface-2: #f7f8fb;
  --ink: #142033;
  --muted: #5a6680;
  --line: #dde2ec;
  --accent: #1f4fa8;
  --accent-soft: #e3eafa;
  --head: #a4c2f4;
  --head-ink: #0f1d33;
  --chip: #e8ecf4;
  --bye: #b7e1cd;
  --cell-ink: #13202f;
  --win: #2f9e6b;
  --good-text: #1b7148;   /* green for text on light surfaces (WCAG AA) */
  --toss: #e0a43a;
  --warn: #f6c75f;
  --bad: #c4483d;
  --bar: #9fb6e6;
  --hdr: #111a2a;          /* header band, dark in both themes so the scale colors read */
  --hdr-ink: #f2f5fb;
  --hdr-muted: #a8b3c7;
  --shadow: 0 1px 2px rgb(20 32 51 / .06), 0 4px 16px rgb(20 32 51 / .05);
  --s-red: #e67c73; --s-orange: #f6b26b; --s-yellow: #ffd966; --s-green: #57bb8a;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d131e; --surface: #141c2a; --surface-2: #182233; --ink: #e7edf7; --muted: #9aa6bc; --line: #26314a;
    --accent: #8fb3ff; --accent-soft: #1e2b47; --head: #2b4677; --head-ink: #eaf1ff; --chip: #1f2a3e; --bye: #2f5a48;
    --bar: #3a5490; --hdr: #0a0f19; --shadow: 0 1px 2px rgb(0 0 0 / .3); --good-text: #6fd09f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d131e; --surface: #141c2a; --surface-2: #182233; --ink: #e7edf7; --muted: #9aa6bc; --line: #26314a;
  --accent: #8fb3ff; --accent-soft: #1e2b47; --head: #2b4677; --head-ink: #eaf1ff; --chip: #1f2a3e; --bye: #2f5a48;
  --bar: #3a5490; --hdr: #0a0f19; --shadow: 0 1px 2px rgb(0 0 0 / .3); --good-text: #6fd09f;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 140px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gutter, .head-inner, .nav-inner, .wrap, .status-inner, .foot-grid, .foot-bottom-inner {
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.head-inner, .nav-inner, .wrap, .status-inner, .foot-grid, .foot-bottom-inner { max-width: 1200px; margin: 0 auto; }

/* ------------------------------------------------------------------ header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--hdr); }
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--hdr); color: var(--hdr-ink); box-shadow: var(--shadow); }
.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; flex-wrap: wrap; }
.brand { text-decoration: none; display: block; min-width: 0; }
.brand:focus-visible { outline-color: var(--hdr-ink); }
/* Wordmark: the matchup scale, red at "The" through green at "Mattress". */
.wordmark {
  display: inline-block; font: 800 clamp(26px, 4.2vw, 36px)/1 var(--display); text-transform: uppercase; letter-spacing: .02em;
  white-space: nowrap; color: var(--s-orange);
  background: linear-gradient(90deg, var(--s-red) 0%, var(--s-red) 12%, var(--s-orange) 38%, var(--s-yellow) 60%, #a9ca7a 78%, var(--s-green) 92%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  padding-bottom: 2px;
}
.head-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
/* Status bar: current week, last update, next update */
.status-bar { background: #0a1120; border-bottom: 1px solid rgb(255 255 255 / .06); font-size: 12.5px; color: var(--hdr-muted); }
.status-inner { display: flex; justify-content: space-between; gap: 6px 16px; padding-block: 6px; flex-wrap: wrap; }
.status-live { display: inline-flex; align-items: center; gap: 8px; color: var(--hdr-ink); font-weight: 600; }
.status-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--s-green); box-shadow: 0 0 0 3px rgb(87 187 138 / .25); }
.btn.head-cta { background: linear-gradient(90deg, var(--s-orange), var(--s-yellow) 55%, #a9ca7a); color: #13202f; border: 0; }
.btn.head-cta:hover { filter: brightness(1.05); border: 0; }
.menu-btn { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid rgb(255 255 255 / .18); background: transparent; cursor: pointer; padding: 0; place-content: center; gap: 4px; }
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--hdr-ink); transition: transform .2s, opacity .2s; }
.nav-open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .menu-btn span:nth-child(2) { opacity: 0; }
.nav-open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menu-btn:focus-visible { outline: 2px solid var(--hdr-ink); }
.nav-mobile-extra { display: none; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: calc(10px + env(safe-area-inset-top, 0px)); }
.site-head .seg { background: rgb(255 255 255 / .1); }
.site-head .seg button { color: var(--hdr-muted); }
.site-head .seg button[aria-pressed="true"] { background: var(--hdr-ink); color: var(--hdr); }
.site-nav { border-top: 1px solid rgb(255 255 255 / .1); }
.nav-inner { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav-inner::-webkit-scrollbar { display: none; }
.nav-inner a {
  font: 700 16px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  color: var(--hdr-muted); padding: 13px 12px 11px; border-bottom: 3px solid transparent;
}
.nav-inner a:hover { color: var(--hdr-ink); }
.nav-inner a[aria-current="page"] { color: var(--hdr-ink); border-bottom-color: var(--hdr-ink); }
.nav-inner a:focus-visible { outline-color: var(--hdr-ink); outline-offset: -2px; }
.scale-band { height: 4px; background: linear-gradient(90deg, var(--s-red), var(--s-orange) 35%, var(--s-yellow) 60%, var(--s-green)); }

/* ------------------------------------------------------------------ page */
.wrap { padding-block: 26px 56px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; min-height: 100vh; align-content: start; }
.wrap:focus { outline: none; }
.loading { color: var(--muted); }
.page-head { display: grid; gap: 6px; }
.eyebrow { font: 700 14px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
h1 { font: 800 clamp(32px, 5.5vw, 52px)/.95 var(--display); text-transform: uppercase; letter-spacing: .01em; margin: 0; text-wrap: balance; }
h2 { font: 800 24px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; margin: 0; }
h3 { font: 700 18px/1.1 var(--display); text-transform: uppercase; letter-spacing: .04em; margin: 0; }
.lede { color: var(--muted); margin: 4px 0 0; max-width: 68ch; }
.section { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section-head a { font: 700 14px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.panel-pad { padding: 16px; }
.muted { color: var(--muted); }
.notes { color: var(--muted); font-size: 13px; display: grid; gap: 4px; max-width: 75ch; }
.notes p { margin: 0; }
.empty { padding: 36px 16px; text-align: center; color: var(--muted); }
.more { display: flex; justify-content: center; gap: 12px; align-items: center; color: var(--muted); font-size: 13px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ controls */
.controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.seg { display: inline-flex; background: var(--chip); border-radius: 8px; padding: 3px; gap: 2px; }
.seg button {
  font: 700 15px/1 var(--display); letter-spacing: .06em; text-transform: uppercase;
  border: 0; background: transparent; color: var(--muted); padding: 9px 13px; border-radius: 6px; cursor: pointer;
}
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / .15); }
.seg-sm button { font-size: 13px; padding: 7px 9px; }
.seg-lg button { font-size: 19px; padding: 9px 17px; }
input[type="search"], select {
  font: 500 15px/1.2 var(--body); padding: 9px 12px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); min-width: 0;
}
input[type="search"] { flex: 1 1 200px; max-width: 300px; }
.btn {
  display: inline-flex; align-items: center; gap: 6px; font: 700 14px/1 var(--display); letter-spacing: .08em; text-transform: uppercase;
  padding: 10px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none;
}
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.small { padding: 7px 10px; font-size: 12px; }
.legend { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.legend .bar { width: 150px; height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--s-red), var(--s-orange), var(--s-green)); }

/* ------------------------------------------------------------------ tables */
.table-box { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { padding: 8px 10px; text-align: center; white-space: nowrap; border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: 0; }
thead th { background: var(--head); color: var(--head-ink); position: sticky; top: 0; z-index: 1; }
th button.sort { all: unset; cursor: pointer; font: 700 13px/1.1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
th button.sort:focus-visible { outline: 2px solid var(--accent); }
th button[data-dir]::after { content: attr(data-dir); margin-left: 4px; font-size: 10px; }
th.l, td.l { text-align: left; }
td { font-weight: 600; }
td.sticky, th.sticky { position: sticky; left: 0; z-index: 1; text-align: left; }
td.sticky { background: var(--surface); }
thead th.sticky { background: var(--head); z-index: 2; }
td.scale { color: var(--cell-ink); }
td.rank { font: 800 19px/1 var(--display); }
td.pa small { font-weight: 600; color: var(--cell-ink); margin-left: 4px; }
.team-tag { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.kick { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
tr.bye td { background: var(--bye); color: var(--ink); }
tr.dim { display: none; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: var(--surface-2); }
td.bar-cell { position: relative; min-width: 72px; }
td.bar-cell .fill { position: absolute; left: 0; top: 6px; bottom: 6px; background: var(--accent-soft); border-radius: 0 4px 4px 0; }
td.bar-cell span { position: relative; }
.plink { all: unset; cursor: pointer; font-weight: 700; color: var(--ink); }
.plink:hover { text-decoration: underline; }
.plink:focus-visible { outline: 2px solid var(--accent); }

/* ------------------------------------------------------------------ chips & badges */
.rchip {
  display: inline-flex; align-items: center; justify-content: center; min-width: 30px; padding: 4px 6px; border-radius: 6px;
  font: 800 15px/1 var(--display); color: var(--cell-ink);
}
.badge { display: inline-block; font: 700 11px/1 var(--body); padding: 4px 6px; border-radius: 4px; background: var(--chip); color: var(--ink); letter-spacing: .02em; }
.badge.out { background: var(--bad); color: #fff; }
.badge.q { background: var(--warn); color: var(--cell-ink); }
.badge.ok { color: var(--muted); }
.trend-up { color: var(--good-text); font-weight: 700; }
.trend-down { color: var(--bad); font-weight: 700; }
.avatar {
  position: relative; width: 34px; height: 34px; border-radius: 50%; background: var(--chip); flex: none; overflow: hidden;
  display: inline-grid; place-items: center; font: 700 12px/1 var(--display); color: var(--muted); vertical-align: middle;
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.pcell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pcell .meta { display: grid; line-height: 1.15; min-width: 0; }
.pcell .meta small { color: var(--muted); font-weight: 600; font-size: 12px; }

/* ------------------------------------------------------------------ home */
.hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.hero-main { padding: 24px; display: grid; gap: 14px; align-content: start; background: var(--hdr); color: var(--hdr-ink); border-radius: 14px; position: relative; overflow: hidden; }
.hero-main .eyebrow { color: var(--s-yellow); }
.hero-main h1 { color: var(--hdr-ink); }
.hero-main p { margin: 0; opacity: .85; max-width: 52ch; }
.hero-quilt { position: absolute; right: -10px; bottom: -10px; display: grid; grid-template-columns: repeat(6, 34px); gap: 3px; opacity: .22; transform: rotate(-8deg); }
.hero-quilt i { height: 34px; border-radius: 6px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; }
.hero-actions .btn { background: var(--hdr-ink); color: var(--hdr); border-color: var(--hdr-ink); }
.hero-actions .btn.ghost { background: transparent; color: var(--hdr-ink); border-color: rgb(255 255 255 / .35); }
.hero-side { display: grid; gap: 10px; align-content: start; }
.stat-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { padding: 14px; display: grid; gap: 4px; }
.tile .k { font: 700 12px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tile .v { font: 800 28px/1 var(--display); }
.tile .s { font-size: 13px; color: var(--muted); }
.tile { align-content: start; }
.tile-name { font-size: 24px; line-height: 1.05; }
.tile-name .plink { font: inherit; }
.tile-game { display: flex; align-items: center; gap: 6px; font-size: 24px; flex-wrap: wrap; }
.tile-game .at { color: var(--muted); font-size: 16px; }
.tile-good { box-shadow: inset 4px 0 0 var(--s-green), var(--shadow); }
.tile-bad { box-shadow: inset 4px 0 0 var(--s-red), var(--shadow); }
.tile-list { display: grid; gap: 3px; font-size: 14px; }
.tile-list small { color: var(--muted); font-weight: 600; font-size: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mcard { padding: 14px 14px 10px; display: grid; gap: 8px; align-content: start; }
.mcard-head { display: flex; justify-content: space-between; align-items: baseline; }
.mcard ol { list-style: none; margin: 0; padding: 0; display: grid; }
.mcard li { display: grid; grid-template-columns: 32px auto minmax(0, 1fr); gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.mcard .faces { display: flex; }
.mcard .faces .avatar { width: 30px; height: 30px; border: 2px solid var(--surface); box-sizing: content-box; }
.mcard .faces .avatar + .avatar { margin-left: -16px; }
.opp-line b { color: var(--ink); font-weight: 700; }
.opp-line { display: flex !important; align-items: center; gap: 4px; flex-wrap: nowrap; overflow: hidden; }
.mcard li:first-child { border-top: 0; }
.mcard li .who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mcard li .who small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.slate { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.game { padding: 12px 14px; display: grid; gap: 8px; }
.game-top { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .03em; }
.game-row { display: grid; gap: 8px; align-items: center; }
.game-row b { font: 800 18px/1 var(--display); }
.game-row .track { height: 8px; background: var(--chip); border-radius: 4px; overflow: hidden; }
.game-row .track i { display: block; height: 100%; border-radius: 4px; }
.game-row .num { text-align: right; font: 700 16px/1 var(--display); }
.list { display: grid; }
.list-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); }
.list-row:first-child { border-top: 0; }
.list-row .right { text-align: right; font-weight: 600; font-size: 14px; }
.list-row .right small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }

.tlogo {
  position: relative; width: 26px; height: 26px; flex: none; display: inline-grid; place-items: center;
  font: 800 10px/1 var(--display); color: var(--muted); background: var(--chip); border-radius: 50%; overflow: hidden;
}
.tlogo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--surface); }
.game-row { grid-template-columns: 26px 40px minmax(0, 1fr) 42px; }
.tlogo.sm { width: 18px; height: 18px; font-size: 7px; }
.tlogo.xs { width: 20px; height: 20px; font-size: 7px; background: rgb(255 255 255 / .85); color: var(--cell-ink); }
.team-cell { display: inline-flex; align-items: center; gap: 10px; }
.wk-cell { display: inline-flex; align-items: center; gap: 5px; }
.pline { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.chart-player { display: flex; align-items: center; gap: 10px; }
.chart-player .faces { display: flex; flex: none; }
.chart-player .faces .avatar { width: 32px; height: 32px; border: 2px solid var(--surface); box-sizing: content-box; }
.chart-player .faces .avatar + .avatar { margin-left: -12px; }
tr.bye .chart-player .faces .avatar { border-color: var(--bye); }
.chart-player .meta { display: grid; gap: 2px; line-height: 1.15; }
.team-line { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.opp-cell { display: inline-flex; align-items: center; gap: 8px; text-align: left; }
.wx-in { display: inline-flex; align-items: center; gap: 6px; text-align: left; }
.wx-icon { width: 26px; height: 26px; flex: none; }
td.wx-rough { background: #fdf1c7; color: var(--cell-ink); }
td.wx-rough .kick { color: #6b5a1e; }
.chart-key { display: grid; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: 13px; color: var(--muted); max-width: 900px; }
.chart-key p { margin: 0; }
.chart-key b { color: var(--ink); }
.list-row .right .up { color: var(--good-text); font-weight: 700; }
.list-row .right .down { color: var(--bad); font-weight: 700; }
.hc-head { display: flex; align-items: center; gap: 8px; }
.inj-panel { padding-bottom: 6px; }
.inj-note { margin: 0; padding: 10px 14px; font-size: 13px; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line); border-radius: 12px 12px 0 0; }
.inj-group h3 { font-size: 13px; letter-spacing: .1em; color: var(--muted); padding: 12px 14px 2px; margin: 0; }
.inj-empty { margin: 0; padding: 6px 14px 10px; font-size: 13px; color: var(--muted); }
.inj-ir { margin: 0; padding: 6px 14px 12px; font-size: 14px; line-height: 1.7; }
.inj-ir small { color: var(--muted); font-size: 12px; }
.hc-dot { width: 10px; height: 10px; border-radius: 50%; }

/* ------------------------------------------------------------------ start/sit + my team */
.pickers { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: end; }
.picker { display: grid; gap: 6px; min-width: 0; }
.picker label, .field label { font: 700 13px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.picker input { max-width: none; width: 100%; font-size: 16px; padding: 12px 14px; font-weight: 600; }
.swap { font-size: 20px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.verdict { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--win); border-radius: 12px; padding: 16px 18px; display: grid; gap: 8px; box-shadow: var(--shadow); }
.verdict.toss { border-left-color: var(--toss); }
.verdict.none { border-left-color: var(--line); }
.verdict .call { font: 800 clamp(26px, 4.5vw, 36px)/1 var(--display); text-transform: uppercase; margin: 0; text-wrap: balance; }
.verdict .margin { color: var(--muted); font-weight: 600; margin: 0; }
.verdict ul { margin: 0; padding-left: 20px; display: grid; gap: 3px; }
table.cmp th, table.cmp td { white-space: normal; }
table.cmp td { width: 36%; font-size: 16px; }
table.cmp th.metric { text-align: left; background: var(--surface); color: var(--muted); font: 600 14px/1.25 var(--body); width: 28%; }
table.cmp tr.group th { background: var(--chip); color: var(--ink); font: 700 13px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; text-align: left; }
table.cmp tr.who td { font: 800 22px/1.1 var(--display); text-transform: uppercase; }
table.cmp tr.who .team-tag { display: block; font: 600 13px/1.3 var(--body); text-transform: none; margin-top: 4px; }
table.cmp tr.proj td { font: 800 30px/1 var(--display); }
table.cmp td.edge { box-shadow: inset 0 0 0 2px var(--win); }
table.cmp td.scale.edge { box-shadow: inset 0 0 0 3px var(--ink); }
.sub2 { display: block; font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 2px; }
td.scale .sub2 { color: var(--cell-ink); }
.example { margin: -6px 0 0; color: var(--muted); font-size: 13px; }
.lineup { display: grid; }
.slot { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); }
.slot:first-child { border-top: 0; }
.slot-tag { font: 800 14px/1 var(--display); letter-spacing: .08em; text-align: center; padding: 6px 0; border-radius: 6px; background: var(--chip); }
.slot .proj { font: 800 22px/1 var(--display); min-width: 44px; text-align: right; }
.slot .x { all: unset; cursor: pointer; color: var(--muted); font-size: 18px; padding: 4px 6px; border-radius: 6px; }
.slot .x:hover { color: var(--bad); }
.slot .x:focus-visible { outline: 2px solid var(--accent); }
.slot.empty-slot { color: var(--muted); }
.addbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.field { display: grid; gap: 6px; }
.addbar input { max-width: none; width: min(100%, 360px); }

/* ------------------------------------------------------------------ schedule */
table.sos td.wk { font-size: 13px; padding: 7px 6px; min-width: 54px; }
table.sos th.po { box-shadow: inset 0 -3px 0 var(--ink); }
table.sos td.wk.bye { background: var(--chip); color: var(--muted); font-weight: 600; }

/* ------------------------------------------------------------------ player drawer */
dialog.drawer {
  margin: 0 0 0 auto; height: 100%; max-height: none; width: min(560px, 100vw); max-width: 100vw; border: 0; padding: 0;
  background: var(--bg); color: var(--ink); box-shadow: -8px 0 32px rgb(0 0 0 / .25);
}
dialog.drawer::backdrop { background: rgb(10 16 28 / .45); }
.drawer-body {
  display: grid; gap: 18px; align-content: start;
  padding: calc(16px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) calc(24px + env(safe-area-inset-bottom, 0px)) 16px;
}
.pd-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.pd-head .avatar { width: 64px; height: 64px; font-size: 20px; }
.pd-head h2 { font-size: 30px; }
.pd-close { all: unset; cursor: pointer; font-size: 26px; line-height: 1; padding: 6px 10px; border-radius: 8px; color: var(--muted); }
.pd-close:hover { background: var(--chip); color: var(--ink); }
.pd-close:focus-visible { outline: 2px solid var(--accent); }
.pd-week { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pd-week .tile { padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.pd-week .tile .v { font-size: 22px; }
.usage-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.usage-grid .tile { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.usage-grid .tile .v { font-size: 22px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart .ax { fill: var(--muted); font: 500 11px var(--body); }
.chart .grid { stroke: var(--line); }
.chart .barp { fill: var(--bar); }
.chart .snapline { stroke: var(--ink); stroke-width: 2; fill: none; }
.chart .snapdot { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.chart-legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.chart-legend i { display: inline-block; width: 12px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.pd-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.log td, .log th { padding: 6px 7px; font-size: 13px; }


/* ------------------------------------------------------------------ Trade Analyzer */
.nav-inner a.nav-hi {
  background: linear-gradient(90deg, var(--s-red), var(--s-orange) 40%, var(--s-yellow) 62%, var(--s-green));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 800;
}
.nav-inner a.nav-hi[aria-current="page"] { border-bottom-color: var(--s-yellow); }
.example-bar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.trade-sides { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px; align-items: start; }
.trade-arrow { align-self: center; font-size: 26px; color: var(--muted); }
.trade-side { padding: 16px; display: grid; gap: 12px; border-top: 5px solid var(--s-red); }
.trade-side.get { border-top-color: var(--s-green); }
.trade-side-head { display: flex; justify-content: space-between; align-items: baseline; }
.trade-list { display: grid; }
.trade-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.trade-row:first-child { border-top: 0; }
.trade-row .meta { display: grid; gap: 2px; min-width: 0; }
.trade-row-val { text-align: right; line-height: 1.1; }
.trade-row-val b { font: 800 20px/1 var(--display); }
.trade-row-val small { display: block; color: var(--muted); font-size: 11px; }
.trade-row .x { all: unset; cursor: pointer; color: var(--muted); font-size: 20px; padding: 2px 6px; border-radius: 6px; }
.trade-row .x:hover { color: var(--bad); }
.trade-row .x:focus-visible { outline: 2px solid var(--accent); }
.trade-side .field input { width: 100%; max-width: none; }
.roster-chips, .balance { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; }
.chip { font: 600 13px/1 var(--body); padding: 7px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); cursor: pointer; }
.chip:hover { border-color: var(--accent); }
.chip small { color: var(--muted); font-weight: 600; }
.trade-verdict { padding: 18px; display: grid; gap: 14px; border-left: 6px solid var(--toss); }
.trade-verdict.win { border-left-color: var(--s-green); }
.trade-verdict.lose { border-left-color: var(--s-red); }
.trade-verdict.none { border-left-color: var(--line); }
.tv-top { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: start; }
.tv-actions { display: flex; gap: 8px; }
.tv-call { font: 800 clamp(30px, 5vw, 46px)/1 var(--display); text-transform: uppercase; margin: 4px 0 0; }
.tv-sub { margin: 6px 0 0; color: var(--muted); font-weight: 600; }
.meter { position: relative; display: flex; height: 38px; border-radius: 10px; overflow: hidden; font-size: 13px; }
.meter span { display: flex; align-items: center; padding: 0 12px; white-space: nowrap; min-width: 0; overflow: hidden; color: var(--cell-ink); }
.meter-give { background: var(--s-red); }
.meter-get { flex: 1; justify-content: flex-end; background: var(--s-green); }
.meter-mid { position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2px; background: var(--ink); opacity: .5; }
.tv-reasons { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.tcards { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 14px; align-items: start; }
.tcard { padding: 16px; display: grid; gap: 12px; position: relative; border-top: 5px solid var(--s-red); }
.tcard.get { border-top-color: var(--s-green); }
.tcard-side { position: absolute; top: 12px; right: 14px; font: 700 11px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tcard h4 { margin: 4px 0 0; font: 700 14px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.tcard h4 .muted { font: 500 12px/1 var(--body); letter-spacing: 0; text-transform: none; }
.tcard-name { font-size: 24px; }
.tcard-name .plink { font: inherit; }
.report-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.avatar.big { width: 58px; height: 58px; font-size: 18px; }
.tcard-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { display: inline-block; font: 700 12px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px; border-radius: 6px; background: var(--chip); color: var(--ink); white-space: nowrap; }
.tag.good { background: #d8f0e3; color: #1d5c3d; }
.tag.bad { background: #f8dcd8; color: #7a2a22; }
.tag.mid { background: var(--chip); color: var(--muted); }
.tag.hot { background: #fde2c6; color: #8a3b12; }
.tag.cold { background: #d9e6fb; color: #1f3f78; }
.tcard-why { margin: -4px 0 0; font-size: 13px; color: var(--muted); }
.tcard-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; background: var(--surface-2); border-radius: 10px; padding: 10px; }
.tcard-nums .k { display: block; font: 700 11px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tcard-nums .v { display: block; font: 800 28px/1.1 var(--display); }
.tcard-nums small { color: var(--muted); font-size: 11px; }
.tcard-form { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 12px; align-items: center; }
.spark { width: 160px; height: 44px; }
.report-use { display: grid; }
.kv { display: grid; grid-template-columns: minmax(0, 1fr) auto 64px; gap: 10px; align-items: center; font-size: 14px; padding: 5px 0; border-top: 1px solid var(--line); }
.kv > span:first-child { color: var(--muted); }
.kv > :last-child { text-align: right; font-size: 13px; }
.kv.tight { grid-template-columns: minmax(0, 1fr) auto; padding: 3px 0; }
.kv.tight:first-child { border-top: 0; }
.sched-row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; align-items: center; }
.sched-label { font-size: 13px; color: var(--muted); display: grid; }
.sched-label b { color: var(--ink); font: 800 18px/1.1 var(--display); }
.report-sched { display: flex; gap: 5px; flex-wrap: wrap; }
.sched-chip { display: grid; text-align: center; padding: 5px 6px; border-radius: 7px; color: var(--cell-ink); min-width: 52px; }
.sched-chip small { font-size: 10px; font-weight: 700; }
.sched-chip b { font: 800 14px/1.1 var(--display); }
table.h2h th small { display: block; font: 600 10px/1.2 var(--body); letter-spacing: .04em; opacity: .75; }
table.h2h thead th.give { box-shadow: inset 0 -4px 0 var(--s-red); }
table.h2h thead th.get { box-shadow: inset 0 -4px 0 var(--s-green); }
table.h2h tbody th { font: 600 13px/1.2 var(--body); color: var(--muted); background: var(--surface); }
@media (max-width: 760px) {
  .trade-sides { grid-template-columns: minmax(0, 1fr); }
  .trade-arrow { justify-self: center; transform: rotate(90deg); }
  .tcards { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 400px) { .tcard-form { grid-template-columns: minmax(0, 1fr); } }


/* ------------------------------------------------------------------ accounts */
.acct { display: flex; gap: 8px; align-items: center; }
.btn.ghost-inv { background: transparent; color: var(--hdr-ink); border-color: rgb(255 255 255 / .28); }
.btn.ghost-inv:hover { border-color: var(--hdr-ink); }
.acct-chip { display: inline-flex; align-items: center; gap: 8px; color: var(--hdr-ink); text-decoration: none; font-weight: 700; font-size: 14px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .18); }
.acct-chip:hover { border-color: var(--hdr-ink); }
.acct-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 800 13px/1 var(--display); color: #13202f; background: linear-gradient(135deg, var(--s-orange), var(--s-yellow) 55%, var(--s-green)); }
.acct-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-mobile-acct { display: none; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 60;
  background: var(--ink); color: var(--bg); padding: 11px 16px; border-radius: 10px; font-weight: 600; font-size: 14px; box-shadow: 0 8px 24px rgb(0 0 0 / .25); transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--bad); color: #fff; }
.auth-wrap { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 28px; align-items: start; }
.auth-card { padding: 26px; display: grid; gap: 14px; }
.auth-card h1 { font-size: clamp(32px, 5vw, 44px); }
.auth-form { display: grid; gap: 12px; }
.auth-form .field input, .settings-form input, .settings-form select, .inline-prompt input, .danger input, .sl-form input {
  font: 500 16px/1.2 var(--body); padding: 11px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); width: 100%; max-width: none; }
.auth-form .field small { font-size: 12px; }
.btn.wide { width: 100%; justify-content: center; padding: 13px; font-size: 15px; }
.btn:disabled { opacity: .6; cursor: wait; }
.auth-msg { margin: 0; min-height: 1.2em; font-size: 14px; }
.auth-msg.bad { color: var(--bad); }
.auth-msg.ok { color: var(--good-text); font-weight: 600; }
.auth-link { font-size: 14px; justify-self: start; }
.auth-foot { border-top: 1px solid var(--line); padding-top: 14px; font-size: 14px; color: var(--muted); }
.auth-side { background: var(--hdr); color: var(--hdr-muted); border-radius: 14px; padding: 26px; position: relative; overflow: hidden; }
.auth-side::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, var(--s-red), var(--s-orange) 35%, var(--s-yellow) 60%, var(--s-green)); }
.auth-side h2 { color: var(--hdr-ink); margin-bottom: 14px; }
.auth-side ul { margin: 0; padding-left: 18px; display: grid; gap: 10px; font-size: 15px; }
.auth-side b { color: var(--hdr-ink); }
.settings-form { display: grid; gap: 12px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.acct-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: start; }
.acct-actions details { flex-basis: 100%; }
.danger summary { cursor: pointer; color: var(--bad); font-weight: 600; font-size: 14px; }
.danger form { margin-top: 10px; }
.btn.danger-btn { background: var(--bad); color: #fff; border-color: var(--bad); }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.team-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.team-bar .field select { min-width: 200px; }
.team-bar-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.team-saved { margin-left: auto; font-size: 13px; }
.team-saved::before { content: "● "; color: var(--win); }
.save-cta { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; border-left: 5px solid var(--s-yellow); }
.inline-prompt { display: grid; gap: 8px; border-left: 5px solid var(--accent); }
.inline-prompt label { font: 700 13px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pro-code-row { display: flex; gap: 8px; }
.saved-trades { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; }
.watch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.watch-card { padding: 12px; display: grid; gap: 10px; }
.watch-stats { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.watch-stats span b { font: 800 18px/1 var(--display); margin-right: 3px; }
.watch-stats small { color: var(--muted); }
@media (max-width: 1060px) { .acct-name { display: none; } .acct-chip { padding: 4px; } }
@media (max-width: 820px) { .auth-wrap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .acct { display: none; }
  .nav-open .nav-mobile-acct { display: grid; }
  .field-row { grid-template-columns: 1fr; }
  .team-saved { margin-left: 0; }
}


/* ------------------------------------------------------------------ cookie banner */
.cookie { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; background: var(--hdr); color: var(--hdr-ink); box-shadow: 0 -6px 24px rgb(0 0 0 / .25);
  padding: 14px max(16px, env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.cookie::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--s-red), var(--s-orange) 35%, var(--s-yellow) 60%, var(--s-green)); }
.cookie-inner { max-width: 1200px; margin: 0 auto; display: flex; gap: 12px 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cookie p { margin: 0; font-size: 14px; color: var(--hdr-muted); max-width: 75ch; }
.cookie p strong { color: var(--hdr-ink); }
.cookie a { color: var(--s-yellow); }
.cookie-actions { display: flex; gap: 8px; }
.cookie .btn { background: transparent; color: var(--hdr-ink); border-color: rgb(255 255 255 / .3); }
.cookie .btn.primary { background: var(--hdr-ink); color: var(--hdr); border-color: var(--hdr-ink); }
.link-btn { all: unset; cursor: pointer; text-decoration: underline; color: inherit; }
.link-btn:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
@media (max-width: 560px) { .cookie-actions { width: 100%; } .cookie-actions .btn { flex: 1; justify-content: center; } }

/* ------------------------------------------------------------------ footer */
.site-foot { background: var(--hdr); color: var(--hdr-muted); margin-top: 24px; position: relative; }
.site-foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--s-red), var(--s-orange) 35%, var(--s-yellow) 60%, var(--s-green)); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 48px 36px; }
.foot-brand { display: grid; gap: 10px; align-content: start; max-width: 40ch; }
.foot-brand p { margin: 0; font-size: 14px; }
.foot-word { font-size: 30px; text-decoration: none; width: fit-content; }
.foot-tag { color: var(--hdr-ink); font-weight: 700; }
.foot-scale { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-top: 4px; }
.foot-scale i { width: 120px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--s-red), var(--s-orange), var(--s-yellow), var(--s-green)); }
.foot-col { display: grid; gap: 10px; align-content: start; }
.foot-col h2 { font: 700 14px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--hdr-ink); margin: 0 0 4px; }
.foot-col a { color: var(--hdr-muted); text-decoration: none; font-size: 14px; width: fit-content; }
.foot-col a:hover, .foot-bottom a:hover { color: var(--hdr-ink); text-decoration: underline; }
.site-foot a:focus-visible { outline-color: var(--hdr-ink); }
.foot-bottom { border-top: 1px solid rgb(255 255 255 / .1); }
.foot-bottom-inner { display: flex; flex-wrap: wrap; gap: 6px 22px; padding-block: 16px calc(18px + env(safe-area-inset-bottom, 0px)); font-size: 12.5px; }
.foot-bottom a { color: var(--hdr-muted); }
.to-top { margin-left: auto; text-decoration: none; }

/* ------------------------------------------------------------------ content pages */
.method-link { margin: 0; font-size: 13px; color: var(--muted); }
.article { display: grid; gap: 22px; max-width: 760px; }
.toc { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 12px 14px; font-size: 13px; }
.article-sec { display: grid; gap: 10px; scroll-margin-top: 150px; }
.article-sec h2 { font-size: 22px; }
.article-sec p, .article-sec li { font-size: 16px; line-height: 1.65; }
.article-sec p { margin: 0; }
.article-sec ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 900px) {
  .head-cta { display: none; }
}
@media (max-width: 760px) {
  .menu-btn { display: grid; }
  .head-tools .seg { display: none; }
  .head-inner { flex-wrap: nowrap; }
  .site-nav { display: none; }
  .nav-open .site-nav { display: block; }
  .nav-open .nav-inner { flex-direction: column; overflow: visible; padding-block: 6px 14px; max-height: calc(100vh - 140px); overflow-y: auto; }
  .nav-open .nav-inner a { padding: 13px 4px; border-bottom: 1px solid rgb(255 255 255 / .08); font-size: 18px; }
  .nav-open .nav-inner a[aria-current="page"] { border-bottom-color: rgb(255 255 255 / .08); box-shadow: inset 3px 0 0 var(--s-yellow); padding-left: 12px; }
  .nav-open .nav-mobile-extra { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; color: var(--hdr-muted); font-size: 13px; }
  .status-meta { display: none; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; padding-block: 36px 24px; }
  .foot-brand { grid-column: 1 / -1; }
  .to-top { margin-left: 0; }
}
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .pickers { grid-template-columns: 1fr; }
  .swap { justify-self: center; transform: rotate(90deg); }
  table.cmp td { font-size: 14px; } table.cmp tr.who td { font-size: 18px; } table.cmp tr.proj td { font-size: 24px; }
  .pd-week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .usage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .slot { grid-template-columns: 48px minmax(0, 1fr) auto auto; gap: 8px; padding: 10px; }
  .hero-main { padding: 18px; }
  .tile-game { font-size: 19px; gap: 4px; flex-wrap: nowrap; }
  .tile-name { font-size: 21px; }
}

/* Crawlable fallback shown before the app renders */
.seo-fallback { display: grid; gap: 10px; max-width: 760px; }
.seo-links { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0; margin: 6px 0 0; list-style: none; font-size: 14px; }

/* Off-season notice */
.off-note { border-left: 5px solid var(--s-yellow); }

/* ------------------------------------------------------------------ news */
.news-list { display: grid; }
.news-item { padding: 14px 16px; border-top: 1px solid var(--line); display: grid; gap: 5px; }
.news-item:first-child { border-top: 0; }
.news-item.compact { padding: 10px 14px; gap: 3px; }
.news-meta { display: flex; gap: 10px; font-size: 12px; color: var(--muted); font-weight: 600; }
.news-src { color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.news-title { margin: 0; font: 700 17px/1.3 var(--body); text-transform: none; letter-spacing: 0; }
.news-item.compact .news-title { font-size: 15px; }
.news-title a { color: var(--ink); text-decoration: none; }
.news-title a:hover { text-decoration: underline; }
.news-sum { margin: 0; color: var(--muted); font-size: 14px; }
.news-players { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 3px; }
.news-players .chip { padding: 5px 9px; font-size: 12px; }

/* ------------------------------------------------------------------ blog */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.post-card { display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: var(--ink); overflow: hidden; transition: transform .15s ease; }
.post-card:hover { transform: translateY(-2px); }
.post-card.big { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-rows: none; }
.post-cover { display: block; aspect-ratio: 1200 / 630; background: var(--chip) center / cover no-repeat; }
.post-cover.blank { background: linear-gradient(120deg, #e67c73, #f6b26b 35%, #ffd966 60%, #57bb8a); opacity: .85; }
.post-card.big .post-cover { aspect-ratio: auto; min-height: 260px; }
.post-card-body { display: grid; gap: 8px; padding: 16px; align-content: start; }
.post-meta { font-size: 12px; color: var(--muted); font-weight: 600; }
.post-card-title { font: 800 22px/1.1 var(--display); text-transform: uppercase; }
.post-card.big .post-card-title { font-size: clamp(26px, 3.5vw, 38px); }
.post-card-ex { color: var(--muted); font-size: 14px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.post { max-width: 760px; display: grid; gap: 16px; }
.post-back { font-size: 14px; font-weight: 600; text-decoration: none; }
.post-title { font-size: clamp(34px, 5.5vw, 54px); }
.post-dek { margin: 0; font-size: 19px; color: var(--muted); line-height: 1.5; }
.post-byline { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 14px; color: var(--muted); font-weight: 600; }
.post-hero { width: 100%; border-radius: 12px; }
.post-body { font-size: 18px; line-height: 1.7; min-width: 0; overflow-wrap: anywhere; }
.post-body > * { margin: 0 0 1em; }
.post-body h2 { font-size: 28px; margin-top: 1.4em; }
.post-body h3 { font-size: 21px; margin-top: 1.2em; }
.post-body img { border-radius: 10px; max-width: min(100%, 640px); height: auto; display: block; margin-inline: auto; }
.post-body blockquote { margin-left: 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--s-yellow); color: var(--muted); }
.post-body ul, .post-body ol { padding-left: 24px; }
.post-body table { width: auto; border: 1px solid var(--line); font-size: 15px; display: block; max-width: 100%; overflow-x: auto; }
.post-body code { background: var(--chip); padding: 1px 5px; border-radius: 4px; font-size: .9em; }
.post-share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border-top: 1px solid var(--line); padding-top: 16px; }
.more-posts { margin-top: 32px; }
.more-posts ul { padding-left: 20px; }

/* ------------------------------------------------------------------ editor */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.editor-main, .editor-box { display: grid; gap: 14px; }
.editor-side { display: grid; gap: 14px; position: sticky; top: 130px; }
.editor input[type="text"], .editor textarea { font: 500 16px/1.5 var(--body); padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); width: 100%; }
.editor #peTitle { font: 800 26px/1.2 var(--display); text-transform: uppercase; }
.editor #peBody { font: 15px/1.6 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; min-height: 420px; resize: vertical; }
.slug-row { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.slug-row input { flex: 1; min-width: 0; }
.md-toolbar { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.md-toolbar > button, .md-upload { font: 600 13px/1 var(--body); padding: 7px 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); cursor: pointer; }
.md-tabs { margin-left: auto; display: inline-flex; background: var(--chip); border-radius: 8px; padding: 3px; }
.md-tabs button { all: unset; cursor: pointer; font: 700 12px/1 var(--display); letter-spacing: .08em; text-transform: uppercase; padding: 7px 10px; border-radius: 6px; color: var(--muted); }
.md-tabs button[aria-pressed="true"] { background: var(--surface); color: var(--ink); }
.md-preview { border: 1px solid var(--line); border-radius: 8px; min-height: 420px; }
.cover-prev { border-radius: 8px; aspect-ratio: 1200 / 630; object-fit: cover; width: 100%; }
.btn.danger-ghost { color: var(--bad); border-color: var(--line); }
@media (max-width: 980px) { .editor { grid-template-columns: minmax(0, 1fr); } .editor-side { position: static; } .post-card.big { grid-template-columns: minmax(0, 1fr); } }
.seg.seg-wrap { flex-wrap: wrap; max-width: 100%; }

/* ------------------------------------------------------------------ player and team pages (pre-built) */
.static-page { display: grid; gap: 18px; max-width: 900px; }
.static-page h2 { font-size: 22px; margin-top: 8px; }
.crumbs { font-size: 13px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.sp-head { display: flex; gap: 16px; align-items: center; }
.sp-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--chip); flex: none; }
.sp-sub { margin: 6px 0 0; color: var(--muted); font-weight: 600; }
.sp-summary { margin: 0; font-size: 17px; line-height: 1.7; max-width: 75ch; }
.sp-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sp-stats > div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: grid; gap: 4px; }
.sp-stats span { font: 700 11px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sp-stats b { font: 800 26px/1 var(--display); }
.sp-verdict { border: 1px solid var(--line); border-left: 6px solid var(--s-yellow); border-radius: 12px; background: var(--surface); padding: 14px 18px; max-width: 75ch; }
.sp-verdict.start { border-left-color: var(--s-green, #3fa45b); }
.sp-verdict.sit { border-left-color: var(--s-red, #d9534f); }
.sp-verdict h2 { margin: 0 0 6px; font-size: 20px; }
.sp-verdict p { margin: 0 0 6px; line-height: 1.6; }
.sp-verdict .sp-verdict-cta { margin: 0; font-weight: 600; }
.ss-sheet { margin-top: 32px; display: grid; gap: 10px; }
.ss-sheet h3 { margin: 12px 0 0; }
.sp-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.sp-tools { color: var(--muted); }
.static-page table th[scope="row"] { text-align: left; color: var(--muted); font-weight: 600; background: var(--surface); }
@media (max-width: 560px) { .sp-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sp-photo { width: 72px; height: 72px; } }

/* Sleeper import */
.badge.prov { background: #1b2a3d; color: #7ff0d4; }
.badge.prov.espn { background: #c8102e; color: #fff; }
.badge.prov.yahoo { background: #6001d2; color: #fff; }
.sl-box { display: grid; gap: 12px; }
.sl-linked { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.sl-linked .sl-hint { flex-basis: 100%; }
.sl-details > summary { cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: 8px; list-style: none; }
.sl-details > summary::-webkit-details-marker { display: none; }
.sl-details > summary::after { content: "▾"; color: var(--muted); margin-left: auto; }
.sl-details:not([open]) > summary::after { content: "▸"; }
.sl-details[open] > summary { margin-bottom: 12px; }
.sl-logo { width: 26px; height: 26px; border-radius: 7px; background: #1b2a3d; color: #7ff0d4; display: inline-grid; place-items: center; font: 800 15px/1 var(--display); flex: none; }
.sl-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.sl-form .field { flex: 1 1 220px; }
.sl-note { margin: 8px 0 0; font-size: 13px; }
.sl-leagues { display: grid; gap: 8px; margin-top: 12px; justify-items: start; }
.sl-league { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.sl-league img, .sl-av { width: 36px; height: 36px; border-radius: 8px; flex: none; object-fit: cover; }
.sl-av { display: grid; place-items: center; background: var(--chip); font: 800 16px/1 var(--display); }
.sl-league .meta { display: grid; gap: 2px; min-width: 0; flex: 1; }
.sl-league .meta b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-partner { margin-top: 4px; }
.sl-partner select { max-width: 100%; }

.imp-tabs { margin-bottom: 14px; }
.imp-tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / .15); }
.imp-body { display: grid; gap: 4px; }
.sl-pick { margin: 12px 0 0; }
.sl-league.hint { border-color: var(--s-green); box-shadow: 0 0 0 1px var(--s-green) inset; }
.sl-paste { align-items: stretch; flex-direction: column; }
.sl-paste .field { flex: none; }
.sl-paste textarea { font: 500 15px/1.4 var(--body); padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); width: 100%; resize: vertical; }
.sl-paste .btn { align-self: flex-start; }
.sl-found { display: grid; gap: 10px; margin-top: 12px; }
.sl-paste-actions { display: flex; gap: 8px; flex-wrap: wrap; }
