/* Page-specific layouts: auth, landing, home dashboard, account */

/* ---- auth ---- */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(1200px 500px at 50% -10%, rgba(224,185,58,.25), transparent), #050505; }
.auth-page .auth-foot { color: #9a9a9a; }
.auth-wrap { width: 100%; max-width: 420px; padding: 24px 16px; }
.auth-brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 22px; color: var(--text); justify-content: center; margin-bottom: 16px; }
.auth-brand .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.auth-brand span { color: var(--accent); }
.auth-brand:hover { text-decoration: none; }
.auth-card .bd { padding: 24px; }
.auth-card h1 { font-size: 22px; margin-bottom: 4px; }
.auth-form { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.auth-form input { width: 100%; padding: 10px 12px; font-size: 15px; }
.auth-links { display: flex; justify-content: space-between; font-size: 13px; flex-wrap: wrap; gap: 8px; }
.auth-foot { text-align: center; margin-top: 14px; }
#authMsg { margin-top: 12px; }
#authMsg code { font-size: 11px; word-break: break-all; }

/* ---- scoreboard strip ---- */
.strip-wrap { background: var(--panel); border-bottom: 1px solid var(--line); }
.strip-wrap .wrap { padding-top: 10px; padding-bottom: 12px; }
.strip-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; scrollbar-width: thin; }
.scard { flex: 0 0 210px; scroll-snap-align: start; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px;
  padding: 8px 10px; cursor: pointer; transition: border-color .1s, transform .1s; }
.scard:hover, .scard:focus-visible { border-color: var(--accent); transform: translateY(-1px); outline: none; }
.scard .stop { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.scard .stop .live { color: var(--danger); }
.srow { display: grid; grid-template-columns: 26px 40px 1fr auto; align-items: center; gap: 6px; padding: 2px 0; }
.srow b { font-size: 14px; } .srow .score { font-weight: 800; font-size: 15px; }
.sfoot { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 6px; border-top: 1px solid var(--line); padding-top: 5px; }

/* ---- landing ---- */
.landing { padding-top: 24px; }
.hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; padding: 32px; align-items: center; }
.hero h1 { font-size: 36px; letter-spacing: -.01em; }
.hero p { font-size: 16px; color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.features li { display: flex; flex-direction: column; padding: 12px 14px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); }
.features span { color: var(--muted); font-size: 13px; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding: 20px; } .hero h1 { font-size: 28px; } }

