/* Direction: genealogy chart on pale turf-gray paper. Position colors (QB, RB, WR, TE) tag every
   asset the way a draft board does. Layout: header + tabs, then one view at a time. */
:root {
  --bg: #e4eae1; --panel: #f3f6ef; --ink: #16231b; --muted: #56665b; --line: #c3cdc0;
  --grid: rgba(22, 35, 27, 0.07);
  --qb: #d3406a; --rb: #259a68; --wr: #2a6fc4; --te: #dc8419; --pick: #8f7d4c;
  --good: #1f7a4d; --bad: #b3402f;
  --display: 'Big Shoulders Display', Impact, 'Arial Narrow', sans-serif;
  --body: 'Barlow Semi Condensed', 'Arial Narrow', system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14201a; --panel: #1b2b22; --ink: #e6ede3; --muted: #9db0a2; --line: #2d4337;
    --grid: rgba(230, 237, 227, 0.06);
    --qb: #f27a99; --rb: #4fd39a; --wr: #62a8f5; --te: #f5ad4a; --pick: #cdbb82;
    --good: #5fd49a; --bad: #f08a78; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14201a; --panel: #1b2b22; --ink: #e6ede3; --muted: #9db0a2; --line: #2d4337;
  --grid: rgba(230, 237, 227, 0.06);
  --qb: #f27a99; --rb: #4fd39a; --wr: #62a8f5; --te: #f5ad4a; --pick: #cdbb82;
  --good: #5fd49a; --bad: #f08a78; color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.45; }
a { color: inherit; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.page { max-width: 1260px; margin: 0 auto; padding: 18px 16px 48px; display: flex; flex-direction: column; gap: 16px; }

/* header */
.top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; }
.brand { text-decoration: none; }
.top h1 { font-family: var(--display); font-weight: 900; font-size: 42px; line-height: 1; letter-spacing: 0.01em; text-transform: uppercase; margin: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs[hidden] { display: none; }
.tabs a { text-decoration: none; font-weight: 700; text-transform: uppercase; letter-spacing: 0.045em; font-size: 15px; padding: 6px 10px; border: 1.5px solid transparent; }
.tabs a:hover { border-color: var(--line); }
.tabs a[aria-current="page"] { background: var(--ink); color: var(--panel); }
.leaguename { margin: 0; color: var(--muted); margin-left: auto; }

h2.title { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1.05; margin: 0; text-wrap: balance; }
.muted { color: var(--muted); }
.card { background: var(--panel); border: 1px solid var(--line); padding: 16px; }
.btn { font-weight: 700; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; background: var(--ink); color: var(--panel); border: 1.5px solid var(--ink); padding: 8px 16px; cursor: pointer; text-decoration: none; display: inline-block; }
.btn.ghost { background: none; color: var(--ink); }
.btn:hover { opacity: 0.85; }
.btn.small { padding: 4px 10px; font-size: 13px; }

/* home */
.home { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; max-width: 760px; }
.home p { margin: 0; max-width: 62ch; }
.loadrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.loadrow label { display: flex; flex-direction: column; gap: 4px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 13px; flex: 1 1 280px; }
.loadrow input { font: 500 17px var(--body); padding: 9px 12px; border: 1.5px solid var(--ink); background: var(--panel); color: var(--ink); min-width: 0; letter-spacing: 0; text-transform: none; }
.status { min-height: 1.5em; color: var(--muted); }
.status.err { color: var(--bad); }

/* rosters */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-weight: 600; font-size: 15px; padding: 5px 12px; border: 1.5px solid var(--line); background: var(--panel); text-decoration: none; }
.chip small { color: var(--muted); font-weight: 500; margin-left: 6px; }
.chip[aria-current="true"] { border-color: var(--ink); background: var(--ink); color: var(--panel); }
.chip[aria-current="true"] small { color: inherit; opacity: 0.8; }
.rosterwrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }
table.list { width: 100%; border-collapse: collapse; background: var(--panel); border: 1px solid var(--line); }
table.list caption { text-align: left; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; color: var(--muted); padding: 10px 12px 6px; }
table.list th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 4px 12px; border-bottom: 1px solid var(--line); }
table.list td { padding: 0; border-bottom: 1px solid var(--line); }
table.list tr:last-child td { border-bottom: 0; }
.rowlink { display: grid; grid-template-columns: 6px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 12px 9px 0; text-decoration: none; }
.rowlink:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.rowlink .stripe { align-self: stretch; background: var(--c, var(--pick)); }
.rowlink .nm { font-weight: 700; }
.rowlink .sb { color: var(--muted); font-size: 14px; }
.num { font-family: var(--display); font-weight: 800; font-size: 24px; font-variant-numeric: tabular-nums; text-align: right; }
.num.none { color: var(--muted); font-family: var(--body); font-weight: 500; font-size: 15px; }

