:root {
  --bg: #f5f6f8; --surface: #ffffff; --surface-2: #eef0f4; --border: #e1e4ea;
  --text: #15181e; --muted: #5d6573; --accent: #356ae6; --accent-soft: #e6edfc;
  --up: #1f9d55; --up-soft: #e3f4ea; --warn: #a86a12; --warn-soft: #fbf0dc;
  --money: #1f9d55; --tickets: #8a93a3; --danger: #c93a3a; --danger-soft: #fbe7e7; --series-1: #356ae6; --series-2: #c2620a; --shadow: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115; --surface: #171a21; --surface-2: #1f232c; --border: #2a2f3a;
    --text: #e8eaee; --muted: #98a1b0; --accent: #7aa2ff; --accent-soft: #1d2740;
    --up: #4cc38a; --up-soft: #15291f; --warn: #e0b050; --warn-soft: #2e2512;
    --money: #4cc38a; --tickets: #6b7383; --danger: #f07a7a; --danger-soft: #331a1c; --series-1: #5b86f0; --series-2: #c8741c; --shadow: none;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
main { max-width: 1000px; margin: 0 auto; padding: 28px 16px 48px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 24px; }
.back { font-size: 13px; color: var(--muted); display: inline-block; margin-bottom: 6px; }
h1 { font-size: 26px; margin: 0; letter-spacing: -.01em; }
.sub { color: var(--muted); font-size: 14px; }
.datenav { display: flex; align-items: center; gap: 6px; }
.datenav button, .datenav select {
  font: inherit; font-size: 14px; color: var(--text); background: var(--surface); border: 1px solid var(--border);
  border-radius: 9px; padding: 6px 10px; cursor: pointer;
}
.datenav button:disabled { opacity: .4; cursor: default; }
h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 12px; font-weight: 600; }
section + section { margin-top: 30px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); }

.read { margin: 0; padding: 14px 16px 14px 34px; }
.read li { margin: 4px 0; }

