/* Cleat Sheetz: colours come from the logo (lime "SHEETZ", chrome "CLEAT", black).
   Lime is the one brand colour and also means "good"; red means "bad". Flat surfaces,
   hairline borders, no gradients. Saira Condensed for titles and scoreboard numbers,
   Barlow for everything else (its tabular figures keep table columns aligned). */
:root {
  --canvas: #0a0b0c; --sunken: #060707; --card: #121416; --raised: #1b1e21; --hover: #22262a;
  --text: #f3f5f4; --text-2: #c2c8c5; --text-3: #8a918e; --iron: #343a3e;
  --line: rgba(255, 255, 255, .07); --line-2: rgba(255, 255, 255, .13);
  --lime: #98e028; --lime-hi: #b4f04c; --lime-deep: #5aa300; --on-lime: #0a0b0c; --chrome: #cfd5da;
  --red: #ff5d4f; --red-hi: #ff9b90; --amber: #f2b33d;
  --good-bg: rgba(152, 224, 40, .13); --bad-bg: rgba(255, 93, 79, .14);
  /* older names still used by page scripts */
  --lav: var(--lime); --ember: var(--red); --go: var(--lime); --pink: var(--chrome);
  --r-sm: 6px; --r-btn: 8px; --r-card: 10px; --r-pill: 9999px;
  --font: "Barlow", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Saira Condensed", "Barlow", ui-sans-serif, system-ui, sans-serif;
  --side: 236px; --head: 60px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--canvas); color: var(--text); }
body { font: 400 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 1; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
img { display: block; }
b, strong { font-weight: 600; }
::selection { background: rgba(152, 224, 40, .3); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 4px; }

/* ── shell ─────────────────────────────────────────────── */
.app-head { position: sticky; top: 0; z-index: 30; height: var(--head); display: flex; align-items: center; gap: 16px;
  padding: 0 20px; background: var(--canvas); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand .wm { height: 21px; width: auto; }
.brand .ic { height: 30px; width: auto; display: none; }
.head-mid { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.head-right { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; background: none; border: 1px solid var(--iron); border-radius: var(--r-btn); width: 38px; height: 38px; cursor: pointer; }
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: calc(100vh - var(--head)); }
.side { position: sticky; top: var(--head); height: calc(100vh - var(--head)); overflow-y: auto; padding: 16px 12px 40px;
  border-right: 1px solid var(--line); background: var(--sunken); }
.side h6 { margin: 20px 10px 6px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.side h6:first-child { margin-top: 6px; }
.side a { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: var(--r-sm); color: var(--text-2);
  font-size: 14px; font-weight: 500; position: relative; }
.side a svg { width: 16px; height: 16px; flex: none; color: var(--text-3); }
.side a:hover { background: var(--raised); color: var(--text); }
.side a.on { background: var(--raised); color: var(--text); }
.side a.on svg { color: var(--lime); }
.side a.on::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 2px; border-radius: 2px; background: var(--lime); }
.side a .soon { margin-left: auto; font-size: 11px; color: var(--text-3); }
.side .lock { margin-left: auto; font-size: 11px; color: var(--text-3); }
main { padding: 28px 36px 80px; max-width: 1320px; width: 100%; }
.scrim { display: none; }

/* ── type ──────────────────────────────────────────────── */
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-3); margin: 0 0 8px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--lime); transform: skewX(-12deg); flex: none; }
.eyebrow a:hover { color: var(--text); }
h1 { font-family: var(--display); font-size: 38px; line-height: 1.05; font-weight: 700; letter-spacing: .005em; text-transform: uppercase; margin: 0; }
h2 { font-family: var(--display); font-size: 24px; line-height: 1.15; font-weight: 700; letter-spacing: .01em; text-transform: uppercase; margin: 0 0 4px; }
h3 { font-family: var(--display); font-size: 17px; line-height: 1.25; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; margin: 0 0 4px; }
h4 { font-weight: 600; }
.sub { color: var(--text-2); margin: 8px 0 0; max-width: 700px; }
.muted { color: var(--text-3); }
.small { font-size: 13px; }
.tiny { font-size: 12px; letter-spacing: .02em; }
.num, td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.grad { color: var(--lime); }
.lav { color: var(--lime); }
.ember { color: var(--red-hi); }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 22px;
  padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.stamp { font-size: 11.5px; font-weight: 600; color: var(--text-3); letter-spacing: .08em; text-transform: uppercase; }

