/* Fantasy Trade Hub — design tokens + components. Light & dark themes. */
:root {
  --bg: #f4f6fa;
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --surface-3: #edf1f7;
  --border: #e3e8ef;
  --border-strong: #cfd7e3;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --accent: #2563eb;
  --accent-2: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, .10);
  --on-accent: #ffffff;
  --good: #059669;
  --good-soft: rgba(5, 150, 105, .12);
  --bad: #dc2626;
  --bad-soft: rgba(220, 38, 38, .10);
  --warn: #b45309;
  --warn-soft: rgba(217, 119, 6, .13);
  --qb: #e11d48; --rb: #16a34a; --wr: #2563eb; --te: #ea7a0c; --k: #7c3aed; --def: #64748b;
  --gA: #16a34a; --gB: #65a30d; --gC: #ca8a04; --gD: #ea580c; --gF: #dc2626;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 6px 20px rgba(15, 23, 42, .05);
  --ring: 0 0 0 3px rgba(37, 99, 235, .25);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0e15; --surface: #111723; --surface-2: #151c29; --surface-3: #1b2433;
    --border: #1f2939; --border-strong: #2c3a50;
    --text: #e7edf6; --text-2: #c4cfdd; --muted: #8a98ad; --faint: #5f6d83;
    --accent: #5b9dff; --accent-2: #7cb1ff; --accent-soft: rgba(91, 157, 255, .14); --on-accent: #06101f;
    --good: #34d399; --good-soft: rgba(52, 211, 153, .14);
    --bad: #f87171; --bad-soft: rgba(248, 113, 113, .14);
    --warn: #fbbf24; --warn-soft: rgba(251, 191, 36, .14);
    --qb: #f43f5e; --rb: #22c55e; --wr: #3b82f6; --te: #f59e0b; --k: #a78bfa; --def: #94a3b8;
    --shadow: 0 1px 0 rgba(255, 255, 255, .02) inset, 0 10px 30px rgba(0, 0, 0, .25);
    --ring: 0 0 0 3px rgba(91, 157, 255, .30);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0e15; --surface: #111723; --surface-2: #151c29; --surface-3: #1b2433;
  --border: #1f2939; --border-strong: #2c3a50;
  --text: #e7edf6; --text-2: #c4cfdd; --muted: #8a98ad; --faint: #5f6d83;
  --accent: #5b9dff; --accent-2: #7cb1ff; --accent-soft: rgba(91, 157, 255, .14); --on-accent: #06101f;
  --good: #34d399; --good-soft: rgba(52, 211, 153, .14);
  --bad: #f87171; --bad-soft: rgba(248, 113, 113, .14);
  --warn: #fbbf24; --warn-soft: rgba(251, 191, 36, .14);
  --qb: #f43f5e; --rb: #22c55e; --wr: #3b82f6; --te: #f59e0b; --k: #a78bfa; --def: #94a3b8;
  --shadow: 0 1px 0 rgba(255, 255, 255, .02) inset, 0 10px 30px rgba(0, 0, 0, .25);
  --ring: 0 0 0 3px rgba(91, 157, 255, .30);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
