/* VS — UI/responsive audit fixes (2026-11-28). Loaded last by base.html.
   Each block names the page, the width where the break showed and what it was.
   Tokens only (DESIGN_V4): no new colours unless noted. */

/* Bet slip stake field (all widths): the "cr" unit sat at 50% + 2ch, so any
   stake over three digits ran underneath it ("99999" + "cr" overlapped). The
   value stays centred; the unit is pinned to the right padding the input
   already reserves. */
.bs-stake-field .unit { left: auto; right: 14px; }

/* Header, signed in, 320–374px: logo (91px) + search + bell + balance + avatar
   needed 335px, so the avatar was cut off and the page scrolled sideways. */
@media (max-width: 374px) {
  .header-inner { gap: 2px; padding: 0 8px; }
  .brand { margin-right: 2px; }
  .brand .vs-logo, .brand .brand-mark.vs-logo { height: 28px; }
  .header-actions { gap: 2px; }
  .balance-pill { padding: 0 8px; margin-left: 0; }
}

/* Date inputs (My bets filters at 320px, any form grid): the native date
   control's intrinsic width (152px) pushed past its 125px column. */
input[type="date"], input[type="datetime-local"], input[type="time"], input[type="month"] { min-width: 0; max-width: 100%; }
/* My bets filters below 400px: half-width date fields left "dd/mm/yyyy" under
   the calendar icon, so each filter takes its own row. */
@media (max-width: 399px) { .bt-filters .bt-field { flex-basis: 100%; } }

/* Light theme contrast: mint text #0f8a61 measured 4.35:1 on white and 3.97:1
   on --bg (#f3f5f8) — below AA for body text (links, pills, amounts, active
   tabs). One step darker in the same hue passes everywhere (5.27:1 / 4.88:1). */
[data-theme="light"] { --accent-text: #0b7a55; --success: #0b7a55; }
@media (prefers-color-scheme: light) { html[data-theme="system"] { --accent-text: #0b7a55; --success: #0b7a55; } }

/* Count badges (bottom-nav "Live 11", header counters): white 11px text on
   --live (#ff4d4f) was 3.27:1. The badge uses the darker danger fill (#d32f2f,
   already the light-theme token), 4.98:1 with white, in both themes. */
.dot-count, .bottom-nav .dot-count { background: #d32f2f; }
