/* Tab styles for the hub (FantasyUI kit + Overview). Uses the custom properties defined in index.html. */

/* ---------- UI kit ---------- */
.ui-section { margin-top: 34px; min-width: 0; }
.ui-section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.ui-section-title { font-family: var(--display); font-weight: 800; font-size: clamp(24px, 6vw, 30px); line-height: 1; letter-spacing: 0.04em; text-transform: uppercase; }
.ui-section-sub { font-size: 13px; color: var(--muted); letter-spacing: 0.02em; }

.ui-card { min-width: 0; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }

.ui-pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; vertical-align: middle; }
.ui-pill-accent { color: var(--accent-ink); background: var(--accent); }
.ui-pill-muted { color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); }
.ui-pill-danger { color: var(--danger); border: 1px solid var(--danger); }

a.ui-owner { color: var(--text); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; border-bottom: 1px solid transparent; transition: color 0.15s, border-color 0.15s; }
a.ui-owner:hover { color: var(--accent); border-bottom-color: var(--accent); }
.ui-owner-unknown { color: var(--faint); }

.ui-empty { font-size: 15px; color: var(--muted); line-height: 1.65; padding: 22px; border: 1px dashed var(--line); border-radius: 12px; }

/* ---------- Overview ---------- */
.ov-kicker { font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); }
.ov-meta { font-size: 13px; color: var(--muted); }
.ov-note { font-size: 14px; color: var(--muted); }

.ov-hero { position: relative; overflow: hidden; padding: 20px 20px 4px; border-color: rgba(198, 255, 61, 0.22); background: radial-gradient(520px 200px at 0% 0%, var(--accent-dim), transparent 70%), linear-gradient(180deg, var(--surface-2), var(--surface)); }
.ov-league { margin: 4px 0 16px; font-family: var(--display); font-weight: 800; font-size: clamp(30px, 8vw, 46px); line-height: 0.95; text-transform: uppercase; overflow-wrap: anywhere; }
.ov-tiles { margin-bottom: 16px; }

.ov-champ { position: relative; overflow: hidden; border-color: rgba(198, 255, 61, 0.35); box-shadow: inset 4px 0 0 var(--accent); padding: 18px 20px 18px 24px; }
.ov-champ-name { margin: 6px 0 8px; font-family: var(--display); font-weight: 800; font-size: clamp(36px, 10vw, 58px); line-height: 0.95; text-transform: uppercase; }
.ov-champ-name a.ui-owner { font-weight: 800; }
.ov-champ-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 15px; color: var(--muted); }
.ov-champ-team { font-style: italic; overflow-wrap: anywhere; }

.ov-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ov-chip { display: inline-flex; align-items: baseline; gap: 8px; max-width: 100%; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.ov-chip:first-child { border-color: var(--accent); background: var(--accent-dim); }
.ov-chip-season { font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: 0.06em; color: var(--accent); font-variant-numeric: tabular-nums; }

.ov-standings { max-height: none; }

.ov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.ov-stack { display: flex; flex-direction: column; gap: 12px; }

.ov-game { display: flex; flex-direction: column; gap: 8px; }
.ov-game .ui-pill { align-self: flex-start; }
.ov-side { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--muted); }
.ov-side a.ui-owner { color: var(--muted); font-weight: 500; }
.ov-side.win a.ui-owner { color: var(--text); font-weight: 700; }
.ov-score { flex: none; font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; }
.ov-side.win .ov-score { color: var(--accent); }

.ov-trade-sides { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; margin-top: 10px; }
.ov-trade-side { min-width: 0; padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line-soft); }
.ov-trade-team { font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 6px; }
.ov-trade-line { display: flex; gap: 10px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; min-width: 0; }
.ov-trade-line + .ov-trade-line { margin-top: 4px; }
.ov-trade-line.dim { color: var(--muted); }
.ov-tag { flex: none; min-width: 38px; font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); padding-top: 2px; }
.ov-trade-line:not(.dim) .ov-tag { color: var(--accent); }

.ov-rival { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ov-rival-names { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; font-family: var(--display); font-weight: 800; font-size: clamp(24px, 7vw, 34px); text-transform: uppercase; line-height: 1.05; }
.ov-rival-names a.ui-owner { font-weight: 800; }
.ov-vs { font-size: 0.6em; letter-spacing: 0.2em; color: var(--faint); }
.ov-rival-score { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 12vw, 64px); line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
a.ov-cta { margin-top: 4px; display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--line); font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; color: var(--text); transition: color 0.15s, border-color 0.15s; }
a.ov-cta:hover { color: var(--accent); border-color: var(--accent); }

.ov-hl { display: flex; flex-direction: column; gap: 6px; }
.ov-hl-n { font-family: var(--display); font-weight: 800; font-size: clamp(38px, 10vw, 52px); line-height: 1; font-variant-numeric: tabular-nums; }
.ov-hl-who { font-size: 15px; color: var(--muted); overflow-wrap: anywhere; }

@media (max-width: 640px) {
  .ui-section { margin-top: 28px; }
  .ui-card { padding: 14px 14px; }
  .ov-hero { padding: 16px 14px 2px; }
  .ov-champ { padding: 16px 14px 16px 20px; }
}

/* ---------- Rivalries ---------- */
.rv { --rv-win: 198, 255, 61; --rv-lose: 255, 107, 107; min-width: 0; }
.rv-kicker { font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); }
.rv-note { font-size: 14px; color: var(--muted); }
.rv-meta { font-size: 13px; color: var(--muted); }
a.rv-back { display: inline-block; margin-bottom: 14px; font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--muted); transition: color 0.15s; }
a.rv-back:hover { color: var(--accent); }
.rv-missing { display: flex; flex-direction: column; gap: 14px; }
.rv-missing a.rv-back { margin-bottom: 0; }