/* ── surfaces ──────────────────────────────────────────── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; }
.card.tight { padding: 0; overflow: hidden; }
.card.flat { background: transparent; }
.card + .card, .stack > * + * { margin-top: 14px; }
.grid > * + * { margin-top: 0; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h3 { margin: 0; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px 18px; }
.tile .k { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.tile .v { font-family: var(--display); font-size: 34px; line-height: 1.1; font-weight: 700; margin-top: 4px; }
.tile .d { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.divider { height: 1px; background: var(--line); margin: 18px 0; border: 0; }

/* ── controls ──────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: var(--r-btn);
  border: 1px solid var(--line-2); background: var(--raised); color: var(--text); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--hover); border-color: rgba(255, 255, 255, .2); }
.btn.go { background: var(--lime); border-color: var(--lime); color: var(--on-lime); }
.btn.go:hover { background: var(--lime-hi); border-color: var(--lime-hi); }
.btn.sm { height: 30px; padding: 0 12px; font-size: 13px; border-radius: var(--r-sm); }
.btn.icon { width: 38px; padding: 0; }
.btn[disabled] { opacity: .45; cursor: default; }
.link { color: var(--lime); cursor: pointer; font-weight: 600; }
.link:hover { color: var(--lime-hi); text-decoration: underline; text-underline-offset: 3px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--sunken); border: 1px solid var(--line-2); border-radius: var(--r-btn); flex-wrap: wrap; }
.seg button { border: 0; background: none; color: var(--text-3); height: 28px; padding: 0 12px; border-radius: 5px; cursor: pointer; font-size: 13px; font-weight: 600; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--raised); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.field, select.field { height: 38px; background: var(--sunken); border: 1px solid var(--iron); border-radius: var(--r-btn); padding: 0 12px; color: var(--text); min-width: 0; }
.field::placeholder { color: var(--text-3); }
.field:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 3px rgba(152, 224, 40, .15); }
select.field { padding-right: 30px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%);
  background-position: calc(100% - 16px) 16px, calc(100% - 11px) 16px; background-size: 5px 5px; background-repeat: no-repeat; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar .grow { flex: 1; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border-radius: 5px; border: 1px solid var(--line-2);
  font-size: 12px; font-weight: 500; color: var(--text-2); white-space: nowrap; background: var(--raised); }
.chip.lav { border-color: rgba(152, 224, 40, .4); color: var(--lime); background: var(--good-bg); }
.chip button { background: none; border: 0; color: var(--text-3); cursor: pointer; padding: 0; font-size: 14px; line-height: 1; }

/* ── tables ────────────────────────────────────────────── */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
th { font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--text-3); background: var(--card);
  border-bottom-color: var(--line-2); position: sticky; top: 0; z-index: 1; }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--text); }
th .arr { color: var(--lime); margin-left: 4px; }
tbody tr:hover td { background: rgba(255, 255, 255, .025); }
tbody tr:last-child td { border-bottom: 0; }
tr.me td { background: rgba(152, 224, 40, .06); }
tr.me td:first-child { box-shadow: inset 2px 0 0 var(--lime); }
tr.tier td { padding: 6px 12px; background: var(--sunken); color: var(--lime); font-family: var(--display); font-size: 12.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; }
td.rk { color: var(--text-3); width: 1%; }
.card.tight .tbl-wrap { max-height: none; }