/* asset history */
.assethead { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 24px; }
.assethead .kind { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.assethead .kind i { width: 12px; height: 12px; background: var(--c); display: inline-block; }
.bigval { font-family: var(--display); font-weight: 800; font-size: 48px; line-height: 1; font-variant-numeric: tabular-nums; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; max-width: 820px; }
.timeline li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 0 16px; padding: 0 0 18px; position: relative; }
.timeline li::before { content: ''; position: absolute; left: 104px; top: 6px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .when { font-weight: 700; color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; padding-top: 2px; }
.timeline .what { background: var(--panel); border: 1px solid var(--line); padding: 12px 14px; margin-left: 16px; display: flex; flex-direction: column; gap: 6px; }
.timeline .what::before { content: ''; position: absolute; left: 99px; top: 6px; width: 12px; height: 12px; background: var(--ink); border-radius: 50%; }
.timeline .what b { font-size: 17px; }
.timeline .what .row { display: flex; flex-wrap: wrap; gap: 2px 8px; }
.timeline .what .row span:first-child { font-weight: 700; }
.timeline .what .actions { margin-top: 4px; }

/* trades list */
.tradelist { display: flex; flex-direction: column; gap: 10px; }
.tradeitem { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 16px; align-items: center; background: var(--panel); border: 1px solid var(--line); padding: 12px 16px; }
.tradeitem .when { font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; font-size: 14px; }
.tradeitem .sides { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px 24px; }
.tradeitem .sides b { display: block; }

/* trade view */
.score { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.side { background: var(--panel); border: 1px solid var(--line); border-left: 6px solid var(--ink); padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.side .team { font-weight: 700; font-size: 18px; text-transform: uppercase; letter-spacing: 0.04em; }
.side .got { color: var(--muted); font-size: 15px; }
.side .nums { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-family: var(--display); font-weight: 800; font-variant-numeric: tabular-nums; }
.side .nums .a { font-size: 32px; color: var(--muted); }
.side .nums .arrow { font-size: 24px; color: var(--muted); }
.side .nums .b { font-size: 60px; line-height: 1; }
.side .nums .d { font-size: 24px; }
.d.up { color: var(--good); } .d.down { color: var(--bad); }
.side .cap { font-size: 13px; color: var(--muted); }
.story { margin: 0; font-size: 18px; max-width: 84ch; }
.work { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.stagewrap { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.stage {
  position: relative; height: clamp(480px, 74vh, 820px);
  background-color: var(--panel);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px; border: 1px solid var(--line); overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab;
  --stage: var(--panel);
}
.stage.dragging { cursor: grabbing; }
.stage svg { width: 100%; height: 100%; display: block; }
.controls { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; }
.controls button { font: 700 16px var(--body); min-width: 40px; height: 40px; padding: 0 10px; background: var(--panel); color: var(--ink); border: 1.5px solid var(--ink); cursor: pointer; }
.controls button:hover { background: var(--ink); color: var(--panel); }
.hint { margin: 0; font-size: 13px; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 12px; height: 12px; display: inline-block; background: var(--c); }
.sw.ring { background: none; border: 2px dashed var(--pick); border-radius: 50%; }
.detail { background: var(--panel); border: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 12px; min-width: 0; }
.detail .kind { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.detail .kind i { width: 12px; height: 12px; background: var(--c); display: inline-block; }
.detail h2 { font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1.05; margin: 0; text-wrap: balance; }
.detail dl { margin: 0; display: grid; grid-template-columns: 84px 1fr; gap: 6px 12px; }
.detail dt { color: var(--muted); font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; padding-top: 2px; }
.detail dd { margin: 0; font-variant-numeric: tabular-nums; }
.detail .note { margin: 0; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; }
.detail .actions { display: flex; flex-wrap: wrap; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.foot { color: var(--muted); font-size: 14px; max-width: 100ch; }

/* svg */
svg text { font-family: var(--body); }
.band { fill: var(--ink); opacity: 0.04; }
.rowlbl { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; fill: var(--muted); text-transform: uppercase; }
.link { fill: none; stroke: var(--muted); stroke-width: 1.75; transition: opacity 0.2s; }
.link.on { stroke: var(--ink); stroke-width: 3; }
.link.dim { opacity: 0.2; }
.box { fill: var(--panel); stroke: var(--muted); stroke-width: 1.25; }
.box.pend { stroke-dasharray: 6 4; }
.box.sel { stroke: var(--ink); stroke-width: 3; }
.obox { fill: var(--panel); stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 4 4; }
.obox.linked { stroke: var(--muted); stroke-dasharray: none; }
.obox.sel { stroke: var(--ink); stroke-width: 3; stroke-dasharray: none; }
.rowsub { font-size: 11px; font-weight: 500; letter-spacing: 0.02em; fill: var(--muted); }
.bkick { font-size: 10.5px; font-weight: 700; letter-spacing: 0.09em; fill: var(--muted); text-transform: uppercase; }
.bname { font-size: 14.5px; font-weight: 700; fill: var(--ink); }
.bmeta { font-size: 12.5px; fill: var(--muted); }
.bmeta.cap { font-style: italic; }
.bmeta.ev { font-weight: 600; fill: var(--ink); }
.bval { font-family: var(--display); font-weight: 800; font-size: 26px; fill: var(--ink); text-anchor: end; font-variant-numeric: tabular-nums; }
.cut .bname { text-decoration: line-through; fill: var(--muted); }
.cut .bmeta.ev { fill: var(--muted); }
.tradebox { fill: var(--ink); }
.selring { fill: none; stroke: var(--ink); stroke-width: 2; }
.ttext { font-family: var(--display); font-weight: 800; font-size: 22px; fill: var(--panel); letter-spacing: 0.03em; }
.ttext.small { font-family: var(--body); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; }
.el { transition: opacity 0.2s; cursor: pointer; }
.el.dim { opacity: 0.2; }
.el:focus-visible { outline: none; }
.el:focus-visible .box, .el:focus-visible .tradebox, .el:focus-visible .obox { stroke: var(--ink); stroke-width: 4; }
@media (prefers-reduced-motion: reduce) { .el, .link { transition: none; } }

@media (max-width: 960px) {
  .work, .rosterwrap { grid-template-columns: minmax(0, 1fr); }
  .detail { position: static; }
}
@media (max-width: 620px) {
  .top h1 { font-size: 36px; }
  .leaguename { margin-left: 0; flex-basis: 100%; }
  .stage { height: 62vh; min-height: 440px; }
  .tradeitem { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .timeline li { grid-template-columns: minmax(0, 1fr); }
  .timeline li::before, .timeline .what::before { display: none; }
  .timeline .what { margin-left: 0; }
  .side .nums .b { font-size: 52px; }
}

/* ---------- trade calculator ---------- */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.calc .pane { background: var(--panel); border: 1px solid var(--line); }
.calc .panehead { padding: 12px; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.calc .panehead label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); display: grid; gap: 4px; }
.calc select, .calc input[type=search] { font: 500 16px var(--body); padding: 8px 10px; border: 1.5px solid var(--ink); background: var(--panel); color: var(--ink); min-width: 0; width: 100%; }
.calc .picklist { max-height: 340px; overflow: auto; }
.calc .pick { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.calc .pick:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.calc .pick input { width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.calc .pick .stripe { width: 4px; align-self: stretch; background: var(--c, var(--pick)); flex: none; }
.calc .pick .nm { font-weight: 600; }
.calc .pick .sb { color: var(--muted); font-size: 14px; }
.calc .pick .num { margin-left: auto; font-family: var(--display); font-weight: 800; font-size: 20px; }
.calc .sendtotal { padding: 10px 12px; font-weight: 700; display: flex; justify-content: space-between; border-top: 1px solid var(--line); }
.verdict { margin-top: 16px; background: var(--panel); border: 1px solid var(--line); border-left: 6px solid var(--ink); padding: 16px; display: grid; gap: 10px; }
.verdict h3 { margin: 0; font-family: var(--display); font-size: 30px; letter-spacing: 0.01em; text-transform: uppercase; line-height: 1.1; }
.verdict.fair { border-left-color: var(--rb); }
.verdict .sub { color: var(--muted); }
.verdict .bar { display: flex; height: 14px; background: var(--line); }
.verdict .bar span { display: block; height: 100%; }
.verdict .bar .a { background: var(--wr); }
.verdict .bar .b { background: var(--te); }
.verdict .legend { display: flex; justify-content: space-between; font-weight: 600; font-size: 14px; gap: 8px; }
.verdict h4 { margin: 6px 0 0; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.verdict ul { margin: 0; padding-left: 18px; }
.calcopts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0; }
.calcopts label { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 15px; }
.calcopts input { width: 18px; height: 18px; accent-color: var(--ink); }
@media (max-width: 720px) { .calc { grid-template-columns: 1fr; } .calc .picklist { max-height: 260px; } .verdict h3 { font-size: 26px; } }

/* ---------- rivals (head to head) ---------- */
.badge { display: inline-block; font-weight: 800; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 9px; border: 1.5px solid var(--ink); }
.badge.buy { background: var(--rb); border-color: var(--rb); color: #fff; }
.badge.sell { background: var(--qb); border-color: var(--qb); color: #fff; }
.badge.hold { background: none; color: var(--ink); }
.outlook { background: var(--panel); border: 1px solid var(--line); border-left: 6px solid var(--ink); padding: 16px; display: grid; gap: 8px; }
.outlook.buy { border-left-color: var(--rb); } .outlook.sell { border-left-color: var(--qb); }
.outlook h3 { margin: 0; font-family: var(--display); font-size: 28px; text-transform: uppercase; line-height: 1.1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.outlook .ranks { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--muted); font-weight: 600; font-size: 15px; }
.rivals { display: grid; gap: 0; background: var(--panel); border: 1px solid var(--line); }
.rival { display: grid; grid-template-columns: minmax(0, 1.4fr) 110px minmax(0, 1.6fr); gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.rival:last-child { border-bottom: 0; }
.rival .who { display: grid; gap: 4px; justify-items: start; }
.rival .who a { font-weight: 700; font-size: 18px; }
.rival .rec { font-family: var(--display); font-weight: 800; font-size: 32px; line-height: 1; text-align: center; }
.rival .rec small { display: block; font-family: var(--body); font-weight: 600; font-size: 13px; color: var(--muted); letter-spacing: 0; }
.rival .rec.up { color: var(--rb); } .rival .rec.down { color: var(--qb); }
.rival .meta { color: var(--muted); font-size: 15px; display: grid; gap: 2px; }
.rival .meta .tip { color: var(--ink); font-weight: 600; }
@media (max-width: 720px) { .rival { grid-template-columns: 1fr 96px; } .rival .meta { grid-column: 1 / -1; } .outlook h3 { font-size: 24px; } }

@media (max-width: 480px) { .tabs a { padding: 6px 10px; font-size: 14px; } .tabs { gap: 4px; } }

/* ---------- future power rankings ---------- */
.seasonchips { display: flex; flex-wrap: wrap; gap: 8px; }
.pwr { display: grid; background: var(--panel); border: 1px solid var(--line); }
.prow { display: grid; grid-template-columns: 56px minmax(0, 1.3fr) minmax(0, 1.7fr); gap: 6px 14px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prow:last-child { border-bottom: 0; }
.prow .big { font-family: var(--display); font-weight: 900; font-size: 44px; line-height: 1; text-align: center; }
.prow .nm { display: grid; gap: 4px; justify-items: start; }
.prow .nm a { font-weight: 700; font-size: 18px; }
.prow .nm .sb { color: var(--muted); font-size: 14px; }
.trend { display: inline-block; font-weight: 800; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 8px; border: 1.5px solid var(--ink); }
.trend.rising { background: var(--rb); border-color: var(--rb); color: #fff; }
.trend.falling { background: var(--qb); border-color: var(--qb); color: #fff; }
.trail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ps { border: 1.5px solid var(--line); padding: 4px 6px; text-align: center; font-family: var(--display); font-weight: 800; font-size: 22px; line-height: 1.1; }
.ps small { display: block; font-family: var(--body); font-weight: 600; font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }
.ps.on { border-color: var(--ink); background: var(--ink); color: var(--panel); }
.ps.on small { color: inherit; opacity: 0.8; }
.pbar { grid-column: 2 / -1; height: 8px; background: var(--line); }
.pbar span { display: block; height: 100%; background: var(--ink); }
@media (max-width: 720px) { .prow { grid-template-columns: 48px minmax(0, 1fr); } .prow .trail, .pbar { grid-column: 1 / -1; } .prow .big { font-size: 38px; } }

/* ---------- trade finder ---------- */
.fctl { background: var(--panel); border: 1px solid var(--line); padding: 14px; display: grid; gap: 12px; }
.fctl .row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: end; }
.fctl label.f { display: grid; gap: 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); min-width: 180px; flex: 1 1 200px; }
.fctl select { font: 500 16px var(--body); padding: 8px 10px; border: 1.5px solid var(--ink); background: var(--panel); color: var(--ink); min-width: 0; width: 100%; text-transform: none; letter-spacing: 0; }
.fctl .goals { display: flex; gap: 8px; flex-wrap: wrap; }
.fctl .goal { font: 700 15px var(--body); letter-spacing: 0.04em; text-transform: uppercase; padding: 7px 14px; border: 1.5px solid var(--ink); background: none; color: var(--ink); cursor: pointer; }
.fctl .goal[aria-pressed="true"] { background: var(--ink); color: var(--panel); }
.fctl .hintline { color: var(--muted); font-size: 15px; margin: 0; }
.offers { display: grid; gap: 14px; }
.offer { background: var(--panel); border: 1px solid var(--line); border-left: 6px solid var(--ink); padding: 14px; display: grid; gap: 12px; }
.offer.likely { border-left-color: var(--rb); } .offer.maybe { border-left-color: var(--te); } .offer.long { border-left-color: var(--qb); }
.offer header { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; }
.offer header .who { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.offer header .who a { font-weight: 800; font-size: 20px; }
.meter { display: grid; gap: 4px; min-width: 150px; text-align: right; }
.meter b { font-family: var(--display); font-size: 34px; line-height: 1; }
.meter b small { font-family: var(--body); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-left: 8px; color: var(--muted); }
.meter .track { height: 8px; background: var(--line); }
.meter .track span { display: block; height: 100%; background: var(--ink); }
.offer.likely .meter .track span { background: var(--rb); } .offer.maybe .meter .track span { background: var(--te); } .offer.long .meter .track span { background: var(--qb); }
.swap { display: grid; grid-template-columns: 1fr 28px 1fr; gap: 10px; align-items: start; }
.swap h4 { margin: 0 0 6px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.swap ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.swap li { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.swap li .num { font-family: var(--display); font-weight: 800; font-size: 20px; }
.swap .arrow { font-family: var(--display); font-size: 28px; text-align: center; color: var(--muted); }
.swap .tot { margin-top: 6px; color: var(--muted); font-size: 14px; }
.why { margin: 0; padding-left: 18px; color: var(--muted); display: grid; gap: 2px; }
.tag { display: inline-block; font-weight: 800; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 7px; border: 1.5px solid var(--qb); color: var(--qb); }
@media (max-width: 720px) { .swap { grid-template-columns: 1fr; } .swap .arrow { transform: rotate(90deg); height: 20px; line-height: 20px; } .meter { text-align: left; width: 100%; } }

/* ---------- finder: madden-style trade screen ---------- */
.fctl .check { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--ink); }
.fctl .check input { width: 18px; height: 18px; accent-color: var(--ink); flex: none; }
.offerspanel { background: var(--panel); border: 1px solid var(--line); border-top: 6px solid var(--ink); padding: 14px; display: grid; gap: 12px; scroll-margin-top: 8px; }
.ophead { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.ophead h3 { margin: 0; font-family: var(--display); font-size: 28px; line-height: 1.1; text-transform: uppercase; }
.opbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.offerspanel .offer { background: var(--bg); }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.rcol { background: var(--panel); border: 1px solid var(--line); padding: 12px 0 0; }
.rcol h3 { margin: 0; padding: 0 12px; font-family: var(--display); font-size: 26px; text-transform: uppercase; line-height: 1.1; }
.rcol .rsub { padding: 6px 12px 0; }
.rcol h4 { margin: 12px 0 0; padding: 0 12px 6px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.alist { display: grid; }
.arow { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; font: inherit; color: var(--ink); background: none; border: 0; border-top: 1px solid var(--line); padding: 8px 12px; cursor: pointer; }
.arow:hover:not(:disabled) { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.arow:disabled { opacity: 0.5; cursor: default; }
.arow .stripe { width: 4px; align-self: stretch; background: var(--c, var(--pick)); flex: none; }
.arow .nm { font-weight: 700; }
.arow .sb { color: var(--muted); font-size: 14px; }
.arow .num { margin-left: auto; font-family: var(--display); font-weight: 800; font-size: 20px; }
.arow.sel { background: var(--ink); color: var(--panel); }
.arow.sel .sb { color: inherit; opacity: 0.8; }
@media (max-width: 720px) {
  .fgrid { grid-template-columns: 1fr; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; width: 100%; padding-bottom: 4px; scrollbar-width: thin; }
  .tabs a { flex: none; }
}

small.mkt { display: block; font-family: var(--body); font-weight: 500; font-size: 11px; color: var(--muted); letter-spacing: 0; text-align: right; }
.verdict .brk { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.verdict .brk ul { list-style: none; padding: 0; display: grid; gap: 2px; }
.verdict .brk li { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.verdict .brk li small.mkt { display: inline; margin-left: 6px; }
@media (max-width: 720px) { .verdict .brk { grid-template-columns: 1fr; } }

/* trade leaderboard */
.tradeitem .rk { display: block; color: var(--ink); font-size: 20px; letter-spacing: 0; }
.tradeitem .out { display: block; color: var(--muted); font-weight: 500; margin-top: 2px; }
.tradeitem .tmeta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; border-top: 1px dashed var(--line); padding-top: 6px; }
.tradeitem .tmeta b { display: inline; }
.tstats { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 14px; }
.res.up { color: var(--good); } .res.down { color: var(--bad); } .res.even { color: var(--muted); }
.traders { background: var(--panel); border: 1px solid var(--line); padding: 10px 16px; }
.traders summary { cursor: pointer; font-weight: 700; }
.traders table { width: 100%; border-collapse: collapse; margin-top: 8px; font-variant-numeric: tabular-nums; }
.traders th, .traders td { text-align: left; padding: 5px 8px 5px 0; border-bottom: 1px solid var(--line); }
.traders td.up { color: var(--good); font-weight: 700; } .traders td.down { color: var(--bad); font-weight: 700; }

/* share bar, preview dialog, toast */
.sharebar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -6px 0 -4px; }
.sharebar[hidden] { display: none; }
.sharebar .lbl { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
.sharedlg { position: fixed; inset: 0; background: rgba(10, 18, 13, 0.72); z-index: 50; display: flex; align-items: center; justify-content: center; padding: 14px; }
.sharedlg .box { background: var(--panel); border: 1.5px solid var(--ink); max-width: 560px; width: 100%; max-height: 100%; display: flex; flex-direction: column; gap: 12px; padding: 12px; }
.sharedlg .prev { overflow: auto; min-height: 120px; display: flex; justify-content: center; }
.sharedlg .prev img { max-width: 100%; height: auto; display: block; border: 1px solid var(--line); }
.sharedlg .acts { display: flex; flex-wrap: wrap; gap: 8px; }
#toast { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 20px); background: var(--ink); color: var(--panel); padding: 10px 18px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; z-index: 60; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* team card tiles */
.rtiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.rtile { background: var(--panel); border: 1px solid var(--line); border-top: 6px solid var(--ink); padding: 12px 16px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.rtile.good { border-top-color: var(--good); } .rtile.bad { border-top-color: var(--bad); }
.rtile .lbl { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.rtile b { font-family: var(--display); font-weight: 900; font-size: 84px; line-height: 1; }
.rtile.good b { color: var(--good); } .rtile.bad b { color: var(--bad); }
.rtile .of { font-weight: 600; } .rtile .nt { color: var(--muted); font-size: 14px; }

/* trader rankings, trade pages */
.traderlist { display: flex; flex-direction: column; gap: 8px; }
.trow { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--line); padding: 10px 16px; text-decoration: none; }
.trow:hover { border-color: var(--ink); }
.trow .rk { font-family: var(--display); font-weight: 900; font-size: 34px; text-align: center; }
.trow .nm { font-weight: 700; font-size: 18px; min-width: 0; } .trow small { display: block; color: var(--muted); font-weight: 500; font-size: 13px; }
.trow .rec, .trow .net { font-family: var(--display); font-weight: 800; font-size: 28px; text-align: right; font-variant-numeric: tabular-nums; }
.trow .net.up { color: var(--good); } .trow .net.down { color: var(--bad); }
.sumrow { display: flex; flex-wrap: wrap; gap: 10px; }
.sumrow > div { background: var(--panel); border: 1px solid var(--line); padding: 8px 16px; min-width: 120px; }
.sumrow b { display: block; font-family: var(--display); font-weight: 900; font-size: 34px; line-height: 1.1; } .sumrow span { color: var(--muted); font-size: 14px; }
.sumrow b.up { color: var(--good); } .sumrow b.down { color: var(--bad); }
.tradeitem .sides .me { outline: 2px solid var(--ink); outline-offset: 4px; }

/* GM report cards */
.gr { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 6px; font-family: var(--display); font-weight: 900; font-size: 26px; color: #fff; background: var(--line); border-radius: 8px; }
.gr.big { min-width: 64px; height: 64px; font-size: 38px; }
.gr.g-A { background: #1f7a4d; } .gr.g-B { background: #2a6fc4; } .gr.g-C { background: #dc8419; } .gr.g-D { background: #c4572a; } .gr.g-F { background: #b3402f; } .gr.none { color: var(--muted); }
.report { background: var(--ink); color: var(--panel); padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.report header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.report .lbl { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--soft, #9db0a2); }
.report h3 { font-family: var(--display); font-weight: 900; font-size: 40px; line-height: 1.05; margin: 2px 0 6px; text-transform: uppercase; }
.report p { margin: 0; color: #c9d6cc; }
.gs { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.gs > div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.gs small { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.report .gs small { color: #9db0a2; }
.rclist { display: flex; flex-direction: column; gap: 10px; }
.rcrow { display: grid; grid-template-columns: minmax(140px, 220px) 1fr auto; gap: 14px; align-items: center; background: var(--panel); border: 1px solid var(--line); padding: 10px 16px; }
.rcrow .yr b { display: block; font-family: var(--display); font-weight: 900; font-size: 38px; line-height: 1; }
.rcrow .yr span { color: var(--muted); } .rcrow .yr em { display: block; color: var(--te); font-style: normal; font-weight: 700; font-size: 13px; }
.rcrow .ov { display: flex; flex-direction: column; align-items: center; gap: 4px; } .rcrow .ov small { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.trow.gm { grid-template-columns: 44px minmax(0, 1fr) auto; } .trow.gm .rec { display: flex; flex-direction: column; align-items: center; }
@media (max-width: 720px) {
  .rcrow { grid-template-columns: 1fr auto; } .rcrow .gs { grid-column: 1 / -1; order: 3; gap: 8px; } .rcrow .gr { min-width: 40px; height: 40px; font-size: 22px; }
  .trow { grid-template-columns: 34px minmax(0, 1fr) auto; } .trow .net { grid-column: 2 / -1; text-align: left; display: flex; gap: 8px; align-items: baseline; } .trow .net small { display: inline; }
  .report h3 { font-size: 32px; } .rtile b { font-size: 70px; }
}

.gr.sm { min-width: 30px; height: 30px; font-size: 18px; border-radius: 6px; margin-left: 6px; vertical-align: middle; }
.tstats .early { color: var(--te); font-weight: 700; }
.sumrow .gr { margin: 2px 0; }
.score .team .gr { vertical-align: middle; }

.errcard{border-color:#e0b4b4}.errtxt{white-space:pre-wrap;word-break:break-word;font-size:12px;background:rgba(0,0,0,.05);padding:10px;border-radius:8px;max-height:160px;overflow:auto}

.bmeta.from { fill: var(--ink); opacity: 0.8; }
.ttext.teams { font-family: var(--body); font-size: 16px; font-weight: 700; letter-spacing: 0.02em; }
.tchip rect { fill: var(--panel); stroke: var(--muted); stroke-width: 1.25; }
.tchip text { font-size: 11.5px; font-weight: 700; fill: var(--ink); }
.tchip.go { cursor: pointer; }
.tchip.go:hover rect { fill: var(--ink); }
.tchip.go:hover text { fill: var(--panel); }
.parties { margin: 0; font-weight: 700; }

/* what if */
.whatifrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.whatifrow > span { font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 13px; color: var(--muted); }
.wihero { background: var(--ink); color: var(--panel); padding: 20px 22px; display: grid; gap: 8px; }
.wihero .kick { font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; font-size: 13px; opacity: 0.7; }
.wihero h2 { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(30px, 6vw, 48px); line-height: 1.02; text-transform: uppercase; }
.wihero .muted { color: var(--panel); opacity: 0.7; }
.wiverdict { margin: 0; font-size: 20px; font-weight: 700; }
.wiverdict.up { color: #7be3ae; } .wiverdict.down { color: #ffa08f; }
.wisides { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 10px; }
.wiside h4 { margin: 0 0 6px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.wiasset { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid var(--line); margin-bottom: 6px; text-decoration: none; font-weight: 600; background: var(--bg); position: relative; }
.wiasset .stripe { width: 6px; align-self: stretch; background: var(--c); margin: -7px 0 -7px -10px; }
.wiasset small { margin-left: auto; color: var(--muted); font-weight: 500; }
.wimetrics { width: 100%; border-collapse: collapse; margin: 8px 0; }
.wimetrics th, .wimetrics td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: right; }
.wimetrics th:first-child, .wimetrics th[scope=row] { text-align: left; font-weight: 600; }
.wimetrics thead th { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
td.up, .wi.up, span.up { color: var(--good); font-weight: 700; } td.down, .wi.down, span.down { color: var(--bad); font-weight: 700; }
.wicols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
@media (max-width: 760px) { .wicols { grid-template-columns: 1fr; } }
.wicol { background: var(--panel); border: 1px solid var(--line); padding: 0 0 8px; }
.wicol h3 { margin: 0; padding: 10px 14px; font-family: var(--display); font-size: 22px; text-transform: uppercase; background: var(--bg); border-bottom: 1px solid var(--line); }
.wicol.alt h3 { background: var(--ink); color: var(--panel); }
.wiTotal { font-family: var(--display); font-weight: 900; font-size: 44px; padding: 6px 14px 0; line-height: 1.1; }
.wiTotal small { font-family: var(--body); font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-left: 8px; }
.wicol h5 { margin: 12px 14px 4px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.wirow { display: flex; align-items: center; gap: 10px; padding: 7px 14px; border-top: 1px solid var(--line); position: relative; }
.wirow .stripe { width: 6px; align-self: stretch; background: var(--c); margin: -7px 0 -7px -14px; }
.wirow .nmw { display: grid; flex: 1; min-width: 0; }
.wirow .nm { font-weight: 700; } .wirow .sb { color: var(--muted); font-size: 13px; }
.wirow .tag { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 6px; }
.wirow.add { background: rgba(31, 122, 77, 0.14); box-shadow: inset 4px 0 0 var(--good); }
.wirow.add .tag { background: var(--good); color: #fff; }
.wirow.rm { background: rgba(179, 64, 47, 0.13); box-shadow: inset 4px 0 0 var(--bad); }
.wirow.rm .tag { background: var(--bad); color: #fff; }
.wiother { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wiother h3 { margin: 0; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.wichip { padding: 5px 12px; border: 1.5px solid var(--line); background: var(--panel); text-decoration: none; }
.wisum { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.wiassume { background: var(--panel); border: 1px solid var(--line); padding: 12px 16px; }
.wiassume summary { cursor: pointer; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 14px; }
.wiassume ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
.wiass { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-left: 5px solid var(--te); background: var(--bg); }
.wiass.info { border-left-color: var(--muted); } .wiass.draft { border-left-color: var(--wr); } .wiass.wire { border-left-color: var(--pick); }
.wiass p { margin: 0; }
.wiglobal { display: grid; gap: 8px; margin-top: 10px; }
.wiglobal label { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-weight: 600; }
.wiassume select, .wiglobal select { font: inherit; padding: 5px 8px; border: 1.5px solid var(--ink); background: var(--panel); color: var(--ink); max-width: 100%; }
.wicaveats { margin: 0; padding-left: 20px; color: var(--muted); font-size: 14px; display: grid; gap: 4px; }
.wiseason h3 { margin: 12px 0 6px; font-family: var(--display); font-size: 24px; text-transform: uppercase; }
.witrade { display: grid; grid-template-columns: 90px 1fr auto; gap: 6px 14px; align-items: center; padding: 10px 14px; background: var(--panel); border: 1px solid var(--line); border-left: 5px solid var(--ink); text-decoration: none; margin-bottom: 8px; position: relative; }
.witrade:hover { background: var(--bg); }
.witrade .wd { font-weight: 700; color: var(--muted); }
.witrade .wi { text-align: right; font-family: var(--display); font-size: 24px; font-weight: 800; line-height: 1.1; }
.witrade .wi small { display: block; font-family: var(--body); font-size: 12px; font-weight: 600; color: var(--muted); }
.wibadge { position: absolute; top: -9px; right: 12px; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 8px; color: #fff; }
.wibadge.bad { background: var(--bad); } .wibadge.good { background: var(--good); }
@media (max-width: 640px) { .witrade { grid-template-columns: 1fr; } .witrade .wi { text-align: left; } }

.ranks { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.ranks .rk { background: var(--ink); color: var(--panel); padding: 4px 12px; display: grid; line-height: 1.1; }
.ranks .rk b { font-family: var(--display); font-size: 30px; font-weight: 900; }
.ranks .rk small { font-size: 12px; letter-spacing: 0.04em; opacity: 0.75; }
.sb b { color: var(--ink); }

.wiwins { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.wibig { font-family: var(--display); font-weight: 900; font-size: clamp(56px, 12vw, 104px); line-height: 0.95; text-transform: uppercase; }
.wibig.up { color: #7be3ae; } .wibig.down { color: #ffa08f; }
.wicap { font-size: 15px; opacity: 0.8; line-height: 1.3; }
.wiverdict2 { margin: 0; font-size: 16px; opacity: 0.85; }
.wiverdict2.up { color: #7be3ae; } .wiverdict2.down { color: #ffa08f; }
.wiflips { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 6px; }
.wiflips li.up b { color: var(--good); } .wiflips li.down b { color: var(--bad); }

.leaguepick { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; max-width: 560px; }
.lgbtn { width: 100%; text-align: left; background: var(--panel, #f4f7f1); border: 1px solid var(--line, #c9d3c6); padding: 12px 14px; font: inherit; cursor: pointer; display: grid; gap: 2px; }
.lgbtn b { font-size: 18px; } .lgbtn span { font-size: 14px; opacity: 0.75; }
.lgbtn:hover, .lgbtn:focus-visible { border-color: var(--ink, #14231a); outline: none; }
.valnote { border-left: 4px solid #d69a2d; background: #fbf3e0; padding: 8px 12px; margin: 10px 0; font-size: 14.5px; }
.valnote p { margin: 2px 0; }
.foot p { margin: 4px 0; } .foot a { color: inherit; }
.muted.small { font-size: 14px; margin-top: 14px; }

.doc h3 { margin: 22px 0 8px; font-size: 20px; }
.doc .card h3:first-child { margin-top: 0; }
.doc p, .doc li, .doc dd { line-height: 1.5; }
.doc ul { padding-left: 20px; display: grid; gap: 6px; }
.doc dl { margin: 0; } .doc dt { font-weight: 700; margin-top: 12px; } .doc dt:first-child { margin-top: 0; } .doc dd { margin: 2px 0 0; }
.foot .legal { margin-top: 10px; }
.doc .title { margin-top: 16px; }

.stage { overscroll-behavior: contain; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.stage svg { touch-action: none; }
.stage [data-id], .stage [data-trade] { cursor: pointer; }

/* search */
.search { position: relative; margin: 10px 0 0; }
.search input, .rkbar input { width: 100%; box-sizing: border-box; font: 500 16px var(--body); padding: 11px 14px; border: 1.5px solid var(--ink); background: var(--panel); color: var(--ink); border-radius: 0; -webkit-appearance: none; appearance: none; }
.qres { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); background: var(--panel); border: 1.5px solid var(--ink); max-height: min(70vh, 480px); overflow-y: auto; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.qres .hit { display: flex; align-items: center; gap: 10px; padding: 10px 12px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.qres .hit:last-child { border-bottom: 0; }
.qres .hit:hover, .qres .hit:focus { background: var(--grid); }
.qres .stripe { width: 5px; align-self: stretch; background: var(--c); flex: none; }
.qres .who { flex: 1; min-width: 0; display: grid; }
.qres .who b { font-size: 17px; } .qres .who small { color: var(--muted); font-size: 13px; }
.qres .v { font-weight: 700; font-variant-numeric: tabular-nums; }
.qres .none { margin: 0; padding: 12px; color: var(--muted); }
/* rankings */
.rkbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.rkbar input { flex: 1; min-width: 160px; width: auto; }
.seg { display: inline-flex; gap: 6px; }
button.chip { font-family: inherit; cursor: pointer; color: var(--ink); }
button.chip[aria-current="true"] { color: var(--panel); }
table.rk { width: 100%; border-collapse: collapse; }
table.rk th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 600; padding: 6px 6px; border-bottom: 1.5px solid var(--ink); }
table.rk td { padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.rk .r { text-align: right; } table.rk th.r { text-align: right; }
table.rk .n { width: 36px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
table.rk .val { font-weight: 700; font-variant-numeric: tabular-nums; }
table.rk .stripe { display: inline-block; width: 4px; height: 14px; margin-right: 8px; vertical-align: -2px; }
table.rk a { color: var(--ink); font-weight: 600; }
table.rk .sb { color: var(--muted); font-size: 13px; margin-left: 12px; }
.fd { color: #c9a227; }
.tr { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tr i { font-style: normal; font-size: 11px; margin-right: 4px; }
.tr.up { color: var(--good); } .tr.down { color: var(--bad); } .tr.flat { color: var(--muted); font-weight: 500; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.search { width: 100%; align-self: stretch; max-width: 640px; }

/* nothing on a trade page may be wider than the screen: on iPhone a wide element makes Safari zoom the whole page out */
html, body { overflow-x: clip; max-width: 100%; }
.work > *, .stagewrap, .detail, .score .side, .story { min-width: 0; overflow-wrap: anywhere; }
.stage { max-width: 100%; }

/* Dynasty Run */
.gamecta { margin-top: 18px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.gamecta .btn { text-decoration: none; display: inline-block; }
.gm-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; }
.gm-metrics > div { border: 1.5px solid var(--ink); background: var(--panel); padding: 10px 10px 8px; display: grid; gap: 2px; }
.gm-metrics .lbl { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.gm-metrics b { font-size: 34px; line-height: 1; }
.gm-metrics small { color: var(--muted); font-size: 12px; }
.gm-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
@media (max-width: 720px) { .gm-cols { grid-template-columns: 1fr; } }
.gm-asset { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-bottom: 1px solid var(--line); cursor: pointer; }
.gm-asset.on { background: var(--grid); }
.gm-asset input { width: 22px; height: 22px; flex: none; }
.gm-asset .stripe { width: 4px; align-self: stretch; flex: none; }
.gm-asset .who { flex: 1; min-width: 0; } .gm-asset .v { font-weight: 700; font-variant-numeric: tabular-nums; }
.gm-meter { height: 12px; border: 1.5px solid var(--ink); background: var(--panel); margin: 14px 0 6px; }
.gm-meter i { display: block; height: 100%; background: var(--bad); } .gm-meter i.ok { background: var(--good); }
.gm-say { margin: 4px 0 10px; font-weight: 600; } .gm-say.ok { color: var(--good); }
.gm-note { margin: 10px 0 0; font-weight: 700; }
.gm-log { padding-left: 18px; display: grid; gap: 4px; }
.gm-result.won { border-color: var(--good); }
.gm-head { font-size: 44px; margin: 0 0 6px; }
.pill { display: inline-block; padding: 3px 10px; border: 1.5px solid var(--ink); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; background: var(--panel); }
.pill.champion { background: #f2d675; border-color: #8a6d12; color: #4a3a05; }
.pill.dynasty { background: #16231b; color: #f2d675; border-color: #16231b; }
.pill.big { font-size: 18px; padding: 8px 16px; }
tr.me td { background: var(--grid); font-weight: 700; }
table.rk td.r, table.rk th.r { white-space: nowrap; }

.gm-sub { margin: -4px 0 8px; font-weight: 600; }
.chip .sty { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
.chip[aria-current="true"] .sty, .chip[aria-pressed="true"] .sty { color: inherit; opacity: .8; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--panel); }
.gm-style { margin: 8px 0 0; }
.gm-news { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.gm-news li { line-height: 1.35; } .gm-news li.mine { font-weight: 700; }
.gm-news .tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 1px 6px; border: 1.5px solid var(--ink); margin-right: 4px; background: var(--panel); }
.gm-news .tag.injury { border-color: var(--bad); color: var(--bad); }
.gm-news .tag.up { border-color: var(--good); color: var(--good); }
.inj { color: var(--bad); font-weight: 700; }
.gm-counter { border: 1.5px solid var(--ink); background: var(--grid); padding: 10px 12px; margin: 10px 0 0; }
.gm-counter p { margin: 4px 0 10px; }
.pill.threepeat { background: #b7432c; color: #fff; border-color: #7e2a19; }