/* controls */
.rv-controls { display: flex; flex-wrap: wrap; gap: 18px 28px; }
.rv-ctl { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.rv-ctl:last-child { flex: 1 1 320px; }
.rv-ctl-label, .rv-pick-label { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); }
.rv-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; max-width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
button.rv-seg-btn { padding: 8px 14px; font-size: 15px; letter-spacing: 0.08em; color: var(--muted); background: transparent; border-radius: 8px; transition: color 0.15s, background 0.15s; }
button.rv-seg-btn:not(:disabled):hover { box-shadow: none; transform: none; color: var(--text); background: rgba(255, 255, 255, 0.05); }
button.rv-seg-btn[aria-pressed="true"], button.rv-seg-btn[aria-pressed="true"]:not(:disabled):hover { color: var(--accent-ink); background: var(--accent); }
.rv-compare { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.rv-pick { flex: 1 1 150px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.rv-pick-label { letter-spacing: 0.16em; }
select.rv-select { flex: none; width: 100%; padding-top: 10px; padding-bottom: 10px; font-size: 15px; }
button.rv-compare-btn { flex: none; padding: 11px 20px; font-size: 16px; }

/* heatmap */
.rv-heat-card { padding: 12px; }
.rv-heat-wrap { position: relative; max-width: 100%; max-height: 78vh; overflow: auto; overscroll-behavior-x: contain; border-radius: 10px; }
.rv-heat-wrap:focus-visible { outline-offset: -2px; }
.rv-heat-wrap::-webkit-scrollbar { height: 10px; width: 10px; }
.rv-heat-wrap::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
table.rv-heat { border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
.rv-heat th { background: var(--surface); }
.rv-heat thead th { position: sticky; top: 0; z-index: 2; }
.rv-heat th.rv-row, .rv-heat th.rv-corner { position: sticky; left: 0; z-index: 1; }
.rv-heat th.rv-corner { z-index: 3; }
.rv-heat th.rv-col { padding: 6px 2px 8px; vertical-align: bottom; }
a.rv-col-link { display: inline-block; text-decoration: none; color: var(--muted); font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 0.06em; transition: color 0.15s; }
.rv-col-text { display: block; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; max-height: 112px; overflow: hidden; text-overflow: ellipsis; }
.rv-heat th.rv-row { padding: 2px 10px 2px 2px; text-align: left; border-right: 1px solid var(--line); }
a.rv-row-link { display: block; max-width: 128px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; color: var(--text); font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.04em; transition: color 0.15s; }
a.rv-col-link:hover, a.rv-row-link:hover { color: var(--accent); }
.rv-heat td.rv-cell { padding: 2px; }
.rv-cell-in { display: flex; align-items: center; justify-content: center; min-width: 50px; height: 40px; border-radius: 7px; font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: 0.02em; white-space: nowrap; text-decoration: none; color: var(--text); }
a.rv-cell-btn { border: 1px solid transparent; transition: border-color 0.12s, transform 0.12s; }
a.rv-cell-btn:hover { border-color: var(--text); transform: scale(1.04); }
a.rv-cell-btn:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }
.rv-diag .rv-cell-in { color: var(--faint); background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 4px, transparent 4px 8px); }
.rv-none .rv-cell-in { border: 1px dashed var(--line-soft); }
.rv-w3 .rv-cell-in, .rv-swatch.rv-w3 { background: rgb(var(--rv-win)); color: var(--accent-ink); }
.rv-w2 .rv-cell-in, .rv-swatch.rv-w2 { background: rgba(var(--rv-win), 0.36); }
.rv-w1 .rv-cell-in, .rv-swatch.rv-w1 { background: rgba(var(--rv-win), 0.16); }
.rv-even .rv-cell-in, .rv-swatch.rv-even { background: rgba(255, 255, 255, 0.08); }
.rv-l1 .rv-cell-in, .rv-swatch.rv-l1 { background: rgba(var(--rv-lose), 0.18); }
.rv-l2 .rv-cell-in, .rv-swatch.rv-l2 { background: rgba(var(--rv-lose), 0.42); }
.rv-l3 .rv-cell-in, .rv-swatch.rv-l3 { background: rgb(var(--rv-lose)); color: var(--accent-ink); }
.rv-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.rv-leg-scale { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 3px; }
.rv-leg-item { display: inline-flex; align-items: center; gap: 6px; }
.rv-leg-scale .rv-leg-item:first-child { margin-right: 2px; }
.rv-swatch { display: inline-block; width: 18px; height: 12px; border-radius: 3px; }
.rv-leg-note { color: var(--faint); }

/* owner + matchup views */
.rv-hero { padding: 20px 20px 4px; border-color: rgba(198, 255, 61, 0.22); background: radial-gradient(520px 200px at 0% 0%, var(--accent-dim), transparent 70%), linear-gradient(180deg, var(--surface-2), var(--surface)); }
.rv-hero-name { margin: 4px 0 16px; font-family: var(--display); font-weight: 800; font-size: clamp(34px, 9vw, 52px); line-height: 0.95; text-transform: uppercase; overflow-wrap: anywhere; }
.rv-tiles { margin-bottom: 16px; }
.rv-tiles .stat .l { overflow-wrap: anywhere; }
.rv-tiles-wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); margin: 0; }
.rv-callouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; margin-top: 12px; }
.rv-callout { display: flex; flex-direction: column; gap: 6px; }
.rv-callout-nemesis { box-shadow: inset 4px 0 0 rgb(var(--rv-lose)); }
.rv-callout-nemesis .rv-kicker { color: rgb(var(--rv-lose)); }
.rv-callout-victim { box-shadow: inset 4px 0 0 var(--accent); }
.rv-callout-name { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 7vw, 34px); line-height: 1; text-transform: uppercase; }
.rv-callout-name a.ui-owner { font-weight: 800; }
.rv-callout-rec { font-size: 14px; color: var(--muted); }
a.rv-callout-link { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; text-underline-offset: 3px; }
a.rv-callout-link:hover { color: var(--accent); }
.rv-match { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding-bottom: 18px; }
.rv-match-names { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; font-family: var(--display); font-weight: 800; font-size: clamp(26px, 7vw, 38px); text-transform: uppercase; line-height: 1.05; }
.rv-match-names a.ui-owner { font-weight: 800; }
.rv-vs { font-size: 0.6em; letter-spacing: 0.2em; color: var(--faint); }
.rv-match-score { font-family: var(--display); font-weight: 800; font-size: clamp(48px, 13vw, 72px); line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.rv-streak { display: inline-block; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent-dim); font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.rv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.rv-big { display: flex; flex-direction: column; gap: 6px; }
.rv-big-n { font-family: var(--display); font-weight: 800; font-size: clamp(38px, 10vw, 52px); line-height: 1; font-variant-numeric: tabular-nums; }
.rv-table { max-height: none; }

@media (max-width: 640px) {
  .rv-heat-card { padding: 8px; }
  .rv-hero { padding: 16px 14px 2px; }
  .rv-cell-in { min-width: 44px; height: 38px; font-size: 15px; }
  a.rv-row-link { max-width: 92px; font-size: 14px; }
  .rv-tiles-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Records & Awards ---------- */
.rc { min-width: 0; }
.rc-kicker { font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); }
.rc-desc { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.rc-scope { margin: 14px 0 12px; font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }

/* segmented controls (awards season, hall of fame stage) */
.rc-ctl { min-width: 0; max-width: 100%; }
.rc-seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; max-width: 100%; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
button.rc-seg-btn { padding: 8px 14px; font-size: 15px; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; color: var(--muted); background: transparent; border-radius: 8px; transition: color 0.15s, background 0.15s; }
button.rc-seg-btn:not(:disabled):hover { box-shadow: none; transform: none; color: var(--text); background: rgba(255, 255, 255, 0.05); }
button.rc-seg-btn[aria-pressed="true"], button.rc-seg-btn[aria-pressed="true"]:not(:disabled):hover { color: var(--accent-ink); background: var(--accent); }

/* award cards */
.rc-award-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.rc-award { display: flex; flex-direction: column; gap: 6px; box-shadow: inset 0 3px 0 var(--accent); }
.rc-winner { margin-top: 6px; font-family: var(--display); font-weight: 800; font-size: clamp(28px, 8vw, 36px); line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; }
.rc-winner a.ui-owner { font-weight: 800; }
.rc-award-val { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 6vw, 26px); line-height: 1.1; color: var(--accent); font-variant-numeric: tabular-nums; }
.rc-runners { list-style: none; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 3px; }
.rc-runner { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.rc-runner a.ui-owner { color: var(--muted); font-weight: 600; }
.rc-runner a.ui-owner:hover { color: var(--accent); }

/* ranked record lists */
.rc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.rc-list { padding: 14px 16px 8px; }
.rc-list-title { margin-bottom: 6px; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); }
.rc-rows { list-style: none; }
.rc-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: baseline; gap: 4px 10px; padding: 9px 0; border-top: 1px solid var(--line-soft); }
.rc-row:first-child { border-top: 0; }
.rc-rank { font-family: var(--display); font-weight: 800; font-size: 17px; color: var(--faint); font-variant-numeric: tabular-nums; }
.rc-row:first-child .rc-rank { color: var(--accent); }
.rc-main { min-width: 0; }
.rc-who { font-size: 14.5px; line-height: 1.35; overflow-wrap: anywhere; }
.rc-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-top: 2px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.rc-sub a.ui-owner { color: var(--muted); font-weight: 600; }
.rc-sub a.ui-owner:hover { color: var(--accent); }
.rc-when { color: var(--faint); }
.rc-sub .ui-pill { font-size: 12px; padding: 1px 7px; }
.rc-val { font-family: var(--display); font-weight: 800; font-size: 20px; line-height: 1; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.rc-row:first-child .rc-val { color: var(--accent); }

/* titles */
.rc-titles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px; align-items: start; }
.rc-titles { max-height: none; }
.rc-titles td:last-child { white-space: normal; min-width: 120px; }
.rc-callout { display: flex; flex-direction: column; gap: 6px; box-shadow: inset 4px 0 0 var(--accent); }