/* ── player cell, badges, data colour ──────────────────── */
.pc { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.pc img, .pc .ph { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--raised); flex: none; }
.pc .ph { display: grid; place-items: center; font-size: 11px; color: var(--text-3); }
.pc .nm { font-weight: 600; color: var(--text); }
.pc a.nm:hover { color: var(--lime); }
.pc .meta { font-size: 12px; color: var(--text-3); }
.inj { display: inline-grid; place-items: center; min-width: 20px; height: 17px; padding: 0 4px; border-radius: 4px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .04em; margin-left: 6px; color: var(--sunken); background: var(--amber); vertical-align: 1px; }
.inj.d { background: #ff8a3d; }
.inj.o { background: var(--red); color: #fff; }
.grade { display: inline-grid; place-items: center; min-width: 30px; height: 22px; padding: 0 6px; border-radius: 4px; font-size: 12px; font-weight: 700; }
.heat { display: inline-block; min-width: 38px; padding: 2px 8px; border-radius: 4px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.bar { position: relative; height: 6px; border-radius: 3px; background: var(--raised); overflow: hidden; min-width: 60px; }
.bar > i { position: absolute; inset: 0 auto 0 0; background: var(--lime); border-radius: 3px; }
.range { position: relative; height: 6px; width: 110px; border-radius: 3px; background: var(--raised); display: inline-block; vertical-align: middle; }
.range > i { position: absolute; top: 0; bottom: 0; background: rgba(152, 224, 40, .4); border-radius: 3px; }
.range > b { position: absolute; top: -3px; width: 2px; height: 12px; background: var(--text); border-radius: 1px; }
.odds { display: inline-flex; align-items: center; gap: 10px; justify-content: flex-end; }
.odds .bar { width: 64px; min-width: 64px; }
.delta-up { color: var(--lime); }
.delta-dn { color: var(--red-hi); }

/* ── states ────────────────────────────────────────────── */
.state { padding: 48px 24px; text-align: center; color: var(--text-3); }
.state h3 { color: var(--text); }
.state .btn { margin-top: 14px; }
.skel { background: linear-gradient(90deg, var(--card) 0%, var(--raised) 50%, var(--card) 100%); background-size: 200% 100%; animation: sk 1.2s infinite linear;
  border-radius: var(--r-sm); height: 14px; }
@keyframes sk { to { background-position: -200% 0; } }
.err { border-color: rgba(255, 93, 79, .35); }
.err h3 { color: var(--red-hi); }
.note { border-left: 2px solid var(--lime); padding: 8px 0 8px 14px; color: var(--text-2); margin: 10px 0; }
.warn-list { margin: 8px 0 0; padding: 0; list-style: none; }
.warn-list li { color: var(--red-hi); font-size: 13px; padding: 2px 0; }
.warn-list li::before { content: "! "; font-weight: 700; }

/* ── hero (signed-out home): chalk yard lines on the dark card ── */
.hero { position: relative; overflow: hidden; padding: 44px; }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .045) 0 1px, transparent 1px 88px);
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 75%); mask-image: linear-gradient(90deg, transparent 30%, #000 75%); }
.hero > * { position: relative; }
.hero h1 { font-size: 56px; line-height: .98; max-width: 760px; }
.import { display: flex; gap: 8px; max-width: 520px; margin-top: 24px; flex-wrap: wrap; }
.import .field { flex: 1 1 220px; height: 46px; font-size: 16px; }
.import .btn { height: 46px; padding: 0 20px; font-size: 15px; }
.league-pick { display: grid; gap: 8px; margin-top: 14px; max-width: 520px; }
.league-pick button { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; background: var(--sunken);
  border: 1px solid var(--line-2); border-radius: var(--r-btn); cursor: pointer; text-align: left; }
.league-pick button:hover { border-color: var(--lime); }

/* ── matchups ──────────────────────────────────────────── */
.mu { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; }
.mu .team { min-width: 0; }
.mu .team.r { text-align: right; }
.mu .score { font-family: var(--display); font-size: 30px; font-weight: 700; }
.mu .vs { color: var(--text-3); font-size: 11px; font-weight: 600; letter-spacing: .1em; }
.winbar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--raised); margin-top: 14px; }
.winbar i { background: var(--lime); }
.lineups { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin-top: 14px; font-size: 13px; }
.lineups .row { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.lineups .row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lineups .slot { color: var(--text-3); width: 34px; display: inline-block; font-size: 11px; font-weight: 600; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--raised); object-fit: cover; flex: none; }