h1 { font-size: 1.6rem; line-height: 1.2; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 1.05rem; margin: 0; letter-spacing: -.005em; }
h3 { font-size: .95rem; margin: 0 0 .5rem; }
p { margin: .35rem 0 .75rem; }
.num, td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: .84rem; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
code { background: var(--surface-3); padding: 1px 6px; border-radius: 6px; font-size: .88em; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--border); }
.topbar .inner { max-width: 1180px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 22px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand .mark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; font-size: 15px;
  background: linear-gradient(135deg, #2563eb, #22c55e); box-shadow: 0 4px 12px rgba(37, 99, 235, .35); }
.nav { display: flex; gap: 2px; flex: 1; }
.nav a { color: var(--muted); padding: 7px 12px; border-radius: 9px; font-weight: 600; font-size: .9rem; white-space: nowrap; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.active { color: var(--text); background: var(--surface-3); }
.userbox { display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--muted); cursor: pointer; font-size: 16px; padding: 0; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { color: var(--text); background: var(--surface-2); }
.user-chip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--border);
  color: var(--text-2); font-weight: 600; font-size: .88rem; }
.user-chip .av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: .8rem; text-transform: uppercase; }
@media (max-width: 860px) {
  .topbar .inner { flex-wrap: wrap; gap: 8px 12px; padding-top: 10px; }
  .brand { flex: 1; }
  .nav { order: 3; flex-basis: 100%; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .user-chip span.name { display: none; }
}

/* ---------- layout ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 26px 20px 70px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head .sub { color: var(--muted); margin-top: 6px; font-size: .92rem; }
.page-head .sub a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.grid { display: grid; gap: 18px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.side { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
@media (max-width: 920px) { .grid.two, .grid.three, .grid.side { grid-template-columns: 1fr; } }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spacer { flex: 1; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; min-width: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card.flush .card-head { padding: 18px 20px 0; }
.card-head .hint { color: var(--muted); font-size: .85rem; font-weight: 500; }
.card-foot { color: var(--muted); font-size: .84rem; margin-top: 12px; }
.card.flush .card-foot { padding: 0 20px 16px; }

/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 920px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); min-width: 0; }
.kpi .label { font-size: .74rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.kpi .value { font-size: 1.75rem; font-weight: 800; line-height: 1.15; margin-top: 6px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .value small { font-size: .95rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.kpi .sub { color: var(--muted); font-size: .86rem; margin-top: 4px; }

/* ---------- buttons & form controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--border); background: var(--surface);
  color: var(--text); padding: 8px 14px; border-radius: 10px; font: inherit; font-weight: 650; font-size: .9rem; line-height: 1.2; cursor: pointer;
  white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--surface-2); border-color: var(--border-strong); color: var(--text); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--on-accent); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.danger { color: var(--bad); }
.btn.sm { padding: 6px 10px; font-size: .84rem; border-radius: 8px; }
.btn:disabled { opacity: .55; cursor: default; }
form.inline { display: inline; }

input[type=text], input[type=password], input[type=number], input[type=search], select, textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
  color: var(--text); font: inherit; font-size: .92rem; transition: border-color .12s, box-shadow .12s; }
select { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%238a98ad' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
select.auto { width: auto; min-width: 150px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
label { font-weight: 650; font-size: .86rem; display: block; margin: 12px 0 5px; color: var(--text-2); }
.field-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }
.field-row > div { flex: 1; min-width: 150px; }
.help { font-size: .85rem; color: var(--muted); }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .88rem; color: var(--text-2); margin: 0; cursor: pointer; }

/* segmented control */
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg a, .seg button { border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 650; font-size: .84rem; padding: 6px 12px;
  border-radius: 8px; cursor: pointer; white-space: nowrap; }
.seg a:hover, .seg button:hover { color: var(--text); }
.seg a.on, .seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }

/* ---------- flash / banners ---------- */
.flash { padding: 11px 14px; border-radius: 10px; margin-bottom: 14px; border: 1px solid var(--border); background: var(--surface); font-size: .92rem; }
.flash.success { background: var(--good-soft); border-color: transparent; color: var(--good); }
.flash.error { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
.flash.info { background: var(--surface-2); }
.banner { background: var(--warn-soft); color: var(--warn); padding: 10px 14px; border-radius: 10px; margin-bottom: 16px; font-size: .9rem; }
.banner a { color: inherit; text-decoration: underline; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .92rem; }
.tbl th { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); font-weight: 750; text-align: left;
  padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface); }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl th.num, .tbl td.num { text-align: right; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .1s; }
