/* favs-v1 (23 Nov 2026): Favourites and the grouped Alerts. Colours from the site's --fx-* tokens (light and dark). */
.fv { --fv-live: var(--f2-live-bg, #c9363b); --fv-live-ink: var(--f2-live-ink, #fff); --fv-live-text: var(--f2-live-text, #b4262c); --fv-hit: var(--f2-hit-text, #12703f); --fv-miss: #b45309; --fv-star: #e0a100; --fv-h: #2f5bea; --fv-a: #e07a2d; }
html[data-theme="dark"] .fv { --fv-miss: #ffc59a; --fv-star: #ffd27a; --fv-h: #7397ff; --fv-a: #ffb27a; }
.fv { color: var(--fx-ink); }
.fv.is-busy { opacity: .85; }
.fv .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.fv-guest { padding: 12px 14px; margin: 0 0 14px; border-radius: 14px; background: var(--fx-soft); }
.fv-guest p { margin: 0; line-height: 1.45; }
.fv-guest .fv-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fv-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 12px; }
.fv-sum { flex: 1 1 260px; display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; font-size: 14px; color: var(--fx-muted); }
.fv-dot-l { color: var(--fv-live-text); font-weight: 600; }
.fv-edit, .fv-clear, .fv-more { min-height: 40px; padding: 0 14px; border: 1px solid var(--fx-line); border-radius: 10px; background: transparent; color: var(--fx-ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.fv-more { margin: 6px 0 0 8px; border: 0; color: var(--fx-accent); padding: 0 8px; }
.fv-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 0 10px; border-radius: 12px; background: var(--fx-soft); }
.fv-tabs button { min-height: 40px; border: 0; border-radius: 9px; background: none; color: var(--fx-muted); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.fv-tabs button[aria-selected="true"] { background: var(--fx-card); color: var(--fx-ink); font-weight: 700; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.fv-chips { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; margin: 0 0 6px; }
.fv-chips::-webkit-scrollbar { display: none; }
.fv-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border: 1px solid var(--fx-line); border-radius: 10px; background: transparent; color: var(--fx-ink); font: inherit; font-size: 13px; cursor: pointer; }
.fv-chip.is-on { background: var(--fx-accent); border-color: var(--fx-accent); color: #fff; font-weight: 600; }
.fv-h { display: flex; align-items: center; gap: 8px; margin: 18px 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fx-muted); }
.fv-h small { font-weight: 500; letter-spacing: 0; text-transform: none; }
.fv-h-live { color: var(--fv-live-text); }
.fv-h-row { display: flex; align-items: center; gap: 10px; }
.fv-h-row .fv-h { flex: 1; }
.fv-h-row .fv-clear { margin-top: 12px; }
@media (max-width: 560px) { .fv-h-row .fv-h small { display: none; } }
.fv-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fv-live); animation: fv-pulse 1.6s ease-in-out infinite; }
@keyframes fv-pulse { 50% { opacity: .35; } }
.fv-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 10px; }
.fv-card { display: flex; flex-direction: column; gap: 9px; padding: 12px 12px 10px; border-radius: 14px; background: var(--fx-card); border: 1px solid var(--fx-line); }
.fv-card-h { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--fx-muted); }
.fv-lg { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fv-badge { font-size: 10px; font-weight: 800; letter-spacing: .06em; padding: 2px 6px; border-radius: 5px; background: var(--fv-live); color: var(--fv-live-ink); }
.fv-min { color: var(--fv-live-text); font-weight: 700; }
.fv-teams { display: flex; flex-direction: column; gap: 6px; color: inherit; text-decoration: none; }
.fv-tr { display: flex; align-items: center; gap: 10px; }
.fv-tn { flex: 1; min-width: 0; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fv-sc { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.fv-flash { animation: fv-flash 1.4s ease; }
@keyframes fv-flash { 0% { color: var(--fv-live-text); transform: scale(1.25); } 100% { transform: none; } }
.fv-crest { width: 24px; height: 24px; flex: none; object-fit: contain; }
.fv-ini { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--fx-soft); font-size: 9.5px; font-weight: 700; color: var(--fx-muted); }
.fv-bar { display: flex; gap: 2px; height: 6px; border-radius: 3px; overflow: hidden; }
.fv-bar span { transition: width .6s ease; }
.fv-bar span:nth-child(1) { background: var(--fv-h); }
.fv-bar span:nth-child(2) { background: var(--fx-line); }
.fv-bar span:nth-child(3) { background: var(--fv-a); }
.fv-bar-l { display: flex; justify-content: space-between; gap: 6px; margin-top: 5px; font-size: 12px; color: var(--fx-muted); }
.fv-bar-l span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fv-card-f { display: flex; align-items: center; gap: 8px; min-height: 28px; padding-top: 8px; border-top: 1px solid var(--fx-line); font-size: 12.5px; }
.fv-ev { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fv-why { color: var(--fx-muted); white-space: nowrap; }
.fv-leagues { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.fv-league { flex: 1 1 240px; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; border: 1px solid var(--fx-line); border-radius: 12px; color: inherit; text-decoration: none; }
.fv-league > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; font-size: 14px; }
.fv-league small, .fv-ent small { font-size: 12px; color: var(--fx-muted); }
.fv-go { color: var(--fx-accent); }
.fv-red { color: var(--fv-live-text); font-weight: 600; }
.fv-day { margin: 10px 0 2px; padding: 0 8px; font-size: 13px; font-weight: 600; }
.fv-row { display: grid; grid-template-columns: 50px 20px minmax(0, 1fr) 44px; align-items: center; gap: 10px; min-height: 52px; padding: 2px 4px 2px 8px; border-radius: 12px; }
.fv-row.is-sel { background: var(--fx-soft); }
.fv-when { font-size: 13px; color: var(--fx-muted); font-variant-numeric: tabular-nums; }
.fv-mid { display: flex; flex-direction: column; gap: 2px; min-width: 0; color: inherit; text-decoration: none; padding: 6px 0; }
.fv-names { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fv-score { font-weight: 800; }
.fv-sub { font-size: 12px; color: var(--fx-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fv-pick { display: inline-flex; align-items: center; gap: 3px; color: var(--fx-accent); }
.fv-pick.is-hit { color: var(--fv-hit); }
.fv-pick.is-miss { color: var(--fv-miss); }
.fv-star, .fv-x { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 10px; background: none; cursor: pointer; }
.fv-star { color: var(--fv-star); }
.fv-x { color: var(--fx-muted); }
.fv-star:hover, .fv-x:hover { background: var(--fx-soft); }
.fv-sel { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
.fv-sel input { width: 20px; height: 20px; accent-color: var(--fx-accent); }
.fv-ents { display: flex; flex-direction: column; gap: 8px; }
.fv-ent { display: grid; grid-template-columns: 36px minmax(0, 1fr) 44px; align-items: center; gap: 10px; padding: 8px 4px 8px 12px; border-radius: 14px; background: var(--fx-card); border: 1px solid var(--fx-line); }
.fv-ent-c { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; }
.fv-ent-c img { max-width: 32px; max-height: 32px; }
.fv-ent a { display: flex; flex-direction: column; gap: 2px; min-width: 0; color: inherit; text-decoration: none; }
.fv-ent a b { font-size: 15px; }
.fv-ent a img { vertical-align: -2px; }
.fv-alerts-box { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; padding: 12px 14px; border: 1px solid var(--fx-line); border-radius: 14px; font-size: 13px; color: var(--fx-muted); }
.fv-alerts-box b { color: var(--fx-ink); }
.fv-bar-edit { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; padding: 12px; border-radius: 16px 16px 0 0; background: var(--fx-card); box-shadow: 0 -8px 24px rgba(0, 0, 0, .18); }
.fv-bar-edit small { flex: 1 1 100%; color: var(--fx-muted); font-size: 12.5px; }
.fv-danger { color: var(--fv-miss) !important; }
.fv-empty { padding: 24px 8px; color: var(--fx-muted); }
.fv-empty h2 { margin: 0 0 6px; color: var(--fx-ink); font-size: 18px; }
.fv.is-offline::before { content: attr(data-offline); display: block; margin-bottom: 8px; font-size: 13px; color: var(--fv-miss); }
.fv-side { display: none; }
.fv-tab-entities .fv-main { display: none; }
.fv-tab-entities .fv-side { display: block; }
@media (min-width: 1000px) {
    .fv-tabs { display: none; }
    .fv-cols { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 24px; align-items: start; }
    .fv-cols .fv-main, .fv-cols .fv-side { display: block; }
    .fv-side .fv-h:first-child { margin-top: 0; }
}
/* ---------------------------------------------------------------- grouped alerts */
.al2-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.al2-tools form { margin: 0; }
.al2-strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 0 14px; }
.al2-strip::-webkit-scrollbar { display: none; }
.al2-mini { flex: none; width: 170px; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 14px; background: var(--fx-card); border: 1px solid var(--fx-line); color: inherit; text-decoration: none; font-size: 14px; }
.al2-mini .fv-min { font-size: 12px; }
.al2-mini span.r { display: flex; justify-content: space-between; gap: 6px; }
.al2-day { margin: 14px 0 6px; font-size: 13px; font-weight: 600; }
.al2-g { margin: 0 0 10px; border-radius: 14px; background: var(--fx-card); border: 1px solid var(--fx-line); overflow: hidden; }
.al2-gh { display: flex; align-items: center; gap: 10px; padding: 10px 4px 9px 12px; border-bottom: 1px solid var(--fx-line); }
.al2-gh a { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; color: inherit; text-decoration: none; }
.al2-gh .t { font-size: 15px; }
.al2-gh .s { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; color: var(--fx-muted); }
.al2-gh form { margin: 0; }
.al2-it { display: grid; grid-template-columns: 10px 22px minmax(0, 1fr) auto; align-items: start; gap: 8px; padding: 9px 12px; color: var(--fx-muted); }
.al2-it.is-unread { color: var(--fx-ink); }
.al2-it .u { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; }
.al2-it.is-unread .u { background: var(--fx-accent); }
.al2-it .x { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; }
.al2-it.is-unread .x b { font-weight: 700; }
.al2-it .x small { font-size: 12.5px; color: var(--fx-muted); }
.al2-it time { font-size: 12px; color: var(--fx-muted); white-space: nowrap; }
.al2-g details > summary { list-style: none; cursor: pointer; padding: 0 12px 10px 52px; color: var(--fx-accent); font-size: 13px; font-weight: 600; }
.al2-g details > summary::-webkit-details-marker { display: none; }
.al2-note { margin: 10px 4px 0; font-size: 12.5px; color: var(--fx-muted); }

/* parts-v1 (24 Nov 2026): half-time and the score of each quarter, period, half or set, smaller and dimmer than the score */
.fv-pts { display: inline-flex; gap: 9px; font-size: 13px; font-weight: 600; color: var(--fx-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fv-pts:empty { display: none; }
.fv-pts i { font-style: normal; min-width: 14px; text-align: right; }
.fv-pts i.cur { font-weight: 800; color: var(--fv-live-text); }
.fv-pl { font-size: .9em; font-weight: 600; color: var(--fx-muted); }
@media (max-width: 420px) { .fv-pts { gap: 7px; font-size: 12px; } }

/* parts-v1: the account page's link style (.acct-panel a:not(.hub-btn), up to 0-3-2 in dark mode) must not reach the cards and rows */
.fv.fv a:not(.hub-btn):is(.fv-teams, .fv-mid, .fv-league), .fv.fv .fv-ent a:not(.hub-btn) { color: inherit; font-weight: inherit; text-decoration: none; }
.fv.fv a:not(.hub-btn).fv-teams .fv-tn { font-weight: 600; }
/* tennis: the points of the game being played */
.fv-pts i.pt { min-width: 22px; margin-left: 2px; padding: 0 4px; border-radius: 5px; background: var(--fx-line); color: var(--fv-live-text); font-weight: 800; text-align: center; }

/* serve-v1: tennis, the ball before the scores of the player serving (same ball as on the tennis pages) */
.fv-pts i.sv { min-width: 0; width: 8px; height: 8px; align-self: center; margin-right: 1px; border-radius: 50%; background: #c9e22a; box-shadow: 0 0 0 2px #f4fbd0; visibility: hidden; }
.fv-pts i.sv.on { visibility: visible; }
html[data-theme="dark"] .fv-pts i.sv { background: #d9f240; box-shadow: 0 0 0 2px #2a3010; }
.fv-pts i.pt { min-width: 27px; }   /* "40" and "A" boxes the same width, so the set columns of both rows line up */

/* clock-v1: the live status now carries the time ("Set 2 · 1:12"); keep it on one line, the league name gives way */
.fv-min { flex: none; white-space: nowrap; }
/* clock-v1: with five or six sport chips the chip row's full width pushed the whole account page wider than a phone (476 px on a 390 px screen); now it scrolls inside the page */
.fv .fv-chips { contain: inline-size; }

/* positions-v1 (owner only): his Polymarket positions on a match */
.fv { --fv-win: #1f8f57; --fv-lose: #c8463a; --fv-pm: #2f6bff; }
html[data-theme="dark"] .fv { --fv-win: #45c486; --fv-lose: #f07a6a; }
.fv-pm { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 14px; height: 14px; border-radius: 4px; background: var(--fv-pm); color: #fff; font-size: 9px; font-weight: 900; line-height: 1; }
.fv-pos { border-top: 1px solid var(--fx-line); padding-top: 8px; display: flex; flex-direction: column; gap: 7px; }
.fv-pos-h { display: flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--fx-muted); }
.fv-pos-r { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.fv-pos-m { flex: 1; min-width: 0; }
.fv-pos-m b { font-weight: 650; overflow-wrap: anywhere; }
.fv-pos-m small, .fv-pos-a small { display: block; margin-top: 1px; font-size: 12px; color: var(--fx-muted); }
.fv-pos-a { flex: none; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fv-pos-a small.is-win { color: var(--fv-win); font-weight: 700; }
.fv-pos-a small.is-lose { color: var(--fv-lose); font-weight: 700; }
.fv-pos-a small.is-open { color: var(--fx-ink); font-weight: 650; }
.fv-pos-c { margin: -2px 0 8px 64px; padding-top: 6px; }
.fv-pos-c .fv-pos-r { font-size: 13px; }
@media (max-width: 420px) { .fv-pos-c { margin-left: 8px; } .fv-pos-a { white-space: normal; max-width: 46%; } }
.fv-pos-sum { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin: -4px 0 10px; font-size: 13.5px; color: var(--fx-muted); }
.fv-pos-sum.is-win { color: var(--fx-ink); }
/* positions-v1b: the summary's P mark sits in the text */
.fv-pos-sum { display: block; }
.fv-pos-sum .fv-pm { display: inline-flex; vertical-align: -2px; margin-right: 6px; }
/* positions-v1c: the block folds; its header shows the count and "possible now (or won) / possible at the start" */
.fv-pos { display: block; }
.fv-pos > summary { list-style: none; cursor: pointer; min-height: 32px; -webkit-tap-highlight-color: transparent; }
.fv-pos > summary::-webkit-details-marker { display: none; }
.fv-pos-t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-transform: none; letter-spacing: 0; font-size: 12.5px; }
.fv-pos-tot { flex: none; font-size: 12.5px; font-weight: 750; letter-spacing: 0; text-transform: none; font-variant-numeric: tabular-nums; color: var(--fx-ink); }
.fv-pos-tot.is-win { color: var(--fv-win); }
.fv-pos-tot.is-lose { color: var(--fv-lose); }
.fv-pos-chev { flex: none; width: 7px; height: 7px; margin: -4px 3px 0 4px; border-right: 2px solid var(--fx-muted); border-bottom: 2px solid var(--fx-muted); transform: rotate(45deg); transition: transform .15s; }
.fv-pos[open] .fv-pos-chev { transform: rotate(-135deg); margin-top: 3px; }
.fv-pos .fv-pos-r { margin-top: 7px; }

/* favdock-v1 (owner, 26 Nov 2026): match rows on phones - the time over the sport's symbol, the two sides stacked with their
   scores (the winner bright, the other dimmer), the line below wraps (two lines at most) instead of being cut. */
.fv-stk { display: none; }
.fv-ic { display: inline-flex; }
@media (max-width: 560px) {
  .fv-row { grid-template-columns: 46px minmax(0, 1fr) 40px; grid-template-areas: "when mid act" "ic mid act"; align-items: start; column-gap: 8px; row-gap: 5px; padding: 8px 0 8px 6px; min-height: 0; }
  .fv-row > .fv-when { grid-area: when; padding-top: 7px; font-size: 12.5px; line-height: 1.2; overflow-wrap: anywhere; }
  .fv-row > .fv-ic { grid-area: ic; }
  .fv-row > .fv-mid { grid-area: mid; padding: 4px 0 2px; gap: 3px; }
  .fv-row > .fv-star, .fv-row > .fv-x, .fv-row > .fv-sel { grid-area: act; justify-self: end; }
  .fv-row .fv-names { display: none; }
  .fv-row .fv-stk { display: flex; flex-direction: column; gap: 3px; }
  .fv-sr { display: flex; align-items: baseline; gap: 10px; font-size: 15px; line-height: 1.3; }
  .fv-sn { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .fv-ss { flex: none; min-width: 22px; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
  .fv-sr.is-w { font-weight: 700; }
  .fv-sr.is-l { color: var(--fx-muted); }
  .fv-sr.is-l .fv-ss { font-weight: 600; }
  .fv-row .fv-sub { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; line-height: 1.4; }
  .fv-row .fv-pl { white-space: nowrap; }
}