/* ── trade ─────────────────────────────────────────────── */
.trade { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.asset { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.asset .pc { flex: 1; min-width: 0; }
.asset .val { font-variant-numeric: tabular-nums; color: var(--text-2); font-weight: 600; }
.meter { position: relative; height: 8px; border-radius: 4px; background: linear-gradient(90deg, rgba(255, 93, 79, .55), var(--raised) 40%, var(--raised) 60%, rgba(152, 224, 40, .55)); margin: 26px 0 8px; }
.meter .fair { position: absolute; left: 45%; width: 10%; top: -4px; bottom: -4px; border: 1px dashed var(--line-2); border-radius: 4px; }
.meter .needle { position: absolute; top: -8px; width: 4px; height: 24px; margin-left: -2px; border-radius: 2px; background: var(--text); transition: left .3s ease; }
.verdict { font-family: var(--display); font-size: 28px; line-height: 1.15; font-weight: 700; text-transform: uppercase; }

/* ── player page ───────────────────────────────────────── */
.p-hero { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; min-width: 0; }
.p-hero > div { min-width: 0; }
.p-hero img, .p-hero .ph { width: 96px; height: 96px; border-radius: 50%; background: var(--raised); object-fit: cover; border: 1px solid var(--line-2); }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 140px; padding-top: 10px; }
.chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.chart .col i { display: block; width: 100%; max-width: 34px; border-radius: 3px 3px 0 0; background: var(--lime); min-height: 2px; }
.chart .col i.proj { background: transparent; border: 1px dashed rgba(152, 224, 40, .6); }
.chart .col span { font-size: 10.5px; color: var(--text-3); margin-top: 4px; }
.chart .col em { font-style: normal; font-size: 11px; color: var(--text-2); margin-bottom: 3px; }

/* grid (team x week) */
.mgrid td.c { text-align: center; font-size: 12px; padding: 8px 4px; min-width: 52px; }
.mgrid td.bye { color: var(--text-3); font-size: 11px; text-align: center; }

/* ── modal / toast ─────────────────────────────────────── */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--raised); border: 1px solid var(--line-2);
  border-radius: var(--r-btn); padding: 10px 16px; z-index: 60; font-size: 14px; }

/* the matchup card wears a lime scoreboard strip */
.glow { position: relative; overflow: hidden; }
.glow::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--lime); pointer-events: none; }
.glow > * { position: relative; }