@media (max-width: 640px) {
  .rc-list { padding: 12px 12px 6px; }
  .rc-row { grid-template-columns: 18px minmax(0, 1fr) auto; gap: 3px 8px; }
  .rc-val { font-size: 18px; }
  button.rc-seg-btn { padding: 7px 11px; font-size: 14px; }
}

/* ---------- Batch 2: Power rankings ---------- */
.pw-ctl { margin-bottom: 14px; }
.pw-season, .ro-field select { max-width: 100%; }
.pw-method { margin-bottom: 14px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.pw-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.pw-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.pw-row:first-child { border-color: rgba(198, 255, 61, 0.35); box-shadow: inset 4px 0 0 var(--accent); }
.pw-rank { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.pw-main { min-width: 0; }
.pw-name { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 17px; }
.pw-team { font-size: 13px; font-style: italic; color: var(--muted); overflow-wrap: anywhere; }
.pw-meta { margin-top: 2px; font-size: 13px; color: var(--muted); }
.pw-scorebar { height: 6px; margin: 10px 0 8px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.pw-scorefill { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.pw-comps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 4px 14px; }
.pw-comp { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.pw-comp-l { flex: none; width: 52px; letter-spacing: 0.04em; }
.pw-comp-bar { flex: 1; height: 4px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.pw-comp-fill { display: block; height: 100%; background: var(--faint); }
.pw-comp-n { flex: none; width: 26px; text-align: right; font-variant-numeric: tabular-nums; }
.pw-side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.pw-score { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.pw-delta { padding: 2px 8px; border-radius: 999px; font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.pw-delta-up { color: var(--accent); border-color: var(--accent); }
.pw-delta-down { color: var(--danger); border-color: var(--danger); }

/* ---------- Batch 2: Team value ---------- */
.tv-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.tv-key { display: inline-flex; align-items: center; gap: 8px; }
.tv-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; }
.tv-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.tv-row { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.tv-rank { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.tv-main { min-width: 0; }
.tv-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
a.tv-team { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: 0.04em; text-transform: uppercase; }
.tv-total { font-family: var(--display); font-weight: 800; font-size: 26px; font-variant-numeric: tabular-nums; }
.tv-bar { display: flex; height: 12px; margin: 8px 0 6px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.tv-seg { display: block; height: 100%; }
.tv-seg-players { background: var(--accent); }
.tv-seg-picks { background: repeating-linear-gradient(135deg, #8aa84a 0 4px, #5f7433 4px 8px); }
.tv-meta { font-size: 13px; color: var(--muted); line-height: 1.5; }
.tv-pos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); gap: 4px 14px; margin-top: 10px; }
.tv-pos-item { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.tv-pos-l { flex: none; width: 22px; font-weight: 700; color: var(--text); }
.tv-pos-bar { flex: 1; height: 4px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.tv-pos-fill { display: block; height: 100%; background: var(--muted); }
.tv-pos-n { flex: none; width: 34px; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Batch 2: Pick vault ---------- */
.pk-owners { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.pk-owner-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.pk-owner-name { font-size: 17px; min-width: 0; }
.pk-owner-total { text-align: right; flex: none; }
.pk-total-n { display: block; font-family: var(--display); font-weight: 800; font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; }
.pk-total-l { font-size: 12px; color: var(--muted); }
.pk-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.pk-chip { display: inline-flex; gap: 8px; align-items: baseline; max-width: 100%; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-size: 13px; }
.pk-chip-traded { border-color: var(--accent); background: var(--accent-dim); }
.pk-chip-v { color: var(--muted); font-variant-numeric: tabular-nums; }
.pk-tier { font-size: 11px; font-weight: 700; line-height: 1; padding: 2px 5px; border-radius: 4px; border: 1px solid var(--line); }
.pk-tier-early { color: var(--accent); border-color: var(--accent); }
.pk-tier-mid { color: var(--text); }
.pk-tier-late { color: var(--muted); }
.pk-tier-faint { opacity: 0.55; }
.pk-cell { white-space: nowrap; }
.pk-flows { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.pk-flow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.pk-arrow { color: var(--accent); }
.pk-flow-meta { margin-left: auto; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Batch 2: Roster explorer ---------- */
.ro-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.ro-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ro-field-grow { flex: 1 1 220px; }
.ro-label { font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.ro-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.ro-table { max-width: 100%; }

@media (max-width: 560px) {
  .pw-row { grid-template-columns: 34px minmax(0, 1fr); }
  .pw-side { grid-column: 2; flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; }
  .pw-rank { font-size: 28px; }
  .pk-flow-meta { margin-left: 0; width: 100%; }
}

/* ---------- Batch 3: shared bits ---------- */
.dim { color: var(--muted); }
.up { color: var(--accent); }
.down { color: var(--danger); }

/* ---------- Lineup lab ---------- */
.ll-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 10px; margin-bottom: 8px; }
.ll-league { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.ll-lrow { display: grid; grid-template-columns: 24px minmax(90px, 160px) minmax(0, 1fr) 56px 70px; gap: 10px; align-items: center; padding: 8px 12px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface); font-size: 14px; }
.ll-lrow-me { border-color: var(--accent); background: var(--accent-dim); }
.ll-lrank { font-family: var(--display); font-weight: 800; color: var(--accent); }
.ll-lteam { overflow-wrap: anywhere; }
.ll-lbar { height: 6px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.ll-lfill { display: block; height: 100%; background: var(--accent); }
.ll-leff { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.ll-lleft { text-align: right; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.ll-miss { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.ll-miss-row { display: flex; gap: 12px; align-items: baseline; padding: 8px 12px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface); font-size: 14px; line-height: 1.5; }
.ll-gain { flex: none; min-width: 44px; font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--danger); font-variant-numeric: tabular-nums; }
.ll-note { margin-top: 24px; font-size: 13px; color: var(--muted); line-height: 1.6; }

/* ---------- Trades ---------- */
.tr-count { margin: 4px 0 12px; font-size: 13px; color: var(--muted); }
.tr-list { display: flex; flex-direction: column; gap: 12px; }
.tr-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.tr-meta { font-size: 13px; color: var(--muted); }
.tr-sides { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.tr-side { min-width: 0; padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line-soft); }
.tr-side-win { border-color: rgba(198, 255, 61, 0.4); }
.tr-team { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-family: var(--display); font-weight: 700; font-size: 19px; letter-spacing: 0.04em; text-transform: uppercase; }
.tr-net { font-size: 16px; font-variant-numeric: tabular-nums; }
.tr-tag { margin-top: 6px; font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }
.tr-items { list-style: none; }
.tr-item { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.tr-val { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Draft ---------- */
.dr-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.dr-pickbox { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.dr-pick { display: grid; grid-template-columns: 42px minmax(0, 1fr) minmax(0, 110px) 44px 52px; gap: 8px; align-items: baseline; padding: 6px 4px; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.dr-no { font-family: var(--display); font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.dr-name, .dr-team { min-width: 0; overflow-wrap: anywhere; }
.dr-pos { color: var(--muted); font-size: 12px; }
.dr-val { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.dr-delta { text-align: right; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--muted); }
.dr-round { margin-bottom: 18px; }
.dr-round-title { margin-bottom: 6px; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Players ---------- */
.pl-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.pl-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1fr) 52px; gap: 10px; align-items: baseline; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface); font-size: 14px; }
.pl-name { overflow-wrap: anywhere; }
.pl-pos { color: var(--muted); font-size: 13px; }
.pl-val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.pl-hero { padding: 20px; }
.pl-title { margin: 4px 0 6px; font-family: var(--display); font-weight: 800; font-size: clamp(32px, 8vw, 48px); line-height: 0.95; text-transform: uppercase; overflow-wrap: anywhere; }
.pl-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr)); gap: 10px; margin-top: 14px; }
.pl-trades { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.pl-trade { padding: 8px 12px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface); font-size: 14px; }

@media (max-width: 560px) {
  .ll-lrow { grid-template-columns: 22px minmax(0, 1fr) 52px; }
  .ll-lbar, .ll-lleft { display: none; }
  .dr-pick { grid-template-columns: 38px minmax(0, 1fr) 40px 46px; }
  .dr-team { display: none; }
  .pl-row { grid-template-columns: minmax(0, 1fr) 48px; }
  .pl-pos, .pl-own { grid-column: 1; }
  .pl-val { grid-row: 1; grid-column: 2; }
}

/* ---------- Former owners ---------- */
a.ui-owner-former { color: var(--muted); font-style: italic; }
a.ui-owner-former::after { content: " (former)"; font-size: 0.8em; font-style: normal; color: var(--faint); }
a.rv-former { font-style: italic; opacity: 0.7; }

/* ---------- Batch 4: Owners ---------- */
.ow-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.ow-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 18px; }
.ow-team { margin-top: 2px; font-size: 13px; font-style: italic; color: var(--muted); overflow-wrap: anywhere; }
.ow-line { margin-top: 8px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ow-hero { padding: 20px; }
.ow-title { margin: 8px 0 4px; font-family: var(--display); font-weight: 800; font-size: clamp(32px, 9vw, 52px); line-height: 0.95; text-transform: uppercase; overflow-wrap: anywhere; }
.ow-teams { font-size: 14px; font-style: italic; color: var(--muted); overflow-wrap: anywhere; }
.ow-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); gap: 10px; margin-top: 14px; }
.ow-links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; }
.ow-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.ow-rival-name { margin: 6px 0 2px; font-size: 20px; font-weight: 700; }
.ow-eff { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.ow-eff-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) 56px 70px; gap: 10px; align-items: center; padding: 8px 12px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface); font-size: 14px; }
.ow-eff-season { font-family: var(--display); font-weight: 800; color: var(--accent); }
.ow-eff-n { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---------- Batch 4: Weekly recap ---------- */
.rp-movers, .rp-trades { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.rp-mover, .rp-trade { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 8px 12px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface); font-size: 14px; }
.rp-arrow { min-width: 44px; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.06em; }

@media (max-width: 560px) {
  .ow-eff-row { grid-template-columns: 44px minmax(0, 1fr) 52px; }
  .ow-eff-row .ll-lleft { display: none; }
}

/* ---------- Luck & schedule ---------- */
.lk-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.lk-row { display: grid; grid-template-columns: minmax(90px, 170px) minmax(0, 1fr) 52px; gap: 4px 12px; align-items: center; padding: 10px 14px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--surface); }
.lk-name { font-size: 15px; overflow-wrap: anywhere; }
.lk-bar { position: relative; height: 10px; border-radius: 99px; background: var(--bg); }
.lk-mid { position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2px; background: var(--line); }
.lk-fill { position: absolute; top: 0; bottom: 0; }
.lk-fill-pos { left: 50%; background: var(--accent); border-radius: 0 99px 99px 0; }
.lk-fill-neg { right: 50%; background: var(--danger); border-radius: 99px 0 0 99px; }
.lk-n { text-align: right; font-family: var(--display); font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; }
.lk-meta { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); }
@media (max-width: 560px) { .lk-row { grid-template-columns: minmax(0, 1fr) 52px; } .lk-bar { grid-column: 1 / -1; grid-row: 2; } }

/* ---------- Hub sub-navigation (pill row under the page title) ---------- */
.subnav { display: flex; gap: 6px; margin: 16px 0 6px; padding: 4px; max-width: 100%; overflow-x: auto; scrollbar-width: none; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); -webkit-overflow-scrolling: touch; }
.subnav::-webkit-scrollbar { display: none; }
.subnav[hidden] { display: none; }
/* pages without a sub-tab row keep the same gap under the title as pages with one */
.subnav[hidden] ~ .stats[hidden] + #view { margin-top: 16px; }
a.subnav-pill { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 8px; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; color: var(--muted); text-decoration: none; transition: color 0.15s, background 0.15s; }
a.subnav-pill:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
a.subnav-pill[aria-current="page"] { color: var(--accent-ink); background: var(--accent); }

/* ---------- Playoff odds ---------- */
.od-progress { margin-bottom: 14px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.od-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.od-row { padding: 12px 16px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.od-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: 16px; }
.od-rec { font-size: 13px; color: var(--muted); }
.od-meter { display: grid; grid-template-columns: 62px minmax(0, 1fr) 54px; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.od-meter-bar { height: 8px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.od-meter-fill { display: block; height: 100%; }
.od-fill-po { background: var(--muted); }
.od-fill-bye { background: #8aa84a; }
.od-fill-title { background: var(--accent); }
.od-meter-n { text-align: right; color: var(--text); font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---------- Season review ---------- */
.ss-round { margin-bottom: 18px; }
.ss-award-t { flex: none; min-width: 150px; font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
@media (max-width: 560px) { .ss-award-t { min-width: 110px; } }

/* ---------- Value history ---------- */
.vh-sources { margin-bottom: 12px; }
.vh-results { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
button.vh-hit { padding: 9px 12px; min-height: 40px; font-size: 14px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
button.vh-hit.on { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.vh-card { padding: 14px 16px; }
.vh-chart-wrap { margin: 6px 0 4px; }
svg.vh-chart { display: block; width: 100%; height: auto; max-height: 130px; }
.vh-line { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.vh-dot { fill: var(--accent); }
.vh-range { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.vh-change { flex: none; min-width: 110px; font-family: var(--display); font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }

/* ---------- Trade trails ("what became of it") ---------- */
.tb-bar { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
button.tb-toggle { padding: 8px 14px; font-size: 14px; }
.tb-panel { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.tb-panel[hidden] { display: none; }
.tb-sides { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.tb-side { min-width: 0; }
.tb-h { margin: 10px 0 6px; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.tb-h:first-child { margin-top: 0; }
.tb-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.tb-row { padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--bg); }
.tb-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 15px; }
.tb-asset { font-weight: 600; overflow-wrap: anywhere; }
.tb-now { font-size: 12.5px; color: var(--muted); }
.tb-became { font-family: var(--display); font-weight: 800; font-size: 15px; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.tb-sum { margin-top: 4px; font-size: 13.5px; color: var(--muted); line-height: 1.55; overflow-wrap: anywhere; }
.tr-label { min-width: 0; }
.tr-became { color: var(--accent); font-size: 13px; }

/* ---------- Compact trade list ---------- */
.tc-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 4px 0 10px; }
.tc-bar .tr-count { margin: 0; }
button.tc-ledger-btn { padding: 6px 12px; font-size: 14px; min-height: 40px; }
.tc-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.tc-row { border: 1px solid var(--line-soft); border-radius: 12px; background: var(--surface); overflow: hidden; }
.tc-row.open { border-color: var(--line); background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
button.tc-head { width: 100%; display: grid; grid-template-columns: 86px minmax(0, 1fr) auto 18px; gap: 6px 12px; align-items: start; padding: 10px 14px; text-align: left; color: var(--text); background: transparent; border: 0; border-radius: 0; font-family: var(--body); font-size: 14px; letter-spacing: 0; text-transform: none; font-weight: 400; cursor: pointer; }
button.tc-head:not(:disabled):hover { background: rgba(255, 255, 255, 0.03); box-shadow: none; transform: none; }
.tc-date { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 2px; }
.tc-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tc-teams { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: 0.04em; text-transform: uppercase; overflow-wrap: anywhere; }
.tc-lines { display: flex; flex-direction: column; gap: 1px; }
.tc-line { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; line-height: 1.45; }
.tc-verdict { padding: 2px 9px; border-radius: 999px; font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; white-space: nowrap; border: 1px solid var(--line); color: var(--muted); }
.tc-win { color: var(--accent); border-color: var(--accent); }
.tc-chev { color: var(--faint); transition: transform 0.15s; padding-top: 2px; }
.tc-row.open .tc-chev { transform: rotate(180deg); }
.tc-detail { padding: 4px 14px 14px; }
.tc-detail[hidden] { display: none; }
.tc-empty { list-style: none; }
button.tc-more { align-self: center; margin-top: 10px; }
@media (max-width: 640px) {
  button.tc-head { grid-template-columns: minmax(0, 1fr) auto 18px; }
  .tc-date { grid-column: 1 / -1; }
}

/* ---------- Lineage ---------- */
.ln-results { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.ln-res { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 14px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface); font-size: 15px; }
.ln-res-n { margin-left: auto; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ln-hero { padding: 20px; }
.ln-list { list-style: none; position: relative; display: flex; flex-direction: column; gap: 0; }
.ln-ev { display: grid; grid-template-columns: 92px 14px minmax(0, 1fr); gap: 10px; padding-bottom: 16px; position: relative; }
.ln-ev::before { content: ""; position: absolute; left: calc(92px + 10px + 6px); top: 14px; bottom: -2px; width: 2px; background: var(--line); }
.ln-ev:last-child::before { display: none; }
.ln-date { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 2px; text-align: right; }
.ln-dot { width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; background: var(--surface-2); border: 2px solid var(--muted); z-index: 1; }
.ln-traded .ln-dot, .ln-pick-traded .ln-dot { border-color: var(--accent); background: var(--accent); }
.ln-drafted .ln-dot, .ln-became .ln-dot { border-color: var(--accent); }
.ln-dropped .ln-dot { border-color: var(--danger); }
.ln-now .ln-dot { border-color: var(--text); background: var(--text); }
.ln-body { min-width: 0; }
.ln-text { font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.ln-now .ln-text { font-weight: 700; }
.ln-sub { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.ln-got { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ln-chip { display: inline-flex; align-items: baseline; gap: 8px; max-width: 100%; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-size: 13px; }
a.ln-chip-l { color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
a.ln-chip-l:hover { color: var(--accent); }
.ln-chip-v { color: var(--muted); font-variant-numeric: tabular-nums; }
a.ln-link { display: inline-block; margin-top: 6px; font-size: 13px; color: var(--accent); text-decoration: none; }
a.ln-link:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .ln-ev { grid-template-columns: 64px 14px minmax(0, 1fr); gap: 8px; }
  .ln-ev::before { left: calc(64px + 8px + 6px); }
  .ln-date { font-size: 11.5px; }
}

a.subnav-pill .icon { width: 17px; height: 17px; flex: none; }

/* ---------- Trade partners ---------- */
.tp-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.tp-row { padding: 12px 16px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--surface); }
.tp-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 16px; }
.tp-x { color: var(--faint); }
.tp-n { margin-left: auto; font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.tp-bar { height: 6px; margin: 8px 0; border-radius: 99px; background: var(--bg); overflow: hidden; }
.tp-fill { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.tp-lead { font-size: 14px; font-weight: 600; }
.tp-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.tp-never { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 8px; }
.tp-never-pair { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-size: 13.5px; }
/* count grid: reuses the rivalries heatmap frame */
.tp-grid td.tp-low { background: rgba(198, 255, 61, 0.10); }
.tp-grid td.tp-mid { background: rgba(198, 255, 61, 0.26); }
.tp-grid td.tp-high { background: rgba(198, 255, 61, 0.5); }
.tp-grid td.tp-high a, .tp-grid td.tp-mid a { color: var(--text); font-weight: 700; }
.tp-grid td.tp-none { background: transparent; }

/* ---------- Mobile polish ---------- */
/* the first section sits close under the page heading / pill row */
.ui-section.first-section { margin-top: 18px; }
.ui-section-title.is-dup-title { display: none; }
.ui-section-title.is-dup-title + .ui-section-sub { margin-top: 0; }
.subnav-short { display: none; }
a.subnav-pill { min-height: 40px; }
.ln-date { white-space: nowrap; }
select.rv-select { font-size: 16px; }
.tp-last { white-space: nowrap; }
.ln-res { flex-wrap: nowrap; }
.ln-res > a { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.ln-res-n { white-space: nowrap; }

@media (max-width: 640px) {
  /* every pill fits without sideways scrolling: short labels */
  .subnav-full { display: none; }
  .subnav-short { display: inline; }
  a.subnav-pill { padding: 8px 12px; gap: 6px; letter-spacing: 0.06em; }
  .subnav { gap: 2px; padding: 3px; }

  /* filter controls: two per row, search on its own row */
  .ro-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .ro-field-grow { grid-column: 1 / -1; }
  .ro-field select, .ro-field input { width: 100%; }
  .ro-controls > .od-progress { grid-column: 1 / -1; }

  button.rc-seg-btn, button.rv-seg-btn { min-height: 40px; }
  .ln-ev { grid-template-columns: 78px 14px minmax(0, 1fr); }
  .ln-ev::before { left: calc(78px + 8px + 6px); }
  .ln-date { font-size: 12px; }

  /* tables: tighter cells, wrapping text columns, and a shadow on the side that still has more to scroll */
  .table-wrap th, .table-wrap td { padding: 9px 8px; }
  .table-wrap th { font-size: 12px; letter-spacing: 0.08em; }
  .table-wrap td:not(.num):not(.rank) { white-space: normal; overflow-wrap: break-word; }
  .m-ellipsis { max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap !important; }
  .table-wrap {
    background:
      linear-gradient(to right, var(--surface) 30%, rgba(18, 22, 20, 0)) left center / 36px 100% no-repeat local,
      linear-gradient(to left, var(--surface) 30%, rgba(18, 22, 20, 0)) right center / 36px 100% no-repeat local,
      radial-gradient(farthest-side at 0 50%, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0)) left center / 12px 100% no-repeat scroll,
      radial-gradient(farthest-side at 100% 50%, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0)) right center / 12px 100% no-repeat scroll,
      var(--surface);
  }
  .m-hide { display: none; }
  /* owner names never break mid-word (the table scrolls instead); team nicknames drop out of the standings tables */
  .table-wrap td.col-owner, .table-wrap a.ui-owner { white-space: nowrap; overflow-wrap: normal; }
  .ov-standings .col-team, .ss-table .col-team, .ow-table .col-team { display: none; }
}

@media (max-width: 440px) {
  /* four pills (Trades, Draft, Lineage, Partners) still fit */
  a.subnav-pill { padding: 8px 8px; gap: 5px; font-size: 14px; letter-spacing: 0.03em; }
  a.subnav-pill .icon { width: 15px; height: 15px; }
}

@media (max-width: 640px) {
  /* trade rows: date and verdict on one line, the teams and what moved underneath */
  button.tc-head { grid-template-columns: minmax(0, 1fr) auto 18px; grid-template-areas: "date verdict chev" "main main main"; gap: 6px 10px; }
  .tc-date { grid-area: date; padding-top: 0; }
  .tc-verdict { grid-area: verdict; justify-self: end; }
  .tc-chev { grid-area: chev; padding-top: 0; }
  .tc-main { grid-area: main; }
}

@media (max-width: 380px) {
  a.subnav-pill { padding: 8px 6px; gap: 4px; }
}
@media (max-width: 340px) {
  /* the narrowest phones: labels only */
  a.subnav-pill .icon { display: none; }
  a.subnav-pill { padding: 8px 9px; }
}

/* ---- Value source bar ---- */
.sb { margin-bottom: 18px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.sb-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.sb-label { font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); }
.sb-group { display: flex; flex-wrap: wrap; gap: 6px; }
.sb-btn { appearance: none; cursor: pointer; font: inherit; font-size: 14px; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; min-height: 40px; }
.sb-btn:hover:not(:disabled) { border-color: var(--accent); }
.sb-btn.sb-on { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); font-weight: 700; }
.sb-btn:disabled { cursor: not-allowed; opacity: 0.45; }
.sb-note { margin: 8px 0 0; font-size: 13px; color: var(--muted); }
.sb-row + .sb-row { margin-top: 8px; }
.sb-about { margin-top: 6px; }
.sb-about summary { display: inline-flex; align-items: center; min-height: 40px; cursor: pointer; font-size: 13px; color: var(--muted); text-decoration: underline dotted; text-underline-offset: 3px; }
.sb-about summary:hover, .sb-about[open] summary { color: var(--text); }
.sb-about .sb-note { margin-top: 2px; }
.sb-credit { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.sb-credit a { color: var(--muted); text-decoration: underline; }

/* ---- Compare tab ---- */
.cp-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.cp-card-title { margin: 0 0 8px; font-family: var(--display); font-size: 15px; letter-spacing: 0.04em; }
.cp-list { margin: 0; padding-left: 22px; display: grid; gap: 4px; font-size: 14px; }
.cp-list li { padding-left: 2px; }
.cp-list li::marker { color: var(--muted); }
.cp-name { overflow-wrap: anywhere; }
.cp-rank { display: block; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cp-diff { float: right; margin-left: 10px; color: var(--accent); font-variant-numeric: tabular-nums; }
.cp-more { margin: 12px 0 0; }
.cp .stat-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Trade lab */
.tl { display: flex; flex-direction: column; gap: 18px; }
.tl-controls { display: flex; flex-direction: column; gap: 12px; }
.tl-controls .ui-gloss { margin: -4px 0 -8px; }
.tl-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tl-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tl-field-l { font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--accent); }
.tl-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.tl-side-title { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: 0.02em; margin-bottom: 8px; overflow-wrap: anywhere; }
.tl-group { margin-top: 10px; }
.tl-group-title { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.tl-assets { display: flex; flex-direction: column; gap: 4px; }
.tl-asset { appearance: none; cursor: pointer; font: inherit; font-size: 14px; color: var(--text); text-align: left; display: grid; grid-template-columns: 1fr auto; gap: 0 10px; align-items: baseline; width: 100%; padding: 7px 10px; min-height: 40px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.tl-asset:hover { border-color: var(--accent); }
.tl-asset.tl-on { border-color: var(--accent); background: var(--accent-dim); }
.tl-asset-n { overflow-wrap: anywhere; }
.tl-asset-m { grid-column: 1; font-size: 12px; color: var(--muted); }
.tl-asset-v { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-tray { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.tl-tray-l { font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.tl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-chip { appearance: none; cursor: pointer; font: inherit; font-size: 14px; line-height: 1.2; color: var(--text); display: inline-flex; gap: 8px; align-items: center; max-width: 100%; padding: 5px 6px 5px 12px; min-height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); }
.tl-chip-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-chip-v { color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-chip-x { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--line); color: var(--muted); font-size: 15px; line-height: 1; }
.tl-chip:hover { border-color: var(--danger); }
.tl-chip:hover .tl-chip-x { background: var(--danger); color: var(--accent-ink); }
.tl-none, .tl-note { color: var(--muted); font-size: 13px; }
.tl-tray-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.tl-sidepick { display: none; }
.tl [hidden] { display: none !important; }
.tl-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tl-filter input[type="search"] { flex: 1 1 220px; min-width: 0; }
.tl-nomatch { margin-top: 10px; }
.tl-rosters { display: flex; flex-direction: column; gap: 18px; }
.tl-rhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: -6px; }
.tl-big { font-size: 17px; font-variant-numeric: tabular-nums; margin-bottom: 6px; }
.tl-pos { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.tl-pos-line { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; font-variant-numeric: tabular-nums; }
.tl-up { color: var(--accent); }
.tl-down { color: #ff7a6b; }
@media (max-width: 640px) {
  .tl-columns, .tl-tray { grid-template-columns: 1fr; }
  .tl-sidepick { display: flex; flex-wrap: nowrap; }
  .tl-sidepick .sb-btn { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tl-columns[data-show="a"] > .tl-side:last-child, .tl-columns[data-show="b"] > .tl-side:first-child { display: none; }
  .tl-tray { gap: 8px; padding: 10px 12px; }
  .tl-tray-l { margin-bottom: 4px; }
}

.tl-sug-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.tl-sug { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.tl-sug-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.tl-sug-n { font-weight: 700; overflow-wrap: anywhere; }
.tl-sug-v { color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---- "This is me": my team's rows, cards and name ---- */
a.ui-owner.ui-owner-me { color: var(--accent); }
.table-wrap tr.is-me td { background: rgba(198, 255, 61, 0.07); }
.table-wrap tr.is-me td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
li.is-me, .ui-card.is-me { box-shadow: inset 3px 0 0 var(--accent); background-color: rgba(198, 255, 61, 0.05); }
.ui-card.is-me { background-image: linear-gradient(180deg, rgba(198, 255, 61, 0.09), var(--surface)); }
.me-prompt { margin-bottom: 18px; border-color: var(--accent); }
.me-prompt-q { margin: 4px 0 12px; font-size: 15px; line-height: 1.5; }
.me-prompt-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.me-prompt-row select { min-width: 180px; max-width: 320px; }
.ow-links .me-btn { margin-left: auto; }
@media (max-width: 640px) { .ow-links .me-btn { margin-left: 0; } .me-prompt-row select { flex: 1 1 100%; max-width: none; } }

/* ---- glossary: "What do these mean?" ---- */
.ui-gloss { margin: 10px 0 14px; }
.ui-gloss summary { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; cursor: pointer; font-size: 13.5px; color: var(--muted); }
.ui-gloss summary::before { content: '?'; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid currentColor; font-size: 11px; font-weight: 700; }
.ui-gloss summary:hover, .ui-gloss[open] summary { color: var(--text); }
.ui-gloss dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; margin-top: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 13.5px; line-height: 1.5; }
.ui-gloss dt { font-weight: 700; color: var(--accent); }
.ui-gloss dd { margin: 0; color: var(--text); }
th.has-help { text-decoration: underline dotted; text-underline-offset: 3px; }
@media (max-width: 640px) { .ui-gloss dl { grid-template-columns: 1fr; gap: 2px; } .ui-gloss dd { margin-bottom: 8px; } }
.ov-grid + a.ov-cta { margin-top: 12px; }
/* player names and values in the Trade lab read as normal text (buttons are uppercase by default, which turned 2k into 2K) */
.tl-asset, .tl-chip { text-transform: none; letter-spacing: normal; }