.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.pick { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.pick-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.pick-label { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.odds { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.game-line { color: var(--muted); font-size: 13px; }
.reason { font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.chip { font-size: 12px; background: var(--surface-2); color: var(--muted); padding: 3px 8px; border-radius: 7px; }
.conf { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.conf.Stronger { color: var(--up); background: var(--up-soft); }
.conf.Medium { color: var(--accent); background: var(--accent-soft); }
.conf.Lean { color: var(--warn); background: var(--warn-soft); }
.parlay { border-style: dashed; }
.leg { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; }
.payout { color: var(--muted); font-size: 13px; }

.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.filters button {
  font: inherit; font-size: 13px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  padding: 5px 11px; border-radius: 999px; cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.league + .league { margin-top: 18px; }
.league-name { font-weight: 600; margin: 0 0 8px 2px; }
.games { overflow: hidden; }
.g { display: grid; grid-template-columns: 74px 1fr 300px; gap: 6px 14px; padding: 12px 16px; border-bottom: 1px solid var(--border); align-items: center; }
.g:last-child { border-bottom: 0; }
.g.has-pick { background: linear-gradient(90deg, var(--up-soft), transparent 40%); }
.time { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.teams div { display: flex; align-items: center; gap: 8px; min-width: 0; }
.teams img { width: 20px; height: 20px; object-fit: contain; flex: none; }
.tname { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank { color: var(--muted); font-size: 12px; font-weight: 600; }
.rec { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.pct { margin-left: auto; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 8px; font-size: 13px; font-variant-numeric: tabular-nums; text-align: right; }
.lines .h { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.extra { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--muted); }
.split { display: inline-flex; align-items: center; gap: 6px; }
.bar { width: 70px; height: 6px; border-radius: 3px; background: var(--surface-2); position: relative; overflow: hidden; display: inline-block; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; }
.more { display: block; width: 100%; padding: 10px; font: inherit; font-size: 13.5px; color: var(--accent); background: none; border: 0; border-top: 1px solid var(--border); cursor: pointer; }
.heads { list-style: none; margin: 0; padding: 0; }
.heads li { padding: 10px 16px; border-bottom: 1px solid var(--border); }
.heads li:last-child { border-bottom: 0; }
.heads .lg { font-size: 11.5px; font-weight: 600; color: var(--muted); margin-right: 8px; text-transform: uppercase; }
.empty { padding: 16px; color: var(--muted); }
footer { margin-top: 32px; color: var(--muted); font-size: 12.5px; line-height: 1.6; }
@media (max-width: 720px) {
  .g { grid-template-columns: 1fr; }
  .time { order: -1; }
  .lines { text-align: left; }
  .extra { grid-column: 1; }
}

/* ---- shared controls ---- */
.btn {
  font: inherit; font-size: 14px; font-weight: 600; border-radius: 9px; padding: 8px 14px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.danger { color: var(--danger); }
.btn.small { font-size: 12.5px; padding: 4px 10px; font-weight: 500; }
.btn:disabled { opacity: .5; cursor: default; }
.link-btn { font: inherit; font-size: 13px; background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0; }
.link-btn.danger { color: var(--danger); }
input[type=text], input[type=password], input[type=number], input[type=email], input[type=search], textarea {
  font: inherit; font-size: 15px; width: 100%; padding: 9px 11px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
}
input:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 12px 0 5px; }
.err { color: var(--danger); font-size: 13.5px; min-height: 1.4em; margin-top: 10px; }
.ok-msg { color: var(--up); font-size: 13.5px; }


/* ---- login ---- */
.auth { max-width: 380px; margin: 9vh auto 40px; padding: 0 16px; }
.auth .brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.auth .brand svg { width: 36px; height: 36px; }
.auth .panel { padding: 22px 22px 16px; }
.auth h1 { font-size: 22px; }
.auth .btn.primary { width: 100%; margin-top: 18px; padding: 10px; }
.auth .switch { text-align: center; margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.auth .fine { text-align: center; margin-top: 18px; font-size: 12px; color: var(--muted); }

/* ---- comments ---- */
.comments { padding: 4px 0; }
.comment { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.comment:last-child { border-bottom: 0; }
.comment-head { display: flex; gap: 8px; align-items: baseline; font-size: 13px; color: var(--muted); }
.comment-head .name { font-weight: 700; color: var(--text); }
.comment-head .del { margin-left: auto; }
.comment-body { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 3px; }
.badge { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); background: var(--accent-soft); padding: 1px 6px; border-radius: 5px; }
.compose { display: flex; gap: 10px; align-items: flex-end; padding: 12px 16px; border-top: 1px solid var(--border); }
.compose textarea { resize: vertical; min-height: 42px; max-height: 200px; }

dialog { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); padding: 20px 22px; width: min(380px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(0,0,0,.35); }
dialog h3 { margin: 0 0 4px; }
.row-end { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

/* ---- admin ---- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; }
th, td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td.actions { text-align: right; white-space: nowrap; }
td.actions .link-btn + .link-btn { margin-left: 12px; }
.table-wrap { overflow-x: auto; }
.muted { color: var(--muted); }
.pill { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.pill.on { color: var(--up); background: var(--up-soft); }
.pill.off { color: var(--danger); background: var(--danger-soft); }
.form-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.form-row > div { flex: 1 1 160px; }
.form-row label { margin-top: 0; }
.newcode { padding: 14px 16px; border-bottom: 1px solid var(--border); background: var(--up-soft); }
.newcode code { font-size: 13px; overflow-wrap: anywhere; }
pre.log { margin: 0; padding: 14px 16px; font-size: 12px; line-height: 1.5; overflow-x: auto; white-space: pre-wrap; color: var(--muted); }
.gen { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); }

/* ---- parlays ---- */
.par-sub { color: var(--muted); font-size: 13px; margin: -4px 0 12px; }
.pick.parlay .leg { margin-top: 4px; }
.leg-sub { margin-top: -6px; }
.leg-note { font-size: 12px; color: var(--muted); margin-top: -6px; }
.chk { display: inline-block; width: 1.1em; font-weight: 700; }
.chk.ok { color: var(--up); }
.chk.locked { color: var(--accent); }
.chk.bad { color: var(--danger); }
.pick.pulled { opacity: .7; }
.changes { font-size: 12.5px; color: var(--muted); border-top: 1px dashed var(--border); padding-top: 8px; display: grid; gap: 4px; }
.alert { border-radius: 10px; padding: 10px 12px; font-size: 13.5px; line-height: 1.45; }
#banner .alert { margin-bottom: 20px; }
.alert.old { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.alert.stale { background: var(--warn-soft); color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); font-weight: 600; }
.alert.live { background: var(--danger-soft); color: var(--danger); font-weight: 600; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); margin-right: 6px; vertical-align: 1px; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .dot { animation: none; } }
.conf.live-badge { color: var(--danger); background: var(--danger-soft); }
.pick.closed .leg, .pick.closed .odds { opacity: .55; text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }

/* ---- results, tails, reactions ---- */
.res { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.res.win { color: var(--up); background: var(--up-soft); }
.res.loss { color: var(--danger); background: var(--danger-soft); }
.res.push, .res.void, .res.pulled, .res.pending { color: var(--muted); background: var(--surface-2); }
.chk.win { color: var(--up); } .chk.loss { color: var(--danger); } .chk.push, .chk.void { color: var(--muted); }
.alert.res-win { background: var(--up-soft); color: var(--up); font-weight: 600; }
.alert.res-loss { background: var(--danger-soft); color: var(--danger); font-weight: 600; }
.alert.res-push { background: var(--surface-2); color: var(--muted); }
.social { border-top: 1px solid var(--border); padding-top: 10px; display: grid; gap: 8px; margin-top: auto; }
.tail-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tailed { color: var(--up); font-weight: 700; font-size: 13.5px; }
.stake { display: inline-flex; align-items: center; gap: 4px; margin: 0; font-weight: 500; }
.stake input { width: 150px; padding: 4px 8px; font-size: 13.5px; }
.more-react { color: var(--muted); min-width: 34px; }
.tailed-by { font-size: 12.5px; color: var(--muted); }
.react-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.react { font: inherit; font-size: 14px; line-height: 1; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 4px 8px; cursor: pointer; color: var(--text); }
.react span { font-size: 12px; margin-left: 4px; color: var(--muted); font-weight: 600; }
.react.on { border-color: var(--accent); background: var(--accent-soft); }
.thread-btn { margin-left: auto; }
.thread { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.thread .compose { padding: 8px 10px; }
.thread .comment { padding: 9px 12px; }
.empty.small { padding: 10px 12px; font-size: 13px; }
.tail-badge { color: var(--up); background: var(--up-soft); }
.comment-head a.name { color: var(--text); }

/* ---- archive + profile ---- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { padding: 14px 16px; }
.stat-v { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.stat-l { font-size: 12.5px; color: var(--muted); }
.up { color: var(--up); } .down { color: var(--danger); }
.day { display: grid; gap: 6px; padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--text); }
.day:last-child { border-bottom: 0; }
.day:hover { background: var(--surface-2); text-decoration: none; }
.day-top { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.day-pars { display: grid; gap: 4px; font-size: 13.5px; }
.day-par { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.day-picks { display: flex; gap: 4px 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }

/* ---- history ---- */
.stat-u { font-size: 13.5px; font-weight: 600; margin-top: 2px; }
.chart-panel { position: relative; padding: 12px 12px 4px; }
.chart svg { display: block; width: 100%; height: auto; touch-action: pan-y; }
.chart .grid { stroke: var(--border); stroke-width: 1; }
.chart .zero { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .axis { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .xhair { stroke: var(--muted); stroke-width: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); margin: 0 4px 6px; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-item i, .tip-r i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend-item b { color: var(--text); font-variant-numeric: tabular-nums; }
.tip { position: absolute; pointer-events: none; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; padding: 8px 10px; font-size: 12.5px; box-shadow: 0 4px 14px rgba(0,0,0,.12); min-width: 150px; }
.tip-d { font-weight: 700; margin-bottom: 4px; }
.tip-r { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.tip-r b { margin-left: auto; color: var(--text); font-variant-numeric: tabular-nums; }
.chart-table { margin-top: 8px; font-size: 13px; }
.chart-table summary { cursor: pointer; color: var(--muted); padding: 4px 0; }
.breakdowns { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); }
.breakdowns th { white-space: nowrap; }
.breakdowns table { font-size: 13.5px; }
.filters-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; align-items: center; }
.filters-row input { flex: 1 1 220px; width: auto; }
.filters-row select { font: inherit; font-size: 14px; padding: 8px 10px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }

/* ---- feedback ---- */
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg label { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--text);
  border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; cursor: pointer; }
.seg input { margin: 0; accent-color: var(--accent); }
.seg label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
dialog textarea { resize: vertical; }
.fb-item { padding: 12px 16px; border-bottom: 1px solid var(--border); }
.fb-item:last-child { border-bottom: 0; }
.fb-item.done { opacity: .6; }
.fb-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; font-size: 13px; color: var(--muted); }
.fb-head .name { font-weight: 700; color: var(--text); }
.fb-head .acts { margin-left: auto; display: flex; gap: 12px; }
.fb-body { white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 4px; }

/* ---- about ---- */
.about-hero { display: flex; gap: 20px; align-items: center; padding: 20px; }
.about-hero p { margin: 8px 0 0; }
.about-avatar { flex: none; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  font-size: 38px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--up), var(--accent)); }
.about-name { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.about-role { color: var(--muted); font-size: 13.5px; }
.about-card { padding: 16px 18px; }
.about-card p { margin: 0 0 10px; } .about-card p:last-child { margin-bottom: 0; }
@media (max-width: 520px) { .about-hero { flex-direction: column; align-items: flex-start; } }


/* ---- account ---- */
.acct-who { display: flex; align-items: center; gap: 16px; padding: 16px 18px; flex-wrap: wrap; }
.acct-who .btn { margin-left: auto; }
.small-avatar { width: 52px; height: 52px; font-size: 22px; }
.acct-form { padding: 18px 20px 20px; max-width: 520px; }
.field + .field { margin-top: 4px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 64px; }
.reveal { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-size: 13px; }
input[aria-invalid="true"] { border-color: var(--danger); }
.rules { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 4px; font-size: 13.5px; color: var(--muted); }
.rules li::before { content: "○"; display: inline-block; width: 1.4em; }
.rules li.ok { color: var(--up); } .rules li.ok::before { content: "✓"; font-weight: 700; }
.rules li.bad { color: var(--danger); } .rules li.bad::before { content: "✕"; font-weight: 700; }
.acct-actions { margin-top: 14px; }
.acct-done { display: flex; align-items: center; gap: 14px; padding: 18px 20px; max-width: 520px; flex-wrap: wrap; }
.acct-done > div:nth-child(2) { flex: 1 1 240px; min-width: 0; }
.acct-done .btn { margin-left: auto; }
.done-check { flex: none; }
.done-check { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--up-soft); color: var(--up); font-weight: 800; }

/* history: CLV + picker comparison */
.section-note { margin: -4px 0 12px; max-width: 72ch; }
.picker { font-size: 13.5px; }
#picker-verdict { margin: 10px 0 0; }
.picker th[scope=row] { text-align: left; vertical-align: top; }
.picker .same { text-transform: none; letter-spacing: 0; font-weight: 400; margin-top: 4px; }
.picker td { vertical-align: top; }

/* board: Home vs Bets views */
body[data-view="home"] [data-only="bets"], body[data-view="bets"] [data-only="home"] { display: none !important; }
.bets-teaser { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 18px; }
.teaser-what { font-weight: 600; margin-bottom: 2px; }
.odds .est { font-size: 12px; font-weight: 500; color: var(--muted); }

/* ---- side rail nav: icons, opens on hover (desktop) or from the menu button (phone) ---- */
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic.logo rect { fill: var(--up); stroke: none; }
.ic.logo path { stroke: #fff; stroke-width: 2.2; }
.ic.logo { width: 28px; height: 28px; }
body.has-rail { padding-left: 64px; }
.rail {
  position: fixed; inset: 0 auto 0 0; z-index: 50; width: 64px; overflow: hidden auto; overflow-x: hidden;
  display: flex; flex-direction: column; gap: 6px; padding: 14px 10px;
  background: var(--surface); border-right: 1px solid var(--border);
  transition: width .16s ease, box-shadow .16s ease;
}
.rail:hover, .rail:focus-within { width: 232px; box-shadow: 0 10px 30px rgba(0,0,0,.14); }
.rail a, .rail button {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 9px 12px; border-radius: 10px;
  font: inherit; font-size: 14.5px; color: var(--muted); background: none; border: 0; cursor: pointer; white-space: nowrap; text-align: left;
}
.rail a[hidden] { display: none; }
.rail a span, .rail button span { opacity: 0; transition: opacity .12s ease; overflow: hidden; text-overflow: ellipsis; }
.rail:hover span, .rail:focus-within span, body.nav-open .rail span { opacity: 1; }
.rail a:hover, .rail button:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.rail a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.rail .rail-brand { padding: 4px 8px 12px; color: var(--text); font-weight: 700; font-size: 15.5px; }
.rail .rail-brand:hover { background: none; }
.rail-group { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.rail-group hr { border: 0; border-top: 1px solid var(--border); margin: 6px 4px; }
.rail-bottom { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--border); }
.rail .who { color: inherit; }
.mobilebar, .scrim { display: none; }
@media (prefers-reduced-motion: reduce) { .rail, .rail span { transition: none; } }

/* ---- feed ---- */
.avatar { flex: none; width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center;
  font-weight: 700; font-size: 15px; color: var(--accent); background: var(--accent-soft); }
.composer-open { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; font: inherit; color: var(--muted);
  background: none; border: 0; cursor: pointer; text-align: left; border-radius: 14px; }
.composer-open:hover { background: var(--surface-2); }
.composer-body { padding: 14px 16px 16px; }
.composer-row label:first-child { margin-top: 0; }
.composer select { font: inherit; font-size: 15px; width: 100%; padding: 9px 11px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.composer-row.two { display: grid; grid-template-columns: 1fr 200px; gap: 0 14px; }
@media (max-width: 600px) { .composer-row.two { grid-template-columns: 1fr; } }
.opt-group { margin-top: 12px; }
.opt-name { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.opt-row { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { display: inline-flex; gap: 10px; align-items: baseline; font: inherit; font-size: 13.5px; padding: 7px 12px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.opt b { font-variant-numeric: tabular-nums; }
.opt:hover { border-color: var(--accent); }
.opt[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.slip { margin-top: 16px; border: 1px dashed var(--border); border-radius: 12px; padding: 10px 12px; display: grid; gap: 8px; }
.slip-title { font-weight: 700; }
.slip-leg { display: grid; grid-template-columns: 1fr 86px auto; gap: 10px; align-items: center; }
.slip-label { font-weight: 600; }
.slip-leg input { padding: 5px 8px; font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; }
.slip-sum { font-size: 12.5px; color: var(--muted); }
.slip-empty { padding: 2px 0; }
.leaders { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 10px; }
.leader { display: flex; align-items: center; gap: 10px; padding: 10px 14px; color: var(--text); }
.leader:hover { text-decoration: none; border-color: var(--accent); }
.leader .avatar { width: 30px; height: 30px; font-size: 13px; }
.leader-n { color: var(--muted); font-weight: 700; width: 1.2em; }
.leader-name { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.leader-rec { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.leader b { font-variant-numeric: tabular-nums; }
.feed-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.feed-head h2, .feed-head .filters { margin: 0; }
.feed { display: grid; gap: 14px; }
.feed-card { padding: 16px; display: grid; gap: 10px; }
.feed-top { display: flex; gap: 12px; align-items: flex-start; }
.feed-who { flex: 1; min-width: 0; }
.feed-who .name { font-weight: 700; color: var(--text); }
.feed-odds { text-align: right; display: grid; justify-items: end; gap: 4px; }
.feed-note { white-space: pre-wrap; overflow-wrap: anywhere; }
.feed-legs { display: grid; gap: 8px; }
.feed-legs .leg-sub { margin-top: -6px; }
.more-btn { display: block; margin: 16px auto 0; }
.score { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text); }

/* ---- phone app shell: slim top bar, bottom tab bar, drawer for everything else ---- */
.tabbar, .fab, .sheet-head, .sheet-scrim { display: none; }
.g-mini { display: none; }
#toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px;
  width: min(440px, calc(100vw - 24px)); pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 11px 12px 11px 16px; border-radius: 14px;
  background: var(--text); color: var(--bg); font-size: 14px; box-shadow: 0 8px 28px rgba(0,0,0,.25); animation: toast-in .22s ease; }
.toast span { flex: 1; }
.toast-act { font: inherit; font-weight: 700; border: 0; border-radius: 9px; padding: 7px 12px; background: var(--accent); color: #fff; cursor: pointer; }
.toast-x { font: inherit; border: 0; background: none; color: inherit; opacity: .6; cursor: pointer; padding: 6px; }
.toast.out { opacity: 0; transform: translateY(8px); transition: .2s ease; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }
.new-pill { display: block; margin: 0 auto 12px; position: sticky; top: 12px; z-index: 20; font: inherit; font-size: 13.5px; font-weight: 600;
  border: 0; border-radius: 999px; padding: 8px 16px; background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.2); cursor: pointer; }
.chip-scroll { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 10px; padding-bottom: 2px; }
.chip-scroll::-webkit-scrollbar { display: none; }
.chip-scroll button { flex: none; font: inherit; font-size: 13.5px; border: 1px solid var(--border); background: var(--surface); color: var(--text);
  padding: 7px 13px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.chip-scroll button span { opacity: .6; }
.chip-scroll button[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.game-list { display: grid; gap: 6px; max-height: 300px; overflow-y: auto; }
.game-pick { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 8px 12px; font: inherit; font-size: 14.5px; text-align: left;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); border-radius: 11px; cursor: pointer; }
.game-pick:hover { border-color: var(--accent); }
.game-pick.sel { border-color: var(--accent); background: var(--accent-soft); }
.gp-time { color: var(--muted); font-size: 12.5px; width: 62px; flex: none; font-variant-numeric: tabular-nums; }
.gp-teams { flex: 1; min-width: 0; display: flex; align-items: center; gap: 5px; flex-wrap: wrap; font-weight: 600; }
.gp-teams img { width: 18px; height: 18px; object-fit: contain; }
.gp-tag { font-size: 11px; font-weight: 700; color: var(--up); background: var(--up-soft); padding: 2px 7px; border-radius: 6px; }
.gp-change { font-size: 13px; color: var(--accent); font-weight: 600; }
.composer-actions { align-items: center; }
.composer-actions #c-count { margin-right: auto; font-variant-numeric: tabular-nums; }
body[data-swipe] main { animation: swipe-in .22s ease; }
body[data-swipe="left"] main { --from: 24px; } body[data-swipe="right"] main { --from: -24px; }
@keyframes swipe-in { from { opacity: .4; transform: translateX(var(--from)); } }
@media (prefers-reduced-motion: reduce) { .toast, body[data-swipe] main { animation: none; } }

@media (max-width: 860px) {
  body.has-rail { padding-left: 0; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .mobilebar {
    display: flex; align-items: center; gap: 8px; position: sticky; top: 0; z-index: 40;
    padding: env(safe-area-inset-top) 16px 0; height: calc(48px + env(safe-area-inset-top));
    background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px);
    border-bottom: 1px solid var(--border);
  }
  .mobilebar .rail-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); text-decoration: none; }
  .mobilebar .ic.logo { width: 24px; height: 24px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 48;
    padding: 4px 4px env(safe-area-inset-bottom); background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-top: 1px solid var(--border);
  }
  .tabbar a, .tabbar button {
    display: grid; justify-items: center; gap: 2px; padding: 7px 0 6px; min-height: 54px; font: inherit; font-size: 10.5px; font-weight: 600;
    color: var(--muted); background: none; border: 0; cursor: pointer; text-decoration: none; -webkit-tap-highlight-color: transparent;
  }
  .tabbar .ic { width: 24px; height: 24px; }
  .tabbar a[aria-current="page"] { color: var(--accent); }
  .tabbar a:active, .tabbar button:active { transform: scale(.94); }
  .rail { width: 280px; transform: translateX(-100%); transition: transform .22s ease; padding-top: calc(14px + env(safe-area-inset-top)); padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .rail:hover, .rail:focus-within { width: 280px; box-shadow: none; }
  .rail span { opacity: 1; }
  .rail a, .rail button { padding: 12px; }
  body.nav-open .rail { transform: none; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
  body.nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 45; background: rgba(0,0,0,.35); }
  main { padding: 18px 16px 32px; }
  body:has(.fab) main { padding-bottom: 96px; }
  h1 { font-size: 28px; }
  #toasts { bottom: calc(76px + env(safe-area-inset-bottom)); }

  /* bigger tap targets */
  .react { padding: 7px 11px; font-size: 16px; min-height: 38px; }
  .btn.small { padding: 8px 12px; font-size: 13.5px; }
  .link-btn { padding: 8px 2px; }
  .datenav button, .datenav select { padding: 9px 12px; }

  /* one row of filters that scrolls sideways and stays put */
  .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; position: sticky; top: calc(48px + env(safe-area-inset-top)); z-index: 30;
    margin: 0 -16px 12px; padding: 8px 16px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; padding: 7px 13px; }
  .feed-head .filters { position: static; margin: 0; padding: 0; background: none; backdrop-filter: none; }

  /* feed: floating new-post button + bottom sheet composer */
  .fab { display: grid; place-items: center; position: fixed; right: 18px; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 47;
    width: 56px; height: 56px; border-radius: 18px; border: 0; background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.28); cursor: pointer; }
  .fab .ic { width: 26px; height: 26px; stroke-width: 2.2; }
  body.sheet-open .fab, body.sheet-open .tabbar { display: none; }
  body.sheet-open { overflow: hidden; }
  body.sheet-open .sheet-scrim { display: block; position: fixed; inset: 0; z-index: 58; background: rgba(0,0,0,.4); }
  .composer.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; max-height: 90dvh; overflow-y: auto; overscroll-behavior: contain;
    border-radius: 20px 20px 0 0; border-bottom: 0; box-shadow: 0 -10px 40px rgba(0,0,0,.3); animation: sheet-up .25s ease; }
  .composer.sheet .composer-body { padding: 0 16px; }
  .composer.sheet .sheet-head { display: grid; justify-items: center; gap: 8px; padding: 8px 0 12px; position: sticky; top: 0; background: var(--surface); z-index: 2; }
  .sheet-grab { width: 38px; height: 5px; border-radius: 3px; background: var(--border); }
  .composer.sheet .composer-actions { position: sticky; bottom: 0; background: var(--surface); margin: 12px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border); }
  .composer.sheet .game-list { max-height: none; }
  .opt { padding: 10px 13px; font-size: 14px; }
  @keyframes sheet-up { from { transform: translateY(100%); } }
}
@media (max-width: 720px) {
  /* slate: short rows, tap to open lines + splits */
  .g { grid-template-columns: 1fr auto; padding: 10px 14px; gap: 4px 12px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .g .time { grid-column: 1 / -1; grid-row: 1; font-size: 12px; }
  .g .teams { grid-column: 1; grid-row: 2; }
  .g-mini { display: grid; grid-column: 2; grid-row: 2; align-content: center; justify-items: end; gap: 6px; font-size: 13.5px; font-variant-numeric: tabular-nums; font-weight: 600; }
  .g-mini .muted { font-size: 11.5px; font-weight: 500; }
  .g .pct, .g .rec { display: none; }
  .g:not(.open) .lines, .g:not(.open) .extra { display: none; }
  .g.open .lines, .g.open .extra { grid-column: 1 / -1; }
  .g.open { background: var(--surface-2); }
  .g.open .pct, .g.open .rec { display: inline; }
}

/* ---- glossary terms + popover ---- */
.term { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: help; text-align: inherit;
  text-decoration: underline dotted color-mix(in srgb, var(--accent) 70%, transparent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.term:hover, .term[aria-expanded="true"] { color: var(--accent); }
.term-badge { cursor: help; }
#term-pop { position: fixed; z-index: 95; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 12px;
  padding: 12px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.22); font-size: 13.5px; line-height: 1.5; }
.tp-term { font-weight: 700; margin-bottom: 4px; }
.tp-def { color: var(--muted); }
.tp-more { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; }
.gl-search { margin-bottom: 18px; }
.gl-search input { width: 100%; font: inherit; font-size: 15px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.gl-group { overflow: hidden; }
.gl-item { padding: 14px 16px; border-bottom: 1px solid var(--border); scroll-margin-top: 70px; }
.gl-item:last-child { border-bottom: 0; }
.gl-term { font-weight: 700; margin-bottom: 3px; }
.gl-def { color: var(--muted); font-size: 14.5px; max-width: 70ch; }
.gl-item.flash { animation: gl-flash 2s ease; }
@keyframes gl-flash { 0%, 40% { background: var(--accent-soft); } }
@media (max-width: 860px) { .term { padding: 2px 0; } }

/* home: feed teaser */
.feed-teaser { padding: 6px 0 0; }
.ft-head { padding: 10px 18px 8px; }
.ft-row { display: flex; align-items: center; gap: 12px; padding: 10px 18px; color: var(--text); border-top: 1px solid var(--border); }
.ft-row:hover { background: var(--surface-2); text-decoration: none; }
.ft-row .avatar { width: 32px; height: 32px; font-size: 14px; }
.ft-main { flex: 1; min-width: 0; display: grid; }
.ft-who { font-size: 13px; font-weight: 600; }
.ft-what { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ft-odds { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ft-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; padding: 12px 18px 16px; border-top: 1px solid var(--border); }

/* email + recovery */
.field-note { margin-top: 6px; line-height: 1.45; }
.forgot-row { text-align: center; margin-top: 12px; }
.secure-note { margin: 14px 0 0; line-height: 1.5; }
.email-now { margin-bottom: 4px; display: grid; gap: 4px; }
.email-now .pill { margin-left: 6px; }

/* ---- "Why this bet?" panel ---- */
.pick[data-card] { cursor: pointer; transition: border-color .12s ease; }
.pick[data-card]:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }
.why-btn { align-self: flex-start; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--accent); background: var(--accent-soft);
  border: 0; border-radius: 8px; padding: 6px 11px; cursor: pointer; }
.why-btn:hover { filter: brightness(1.05); }
dialog.bi { padding: 0; width: min(520px, 100vw); max-width: none; height: 100dvh; max-height: none; margin: 0 0 0 auto;
  border: 0; border-left: 1px solid var(--border); border-radius: 0; display: none; flex-direction: column; }
dialog.bi[open] { display: flex; animation: bi-in .22s ease; }
dialog.bi::backdrop { background: rgba(0,0,0,.4); }
@keyframes bi-in { from { transform: translateX(32px); } }
.bi-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--border); min-height: 52px; }
.bi-head .sheet-grab { display: none; }
.bi-x { font: inherit; font-size: 16px; border: 0; background: var(--surface-2); color: var(--text); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; margin-left: auto; }
.bi-scroll { overflow-y: auto; padding: 18px 20px 28px; overscroll-behavior: contain; flex: 1; }
.bi-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.bi-top h2 { font-size: 21px; text-transform: none; letter-spacing: -.01em; color: var(--text); margin: 0 0 2px; }
.bi-top .conf { display: inline-block; margin-top: 6px; }
.bi-sec { padding: 16px 0; border-top: 1px solid var(--border); }
.bi-sec h3 { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; }
.bi-sec h4 { font-size: 13.5px; margin: 14px 0 8px; }
.bi-reason { margin: 0 0 8px; font-size: 15.5px; line-height: 1.55; }
.bi-sig { display: flex; gap: 12px; padding: 8px 0; }
.bi-ic { flex: none; width: 32px; height: 32px; border-radius: 9px; background: var(--surface-2); display: grid; place-items: center; font-size: 16px; }
.bi-sig-t { font-weight: 600; margin-bottom: 2px; }
.bi-rec { font-size: 12.5px; margin-top: 4px; color: var(--muted); }
.bi-vs { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin-bottom: 8px; }
.bi-vs > div { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; }
.bi-vs b { font-size: 19px; font-variant-numeric: tabular-nums; }
.bi-vs span { font-size: 12px; color: var(--muted); }
.bi-num { margin-bottom: 10px; }
.bi-teams { display: grid; gap: 8px; margin-bottom: 6px; }
.bi-team { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--border); }
.bi-team.mine { border-color: var(--accent); background: var(--accent-soft); }
.bi-team img { width: 28px; height: 28px; object-fit: contain; }
.bi-team > div:nth-child(2) { flex: 1; min-width: 0; }
.bi-tname { font-weight: 700; }
.bi-model { font-weight: 700; font-variant-numeric: tabular-nums; }
.f { display: inline-block; width: 15px; text-align: center; font-weight: 700; font-size: 11px; border-radius: 3px; margin-left: 1px; }
.f.w { color: var(--up); background: var(--up-soft); } .f.l { color: var(--danger); background: var(--danger-soft); }
.bi-lines { margin: 12px 0 4px; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.bi-lines th, .bi-lines td { padding: 7px 8px; }
.bi-splits { display: grid; gap: 8px; }
.bi-split { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: center; font-size: 13px; padding: 4px 6px; border-radius: 8px; }
.bi-split.mine { background: var(--accent-soft); }
.bi-split-l { font-weight: 600; }
.bi-tag { font-size: 10.5px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; display: block; }
.bi-bars { display: grid; gap: 3px; }
.bi-bars > div { display: grid; grid-template-columns: 44px 1fr 34px; gap: 6px; align-items: center; }
.bi-bars span { font-size: 11px; }
.bi-bars i { display: block; height: 7px; border-radius: 4px; background: var(--tickets); min-width: 2px; }
.bi-bars i.money { background: var(--money); }
.bi-bars b { font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.bi-inj { display: grid; gap: 4px; font-size: 13.5px; }
.bi-score { font-weight: 700; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.bi-news { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.bi-src ul { margin: 0 0 8px; padding-left: 18px; font-size: 13.5px; color: var(--muted); }
.bi-src p { margin: 0 0 12px; }
.bi-leg { display: grid; gap: 3px; width: 100%; text-align: left; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border);
  border-radius: 11px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; }
.bi-leg:hover { border-color: var(--accent); }
.bi-leg-top { display: flex; justify-content: space-between; gap: 10px; }
.bi-leg-sig { color: var(--muted); }
.bi-more { font-size: 13px; font-weight: 600; color: var(--accent); }
.bi-check { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.bi-check.ok { color: var(--up); } .bi-check.bad { color: var(--danger); }
@media (max-width: 860px) {
  dialog.bi { width: 100vw; height: auto; max-height: 92dvh; margin: auto 0 0; border-left: 0; border-radius: 20px 20px 0 0; }
  dialog.bi[open] { animation: sheet-up .25s ease; }
  .bi-head { min-height: 44px; position: relative; justify-content: flex-start; }
  .bi-head .sheet-grab { display: block; position: absolute; left: 50%; top: 8px; transform: translateX(-50%); }
  .bi-scroll { padding: 14px 16px calc(24px + env(safe-area-inset-bottom)); }
  .bi-split { grid-template-columns: 92px 1fr; }
}
@media (prefers-reduced-motion: reduce) { dialog.bi[open] { animation: none; } }

/* feedback tracking */
.check-row { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--text); margin-top: 12px; font-size: 14px; }
.check-row input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
#fb-track-note { margin: 4px 0 0 26px; }
.pill.warn { color: var(--warn); background: var(--warn-soft); }
.fb-reply { margin-top: 8px; padding: 8px 12px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 8px 8px 0;
  white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.fb-reply b { display: block; font-size: 12px; color: var(--accent); margin-bottom: 2px; }
.fb-item.unseen { background: color-mix(in srgb, var(--accent-soft) 50%, transparent); }
.fb-head select { font: inherit; font-size: 12.5px; padding: 3px 6px; border-radius: 7px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }

/* afternoon update */
#pm-sec .pm-read { margin-bottom: 14px; border-color: color-mix(in srgb, var(--warn) 40%, var(--border)); }
#pm-sec h2::before { content: "☀️ "; }
.read-pm-h { padding: 10px 16px 0; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--warn); border-top: 1px solid var(--border); }

.bi-cmp th.mine { color: var(--accent); }
.bi-cmp td, .bi-cmp th { vertical-align: top; }
.bi-cmp tbody th { white-space: nowrap; }