/* ── matchup hero (Today) ──────────────────────────────── */
.mh { padding: 24px; }
.mh-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.mh-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 20px; align-items: center; }
.mh-team { display: flex; align-items: center; gap: 14px; min-width: 0; }
.mh-team.r { justify-content: flex-end; text-align: right; }
.mh .avatar { width: 52px; height: 52px; }
.mh-nm { font-size: 18px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-mid { text-align: center; }
.mh-pct { font-family: var(--display); font-size: 72px; line-height: .95; font-weight: 700; }
.mh-pct span { font-size: 30px; color: var(--text-3); margin-left: 2px; }
.mh-score { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 22px; font-family: var(--display); font-size: 26px; font-weight: 700; }
.mh-score .muted { font-family: var(--font); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.fixes { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.fixes h4 { margin: 0 0 4px; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.fix { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.fix-ic { width: 26px; height: 26px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--good-bg); color: var(--lime); flex: none; font-size: 13px; font-weight: 700; }
/* Barlow's arrows are thin enough to read as a 1 at this size */
.fix-ic, .ti-arrow { font-family: "Segoe UI Symbol", system-ui, sans-serif; }
.fix-tx { flex: 1; min-width: 0; }
.fix-tx a { font-weight: 600; }
.fix-tx a:hover { color: var(--lime); }
.fix-gain { font-variant-numeric: tabular-nums; color: var(--lime); font-weight: 700; }
.slot-tag { display: inline-block; min-width: 30px; margin-right: 8px; font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--text-3); }
.fix.ok { border-bottom: 0; }
.fix-ic.bad { background: var(--bad-bg); color: var(--red-hi); }
.fix.ok .fix-ic { background: var(--good-bg); color: var(--lime); }
.fix-sum { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-top: 16px; }
.mh-lineups { margin-top: 14px; }
.mh-lineups summary, details summary.link { list-style: none; cursor: pointer; }
.ti { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: center; }
.ti-p { font-size: 16px; font-weight: 600; margin-top: 2px; }
.ti-arrow { color: var(--lime); font-size: 20px; }

/* ── all my leagues ────────────────────────────────────── */
.lg-card { display: block; transition: border-color .15s ease; }
.lg-card:hover { border-color: var(--line-2); }
.lg-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lg-top .nm { font-size: 17px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.lg-stats .k { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.lg-stats .v { font-family: var(--display); font-size: 24px; font-weight: 700; }
.lg-alert { margin-top: 14px; font-size: 13px; color: var(--red-hi); }
.lg-alert.ok { color: var(--text-3); }

/* ── search palette ────────────────────────────────────── */
.search-btn { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-btn);
  color: var(--text-3); background: var(--card); font-size: 13px; cursor: pointer; min-width: 230px; }
.search-btn:hover { border-color: rgba(255, 255, 255, .2); color: var(--text-2); }
.search-btn svg { width: 15px; height: 15px; }
.search-btn kbd { margin-left: auto; font: inherit; font-size: 11px; border: 1px solid var(--line-2); border-radius: 4px; padding: 0 5px; }
.pal-scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .66); z-index: 70; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.pal { width: 100%; max-width: 560px; background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r-card); overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.pal input { width: 100%; height: 54px; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 0 18px; font-size: 16px; outline: none; }
.pal-list { max-height: 52vh; overflow-y: auto; padding: 6px; }
.pal-h { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); padding: 8px 12px 4px; }
.pal-item { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: var(--r-sm); cursor: pointer; }
.pal-item.on { background: var(--raised); box-shadow: inset 2px 0 0 var(--lime); }
.pal-item img, .pal-item .ph { width: 30px; height: 30px; border-radius: 50%; background: var(--raised); object-fit: cover; flex: none;
  display: grid; place-items: center; font-size: 11px; color: var(--text-3); }
.pal-item .k { margin-left: auto; font-size: 12px; color: var(--text-3); }
.pal-empty { padding: 18px 12px; color: var(--text-3); font-size: 14px; }

/* ── phone tab bar ─────────────────────────────────────── */
.tabbar { display: none; }

/* ── responsive ────────────────────────────────────────── */
@media (max-width: 1100px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); }
  main { padding: 24px 24px 80px; }
}
@media (max-width: 900px) {
  .menu-btn { display: inline-grid; place-items: center; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; z-index: 40; top: var(--head); left: 0; width: 280px; transform: translateX(-102%);
    transition: transform .22s ease; height: calc(100dvh - var(--head)); }
  body.nav-open .side { transform: none; }
  body.nav-open .scrim { display: block; position: fixed; inset: var(--head) 0 0 0; background: rgba(0, 0, 0, .6); z-index: 35; }
  .head-mid .hide-sm { display: none; }
  .g3, .g2, .trade { grid-template-columns: 1fr; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    height: calc(60px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: var(--sunken); border-top: 1px solid var(--line-2); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600;
    color: var(--text-3); background: none; border: 0; cursor: pointer; padding: 0; position: relative; }
  .tabbar svg { width: 20px; height: 20px; }
  .tabbar .on { color: var(--text); }
  .tabbar .on svg { color: var(--lime); }
  .tabbar .on::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 2px; background: var(--lime); }
  main { padding-bottom: 100px; }
  .toast { bottom: 84px; }
  .search-btn { min-width: 0; width: 38px; height: 38px; padding: 0; justify-content: center; }
  .search-btn span, .search-btn kbd { display: none; }
}
@media (max-width: 640px) {
  .app-head { padding: 0 12px; gap: 8px; }
  .brand .wm { display: none; }
  .brand .ic { display: block; }
  main { padding: 18px 16px 72px; }
  h1 { font-size: 30px; }
  .page-head { padding-bottom: 16px; margin-bottom: 18px; }
  .hero { padding: 26px 20px; }
  .hero h1 { font-size: 40px; }
  .card { padding: 16px; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { padding: 12px 14px; }
  .tile .v { font-size: 28px; }
  th, td { padding: 8px 10px; }
  .lineups { grid-template-columns: 1fr; }
  .mu { grid-template-columns: 1fr 1fr; gap: 12px; }
  .mu .mid { grid-column: 1 / -1; order: -1; }
  .mu .score { font-size: 26px; }
  .verdict { font-size: 22px; }
  .mh { padding: 18px; }
  .mh-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
  .mh-mid { grid-column: 1 / -1; order: -1; }
  .mh-pct { font-size: 60px; }
  .mh .avatar { width: 40px; height: 40px; }
  .mh-team { gap: 10px; }
  .mh-nm { font-size: 15px; }
  .mh-score { font-size: 22px; }
  .fix-sum .btn { width: 100%; }
  .lg-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.card.tight tbody tr { cursor: default; }
.clickrows tbody tr { cursor: pointer; }