/* ---- home dashboard ---- */
.promo { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; border-radius: 14px; margin: 16px 0;
  color: #fff; background: radial-gradient(900px 300px at 85% 0%, rgba(224,185,58,.35), transparent), linear-gradient(110deg, #0a0a0a, #1a1608 60%, #2b2309); border: 1px solid #3a3014; box-shadow: var(--shadow); flex-wrap: wrap; }
.promo h2 { font-size: 26px; color: #fff; }
.promo p { margin: 4px 0 0; opacity: .9; }
.promo .btn.big { background: linear-gradient(180deg, #f0cc55, #c9a227); color: #141006; border-color: #c9a227; font-size: 17px; padding: 14px 26px; }
.promo .quick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.promo .quick a { color: #fff; background: rgba(255,255,255,.16); padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.countdown { font-variant-numeric: tabular-nums; font-weight: 800; }
.dash { display: grid; grid-template-columns: 300px 1fr 330px; gap: 16px; align-items: start; }
@media (max-width: 1150px) { .dash { grid-template-columns: 1fr 1fr; } .dash .col-right { grid-column: 1 / -1; } }
@media (max-width: 760px) { .dash { grid-template-columns: 1fr; } }
.dash .card + .card { margin-top: 16px; }
.plist { list-style: none; margin: 0; padding: 0; }
.plist li { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); }
.plist li:last-child { border-bottom: 0; }
.plist .nm { font-weight: 600; } .plist .sub { font-size: 11px; color: var(--muted); }
.up { color: var(--good); font-weight: 700; } .down { color: var(--danger); font-weight: 700; }
.spark { width: 70px; height: 22px; }
.spark polyline { fill: none; stroke: var(--good); stroke-width: 2; }
.tabs-mini { display: flex; gap: 2px; background: var(--chip); padding: 2px; border-radius: 8px; }
.tabs-mini button { border: 0; background: none; padding: 3px 9px; border-radius: 6px; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--muted); }
.tabs-mini button.on { background: var(--panel); color: var(--text); }
.contest-group { padding: 10px 0; border-bottom: 1px solid var(--line); }
.contest-group:last-child { border-bottom: 0; }
.contest-group .cg-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.contest-group .cg-head b { font-size: 15px; }
.ctable td { font-size: 12px; padding: 4px 6px; } .ctable td:first-child { white-space: normal; }
.inj { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.inj:last-child { border-bottom: 0; }
.inj .why { grid-column: 1 / -1; font-size: 12px; color: var(--muted); white-space: normal; }
.code { font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 4px; background: #fbe3cf; color: #8a4b0f; }
.code.O, .code.IR, .code.D, .code.SUSP, .code.PUP { background: #f6d2cf; color: #9b231a; }
@media (prefers-color-scheme: dark) { .code { background: #4a3214; color: #ffc98f; } .code.O, .code.IR, .code.D, .code.SUSP, .code.PUP { background: #4d1f1c; color: #ff9d94; } }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filters select { padding: 4px 8px; font-size: 12px; }

/* game popover */
.pop { position: absolute; z-index: 60; width: min(560px, calc(100vw - 16px)); }
.pop .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .pop .grid2 { grid-template-columns: 1fr; } }
.pop h4 { margin: 8px 0 4px; font-size: 12px; color: var(--muted); text-transform: uppercase; }

/* ---- account ---- */
.acct { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: start; }
@media (max-width: 800px) { .acct { grid-template-columns: 1fr; } }
.acct-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 70px; }
.acct-nav a { padding: 8px 12px; border-radius: 8px; color: var(--text); font-weight: 600; }
.acct-nav a.on, .acct-nav a:hover { background: var(--chip); text-decoration: none; }
.plist-profiles { display: grid; gap: 8px; }
.prof-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--panel-2); flex-wrap: wrap; }
.prof-row.sel { border-color: var(--accent); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }

/* Home: injury notes link out to ESPN; hot players open a stats popover */
.inj a { color: inherit; text-decoration: none; }
.inj a:hover, .inj a:focus-visible { color: var(--accent, #f0cc55); }
.inj .ext { font-size: 10px; opacity: .6; margin-left: 2px; }
#hotList li[data-pid] { cursor: pointer; border-radius: 6px; }
#hotList li[data-pid]:hover, #hotList li[data-pid]:focus-visible { background: rgba(240, 204, 85, .08); outline: none; }
.pop.wide { width: min(720px, calc(100vw - 16px)); }
@media (max-width: 560px) { .pop.wide { left: 8px !important; width: calc(100vw - 16px); } }
.psearch { position: relative; margin-bottom: 8px; }
.psearch input { width: 100%; box-sizing: border-box; }
.psearch .results { position: absolute; z-index: 55; left: 0; right: 0; top: calc(100% + 4px); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; box-shadow: 0 8px 24px rgba(0,0,0,.35); max-height: 340px; overflow-y: auto; }
.psearch .results li[data-sid] { cursor: pointer; }
.psearch .results li[data-sid]:hover, .psearch .results li[data-sid]:focus { background: rgba(240, 204, 85, .08); outline: none; }

/* Home: Vegas & weather board */
.vb-row { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 6px; }
.vb-row:last-child { border-bottom: 0; }
.vb-row:hover, .vb-row:focus-visible { background: rgba(240, 204, 85, .06); outline: none; }
.vb-meta { font-size: 12px; line-height: 1.5; }
.vb-flag { color: var(--warn-ink); background: var(--warn); border-radius: 4px; padding: 0 4px; font-size: 11px; }
.vb-team { display: grid; grid-template-columns: 22px 38px 1fr 34px; gap: 6px; align-items: center; font-size: 12px; padding: 2px 0; }
.vb-bar { height: 8px; background: var(--panel-2); border-radius: 4px; overflow: hidden; }
.vb-bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
@media (max-width: 560px) { .vb-row { grid-template-columns: 1fr; gap: 4px; } }
/* Defense vs. position */
table.dvp { width: 100%; font-size: 12px; }
table.dvp td, table.dvp th { padding: 4px 6px; }
.dvp-pill { display: inline-block; min-width: 40px; text-align: center; border-radius: 4px; padding: 1px 6px; font-weight: 700; }
.dvp-pill.soft { background: var(--good-soft); color: var(--good); }
.dvp-pill.okay { background: rgba(240, 204, 85, .14); color: var(--accent); }
.dvp-pill.firm { background: var(--warn); color: var(--warn-ink); }
.dvp-pill.tough { background: var(--danger-soft); color: var(--danger); }
/* News & highlights */
.news-item { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.news-item:last-child { border-bottom: 0; }
.news-thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--panel-2); border-radius: 6px; overflow: hidden; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-thumb .play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.news-h { font-weight: 700; color: var(--text); text-decoration: none; line-height: 1.3; }
.news-h:hover, .news-h:focus-visible { color: var(--accent); }
.news-d { font-size: 12px; color: var(--muted); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; font-size: 11px; }
.news-chip { font: inherit; font-size: 11px; border: 1px solid var(--line); background: transparent; color: var(--text); border-radius: 999px; padding: 1px 8px; cursor: pointer; }
.news-chip:hover, .news-chip:focus-visible { border-color: var(--accent); color: var(--accent); outline: none; }
@media (max-width: 560px) { .news-item { grid-template-columns: 90px 1fr; } }

/* Home: trending markets */
.mk-mini { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; border-radius: 6px; }
.mk-mini:last-child { border-bottom: 0; }
.mk-mini:hover { background: rgba(240, 204, 85, .06); }
.mk-mini .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.mk-mini .p { font-size: 13px; white-space: nowrap; }
.dash > div { min-width: 0; }
.dash .card > .hd { flex-wrap: wrap; gap: 4px 10px; }
#dvp { overflow-x: auto; }
@media (max-width: 560px) { table.dvp td, table.dvp th { padding: 4px 3px; } }

/* ---- sport home (non-NFL) + customize ---- */
.sh-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.sh-game { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 4px; font-size: 13px; }
.sh-team { display: grid; grid-template-columns: 22px 44px 1fr auto; gap: 6px; align-items: center; }
.sh-team .sc { font-weight: 800; font-variant-numeric: tabular-nums; }
.sh-when, .sh-odds { font-size: 12px; }
.sh-event b { line-height: 1.3; }
.mk-logo { width: 22px; height: 22px; object-fit: contain; }
.promo h2 .sport-logo { width: 30px; height: 30px; vertical-align: -6px; }
.cust-list { display: grid; gap: 4px; margin: 10px 0 14px; max-height: 60vh; overflow-y: auto; }
.cust-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; }
.cust-row:hover { background: var(--chip); }
.cust-row .sport-logo { width: 22px; height: 22px; vertical-align: -6px; }
.cust-tools { display: flex; gap: 6px; align-items: center; }
#customizeDialog { width: min(560px, calc(100vw - 24px)); }
#customizeDialog { color: var(--text); background: var(--panel); border: 1px solid var(--line); }
#customizeDialog::backdrop { background: rgba(0,0,0,.55); }

/* main home: every followed sport */
.ov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: 14px; align-items: start; }
.ov-grid > div { scroll-margin-top: 120px; }
.ov-card .bd h4 { margin: 12px 0 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ov-slates { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ov-slates .quick { margin-top: 6px; }
.ov-games { display: grid; gap: 2px; }
.ov-game { display: flex; align-items: center; gap: 6px; font-size: 13px; padding: 4px 0; border-bottom: 1px solid var(--line); }
.ov-game:last-child { border-bottom: 0; }
.ov-game .mk-logo { width: 18px; height: 18px; }
.ov-event b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-when { margin-left: auto; font-size: 12px; white-space: nowrap; }
.ov-live { color: var(--good, #3fb950); font-weight: 700; }
.ov-news { display: block; padding: 5px 0; color: var(--text); text-decoration: none; font-size: 13px; line-height: 1.35; border-bottom: 1px solid var(--line); }
.ov-news:last-child { border-bottom: 0; }
.ov-news:hover { color: var(--accent, #f0cc55); }
.sb-all { display: inline-grid; place-items: center; width: 20px; height: 20px; font-size: 14px; color: var(--accent, #f0cc55); }
#shHot li, #shResults li[data-i] { cursor: pointer; }
.ov-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 14px; align-items: start; }
.ov-side { position: sticky; top: 120px; max-height: calc(100vh - 136px); overflow-y: auto; }
.ov-side .card { margin: 0; }
.ov-tag { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 2px; }
.ov-tag img, .ov-tag .sport-logo { width: 16px; height: 16px; }
@media (max-width: 1000px) { .ov-wrap { grid-template-columns: 1fr; } .ov-side { position: static; max-height: none; } }
.ov-art { grid-template-columns: 96px 1fr; gap: 10px; } .ov-art:not(:has(.news-thumb)) { grid-template-columns: 1fr; } .ov-art .news-h { font-size: 13px; }
.ov-slates { flex-wrap: wrap; align-items: center; } .ov-slates .quick { order: 3; flex-basis: 100%; margin-top: 2px; }
.ov-slates .quick { display: flex; flex-wrap: wrap; gap: 6px; } .ov-slates .quick a { background: var(--panel-2); border: 1px solid var(--line); color: var(--text); padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; text-decoration: none; } .ov-slates .quick a:hover { border-color: var(--accent); }
.trend { display: inline-flex; align-items: center; gap: 1px; font-size: 11px; font-weight: 800; margin-right: 4px; font-variant-numeric: tabular-nums; }
.trend.up { color: var(--good); } .trend.down { color: var(--danger); }
.trend.flat { color: var(--muted); font-weight: 600; }

/* main home: games in progress */
.ov-live { margin-bottom: 14px; }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--danger); margin-right: 4px; vertical-align: middle; animation: livePulse 1.6s ease-in-out infinite; }
@keyframes livePulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.sh-game.live { border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); }
.sh-game.live .ov-tag { margin-bottom: 4px; }
.ov-live-detail { margin-left: auto; color: var(--danger); text-transform: none; letter-spacing: 0; font-weight: 700; }
.sh-team.lead b, .sh-team.lead .sc { color: var(--text); }
.sh-team:not(.lead) .sc { color: var(--muted); }
.ov-leader { color: var(--text); }

/* news from any publisher: our sport logo stands in when a story has no image of its own */
.news-thumb.ph { display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); }
.news-thumb.ph .ph-logo { width: 38%; height: auto; max-height: 70%; object-fit: contain; opacity: .9; }
.news-kind { display: inline-block; margin-left: 4px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
  padding: 1px 6px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
.news-kind.rumor { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }

/* player lists: headshots big enough to recognise */
.plist li { grid-template-columns: 30px 1fr auto; }
.plist .tlogo { width: 26px; height: 26px; }
.plist .tlogo.head { width: 30px; height: 30px; }

/* live pop-out */
.sh-game.live[data-live-id] { cursor: pointer; transition: border-color .15s, background .15s; }
.sh-game.live[data-live-id]:hover, .sh-game.live[data-live-id]:focus-visible { background: color-mix(in srgb, var(--danger) 7%, transparent); outline: none; }
.live-dialog { width: min(880px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; overflow: hidden; display: none; flex-direction: column; }
.live-dialog[open] { display: flex; }
.live-dialog::backdrop { background: rgba(0, 0, 0, .55); }
.live-dialog > .hd { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.live-dialog > .hd h2 { margin: 0; flex: 1; font-size: 18px; }
.live-dialog > .hd form { margin: 0; }
.live-dialog > .bd { padding: 14px 16px; overflow-y: auto; }
.ld-status { white-space: nowrap; }
.live-dialog h4 { margin: 14px 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.live-dialog table { width: 100%; border-collapse: collapse; font-size: 13px; }
.live-dialog th, .live-dialog td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.live-dialog th { font-size: 11px; color: var(--muted); font-weight: 700; }
.live-dialog .num { text-align: right; font-variant-numeric: tabular-nums; }
.ld-line .mk-logo { width: 20px; height: 20px; vertical-align: -5px; }
.ld-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .ld-cols { grid-template-columns: 1fr; } }
.ld-stats .ld-label { text-align: center; font-size: 12px; }
.ld-leaders { display: grid; gap: 8px; }
.ld-leader { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.ld-leader .muted { font-size: 11px; }
.ld-play { font-size: 12px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.ld-scroll { overflow-x: auto; }
.ld-golf .flag { width: 16px; height: 11px; object-fit: cover; vertical-align: -1px; border-radius: 2px; }
.ld-golfer { cursor: pointer; }
.ld-golfer:hover, .ld-golfer.open { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.ld-cardrow td { background: var(--panel-2); }
.ld-card { display: grid; grid-template-columns: repeat(9, minmax(34px, 1fr)); gap: 4px; }
.ld-hole { display: grid; place-items: center; padding: 4px 0; border-radius: 6px; border: 1px solid var(--line); font-size: 11px; }
.ld-hole span { color: var(--muted); font-size: 10px; } .ld-hole b { font-size: 14px; }
.ld-hole.birdie, .ld-sw.birdie { background: color-mix(in srgb, var(--danger) 22%, transparent); border-color: color-mix(in srgb, var(--danger) 55%, var(--line)); }
.ld-hole.eagle, .ld-sw.eagle { background: color-mix(in srgb, var(--accent) 35%, transparent); border-color: var(--accent); }
.ld-hole.bogey, .ld-sw.bogey { background: color-mix(in srgb, #3b82f6 18%, transparent); border-color: color-mix(in srgb, #3b82f6 45%, var(--line)); }
.ld-hole.dbl, .ld-sw.dbl { background: color-mix(in srgb, #3b82f6 38%, transparent); border-color: #3b82f6; }
.ld-key { font-size: 11px; margin: 8px 0 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ld-sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--line); }
.ld-match { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; display: grid; gap: 4px; }
.ld-match.live { border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); }
.ld-mstat { font-size: 11px; display: flex; gap: 6px; }
.ld-who { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.ld-who.won b { color: var(--good); }
.ld-who .flag { width: 16px; height: 11px; object-fit: cover; border-radius: 2px; }
.ld-sets { margin-left: auto; display: flex; gap: 10px; font-variant-numeric: tabular-nums; font-weight: 700; }

.ov-live-mk { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line); display: grid; gap: 3px; }
.ov-live-mkrow { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--text); text-decoration: none; border-radius: 4px; }
.ov-live-mkrow:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.ov-live-mkrow > span:last-child { white-space: nowrap; }

/* arranging the main home page */
.ov-tools { display: none; }
.ov-editbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px;
  padding: 10px 14px; border: 1px dashed var(--accent); border-radius: 12px; background: color-mix(in srgb, var(--accent) 8%, var(--panel)); font-size: 13px; }
.ov-editbtns { display: flex; gap: 8px; }
.ov-editing .ov-cell { cursor: grab; border-radius: 14px; outline: 2px dashed color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 3px; }
.ov-editing .ov-cell.dragging { opacity: .45; cursor: grabbing; }
.ov-editing .ov-cell .card { pointer-events: none; user-select: none; }
.ov-editing .ov-tools { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.ov-grip { flex: 1; font-weight: 700; font-size: 13px; color: var(--accent); letter-spacing: .02em; }

/* live cards: roomier, nothing spills out */
.ov-live .sh-games { grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.ov-live .sh-game { padding: 12px 14px; gap: 6px; min-width: 0; }
.ov-live .ov-tag { flex-wrap: wrap; row-gap: 2px; }
.ov-live .ov-live-detail { white-space: normal; text-align: right; }
.ov-live .sh-event b { white-space: normal; }
.ov-live-mkrow { flex-direction: column; gap: 3px; padding: 4px 0; }
.ov-live-mkrow > span:first-child { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.ov-live-picks { display: flex; flex-direction: column; gap: 2px; white-space: normal; }
.ov-live-pick { display: flex; align-items: center; gap: 4px; }
.ov-live-pick b { margin-left: auto; }
.ov-editbar { grid-column: 1 / -1; }
.live-dialog td b, .live-dialog td { color: var(--text); }
.live-dialog td.muted, .live-dialog .muted { color: var(--muted); }

/* any game card with details opens the pop-out */
.sh-game[data-live-id] { cursor: pointer; transition: border-color .15s, background .15s; }
.sh-game[data-live-id]:hover, .sh-game[data-live-id]:focus-visible { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); outline: none; }
.sh-game.live { border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); }
.ov-game[data-live-id] { cursor: pointer; border-radius: 6px; }
.ov-game[data-live-id]:hover, .ov-game[data-live-id]:focus-visible { background: color-mix(in srgb, var(--danger) 8%, transparent); outline: none; }
