/* Fantasy Trade Lab - one stylesheet, light + dark, mobile first */
:root {
  --bg: #f4f6f9;
  --card: #ffffff;
  --ink: #142033;
  --muted: #5b6b80;
  --line: #dfe5ee;
  --top: #0f1b2d;
  --top-ink: #e8eef7;
  --accent: #16a34a;
  --accent-ink: #ffffff;
  --accent-soft: #e6f6ec;
  --need: #c2410c;
  --need-soft: #fdeee4;
  --strong: #15803d;
  --strong-soft: #e3f5e9;
  --link: #1d5fd1;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 2px 8px rgba(15, 27, 45, .05);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1320;
    --card: #131e2f;
    --ink: #e6edf7;
    --muted: #93a3b8;
    --line: #233149;
    --top: #070d17;
    --accent: #22c55e;
    --accent-ink: #06240f;
    --accent-soft: #123222;
    --need: #fb923c;
    --need-soft: #3a2113;
    --strong: #4ade80;
    --strong-soft: #12301f;
    --link: #7cb0ff;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: flex; flex-direction: column; min-height: 100vh;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.55rem; margin: .2rem 0 .8rem; letter-spacing: -.01em; }
h2 { font-size: 1.15rem; margin: 0 0 .7rem; }
h3 { font-size: 1rem; margin: 0 0 .5rem; }
.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
main.wrap { flex: 1; padding-top: 18px; padding-bottom: 40px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.inline { display: inline; }

/* top bar */
.topbar { background: var(--top); color: var(--top-ink); }
.topbar-inner { display: flex; align-items: center; gap: 14px; min-height: 56px; flex-wrap: wrap; }
.brand { color: #fff; font-weight: 750; font-size: 1.05rem; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { color: var(--accent); }
.switcher select {
  background: #1b2a42; color: #fff; border: 1px solid #2c3f5e; border-radius: 8px;
  padding: 6px 8px; max-width: 280px; font: inherit; font-size: .9rem;
}
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a, .nav .linkish { color: var(--top-ink); padding: 6px 9px; border-radius: 7px; font-size: .92rem; }
.nav a:hover, .nav .linkish:hover { background: #1b2a42; text-decoration: none; }
.linkish { background: none; border: 0; font: inherit; cursor: pointer; }
.nav-toggle { display: none; margin-left: auto; background: none; color: #fff; border: 1px solid #2c3f5e; border-radius: 8px; font-size: 1.1rem; padding: 4px 10px; }
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav:not(.nav-guest) { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 10px; }
  .nav-open .nav { display: flex; }
  .switcher { order: 3; width: 100%; padding-bottom: 8px; }
  .switcher select { width: 100%; max-width: none; }
}

/* ad slot: one small banner, never more */
.ad-wrap { background: var(--card); border-bottom: 1px solid var(--line); }
.ad-slot { position: relative; max-width: 728px; margin: 0 auto; height: 90px; overflow: hidden; }
.ad-item { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .5s; }
.ad-item.is-active { opacity: 1; visibility: visible; }
.ad-item img { max-width: 100%; max-height: 90px; display: block; }
.ad-label { position: absolute; top: 3px; left: 4px; z-index: 2; font-size: .65rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--card); padding: 0 4px; border-radius: 3px; }
@media (max-width: 760px) { .ad-slot { height: 60px; } .ad-item img { max-height: 60px; } }
@media (prefers-reduced-motion: reduce) { .ad-item { transition: none; } }

/* cards, grids */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin-bottom: 16px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid > .card { margin-bottom: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.page-head p { margin: 0 0 .8rem; }

/* buttons & forms */
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 8px; padding: 9px 15px; font: inherit; font-weight: 650; cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.06); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-danger { background: #b91c1c; color: #fff; }
.btn-small { padding: 5px 10px; font-size: .85rem; }
.btn[disabled] { opacity: .45; cursor: default; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
input[type=text], input[type=number], input[type=email], input[type=url], input[type=password], input[type=search], select, textarea {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font: inherit;
}
input[type=file] { font: inherit; }
.form p, .field { margin: 0 0 12px; }
.form label, .field label { display: block; font-weight: 600; margin-bottom: 4px; font-size: .92rem; }
.form .helptext, .help { display: block; color: var(--muted); font-size: .83rem; margin-top: 3px; }
.form ul.errorlist, .errorlist { color: #b91c1c; margin: 4px 0; padding-left: 18px; font-size: .88rem; }
.form input[type=checkbox] { width: auto; margin-right: 6px; }
.form ul#id_package, .radio-list { list-style: none; padding: 0; margin: 0; }
.form ul#id_package li label { font-weight: 500; border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; margin-bottom: 6px; cursor: pointer; }
.num-input { width: 90px !important; }

/* messages */
.messages { margin-bottom: 14px; }
.msg { padding: 10px 14px; border-radius: 8px; margin-bottom: 8px; background: var(--accent-soft); border: 1px solid var(--line); }
.msg-error { background: #fde8e8; color: #7f1d1d; }
.msg-warning { background: var(--need-soft); }
@media (prefers-color-scheme: dark) { .msg-error { background: #3b1414; color: #fecaca; } }

/* tables */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 650; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.dim td { color: var(--muted); }

/* rating badge */
.rating { display: inline-block; min-width: 42px; text-align: center; font-weight: 750; border-radius: 6px; padding: 2px 6px; font-variant-numeric: tabular-nums; background: var(--line); }
.r-elite { background: #15803d; color: #fff; }
.r-good { background: #4ade80; color: #052e14; }
.r-mid { background: #fde68a; color: #422006; }
.r-low { background: #fecaca; color: #450a0a; }
.pos { display: inline-block; min-width: 34px; text-align: center; font-size: .72rem; font-weight: 750; border-radius: 4px; padding: 1px 4px; background: var(--line); color: var(--ink); }
.pos-QB { background: #fde2e2; color: #8a1c1c; }
.pos-RB { background: #dcf3e4; color: #14532d; }
.pos-WR { background: #dde9fd; color: #1e3a8a; }
.pos-TE { background: #fdebd8; color: #7c2d12; }
.pos-K, .pos-DEF { background: #ece7fb; color: #4c1d95; }

/* needs */
.needs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.need { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; }
.need-need { background: var(--need-soft); border-color: transparent; }
.need-strength { background: var(--strong-soft); border-color: transparent; }
.need .lvl { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.need-need .lvl { color: var(--need); }
.need-strength .lvl { color: var(--strong); }
.need .big { font-size: 1.15rem; font-weight: 750; }

/* trades */
.trade { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 10px; background: var(--card); }
.trade-sides { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: start; }
.trade-sides .arrow { color: var(--muted); padding-top: 18px; }
.trade-side h4 { margin: 0 0 4px; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.trade-side div { margin-bottom: 3px; }
.trade-stats { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: .88rem; }
.trade-stats b { font-variant-numeric: tabular-nums; }
.up { color: var(--strong); }
.down { color: #dc2626; }
.meter { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; width: 90px; display: inline-block; vertical-align: middle; }
.meter span { display: block; height: 100%; background: var(--accent); }
.pick-list { max-height: 420px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; }
.pick-list label { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-bottom: 1px solid var(--line); cursor: pointer; font-weight: 400; }
.pick-list label:last-child { border-bottom: 0; }
.pick-list input { width: auto; }
.verdict { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }

/* stat tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.tile .label { color: var(--muted); font-size: .8rem; }
.tile .value { font-size: 1.45rem; font-weight: 780; font-variant-numeric: tabular-nums; }
.meter { height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--line) 70%, transparent); overflow: hidden; margin: 4px 0 6px; }
.meter > span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.meter.mine > span { background: #2563eb; }

/* landing */
.hero { padding: 36px 0 20px; }
.hero h1 { font-size: 2.1rem; line-height: 1.15; max-width: 720px; }
.hero p { font-size: 1.08rem; color: var(--muted); max-width: 640px; }
.feature h3 { display: flex; gap: 8px; align-items: center; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tabs a { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); font-size: .88rem; }
.tabs a.on { background: var(--ink); color: var(--card); border-color: var(--ink); }
.tabs a:hover { text-decoration: none; }
.badge { display: inline-block; font-size: .72rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--line); color: var(--ink); }
.badge-green { background: var(--accent-soft); color: var(--strong); }
.badge-amber { background: var(--need-soft); color: var(--need); }
ul.why { padding-left: 18px; margin: 6px 0; }

/* availability markers */
.st { display: inline-block; font-size: .66rem; font-weight: 800; letter-spacing: .02em; padding: 1px 5px; border-radius: 4px; vertical-align: middle; cursor: help; line-height: 1.4; }
.st-ok { color: var(--strong); background: none; padding: 0 2px; font-size: .7rem; }
.st-warn { background: #fde68a; color: #713f12; }
.st-light { background: #fef3c7; color: #854d0e; }
.st-bad { background: #fecaca; color: #7f1d1d; }
.st-muted { background: var(--line); color: var(--muted); }
.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.status-grid .label { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 16px 0; color: var(--muted); font-size: .88rem; }
.footer-inner { display: flex; gap: 18px; flex-wrap: wrap; }

/* Dashboard "Resync Now" */
.head-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.sync-box { display: flex; gap: 10px; align-items: center; padding: 6px 12px 6px 6px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--accent-soft); line-height: 1.25; }
.btn-sync { font-size: 1.05rem; padding: 10px 18px; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.btn-sync:disabled { opacity: .7; cursor: wait; }
.sync-stale { border-color: var(--need); background: var(--need-soft); }
.text-good { color: var(--strong); }

/* "Where you stand" radar */
.radar-wrap { display: flex; flex-direction: column; align-items: center; margin: 4px 0 14px; }
.radar { width: 100%; max-width: 380px; height: auto; overflow: visible; }
.radar .r-grid { fill: none; stroke: var(--line); stroke-width: 1; }
.radar .r-outer { stroke-width: 1.5; }
.radar .r-middle { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 4; opacity: .7; }
.radar .r-shape { fill: var(--link); fill-opacity: .14; stroke: var(--link); stroke-width: 2; stroke-linejoin: round; }
.radar .r-dot { fill: var(--muted); stroke: var(--card); stroke-width: 2; }
.radar .r-strength .r-dot { fill: var(--strong); }
.radar .r-need .r-dot { fill: var(--need); }
.radar .r-hit { fill: transparent; cursor: default; }
.radar .r-pt:hover .r-dot { r: 7; }
.radar .r-label { font-size: 13px; font-weight: 600; fill: var(--ink); }
.radar .r-rank { font-weight: 400; fill: var(--muted); }
.radar-key { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; }
.radar-key span { display: inline-flex; align-items: center; gap: 5px; }
.k-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; background: var(--muted); }
.k-strength { background: var(--strong); } .k-need { background: var(--need); }
.k-line { width: 16px; border-top: 2px dashed var(--muted); display: inline-block; }

/* ESPN bookmark how-to */
kbd { display: inline-block; padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px;
      background: var(--bg); font: 600 12px/1.5 inherit; color: var(--ink); }
.bm-no { color: var(--need); font-weight: 700; }
.bm-demo { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin: 10px 0 8px; background: var(--card); }
.bm-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; flex-wrap: wrap; }
.bm-address { background: var(--bg); }
.bm-dots { color: var(--muted); font-size: 10px; letter-spacing: 2px; }
.bm-field { flex: 1; min-width: 120px; background: var(--card); border: 1px solid var(--line); border-radius: 999px;
            padding: 3px 12px; color: var(--muted); font-size: 13px; }
.bm-bar { border-top: 1px solid var(--line); border-bottom: 1px dashed var(--strong); background: var(--strong-soft); }
.bm-chip { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--card);
           border: 1px solid var(--line); }
.bm-tag { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.bm-tag-no { color: var(--need); background: var(--need-soft); }
.bm-tag-yes { color: var(--strong); }
.bm-page { display: flex; align-items: center; gap: 10px; padding: 14px 12px; }
.bm-arrow { font-size: 22px; color: var(--strong); font-weight: 700; }
.bm-drag { cursor: grab; }

/* Waiver wire */
.waiver-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .waiver-row { grid-template-columns: 1fr; } }
.waiver .lvl { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.waiver .lvl.add { color: var(--strong); } .waiver .lvl.drop { color: var(--need); }
.waiver ul { margin: 6px 0 4px 18px; padding: 0; }

/* FTL score next to the radar */
.stand-grid { display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; gap: 20px; align-items: center; }
@media (max-width: 640px) { .stand-grid { grid-template-columns: 1fr; } }
.ftl-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-align: center; }
.ftl-label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ftl-score { font-size: 52px; font-weight: 800; line-height: 1.1; margin: 6px 0; color: var(--ink); }
.ftl-max { font-size: 18px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.ftl-meter { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 6px 0 10px; }
.ftl-meter span { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.ftl-grade { font-weight: 700; font-size: 18px; }
.ftl-rank { color: var(--muted); margin-bottom: 8px; }

/* ESPN Sync extension steps */
.ext-steps li { margin: 10px 0; }
.ext-steps .btn { margin-left: 6px; }
.ext-ok { color: var(--strong); font-weight: 600; margin-top: 4px; }

/* Leaderboard tabs */
.board-tabs { display: flex; gap: 6px; margin: 4px 0 14px; flex-wrap: wrap; }
.board-tabs a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14px; }
.board-tabs a.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* thumbs up (keep) / thumbs down (dismiss) on suggestions */
.trade, .waiver { position: relative; }
.vote { float: right; display: flex; gap: 4px; align-items: center; margin: -4px -4px 4px 8px; }
.vote-btn { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; cursor: pointer; font-size: 15px; line-height: 1.4; opacity: .75; }
.vote-btn:hover { opacity: 1; border-color: var(--muted, #888); }
.vote-more { position: relative; }
.vote-more > summary { list-style: none; display: inline-block; }
.vote-more > summary::-webkit-details-marker { display: none; }
.vote-more[open] > summary { opacity: 1; border-color: var(--strong); }
.vote-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: min(300px, 80vw); background: var(--card, var(--bg, #fff)); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; box-shadow: 0 8px 24px rgba(0,0,0,.18); display: flex; flex-direction: column; gap: 6px; font-size: 13px; text-align: left; }
.vote-pop label { display: flex; gap: 6px; align-items: flex-start; font-weight: normal; cursor: pointer; }
.vote-pop textarea { width: 100%; box-sizing: border-box; font: inherit; }
.vote-actions { display: flex; flex-direction: column; gap: 4px; }
.vote-btn.on { opacity: 1; border-color: var(--strong); background: color-mix(in srgb, var(--strong) 15%, transparent); }
.badge.kept { color: var(--strong); }
.is-kept { border-color: var(--strong); }
.restore { margin: 4px 0 14px; }
.linklike { background: none; border: 0; padding: 0; color: var(--accent, inherit); text-decoration: underline; cursor: pointer; font: inherit; }

/* bye-week / depth notes on trade ideas */
.trade-notes { list-style: none; margin: 8px 0 4px; padding: 0; }
.trade-notes li { padding-left: 18px; position: relative; margin: 2px 0; }
.trade-notes li::before { position: absolute; left: 0; font-weight: 700; }
.trade-notes li.good { color: var(--strong); } .trade-notes li.good::before { content: "+"; }
.trade-notes li.bad { color: var(--need); } .trade-notes li.bad::before { content: "!"; }

/* automatic resync note */
.autosync { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.autosync-spin { display: inline-block; animation: ftl-spin 1.2s linear infinite; }
@keyframes ftl-spin { to { transform: rotate(360deg); } }

/* lineup optimizer */
.matchup-board { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; text-align: center; }
.mb-label { font-weight: 700; }
.mb-score { font-size: 40px; font-weight: 800; line-height: 1.1; margin: 4px 0; }
.mb-vs { font-weight: 700; color: var(--muted); }
.move-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.move .lvl { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.move .lvl.add { color: var(--strong); } .move .lvl.drop { color: var(--need); }
.proj-notes { list-style: none; margin: 4px 0; padding: 0; }
.proj-notes li { margin: 2px 0; }
.proj-notes li.good { color: var(--strong); } .proj-notes li.bad { color: var(--need); }
.text-bad { color: var(--need); }
@media (max-width: 640px) {
  .move-row { grid-template-columns: 1fr; }
  .matchup-board { grid-template-columns: 1fr; }
  .mb-score { font-size: 32px; }
  .hide-sm { display: none; }
}
.week-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.week-card .wk-score { font-size: 22px; font-weight: 800; }

/* lineup optimizer: side-by-side table */
.lineup-compare td { vertical-align: top; }
.lineup-compare .spot { white-space: nowrap; }
.lineup-compare .lc-pts { color: var(--ink, inherit); font-size: 15px; }
.lineup-compare .why-col { max-width: 320px; }
.lineup-compare .lc-diff { background: var(--need-soft); }
.lineup-compare .lc-total td { border-top: 2px solid var(--line); }
.lineup-compare .lc-mine, .lineup-compare .lc-opp { border-left: 1px solid var(--line); }
.why-sm { display: none; margin-top: 4px; }
.why-sm summary { cursor: pointer; color: var(--accent); }
@media (max-width: 760px) {
  .lineup-compare .why-col { display: none; }
  .why-sm { display: block; }
}
@media (max-width: 760px) {
  .lineup-compare .lc-ftl, .lineup-compare .lc-mine, .lineup-compare .lc-opp { min-width: 150px; }
  .lineup-compare .spot { font-size: 11px; max-width: 54px; white-space: normal; }
  .swipe-hint { display: block; }
}
.swipe-hint { display: none; }
.final-tag { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 0 5px; border-radius: 4px; background: var(--line); color: var(--muted); }
.final-tag.live { background: var(--need-soft); color: var(--need); }

.lc-live td { border-top: 0; }
.lc-live b { color: var(--accent); }
.mb-live { margin-top: 6px; font-size: .95rem; }
.mb-live b { font-size: 1.15rem; color: var(--accent); font-variant-numeric: tabular-nums; }
.dfs-builder select { width: 100%; max-width: 560px; }
.dfs-cap { margin: 10px 0; font-variant-numeric: tabular-nums; }
.dfs-spot { border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin: 10px 0; }
.dfs-spot.verdict-good { border-left-color: var(--accent); }
.dfs-spot.verdict-swap, .dfs-spot.verdict-risky { border-left-color: #d97706; }
.dfs-spot.verdict-bench { border-left-color: #dc2626; }
.dfs-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dfs-head .spot { min-width: 48px; }
.dfs-verdict { margin-left: auto; font-weight: 700; font-size: .85rem; }
.verdict-good .dfs-verdict { color: var(--accent); }
.verdict-swap .dfs-verdict, .verdict-risky .dfs-verdict { color: #d97706; }
.verdict-bench .dfs-verdict { color: #dc2626; }
.dfs-alts { margin-top: 6px; padding-left: 10px; border-left: 2px dashed var(--line); }
.dfs-alt { margin: 4px 0; }
.dfs-pc-note { background: color-mix(in srgb, var(--accent) 10%, transparent); border-radius: 8px; padding: 6px 10px; }
.dfs-load-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; margin: 8px 0; }
.dfs-load-box summary { cursor: pointer; }
.dfs-alt { display: flow-root; }
.dfs-alt .vote, .dfs-spot > .vote { margin: 0 0 2px 8px; }
.dfs-lock { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 10px 0; }
.dfs-lock .small { flex: 1 1 260px; }

/* DFS: your lineup vs FTL's lineup */
.dfs-compare td { vertical-align: top; }
.dfs-compare tr.dfs-changed td { background: color-mix(in srgb, var(--accent) 7%, transparent); }
.dfs-compare tr.dfs-why td { padding-top: 0; border-top: 0; }
.dfs-compare tr.dfs-total td { border-top: 2px solid var(--line); }

/* build number next to the logo */
.site-version { color: #9aa4b2; font-size: .72rem; font-weight: 600; margin-left: 2px; white-space: nowrap; }

.dfs-next { border-left: 4px solid var(--accent); }
.btn-big { font-size: 1.05rem; padding: 12px 22px; }
.btn-link { background: none; border: 0; padding: 0 0 0 6px; color: var(--link, #1a5fb4); cursor: pointer; text-decoration: underline; font: inherit; }

.league-table .me-row td { background: var(--strong-soft); font-weight: 650; }
.league-table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.league-table th.num { text-align: right; }

/* Looping 16-second ESPN import walkthrough (no video file) */
.bmv { margin: 8px 0 10px; }
.bmv-browser { position: relative; height: 232px; max-width: 560px; border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; background: var(--card); display: flex; flex-direction: column; }
.bmv-top { flex: none; height: 30px; display: flex; align-items: center; gap: 10px; padding: 0 10px; background: var(--bg); }
.bmv-dots { color: var(--muted); font-size: 9px; letter-spacing: 2px; }
.bmv-url { position: relative; flex: 1; height: 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--card);
  font-size: 11px; color: var(--muted); overflow: hidden; }
.bmv-url > span { position: absolute; left: 10px; top: 2px; white-space: nowrap; }
.bmv-bar { flex: none; position: relative; height: 28px; overflow: hidden; border-top: 1px solid var(--line);
  border-bottom: 1px dashed var(--strong); background: var(--strong-soft); }
.bmv-barlabel { position: absolute; right: 10px; top: 6px; font-size: 10px; color: var(--strong); font-weight: 700; }
.bmv-chip { position: absolute; left: 12px; top: 4px; font-size: 11px; font-weight: 650; padding: 1px 8px; border-radius: 6px;
  background: var(--card); border: 1px solid var(--line); opacity: 0; }
.bmv-page { flex: 1; position: relative; }
.bmv-scene { position: absolute; inset: 0; padding: 16px 22px; display: flex; flex-direction: column; gap: 9px; opacity: 0; }
.bmv-h { font-weight: 750; font-size: 14px; }
.bmv-espn { color: #c2410c; }
.bmv-line { height: 8px; width: 80%; border-radius: 4px; background: var(--line); }
.bmv-short { width: 52%; }
.bmv-ok { font-size: 30px; color: var(--strong); font-weight: 800; line-height: 1; }
.bmv-keys { position: absolute; left: 50%; top: 128px; transform: translateX(-50%); display: flex; gap: 6px; align-items: center;
  opacity: 0; font-size: 13px; color: var(--muted); }
.bmv-keys kbd { font: inherit; font-weight: 700; font-size: 13px; color: var(--ink); background: var(--card); border: 1px solid var(--line);
  border-bottom-width: 3px; border-radius: 6px; padding: 3px 9px; box-shadow: var(--shadow); }
.bmv-keys i { font-style: normal; }
.bmv-btn { position: absolute; left: 22px; top: 150px; padding: 7px 13px; border-radius: 8px; background: var(--accent);
  color: var(--accent-ink); font-size: 12.5px; font-weight: 650; box-shadow: 0 2px 6px rgba(15, 27, 45, .25); }
.bmv-ring { position: absolute; left: 10px; top: 33px; width: 180px; height: 22px; border: 2px solid var(--strong); border-radius: 8px; opacity: 0; }
.bmv-cursor { position: absolute; left: 90px; top: 160px; opacity: 0; filter: drop-shadow(0 1px 1px rgba(0,0,0,.3)); }
.bmv-steps { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; font-size: .93rem; }
.bmv-steps li { padding: 4px 8px; border-radius: 6px; border-left: 3px solid transparent; }
.bmv-steps kbd, .bm-steps kbd { font: inherit; font-size: .85em; font-weight: 700; border: 1px solid var(--line);
  border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; background: var(--card); }

@media (prefers-reduced-motion: no-preference) {
  .bmv-bar { animation: bmv-bar 16s infinite; }
  .bmv-keys { animation: bmv-keys 16s infinite; }
  .bmv-sa { animation: bmv-a 16s infinite; }
  .bmv-sb { animation: bmv-b 16s infinite; }
  .bmv-sc { animation: bmv-c 16s infinite; }
  .bmv-url-a { animation: bmv-ua 16s infinite; }
  .bmv-url-b { animation: bmv-ub 16s infinite; }
  .bmv-btn { animation: bmv-btn 16s infinite; }
  .bmv-chip { animation: bmv-chip 16s infinite; }
  .bmv-cursor { animation: bmv-cur 16s infinite; }
  .bmv-ring { animation: bmv-ring 16s infinite; }
  .bmv-s1 { animation: bmv-s1 16s infinite; }
  .bmv-s2 { animation: bmv-s2 16s infinite; }
  .bmv-s3 { animation: bmv-s3 16s infinite; }
  .bmv-s4 { animation: bmv-s4 16s infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .bmv-sa { opacity: 1; }
  .bmv-chip { opacity: 1; }
  .bmv-url-b, .bmv-cursor, .bmv-ring, .bmv-keys { display: none; }
}
/* 1: keys, the bar slides down   2: drag   3: ESPN + click   4: done */
@keyframes bmv-bar { 0%, 12% { height: 0; border-width: 0 } 17%, 94% { height: 28px; border-top-width: 1px; border-bottom-width: 1px }
  97%, 100% { height: 0; border-width: 0 } }
@keyframes bmv-keys { 0%, 2% { opacity: 0; transform: translateX(-50%) scale(.9) } 5%, 14% { opacity: 1; transform: translateX(-50%) scale(1) }
  18%, 100% { opacity: 0; transform: translateX(-50%) scale(1) } }
@keyframes bmv-a { 0%, 43% { opacity: 1 } 46%, 91% { opacity: 0 } 96%, 100% { opacity: 1 } }
@keyframes bmv-b { 0%, 43% { opacity: 0 } 46%, 70% { opacity: 1 } 73%, 100% { opacity: 0 } }
@keyframes bmv-c { 0%, 71% { opacity: 0 } 74%, 92% { opacity: 1 } 95%, 100% { opacity: 0 } }
@keyframes bmv-ua { 0%, 43% { opacity: 1 } 46%, 70% { opacity: 0 } 73%, 100% { opacity: 1 } }
@keyframes bmv-ub { 0%, 43% { opacity: 0 } 46%, 70% { opacity: 1 } 73%, 100% { opacity: 0 } }
@keyframes bmv-btn { 0%, 21% { transform: translateY(0); opacity: 1 } 38% { transform: translateY(-114px); opacity: 1 }
  40%, 94% { transform: translateY(-114px); opacity: 0 } 97%, 100% { transform: translateY(0); opacity: 1 } }
@keyframes bmv-chip { 0%, 38% { opacity: 0 } 41%, 94% { opacity: 1 } 97%, 100% { opacity: 0 } }
@keyframes bmv-cur { 0%, 19% { left: 90px; top: 160px; opacity: 0 } 22% { left: 90px; top: 160px; opacity: 1 } 38% { left: 90px; top: 48px; opacity: 1 }
  50% { left: 90px; top: 48px; opacity: 1 } 56% { left: 70px; top: 42px; opacity: 1 } 66% { left: 70px; top: 42px; opacity: 1 }
  70%, 100% { left: 70px; top: 42px; opacity: 0 } }
@keyframes bmv-ring { 0%, 56% { opacity: 0; transform: scale(.9) } 59% { opacity: 1; transform: scale(1) }
  64% { opacity: 1; transform: scale(1.06) } 68%, 100% { opacity: 0; transform: scale(1.1) } }
@keyframes bmv-s1 { 0%, 19% { background: var(--strong-soft); border-color: var(--strong) } 22%, 100% { background: transparent; border-color: transparent } }
@keyframes bmv-s2 { 0%, 19% { background: transparent; border-color: transparent } 22%, 43% { background: var(--strong-soft); border-color: var(--strong) } 46%, 100% { background: transparent; border-color: transparent } }
@keyframes bmv-s3 { 0%, 45% { background: transparent; border-color: transparent } 47%, 70% { background: var(--strong-soft); border-color: var(--strong) } 73%, 100% { background: transparent; border-color: transparent } }
@keyframes bmv-s4 { 0%, 72% { background: transparent; border-color: transparent } 75%, 93% { background: var(--strong-soft); border-color: var(--strong) } 96%, 100% { background: transparent; border-color: transparent } }

/* stats page */
.stats-jump { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 8px 0; margin-bottom: 8px; }
.stats-section { scroll-margin-top: 56px; }
.stats-section > h2 { margin-top: 0; }
.stats-league { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin-top: 10px; scroll-margin-top: 56px; }
.stats-league > summary { cursor: pointer; padding: 2px 0; }
.stats-league[open] > summary { margin-bottom: 10px; }
.stats-league .record-tiles .small { display: none; }  /* the explanations are in "Your record" above */
.stats-league .tile .value { font-size: 1.25rem; }

.dfs-entry { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin: 8px 0; }
.dfs-entry-open { border-left: 4px solid var(--accent); }
.dfs-entry-top { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.dfs-gap { height: 22px; }
.dfs-entry-closed { padding: 8px 12px; }
.dfs-entry-closed summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 4px 16px; justify-content: space-between; }