.tbl tbody tr:hover td { background: var(--surface-2); }
.tbl tr.mine td { background: var(--accent-soft); }
.tbl tr.mine td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.tbl tr.clickable { cursor: pointer; }
.tbl th.sortable { cursor: pointer; user-select: none; }
.tbl th.sortable:hover { color: var(--text-2); }
.tbl th[data-dir="asc"]::after { content: " ▲"; font-size: .6rem; }
.tbl th[data-dir="desc"]::after { content: " ▼"; font-size: .6rem; }
.tbl td.rank { width: 44px; color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.card.flush .tbl th:first-child, .card.flush .tbl td:first-child { padding-left: 20px; }
.card.flush .tbl th:last-child, .card.flush .tbl td:last-child { padding-right: 20px; }

/* ---------- player cell & position chips ---------- */
.pos { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 22px; font-size: .68rem; font-weight: 800;
  letter-spacing: .02em; border-radius: 6px; color: #fff; flex: none; }
.pos.QB { background: var(--qb); } .pos.RB { background: var(--rb); } .pos.WR { background: var(--wr); }
.pos.TE { background: var(--te); } .pos.K { background: var(--k); } .pos.DEF { background: var(--def); }
.pl { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pl .who { min-width: 0; }
.pl .nm { font-weight: 650; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
a.pl:hover .nm, .pl a.nm:hover { color: var(--accent); }
.pl .meta { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.team-cell .nm { font-weight: 650; color: var(--text); }
.team-cell .meta { color: var(--muted); font-size: .8rem; }

/* ---------- small badges ---------- */
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px;
  background: var(--surface-3); color: var(--muted); white-space: nowrap; }
.tag.good, .tag.BUY { background: var(--good-soft); color: var(--good); }
.tag.bad, .tag.SELL { background: var(--bad-soft); color: var(--bad); }
.tag.warn, .tag.inj { background: var(--warn-soft); color: var(--warn); }
.tag.accent { background: var(--accent-soft); color: var(--accent); }
.chg { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chg.up { color: var(--good); } .chg.down { color: var(--bad); } .chg.flat { color: var(--faint); }
.rk { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 24px; padding: 0 6px; border-radius: 7px;
  font-weight: 750; font-size: .8rem; font-variant-numeric: tabular-nums; background: var(--surface-3); color: var(--text-2); }
.rk.strong { background: var(--good-soft); color: var(--good); }
.rk.weak { background: var(--bad-soft); color: var(--bad); }
.grade { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; font-size: 1.45rem;
  font-weight: 900; color: #fff; letter-spacing: -.02em; flex: none; }
.grade.sm { width: 32px; height: 32px; font-size: .92rem; border-radius: 9px; }
.grade.g-A { background: var(--gA); } .grade.g-B { background: var(--gB); } .grade.g-C { background: var(--gC); }
.grade.g-D { background: var(--gD); } .grade.g-F { background: var(--gF); }

/* score bar (power, value) */
.scorebar { display: flex; align-items: center; gap: 10px; min-width: 140px; }
.scorebar .track { flex: 1; height: 7px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.scorebar .fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), #22c55e); }
.scorebar .v { font-weight: 750; font-variant-numeric: tabular-nums; min-width: 38px; text-align: right; }

/* acceptance meter */
.meter { display: flex; align-items: center; gap: 8px; }
.meter .track { width: 56px; height: 6px; border-radius: 99px; background: var(--border-strong); overflow: hidden; }
.meter .fill { display: block; height: 100%; border-radius: 99px; }
.meter .fill.hi { background: var(--good); } .meter .fill.mid { background: var(--gC); } .meter .fill.lo { background: var(--bad); }
.meter .v { font-weight: 700; font-size: .84rem; font-variant-numeric: tabular-nums; }
.meter .lbl { color: var(--muted); font-size: .78rem; white-space: nowrap; }

/* ---------- trade finder cards ---------- */
.deal-list { display: flex; flex-direction: column; gap: 12px; }
.deal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); transition: border-color .12s; }
.deal:hover { border-color: var(--border-strong); }
.deal .deal-head { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.deal .partner { font-weight: 750; color: var(--text); }
.deal .deal-body { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 118px 196px auto; gap: 18px; align-items: center; padding: 14px 18px; }
.deal .side-label { font-size: .68rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.deal .players { display: flex; flex-direction: column; gap: 10px; }
.deal .arrow { color: var(--faint); font-size: 1.15rem; text-align: center; }
.deal .gain { font-size: 1.5rem; font-weight: 850; letter-spacing: -.02em; line-height: 1; }
.deal .gain-label { font-size: .74rem; color: var(--muted); margin-top: 5px; line-height: 1.25; }
.deal .odds { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.grades { display: inline-flex; align-items: center; gap: 6px; }
.grades .who { font-size: .72rem; color: var(--muted); font-weight: 650; }
@media (max-width: 980px) {
  .deal .deal-body { grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); }
  .deal .deal-body > .stat-col { grid-column: span 1; }
  .deal .deal-body > .go { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .deal .deal-body { grid-template-columns: 1fr; gap: 12px; }
  .deal .arrow { display: none; }
}

/* ---------- lineups ---------- */
.lineup { display: flex; flex-direction: column; }
.lineup .slot-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); }
.lineup .slot-row:last-child { border-bottom: 0; }
.lineup .slot { font-size: .72rem; font-weight: 800; color: var(--faint); letter-spacing: .05em; }
.lineup .pts { font-weight: 700; font-variant-numeric: tabular-nums; }
.lineup .slot-row.changed { background: var(--accent-soft); margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-radius: 8px; border-bottom-color: transparent; }
.diff-grid { display: grid; grid-template-columns: 46px minmax(0, 1fr) 18px minmax(0, 1fr) 54px; gap: 8px; align-items: center; }
.diff-grid .hdr { font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); font-weight: 750; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.diff-grid > .cell { padding: 7px 0; border-bottom: 1px solid var(--border); min-width: 0; }
.diff-grid .same { opacity: .55; }
.diff-grid .arrow { color: var(--faint); text-align: center; }

/* ---------- trade builder ---------- */
.builder { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 920px) { .builder { grid-template-columns: 1fr; } }
.side-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.side-box .side-title { font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); margin: 0 0 8px; }
.roster-list { max-height: 360px; overflow-y: auto; margin-top: 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.roster-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--border); cursor: pointer; user-select: none; }
.roster-item:last-child { border-bottom: 0; }
.roster-item:hover { background: var(--surface-2); }
.roster-item .tick { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--border-strong); display: grid; place-items: center; flex: none; font-size: 12px; color: transparent; }
.roster-item.selected { background: var(--accent-soft); }
.roster-item.selected .tick { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.roster-item .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.roster-item .v { color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; min-height: 34px; margin-top: 10px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 7px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 4px 6px 4px 5px; font-size: .86rem; font-weight: 600; }
.chip button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 1rem; line-height: 1; padding: 0 4px; }
.chip button:hover { color: var(--bad); }
.search-box { position: relative; }
.search-results { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .22); z-index: 30; max-height: 320px; overflow-y: auto; padding: 4px; }
.search-results div { padding: 8px 10px; cursor: pointer; display: flex; gap: 10px; align-items: center; border-radius: 8px; }
.search-results div:hover, .search-results div.active { background: var(--surface-2); }
.status-line { min-height: 22px; color: var(--muted); font-size: .88rem; display: flex; align-items: center; gap: 8px; }

/* ---------- result ---------- */
.verdict-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.verdict-card .headline { font-size: 1.45rem; font-weight: 850; letter-spacing: -.02em; line-height: 1.2; }
.verdict-card .tagline { color: var(--muted); margin-top: 4px; font-size: .9rem; }
.valuebar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--surface-3); margin: 16px 0 8px; gap: 2px; }
.valuebar .a { background: var(--accent); }
.valuebar .b { background: var(--te); }
.legend { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .86rem; color: var(--muted); }
.legend b { color: var(--text); font-variant-numeric: tabular-nums; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.team-impact { display: flex; flex-direction: column; gap: 14px; }
.team-impact .top { display: flex; align-items: center; gap: 14px; }
.team-impact .top .t-name { font-weight: 800; font-size: 1.05rem; }
.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mini-stat { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.mini-stat .l { font-size: .7rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.mini-stat .v { font-size: 1.2rem; font-weight: 800; margin-top: 3px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.mini-stat .s { font-size: .78rem; color: var(--muted); margin-top: 1px; font-variant-numeric: tabular-nums; }
.moves { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; }
.moves .mv { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.moves .mv .k { width: 64px; font-size: .72rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.writeup p { margin: 0 0 .8rem; line-height: 1.65; color: var(--text-2); }
.writeup p:last-child { margin-bottom: 0; }
.writeup p.bottom { color: var(--text); font-weight: 600; }
details.more { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
details.more > summary { list-style: none; cursor: pointer; padding: 16px 20px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "›"; font-size: 1.2rem; color: var(--muted); transition: transform .15s; display: inline-block; width: 12px; }
details.more[open] > summary::before { transform: rotate(90deg); }
details.more > summary .hint { color: var(--muted); font-weight: 500; font-size: .86rem; }
details.more > .body { padding: 0 20px 20px; }
.weekbars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(30px, 1fr); gap: 6px; align-items: end; height: 120px; }
.weekbars .wk { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; font-size: .7rem; color: var(--muted); gap: 4px; }
.weekbars .bars { display: flex; gap: 2px; align-items: flex-end; height: 92px; }
.weekbars .bar { width: 9px; border-radius: 4px 4px 0 0; }
.weekbars .bar.before { background: var(--border-strong); }
.weekbars .bar.after { background: var(--accent); }
.weekbars .po { color: var(--warn); font-weight: 800; }

/* ---------- league page ---------- */
.hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; }
.hero .big-rank { font-size: 3rem; font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.hero .big-rank small { font-size: 1rem; color: var(--muted); font-weight: 650; letter-spacing: 0; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.hero .fact .l { font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.hero .fact .v { font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } }
.posranks { display: flex; gap: 10px; flex-wrap: wrap; }
.posranks .pr { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 650; color: var(--text-2); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.tabs button { background: none; border: 0; font: inherit; font-weight: 700; font-size: .92rem; color: var(--muted); padding: 10px 12px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--text); border-bottom-color: var(--accent); }
.tab-panel[hidden] { display: none; }
.lineup-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.lineup-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.lineup-card .head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.lineup-card .head b { font-size: .95rem; }
.lineup-card.mine { border-color: var(--accent); }

/* ---------- misc ---------- */
.spinner { display: inline-block; width: 15px; height: 15px; border: 2px solid var(--border-strong); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-veil { opacity: .45; pointer-events: none; transition: opacity .15s; }
.empty { text-align: center; color: var(--muted); padding: 36px 12px; }
.empty .big { font-size: 1.05rem; color: var(--text-2); font-weight: 700; margin-bottom: 4px; }
.footer { color: var(--faint); font-size: .8rem; text-align: center; padding: 28px 20px 36px; }
.auth { max-width: 420px; margin: 48px auto; }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.list-plain li:last-child { border-bottom: 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .9rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }
svg.chart text { fill: var(--muted); font-size: 11px; }
svg.chart .line { fill: none; stroke: var(--accent); stroke-width: 2.2; }
svg.chart .area { fill: var(--accent-soft); stroke: none; }
svg.chart .grid { stroke: var(--border); stroke-width: 1; }
.tip { border-bottom: 1px dotted var(--faint); cursor: help; }
.swap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.swap { display: flex; align-items: center; gap: 8px; padding: 5px 0; }
.swap .sign { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: .8rem; flex: none; }
.swap.in .sign { background: var(--good-soft); color: var(--good); }
.swap.out .sign { background: var(--bad-soft); color: var(--bad); }
.swap.out .nm { color: var(--text-2); }
@media (max-width: 520px) { .swap-grid { grid-template-columns: 1fr; } }
.eyebrow { font-size: .7rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }

/* ---------- trade workbench (2-3 teams) ---------- */
.builder[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 26px; margin-bottom: 6px; }
.side-head .side-title { margin: 0; }
.side-tabs { display: none; margin-bottom: 12px; width: 100%; }
.side-tabs button { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.side-tabs .count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; border-radius: 99px; background: var(--accent); color: var(--on-accent); font-size: .7rem; margin-left: 4px; }
.builder-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.to-select { width: auto; padding: 2px 26px 2px 8px; font-size: .78rem; border-radius: 999px; background-position: right 8px center; }
.roster-item:focus-visible, .counter:focus-visible, .btn:focus-visible, .seg a:focus-visible, .seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.move-summary { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 14px; box-shadow: var(--shadow); }
.move-summary[hidden] { display: none; }
.ms-teams { display: flex; gap: 18px; flex: 1; flex-wrap: wrap; min-width: 0; }
.ms-team { display: flex; flex-direction: column; min-width: 0; }
.ms-team b { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-detail { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; }
.ms-jump { display: none; }
.verdict-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.vblocks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.vblock { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; min-width: 0; border-top: 3px solid var(--border-strong); }
.vblock.up { border-top-color: var(--good); }
.vblock.down { border-top-color: var(--bad); }
.vblock .l { font-size: .7rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.vblock .v { font-size: 1.35rem; font-weight: 850; margin-top: 4px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.vblock .v small { font-size: .78rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.vblock .s { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.vblock-note { margin: 8px 0 0; }
.counters { margin-top: 16px; }
.counter-list { display: flex; gap: 8px; flex-wrap: wrap; }
.counter { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; font: inherit; font-size: .88rem; color: var(--text);
  background: var(--accent-soft); border: 1px solid transparent; border-radius: 10px; padding: 8px 12px; cursor: pointer; }
button.counter:hover { border-color: var(--accent); }
.assume { border-top: 1px dashed var(--border); padding-top: 12px; }
.assume-row { display: flex; gap: 10px; flex-wrap: wrap; }
.assume-field { margin: 0; flex: 1; min-width: 150px; font-size: .78rem; color: var(--muted); }
.assume-field select { margin-top: 4px; font-size: .86rem; padding: 6px 30px 6px 10px; }
.footnote p { line-height: 1.55; }
.writeup .footnote { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 12px; }
.three-way th[scope="row"] { font-size: .72rem; color: var(--muted); white-space: nowrap; text-transform: none; letter-spacing: 0; font-weight: 700; }
.three-way td, .three-way th { vertical-align: top; }
.three-way td.weakest, .three-way th.weakest { background: var(--warn-soft); }
.warn-text { color: var(--warn); }
.sr-table { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tbl tr.cmp-first td { border-top: 2px solid var(--border); }
.board-status { width: auto; min-width: 130px; padding: 5px 28px 5px 10px; font-size: .84rem; }
.share-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; word-break: break-all; }
.frozen-note { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

@media (max-width: 920px) {
  .vblocks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .builder[data-count="3"] { grid-template-columns: 1fr; }
}
/* Mobile trade workflow (U03): one team at a time + a summary that stays in reach */
@media (max-width: 720px) {
  .side-tabs { display: flex; }
  #builder .side-box { display: none; }   /* trade builder only - the calculator shows both sides */
  #builder[data-active="0"] .side-box[data-idx="0"], #builder[data-active="1"] .side-box[data-idx="1"],
  #builder[data-active="2"] .side-box[data-idx="2"] { display: block; }
  .move-summary { position: sticky; bottom: 8px; z-index: 20; }
  .ms-detail { display: none; }
  .ms-jump { display: inline-flex; }
  .verdict-card { grid-template-columns: 1fr; }
  .verdict-actions { justify-content: flex-start; }
  .mini-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .weekbars { overflow-x: auto; }
  .wrap { padding-left: 14px; padding-right: 14px; }
  .card { padding: 16px; }
  .roster-list { max-height: 300px; }
}
@media (max-width: 420px) {
  .vblocks { grid-template-columns: 1fr 1fr; gap: 8px; }
  .vblock { padding: 10px; }
  .vblock .v { font-size: 1.1rem; }
  .legend { font-size: .8rem; }
}
.finder-form { margin-bottom: 16px; }
.finder-form .filters { margin-bottom: 10px; }
.finder-more { box-shadow: none; }
.checklist { border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px 10px; margin: 0; max-height: 240px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.checklist legend { font-size: .72rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: 0 4px; }
[hidden] { display: none !important; }
.tbl.three-way thead th { text-transform: none; letter-spacing: 0; font-size: .9rem; color: var(--text); font-weight: 750; }
.tbl.three-way thead th .grade { vertical-align: middle; margin-right: 6px; }
#trade-result, #compare { scroll-margin-top: 76px; }
@media (max-width: 860px) { #trade-result, #compare { scroll-margin-top: 120px; } }
@media (max-width: 720px) {
  .move-summary { padding: 8px 10px; gap: 8px; flex-wrap: nowrap; }
  .ms-teams { gap: 10px; flex-wrap: nowrap; overflow: hidden; }
  .ms-team { flex: 1 1 0; }
  .ms-team b { font-size: .8rem; }
  .ms-team .small { font-size: .74rem; }
  .ms-jump { flex: none; }
}

/* ---------- Phase 2: league nav, switcher, weekly pages ---------- */
.league-switch select { width: auto; max-width: 230px; padding: 6px 30px 6px 10px; font-size: .84rem; border-radius: 999px; background-position: right 10px center; }
@media (max-width: 860px) { .league-switch select { max-width: 150px; } }
.league-nav-wrap { display: flex; align-items: flex-end; gap: 4px; border-bottom: 1px solid var(--border); margin: -6px 0 18px; position: relative; }
.league-nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.nav-more { flex: none; position: relative; }
.nav-more summary { list-style: none; cursor: pointer; color: var(--muted); font-weight: 700; font-size: .9rem; padding: 9px 12px; white-space: nowrap; border-radius: 8px 8px 0 0; }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary:hover, .nav-more[open] summary { color: var(--text); }
.nav-more summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.nav-more .menu { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; min-width: 220px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-lg, 0 10px 30px rgba(0,0,0,.18)); padding: 6px; display: grid; }
.nav-more .menu a { padding: 9px 12px; border-radius: 8px; color: var(--text-2); font-weight: 600; font-size: .9rem; }
.nav-more .menu a:hover, .nav-more .menu a.on { background: var(--surface-2); color: var(--text); }
.sub-nav { margin: -4px 0 16px; }
.league-nav::-webkit-scrollbar { display: none; }
.league-nav a { color: var(--muted); font-weight: 700; font-size: .9rem; padding: 9px 12px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.league-nav a:hover { color: var(--text); }
.league-nav a.on { color: var(--text); border-bottom-color: var(--accent); }
.state-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 14px; border-radius: 10px;
  margin-bottom: 14px; font-size: .9rem; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }
.state-banner.warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.state-banner.bad { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
.pick-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); }
.pick-row:last-child { border-bottom: 0; }
.pick-row .slot { font-size: .72rem; font-weight: 800; color: var(--faint); letter-spacing: .05em; }
.pick-row .pts { font-weight: 750; font-variant-numeric: tabular-nums; text-align: right; min-width: 44px; }
.pick-row.flag { background: var(--bad-soft); margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-radius: 8px; }
.lock { font-size: .72rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.lock.on { color: var(--warn); }
.swap-card { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; }
.swap-card .gainv { font-weight: 850; color: var(--good); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .swap-card { grid-template-columns: 1fr; } .pick-row { grid-template-columns: 44px minmax(0, 1fr) auto; } .pick-row .lock { display: none; } }
.week-pick { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.vs-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
@media (max-width: 760px) { .vs-grid { grid-template-columns: 1fr; } }
.big-num { font-size: 2rem; font-weight: 900; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.action-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 980px) { .action-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .action-grid { grid-template-columns: 1fr; } }
a.action { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px 18px; color: var(--text); min-width: 0; transition: border-color .12s; }
a.action:hover { border-color: var(--accent); color: var(--text); }
a.action .l { font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
a.action .v { font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; }
a.action .s { color: var(--muted); font-size: .86rem; }
a.action .go { color: var(--accent); font-size: .84rem; font-weight: 700; margin-top: auto; }
a.action.alert { border-left: 4px solid var(--bad); }
a.action.good { border-left: 4px solid var(--good); }
.form-pill { display: inline-flex; gap: 2px; }
.form-pill span { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; font-size: .66rem; font-weight: 800; color: #fff; }
.form-pill .W { background: var(--good); } .form-pill .L { background: var(--bad); } .form-pill .T { background: var(--faint); }
.status-chip { font-size: .7rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--surface-3); color: var(--muted); white-space: nowrap; }
.status-chip.live { background: var(--warn-soft); color: var(--warn); }
.status-chip.unk { background: var(--bad-soft); color: var(--bad); }
.pick-list { display: flex; flex-wrap: wrap; gap: 6px 14px; }
/* keep the top bar inside the page when the league switcher is shown */
.topbar .inner { min-width: 0; }
.nav { min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.userbox { flex-shrink: 0; }
.league-switch select { max-width: 180px; text-overflow: ellipsis; }
@media (max-width: 1100px) { .nav a { padding: 7px 9px; } .user-chip span.name { display: none; } }
.league-switch select { max-width: 170px; }
@media (max-width: 1320px) { .topbar .inner { gap: 12px; } .nav a { padding: 7px 9px; } .user-chip span.name { display: none; } .user-chip { padding-right: 4px; } }
@media (max-width: 1100px) {
  .topbar .inner { flex-wrap: wrap; gap: 8px 12px; padding-top: 10px; }
  .brand { flex: 1; }
  .nav { order: 3; flex-basis: 100%; padding-bottom: 8px; }
}
.tbl td.num, .tbl th.num { white-space: nowrap; }
.tbl td.team-cell { min-width: 130px; }
@media (max-width: 600px) { .tbl th, .tbl td { padding: 9px 8px; } .card.flush .tbl th:first-child, .card.flush .tbl td:first-child { padding-left: 14px; } }
.tbl.heat th, .tbl.heat td { padding: 8px 6px; text-align: center; }
.tbl.heat th[scope="row"] { text-align: left; padding-left: 20px; }
.tbl.heat td.heat-warm { background: var(--warn-soft); color: var(--warn); font-weight: 700; }
.tbl.heat td.heat-hot { background: var(--bad-soft); color: var(--bad); font-weight: 800; }
.tbl.heat .po-col { box-shadow: inset 0 -3px 0 var(--accent); }
@media (max-width: 1440px) { .topbar .inner { gap: 12px; } .nav a { padding: 7px 9px; } .user-chip span.name { display: none; } .user-chip { padding-right: 4px; } }
.pos.PICK { background: #7c6f9c; }
/* v5 */
.steps { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.steps li { line-height: 1.45; }
.steps li.skipped, .steps li.blocked { color: var(--muted); }
a.chip { padding: 5px 11px; color: var(--text-2); }
a.chip:hover { border-color: var(--accent); color: var(--text); }
.tx-list { display: grid; }
.tx { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.tx:last-child { border-bottom: 0; }
.tx .when { font-size: .8rem; color: var(--muted); }
.tx .when b { display: block; color: var(--text); font-size: .86rem; }
.tx-sides { display: grid; gap: 6px; }
.tx-side { display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; font-size: .9rem; }
.tx-side .team { font-weight: 750; min-width: 0; }
.tx-side .in { color: var(--good); } .tx-side .out { color: var(--bad); }
.tx-side .vals { color: var(--faint); font-size: .78rem; }
.seed-bar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: var(--surface-2); min-width: 120px; }
.seed-bar span { display: block; height: 100%; }
.seed-bar span:nth-child(1) { background: var(--accent); } .seed-bar span:nth-child(2) { background: color-mix(in srgb, var(--accent) 75%, transparent); }
.seed-bar span:nth-child(3) { background: color-mix(in srgb, var(--accent) 52%, transparent); } .seed-bar span:nth-child(n+4) { background: color-mix(in srgb, var(--accent) 32%, transparent); }
.game-pick { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.game-pick:last-child { border-bottom: 0; }
.game-pick .wk { font-size: .72rem; font-weight: 800; color: var(--faint); }
.game-pick .seg a { padding: 5px 10px; font-size: .8rem; }
.rank-chart { width: 100%; height: auto; }
.rank-chart polyline { fill: none; stroke: var(--faint); stroke-width: 1.5; opacity: .55; }
.rank-chart polyline.mine { stroke: var(--accent); stroke-width: 3; opacity: 1; }
.rank-chart text { fill: var(--muted); font-size: 11px; }
.rank-chart line { stroke: var(--border); }
@media (max-width: 640px) { .tx { grid-template-columns: 1fr; gap: 6px; } }
.tbl.compare td .win { color: var(--good); font-weight: 800; }
.tbl.compare th { vertical-align: bottom; min-width: 130px; }
.saved-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: -4px 0 14px; }
.saved-bar .chip { padding: 4px 6px 4px 11px; }
.saved-bar .chip.on { border-color: var(--accent); }
.saved-bar .chip a { color: var(--text-2); font-weight: 650; }
.save-search summary { list-style: none; display: inline-flex; }
.save-search summary::-webkit-details-marker { display: none; }
details.family { margin: -4px 0 12px; }
details.family > summary { cursor: pointer; padding: 6px 4px; }
details.family[open] > summary { margin-bottom: 8px; }
.deal-no { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: .72rem; font-weight: 800; margin-right: 4px; }
svg.tradeoff { width: 100%; height: auto; max-width: 640px; }
svg.tradeoff .axis { stroke: var(--border); stroke-width: 1.5; }
svg.tradeoff text { fill: var(--muted); font-size: 11px; }
svg.tradeoff .dot { fill: var(--surface-2); stroke: var(--faint); stroke-width: 1.5; }
svg.tradeoff .dot.good { fill: var(--good-soft); stroke: var(--good); }
svg.tradeoff .dot.bad { fill: var(--bad-soft); stroke: var(--bad); }
svg.tradeoff .dot-label { fill: var(--text); font-weight: 800; font-size: 10px; pointer-events: none; }
