/* League site. On a computer the layout follows ESPN's fantasy website (light page, white cards,
   dense tables). On a phone it follows ESPN's app: dark, with the sections as tabs across the top.
   Every colour is a variable, so the phone only has to swap the palette. */
:root {
  --bg: #edeef0; --card: #fff; --ink: #1d1e1f; --dim: #6c6d6f; --line: #e3e4e6; --head: #f7f8f9;
  --field: #fff; --border: #c9cacc; --zebra: #fbfbfc; --totals: #eef0f2; --mine: #eef6ff; --soft: #f1f2f4;
  --brand: #14233b; --link: #0b62c4; --accent: #1f9d55; --warn: #c8102e; --amber: #b7791f; --gold: #f2c94c;
  --good-bg: #f0faf4; --warn-bg: #fff8e6; --bad-bg: #fdeeee; --on: #14233b; --on-ink: #fff;
}
/* Dark mode on a computer (My account -> Appearance; the phone is always dark): the phone's palette,
   with form fields that stand out on a wide page. "auto" follows the computer's own setting. */
:root[data-theme="dark"] {
  --bg: #121315; --card: #1d1f22; --ink: #f2f3f4; --dim: #a3a5a9; --line: #303236; --head: #24272b;
  --field: #24272b; --border: #4a4d52; --zebra: #202326; --totals: #2a2d32; --mine: #1f2a3d; --soft: #2a2d32;
  --brand: #000; --link: #6f9dff; --accent: #57d657; --warn: #ff6b6b; --amber: #f2b84b;
  --good-bg: #17301f; --warn-bg: #33290f; --bad-bg: #3a1a1a; --on: #f2f3f4; --on-ink: #121315;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #121315; --card: #1d1f22; --ink: #f2f3f4; --dim: #a3a5a9; --line: #303236; --head: #24272b;
    --field: #24272b; --border: #4a4d52; --zebra: #202326; --totals: #2a2d32; --mine: #1f2a3d; --soft: #2a2d32;
    --brand: #000; --link: #6f9dff; --accent: #57d657; --warn: #ff6b6b; --amber: #f2b84b;
    --good-bg: #17301f; --warn-bg: #33290f; --bad-bg: #3a1a1a; --on: #f2f3f4; --on-ink: #121315;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 20px; margin: 0; }
h1 small { font-size: 13px; font-weight: 400; color: var(--dim); margin-left: 6px; }
h2 { font-size: 15px; margin: 0; padding: 12px 14px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
h3 { font-size: 12px; margin: 0 0 4px; text-transform: uppercase; letter-spacing: .04em; }
h4 { font-size: 11px; margin: 0 0 4px; text-transform: uppercase; letter-spacing: .04em; color: var(--dim); display: flex; justify-content: space-between; }
p { margin: 0; }
code { font-size: 12px; }
.dim { color: var(--dim); }
.small { font-size: 12px; }
.note { color: var(--dim); font-size: 12px; }
.pad { padding: 10px 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.empty { color: var(--dim); padding: 18px 14px; text-align: center; }
.warn { color: var(--warn); }
[hidden] { display: none !important; }

.top { position: relative; background: var(--brand); color: #fff; display: flex; align-items: center; gap: 14px; padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top)); }
.brand { color: #fff; font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.brand img { width: 26px; height: 26px; border-radius: 6px; }
.as { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255, 255, 255, .75); }
.as select { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .3); padding: 4px 8px; max-width: 220px; }
.as select option { color: #1d1e1f; }
.as b { color: #fff; font-size: 13px; }
.stamp { font-size: 12px; opacity: .85; text-align: right; margin-left: auto; }
.acct { color: #fff; font-size: 13px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 14px; padding: 3px 10px; white-space: nowrap; }
.acct:hover { text-decoration: none; background: rgba(255, 255, 255, .12); }
.lmtag { font-size: 10px; font-weight: 700; background: var(--gold); color: #1d1e1f; border-radius: 3px; padding: 0 4px; margin-left: 6px; }
.stamp .warn { color: #ffb4b4; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #ff4d4d; margin-right: 5px; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

.tabs { background: var(--card); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 2px; padding: 0 10px; overflow-x: auto; position: sticky; top: 0; z-index: 5; }
.tabs .tab { display: block; color: var(--ink); padding: 12px 12px; white-space: nowrap; border-bottom: 3px solid transparent; }
.tabs .tab:hover { text-decoration: none; background: var(--head); }
.tabs .tab.on { border-bottom-color: var(--accent); font-weight: 600; }
.tabitem { position: relative; }
.tabmenu { display: none; position: absolute; top: 100%; left: 0; min-width: 210px; background: var(--card); border: 1px solid var(--line); border-radius: 0 0 10px 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, .14); padding: 6px 0; z-index: 30; }
.tabmenu a { display: block; padding: 8px 16px; color: var(--ink); white-space: nowrap; }
.tabmenu a:hover { background: var(--head); text-decoration: none; }
.tabmenu a.on { font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
@media (min-width: 761px) and (hover: hover) {
  .tabs { overflow: visible; }      /* let the menus hang below the bar */
  .tabitem:hover .tabmenu, .tabitem:focus-within .tabmenu { display: block; }
}
.tabs .sm { display: none; }
.phoneonly { display: none !important; }
.subtabs { display: flex; gap: 6px; padding: 10px 12px 0; max-width: 1180px; margin: 0 auto; flex-wrap: wrap; }
.subtabs a { padding: 5px 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--field); color: var(--ink); }
.subtabs a:hover { text-decoration: none; }
.subtabs a.on { background: var(--on); border-color: var(--on); color: var(--on-ink); }
select, input[type=search], input[type=number] { font: inherit; padding: 7px 10px; border: 1px solid var(--border); border-radius: 16px; background: var(--field); color: var(--ink); }
input[type=number] { width: 84px; }

main { max-width: 1180px; margin: 0 auto; padding: 12px; }
main.full { max-width: 1500px; }
.card { background: var(--card); border-radius: 10px; margin-bottom: 12px; overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.card.dashed { border: 1px dashed var(--border); box-shadow: none; }
.card.minecard { box-shadow: inset 0 0 0 2px var(--accent); }
.cardhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; align-items: start; }
.cols.three { grid-template-columns: repeat(3, 1fr); }
.cols .card { margin-bottom: 0; }
.scroll { overflow-x: auto; }
.scroll.tall { max-height: 620px; overflow-y: auto; }

.logo { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--soft); color: var(--dim); align-items: center; justify-content: center; font-size: 10px; overflow: hidden; position: relative; vertical-align: middle; flex: none; }
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.logo.big { width: 64px; height: 64px; font-size: 18px; }

.teamhead { display: flex; gap: 14px; align-items: center; padding: 14px; flex-wrap: wrap; border-top: 4px solid var(--accent); }
.teamhead > div:nth-of-type(1) { flex: 1; min-width: 200px; }
.more { display: none; }
.boxes { display: flex; gap: 10px; margin-left: auto; flex-wrap: wrap; }
.boxes.stack { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 12px 14px; }
.scorebox { display: block; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; min-width: 230px; color: var(--ink); }
.scorebox:hover { text-decoration: none; border-color: var(--border); }
.scorebox .label { display: block; font-size: 11px; text-transform: uppercase; color: var(--dim); letter-spacing: .04em; }
.scorebox .line { display: flex; align-items: center; gap: 8px; padding: 3px 0; color: var(--dim); }
.scorebox .line .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scorebox .line b { font-size: 16px; font-variant-numeric: tabular-nums; }
.scorebox .line.lead { color: var(--ink); font-weight: 600; }

.weeknav { display: flex; align-items: center; gap: 12px; }
.weeknav a, .weeknav span { display: inline-flex; width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 50%; align-items: center; justify-content: center; font-size: 20px; color: var(--link); }
.weeknav span { visibility: hidden; }
.weeknav small { font-weight: 400; color: var(--dim); margin-left: 4px; }

table.grid { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.grid th { background: var(--head); font-size: 11px; text-transform: uppercase; letter-spacing: .03em; color: var(--dim); font-weight: 600; padding: 7px 8px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
.grid td { padding: 7px 8px; text-align: center; border-bottom: 1px solid var(--line); }
.grid .left { text-align: left; }
.grid .right { text-align: right; }
.grid tbody tr:nth-child(even) { background: var(--zebra); }
.grid tr.totals { background: var(--totals) !important; font-weight: 600; }
.grid tr.mine { background: var(--mine) !important; }
.grid tr.cutline td { border-bottom: 2px solid var(--ink); }
.grid tr.keptrow td { color: var(--dim); }
.grid .slot { color: var(--dim); font-size: 12px; width: 52px; white-space: nowrap; }
.grid .score { font-weight: 600; }
.grid.kv td:first-child { color: var(--dim); width: 130px; }
.grid.sortable th { cursor: pointer; user-select: none; }
.grid.sortable th[data-dir=first]::after { content: " \25BE"; }
.grid.sortable th[data-dir=second]::after { content: " \25B4"; }
.grid.dense td, .grid.dense th { padding: 5px 6px; font-size: 12.5px; white-space: nowrap; }
.grid tr.groups th { background: var(--card); border-bottom: 0; color: var(--ink); cursor: default; }
.grid tr.groups th + th { border-left: 1px solid var(--line); }
.ok { color: var(--accent); font-weight: 600; }
.off { color: var(--warn); font-weight: 600; }
.pname { font-weight: 500; }
.pmeta { display: block; font-size: 11px; color: var(--dim); }
.pmeta b { color: var(--ink); font-weight: 600; }
.inj { color: var(--warn); font-weight: 700; font-size: 11px; margin-left: 4px; }
.livegame { color: var(--warn); font-weight: 600; }
/* Game-time weather beside a player (app/weather.py): words for those it hurts most. */
.wx { white-space: nowrap; margin-left: 4px; font-size: 11px; }
.wx.wxhurt { color: var(--amber); font-weight: 600; }
.wx.wxhurt.wxbad { color: var(--warn); }
.wxnote b { color: var(--amber); }
.narrow { display: none; }
.proj { display: block; font-size: 11px; font-weight: 400; color: var(--dim); }
.box .slot { background: var(--head); }
.benchrow td { color: var(--dim); }
.tag { display: inline-block; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; border-radius: 3px; padding: 0 5px; margin-left: 5px; background: var(--amber); color: #fff; vertical-align: 1px; }

.versus { display: grid; grid-template-columns: 1fr 1fr; }
.versus .side { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center; padding: 14px; color: var(--dim); }
.versus .side + .side { border-left: 1px solid var(--line); }
.versus .side.lead { color: var(--ink); }
.versus .who { display: flex; flex-direction: column; font-weight: 600; }
.versus .who span { font-weight: 400; font-size: 12px; }
.versus .side > .small, .versus .side > .projline { grid-column: 1 / -1; }
.big { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }

.matchcard { display: flex; align-items: center; gap: 12px; padding: 6px 14px; }
.matchcard .sides { flex: 1; }
.matchcard .row { padding: 8px 0; color: var(--dim); flex-wrap: nowrap; }
.matchcard .row + .row { border-top: 1px solid var(--line); }
.matchcard .row.lead { color: var(--ink); }
.matchcard .who { flex: 1; display: flex; flex-direction: column; font-weight: 600; min-width: 0; }
.matchcard .who span { font-weight: 400; }
.matchcard .big { font-size: 22px; }

.btn { font: inherit; font-weight: 600; background: var(--link); color: #fff; border: 1px solid var(--link); border-radius: 18px; padding: 7px 16px; cursor: pointer; white-space: nowrap; display: inline-block; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--link); }
.btn.small { padding: 4px 10px; font-size: 12px; }
.filters { display: flex; gap: 10px; align-items: center; padding: 10px 14px; flex-wrap: wrap; }
.pills { display: flex; gap: 4px; flex-wrap: wrap; }
.pills a, .pills button, .pills label { font: inherit; padding: 5px 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--field); color: var(--ink); cursor: pointer; }
.pills a:hover { text-decoration: none; }
.pills .on { background: var(--on); border-color: var(--on); color: var(--on-ink); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 14px; margin-bottom: 12px; }
.check, .checks label { display: flex; gap: 6px; align-items: center; }

.schedule { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; padding: 12px 14px; }
.wk { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 12px; }
.wk.now { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.wk .g { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; padding: 1px 0; font-variant-numeric: tabular-nums; }
.wk .g span:last-child { text-align: right; }
.lead { font-weight: 600; }

.verdict { padding: 16px; border-left: 6px solid var(--amber); }
.verdict.good { border-left-color: var(--accent); }
.verdict.bad { border-left-color: var(--warn); }
.verdict > p { margin-top: 6px; color: var(--dim); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 14px; }
.chip { border: 1px solid var(--line); border-radius: 14px; padding: 4px 10px; font-size: 12px; }
.chip b { margin-left: 4px; }
.chip.ok b { color: var(--accent); }
.chip.wait { background: var(--warn-bg); border-color: var(--amber); }
.chip.wait b { color: var(--amber); font-weight: 600; }

/* ---- accounts: sign-in pages, forms, the members table ---- */
.plain { max-width: 440px; margin: 8vh auto; padding: 0 14px; }
.plain .logo-big { display: block; width: 72px; height: 72px; border-radius: 16px; margin: 0 auto 14px; }
.plain h1 { text-align: center; margin-bottom: 4px; }
.plain .lead { text-align: center; color: var(--dim); margin-bottom: 16px; }
.form { display: grid; gap: 12px; padding: 16px; }
.form label { display: grid; gap: 4px; font-size: 12px; color: var(--dim); }
.form input[type=text], .form input[type=password], .form input[type=url], .form input[type=date] { font: inherit; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--field); color: var(--ink); width: 100%; }
.form .hint { font-size: 12px; color: var(--dim); }
.msg { margin: 0 16px; padding: 8px 12px; border-radius: 8px; font-size: 13px; }
.msg.bad { background: var(--bad-bg); color: var(--warn); }
.msg.good { background: var(--good-bg); color: var(--accent); }
.linkbox { margin: 12px 14px; padding: 12px; border: 2px solid var(--gold); border-radius: 8px; background: var(--warn-bg); }
.linkbox input { width: 100%; font: 13px ui-monospace, Menlo, monospace; padding: 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--card); color: var(--ink); margin: 8px 0; }
.inline { display: inline; }
.inline button { margin: 2px 0; }

.form textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--field); color: var(--ink); width: 100%; resize: vertical; }
.post { padding: 10px 14px; border-top: 1px solid var(--line); }
.post p { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 2px; }
.linkbtn { font: inherit; font-size: 11px; background: none; border: 0; color: var(--dim); cursor: pointer; text-decoration: underline; padding: 0 0 0 6px; }

/* ---- flags: a small badge with a reason behind it ---- */
.flag { display: inline-block; font-size: 11px; border-radius: 10px; padding: 1px 7px; margin: 1px 2px 1px 0; border: 1px solid var(--line); cursor: help; white-space: nowrap; color: var(--dim); }
.flag.good { color: var(--accent); border-color: var(--accent); }
.flag.warn { color: var(--amber); border-color: var(--amber); }
.flag.steal { color: #8a6a00; border-color: var(--gold); background: rgba(242, 201, 76, .18); }
.legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 8px 16px; padding: 12px 14px; }

/* ---- consistency: Star, Start or Sit for each game ---- */
.cons { font-variant-numeric: tabular-nums; }
.marks { margin-left: 6px; white-space: nowrap; }
.mark { display: inline-block; width: 16px; text-align: center; font-size: 12px; cursor: help; }
.mark.m-star { color: #d9a400; }
.mark.m-start { color: var(--accent); }
.mark.m-sit { color: var(--warn); }
.grid .bye { color: var(--dim); font-size: 11px; }
.ahead b { display: block; font-weight: 600; }
.ahead span { font-size: 11px; color: var(--dim); }

.usage { display: flex; flex-wrap: wrap; gap: 4px; }
.ucard { color: var(--ink); padding: 3px 9px; font-size: 12px; }
.ucard b { font-size: 13px; }
.ucard i, .uline i { font-style: normal; font-size: 10px; }
.uline { font-size: 11px; cursor: help; }

/* ---- Trade Center ---- */
.ticks { max-height: 560px; overflow-y: auto; }
.tick { display: flex; align-items: center; gap: 10px; padding: 7px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.tick:hover { background: var(--head); }
.tick input { width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.tick .who { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.tick .who span { font-size: 11px; }
.tick .val { font-variant-numeric: tabular-nums; font-weight: 600; }
.tick.pick .who b::before { content: "\25C6  "; color: var(--gold); }
.tick.locked { opacity: .5; cursor: not-allowed; }
.sticky { position: sticky; bottom: 0; background: var(--card); border-top: 1px solid var(--line); }
.deal { color: var(--ink); margin: 12px 14px; border: 1px solid var(--line); border-left: 5px solid var(--dim); border-radius: 8px; padding: 10px 12px; }
.deal.good { border-left-color: var(--accent); }
.deal.warn { border-left-color: var(--amber); }
.deal.bad { border-left-color: var(--warn); }
.verdict .deal { margin: 0; border: 0; padding: 0; }
.dhead { display: flex; flex-direction: column; margin-bottom: 8px; }
.dhead b { font-size: 15px; }
.dhead span { color: var(--dim); font-size: 12px; }
.dsides { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.asset { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; font-size: 13px; }
.asset.pick b::before { content: "\25C6  "; color: var(--gold); }
.dnums { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--dim); margin: 8px 0; padding-top: 8px; border-top: 1px solid var(--line); }
.dnums b { color: var(--ink); }
.dnums b.ok { color: var(--accent); } .dnums b.off { color: var(--warn); }
.answer { color: var(--ink); font-size: 12px; border-radius: 6px; padding: 6px 9px; margin: 6px 0; background: var(--soft); }
.answer.good { background: var(--good-bg); }
.answer.warn { background: var(--warn-bg); }
.deal details summary { padding: 4px 0; font-size: 12px; font-weight: 500; color: var(--link); }
.why { margin: 4px 0 8px; padding-left: 18px; font-size: 12px; }
.why .yes::marker { content: "\2713  "; color: var(--accent); }
.why .no::marker { content: "\26A0  "; color: var(--amber); }
.deals .card h2 { font-size: 14px; }
.change { font-weight: 600; margin: 8px 0 -4px; }
.deals .deal { margin: 10px 0; }

/* ---- Trends, matchup preview ---- */
.mover { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--line); color: var(--ink); }
a.mover:hover { text-decoration: none; background: var(--head); }
.mover .who, .mover .num { display: flex; flex-direction: column; min-width: 0; }
.mover .who span, .mover .num span { font-size: 11px; }
.mover .num { text-align: right; align-items: flex-end; white-space: nowrap; }
.odds { display: flex; align-items: center; gap: 12px; padding: 14px 14px 4px; font-size: 20px; font-variant-numeric: tabular-nums; }
.odds .bar { flex: 1; height: 12px; border-radius: 6px; background: var(--accent); overflow: hidden; }
.odds .bar span { display: block; height: 100%; background: var(--link); border-right: 2px solid var(--card); }

.oddsnum { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; font-variant-numeric: tabular-nums; }
.oddsnum b { font-size: 17px; }
.meter { display: block; width: 84px; height: 5px; border-radius: 3px; background: var(--soft); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--accent); }

.pagebar { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.pagebar .btn { padding: 8px 18px; }
.pagebar.left { justify-content: flex-start; }
.teamhead .record { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; margin: 2px 0; }
.teamhead .trophystrip { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; font-size: 15px; text-decoration: none; }
.teamhead .trophystrip small { font-size: 11px; color: var(--dim); margin-left: 1px; }
.teamhead .trophystrip b { font-size: 13px; font-weight: 600; color: var(--link); }
.trophies .award { cursor: default; }
.shame { margin-top: 0; }
.teamhead .tmoves { font-size: 13px; font-weight: 400; color: var(--dim); }
.grid td.rost { white-space: nowrap; font-variant-numeric: tabular-nums; }
.grid td.rost b { font-weight: 600; }
.grid td.rost span { display: block; font-size: 10px; font-weight: 600; }

/* ---- News ---- */
.story { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.storyhead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.storyplayer { font-weight: 600; font-size: 13px; color: var(--ink); }
.storyplayer .dim { font-weight: 400; font-size: 11px; }
.storytitle { font-size: 15px; text-transform: none; letter-spacing: 0; margin: 4px 0; line-height: 1.35; }
.storytitle a { color: var(--ink); }
.storybody { color: var(--dim); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.newssearch { display: flex; gap: 8px; align-items: center; width: 100%; }
.newssearch input[type=search] { flex: 1; min-width: 0; }
.sourcepills { flex-wrap: wrap; max-width: 100%; }
.sourcepills a { white-space: nowrap; }

/* ---- Trade offers ---- */
.badge { display: inline-flex; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--warn); color: #fff; font-size: 11px; font-weight: 700; align-items: center; justify-content: center; margin-left: 5px; vertical-align: 2px; text-transform: none; letter-spacing: 0; }
.offerbanner { border-left: 6px solid var(--warn); }
.offerbanner a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; color: var(--ink); }
.offerbanner a:hover { text-decoration: none; background: var(--head); }
.offerbanner span { font-size: 13px; color: var(--link); }
.offer { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.offer .dsides { margin: 8px 0; }
.pendingnav { font-size: 13px; }
.offermsg { font-style: italic; margin: 4px 0; }
.offeracts { margin-top: 8px; }
.proposebox { padding: 12px 14px; border-top: 1px solid var(--line); }
.proposebox textarea { width: 100%; font: inherit; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--field); color: var(--ink); margin: 6px 0; }

/* ---- Trading block ---- */
.blockrow { flex-wrap: wrap; }
.blockchoice { display: inline-flex; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; flex: none; }
.blockchoice button { font: inherit; font-size: 12px; padding: 5px 10px; border: 0; background: transparent; color: var(--dim); cursor: pointer; }
.blockchoice button + button { border-left: 1px solid var(--border); }
.blockchoice button.on.s-block { background: var(--amber); color: #fff; }
.blockchoice button.on.s-none { background: var(--soft); color: var(--ink); }
.blockchoice button.on.s-untouchable { background: var(--warn); color: #fff; }

.claimrank { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--soft); align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: none; }
.claimrow .acts { display: flex; gap: 4px; flex: none; }

/* ---- Waiver report ---- */
.txn { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.txnhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; }
.txnline { padding: 3px 0 3px 4px; font-size: 14px; }
.txnmark { display: inline-block; width: 18px; font-weight: 700; text-align: center; }
.txnmark.add { color: var(--accent); }
.txnmark.drop, .txnmark.lost { color: var(--warn); }
.txntag { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--dim); border: 1px solid var(--line); border-radius: 8px; padding: 0 6px; margin-left: 4px; }
.txntag.claim { color: var(--amber); border-color: var(--amber); }
.txn.lostclaim { opacity: .75; }

/* ---- add / drop (practice mode) ---- */
.addbtn { display: inline-flex; width: 32px; height: 32px; border-radius: 50%; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; line-height: 1; color: #fff; border: 1px solid transparent; }
.addbtn:hover { text-decoration: none; filter: brightness(1.08); }
.addbtn.free { background: var(--accent); }
.addbtn.waivers { background: var(--amber); }
.addbtn.claimed, .addbtn.mine { font-size: 14px; color: var(--dim); border-color: var(--border); }
.addbtn.mine { color: var(--accent); border-color: var(--accent); }
.stack { display: flex; gap: 6px; align-items: center; }
.btn.claim { background: var(--amber); border-color: var(--amber); color: #fff; font-size: 15px; padding: 10px 18px; }
.btn.pay.small, .btn.claim.small { font-size: 13px; padding: 6px 14px; }
.practicenote { border-left: 6px solid var(--amber); background: var(--warn-bg); }
.practicenote p { padding: 10px 14px; font-size: 13px; }
/* Move buttons on the Roster page, as on ESPN: Move beside each player, then Here on where he goes */
.roster .mvcol { width: 58px; text-align: center; padding-left: 2px; padding-right: 2px; }
.mvbtn { display: inline-block; min-width: 50px; font: inherit; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 5px 6px; border-radius: 6px; border: 1px solid var(--link); background: transparent; color: var(--link); cursor: pointer; text-align: center; }
.mvbtn:hover { text-decoration: none; background: var(--mine); }
.mvbtn.here { background: var(--accent); border-color: var(--accent); color: #fff; }
.mvbtn.cancel { border-color: var(--amber); color: var(--amber); }
.mvlock { font-size: 13px; opacity: .6; }
.roster tr.movingrow td { background: var(--warn-bg) !important; }
.roster tr.target td { background: var(--good-bg) !important; }
.roster tr.faded td { opacity: .4; }
.slotchip { display: inline-block; min-width: 44px; text-align: center; font-size: 11px; font-weight: 700; color: var(--dim); border: 1px solid var(--line); border-radius: 10px; padding: 2px 6px; flex: none; }
.dropbtn { color: var(--warn) !important; border-color: var(--warn) !important; }
.waiverorder { margin: 0; padding: 8px 14px 8px 40px; }
.waiverorder li { padding: 5px 4px; border-bottom: 1px solid var(--line); }
.waiverorder li.minerow { background: var(--mine); font-weight: 600; }

/* ---- watch list: the flag ---- */
.flagbtn { font: inherit; font-size: 15px; line-height: 1; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); background: transparent; color: var(--dim); cursor: pointer; padding: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.flagbtn.on { background: var(--link); border-color: var(--link); color: #fff; }
.flagbtn.labelled { width: auto; border-radius: 16px; padding: 0 14px; }
.flagbtn.labelled span { font-size: 13px; font-weight: 600; }
.grid .flagcell { width: 78px; padding-left: 8px; padding-right: 0; }
.pills .flagpill.on { background: var(--link); border-color: var(--link); color: #fff; }

.thisweek { display: block; font-size: 9px; font-weight: 600; color: var(--accent); letter-spacing: .04em; }

/* ---- Draft Prep ---- */
.rankcell { white-space: nowrap; }
.rankcell .delta { display: inline-block; min-width: 26px; font-size: 10px; margin-left: 3px; font-weight: 600; }
.rankto { width: 54px !important; padding: 4px 6px !important; border-radius: 8px !important; margin-left: 3px; }
.editing tr[draggable=true] { cursor: grab; }
.grid tr.justmoved { background: var(--warn-bg) !important; transition: background .2s; }
h2 .status { font-weight: 500; }
.boardbtn { min-width: 30px; padding: 3px 8px !important; }
.keepbox { width: 18px; height: 18px; accent-color: var(--accent); }
.mover .acts .btn { padding: 4px 9px; }
.pickplan { padding: 8px 14px; border-bottom: 1px solid var(--line); }
.pickplan .need { float: right; font-size: 11px; border: 1px solid var(--border); border-radius: 10px; padding: 1px 8px; color: var(--dim); }
.prospect { display: flex; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.prank { width: 28px; text-align: center; font-weight: 700; color: var(--dim); font-size: 16px; flex: none; }
.pbody { flex: 1; min-width: 0; }
.pgame { margin: 2px 0; }
.pside { text-align: right; white-space: nowrap; }
.phead { margin-bottom: 4px; }
.pfacts { display: grid; grid-template-columns: 9.5em 1fr; gap: 3px 10px; margin: 0; font-size: 13px; }
.pfacts dt { color: var(--dim); font-size: 12px; }
.pfacts dd { margin: 0; }
.pmore p { margin: 4px 0; }
.prospect details summary { padding: 2px 0; font-size: 12px; font-weight: 500; color: var(--link); }
.prospect details p { color: var(--dim); padding: 2px 0 4px; }

.grid tr.mypick { background: var(--good-bg) !important; box-shadow: inset 4px 0 0 var(--accent); }
.grid tr.mypick td { color: var(--ink); }
.picktag { display: block; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--accent); white-space: nowrap; }
.picktag:empty { display: none; }
.draftslot b { color: var(--accent); }
.estimate { margin: 3px 0; }
.estmark { display: block; font-size: 9px; text-transform: uppercase; color: var(--amber); font-weight: 700; }
a.mover > .who { flex: 1; }
.mover .valuecol { min-width: 76px; padding-left: 10px; border-left: 1px solid var(--line); }
.mover .valuecol b { font-variant-numeric: tabular-nums; }

/* ---- Data Center ---- */
.status { font-size: 11px; border-radius: 10px; padding: 1px 8px; border: 1px solid var(--border); white-space: nowrap; }
.status.s-lock { color: var(--accent); border-color: var(--accent); }
.status.s-toss-up { color: var(--amber); border-color: var(--amber); }
.pk { display: inline-block; font-size: 11px; border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; margin: 1px 2px 1px 0; }
.pk.got { background: var(--warn-bg); border-color: var(--gold); }
.pk.locked { text-decoration: line-through; opacity: .6; }

/* ---- Dues ---- */
.status.s-owes { color: var(--warn); border-color: var(--warn); }
.duesmine { display: flex; gap: 14px; align-items: center; }
.paybtns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.btn.pay { background: var(--accent); border-color: var(--accent); color: #fff; font-size: 15px; padding: 10px 18px; }
.sentform { padding: 12px 0 0; grid-template-columns: 1fr auto; align-items: end; }
.duesbar { padding-bottom: 12px; }
.duesbar .bar { background: var(--soft); }
.duesbar .bar span { background: var(--accent); border-right: 0; }
.mover.minerow { background: var(--mine); }
.mover.haslm { border-bottom: 0; padding-bottom: 4px; }
.lmrow { display: flex; gap: 8px 14px; flex-wrap: wrap; align-items: center; padding: 0 14px 8px 50px; border-bottom: 1px solid var(--line); background: var(--head); }
.lmrow details summary { padding: 2px 0; font-size: 12px; font-weight: 500; color: var(--link); }
.lmrow details[open] { flex-basis: 100%; }
.lmrow details form { padding-top: 6px; }
.lmrow .amt { width: 84px; font: inherit; padding: 5px 10px; border: 1px solid var(--border); border-radius: 16px; background: var(--field); color: var(--ink); }
.lmrow select { padding: 5px 8px; }
.post.voided p { text-decoration: line-through; color: var(--dim); }

/* ---- draft room ---- */
.clock { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-left: 6px solid var(--brand); }
.clock.mine { border-left-color: var(--accent); background: var(--good-bg); }
.clock.paused { border-left-color: var(--amber); background: var(--warn-bg); }
.onclock { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.onclock .label { font-size: 11px; text-transform: uppercase; color: var(--dim); letter-spacing: .04em; }
.onclock b { font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timer { font-size: 34px; font-weight: 700; font-variant-numeric: tabular-nums; }
.timer.low { color: var(--warn); }
.conn { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: var(--soft); color: var(--dim); }
.conn.ok { background: var(--good-bg); color: var(--accent); }
.conn.off { background: var(--bad-bg); color: var(--warn); }
.recent { display: flex; gap: 8px; padding: 10px 14px; overflow-x: auto; white-space: nowrap; }
.ondeck { padding: 10px 14px; }
.deckline { display: flex; gap: 10px; align-items: center; }
.deckchips { display: flex; gap: 6px; flex: 1; min-width: 0; }
.deckchips .deckchip { flex: 1 1 0; min-width: 0; }
.deckchip b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.decklabel { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--dim); font-weight: 600; }
.deckchip { display: inline-flex; flex-direction: column; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; min-width: 64px; font-size: 13px; }
.deckchip .dim { font-size: 10px; }
.deckchip.mine { border-color: var(--accent); background: var(--good-bg); }
.deckchip.mine b { color: var(--accent); }
.decknote { font-size: 12px; color: var(--dim); margin-top: 6px; }
.decknote.soon { color: var(--accent); font-weight: 700; font-size: 14px; }
.pickchip { border: 1px solid var(--line); border-radius: 8px; padding: 4px 9px; font-size: 12px; }
.drafttabs { display: none; }
.draftgrid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; align-items: start; }
.draftgrid.datawide { grid-template-columns: 1fr; }
.viewtabs { display: flex; border-bottom: 1px solid var(--line); }
.viewtabs button { flex: none; font: inherit; font-weight: 600; font-size: 14px; padding: 11px 16px; background: none; border: 0; border-bottom: 3px solid transparent; color: var(--dim); cursor: pointer; }
.viewtabs button.on { color: var(--ink); border-bottom-color: var(--accent); }
.datadraft th.sortable { cursor: pointer; user-select: none; }
.datadraft th.sorted { color: var(--ink); }
.datadraft td { white-space: nowrap; }
.datadraft .tgt { min-width: 30px; font-size: 15px; padding: 2px 6px; }
.datadraft .tgt.on { color: var(--gold); border-color: var(--gold); }
.acts { white-space: nowrap; }
.queue { margin: 0; padding: 0 14px 10px 34px; }
.queue li { padding: 5px 0; border-bottom: 1px solid var(--line); }
.queue li > span:first-child { display: inline-block; min-width: 60%; }
.queue li .acts { float: right; }
.queue li.empty { list-style: none; margin-left: -20px; }
.board { border-collapse: separate; border-spacing: 2px; font-size: 11px; padding: 8px; }
.board th { color: var(--dim); font-weight: 600; padding: 2px 4px; }
.board td { min-width: 84px; height: 38px; border-radius: 4px; padding: 3px 5px; vertical-align: top; background: var(--soft); color: #1d1e1f; }
.board td b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 96px; font-weight: 600; }
.board td span { color: rgba(0, 0, 0, .6); }
.board td.now { outline: 2px solid var(--accent); background: var(--card); }
.board .p-QB { background: #f9d5d9; } .board .p-RB { background: #cfeedd; } .board .p-WR { background: #d3e5fb; }
.board .p-TE { background: #fde3c8; } .board .p-K { background: #e9defa; } .board .p-DST { background: #e2e4e7; }
.board td.keeper { box-shadow: inset 0 0 0 2px var(--gold); }
details summary { padding: 12px 14px; cursor: pointer; font-weight: 600; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: #1d1e1f; color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 20; max-width: 90vw; box-shadow: 0 4px 16px rgba(0, 0, 0, .4); }

@media (max-width: 1000px) {
  .cols.three { grid-template-columns: 1fr 1fr; }
}

/* ---- phone: ESPN's app. Dark, team name at the top, sections as tabs across the top. ---- */
@media (max-width: 760px) {
  :root, :root[data-theme] {      /* the phone stays as it is, whatever the computer setting */
    --bg: #121315; --card: #1d1f22; --ink: #f2f3f4; --dim: #a3a5a9; --line: #303236; --head: #1d1f22;
    --field: transparent; --border: #4a6fd6; --zebra: #22252a; --totals: #2a2d32; --mine: #1f2a3d; --soft: #2a2d32;
    --brand: #000; --link: #6f9dff; --accent: #57d657; --warn: #ff6b6b; --amber: #f2b84b;
    --good-bg: #17301f; --warn-bg: #33290f; --bad-bg: #3a1a1a; --on: #f2f3f4; --on-ink: #121315;
  }
  body { padding-bottom: env(safe-area-inset-bottom); }
  .top { flex-wrap: wrap; justify-content: center; gap: 2px 10px; padding-bottom: 4px; }
  .brand { display: none; }
  .as span { display: none; }
  .as b { font-size: 18px; }
  .top { padding-left: 84px; padding-right: 84px; }
  .acct { position: absolute; right: 8px; top: calc(10px + env(safe-area-inset-top)); font-size: 11px; padding: 2px 8px; max-width: 74px; overflow: hidden; text-overflow: ellipsis; }
  .acct .lmtag { display: none; }
  .plain { margin-top: 4vh; }
  .as select { font-size: 18px; font-weight: 700; background: transparent; border: 0; text-align: center; max-width: 100%; padding: 2px 6px; }
  .as { min-width: 0; }
  .stamp { width: 100%; text-align: center; margin: 0; opacity: .6; font-size: 11px; }
  .tabs { background: #000; border-bottom: 1px solid var(--line); padding: 0; gap: 0; }
  .tabitem { flex: 1; }
  .tabs .tab { text-align: center; color: var(--dim); text-transform: uppercase; font-size: 12px; font-weight: 600; letter-spacing: .02em; padding: 12px 8px; min-height: 44px; }
  .tabs .tab:hover { background: transparent; }
  .tabs .tab.on { color: #fff; border-bottom-color: var(--accent); }
  .tabmenu { display: none !important; }
  .tabs .badge { min-width: 15px; height: 15px; font-size: 10px; margin-left: 2px; padding: 0 4px; }
  .tabs .tab { padding-left: 4px; padding-right: 4px; }
  .tabs .lg { display: none; }
  .tabs .sm { display: inline; }
  .deskonly { display: none !important; }
  .subtabs a.phoneonly { display: block !important; }
  /* A section's pages: one rounded bar with the current page filled in, as in the app's League tab. */
  .subtabs { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); margin: 10px 8px 0; padding: 3px; gap: 2px; background: var(--soft); border-radius: 18px; overflow: visible; }
  .subtabs a { text-align: center; border: 0; background: transparent; border-radius: 15px; padding: 8px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; font-size: 13px; min-width: 0; }
  .subtabs a.on { background: #000; color: #fff; }
  main { padding: 8px; }
  .card { border-radius: 12px; box-shadow: none; }
  .cols, .cols.three, .boxes.stack, .draftgrid, .dsides { grid-template-columns: 1fr; }
  .cols .card { margin-bottom: 0; }
  .logo.big { width: 48px; height: 48px; }
  .wide { display: none; }
  .narrow { display: inline; }
  .pmeta.narrow { display: block; }
  .pmeta.owner { margin-left: 32px; }
  .boxes { margin-left: 0; width: 100%; }
  .scorebox { flex: 1; min-width: 0; }
  .grid th { background: transparent; color: var(--ink); }
  .grid td, .grid th { padding: 9px 5px; }
  .grid tbody tr:nth-child(even) { background: transparent; }
  /* The lineup slot as a rounded outline, as in the app. */
  .roster .slot { width: 46px; }
  .roster td.slot:not(:empty) { font-weight: 700; color: var(--link); font-size: 11px; }
  .pname { font-size: 15px; font-weight: 600; color: var(--ink); }
  .pmeta { font-size: 12px; }
  .grid .score { font-size: 15px; }
  .versus .side { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 10px 6px; }
  .big { font-size: 24px; }
  .box .pmeta .narrow { display: block; }
  .matchcard { flex-wrap: wrap; }
  .matchcard .topper { display: none; }
  .btn { padding: 9px 16px; }
  .btn.ghost { border-color: var(--border); }
  .btn.small { padding: 8px 12px; }
  .tick { padding: 10px 12px; }
  .ticks { max-height: none; }
  .deal { margin: 10px; }
  .drafttabs { display: flex; gap: 4px; margin-bottom: 8px; position: sticky; top: 45px; z-index: 4; background: var(--bg); padding: 4px 0; }
  .drafttabs button { flex: 1; font: inherit; padding: 9px 4px; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 8px; min-height: 44px; }
  .drafttabs button.on { background: var(--on); color: var(--on-ink); border-color: var(--on); }
  .pane { display: none; }
  .pane.on { display: block; }
  .timer { font-size: 28px; }
  .scroll.tall { max-height: none; }
  .pside { display: none; }
  .legend { grid-template-columns: 1fr; }
  /* Filter buttons wrap onto a second row rather than sliding off the screen (owner, 2026-10-04). */
  .filters .pills { flex-wrap: wrap; overflow: visible; max-width: 100%; }
  .filters .pills a, .filters .pills button { white-space: nowrap; padding: 5px 10px; }
  .addbtn { width: 36px; height: 36px; }
  .addbtn.free, .btn.claim { color: #0b1a0b; }
  .flagbtn { width: 36px; height: 36px; font-size: 16px; }
  .flagbtn.labelled { height: 40px; }
  .grid .flagcell { width: 42px; padding-left: 6px; padding-right: 0; }
  .stack { flex-direction: column; }
  #rankings .marks { display: none; }       /* Draft Prep rankings: the percentage only on a phone */
  .thisweek.narrow { display: block; }
  .projgrid td.ahead { padding-left: 3px; padding-right: 3px; width: 54px; }
  .projgrid td.ahead b { font-size: 15px; color: var(--ink); }
  .projgrid .score { color: var(--accent); }
  .paybtns { flex-direction: column; }
  .btn.pay { text-align: center; padding: 14px 18px; font-size: 16px; }
  .btn.pay { color: #0b1a0b; }
  .sentform { grid-template-columns: 1fr; }
  .lmrow { background: transparent; }
}

/* League history */
.pagebar.seasons { justify-content: flex-start; gap: 6px; flex-wrap: wrap; }
.pagebar.seasons a { padding: 6px 12px; border-radius: 16px; border: 1px solid var(--border); white-space: nowrap; text-decoration: none; color: inherit; }
.pagebar.seasons a.on { background: var(--on); border-color: var(--on); color: var(--on-ink); }
.history .pmeta.owner { margin-left: 0; }
.hgame { display: flex; justify-content: space-between; gap: 10px; padding: 8px 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.hgame .won { font-weight: 600; }
.hgame .won b::after { content: " ✓"; color: var(--accent); }
tr.champ td { background: rgba(234, 179, 8, 0.12); }

/* Notifications: the bell in the header, the banner that slides down, the inbox and settings */
.bell { position: relative; color: rgba(255, 255, 255, .85); display: inline-flex; align-items: center; padding: 4px; border-radius: 50%; }
.bell:hover { color: #fff; background: rgba(255, 255, 255, .12); }
.bell.has { color: #fff; }
.bell .badge { position: absolute; top: -4px; right: -8px; margin: 0; }
.banner { position: fixed; left: 50%; top: 0; transform: translate(-50%, -120%); transition: transform .3s ease; z-index: 30; width: min(440px, calc(100vw - 24px)); margin-top: calc(10px + env(safe-area-inset-top)); background: var(--card); color: var(--ink); border-radius: 12px; padding: 12px 14px; box-shadow: 0 8px 28px rgba(0, 0, 0, .35); display: block; border-left: 4px solid var(--accent); }
.banner.show { transform: translate(-50%, 0); }
.banner:hover { text-decoration: none; }
.banner b, .banner span { display: block; }
.banner span { font-size: 13px; color: var(--dim); margin-top: 2px; }
.note-row { display: flex; gap: 10px; padding: 11px 14px; border-top: 1px solid var(--line); color: inherit; }
.note-row:hover { text-decoration: none; background: var(--soft); }
.note-row.unread { background: var(--mine); }
.note-row .dotmark { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; background: transparent; }
.note-row.unread .dotmark { background: var(--link); }
.note-row .what { min-width: 0; flex: 1; }
.note-row .what b { display: block; }
.note-row .what span { display: block; font-size: 13px; color: var(--dim); }
.note-row time { font-size: 11px; color: var(--dim); white-space: nowrap; }
.alertset label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-top: 1px solid var(--line); font-weight: normal; }
.alertset input[type=checkbox] { width: 20px; height: 20px; flex: none; margin: 0; }
.hours { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hours input { width: auto; }
@media (max-width: 760px) {
  .bell { position: absolute; left: 10px; top: calc(8px + env(safe-area-inset-top)); }
  .bell .badge { right: -6px; }
}

/* Draft day: countdowns */
.ddrow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 12px 14px; }
.ddlabel { color: var(--dim); font-size: 13px; }
.countdown { font-size: 22px; font-variant-numeric: tabular-nums; }
.ddwhen { width: 100%; font-size: 14px; }
.ddcard a { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; padding: 12px 14px; color: inherit; border-left: 4px solid var(--gold); }
.ddcard a:hover { text-decoration: none; }
.ddcard .countdown { font-size: 16px; }
.ddcard .go { margin-left: auto; color: var(--link); font-weight: 600; }

/* Board: search, categories, pins and replies */
.boardsearch { padding: 4px 14px 8px; }
.boardsearch input { width: 100%; }
.boardcats { padding: 0 14px 10px; flex-wrap: wrap; }
.cattag { font-size: 11px; color: var(--dim); border: 1px solid var(--line); border-radius: 10px; padding: 0 7px; margin-left: 4px; white-space: nowrap; }
.post.pinned { background: var(--warn-bg); }
.post.announce .cattag { color: var(--amber); border-color: var(--amber); }
.postacts { display: flex; gap: 14px; align-items: center; margin-top: 4px; }
.replies { margin: 8px 0 0 14px; border-left: 2px solid var(--line); padding-left: 10px; }
.reply { padding: 6px 0; }
.reply p { margin: 2px 0 0; }
.replyform { margin-top: 8px; padding: 0; }

/* College watch: the flag star */
.prospect { position: relative; }
.prospect .phead { padding-right: 34px; }
.star { position: absolute; top: 6px; right: 8px; font-size: 22px; line-height: 1; background: none; border: 0; color: var(--dim); cursor: pointer; padding: 4px; }
.star.on { color: var(--gold); }

/* Offseason: a strip under the menu, and locked buttons greyed out */
.offstrip { background: var(--warn-bg); color: var(--ink); font-size: 13px; text-align: center; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.offstrip a { font-weight: 600; margin-left: 6px; }
.offlocked { opacity: .45; }
.offlocked button, button.offlocked { cursor: not-allowed; }
a.lockoff.offlocked { pointer-events: none; }

/* The version, small at the bottom of every page */
.sitever { text-align: right; font-size: 11px; padding: 14px 16px calc(18px + env(safe-area-inset-bottom)); }
.sitever a { color: var(--dim); }
.changes { margin: 4px 14px 10px 32px; font-size: 13px; }
.changes li { margin: 3px 0; }

/* Weekly recap: award tiles (two across on a phone), power rankings */
.awards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; padding: 0 14px 14px; }
.award { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--field); color: var(--ink); min-width: 0; }
.award:hover { text-decoration: none; background: var(--head); }
.award.mineaward { border-color: var(--accent); background: var(--mine); }
.award .aicon { font-size: 22px; line-height: 1.1; }
.award .atitle { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--dim); }
.award .ateam { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.award .aval { font-variant-numeric: tabular-nums; font-size: 13px; }
.award .adetail { font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.prank { display: flex; flex-direction: column; align-items: center; width: 28px; flex: none; font-variant-numeric: tabular-nums; }
.prank b { font-size: 17px; }
.prank i { font-style: normal; font-size: 10px; }
.recapgame .who b { white-space: normal; }
@media (max-width: 760px) {
  .awards { grid-template-columns: 1fr 1fr; }
}

/* The version in the top bar: beside the bell at a computer, between the bell and the team name on a phone */
.verlink { display: inline-flex; align-items: center; font-size: 11px; font-weight: 600; color: #fff; border: 1px solid rgba(255, 255, 255, .35); border-radius: 10px; padding: 1px 7px; white-space: nowrap; }
.verlink:hover { text-decoration: none; background: rgba(255, 255, 255, .12); }
@media (max-width: 760px) {
  .top { padding-left: 98px; padding-right: 98px; }
  .verlink { position: absolute; left: 48px; top: calc(12px + env(safe-area-inset-top)); }
}
.comingnext li::marker { content: "→ "; }
@media (max-width: 760px) {
  .changes { margin: 4px 14px 10px 0; padding-left: 30px; }
}

@media (max-width: 760px) {
  .deckchips .deckchip.far { display: none; }
}

/* Feedback: the form owners send, and the League Manager's inbox */
.fbkinds { display: flex; gap: 6px; flex-wrap: wrap; }
.fbkind { flex: 1 1 0; min-width: 100px; }
.fbkind input { position: absolute; opacity: 0; pointer-events: none; }
.fbkind span { display: block; text-align: center; padding: 10px 6px; border: 1px solid var(--border); border-radius: 10px; color: var(--ink); font-size: 13px; cursor: pointer; }
.fbkind input:checked + span { background: var(--on); border-color: var(--on); color: var(--on-ink); font-weight: 600; }
.fbkind input:focus-visible + span { outline: 2px solid var(--link); }
.fbrow { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.fbhead { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.fbbody { margin: 6px 0; white-space: pre-wrap; }
.fbnote { margin: 6px 0 0; padding: 6px 10px; background: var(--soft); border-radius: 8px; font-size: 13px; }
.fbstatus { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 9px; border: 1px solid var(--line); }
.fbstatus.s-new { border-color: var(--link); color: var(--link); }
.fbstatus.s-planned { border-color: var(--amber); color: var(--amber); }
.fbstatus.s-done { border-color: var(--accent); color: var(--accent); }
.fbstatus.s-wontdo { color: var(--dim); }
.fbshot { max-width: 220px; max-height: 300px; border: 1px solid var(--line); border-radius: 8px; display: block; margin: 6px 0; }
.fbanswer { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.fbanswer select, .fbanswer input[type=text] { font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; background: var(--field); color: var(--ink); }
.fbanswer input[type=text] { flex: 1; min-width: 180px; }
.fbcard a { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; padding: 12px 14px; color: inherit; border-left: 4px solid var(--link); }
.fbcard a:hover { text-decoration: none; }
.fbcard .go { margin-left: auto; color: var(--link); font-weight: 600; }

/* Help: the "?" in the top bar (left of your name), and the Help page */
.helpbtn { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .6); color: #fff; font-weight: 700; font-size: 14px; flex: none; }
.helpbtn:hover { text-decoration: none; background: rgba(255, 255, 255, .12); }
@media (max-width: 760px) {
  .acct { max-width: 60px; }
  .helpbtn { position: absolute; right: 74px; top: calc(10px + env(safe-area-inset-top)); width: 22px; height: 22px; font-size: 13px; }
}
.helptoc { padding-top: 4px; }
.helptoc .chip { display: inline-block; font-size: 12px; padding: 5px 10px; border: 1px solid var(--border); border-radius: 14px; color: var(--ink); background: var(--field); }
.helptoc .chip:hover { text-decoration: none; background: var(--head); }
/* The guide on the Help page: the printed guide's own styles (kept inside .gd), reflowed for a screen.
   It reads as a white page, as the PDF does, in dark mode too. "div.gd" outranks the guide's own
   ".gd ..." rules, which the page loads after this file. */
div.gd { background: #fff; color: #1d1e1f; border-radius: 12px; padding: 18px 20px; margin-bottom: 12px; font-size: 14px; }
div.gd .page { height: auto; overflow: visible; position: static; page-break-after: auto; margin: 0 0 30px; scroll-margin-top: 110px; }
div.gd .page:last-child { margin-bottom: 0; }
div.gd a { color: #0b62c4; }
div.gd h3 { text-transform: none; letter-spacing: normal; font-size: 15px; }
div.gd .split { flex-wrap: wrap; }
div.gd .shot { width: 240px; max-width: 100%; }
div.gd .shots, div.gd .shots3 { flex-wrap: wrap; justify-content: center; }
div.gd .shots figure, div.gd .shots3 figure { flex: 1 1 150px; max-width: 240px; }
div.gd .shots img, div.gd .shots3 img { width: 100%; max-height: none; }
div.gd table { display: block; overflow-x: auto; }
@media (max-width: 760px) {
  div.gd { padding: 14px 12px; border-radius: 10px; }
  div.gd .split, div.gd .cols2 { flex-direction: column; gap: 10px; }
  div.gd .split > .shot { align-self: center; }
  div.gd dl { columns: 1; }
  div.gd td:first-child { white-space: normal; min-width: 90px; }
  div.gd .progress { flex-wrap: wrap; }
  div.gd h2 { font-size: 19px; }
}
.qa { margin: 0; padding: 0 14px 12px; }
.qa dt { font-weight: 700; margin-top: 10px; }
.qa dd { margin: 2px 0 0; }
.sourcetable td { white-space: normal; vertical-align: top; }
.sourcetable td:first-child { min-width: 130px; }
.sourcetable td:last-child { min-width: 120px; }

/* The league's real draft: a banner on every page while its room is open */
.draftbanner { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; padding: 10px 14px; background: var(--accent); color: #fff; font-size: 14px; text-align: center; }
.draftbanner:hover { text-decoration: none; filter: brightness(1.05); }
.draftbanner span { font-weight: 700; text-decoration: underline; }
.clock.waiting { border-left-color: var(--link); }
.bigbtn { display: inline-block; font-size: 16px; padding: 12px 20px; }
.scoreedit input { width: 76px; font: inherit; padding: 5px 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--field); color: var(--ink); text-align: right; }

/* Tablets (an iPad held upright, 761 to 1100 wide) get the computer layout with less room: the top bar
   wraps, so the scores line takes its own row instead of squeezing the name and buttons. */
@media (min-width: 761px) and (max-width: 1100px) {
  .top { flex-wrap: wrap; row-gap: 6px; }
  .brand { white-space: nowrap; }
  .as > span { display: none; }
  .stamp { flex-basis: 100%; margin: 0; text-align: right; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .deckchips .deckchip.farther { display: none; }      /* six picks ahead fit a tablet's banner; twelve get cut off */
}
/* A small tablet (an iPad mini held upright) uses the phone layout but has room for the Data Center. */
@media (min-width: 600px) and (max-width: 760px) {
  .tabitem.tabletok { display: flex !important; }
  .subtabs.tabletok { display: grid !important; }
}
.versus .projline { font-size: 15px; font-weight: 600; color: var(--ink); margin-top: 2px; }
.schedule a.g { color: inherit; border-radius: 6px; }
.schedule a.g:hover { text-decoration: none; background: var(--head); }
.hintline { margin: 4px 0 2px; padding: 9px 12px; background: var(--mine); border-radius: 8px; font-size: 14px; }
.schededit { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; }
.schededit .card { margin: 0; }
.schedgame { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; padding: 5px 14px; }
.schedgame select { font: inherit; font-size: 13px; padding: 4px 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--field); color: var(--ink); min-width: 0; }

.themepick label { cursor: pointer; }
.themepick input { position: absolute; opacity: 0; pointer-events: none; }

/* Computer-only settings (dark mode is for the browser on a computer; the phone is always dark). */
@media (max-width: 760px) { .wideonly { display: none !important; } }

/* Team settings: upload a team photo (app/teamphoto.py). */
.photorow { display: flex; gap: 14px; align-items: center; }
.form label.photopick { position: relative; overflow: hidden; display: inline-block; color: #fff; font-size: 14px; margin-bottom: 4px; }
.photopick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 100px; }

/* Matchup: the week's games across the league, above the box score (tap one to open it). */
.gamestrip { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-bottom: 6px; }
.gamechip { display: grid; gap: 4px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); min-width: 0; }
.gamechip:hover { text-decoration: none; border-color: var(--link); }
.gamechip.here { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.gside { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--dim); }
.gside .logo { width: 20px; height: 20px; font-size: 8px; }
.gside .gname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.gside b { font-variant-numeric: tabular-nums; font-size: 13px; }
.gside.lead { color: var(--ink); }
.gside.lead .gname { font-weight: 600; }
.gamenote { margin: 0 2px 10px; }
@media (max-width: 760px) {
  .gamestrip { grid-template-columns: 1fr 1fr; gap: 6px; }
  .gamechip { padding: 7px 8px; }
}

/* NFL scores (app/nflscores.py): every NFL game, live, and the players in each. */
.nflgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin-bottom: 6px; }
.nflchip { display: grid; gap: 3px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); min-width: 0; }
.nflchip:hover { text-decoration: none; border-color: var(--link); }
.nflchip.here { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.nflchip.redzone { border-left: 3px solid var(--warn); }
.nflstate { font-size: 11px; color: var(--dim); }
.nflwho { display: flex; gap: 6px; font-size: 11px; font-weight: 600; }
.nflwho .you { color: var(--accent); } .nflwho .opp { color: var(--link); }
.nflhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; }
.nflteams { display: grid; gap: 4px; flex: 1; max-width: 260px; }
.nflteams div { display: flex; align-items: center; gap: 6px; font-size: 18px; color: var(--dim); }
.nflteams div.lead { color: var(--ink); }
.nflteams .nflpts { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.nflclock { font-weight: 600; font-size: 14px; text-align: right; }
.nflsit { display: grid; grid-template-columns: 1fr 1fr 1.6fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.nflsit div { display: grid; gap: 2px; padding: 8px 10px; text-align: center; border-right: 1px solid var(--line); }
.nflsit div:last-child { border-right: 0; }
.nflsit b { font-size: 13px; } .nflsit span { font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--dim); }
.field { position: relative; height: 34px; margin: 12px 14px 4px; border-radius: 4px; background: repeating-linear-gradient(90deg, #2e7d32 0 8%, #388e3c 8% 16%); }
.field .ez { position: absolute; top: 0; bottom: 0; width: 10%; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #fff; background: #1b3d6e; }
.field .ez.left { left: 0; border-radius: 4px 0 0 4px; } .field .ez.right { right: 0; border-radius: 0 4px 4px 0; }
.field.redzone { box-shadow: 0 0 0 2px var(--warn); }
.field .ball { position: absolute; top: 50%; width: 14px; height: 9px; margin: -4.5px 0 0 -7px; border-radius: 50%; background: #8d5524; border: 1px solid #fff; }
.lastplay { font-size: 13px; }
.involved { display: inline-block; margin-right: 10px; }
.nflplayers td.score { width: 70px; }
.nflgame h2 { border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  .nflgrid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .nflsit { grid-template-columns: 1fr 1fr; } .nflsit div:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); }
}

/* ---- NFL scores, ESPN style (nfl-panel.html) and the Live Scores bar on Matchup (live-dock.html) ---- */
.nflpanel { min-width: 0; }
.nflrow { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--ink); }
.nflrow:hover { text-decoration: none; background: var(--zebra); }
.nflrow.redzone { box-shadow: inset 3px 0 0 var(--warn); }
.nflrteams { display: grid; gap: 4px; flex: 1; min-width: 0; }
.nflrteam { display: flex; align-items: center; gap: 8px; color: var(--dim); font-size: 15px; }
.nflrteam.lead { color: var(--ink); }
.nflrteam img { width: 22px; height: 22px; object-fit: contain; }
.nflrteam .pts { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.nflrstate { display: grid; gap: 2px; justify-items: end; text-align: right; font-size: 12px; min-width: 96px; border-left: 1px solid var(--line); padding-left: 10px; }
.poss { display: inline-block; width: 0; height: 0; margin-left: 4px; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 6px solid var(--ink); vertical-align: middle; }
.you { color: var(--accent); } .opp { color: var(--link); }
.gview { min-width: 0; }
.ghead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 12px 14px; }
.gteam { display: flex; align-items: center; gap: 8px; color: var(--dim); min-width: 0; }
.gteam.home { flex-direction: row-reverse; text-align: right; }
.gteam.lead { color: var(--ink); }
.gteam img { width: 34px; height: 34px; object-fit: contain; }
.gteam .gname { display: grid; min-width: 0; font-size: 13px; }
.gteam .gname b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gteam .gpts { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; margin: 0 4px; white-space: nowrap; }
.gteam .gshort { display: none; }
.gclock { font-size: 13px; font-weight: 600; text-align: center; white-space: nowrap; }
.gtabs { display: flex; border-bottom: 1px solid var(--line); overflow: hidden; }
.gtabs a { flex: 1; text-align: center; padding: 10px 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--dim); border-bottom: 3px solid transparent; white-space: nowrap; }
.gtabs a:hover { text-decoration: none; color: var(--ink); }
.gtabs a.on { color: var(--ink); border-bottom-color: var(--accent); }
.fieldmarks { display: flex; justify-content: space-between; margin: 0 14px 6px; font-size: 10px; color: var(--dim); }
.field .driveline { position: absolute; top: 50%; height: 2px; margin-top: -1px; background: #fff; opacity: .9; }
.involvedrow { display: flex; justify-content: space-between; padding: 6px 14px; font-size: 13px; border-top: 1px solid var(--line); }
.ghd { margin: 0; padding: 10px 14px 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; border-top: 1px solid var(--line); box-shadow: inset 3px 0 0 var(--line); }
.ghd.you { box-shadow: inset 3px 0 0 var(--accent); color: var(--ink); } .ghd.opp { box-shadow: inset 3px 0 0 var(--link); color: var(--ink); }
.ghd .dim { text-transform: none; letter-spacing: 0; font-weight: 400; }
.gplayer { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 7px 14px; font-size: 13px; }
.gplayer.benchrow { opacity: .7; }
.gplayer b { font-variant-numeric: tabular-nums; }
.gothers summary, .gdrive summary { cursor: pointer; list-style: none; }
.gothers summary { padding: 9px 14px; font-size: 12px; font-weight: 600; color: var(--link); border-top: 1px solid var(--line); }
.gdrive { border-top: 1px solid var(--line); }
.gdhead { display: flex; align-items: center; gap: 8px; padding: 9px 14px; font-size: 13px; }
.gdhead img { width: 20px; height: 20px; object-fit: contain; }
.gdhead .dim { flex: 1; }
.gdhead .scored { color: var(--accent); font-weight: 700; }
.gdrive.current { background: var(--zebra); }
.gplay { display: grid; gap: 2px; padding: 7px 14px 7px 42px; font-size: 13px; border-top: 1px solid var(--line); }
.gplay .when { font-size: 11px; color: var(--dim); }
.gplay.scoring { box-shadow: inset 3px 0 0 var(--accent); }
.gplay.turnover { box-shadow: inset 3px 0 0 var(--warn); }
.owntag { display: inline-block; font-size: 10px; padding: 0 5px; border-radius: 3px; background: var(--soft); color: var(--ink); vertical-align: 1px; }
.owntag.you { background: var(--accent); color: #0b1a0b; } .owntag.opp { background: var(--link); color: #fff; }
.gscore { display: flex; gap: 10px; align-items: flex-start; padding: 9px 14px; font-size: 13px; border-top: 1px solid var(--line); }
.gscore img { width: 24px; height: 24px; object-fit: contain; flex: none; }
.gscore span { flex: 1; }
.gscore .sc { font-variant-numeric: tabular-nums; }
.gbox th, .gbox td { font-size: 12px; white-space: nowrap; }
.gbox tr.mine td { background: var(--mine); }
.nflpage { padding: 0; overflow: hidden; }

/* The Live Scores bar. Phone: pinned to the bottom; tap or swipe up and the panel slides up. */
.livedock { --dockh: 58px; }
.dockbar { all: unset; box-sizing: border-box; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; gap: 10px; height: calc(var(--dockh) + env(safe-area-inset-bottom)); padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); background: #1d1f22; color: #f2f3f4; border-top: 1px solid #303236; border-radius: 14px 14px 0 0; cursor: pointer; box-shadow: 0 -4px 16px rgba(0, 0, 0, .35); }
.dockbar .grab { position: absolute; top: 6px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 2px; background: #6c6d6f; }
.dockbar .docktitle { font-weight: 700; font-size: 17px; white-space: nowrap; }
.dockbar .ticker { margin-left: auto; font-size: 13px; white-space: pre; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.docksheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 42; height: 88vh; height: 88dvh; display: flex; flex-direction: column; background: var(--card); color: var(--ink); border-radius: 14px 14px 0 0; transform: translateY(105%); transition: transform .28s ease; box-shadow: 0 -6px 24px rgba(0, 0, 0, .45); padding-bottom: env(safe-area-inset-bottom); }
.livedock.open .docksheet { transform: none; }
.sheethead { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.sheethead b { text-align: center; font-size: 16px; }
.sheethead button { all: unset; cursor: pointer; text-align: center; font-size: 26px; line-height: 1; padding: 6px 0; color: var(--ink); }
.sheethead .sheetback[hidden] { visibility: hidden; display: block !important; }
.dockbody { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.dockshade { position: fixed; inset: 0; z-index: 41; background: rgba(0, 0, 0, .5); }
body.sheetopen { overflow: hidden; }
.pagewrap:has(.livedock) main { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }

/* Computer: the panel sits open on the right of Matchup, beside the box score. */
@media (min-width: 761px) {
  .pagewrap:has(.livedock) { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 4px; max-width: 1600px; margin: 0 auto; padding-right: 12px; }
  .pagewrap:has(.livedock) main { max-width: none; margin: 0; padding-bottom: 12px; }
  .dockbar, .dockshade, .sheethead .sheetclose { display: none !important; }
  .docksheet { position: sticky; top: 60px; height: auto; max-height: calc(100vh - 72px); margin-top: 12px; transform: none; transition: none; border-radius: 12px; box-shadow: none; border: 1px solid var(--line); z-index: 1; }
  .sheethead { grid-template-columns: 44px 1fr 44px; }
}

@media (max-width: 760px) {
  .gteam .glong { display: none; } .gteam .gshort { display: inline; }
  .gteam img { width: 30px; height: 30px; }
  .gbox th, .gbox td { font-size: 11px; padding: 6px 4px; }
  .gbox td.left { white-space: normal; min-width: 92px; }
  .gtabs a { font-size: 11px; }
}

/* League → Bylaws: the uploaded document on the page (app/bylawsdoc.py). */
.bylawtoc { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--line); }
.bylawtoc a { font-size: 12px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 14px; }
div.gd.bylawdoc { margin: 0; border-radius: 0; background: var(--card); color: var(--ink); }
div.gd.bylawdoc a { color: var(--link); }
.bylawdoc h1, .bylawdoc h2, .bylawdoc h3, .bylawdoc h4 { scroll-margin-top: 60px; }
.bylawdoc h1 { font-size: 20px; margin: 4px 0 10px; }
.bylawdoc h2 { font-size: 16px; padding: 14px 0 6px; margin: 0; border-bottom: 1px solid var(--line); }
.bylawdoc h3 { font-size: 14px; margin: 12px 0 4px; text-transform: none; letter-spacing: 0; }
.bylawdoc p, .bylawdoc li { line-height: 1.5; margin: 6px 0; }
.bylawdoc ul, .bylawdoc ol { padding-left: 22px; margin: 6px 0; }
.bylawdoc table { border-collapse: collapse; margin: 8px 0; }
.bylawdoc td { border: 1px solid var(--line); padding: 6px 8px; vertical-align: top; font-size: 13px; }

/* Player photos (ESPN headshots; a defense shows its team's logo), tester feedback #82. */
.pwrap { display: inline-flex; align-items: center; gap: 8px; min-width: 0; text-align: left; }
.ptext { min-width: 0; }
.face { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: var(--soft); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; color: var(--dim); }
.face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 15%; background: var(--soft); }
.face.dst img { object-fit: contain; padding: 3px; object-position: center; }
.face.big { width: 64px; height: 64px; font-size: 20px; }
td.right .pwrap { flex-direction: row-reverse; text-align: right; }
@media (max-width: 760px) {
  .face { width: 30px; height: 30px; }
  .face.big { width: 56px; height: 56px; }
  .nofaces-phone .face { display: none; }
}

/* A player's Latest news (app/playernews.py), tester feedback #2. */
.pnblurb { display: grid; gap: 4px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--zebra); font-size: 13px; }
.pnblurb p { line-height: 1.45; }
.pnitem { display: grid; gap: 3px; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 14px; }
.pnitem b { font-weight: 600; color: var(--link); }
.pnitem:hover { text-decoration: none; background: var(--zebra); }

/* LM Tools → Season → Where the league runs (app/leaguehome.py). */
.homelist { margin: 6px 0 0; padding-left: 20px; } .homelist li { margin: 4px 0; line-height: 1.45; }

/* Trades waiting for the commissioner (app/offers.py, LM Tools → Trades). */
.warnish { color: var(--amber); }
.reviewform { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.reviewform input[type=text] { flex: 1; min-width: 200px; font: inherit; padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--field); color: var(--ink); }

/* "Back to the trade" on a player's page opened from the Trade machine. */
.backlink { margin: 0 2px 8px; font-size: 14px; font-weight: 600; }
.ticks .tick .pname { font-weight: 700; }
