/* Last Four In — shared look for the contest pages.
   Sports-media feel: live score strip on top, solid navy nav, light body, white cards,
   heavy italic condensed headings. Gold is the brand accent; team colours carry identity. */
:root {
  --navy: #0a1a33;
  --navy-2: #12284a;
  --gold: #f2b33d;
  --gold-ink: #1b1204;
  --bg: #eef1f5;
  --card: #ffffff;
  --line: #dde3ea;
  --line-2: #c9d2dd;
  --ink: #0d1726;
  --ink-2: #3c4a5c;
  --muted: #6b7889;
  --win: #11a36a;
  --loss: #d9443a;
  --blue: #1f6feb;
  --f-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --f-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --r: 8px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.num { font-family: var(--f-display); font-variant-numeric: tabular-nums; }
.disp { font-family: var(--f-display); font-weight: 800; font-style: italic; text-transform: uppercase; letter-spacing: .01em; line-height: .95; }

/* Score strip */
.strip { background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: stretch; height: 64px; }
.strip-lbl { flex: none; display: flex; flex-direction: column; justify-content: center; padding: 0 16px; border-right: 1px solid var(--line); font-family: var(--f-display); font-weight: 700; text-transform: uppercase; line-height: 1.05; }
.strip-lbl b { font-size: 15px; letter-spacing: .04em; }
.strip-lbl span { font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.strip-games { flex: 1; display: flex; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.strip-games::-webkit-scrollbar { display: none; }
.sg { flex: none; width: 168px; padding: 7px 12px; border-right: 1px solid var(--line); display: grid; gap: 1px; text-decoration: none; scroll-snap-align: start; }
.sg:hover { background: #f7f9fb; }
.sg-top { display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.sg-top .live { color: var(--loss); }
.sg-row { display: grid; grid-template-columns: 18px 1fr auto; gap: 6px; align-items: center; font-family: var(--f-display); font-weight: 700; font-size: 15px; line-height: 1.15; }
.sg-row img { width: 18px; height: 18px; object-fit: contain; }
.sg-row .sc { font-variant-numeric: tabular-nums; }
.sg-row.lose { color: var(--muted); }
.sg-row .mine { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); display: inline-block; margin-left: 5px; vertical-align: middle; }

/* Nav */
.nav { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 20; }
.nav-in { max-width: 1240px; margin: 0 auto; height: 60px; display: flex; align-items: stretch; gap: 8px; padding-right: 16px; }
.brand { flex: none; display: flex; align-items: center; gap: 10px; padding: 0 30px 0 20px; background: var(--gold); color: var(--gold-ink); text-decoration: none; clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%); }
.brand b { font-family: var(--f-display); font-weight: 800; font-style: italic; font-size: 24px; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.nav-links { display: flex; align-items: stretch; margin-left: 10px; }
.nav-links a { display: flex; align-items: center; padding: 0 14px; color: #c9d4e3; text-decoration: none; font-weight: 600; font-size: 15px; border-bottom: 3px solid transparent; border-top: 3px solid transparent; }
.nav-links a:hover { color: #fff; }
.nav-links a.on { color: #fff; border-bottom-color: var(--gold); }
.nav-r { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); border-radius: 6px; padding: 9px 16px; font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.btn:hover { background: #f5f7fa; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.btn.gold:hover { filter: brightness(1.05); }
.btn.navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.nav .btn.ghost { background: transparent; border-color: rgba(255,255,255,.25); color: #fff; }
.nav .btn.ghost:hover { background: var(--navy-2); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--navy-2); border: 2px solid var(--gold); display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; color: #fff; text-decoration: none; }
.mnav { display: none; background: var(--navy-2); overflow-x: auto; scrollbar-width: none; }
.mnav a { display: inline-block; padding: 10px 14px; color: #c9d4e3; text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap; }
.mnav a.on { color: #fff; box-shadow: inset 0 -3px 0 var(--gold); }
@media (max-width: 820px) {
  .nav-links { display: none; }
  .mnav { display: block; }
  .brand b { font-size: 20px; }
  .brand { padding: 0 24px 0 16px; }
}

/* Page */
.page { max-width: 1240px; margin: 0 auto; padding: 24px 20px 72px; }
@media (max-width: 480px) { .page { padding: 16px 16px 56px; } }
.head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 24px; margin-bottom: 20px; }
.kicker { font-family: var(--f-display); font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.head h1 { font-size: clamp(40px, 6vw, 60px); margin: 4px 0 0; }
.head p { margin: 8px 0 0; color: var(--ink-2); max-width: 60ch; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
@media (max-width: 980px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.card-h { padding: 16px 18px 12px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: end; gap: 10px; }
.card-h h2 { font-size: 26px; margin: 0; }
.card-h a { font-size: 13px; font-weight: 700; color: var(--blue); text-decoration: none; white-space: nowrap; }
.card-b { padding: 14px 18px 18px; }
.side { display: grid; gap: 20px; }

/* Week selector + status chips */
.weekbar { display: flex; align-items: center; gap: 8px; }
.weekbar select { appearance: none; -webkit-appearance: none; padding: 9px 34px 9px 12px; border-radius: 6px; border: 1px solid var(--line-2); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%236b7889' stroke-width='2'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 12px center; font-weight: 700; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-display); font-weight: 700; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; background: #eef2f7; color: var(--ink-2); }
.chip.live { background: #fde8e6; color: var(--loss); }
.chip.ok { background: #e3f6ee; color: var(--win); }
.chip.no { background: #fde8e6; color: var(--loss); }
.chip.lock { background: #eef2f7; color: var(--muted); }

/* Pick progress */
.progress { display: flex; align-items: center; gap: 14px; padding: 14px 18px; }
.progress .bar { flex: 1; height: 8px; border-radius: 99px; background: #e6ebf1; overflow: hidden; }
.progress .bar i { display: block; height: 100%; background: var(--gold); border-radius: 99px; transition: width .2s; }
.progress b { font-family: var(--f-display); font-size: 20px; font-weight: 800; white-space: nowrap; }

/* Game day groups and pick cards */
.day { font-family: var(--f-display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 17px; letter-spacing: .04em; color: var(--ink-2); margin: 22px 0 10px; display: flex; align-items: center; gap: 10px; }
.day::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.games { display: grid; gap: 10px; }
.g { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.g-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 14px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--muted); font-weight: 600; }
.g-meta .when { text-transform: uppercase; letter-spacing: .04em; }
.g-teams { display: grid; grid-template-columns: minmax(0, 1fr) 36px minmax(0, 1fr); align-items: stretch; }
.at { display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-style: italic; color: var(--muted); font-size: 15px; }
.tm { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px; border: 0; background: #fff; text-align: left; min-height: 78px; transition: background .12s; }
.tm.home { grid-template-columns: auto minmax(0, 1fr) 48px; text-align: right; }
.tm.home img { order: 3; }
.tm.home .tn { order: 2; }
.tm.home .ts { order: 1; }
.tm img { width: 48px; height: 48px; object-fit: contain; }
.tm .tn { min-width: 0; }
.tm .city { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm .nick { font-family: var(--f-display); font-weight: 800; font-size: 24px; text-transform: uppercase; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm .rec { font-size: 12px; color: var(--muted); font-weight: 600; }
.tm .ts { font-family: var(--f-display); font-weight: 800; font-size: 30px; font-variant-numeric: tabular-nums; color: var(--ink); }
.tm:not(:disabled):hover { background: color-mix(in srgb, var(--tc) 7%, #fff); }
.tm:disabled { cursor: default; }
.tm.pick { background: var(--tc); color: #fff; }
.tm.pick .city, .tm.pick .rec { color: rgba(255,255,255,.8); }
.tm.pick .ts { color: #fff; }
.tm.pick::after { content: "YOUR PICK"; position: absolute; top: 6px; font-family: var(--f-display); font-weight: 800; font-size: 11px; letter-spacing: .12em; background: var(--gold); color: var(--gold-ink); padding: 1px 6px; border-radius: 3px; }
.tm.away.pick::after { right: 8px; }
.tm.home.pick::after { left: 8px; }
.tm.lost { opacity: .5; }
.g.locked .tm:not(.pick) { background: #fafbfc; }
@media (max-width: 560px) {
  .tm, .tm.home { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding: 14px 8px; gap: 6px; }
  .tm.home img, .tm.home .tn, .tm.home .ts { order: 0; }
  .tm img { width: 40px; height: 40px; }
  .tm .nick { font-size: 20px; }
  .tm .ts { font-size: 26px; }
  .tm.pick::after { top: auto; bottom: 4px; left: 50% !important; right: auto !important; transform: translateX(-50%); }
  .tm.pick { padding-bottom: 24px; }
}

/* Leaderboard rows */
.lb { list-style: none; margin: 0; padding: 0; }
.lb li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.lb li:last-child { border-bottom: 0; }
.lb .rk { font-family: var(--f-display); font-weight: 800; font-size: 20px; text-align: center; color: var(--muted); }
.lb li:nth-child(-n+3) .rk { color: var(--gold); }
.lb .who { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.lb .rec { font-family: var(--f-display); font-weight: 800; font-size: 19px; }
.lb li.me { background: #fff8e8; margin: 0 -18px; padding-left: 18px; padding-right: 18px; }
.empty { color: var(--muted); font-size: 14px; padding: 6px 0; }

/* Banner + toast */
.banner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: var(--navy); color: #fff; border-radius: var(--r); padding: 16px 20px; margin-bottom: 18px; }
.banner b { font-family: var(--f-display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 22px; letter-spacing: .02em; }
.banner span { color: #c9d4e3; font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--navy); color: #fff; padding: 11px 18px; border-radius: 6px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: .2s; z-index: 50; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%); }
.steps { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 14px; display: grid; gap: 6px; }
.foot { max-width: 1240px; margin: 0 auto; padding: 20px; color: var(--muted); font-size: 12.5px; border-top: 1px solid var(--line); }

/* ---------- Shared site shell (added in the unify pass) ---------- */
.nav:empty { height: 60px; }
.nav:empty + .mnav-ph { height: 40px; }
.mnav { white-space: nowrap; }
.nav-clock { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.05; color: #c9d4e3; text-decoration: none; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.nav-clock b { font-family: var(--f-display); font-size: 17px; font-weight: 800; letter-spacing: .02em; color: var(--gold); font-variant-numeric: tabular-nums; }
@media (max-width: 1100px) { .nav-clock { display: none; } }
.nav-r .avatar { font-size: 15px; }
.btn.big { font-family: var(--f-display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 22px; letter-spacing: .02em; padding: 16px 26px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: default; filter: none; }
.lnk { color: var(--blue); font-weight: 700; text-decoration: none; }
.lnk:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.stack { display: grid; gap: 20px; }

/* Countdown clock */
.count { display: flex; gap: 8px; }
.count > div { min-width: 64px; background: var(--navy); color: #fff; border-radius: 6px; padding: 8px 6px 6px; text-align: center; }
.count b { display: block; font-family: var(--f-display); font-weight: 800; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; color: var(--gold); }
.count span { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #c9d4e3; margin-top: 3px; }
.count.sm > div { min-width: 48px; padding: 6px 4px 5px; }
.count.sm b { font-size: 24px; }
@media (max-width: 380px) { .count > div { min-width: 0; flex: 1; } }

/* Home */
.hero { background: var(--navy); color: #fff; border-radius: var(--r); padding: 26px 24px 24px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -60px; top: -40px; width: 260px; height: 260px; background: var(--gold); opacity: .08; transform: rotate(18deg); }
.hero .kicker { color: var(--gold); }
.hero h1 { font-size: clamp(40px, 8vw, 72px); margin: 6px 0 10px; }
.hero p { color: #c9d4e3; margin: 0 0 20px; max-width: 54ch; }
.hero .btn.big { box-shadow: 0 6px 0 rgba(0,0,0,.25); }
.hero .also { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 18px; font-size: 14px; color: #c9d4e3; }
.hero .also a { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--gold); }
@media (max-width: 560px) { .hero { padding: 22px 18px 20px; } .hero .btn.big { width: 100%; font-size: 20px; } }
.sel-day { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; }
.sel-day h2 { font-size: 28px; margin: 2px 0 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.tile { display: grid; gap: 4px; padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; border-top: 4px solid var(--navy); }
.tile:hover { border-color: var(--line-2); border-top-color: var(--gold); }
.tile b { font-family: var(--f-display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 22px; line-height: 1; }
.tile span { color: var(--ink-2); font-size: 14px; }
.tile .chip { justify-self: start; margin-top: 4px; }
.rules-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rules-list li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; align-items: start; }
.rules-list .pts { font-family: var(--f-display); font-weight: 800; font-size: 26px; line-height: 1; color: var(--navy); text-align: center; background: #fff8e8; border: 1px solid #f6dca6; border-radius: 6px; padding: 6px 0 4px; }
.rules-list .pts small { display: block; font-size: 10px; letter-spacing: .1em; color: var(--muted); }
.rules-list b { display: block; }
.rules-list span { color: var(--ink-2); font-size: 14px; }

/* Submit bar (pick'em pages) */
.submitbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.submitbar span { font-size: 13.5px; color: var(--ink-2); }
.dock { position: sticky; bottom: 0; z-index: 15; padding: 10px 0 calc(10px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(transparent, var(--bg) 30%); }

/* Ranker (AP poll + CFP bracket). One flow on every screen: tap a row for its actions,
   drag the handle to reorder, one constant "Add or swap a team" button. */
.rk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.rk-row { background: #fff; border: 1px solid var(--line); border-radius: 6px; position: relative; overflow: hidden; }
.rk-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--tc, var(--line-2)); }
.rk-main { display: grid; grid-template-columns: 30px 30px 30px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 8px 6px 6px; min-height: 50px; cursor: pointer; }
.rk-row.open { border-color: var(--navy); box-shadow: 0 2px 10px rgba(10,26,51,.1); }
.rk-row.dragging { opacity: .85; box-shadow: 0 10px 24px rgba(10,26,51,.25); z-index: 5; border-color: var(--gold); }
.rk-handle { width: 30px; height: 38px; display: grid; place-items: center; color: var(--muted); touch-action: none; cursor: grab; border: 0; background: transparent; padding: 0; }
.rk-handle svg { width: 16px; height: 16px; }
.rk-n { font-family: var(--f-display); font-weight: 800; font-size: 22px; text-align: center; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.rk-main img { width: 30px; height: 30px; object-fit: contain; }
.rk-name { min-width: 0; }
.rk-name b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-name small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-right { display: flex; align-items: center; gap: 4px; }
.rk-move { font-size: 11px; font-weight: 700; font-family: var(--f-display); letter-spacing: .04em; }
.rk-move.up { color: var(--win); }
.rk-move.down { color: var(--loss); }
.rk-act { display: none; gap: 6px; padding: 0 8px 8px 8px; flex-wrap: wrap; }
.rk-row.open .rk-act { display: flex; }
.rk-act button, .rk-act select { flex: 1 1 auto; min-height: 40px; border: 1px solid var(--line-2); background: #f7f9fb; border-radius: 6px; font-weight: 700; font-size: 13.5px; padding: 6px 10px; }
.rk-act select { flex: 1 1 110px; appearance: none; -webkit-appearance: none; text-align: center; }
.rk-act .rm { color: var(--loss); }
.rk-cut { list-style: none; display: flex; align-items: center; gap: 10px; margin: 6px 2px; font-family: var(--f-display); font-weight: 800; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #b07b10; }
.rk-cut::before, .rk-cut::after { content: ""; flex: 1; height: 0; border-top: 2px dashed var(--gold); }
.rk-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.rk-foot .count-lbl { font-size: 13px; color: var(--muted); font-weight: 600; }
.pill { font-family: var(--f-display); font-weight: 700; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; border-radius: 4px; padding: 2px 6px; white-space: nowrap; }
.pill.bye { background: var(--gold); color: var(--gold-ink); }
.pill.auto { background: #e3f6ee; color: var(--win); }
.pill.large { background: #e8f0fe; color: var(--blue); }
.pill.out { background: #fde8e6; color: var(--loss); }
.pill.dim { background: #eef2f7; color: var(--muted); }
.crown { width: 30px; height: 30px; border: 0; background: transparent; display: grid; place-items: center; color: var(--line-2); border-radius: 6px; padding: 0; }
.crown svg { width: 17px; height: 17px; }
.crown:hover { background: #f5f7fa; color: var(--ink-2); }
.crown.on { color: #d99a1b; }
.crown.proj { color: #efd08f; }

/* Bottom sheet + modal (team picker, share pop-up) */
.ov { position: fixed; inset: 0; z-index: 60; background: rgba(10,26,51,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.ov[hidden] { display: none; }
.dlg { background: #fff; border-radius: 12px; width: min(460px, 100%); max-height: min(86vh, 720px); display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.dlg-h { display: flex; align-items: start; justify-content: space-between; gap: 10px; padding: 18px 18px 10px; }
.dlg-h h2 { font-size: 28px; margin: 2px 0 0; }
.dlg-x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #eef2f7; display: grid; place-items: center; font-size: 20px; line-height: 1; color: var(--ink-2); flex: none; }
.dlg-b { padding: 0 18px 18px; overflow: auto; }
@media (max-width: 600px) {
  .ov { align-items: flex-end; padding: 0; }
  .dlg { width: 100%; border-radius: 14px 14px 0 0; max-height: 88vh; padding-bottom: env(safe-area-inset-bottom, 0px); }
}
.search { width: 100%; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 8px; font-size: 16px; margin-bottom: 10px; }
.pick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.pick-list button { width: 100%; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; text-align: left; padding: 8px 10px; min-height: 48px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.pick-list button:hover { background: #f7f9fb; border-color: var(--line-2); }
.pick-list img { width: 30px; height: 30px; object-fit: contain; }
.pick-list b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-list small { color: var(--muted); font-size: 12px; }
.pick-list .tag { font-family: var(--f-display); font-weight: 800; font-size: 15px; color: var(--muted); }
.sheet-note { background: #fff8e8; border: 1px solid #f6dca6; border-radius: 8px; padding: 10px 12px; font-size: 14px; margin-bottom: 10px; }

/* Share pop-up + entry previews */
.share-acts { display: grid; gap: 8px; margin-top: 14px; }
.share-acts .btn { min-height: 48px; font-size: 15px; }
.entry { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.entry-h { background: var(--navy); color: #fff; padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.entry-h b { font-family: var(--f-display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 19px; letter-spacing: .02em; }
.entry-h span { font-size: 12px; color: #c9d4e3; font-weight: 600; white-space: nowrap; }
.entry-b { padding: 12px 14px; }
.entry-champ { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.entry-champ img { width: 46px; height: 46px; object-fit: contain; }
.entry-champ small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.entry-champ b { font-family: var(--f-display); font-weight: 800; font-size: 26px; text-transform: uppercase; line-height: 1; }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 4px 12px; font-size: 13.5px; }
.mini-grid div { display: flex; gap: 6px; align-items: center; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-grid i { font-style: normal; font-family: var(--f-display); font-weight: 800; color: var(--muted); min-width: 20px; text-align: right; }
.mini-grid img { width: 18px; height: 18px; object-fit: contain; flex: none; }
.entry-more { font-size: 12.5px; color: var(--muted); margin-top: 8px; }

/* Account */
.acct-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.acct-stats div { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.acct-stats b { display: block; font-family: var(--f-display); font-weight: 800; font-size: 34px; line-height: 1; }
.acct-stats span { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.acct-list { display: grid; gap: 14px; }
.acct-item .entry-acts { display: flex; gap: 8px; padding: 0 14px 12px; flex-wrap: wrap; }
.field-row { display: flex; gap: 8px; flex-wrap: wrap; }
.field-row input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 6px; font-size: 16px; }

/* League dropdown menu (replaces the sideways-scrolling link row). Desktop: one dropdown per league.
   Phones: one full-width "menu" bar under the logo that opens the same groups as a list. */
.nav-links .nav-home, .dd-btn { display: flex; align-items: center; gap: 6px; padding: 0 14px; color: #c9d4e3; text-decoration: none; font-weight: 600; font-size: 15px; background: transparent; border: 0; border-top: 3px solid transparent; border-bottom: 3px solid transparent; white-space: nowrap; }
.nav-links .nav-home:hover, .dd-btn:hover, .dd-btn[aria-expanded="true"] { color: #fff; }
.nav-links .nav-home.on, .dd.on .dd-btn { color: #fff; border-bottom-color: var(--gold); }
.dd { position: relative; display: flex; }
.dd-btn svg { transition: transform .15s; }
.dd-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.dd-panel { position: absolute; top: 100%; left: 0; min-width: 270px; background: #fff; color: var(--ink); border-radius: 0 0 var(--r) var(--r); box-shadow: 0 14px 34px rgba(10,26,51,.25); padding: 6px; z-index: 40; border-top: 3px solid var(--gold); }
.dd-panel a, .mmenu a { display: grid; gap: 1px; padding: 10px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; border: 0; height: auto; }
.dd-panel a:hover, .mmenu a:hover { background: #f3f6fa; }
.dd-panel a b, .mmenu a b { font-weight: 700; font-size: 15px; }
.dd-panel a span, .mmenu a span { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.dd-panel a.on, .mmenu a.on { background: #fff8e8; box-shadow: inset 3px 0 0 var(--gold); }
.mbar { display: none; position: relative; background: var(--navy-2); }
.mbar-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 16px; min-height: 46px; background: transparent; border: 0; color: #fff; font-weight: 700; font-size: 15px; text-align: left; }
.mbar-btn small { font-family: var(--f-display); font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-right: 4px; }
.mbar-r { display: flex; align-items: center; gap: 6px; color: #c9d4e3; font-weight: 600; font-size: 14px; flex: none; }
.mbar-btn[aria-expanded="true"] .mbar-r svg { transform: rotate(180deg); }
.mmenu { position: absolute; left: 0; right: 0; top: 100%; background: #fff; box-shadow: 0 18px 40px rgba(10,26,51,.35); max-height: calc(100vh - 120px); overflow: auto; padding: 6px 10px 12px; z-index: 40; }
.mm-group { border-top: 1px solid var(--line); padding-top: 4px; margin-top: 4px; }
.mm-lbl { font-family: var(--f-display); font-weight: 800; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); padding: 8px 12px 2px; }
.mmenu a { min-height: 48px; }
@media (max-width: 820px) { .mbar { display: block; } .mnav { display: none !important; } }
.mmenu > .mm-home:last-child { border-top: 1px solid var(--line); margin-top: 4px; }
body:has(.dock) .toast { bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 560px) {
  .progress { flex-wrap: wrap; gap: 8px 12px; }
  .progress .bar { flex-basis: 100%; order: 3; }
  .submitbar { padding: 10px 12px; gap: 8px; }
  .submitbar > span:first-child { font-size: 12.5px; flex-basis: 100%; }
  .submitbar .btn.gold { flex: 1; }
  .submitbar > span:last-child { display: flex; width: 100%; }
}
