.ss-w-root { all: revert; }
.ss-w-root, .ss-w-root * { box-sizing: border-box; margin: 0; padding: 0; }
.ss-w-root {
  --ss-w-accent: #17936a;
  --ss-w-cta: #f5a623; --ss-w-cta-ink: #1b1300;
  --ss-w-ink: #14181d; --ss-w-faint: #6b7580; --ss-w-line: #e4e8ec;
  --ss-w-panel: #ffffff; --ss-w-bubble: #f3f5f7; --ss-w-nav: #0e1622;
  --ss-w-pos: #1aa563; --ss-w-neg: #e0524b; --ss-w-warn: #c07a00;
  --ss-w-home: #3a63a8; --ss-w-away: #c8102e; --ss-w-track: #e9edf1;
  --ss-w-correct: #1f9d55; --ss-w-wrong: #b9bbc2;
  --ss-w-radius: 16px; --ss-w-offset-x: 20px; --ss-w-offset-y: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 13px; line-height: 1.5; color: var(--ss-w-ink);
}
@media (prefers-color-scheme: dark) {
  .ss-w-root[data-ss-w-theme="auto"] {
    --ss-w-accent: #37c891; --ss-w-cta: #ffb638; --ss-w-cta-ink: #1b1300;
    --ss-w-ink: #e8edf2; --ss-w-faint: #8b95a1;
    --ss-w-line: #2a3441; --ss-w-panel: #141b24; --ss-w-bubble: #1e2732; --ss-w-nav: #0a0f16;
    --ss-w-pos: #37c891; --ss-w-neg: #f0655d; --ss-w-warn: #e0a030;
    --ss-w-home: #5b83c8; --ss-w-away: #e8384f; --ss-w-track: #232d3a;
    --ss-w-correct: #37c86b; --ss-w-wrong: #3a3a41;
  }
}
.ss-w-root[data-ss-w-theme="dark"] {
  --ss-w-accent: #37c891; --ss-w-cta: #ffb638; --ss-w-cta-ink: #1b1300;
  --ss-w-ink: #e8edf2; --ss-w-faint: #8b95a1;
  --ss-w-line: #2a3441; --ss-w-panel: #141b24; --ss-w-bubble: #1e2732; --ss-w-nav: #0a0f16;
  --ss-w-pos: #37c891; --ss-w-neg: #f0655d; --ss-w-warn: #e0a030;
  --ss-w-home: #5b83c8; --ss-w-away: #e8384f; --ss-w-track: #232d3a;
  --ss-w-correct: #37c86b; --ss-w-wrong: #3a3a41;
}
.ss-w-root[data-ss-w-theme="light"] {
  --ss-w-accent: #17936a; --ss-w-cta: #f5a623; --ss-w-cta-ink: #1b1300;
  --ss-w-ink: #14181d; --ss-w-faint: #6b7580;
  --ss-w-line: #e4e8ec; --ss-w-panel: #ffffff; --ss-w-bubble: #f3f5f7; --ss-w-nav: #0e1622;
  --ss-w-home: #3a63a8; --ss-w-away: #c8102e; --ss-w-track: #e9edf1;
  --ss-w-correct: #1f9d55; --ss-w-wrong: #b9bbc2;
}

/* ── games design tokens (u393) ── derived from operator tokens so every tenant theme works.
   Targets (Hull #F5A800/#0B0B0B/#F5F5F5): ground #0D0C0A, surface #17150F, warm #1C1810,
   raised #211E17, line #26221A, line-warm #3A2F18, accent-tint #3A2C10, strong-line #4A4131. */
.ss-w-root {
  --ss-g-ground: color-mix(in srgb, var(--ss-w-accent) 2%, var(--ss-w-panel));
  --ss-g-surface: color-mix(in srgb, var(--ss-w-accent) 3%, color-mix(in srgb, var(--ss-w-ink) 3%, var(--ss-w-panel)));
  --ss-g-warm: color-mix(in srgb, var(--ss-w-accent) 6%, color-mix(in srgb, var(--ss-w-ink) 2%, var(--ss-w-panel)));
  --ss-g-raised: color-mix(in srgb, var(--ss-w-accent) 3%, color-mix(in srgb, var(--ss-w-ink) 6%, var(--ss-w-panel)));
  --ss-g-line: color-mix(in srgb, var(--ss-w-accent) 4%, color-mix(in srgb, var(--ss-w-ink) 8%, var(--ss-w-panel)));
  --ss-g-line-warm: color-mix(in srgb, var(--ss-w-accent) 18%, color-mix(in srgb, var(--ss-w-ink) 3%, var(--ss-w-panel)));
  --ss-g-accent-tint: color-mix(in srgb, var(--ss-w-accent) 20%, var(--ss-w-panel));
  --ss-g-strong-line: color-mix(in srgb, var(--ss-w-accent) 8%, color-mix(in srgb, var(--ss-w-ink) 18%, var(--ss-w-panel)));
  --ss-g-ink: color-mix(in srgb, var(--ss-w-accent) 4%, var(--ss-w-ink));
  --ss-g-ink-2: color-mix(in srgb, var(--ss-w-accent) 4%, color-mix(in srgb, var(--ss-w-ink) 72%, var(--ss-w-panel)));
  --ss-g-muted: color-mix(in srgb, var(--ss-w-accent) 5%, color-mix(in srgb, var(--ss-w-ink) 60%, var(--ss-w-panel)));
  --ss-g-faint: color-mix(in srgb, var(--ss-w-ink) 45%, var(--ss-w-panel));
  --ss-g-on-accent: #1a1206;
  --ss-g-on-correct: #fff;
  --ss-g-correct: color-mix(in srgb, var(--ss-w-correct) 55%, #000);
  --ss-g-wrong: color-mix(in srgb, var(--ss-w-neg) 55%, #000);
  /* Brighter wrong for thin marks (borders, icons, segments) that must read on dark surfaces; --ss-g-wrong stays for fills. */
  --ss-g-wrong-mark: var(--ss-w-neg);
  --ss-g-success: color-mix(in srgb, var(--ss-w-pos) 80%, var(--ss-w-ink));
  --ss-g-success-tint: color-mix(in srgb, var(--ss-w-pos) 18%, var(--ss-w-panel));
  --ss-g-close: #e3b341;
  --ss-g-flame: #ff6a1a;
  /* Pitch colours are fixed in both themes: the pitch is always a dark green. */
  --ss-g-pitch: #123524;
  --ss-g-pitch-line: #3e7055;
  --ss-g-pitch-chip: #0d0c0a;
  --ss-g-pitch-ink: #f4efe6;
  --ss-g-pitch-mark: #c9d6cd;
  --ss-g-font-display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --ss-g-font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
}


/* ── games ui kit (u393) ── */
.ss-g-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ss-g-head { display: flex; align-items: center; gap: 6px; padding: 8px 16px 8px 6px; font-family: var(--ss-g-font-body); }
.ss-g-back { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 0; border-radius: 12px; background: transparent; color: var(--ss-g-ink); cursor: pointer; }
.ss-g-back:hover { background: var(--ss-g-surface); }
.ss-g-head-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.05; }
.ss-g-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ss-g-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-g-title { font-family: var(--ss-g-font-display); font-weight: 800; font-size: 26px; text-transform: uppercase; color: var(--ss-g-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-g-head-right { flex: none; }
.ss-g-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.ss-g-chip--neutral { background: var(--ss-g-surface); border: 1px solid var(--ss-g-line); color: var(--ss-g-ink); }
.ss-g-chip--neutral .ss-g-num, .ss-g-chip--neutral svg { color: var(--ss-w-accent); }
.ss-g-chip--accent { background: var(--ss-g-accent-tint); color: var(--ss-w-accent); font-weight: 700; }
.ss-g-chip--success { background: var(--ss-g-success-tint); color: var(--ss-g-success); font-weight: 700; }
.ss-g-chip--badge { padding: 3px 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--ss-g-accent-tint); color: var(--ss-w-accent); }
.ss-g-chip--lock { padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 500; background: var(--ss-g-raised); color: var(--ss-g-muted); }
.ss-g-statstack { display: flex; flex-direction: column; align-items: flex-end; line-height: 1; }
.ss-g-statstack-v { font-family: var(--ss-g-font-display); font-weight: 800; font-size: 26px; color: var(--ss-w-accent); }
.ss-g-statstack-l { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ss-g-muted); }
.ss-g-progress { display: flex; align-items: center; gap: 12px; padding: 0 16px 8px; }
.ss-g-progress-main { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.ss-g-progress-labels { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--ss-g-ink); }
.ss-g-progress-rl { color: var(--ss-g-muted); }
.ss-g-segs { display: grid; gap: 4px; }
.ss-g-seg { height: 5px; border-radius: 3px; background: var(--ss-g-line); }
.ss-g-seg[data-state="done"] { background: var(--ss-g-strong-line); }
.ss-g-seg[data-state="current"] { background: var(--ss-w-accent); }
.ss-g-seg[data-state="correct"] { background: var(--ss-g-correct); }
.ss-g-seg[data-state="wrong"] { background: var(--ss-g-wrong-mark); }
.ss-g-btn { min-height: 48px; padding: 0 16px; border-radius: 12px; font-family: var(--ss-g-font-body); font-size: 14px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.ss-g-btn:disabled { opacity: .45; cursor: default; }
.ss-g-btn--block { width: 100%; min-height: 54px; border-radius: 14px; font-size: 16px; font-weight: 800; }
.ss-g-btn--primary { border: 0; background: var(--ss-w-accent); color: var(--ss-g-on-accent); }
.ss-g-btn--outline { border: 1.5px solid var(--ss-g-strong-line); background: transparent; color: var(--ss-g-ink); }
.ss-g-btn--accent-outline { border: 1.5px solid var(--ss-w-accent); background: transparent; color: var(--ss-w-accent); }
.ss-g-btn--surface { border: 1px solid var(--ss-g-line); background: var(--ss-g-surface); color: var(--ss-g-ink); font-weight: 600; font-size: 13px; }
.ss-g-search { display: flex; flex-direction: column; gap: 6px; }
.ss-g-search-label { font-size: 12px; font-weight: 600; color: var(--ss-g-muted); }
.ss-g-search-box { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px; border-radius: 14px; background: var(--ss-g-surface); border: 1.5px solid var(--ss-g-line); color: var(--ss-g-muted); }
.ss-g-search-box:focus-within { border-color: var(--ss-w-accent); }
.ss-g-search-box input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--ss-g-ink); font: 500 15px var(--ss-g-font-body); }
.ss-g-search-clear { flex: none; width: 20px; height: 20px; padding: 0; border: none; border-radius: 50%; background: var(--ss-g-line); color: var(--ss-g-muted); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ss-g-search-clear:focus-visible { outline: 2px solid var(--ss-w-accent); outline-offset: -2px; }
.ss-g-footer { flex: none; padding: 12px 16px 16px; border-top: 1px solid var(--ss-g-line); display: flex; flex-direction: column; gap: 10px; background: var(--ss-g-ground); }
.ss-g-sil { position: relative; flex: none; display: inline-flex; align-items: flex-end; justify-content: center; overflow: hidden; border-radius: 50%; background: var(--ss-g-raised); color: var(--ss-g-strong-line); }
.ss-g-sil--selected { background: var(--ss-g-accent-tint); color: color-mix(in srgb, var(--ss-w-accent) 40%, var(--ss-g-raised)); }
.ss-g-sil--mystery { background: var(--ss-g-accent-tint); color: var(--ss-g-ground); }
.ss-g-sil-q { position: absolute; top: 22%; font-family: var(--ss-g-font-display); font-weight: 800; font-size: 1.1em; color: var(--ss-w-accent); }
.ss-g-crest { flex: none; object-fit: contain; }
.ss-g-crest--ph { color: var(--ss-g-strong-line); }
.ss-g-pitch-svg { position: absolute; inset: 0; width: 100%; height: 100%; stroke: var(--ss-g-pitch-line); stroke-width: .6; }
/* ── games screen scaffold (u393) — shared by every game screen ── */
.ss-w-gscreen > .ss-g-screen { flex: 1; min-height: 0; }
.ss-g-screen { display: flex; flex-direction: column; min-height: 0; background: var(--ss-g-ground); color: var(--ss-g-ink); font-family: var(--ss-g-font-body); }
.ss-g-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 14px; padding: 4px 16px 16px; }
.ss-g-body .ss-g-progress { padding: 0; }
.ss-g-loading { align-items: center; justify-content: center; color: var(--ss-g-muted); font-size: 13px; }
.ss-g-opts { display: flex; flex-direction: column; gap: 4px; max-height: 232px; overflow-y: auto; }
.ss-g-opt { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 8px; border: 0; border-radius: 12px; background: var(--ss-g-surface); color: var(--ss-g-ink); font: 600 15px var(--ss-g-font-body); text-align: left; cursor: pointer; }
.ss-g-opt:hover, .ss-g-opt:focus-visible { background: var(--ss-g-raised); outline: none; }
.ss-g-opt-av { width: 40px; height: 40px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--ss-g-raised); color: var(--ss-g-muted); font-size: 13px; font-weight: 700; }
.ss-g-opt-av img { width: 100%; height: 100%; object-fit: cover; }
.ss-g-result { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px; border-radius: 18px; background: var(--ss-g-warm); border: 1px solid var(--ss-g-line-warm); }
.ss-g-result[data-tone="win"] { border-color: var(--ss-g-correct); }
.ss-g-result[data-tone="lose"] { border-color: var(--ss-g-wrong-mark); }
.ss-g-result-title { font-family: var(--ss-g-font-display); font-weight: 800; font-size: 26px; text-transform: uppercase; line-height: 1; }
.ss-g-result-score { font-size: 13px; font-weight: 700; color: var(--ss-g-muted); }
.ss-g-result-num { font-family: var(--ss-g-font-display); font-weight: 800; font-size: 40px; color: var(--ss-w-accent); margin-right: 4px; }
.ss-g-result-detail { font-size: 13px; color: var(--ss-g-ink-2); }
.ss-g-result .ss-g-btn { margin-top: 6px; }

/* launcher */
.ss-w-fab-wrap { position: fixed; bottom: var(--ss-w-offset-y); z-index: 2147483000; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.ss-w-root[data-ss-w-pos="right"] .ss-w-fab-wrap { right: var(--ss-w-offset-x); }
.ss-w-root[data-ss-w-pos="left"] .ss-w-fab-wrap { left: var(--ss-w-offset-x); align-items: flex-start; }
.ss-w-fab { width: 56px; height: 56px; border: none; border-radius: 50%; background: var(--ss-w-nav); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.28); }
.ss-w-fab-mark { width: 30px; height: 30px; display: block; object-fit: contain; }
.ss-w-greeting { max-width: 240px; display: flex; align-items: flex-start; background: var(--ss-w-panel); color: var(--ss-w-ink); border: 1px solid var(--ss-w-line); border-radius: 12px; box-shadow: 0 4px 14px rgba(0,0,0,.14); }
.ss-w-greeting-body { position: relative; flex: 1; min-width: 0; text-align: left; background: none; border: none; color: inherit; font: inherit; cursor: pointer; padding: 9px 4px 9px 12px; }
.ss-w-greeting-x { flex: none; background: none; border: none; color: var(--ss-w-faint); cursor: pointer; font-size: 17px; line-height: 1; padding: 7px 9px 0 2px; }
.ss-w-greeting-text { display: block; }
/* Bubble asks (onboarding presets, spec C6): the line stays one button, the asks stack under it as
   sibling buttons. 240 px bubble: 196 px of text room per ask; widest contract ask 167 px (EN),
   153 px (TR) at 12px/600, measured 2026-10-04. A longer label wraps, never an ellipsis. */
.ss-w-greeting--asks { flex-direction: column; align-items: stretch; }
.ss-w-greeting-top { display: flex; align-items: flex-start; }
.ss-w-greeting-asks { display: flex; flex-direction: column; gap: 6px; padding: 0 10px 10px; }
.ss-w-greeting-ask { min-height: 44px; width: 100%; text-align: left; font: inherit; font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--ss-w-accent); background: color-mix(in srgb, var(--ss-w-accent) 8%, var(--ss-w-panel)); border: 1px solid color-mix(in srgb, var(--ss-w-accent) 35%, var(--ss-w-line)); border-radius: 10px; padding: 6px 10px; cursor: pointer; white-space: normal; overflow-wrap: anywhere; }
.ss-w-greeting-ask:hover { border-color: var(--ss-w-accent); }
.ss-w-greeting-ask:focus-visible { outline: 2px solid var(--ss-w-accent); outline-offset: 2px; }
/* Typing indicator: overlays the text area so bubble height stays put; hidden at
   rest, revealed only during the one-shot intro (see prefers-reduced-motion block). */
.ss-w-greeting-dots { position: absolute; top: 0; bottom: 0; left: 12px; display: flex; align-items: center; gap: 4px; opacity: 0; pointer-events: none; }
.ss-w-greeting-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ss-w-faint); display: block; }
/* One-shot launcher attention intro: FAB nudges, then the greeting types in.
   Gated behind no-preference so reduce-motion users get the greeting shown
   statically (text visible, no nudge, no typing). ChatFab adds .ss-w-intro once
   per page load; every animation runs a single time and settles at rest. */
@media (prefers-reduced-motion: no-preference) {
  .ss-w-intro .ss-w-fab { animation: ss-w-nudge .8s ease both; }
  .ss-w-intro .ss-w-greeting { animation: ss-w-greet-in .45s cubic-bezier(.2,.8,.3,1.15) .8s both; }
  .ss-w-intro .ss-w-greeting-text { animation: ss-w-greet-textin .4s ease 1.65s both; }
  .ss-w-intro .ss-w-greeting-asks { animation: ss-w-greet-textin .4s ease 1.65s both; }
  .ss-w-intro .ss-w-greeting-dots { animation: ss-w-greet-dots .95s ease .85s both; }
  .ss-w-intro .ss-w-greeting-dots i { animation: ss-w-greet-dotbounce .5s ease .85s 2; }
  .ss-w-intro .ss-w-greeting-dots i:nth-child(2) { animation-delay: 1s; }
  .ss-w-intro .ss-w-greeting-dots i:nth-child(3) { animation-delay: 1.15s; }
}
@keyframes ss-w-nudge {
  0%, 100% { transform: none; }
  22% { transform: translateY(-9px) rotate(-9deg); }
  44% { transform: translateY(0) rotate(7deg); }
  64% { transform: translateY(-4px) rotate(-4deg); }
  82% { transform: rotate(2deg); }
}
@keyframes ss-w-greet-in {
  from { opacity: 0; transform: translateY(8px) scale(.92); }
  to { opacity: 1; transform: none; }
}
@keyframes ss-w-greet-textin { from { opacity: 0; } to { opacity: 1; } }
@keyframes ss-w-greet-dots { 0% { opacity: 0; } 14% { opacity: 1; } 78% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ss-w-greet-dotbounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

/* panel */
.ss-w-panel { position: fixed; bottom: calc(var(--ss-w-offset-y) + 72px); z-index: 2147483000; display: flex; flex-direction: column; width: min(460px, calc(100vw - 40px)); height: min(640px, calc(100vh - 120px)); background: var(--ss-w-panel); border: 1px solid var(--ss-w-line); border-radius: var(--ss-w-radius); overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.24); }
.ss-w-root[data-ss-w-pos="right"] .ss-w-panel { right: var(--ss-w-offset-x); }
.ss-w-root[data-ss-w-pos="left"] .ss-w-panel { left: var(--ss-w-offset-x); }
@media (max-width: 639px) {
  /* Fill via inset with no explicit height (like the site's working panel) so the
     input stays visible when the mobile keyboard/URL-bar shrinks the viewport. The
     position-specific selectors override the right/left offsets set above. */
  .ss-w-root[data-ss-w-pos="right"] .ss-w-panel,
  .ss-w-root[data-ss-w-pos="left"] .ss-w-panel { inset: 0; width: auto; height: auto; border: none; border-radius: 0; }
}
.ss-w-header { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--ss-w-line); }
.ss-w-header-mark { width: 18px; height: 18px; display: block; object-fit: contain; }
.ss-w-header-title { font-weight: 660; flex: 1; }
.ss-w-close { background: none; border: none; color: var(--ss-w-faint); cursor: pointer; font-size: 16px; display: grid; place-items: center; }
.ss-w-menu-wrap { position: relative; display: grid; place-items: center; }
.ss-w-kebab { background: none; border: none; color: var(--ss-w-faint); cursor: pointer; font-size: 16px; display: grid; place-items: center; }
.ss-w-menu { position: absolute; top: calc(100% + 6px); right: 0; z-index: 5; min-width: 184px; padding: 6px; background: var(--ss-w-panel); border: 1px solid var(--ss-w-line); border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.ss-w-menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; background: none; border: none; border-radius: 8px; color: var(--ss-w-ink); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.ss-w-menu-item:hover, .ss-w-menu-item:focus-visible { background: var(--ss-w-bubble); }
.ss-w-menu-item svg { color: var(--ss-w-faint); font-size: 15px; flex: none; }

/* messages */
/* .ss-w-mon-list (Matches/Odds tab scrollers) shares .ss-w-list's box/scroll rules by design --
   same visual rhythm as the chat message list -- but gets its own class so it isn't the same DOM
   landmark as the chat list when both exist in the panel at once (Task 16 fix round, M4). */
/* Children of this scrolling column flex container must NOT shrink. The default flex-shrink:1
   compresses every child to fit the panel instead of letting the container scroll, and
   .ss-w-grp's own overflow:hidden then clips the compressed content away entirely — 27
   competition groups rendered as blank bars on a phone. Applies to the pinned cards too. */
.ss-w-mon-list > * { flex: none; }
.ss-w-list, .ss-w-mon-list { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px; display: flex; flex-direction: column; gap: 12px; scroll-padding-top: 14px; }
/* Transient bottom spacer: reserves a viewport of room below a new turn so its
   top can be scrolled into view while the reply is still streaming in. Height is
   set imperatively and flex must not shrink it away. */
.ss-w-turn-spacer { flex: none; }
.ss-w-msg { display: flex; }
.ss-w-user { justify-content: flex-end; }
.ss-w-user .ss-w-bubble { background: color-mix(in srgb, var(--ss-w-accent) 14%, var(--ss-w-panel)); border: 1px solid color-mix(in srgb, var(--ss-w-accent) 30%, var(--ss-w-line)); border-radius: 14px; padding: 8px 12px; max-width: 80%; }
.ss-w-bot { flex-direction: column; gap: 8px; }
.ss-w-status { font-size: 11px; color: var(--ss-w-faint); font-style: italic; }
.ss-w-error { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #c0392b; }
.ss-w-retry { background: none; border: 1px solid currentColor; border-radius: 10px; padding: 2px 8px; cursor: pointer; color: inherit; }

/* markdown */
.ss-w-md { display: flex; flex-direction: column; gap: 8px; }
.ss-w-md :where(p, ul, ol, table, pre, blockquote, h1, h2, h3, h4) { margin: 0; }
.ss-w-md > *:first-child { margin-top: 0; }
.ss-w-md > *:last-child { margin-bottom: 0; }
.ss-w-md-ul { list-style: disc outside; padding-left: 18px; }
.ss-w-md-ol { list-style: decimal outside; padding-left: 18px; }
.ss-w-md-ul li::marker, .ss-w-md-ol li::marker { color: var(--ss-w-accent); }
.ss-w-md-link { color: var(--ss-w-accent); text-decoration: underline; }
.ss-w-table-wrap { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
.ss-w-md-table { border-collapse: collapse; width: max-content; min-width: 100%; font-variant-numeric: tabular-nums; }
.ss-w-md-table td, .ss-w-md-table th { border: 1px solid var(--ss-w-line); padding: 4px 8px; text-align: left; white-space: nowrap; }
.ss-w-md-table th { background: color-mix(in srgb, var(--ss-w-accent) 12%, var(--ss-w-panel)); font-weight: 700; }
.ss-w-md-table tbody tr:nth-child(even) { background: var(--ss-w-bubble); }
.ss-w-md-code { background: var(--ss-w-bubble); border-radius: 5px; padding: 1px 5px; font-family: ui-monospace, monospace; }

/* entity cards */
.ss-w-cards { display: flex; flex-direction: column; gap: 8px; }

/* Entity card: identity header row over a horizontal stat strip */
.ss-w-ecard { display: flex; flex-direction: column; width: 100%; background: var(--ss-w-panel); border: 1px solid var(--ss-w-line); border-radius: 12px; overflow: hidden; text-align: left; }

.ss-w-ecard-idtext { display: flex; flex-direction: column; gap: 1px; min-width: 0; max-width: 100%; }
.ss-w-thumb { width: 54px; height: 54px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 16px; font-weight: 700; color: #fff; background-color: var(--ss-w-nav); background-size: cover; background-position: center; box-shadow: 0 1px 3px rgba(0,0,0,.14); }
.ss-w-thumb.ss-w-team { border-radius: 12px; }
.ss-w-ecard[data-kind="player"] .ss-w-thumb { background-color: var(--ss-w-accent); }
.ss-w-nm { font-weight: 680; line-height: 1.15; overflow-wrap: anywhere; }
.ss-w-sub { font-size: 11px; color: var(--ss-w-faint); overflow-wrap: anywhere; }

/* bare card (no stat scopes): simple avatar + name row */
.ss-w-ecard-bare { display: flex; align-items: center; }
.ss-w-ecard-bare .ss-w-ecard-hd { padding: 10px 12px; }

.ss-w-ecard-hd { display: flex; align-items: center; gap: 11px; padding: 11px 13px; }
.ss-w-ecard-hd .ss-w-thumb { width: 40px; height: 40px; font-size: 13px; box-shadow: none; }
.ss-w-ecard-hd .ss-w-thumb.ss-w-team { border-radius: 10px; }
.ss-w-ecard-meta { display: inline-flex; align-items: center; gap: 7px; flex: none; align-self: flex-start; margin-left: auto; }
.ss-w-ecard-meta .ss-w-ecard-season { margin: 0; }

/* scope tabs: reuse the underline pattern, relocated above the strip */
.ss-w-ecard-scopes { display: flex; align-items: stretch; gap: 2px; padding: 0 11px; border-top: 1px solid var(--ss-w-line); flex-wrap: wrap; }
.ss-w-ecard-scope { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 620; color: var(--ss-w-faint); background: none; border: none; cursor: pointer; padding: 7px 8px; margin-bottom: -1px; border-bottom: 2px solid transparent; }
.ss-w-ecard-scope[aria-selected="true"] { color: var(--ss-w-ink); border-bottom-color: var(--ss-w-accent); }
.ss-w-ecard-scope .ss-w-ecard-crest { width: 14px; height: 14px; }
.ss-w-ecard-scopes + .ss-w-ecard-strip { border-top: none; }

.ss-w-ecard-crest { width: 15px; height: 15px; flex: none; display: block; border-radius: 4px; background-size: cover; background-position: center; }
.ss-w-ecard-season { flex: none; margin-left: auto; align-self: center; margin-bottom: 5px; font-size: 10.5px; font-weight: 700; color: var(--ss-w-accent); background: color-mix(in srgb, var(--ss-w-accent) 13%, var(--ss-w-panel)); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }

/* stat strip: 1px gap over a line-colored ground paints hairlines between cells, wrap-safe */
.ss-w-ecard-strip { display: grid; gap: 1px; background: var(--ss-w-line); border-top: 1px solid var(--ss-w-line); }
.ss-w-ecard-cell { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 4px; padding: 10px 4px 11px; background: var(--ss-w-panel); }
.ss-w-ecard-cval { height: 20px; display: flex; align-items: center; font-size: 17px; font-weight: 720; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.ss-w-ecard-cval .ss-w-form { width: 42px; }
.ss-w-ecard-clabel { font-size: 9px; text-transform: uppercase; letter-spacing: .05em; color: var(--ss-w-faint); font-weight: 600; font-variant-numeric: tabular-nums; }

.ss-w-form { justify-self: end; display: flex; height: 6px; width: 48px; border-radius: 4px; overflow: hidden; gap: 2px; }
.ss-w-form span { display: block; border-radius: 2px; }
.ss-w-form-w { background: var(--ss-w-pos); }
.ss-w-form-d { background: var(--ss-w-faint); }
.ss-w-form-l { background: var(--ss-w-neg); }

.ss-w-cards-more { align-self: flex-start; font-size: 11.5px; font-weight: 560; color: var(--ss-w-accent); background: none; border: none; cursor: pointer; padding: 3px 2px; }
.ss-w-cards-more:hover:not(:disabled) { text-decoration: underline; }
.ss-w-cards-more:disabled { opacity: .5; cursor: default; }

/* betting insights */
.ss-w-binsights { display: flex; flex-direction: column; gap: 7px; }
.ss-w-binsight { background: var(--ss-w-panel); border: 1px solid var(--ss-w-line); border-radius: 12px; border-left: 3px solid var(--ss-w-accent); padding: 9px 11px; display: flex; flex-direction: column; gap: 8px; }

/* header, competition-hero fallback: comp on the left, live badge + kickoff + pin on the right,
   all on one line (used when there is no fixture, and by MarketOddsCardList) */
.ss-w-bi-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; padding-bottom: 7px; border-bottom: 1px solid var(--ss-w-line); }
.ss-w-bi-header-left { display: inline-flex; align-items: center; gap: 6px; min-width: 0; flex: 1; font-size: 12.5px; font-weight: 650; color: var(--ss-w-ink); }
.ss-w-bi-header-right { display: inline-flex; align-items: center; gap: 8px; flex: none; }
/* two-tier header: a quiet meta line (competition + kickoff + match pin) stacked above the
   fixture, so long club names get the whole width to themselves and stop truncating (u350) */
.ss-w-bi-head { display: flex; flex-direction: column; gap: 6px; padding-bottom: 7px; border-bottom: 1px solid var(--ss-w-line); }
.ss-w-bi-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.ss-w-bi-meta-left { display: inline-flex; align-items: center; gap: 5px; min-width: 0; flex: 1; }
.ss-w-bi-meta-right { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.ss-w-bi-fixture-line { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 13px; font-weight: 700; color: var(--ss-w-ink); }
.ss-w-bi-comp { font-size: 10.5px; color: var(--ss-w-faint); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-w-bi-kick { font-size: 10.5px; font-weight: 600; color: var(--ss-w-faint); white-space: nowrap; flex: none; }
.ss-w-bi-live { font-size: 8.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: #c0392b; border-radius: 4px; padding: 1px 5px; display: inline-flex; align-items: center; gap: 4px; flex: none; }
.ss-w-bi-live-dot { width: 5px; height: 5px; border-radius: 50%; background: #fff; }
.ss-w-bi-floor { font-size: 8.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ss-w-faint); background: var(--ss-w-bubble); border: 1px solid var(--ss-w-line); border-radius: 4px; padding: 1px 5px; display: inline-flex; align-items: center; align-self: flex-start; flex: none; }

/* crests -- CSS background-image on a span, never <img> (matches .ss-w-ecard-crest precedent) */
.ss-w-bi-comp-logo { width: 16px; height: 16px; flex: none; display: block; border-radius: 50%; object-fit: contain; }
.ss-w-bi-crest { width: 24px; height: 24px; flex: none; display: block; border-radius: 50%; object-fit: contain; }
.ss-w-bi-crest-mono { display: grid; place-items: center; font-size: 10px; font-weight: 700; color: var(--ss-w-accent); background: color-mix(in srgb, var(--ss-w-accent) 16%, var(--ss-w-panel)); }

/* fixture atoms -- crest-flanked team pair; shared by the insight fixture line and MarketOddsCardList */
.ss-w-bi-team { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-w-bi-vs { font-size: 10px; font-weight: 600; color: var(--ss-w-faint); flex: none; }
.ss-w-bi-fixture-txt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* shared crest-flanked team row (MarketOddsCardList); matches .ss-w-bi-fixture-line's hero weight
   so the fixture reads the same on both card types (u350) */
.ss-w-bi-fixture { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 1; font-size: 13px; font-weight: 700; color: var(--ss-w-ink); }

/* row 2, two-tier: the market label owns a full-width line above the pick row (selection grows
   left, odds + slip + pin sit right), so neither the market name nor the fixture clips (u350) */
.ss-w-bi-action { display: flex; flex-direction: column; gap: 6px; }
.ss-w-bi-market { font-size: 12px; font-weight: 600; line-height: 1.25; color: var(--ss-w-faint); min-width: 0; }
.ss-w-bi-pick-row { display: flex; align-items: center; gap: 9px; }
.ss-w-bi-sel { flex: 1; min-width: 0; font-size: 13px; font-weight: 700; line-height: 1.2; color: var(--ss-w-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-w-bi-odds { flex: none; margin-left: auto; display: flex; align-items: baseline; justify-content: flex-end; gap: 5px; }
.ss-w-bi-odds b { font-size: 20px; font-family: ui-monospace, monospace; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ss-w-accent); line-height: 1.05; }
.ss-w-bi-book { font-size: 9.5px; color: var(--ss-w-faint); }
.ss-w-bi-pick-row .ss-w-slip { flex: none; }

/* row 3: bar-chart glyph + reasoning prose, in a subtle strip */
.ss-w-bi-reason { display: flex; align-items: flex-start; gap: 8px; background: var(--ss-w-bubble); border-radius: 10px; padding: 8px 10px; }
.ss-w-bi-chart { flex: none; width: 13px; height: 12px; margin-top: 2px; opacity: .55;
  background:
    linear-gradient(var(--ss-w-accent), var(--ss-w-accent)) left / 3px 55% no-repeat,
    linear-gradient(var(--ss-w-accent), var(--ss-w-accent)) center / 3px 100% no-repeat,
    linear-gradient(var(--ss-w-accent), var(--ss-w-accent)) right / 3px 75% no-repeat;
  background-position: left bottom, center bottom, right bottom;
}
.ss-w-bi-text { flex: 1; min-width: 0; font-size: 12px; line-height: 1.45; color: var(--ss-w-ink); }
.ss-w-bi-disc { font-size: 10px; font-style: italic; color: var(--ss-w-faint); }

/* market odds card */
.ss-w-mocards { display: flex; flex-direction: column; gap: 7px; }
.ss-w-mocard { background: var(--ss-w-panel); border: 1px solid var(--ss-w-line); border-radius: 12px; border-left: 3px solid var(--ss-w-accent); padding: 9px 11px; display: flex; flex-direction: column; gap: 6px; }
/* Embedded inside the market accordion, which already provides the card frame + accent rail --
   drop the inner frame so odds rows aren't double-bordered. */
.ss-w-mocard--bare { border: none; border-radius: 0; padding: 0; background: none; }
.ss-w-mo-sub { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ss-w-mo-teams { font-size: 13px; font-weight: 650; color: var(--ss-w-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-w-mo-market-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.ss-w-mo-market { font-size: 11.5px; font-weight: 600; color: var(--ss-w-faint); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-w-mo-tag { flex: none; font-size: 10.5px; font-weight: 700; line-height: 1.4; color: var(--ss-w-accent); background: color-mix(in srgb, var(--ss-w-accent) 12%, transparent); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.ss-w-mo-more { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; background: none; border: none; color: var(--ss-w-accent); font: inherit; font-size: 11.5px; font-weight: 600; padding: 2px 0; cursor: pointer; }
.ss-w-mo-more:hover { text-decoration: underline; }
.ss-w-mo-more-chev { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .15s ease; }
.ss-w-mo-more-chev-up { transform: translateY(1px) rotate(-135deg); }
.ss-w-mo-rows { display: flex; flex-direction: column; gap: 4px; }
/* Stage 4: live card score+minute in header (R18). */
.ss-w-bi-score { font-size: 13px; font-weight: 700; color: var(--ss-w-ink); white-space: nowrap; }
.ss-w-bi-min { font-size: 11px; font-weight: 600; color: var(--ss-w-faint); white-space: nowrap; }
/* D12: closed state message row; D13: stale-price notice. */
.ss-w-mo-closed { padding: 6px 0; font-size: 12.5px; color: var(--ss-w-faint); }
.ss-w-mo-stale { margin: 0; font-size: 11px; color: var(--ss-w-faint); }
/* The card's stat, in the Live tab accordion's insight style. No row below it is marked (R17). */
.ss-w-mo-stat { font-size: 12px; color: var(--ss-w-ink); background: color-mix(in srgb, var(--ss-w-accent) 9%, var(--ss-w-panel)); border-radius: 8px; padding: 7px 9px; }
.ss-w-mo-row { display: flex; align-items: center; gap: 10px; padding: 4px 0; border-bottom: 1px dashed var(--ss-w-line); }
.ss-w-mo-row:last-child { border-bottom: none; }
.ss-w-mo-sel { font-size: 12.5px; font-weight: 600; color: var(--ss-w-ink); flex: 1; min-width: 0; }
.ss-w-mo-price { margin-left: auto; font-family: ui-monospace, monospace; font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 700; color: var(--ss-w-accent); }
/* Movement: BOTH directions share --ss-w-faint on purpose. Green-good/red-bad would frame a
   shortening price as a discount, which inverts what it actually means for the bettor. */
.ss-w-move { display: inline-flex; align-items: baseline; gap: 4px; color: var(--ss-w-faint); }
.ss-w-move-prev { font-family: ui-monospace, monospace; font-variant-numeric: tabular-nums; font-size: 12px; text-decoration: line-through; }
.ss-w-move-arrow { font-size: 9px; line-height: 1; }
/* margin-left:auto is row layout, not badge styling -- it belongs to the market-odds row, which is
   a flex row, and must NOT follow the badge into the insight card's odds column. */
.ss-w-mo-row .ss-w-move { margin-left: auto; }
.ss-w-mo-row .ss-w-move + .ss-w-mo-price { margin-left: 0; }
.ss-w-mo-row .ss-w-slip { margin: 0; flex: none; }
.ss-w-mo-foot { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--ss-w-faint); }
.ss-w-allmk { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; padding: 6px 0; background: none; border: 0; font: inherit; font-size: 11.5px; font-weight: 700; color: var(--ss-w-accent); white-space: nowrap; cursor: pointer; }
.ss-w-allmk svg { width: 13px; height: 13px; flex: none; }
.ss-w-allmk:hover { text-decoration: underline; }
.ss-w-allmk--chip { margin-left: 0; gap: 3px; height: 22px; padding: 0 6px; border: 1px solid var(--ss-w-line); border-radius: 11px; font-size: 11px; font-variant-numeric: tabular-nums; }
.ss-w-allmk--chip:hover { text-decoration: none; border-color: var(--ss-w-accent); }

/* combo card (onboarding presets, spec C5): legs in kickoff order, then the server's
   multiplication line. Same card family as .ss-w-mocard / .ss-w-binsight. */
.ss-w-combos { display: flex; flex-direction: column; gap: 7px; }
.ss-w-combo { background: var(--ss-w-panel); border: 1px solid var(--ss-w-line); border-radius: 12px; border-left: 3px solid var(--ss-w-accent); padding: 4px 11px 10px; display: flex; flex-direction: column; gap: 8px; }
.ss-w-combo-legs { list-style: none; display: flex; flex-direction: column; }
.ss-w-combo-leg { display: flex; flex-direction: column; gap: 5px; padding: 8px 0; border-bottom: 1px dashed var(--ss-w-line); }
.ss-w-combo-leg:last-child { border-bottom: none; padding-bottom: 2px; }
.ss-w-combo-leg-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.ss-w-combo-leg-pick { display: flex; align-items: center; gap: 9px; min-width: 0; }
.ss-w-combo-leg-what { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ss-w-combo-leg-market { font-size: 11.5px; font-weight: 600; line-height: 1.25; color: var(--ss-w-faint); overflow-wrap: anywhere; }
.ss-w-combo-leg-sel { font-size: 13px; font-weight: 700; line-height: 1.2; color: var(--ss-w-ink); overflow-wrap: anywhere; }
.ss-w-combo-leg-price { flex: none; font-family: ui-monospace, monospace; font-variant-numeric: tabular-nums; font-size: 17px; font-weight: 800; line-height: 1.05; color: var(--ss-w-accent); }
.ss-w-combo-leg-pick .ss-w-slip { flex: none; }
.ss-w-combo-leg-stat { font-size: 12px; line-height: 1.45; color: var(--ss-w-ink); background: var(--ss-w-bubble); border-radius: 8px; padding: 6px 9px; }
.ss-w-combo-math { font-family: ui-monospace, monospace; font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 700; line-height: 1.4; color: var(--ss-w-ink); text-align: right; background: color-mix(in srgb, var(--ss-w-accent) 9%, var(--ss-w-panel)); border-radius: 8px; padding: 8px 10px; overflow-wrap: anywhere; }
.ss-w-combo-note { font-size: 11px; line-height: 1.4; color: var(--ss-w-faint); }
.ss-w-combo-change { align-self: flex-start; min-height: 36px; padding: 6px 12px; font: inherit; font-size: 12px; font-weight: 650; color: var(--ss-w-accent); background: var(--ss-w-panel); border: 1px solid var(--ss-w-accent); border-radius: 16px; cursor: pointer; }
.ss-w-combo-addall { flex-direction: column; align-items: stretch; gap: 6px; }
.ss-w-combo-addall .ss-w-slip-btn { min-height: 44px; padding: 10px 16px; font-size: 14px; font-weight: 650; border-radius: 22px; white-space: normal; }
.ss-w-combo-addall .ss-w-toast { position: static; width: auto; max-width: none; font-size: 12px; box-shadow: none; }

/* onboarding presets stage 2: the two tools (spec Stage 2 Behaviour, boards 1c and 2c). A sheet
   over the message list, inside .ss-w-chat-layer; the body scrolls and the builder's Send sits in
   the footer, so it stays visible on a phone. Colours come from the theme tokens. */
.ss-w-tool-backdrop { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; justify-content: flex-end; background: rgba(0,0,0,.35); }
.ss-w-tool { display: flex; flex-direction: column; min-height: 0; max-height: 100%; background: var(--ss-w-panel); color: var(--ss-w-ink); border-top: 1px solid var(--ss-w-line); border-radius: 16px 16px 0 0; box-shadow: 0 -8px 24px rgba(0,0,0,.18); outline: none; }
.ss-w-tool-head { flex: none; display: flex; align-items: center; gap: 8px; padding: 12px 14px 8px; }
.ss-w-tool-title { flex: 1; font-size: 15px; font-weight: 700; line-height: 1.3; }
.ss-w-tool-close { flex: none; width: 36px; height: 36px; display: grid; place-items: center; font-size: 16px; color: var(--ss-w-faint); background: var(--ss-w-bubble); border: none; border-radius: 50%; cursor: pointer; }
.ss-w-tool-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 12px; padding: 4px 14px 14px; }
.ss-w-tool-body > * { flex: none; }
.ss-w-tool-foot { flex: none; padding: 10px 14px 12px; border-top: 1px solid var(--ss-w-line); }
.ss-w-tool-row { display: flex; flex-direction: column; gap: 8px; padding: 10px 11px; border: 1px solid var(--ss-w-line); border-left: 3px solid var(--ss-w-accent); border-radius: 12px; }
.ss-w-tool-ask { font-size: 14px; font-weight: 650; line-height: 1.7; color: var(--ss-w-ink); overflow-wrap: anywhere; }
.ss-w-tool-num { position: relative; display: inline-block; vertical-align: middle; margin: 0 2px; font-variant-numeric: tabular-nums; font-weight: 800; color: var(--ss-w-accent); }
.ss-w-tool-num-size { display: block; font-size: max(16px, 1em); user-select: none; -webkit-user-select: none; visibility: hidden; box-sizing: border-box; min-width: 44px; min-height: 32px; padding: 6px 26px 6px 10px; line-height: 1.3; white-space: pre; }
.ss-w-tool-num-select { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0 22px 0 10px; font: inherit; font-size: max(16px, 1em); font-variant-numeric: tabular-nums; font-weight: 800; color: var(--ss-w-accent); background-color: color-mix(in srgb, var(--ss-w-accent) 10%, var(--ss-w-panel)); border: 1.5px solid color-mix(in srgb, var(--ss-w-accent) 65%, var(--ss-w-line)); border-radius: 8px; cursor: pointer; appearance: none; -webkit-appearance: none; }
.ss-w-tool-num::after { content: ""; position: absolute; right: 9px; top: 50%; width: 5px; height: 5px; margin-top: -4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); pointer-events: none; }
.ss-w-tool-num-select:focus-visible { outline: 2px solid var(--ss-w-accent); outline-offset: 2px; }
.ss-w-tool-num-select option { font-weight: 600; color: var(--ss-w-ink); background: var(--ss-w-panel); }
.ss-w-tool-num-select option:disabled { color: var(--ss-w-faint); }
.ss-w-tool-picks { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.ss-w-tool-pick { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; padding: 5px 8px; font-size: 12px; line-height: 1.35; background: var(--ss-w-bubble); border-radius: 8px; }
.ss-w-tool-pick-match { grid-column: 1; font-weight: 650; color: var(--ss-w-ink); overflow-wrap: anywhere; }
.ss-w-tool-pick-sel { grid-column: 1; color: var(--ss-w-faint); overflow-wrap: anywhere; }
.ss-w-tool-pick-kick { grid-column: 1; font-size: 11px; color: var(--ss-w-faint); }
.ss-w-tool-pick-price { grid-column: 2; grid-row: 1 / span 3; align-self: center; font-family: ui-monospace, monospace; font-variant-numeric: tabular-nums; font-size: 14px; font-weight: 800; color: var(--ss-w-accent); }
.ss-w-tool-math { padding: 6px 8px; font-family: ui-monospace, monospace; font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 700; text-align: right; color: var(--ss-w-ink); background: color-mix(in srgb, var(--ss-w-accent) 9%, var(--ss-w-panel)); border-radius: 8px; overflow-wrap: anywhere; }
.ss-w-tool-unavailable { padding: 6px 8px; font-size: 12px; color: var(--ss-w-faint); border: 1px dashed var(--ss-w-line); border-radius: 8px; }
.ss-w-tool-row--ask { flex-direction: row; align-items: center; gap: 10px; border-left-width: 1px; }
.ss-w-tool-icon { flex: none; font-size: 20px; line-height: 1; }
.ss-w-tool-main { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.ss-w-tool-ready { padding: 2px 8px; font-size: 11.5px; font-weight: 650; color: var(--ss-w-accent); background: color-mix(in srgb, var(--ss-w-accent) 12%, transparent); border-radius: 10px; }
.ss-w-tool-go { flex: none; width: 44px; height: 44px; display: grid; place-items: center; font-size: 17px; color: #fff; background: var(--ss-w-accent); border: none; border-radius: 50%; cursor: pointer; }
.ss-w-tool-go:disabled { color: var(--ss-w-faint); background: var(--ss-w-bubble); cursor: not-allowed; }
.ss-w-tool-go:focus-visible { outline: 2px solid var(--ss-w-accent); outline-offset: 2px; }
.ss-w-tool-send { align-self: flex-end; min-height: 40px; padding: 8px 18px; font: inherit; font-size: 13px; font-weight: 700; color: #fff; background: var(--ss-w-accent); border: none; border-radius: 20px; cursor: pointer; }
.ss-w-tool-send:disabled { color: var(--ss-w-faint); background: var(--ss-w-bubble); cursor: not-allowed; }
.ss-w-tool-foot .ss-w-tool-send { width: 100%; }
.ss-w-tool-section { display: flex; flex-direction: column; gap: 6px; }
.ss-w-tool-label { font-size: 11.5px; font-weight: 650; color: var(--ss-w-faint); }
.ss-w-tool-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ss-w-tool-chip { min-width: 52px; min-height: 36px; padding: 6px 10px; font: inherit; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ss-w-ink); background: var(--ss-w-panel); border: 1px solid var(--ss-w-line); border-radius: 18px; cursor: pointer; }
.ss-w-tool-chip[aria-pressed="true"] { color: #fff; background: var(--ss-w-accent); border-color: var(--ss-w-accent); }
.ss-w-tool-stepper { display: inline-flex; align-items: center; gap: 10px; }
.ss-w-tool-step { width: 40px; height: 40px; display: grid; place-items: center; font: inherit; font-size: 18px; font-weight: 700; color: var(--ss-w-accent); background: var(--ss-w-panel); border: 1px solid var(--ss-w-line); border-radius: 50%; cursor: pointer; }
.ss-w-tool-step:disabled { opacity: .5; cursor: not-allowed; }
.ss-w-tool-count { min-width: 24px; text-align: center; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* onboarding presets stage 2: the chat layer and the speed dial (spec Stage 2 Behaviour). The
   layer is the message list's positioned box (P6), so the dial sits against the list's bottom
   right and rises with the composer: right 8px puts the 44px button's centre on Send's (12px
   padding + 18px), bottom 10px is above the composer's top border. While the button shows the list
   gets 54px more bottom padding so its last message can scroll clear. */
.ss-w-chat-layer { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.ss-w-chat-layer[data-dial] .ss-w-list { padding-bottom: 68px; }
.ss-w-dial { position: absolute; left: 12px; right: 8px; bottom: 10px; z-index: 2; display: flex; flex-direction: column-reverse; align-items: flex-end; gap: 8px; pointer-events: none; }
.ss-w-dial-btn, .ss-w-dial-pill { pointer-events: auto; }
.ss-w-dial-btn { position: relative; flex: none; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; font-size: 20px; color: var(--ss-w-accent); background: var(--ss-w-panel); border: 1px solid color-mix(in srgb, var(--ss-w-accent) 40%, var(--ss-w-line)); border-radius: 50%; box-shadow: 0 4px 14px rgba(0,0,0,.18); cursor: pointer; }
.ss-w-dial-btn[aria-expanded="true"] { color: var(--ss-w-panel); background: var(--ss-w-accent); border-color: var(--ss-w-accent); }
.ss-w-dial-btn:focus-visible, .ss-w-dial-pill:focus-visible { outline: 2px solid var(--ss-w-accent); outline-offset: 2px; }
.ss-w-dial-icon { grid-area: 1 / 1; display: grid; place-items: center; transition: transform 200ms ease, opacity 200ms ease; }
.ss-w-dial-icon--close { opacity: 0; transform: rotate(-90deg); }
.ss-w-dial-btn[aria-expanded="true"] .ss-w-dial-icon--open { opacity: 0; transform: rotate(90deg); }
.ss-w-dial-btn[aria-expanded="true"] .ss-w-dial-icon--close { opacity: 1; transform: none; }
.ss-w-dial-dot { position: absolute; top: 3px; right: 3px; width: 10px; height: 10px; background: var(--ss-w-accent); border: 2px solid var(--ss-w-panel); border-radius: 50%; }
.ss-w-dial-pills { max-width: 100%; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ss-w-dial-pill { max-width: 100%; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px 6px 12px; font: inherit; font-size: 12.5px; font-weight: 650; line-height: 1.25; text-align: left; white-space: normal; overflow-wrap: anywhere; color: var(--ss-w-ink); background: var(--ss-w-panel); border: 1px solid color-mix(in srgb, var(--ss-w-accent) 35%, var(--ss-w-line)); border-radius: 22px; box-shadow: 0 4px 14px rgba(0,0,0,.16); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(14px) scale(.5); transform-origin: bottom right; transition: opacity 200ms ease, transform 200ms ease, visibility 0s linear 200ms; }
.ss-w-dial-pill svg { flex: none; font-size: 18px; color: var(--ss-w-accent); }
.ss-w-dial-pill-label { min-width: 0; }
.ss-w-dial-pills[data-open] .ss-w-dial-pill { opacity: 1; visibility: visible; transform: none; transition: opacity 200ms ease, transform 200ms ease, visibility 0s; }
@media (prefers-reduced-motion: reduce) {
  .ss-w-dial-pill { transform: none; transition: opacity 200ms ease, visibility 0s linear 200ms; }
  .ss-w-dial-pills[data-open] .ss-w-dial-pill { transition: opacity 200ms ease, visibility 0s; }
  .ss-w-dial-icon { transition: opacity 200ms ease; }
  .ss-w-dial-icon--close, .ss-w-dial-btn[aria-expanded="true"] .ss-w-dial-icon--open { transform: none; }
}

/* Compact price list (D16): three or more cards of one turn, one row per fixture. Team names wrap
   to a second line and are never cut; the time sits above the match pin, with no column of its own. */
.ss-w-mol { background: var(--ss-w-panel); border: 1px solid var(--ss-w-line); border-radius: 12px; border-left: 3px solid var(--ss-w-accent); padding: 9px 11px; display: flex; flex-direction: column; gap: 6px; }
.ss-w-mol-head, .ss-w-mol-row { display: grid; grid-template-columns: minmax(0, 1fr) 126px 46px; align-items: center; gap: 4px; }
.ss-w-mol-market { font-size: 11.5px; font-weight: 600; color: var(--ss-w-faint); min-width: 0; overflow-wrap: anywhere; }
.ss-w-mol-cols, .ss-w-mol-cells { display: grid; gap: 4px; }
.ss-w-mol-col { font-size: 10px; font-weight: 700; color: var(--ss-w-faint); text-align: center; overflow-wrap: break-word; min-width: 0; }
.ss-w-mol-comp { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ss-w-faint); padding-top: 4px; }
.ss-w-mol-row { padding: 6px 0; border-bottom: 1px dashed var(--ss-w-line); min-height: 48px; box-sizing: border-box; }
.ss-w-mol-row:focus { outline: none; }
.ss-w-mol-row:focus-visible { outline: 2px solid var(--ss-w-accent); outline-offset: 2px; border-radius: 6px; }
.ss-w-mol-tick { font-family: inherit; font-size: 9.5px; font-weight: 700; line-height: 1.1; }
.ss-w-vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ss-w-mol-group .ss-w-mol-row:last-child { border-bottom: none; }
.ss-w-mol-fx { display: flex; flex-direction: column; gap: 3px; min-width: 0; background: none; border: none; padding: 0; text-align: left; font: inherit; color: inherit; }
.ss-w-mol-team { display: flex; align-items: center; gap: 5px; min-width: 0; }
.ss-w-mol-team > * { flex: none; }
.ss-w-mol-team > .ss-w-mol-nm { flex: 1 1 auto; }
.ss-w-mol-nm { font-size: 12.5px; font-weight: 600; color: var(--ss-w-ink); overflow-wrap: break-word; hyphens: manual; line-height: 1.2; min-width: 0; }
.ss-w-mol-mkt { font-size: 10.5px; font-weight: 600; color: var(--ss-w-faint); overflow-wrap: anywhere; }
.ss-w-mol-cells { align-items: start; }
.ss-w-mol-cell { display: flex; flex-direction: column; align-items: stretch; gap: 2px; min-width: 0; }
.ss-w-mol-cell > .ss-w-mol-price { flex: none; }
.ss-w-mol-cell .ss-w-move { justify-content: center; gap: 2px; }
.ss-w-mol-cell .ss-w-move-prev { font-family: inherit; font-variant-numeric: tabular-nums; font-size: 10px; }
/* A 39 px cell fits four characters at 13 px: five step down to 11.5 px and six to 10.5 px. */
.ss-w-mol-cell--wide .ss-w-mol-price, .ss-w-mol-cell--wide .ss-w-slip-btn.ss-w-slip-btn--price { font-size: 11.5px; }
.ss-w-mol-cell--wider .ss-w-mol-price, .ss-w-mol-cell--wider .ss-w-slip-btn.ss-w-slip-btn--price { font-size: 10.5px; }
.ss-w-mol-cell .ss-w-slip { margin: 0; flex: none; min-width: 0; }
.ss-w-mol-price, .ss-w-slip-btn--price { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 5px 0; border-radius: 8px; border: 1px solid var(--ss-w-line); background: var(--ss-w-panel); font-family: inherit; font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 700; color: var(--ss-w-accent); }
.ss-w-slip-btn.ss-w-slip-btn--price { width: 100%; cursor: pointer; background: var(--ss-w-panel); color: var(--ss-w-accent); border: 1px solid var(--ss-w-line); border-radius: 8px; padding: 5px 0; font-size: 13px; font-weight: 700; box-shadow: none; }
.ss-w-slip-btn--price:hover:not(:disabled) { border-color: var(--ss-w-accent); }
.ss-w-slip-btn--price[data-settled] { color: var(--ss-w-faint); }
.ss-w-mol-lab { font-family: inherit; font-size: 9.5px; font-weight: 600; color: var(--ss-w-faint); line-height: 1.1; text-align: center; overflow-wrap: anywhere; }
.ss-w-mol-side { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ss-w-mol-when { font-size: 9.5px; font-weight: 700; color: var(--ss-w-faint); font-variant-numeric: tabular-nums; text-align: center; line-height: 1.15; }
.ss-w-mol-side--live .ss-w-mol-when { color: var(--ss-w-neg); }

/* odds movement card */
.ss-w-omcards { display: flex; flex-direction: column; gap: 7px; }
.ss-w-omcard { background: var(--ss-w-panel); border: 1px solid var(--ss-w-line); border-radius: 12px; border-left: 3px solid var(--ss-w-accent); padding: 9px 11px; display: flex; flex-direction: column; gap: 6px; }
.ss-w-om-head { display: flex; align-items: center; gap: 8px; }
.ss-w-om-market { font-size: 13px; font-weight: 700; color: var(--ss-w-ink); }
.ss-w-om-tag { margin-left: auto; flex: none; font-size: 9px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ss-w-faint); border: 1px solid var(--ss-w-line); border-radius: 8px; padding: 2px 7px; }
.ss-w-om-fixture { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ss-w-faint); min-width: 0; }
.ss-w-om-comp { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-w-om-sel { font-size: 12.5px; font-weight: 600; color: var(--ss-w-ink); }
.ss-w-om-chart { display: block; width: 100%; height: auto; }
/* Single neutral accent in BOTH directions, deliberately. Colouring a shortening price green
   frames it as a discount, which inverts what it means for the bettor -- the same reason
   .ss-w-move keeps both directions on --ss-w-faint. */
.ss-w-om-line { stroke: var(--ss-w-accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ss-w-om-dot { fill: var(--ss-w-accent); }
.ss-w-om-grid { stroke: var(--ss-w-line); stroke-width: 1; }
.ss-w-om-ylab, .ss-w-om-xlab { fill: var(--ss-w-faint); font-size: 9px; font-family: ui-monospace, monospace; }
.ss-w-om-empty { font-size: 11.5px; color: var(--ss-w-faint); padding: 6px 0; }
.ss-w-om-foot { display: flex; align-items: center; gap: 14px; font-size: 11.5px; color: var(--ss-w-faint); }
.ss-w-om-foot b { font-family: ui-monospace, monospace; font-variant-numeric: tabular-nums; font-size: 13px; color: var(--ss-w-ink); }
.ss-w-om-excl { font-size: 10.5px; color: var(--ss-w-faint); }
.ss-w-om-susp { font-size: 11px; font-weight: 600; color: #c0392b; }
.ss-w-om-disc { font-size: 10px; font-style: italic; color: var(--ss-w-faint); }

/* action buttons */
.ss-w-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
/* text-align is explicit because a <button> defaults to center, and a follow-up question long
   enough to wrap then sets its second line ragged on both sides. */
.ss-w-abtn { font-size: 12px; font-weight: 560; color: var(--ss-w-accent); background: var(--ss-w-panel); border: 1px solid var(--ss-w-accent); border-radius: 16px; padding: 6px 12px; cursor: pointer; text-align: left; }
.ss-w-abtn:disabled { opacity: .5; cursor: default; }
.ss-w-abtn-shimmer { width: 140px; height: 30px; border-radius: 16px; background: linear-gradient(90deg, var(--ss-w-bubble), var(--ss-w-line), var(--ss-w-bubble)); background-size: 200% 100%; animation: ss-w-shimmer 1.2s infinite; }
@keyframes ss-w-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* intent chips */
.ss-w-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ss-w-chip { font-size: 11.5px; font-weight: 550; color: var(--ss-w-ink); background: var(--ss-w-bubble); border: 1px solid var(--ss-w-line); border-radius: 14px; padding: 5px 11px; cursor: pointer; }

/* input */
.ss-w-input { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--ss-w-line); }
.ss-w-limit { padding: 10px 12px; border-top: 1px solid var(--ss-w-line); font-size: 13px; line-height: 1.4; color: var(--ss-w-ink); overflow-wrap: anywhere; }
.ss-w-limit:empty { padding: 0; border-top: 0; }
.ss-w-limit:focus { outline: none; }
.ss-w-limit:not(:empty) + .ss-w-input { border-top: none; }
.ss-w-textarea { flex: 1; resize: none; border: 1px solid var(--ss-w-line); border-radius: 12px; padding: 8px 10px; font: inherit; color: inherit; background: var(--ss-w-panel); max-height: 96px; }
.ss-w-textarea:disabled { opacity: .55; cursor: not-allowed; }
/* iOS Safari zooms the page when a focused field's font-size is < 16px. Bump it
   on touch devices only, so the desktop 13px design is unchanged. */
@media (pointer: coarse) {
  .ss-w-textarea { font-size: 16px; }
}
.ss-w-send { width: 36px; height: 36px; flex: none; border: none; border-radius: 50%; background: var(--ss-w-accent); color: #fff; cursor: pointer; display: grid; place-items: center; font-size: 16px; }
.ss-w-send:disabled { opacity: .45; cursor: not-allowed; }
.ss-w-stop-glyph { width: 11px; height: 11px; background: currentColor; border-radius: 2px; }

/* add to slip */
.ss-w-slip { position: relative; display: flex; }
.ss-w-slip-btn { font-size: 11.5px; font-weight: 620; color: var(--ss-w-cta-ink); background: var(--ss-w-cta); border: 1px solid var(--ss-w-cta); border-radius: 14px; padding: 5px 12px; cursor: pointer; white-space: nowrap; }
.ss-w-slip-btn:disabled { opacity: .6; cursor: default; background: var(--ss-w-bubble); color: var(--ss-w-faint); border-color: var(--ss-w-line); }
/* Anchored to the RIGHT of its (narrow) button wrapper and sized by content, growing leftward
   into the card -- inheriting the wrapper's width squeezes the text to one character per line.
   Every toast site (slip buttons, pin toggles) sits at the right edge of its row. */
.ss-w-toast { position: absolute; top: calc(100% + 6px); right: 0; z-index: 1; width: max-content; max-width: 210px; font-size: 11px; font-weight: 560; border-radius: 10px; padding: 5px 10px; overflow-wrap: anywhere; box-shadow: 0 4px 14px rgba(0,0,0,.14); }
.ss-w-toast-success { color: var(--ss-w-accent); background: color-mix(in srgb, var(--ss-w-accent) 14%, var(--ss-w-panel)); border: 1px solid color-mix(in srgb, var(--ss-w-accent) 30%, var(--ss-w-line)); }
.ss-w-toast-error { color: #c0392b; background: var(--ss-w-panel); border: 1px solid var(--ss-w-line); }

/* pin affordance */
.ss-w-pin-wrap { position: relative; display: inline-flex; flex: none; }
.ss-w-pin { flex: none; display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border-radius: 50%; background: none; border: 1px solid var(--ss-w-line); color: var(--ss-w-faint); cursor: pointer; }
.ss-w-pin svg { width: 12px; height: 12px; }
.ss-w-pin:hover { color: var(--ss-w-ink); border-color: var(--ss-w-faint); }
.ss-w-pin[data-on] { background: var(--ss-w-accent); border-color: var(--ss-w-accent); color: #fff; }
.ss-w-pin[data-on]:hover { background: var(--ss-w-accent); color: #fff; }
.ss-w-hist { flex: none; display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border-radius: 50%; background: none; border: 1px solid var(--ss-w-line); color: var(--ss-w-faint); cursor: pointer; }
.ss-w-hist svg { width: 12px; height: 12px; }
.ss-w-hist:hover { color: var(--ss-w-accent); border-color: var(--ss-w-accent); }

@media (prefers-reduced-motion: reduce) {
  .ss-w-abtn-shimmer { animation: none; }
}

/* greeting dashboard */
.ss-w-dash { display: flex; flex-direction: column; gap: 12px; padding: 4px 0; }
.ss-w-dash-head { display: flex; flex-direction: column; }
.ss-w-dash-title { font-size: 18px; font-weight: 700; line-height: 1.25; color: var(--ss-w-ink); }
.ss-w-dash-subtitle { font-size: 13px; color: var(--ss-w-faint); margin-top: 4px; }
.ss-w-dash-foot { font-size: 11px; color: var(--ss-w-faint); margin-top: 2px; }

.ss-w-dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ss-w-dash-tile--half { grid-column: span 1; }
.ss-w-dash-tile--full { grid-column: 1 / -1; }

.ss-w-dash-tile {
  display: flex; align-items: center; gap: 10px;
  padding: 12px; border-radius: 14px; border: 1px solid var(--ss-w-line);
  background: var(--ss-w-panel); text-align: left; cursor: pointer; width: 100%;
  color: inherit; font: inherit;
  min-width: 0;                      /* the panel is min(400px, 100vw - 40px): without this,
                                        a long Turkish title blows the column out */
}
.ss-w-dash-tile-icon { flex: none; display: grid; place-items: center; width: 28px; height: 28px; font-size: 22px; }
.ss-w-dash-emoji { line-height: 1; }
.ss-w-dash-tile-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.ss-w-dash-tile-title { min-width: 0; font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.ss-w-dash-tile-subtitle { min-width: 0; font-size: 11.5px; color: var(--ss-w-faint); overflow-wrap: anywhere; }
.ss-w-dash-tile-chevron { flex: none; margin-left: auto; width: 14px; height: 14px; color: var(--ss-w-faint); }

/* Badge + crests share their own row, below the title -- NOT the icon/chevron row. A
   nowrap badge (~70px) sitting beside icon+chevron in a ~180px half-span tile left the
   title column at ~22px wide, wrapping every title character-by-character. Here the row
   gets the body's full width, so a badge this size is comfortably inside it. */
.ss-w-dash-tile-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.ss-w-dash-tile-badge { flex: none; font-size: 10.5px; font-weight: 700; color: var(--ss-w-accent); background: color-mix(in srgb, var(--ss-w-accent) 13%, var(--ss-w-panel)); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }

.ss-w-dash-tile-crests { flex: none; display: flex; align-items: center; }
.ss-w-dash-tile-crest {
  width: 18px; height: 18px; border-radius: 50%;
  background-size: cover; background-position: center; background-color: var(--ss-w-bubble);
  margin-left: -6px; border: 2px solid var(--ss-w-panel);    /* overlapping stack, capped at 3 in DashboardTile */
}
.ss-w-dash-tile-crest:first-child { margin-left: 0; }

/* Market: default 2-column grid, tiles get the same accent rail as the other card
   families (.ss-w-binsight, .ss-w-mocard, .ss-w-omcard) so a market tile reads as
   part of that visual language rather than a plain unstyled button. */
.ss-w-dash--market .ss-w-dash-tile { border-left: 3px solid var(--ss-w-accent); }

/* Goal: one column of compact cards, 60px tall with the badge as a price column on the right.
   The value ink is accent mixed toward ink (as on the hero price): plain light accent on the
   panel is 3.9:1, under the 4.5:1 small text needs. */
.ss-w-dash--goal .ss-w-dash-grid { grid-template-columns: 1fr; }
.ss-w-dash--goal .ss-w-dash-tile { gap: 12px; min-height: 60px; padding: 8px 12px 8px 14px; border-radius: 8px; }
.ss-w-dash--goal .ss-w-dash-tile:hover { background: var(--ss-w-bubble); }
.ss-w-dash--goal .ss-w-dash-tile-icon { width: 24px; height: 24px; font-size: 20px; }
.ss-w-dash--goal .ss-w-dash-tile-body { gap: 1px; }
.ss-w-dash--goal .ss-w-dash-tile-title { font-size: 15px; line-height: 1.25; }
.ss-w-dash--goal .ss-w-dash-tile-subtitle { font-size: 13px; line-height: 1.3; overflow-wrap: break-word; }
.ss-w-dash-tile-value {
  flex: none; margin-left: auto; max-width: 40%; text-align: right;
  font-size: 16px; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--ss-w-accent) 70%, var(--ss-w-ink));
}

/* Discovery: tinted bento cards. Stacked (icon over text) so a two- or three-word title gets
   the tile's full width instead of the ~100px left of a horizontal icon+chevron -- that narrow
   column was wrapping "Most interesting angles" onto three lines. The chevron is dropped (the
   whole card is the tap target) and the badge + crest row is forced onto one line. */
.ss-w-dash--discovery .ss-w-dash-tile { flex-direction: column; align-items: stretch; gap: 8px; }
.ss-w-dash--discovery .ss-w-dash-tile-icon { align-self: flex-start; width: 32px; height: 32px; font-size: 26px; }
.ss-w-dash--discovery .ss-w-dash-tile-chevron { display: none; }
/* The full-span trends tile has the whole panel width, so its icon and title sit on one row
   (horizontal, centre-aligned) rather than stacking like the narrow half tiles. */
.ss-w-dash--discovery .ss-w-dash-tile--full { flex-direction: row; align-items: center; }
.ss-w-dash--discovery .ss-w-dash-tile--full .ss-w-dash-tile-icon { align-self: center; }
.ss-w-dash--discovery .ss-w-dash-tile-meta { flex-wrap: nowrap; }
.ss-w-dash--discovery .ss-w-dash-tile-crest { width: 22px; height: 22px; }
/* Tints mix a hue into the live panel rather than hardcoding a light pastel, so a dark
   operator surface (e.g. --ss-w-panel set from a navy `surface` brand color) yields a
   readable tinted-dark card instead of near-white ink on a fixed light pastel. */
.ss-w-dash--discovery .ss-w-dash-tile:nth-child(1) { background: color-mix(in srgb, #34c759 10%, var(--ss-w-panel)); }
.ss-w-dash--discovery .ss-w-dash-tile:nth-child(2) { background: color-mix(in srgb, #3a82f6 10%, var(--ss-w-panel)); }
.ss-w-dash--discovery .ss-w-dash-tile:nth-child(3) { background: color-mix(in srgb, #f5a623 10%, var(--ss-w-panel)); }
.ss-w-dash--discovery .ss-w-dash-tile:nth-child(4) { background: color-mix(in srgb, #a855f7 10%, var(--ss-w-panel)); }
/* A hero tile would take the first tint position; count only regular tiles where `of S` parses. */
.ss-w-dash--discovery .ss-w-dash-tile:nth-child(1 of :not(.ss-w-dash-hero)) { background: color-mix(in srgb, #34c759 10%, var(--ss-w-panel)); }
.ss-w-dash--discovery .ss-w-dash-tile:nth-child(2 of :not(.ss-w-dash-hero)) { background: color-mix(in srgb, #3a82f6 10%, var(--ss-w-panel)); }
.ss-w-dash--discovery .ss-w-dash-tile:nth-child(3 of :not(.ss-w-dash-hero)) { background: color-mix(in srgb, #f5a623 10%, var(--ss-w-panel)); }
.ss-w-dash--discovery .ss-w-dash-tile:nth-child(4 of :not(.ss-w-dash-hero)) { background: color-mix(in srgb, #a855f7 10%, var(--ss-w-panel)); }

/* Hero: the personalized lead tile. Declared after the layout rules and at three-class
   specificity so it keeps one look in every layout -- no market rail, no goal pill, no
   discovery tint or stacking. Colours derive from accent/panel/ink so an operator surface
   and dark mode both work without their own rules. */
.ss-w-dash .ss-w-dash-grid .ss-w-dash-hero {
  display: flex; flex-direction: column; align-items: stretch; gap: 10px;
  padding: 12px 14px 14px; border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--ss-w-accent) 38%, var(--ss-w-line));
  background:
    radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--ss-w-accent) 18%, transparent) 0%, transparent 60%),
    var(--ss-w-panel);
  box-shadow: 0 10px 24px -18px color-mix(in srgb, var(--ss-w-accent) 80%, transparent);
}
.ss-w-dash .ss-w-dash-grid .ss-w-dash-hero:hover { border-color: var(--ss-w-accent); }
.ss-w-dash .ss-w-dash-grid .ss-w-dash-hero:focus-visible { outline: 2px solid var(--ss-w-accent); outline-offset: 2px; }
.ss-w-dash-hero-top { display: flex; align-items: center; gap: 8px; min-height: 20px; }
.ss-w-dash-hero-badge {
  font-size: 10.5px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ss-w-panel); background: color-mix(in srgb, var(--ss-w-accent) 45%, var(--ss-w-ink)); border-radius: 999px; padding: 3px 10px;
  white-space: nowrap;
}
.ss-w-dash-hero-chevron { flex: none; width: 14px; height: 14px; color: var(--ss-w-faint); }
.ss-w-dash-hero-badge { margin-right: auto; }
.ss-w-dash-hero-chevron:only-child { margin-left: auto; }
.ss-w-dash-hero-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ss-w-dash-hero-visual { flex: none; display: flex; align-items: center; }
.ss-w-dash-hero-crest {
  width: 40px; height: 40px; border-radius: 50%;
  background-color: color-mix(in srgb, var(--ss-w-ink) 4%, var(--ss-w-panel));
  background-size: 72%; background-position: center; background-repeat: no-repeat;
  box-shadow: 0 0 0 2px var(--ss-w-panel), 0 0 0 3px color-mix(in srgb, var(--ss-w-ink) 10%, var(--ss-w-panel));
}
.ss-w-dash-hero-crest + .ss-w-dash-hero-crest { margin-left: -8px; }
.ss-w-dash-hero-icon {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: 22px;
  background: color-mix(in srgb, var(--ss-w-accent) 14%, var(--ss-w-panel));
}
.ss-w-dash-hero-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ss-w-dash-hero-title { font-size: 15.5px; font-weight: 700; line-height: 1.25; color: var(--ss-w-ink); overflow-wrap: anywhere; }
.ss-w-dash-hero-subtitle { font-size: 12px; color: var(--ss-w-faint); overflow-wrap: anywhere; }
.ss-w-dash-hero-price {
  flex: none; margin-left: auto;
  font-family: ui-monospace, monospace; font-variant-numeric: tabular-nums; font-size: 15px; font-weight: 750; line-height: 1;
  color: color-mix(in srgb, var(--ss-w-accent) 45%, var(--ss-w-ink)); padding: 5px 9px; border-radius: 8px;
  background: color-mix(in srgb, var(--ss-w-accent) 12%, var(--ss-w-panel));
  border: 1px solid color-mix(in srgb, var(--ss-w-accent) 30%, var(--ss-w-panel));
}

/* club fan pre-match dashboard */
.ss-w-fandash { display: flex; flex-direction: column; gap: 10px; padding: 4px 0; }
.ss-w-fandash-greeting { font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--ss-w-ink); }
.ss-w-fandash-greeting--lead { font-weight: 400; }
.ss-w-fandash-cards { display: flex; flex-direction: column; gap: 8px; }

/* Shared card chrome -- a plain <div> for [data] cards, a <button> for [prefill] cards. Both
   share the same box so the two families read as one system, not two ad hoc layouts. */
.ss-w-fandash-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 12px; border-radius: 14px; border: 1px solid var(--ss-w-line);
  background: var(--ss-w-panel); text-align: left;
  color: inherit; font: inherit; width: 100%; min-width: 0;
}
.ss-w-fandash-card--tap { cursor: pointer; border-left: 3px solid var(--ss-w-accent); }
.ss-w-fandash-card--tap:hover { background: var(--ss-w-bubble); }
.ss-w-fandash-card-cta { align-self: flex-start; font-size: 11.5px; font-weight: 700; color: var(--ss-w-accent); }

/* Shared alignment primitives: a small letterspaced section eyebrow, and a 3-column value/label
   split reused by the fixture head-to-head (and any future stat-row card). */
.ss-w-fandash-eyebrow { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ss-w-faint); }
.ss-w-fandash-split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ss-w-fandash-split-cell { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; min-width: 0; }
.ss-w-fandash-split-value { font-size: 20px; font-weight: 750; font-variant-numeric: tabular-nums; color: var(--ss-w-ink); line-height: 1; }
.ss-w-fandash-split-label { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ss-w-faint); overflow-wrap: anywhere; }

/* fixture card */
.ss-w-fandash-fixture-teams { display: flex; align-items: center; gap: 10px; }
.ss-w-fandash-fixture-team { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.ss-w-fandash-fixture-team--away { justify-content: flex-end; }
.ss-w-fandash-fixture-team .ss-w-bi-crest { width: 30px; height: 30px; }
.ss-w-fandash-fixture-team .ss-w-bi-crest-mono { font-size: 12px; }
.ss-w-fandash-fixture-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 650; }
.ss-w-fandash-fixture-team--away .ss-w-fandash-fixture-name { text-align: right; }
.ss-w-fandash-fixture-vs { flex: none; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ss-w-faint); }
/* date + venue as labelled rows, so a long stadium name gets its own line to ellipsis in */
.ss-w-fandash-fixture-meta { border-top: 1px solid var(--ss-w-line); padding-top: 10px; text-align: center; font-size: 12.5px; color: var(--ss-w-faint); }
.ss-w-fandash-fixture-kickoff { font-weight: 700; color: var(--ss-w-ink); }
.ss-w-fandash-fixture-venue { font-weight: 600; }
.ss-w-fandash-fact { font-size: 12px; color: var(--ss-w-ink); background: var(--ss-w-bubble); border-radius: 8px; padding: 6px 8px; }
/* each head-to-head figure sits on its own shaded tile, so the grid gap separates wins/draws/losses */
.ss-w-fandash-h2h .ss-w-fandash-split-cell { background: var(--ss-w-bubble); border-radius: 10px; padding: 12px 6px; }
/* extra breathing room between the tally row and the fact beyond the card's own gap */
.ss-w-fandash-h2h .ss-w-fandash-fact { margin-top: 4px; }

/* Team form: a two-column result-card grid, left = home team's last 5, right = away team's last 5,
   most-recent first. The head row carries each column's crest + name; the rows grid is filled
   home-cell/away-cell per index so the 2-col grid lays out pairs without extra JS bookkeeping. */
.ss-w-fandash-teamform-head { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.ss-w-fandash-teamform-head-team { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 11.5px; font-weight: 750; }
.ss-w-fandash-teamform-head-team .ss-w-bi-crest { width: 18px; height: 18px; }
.ss-w-fandash-teamform-head-team .ss-w-bi-crest-mono { font-size: 8px; }
.ss-w-fandash-teamform-head-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-w-fandash-teamform-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 6px; }
.ss-w-fandash-teamform-slot { display: block; min-width: 0; }
.ss-w-fandash-teamform-cell {
  display: flex; align-items: center; gap: 4px; border-radius: 7px; padding: 4px 5px; color: #fff;
}
.ss-w-fandash-teamform-cell--win { background: var(--ss-w-pos); }
.ss-w-fandash-teamform-cell--loss { background: var(--ss-w-neg); }
.ss-w-fandash-teamform-cell--draw { background: var(--ss-w-faint); }
.ss-w-fandash-teamform-cell .ss-w-bi-crest { width: 16px; height: 16px; flex: none; background: rgba(255, 255, 255, .22); }
.ss-w-fandash-teamform-cell .ss-w-bi-crest-mono { font-size: 7px; color: #fff; }
.ss-w-fandash-teamform-score { flex: 1; text-align: center; font-size: 12.5px; font-weight: 750; font-variant-numeric: tabular-nums; }
.ss-w-fandash-injuries-more { margin-top: 10px; width: 100%; background: var(--ss-w-bubble); border: 1px solid var(--ss-w-line); border-radius: 9px; padding: 7px; font: inherit; font-size: 11.5px; font-weight: 700; color: var(--ss-w-accent); cursor: pointer; }
.ss-w-fandash-injuries-more:focus-visible { outline: 2px solid var(--ss-w-accent); outline-offset: 2px; }
.ss-w-fandash-form { display: inline-flex; gap: 3px; flex: none; }
.ss-w-fandash-form-pill {
  display: inline-grid; place-items: center; width: 16px; height: 16px;
  border-radius: 4px; font-size: 9.5px; font-weight: 700; color: #fff;
}
.ss-w-fandash-form-pill--win { background: var(--ss-w-pos); }
.ss-w-fandash-form-pill--loss { background: var(--ss-w-neg); }
.ss-w-fandash-form-pill--draw { background: var(--ss-w-faint); }

/* countdown card: a compact top card -- section eyebrow left, colon-separated clock right. Each
   segment stacks its figure over a small unit label (d/h/m/s). The exact kickoff date is not
   repeated here; the fixture card below carries it. */
.ss-w-fandash-countdown-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ss-w-fandash-countdown-clock { display: inline-flex; align-items: flex-start; gap: 6px; color: var(--ss-w-accent); }
.ss-w-fandash-countdown-seg { display: inline-flex; flex-direction: column; align-items: center; }
.ss-w-fandash-countdown-value { font-size: 26px; font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: -.01em; }
.ss-w-fandash-countdown-unit { font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ss-w-faint); margin-top: 3px; }
.ss-w-fandash-countdown-colon { font-size: 22px; font-weight: 750; line-height: 1; color: var(--ss-w-faint); }

/* injuries + transfers: two-column ours/theirs, in/out */
.ss-w-fandash-transfers-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
/* injuries: a 1px divider column sits between the two team sections, each headed by crest + name */
.ss-w-fandash-injuries-cols { display: grid; grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr); gap: 12px; }
.ss-w-fandash-injuries-divider { background: var(--ss-w-line); }
.ss-w-fandash-injuries-col, .ss-w-fandash-transfers-col { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ss-w-fandash-transfers-col-head { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--ss-w-faint); }
.ss-w-fandash-injuries-col-head { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--ss-w-ink); }
.ss-w-fandash-injuries-col-head .ss-w-bi-crest { width: 18px; height: 18px; }
.ss-w-fandash-injuries-col-head .ss-w-bi-crest-mono { font-size: 9px; }
.ss-w-fandash-injuries-col-head-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-w-fandash-injuries-empty, .ss-w-fandash-transfers-empty { font-size: 11.5px; color: var(--ss-w-faint); }
.ss-w-fandash-injury-list, .ss-w-fandash-transfer-list { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.ss-w-fandash-injury-row, .ss-w-fandash-transfer-row { display: flex; flex-direction: column; gap: 1px; }
.ss-w-fandash-injury-name, .ss-w-fandash-transfer-name { font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.ss-w-fandash-injury-meta { display: flex; flex-wrap: wrap; gap: 4px; font-size: 10.5px; color: var(--ss-w-faint); }
.ss-w-fandash-injury-status { font-weight: 700; color: var(--ss-w-neg); }
.ss-w-fandash-transfer-club { font-size: 11px; color: var(--ss-w-faint); }
.ss-w-fandash-transfer-type { align-self: flex-start; font-size: 9.5px; font-weight: 700; text-transform: uppercase; color: var(--ss-w-accent); background: color-mix(in srgb, var(--ss-w-accent) 13%, var(--ss-w-panel)); border-radius: 999px; padding: 1px 7px; margin-top: 2px; }

/* reason-to-bet */
.ss-w-fandash-reason-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.ss-w-fandash-reason-item { font-size: 12.5px; padding-left: 14px; position: relative; }
.ss-w-fandash-reason-item::before { content: "•"; position: absolute; left: 0; color: var(--ss-w-accent); font-weight: 700; }

/* where-to-watch */
.ss-w-fandash-stations { display: flex; flex-wrap: wrap; gap: 6px; }
.ss-w-fandash-station-chip { font-size: 11.5px; font-weight: 600; color: var(--ss-w-ink); background: var(--ss-w-bubble); border-radius: 999px; padding: 4px 10px; }

/* congested week: a fixed 3-column grid of upcoming fixtures (day / opponent / comp / time) */
.ss-w-fandash-congested-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ss-w-fandash-congested-cell { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 8px; border-radius: 10px; background: var(--ss-w-bubble); }
.ss-w-fandash-congested-day { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ss-w-faint); }
.ss-w-fandash-congested-opponent { font-size: 12.5px; font-weight: 650; overflow-wrap: anywhere; }
.ss-w-fandash-congested-comp { font-size: 10px; color: var(--ss-w-faint); overflow-wrap: anywhere; }
.ss-w-fandash-congested-time { font-size: 10.5px; color: var(--ss-w-faint); font-variant-numeric: tabular-nums; }

/* links: 2-column grid of tappable tiles */
.ss-w-fandash-link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ss-w-fandash-link-tile { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 13px; border-radius: 10px; border: 1px solid transparent; text-decoration: none; color: inherit; background: color-mix(in srgb, var(--ss-w-accent) 10%, var(--ss-w-panel)); }
.ss-w-fandash-link-tile:hover { background: color-mix(in srgb, var(--ss-w-accent) 16%, var(--ss-w-panel)); }
.ss-w-fandash-link-label { font-size: 12.5px; font-weight: 650; overflow-wrap: anywhere; }
.ss-w-fandash-link-chevron { flex: none; width: 12px; height: 12px; color: var(--ss-w-accent); }

/* post-match result: full-time scoreboard, mirroring the live card's crest + big-score treatment.
   A neutral "Full time" pill sits left of a coloured Win/Draw/Loss tag; the 3-column main row
   (home crest+name | score | away crest+name, away reversed) puts the winner's score in full ink
   and the loser's dimmed; a centered meta line sits under a divider. */
.ss-w-fandash-postmatch-top { display: flex; align-items: center; gap: 8px; margin-bottom: 15px; }
.ss-w-fandash-postmatch-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ss-w-faint); background: var(--ss-w-bubble); border: 1px solid var(--ss-w-line); border-radius: 6px; padding: 3px 8px; }
.ss-w-fandash-postmatch-tag { margin-left: auto; flex: none; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.ss-w-fandash-postmatch-tag--win { color: var(--ss-w-pos); }
.ss-w-fandash-postmatch-tag--loss { color: var(--ss-w-neg); }
.ss-w-fandash-postmatch-tag--draw { color: var(--ss-w-faint); }
.ss-w-fandash-postmatch-main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.ss-w-fandash-postmatch-side { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ss-w-fandash-postmatch-side--away { flex-direction: row-reverse; text-align: right; }
.ss-w-fandash-postmatch-crest { width: 38px; height: 38px; border-radius: 10px; flex: none; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 12.5px; object-fit: cover; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.ss-w-fandash-postmatch-crest--fallback.ss-w-fandash-postmatch-crest--home { background: var(--ss-w-home); }
.ss-w-fandash-postmatch-crest--fallback.ss-w-fandash-postmatch-crest--away { background: var(--ss-w-away); }
.ss-w-fandash-postmatch-team-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 700; line-height: 1.15; color: var(--ss-w-ink); }
.ss-w-fandash-postmatch-score-main { display: flex; align-items: baseline; justify-content: center; font-size: 36px; font-weight: 850; font-variant-numeric: tabular-nums; line-height: 1; white-space: nowrap; }
.ss-w-fandash-postmatch-score-value--win { color: var(--ss-w-ink); }
.ss-w-fandash-postmatch-score-value--lose { color: var(--ss-w-faint); }
.ss-w-fandash-postmatch-score-sep { color: var(--ss-w-faint); font-weight: 500; margin: 0 5px; }
.ss-w-fandash-postmatch-meta { margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--ss-w-line); font-size: 12px; color: var(--ss-w-faint); text-align: center; }

/* post-match goals: a football-ball icon per goal (mirrors the live timeline ball, duplicated here
   under the postmatch prefix), text dimmed for opponent goals and picked out in full ink + bold
   for the club's own goals */
.ss-w-fandash-postmatch-goal-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.ss-w-fandash-postmatch-goal { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ss-w-faint); }
.ss-w-fandash-postmatch-goal-ball { width: 11px; height: 11px; flex: none; border-radius: 50%; background: radial-gradient(circle at 50% 42%, #fff 0 34%, transparent 36%), var(--ss-w-ink); border: 1px solid var(--ss-w-ink); }
.ss-w-fandash-postmatch-goal--club { color: var(--ss-w-ink); font-weight: 650; }

/* post-match stats: home value / stat label / away value, oriented by venue (u316), each row now
   backed by a home/away split bar -- the big upgrade from plain text -- plus a legend. Mirrors
   LiveStatsCard's split-bar treatment under the postmatch-prefixed classes; the shared
   --ss-w-home/--ss-w-away/--ss-w-track tokens are defined above. */
.ss-w-fandash-postmatch-stat-rows { display: flex; flex-direction: column; gap: 15px; }
.ss-w-fandash-postmatch-stat { display: flex; flex-direction: column; gap: 7px; }
.ss-w-fandash-postmatch-stat-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 8px; }
.ss-w-fandash-postmatch-stat-value { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ss-w-ink); }
.ss-w-fandash-postmatch-stat-value--home { color: var(--ss-w-home); }
.ss-w-fandash-postmatch-stat-value--away { color: var(--ss-w-away); text-align: right; }
.ss-w-fandash-postmatch-stat-label { font-size: 10.5px; text-align: center; color: var(--ss-w-faint); text-transform: uppercase; letter-spacing: .03em; }
.ss-w-fandash-postmatch-stat-bar { position: relative; height: 8px; border-radius: 999px; background: var(--ss-w-track); overflow: hidden; display: flex; }
.ss-w-fandash-postmatch-stat-bar-home { height: 100%; background: var(--ss-w-home); }
.ss-w-fandash-postmatch-stat-bar-away { height: 100%; background: var(--ss-w-away); margin-left: auto; }
.ss-w-fandash-postmatch-legend { display: flex; gap: 14px; margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--ss-w-line); font-size: 11px; color: var(--ss-w-faint); }
.ss-w-fandash-postmatch-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.ss-w-fandash-postmatch-legend-swatch { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.ss-w-fandash-postmatch-legend-swatch--home { background: var(--ss-w-home); }
.ss-w-fandash-postmatch-legend-swatch--away { background: var(--ss-w-away); }

/* post-match top performer (full mockup treatment): gradient initials avatar + name + a
   prominent rating chip. Avatar gradient reuses the --ss-w-away token, same pairing as the live
   crest fallback; "?" renders through the same avatar span when the name is blank. */
.ss-w-fandash-postmatch-perf-row { display: flex; align-items: center; gap: 12px; }
.ss-w-fandash-postmatch-perf-avatar {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--ss-w-away), color-mix(in srgb, var(--ss-w-away) 55%, #000));
}
.ss-w-fandash-postmatch-perf-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 700; }
.ss-w-fandash-postmatch-perf-rating { margin-left: auto; flex: none; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ss-w-accent); background: color-mix(in srgb, var(--ss-w-accent) 14%, var(--ss-w-panel)); border-radius: 999px; padding: 3px 11px; }

/* post-match next (v1, modest): whenLabel is already a complete localized phrase (opponent +
   venue + kickoff) composed server-side, so this card renders just that one line -- dressed up
   with an accent rule rather than a duplicated opponent line. The richer opponent-headline/venue-
   chip/crest layout from the mockup needs a server field split and is deferred. */
.ss-w-fandash-postmatch-next-row { display: flex; align-items: center; gap: 10px; border-left: 3px solid var(--ss-w-accent); padding-left: 10px; }
.ss-w-fandash-postmatch-next-when { font-size: 13.5px; font-weight: 650; color: var(--ss-w-ink); line-height: 1.3; }

/* resting next: the between-matches fixture teaser -- when-label left, competition badge right */
.ss-w-fandash-resting-next-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ss-w-fandash-resting-next-when { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 650; }
.ss-w-fandash-resting-next-competition { flex: none; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--ss-w-faint); }

/* resting standings: position figure left, W-D-L/points record right */
.ss-w-fandash-resting-standings-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ss-w-fandash-resting-standings-position { font-size: 15px; font-weight: 750; color: var(--ss-w-ink); }
.ss-w-fandash-resting-standings-record { font-size: 11.5px; color: var(--ss-w-faint); text-align: right; }

/* resting season: top scorer / key player / season tally as stacked rows */
.ss-w-fandash-resting-season-rows { display: flex; flex-direction: column; gap: 4px; }
.ss-w-fandash-resting-season-row { font-size: 12.5px; color: var(--ss-w-ink); }

/* resting form: reuses the fixture last-five pill classes (ss-w-fandash-form / -form-pill) */
.ss-w-fandash-resting-form .ss-w-fandash-form { margin-top: 2px; }

/* live score: pulsing Live pill, crests (real image or a coloured initials fallback), a big
   tabular score, and an optional scorers line. Also where the shared home/away venue-colour
   tokens (--ss-w-home / --ss-w-away / --ss-w-track) are defined above -- the timeline and stats
   cards reuse them. */
.ss-w-fandash-live-top { display: flex; align-items: center; gap: 8px; }
.ss-w-fandash-live-pill { display: inline-flex; flex: none; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #fff; background: var(--ss-w-neg); border-radius: 6px; padding: 3px 8px; }
.ss-w-fandash-live-dot { width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: ss-w-fandash-live-pulse 1.3s ease-in-out infinite; }
@keyframes ss-w-fandash-live-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) {
  .ss-w-fandash-live-dot { animation: none; }
}
.ss-w-fandash-live-minute { flex: none; font-size: 13.5px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ss-w-ink); }
.ss-w-fandash-live-competition { margin-left: auto; font-size: 11px; font-weight: 650; color: var(--ss-w-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-w-fandash-live-main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.ss-w-fandash-live-side { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ss-w-fandash-live-side--away { flex-direction: row-reverse; text-align: right; }
.ss-w-fandash-live-crest { width: 38px; height: 38px; border-radius: 10px; flex: none; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 12.5px; object-fit: cover; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.ss-w-fandash-live-crest--fallback.ss-w-fandash-live-crest--home { background: var(--ss-w-home); }
.ss-w-fandash-live-crest--fallback.ss-w-fandash-live-crest--away { background: var(--ss-w-away); }
.ss-w-fandash-live-team-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 700; line-height: 1.15; color: var(--ss-w-ink); }
.ss-w-fandash-live-score-main { display: flex; align-items: baseline; justify-content: center; font-size: 36px; font-weight: 850; font-variant-numeric: tabular-nums; line-height: 1; white-space: nowrap; color: var(--ss-w-ink); }
.ss-w-fandash-live-score-sep { color: var(--ss-w-faint); font-weight: 500; margin: 0 5px; }
.ss-w-fandash-live-scorers-row { margin-top: 12px; display: flex; justify-content: space-between; gap: 10px; }
.ss-w-fandash-live-scorers { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 12.5px; color: var(--ss-w-faint); overflow-wrap: anywhere; }
.ss-w-fandash-live-scorers--home { justify-content: flex-start; }
.ss-w-fandash-live-scorers--away { justify-content: flex-end; }
.ss-w-fandash-live-scorers--home .ss-w-fandash-live-scorers-icon { color: var(--ss-w-home); }
.ss-w-fandash-live-scorers--away .ss-w-fandash-live-scorers-icon { color: var(--ss-w-away); }
.ss-w-fandash-live-scorers-icon { flex: none; }

/* live timeline: a compact two-sided event list down a centre spine -- each club's events sit on
   its own side (home left, away right), most-recent 3 shown with a "See more" toggle for the
   rest. A 3-column grid (txt | badge | txt) per row; the spine itself is a ::before on the list. */
.ss-w-fandash-live-tl { position: relative; display: flex; flex-direction: column; gap: 6px; }
.ss-w-fandash-live-tl::before { content: ""; position: absolute; left: 50%; top: 1px; bottom: 1px; width: 2px; background: var(--ss-w-line); transform: translateX(-1px); }
.ss-w-fandash-live-tl-ev { display: grid; grid-template-columns: 1fr 32px 1fr; align-items: center; gap: 6px; }
.ss-w-fandash-live-tl-txt { display: flex; align-items: center; gap: 7px; font-size: 13px; min-width: 0; }
.ss-w-fandash-live-tl-ev--home .ss-w-fandash-live-tl-txt { grid-column: 1; justify-content: flex-end; }
.ss-w-fandash-live-tl-ev--away .ss-w-fandash-live-tl-txt { grid-column: 3; justify-content: flex-start; flex-direction: row-reverse; }
.ss-w-fandash-live-tl-who { font-weight: 650; color: var(--ss-w-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-w-fandash-live-tl-off { font-weight: 500; color: var(--ss-w-faint); }
.ss-w-fandash-live-tl-ev--goal .ss-w-fandash-live-tl-who { font-weight: 800; }
.ss-w-fandash-live-tl-badge { grid-column: 2; justify-self: center; min-width: 29px; height: 19px; padding: 0 4px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: var(--ss-w-ink); background: var(--ss-w-bubble); border: 1px solid var(--ss-w-line); font-variant-numeric: tabular-nums; z-index: 1; }
.ss-w-fandash-live-tl-ev--goal .ss-w-fandash-live-tl-badge { background: var(--ss-w-accent); color: #fff; border-color: transparent; }
.ss-w-fandash-live-tl-ico { width: 17px; height: 17px; flex: none; display: grid; place-items: center; }
.ss-w-fandash-live-tl-ico--goal { border-radius: 50%; background: color-mix(in srgb, var(--ss-w-away) 16%, transparent); }
.ss-w-fandash-live-tl-ball { width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 50% 42%, #fff 0 34%, transparent 36%), var(--ss-w-ink); border: 1px solid var(--ss-w-ink); }
.ss-w-fandash-live-tl-card { width: 9px; height: 12px; border-radius: 2px; display: block; }
.ss-w-fandash-live-tl-card--yellow { background: var(--ss-w-cta); }
.ss-w-fandash-live-tl-card--red { background: var(--ss-w-away); }
.ss-w-fandash-live-tl-subarrows { font-size: 11px; font-weight: 900; line-height: 1; letter-spacing: -1px; color: var(--ss-w-accent); }
.ss-w-fandash-live-tl-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ss-w-faint); }
.ss-w-fandash-live-tl-more { margin-top: 4px; width: 100%; background: var(--ss-w-bubble); border: 1px solid var(--ss-w-line); border-radius: 9px; padding: 7px; font: inherit; font-size: 11.5px; font-weight: 700; color: var(--ss-w-accent); cursor: pointer; }
.ss-w-fandash-live-tl-more:focus-visible { outline: 2px solid var(--ss-w-accent); outline-offset: 2px; }

/* live stats: club value / stat label / opponent value, each row backed by a home/away split
   bar, plus an optional momentum wave (or its text fallback) and a club/opponent colour legend.
   No side signal reaches this card, so the club is always the home token and the opponent is
   always the away token -- see LiveStatsCard.tsx. */
.ss-w-fandash-live-stat-rows { display: flex; flex-direction: column; gap: 15px; }
.ss-w-fandash-live-stat { display: flex; flex-direction: column; gap: 7px; }
.ss-w-fandash-live-stat-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 8px; }
.ss-w-fandash-live-stat-value { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ss-w-ink); }
.ss-w-fandash-live-stat-value--home { color: var(--ss-w-home); }
.ss-w-fandash-live-stat-value--away { color: var(--ss-w-away); text-align: right; }
.ss-w-fandash-live-stat-label { font-size: 10.5px; font-weight: 700; text-align: center; color: var(--ss-w-faint); text-transform: uppercase; letter-spacing: .04em; }
.ss-w-fandash-live-bar { position: relative; height: 8px; border-radius: 999px; background: var(--ss-w-track); overflow: hidden; display: flex; }
.ss-w-fandash-live-bar-home { height: 100%; background: var(--ss-w-home); }
.ss-w-fandash-live-bar-away { height: 100%; background: var(--ss-w-away); margin-left: auto; }

.ss-w-fandash-live-momentum { font-size: 11.5px; font-weight: 650; color: var(--ss-w-accent); }
.ss-w-fandash-live-mom { margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--ss-w-line); }
.ss-w-fandash-live-mom-caption { display: block; margin-bottom: 5px; font-size: 10.5px; font-weight: 600; color: var(--ss-w-faint); }
.ss-w-fandash-live-mom-svg { width: 100%; height: 56px; display: block; overflow: visible; }
.ss-w-fandash-live-mom-home { fill: var(--ss-w-home); fill-opacity: .85; }
.ss-w-fandash-live-mom-away { fill: var(--ss-w-away); fill-opacity: .85; }
.ss-w-fandash-live-mom-line { fill: none; stroke: color-mix(in srgb, var(--ss-w-ink) 55%, transparent); stroke-width: 1.5; }
.ss-w-fandash-live-mom-base { stroke: var(--ss-w-line); stroke-width: 1; stroke-dasharray: 3 3; }
.ss-w-fandash-live-mom-plot { position: relative; }
.ss-w-fandash-live-mom-now {
  position: absolute; width: 7px; height: 7px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--ss-w-panel); border: 1.5px solid var(--ss-w-ink);
  pointer-events: none;
}
.ss-w-mon-mom { margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--ss-w-line); text-align: center; }
.ss-w-mon-mom .ss-w-fandash-live-mom { margin-top: 6px; padding-top: 0; border-top: none; }

.ss-w-fandash-live-legend { display: flex; gap: 14px; margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--ss-w-line); font-size: 11px; color: var(--ss-w-faint); }
.ss-w-fandash-live-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.ss-w-fandash-live-legend-swatch { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.ss-w-fandash-live-legend-swatch--home { background: var(--ss-w-home); }
.ss-w-fandash-live-legend-swatch--away { background: var(--ss-w-away); }

/* live monitor tab bar: underline pattern mirrors .ss-w-ecard-scope; the unread dot uses --ss-w-neg */
.ss-w-tabs { display: flex; align-items: stretch; gap: 2px; border-bottom: 1px solid var(--ss-w-line); overflow-x: auto; scrollbar-width: none; }
.ss-w-tabs::-webkit-scrollbar { display: none; }
.ss-w-tab { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 620; color: var(--ss-w-faint); background: none; border: none; cursor: pointer; padding: 9px 8px; margin-bottom: -1px; border-bottom: 2px solid transparent; flex: none; white-space: nowrap; }
.ss-w-tab[data-on] { color: var(--ss-w-ink); border-bottom-color: var(--ss-w-accent); }
.ss-w-tab-count { font-size: 10.5px; font-weight: 700; color: var(--ss-w-faint); background: var(--ss-w-bubble); border-radius: 999px; padding: 1px 6px; }
.ss-w-tab[data-on] .ss-w-tab-count { color: var(--ss-w-accent); }
.ss-w-tab-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ss-w-neg); flex: none; }

/* Matches tab match card (MonitorMatchCard): pill row, crest/score main row, per-stat split
   bars (venue-oriented -- home always left/blue, away always right/red, never club-oriented,
   the u316 bug class), a promoted-market strip for the user's pinned stat chips, and a grace
   note once the match has gone full time. Reuses the --ss-w-home/--ss-w-away/--ss-w-track venue
   tokens and .ss-w-fandash-live-pill for the Live pill so all live surfaces share one look. */
.ss-w-mon { display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--ss-w-line); border-radius: 12px; background: var(--ss-w-panel); }
.ss-w-mon-top { display: flex; align-items: center; gap: 8px; }
.ss-w-mon-pill { display: inline-flex; flex: none; align-items: center; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ss-w-faint); background: var(--ss-w-bubble); border-radius: 6px; padding: 3px 8px; }
.ss-w-mon-min { flex: none; font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ss-w-ink); }
.ss-w-mon-comp { margin-left: auto; font-size: 11px; font-weight: 650; color: var(--ss-w-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-w-mon-main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.ss-w-mon-side { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ss-w-mon-side--away { flex-direction: row-reverse; text-align: right; }
/* long club names (Wolverhampton Wanderers) wrap to two lines instead of truncating mid-word */
.ss-w-mon-name { min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; font-size: 13px; font-weight: 700; color: var(--ss-w-ink); }
.ss-w-mon-vs { font-size: 12px; font-weight: 700; color: var(--ss-w-faint); text-transform: uppercase; }
.ss-w-mon-score { display: flex; align-items: baseline; justify-content: center; font-size: 26px; font-weight: 850; font-variant-numeric: tabular-nums; line-height: 1; white-space: nowrap; color: var(--ss-w-ink); }
.ss-w-mon-score i { font-style: normal; color: var(--ss-w-faint); font-weight: 500; margin: 0 4px; }
.ss-w-mon-scorers { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; column-gap: 10px; font-size: 11.5px; color: var(--ss-w-faint); }
.ss-w-mon-scorers-col { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ss-w-mon-scorers-col li { overflow-wrap: anywhere; }
.ss-w-mon-scorers-home { text-align: right; }
.ss-w-mon-scorers-away { text-align: left; }
.ss-w-mon-scorers-ball { flex: none; align-self: start; line-height: 1.35; }

/* Pinned pre-match form + head-to-head (MonitorFormH2H): collapsed by default, a real <button>
   header toggles it. W/D/L dots and the H2H bar/legend keep fixed, theme-independent colors
   (same convention as the dashboard tile accents above) since they're self-contained badges
   carrying their own ink color, not page-background-dependent text. */
.ss-w-h2h { border-left: 3px solid #16A34A; padding-left: 12px; }
.ss-w-h2h-head { display: flex; align-items: center; justify-content: space-between; width: 100%; background: none; border: none; cursor: pointer; text-align: left; font: inherit; color: inherit; padding: 0; }
.ss-w-h2h-head-l { display: flex; align-items: center; gap: 6px; }
.ss-w-h2h-dot { width: 4px; height: 4px; border-radius: 999px; background: var(--ss-w-faint); flex: none; }
.ss-w-h2h-title { font-size: 13px; font-weight: 700; color: var(--ss-w-ink); }
.ss-w-h2h-chevron { flex: none; color: var(--ss-w-faint); transition: transform .15s ease; }
.ss-w-h2h-chevron--open { transform: rotate(180deg); }
.ss-w-h2h-body { padding-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.ss-w-h2h-forms { display: flex; align-items: flex-start; justify-content: space-between; }
.ss-w-h2h-form-col { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ss-w-h2h-form-col--away { align-items: flex-end; }
.ss-w-h2h-form-team { font-size: 11px; color: var(--ss-w-faint); }
.ss-w-h2h-dots { display: flex; gap: 4px; }
.ss-w-h2h-result { width: 20px; height: 20px; border-radius: 999px; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.ss-w-h2h-result--win { background: #16A34A; color: #FFFFFF; }
.ss-w-h2h-result--draw { background: #E5E7EB; color: #4B5563; }
.ss-w-h2h-result--loss { background: #F5A623; color: #1F2937; }
.ss-w-h2h-record { display: flex; flex-direction: column; gap: 6px; }
.ss-w-h2h-meta { font-size: 11px; color: var(--ss-w-faint); }
.ss-w-h2h-bar { display: flex; width: 100%; height: 8px; border-radius: 999px; overflow: hidden; }
.ss-w-h2h-bar-seg--win { background: #16A34A; }
.ss-w-h2h-bar-seg--draw { background: #D1D5DB; }
.ss-w-h2h-bar-seg--loss { background: #2563EB; }
.ss-w-h2h-legend { display: flex; align-items: center; justify-content: space-between; margin-top: 2px; }
.ss-w-h2h-legend-item { font-size: 11px; color: var(--ss-w-ink); display: flex; align-items: center; gap: 5px; }
.ss-w-h2h-legend-dot { width: 7px; height: 7px; border-radius: 999px; display: inline-block; flex: none; }
.ss-w-h2h-legend-dot--win { background: #16A34A; }
.ss-w-h2h-legend-dot--draw { background: #D1D5DB; }
.ss-w-h2h-legend-dot--loss { background: #2563EB; }

.ss-w-fact { display: flex; flex-direction: column; gap: 7px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--ss-w-accent) 9%, transparent); border: 1px solid color-mix(in srgb, var(--ss-w-accent) 22%, transparent); }
.ss-w-fact-k { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--ss-w-accent); }
.ss-w-fact-min { color: var(--ss-w-ink); letter-spacing: 0; }
.ss-w-fact-subj { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 650; color: var(--ss-w-faint); }
.ss-w-fact-text { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--ss-w-ink); }
.ss-w-fact-basis { font-size: 10.5px; color: var(--ss-w-faint); }
.ss-w-fact-mkt { display: flex; align-items: center; gap: 8px; font-size: 11.5px; border: 1px solid var(--ss-w-line); border-radius: 8px; padding: 6px 8px; }
.ss-w-fact-foot { display: flex; align-items: center; gap: 14px; }
.ss-w-fact-link { font: inherit; font-size: 11.5px; font-weight: 700; color: var(--ss-w-accent); background: none; border: none; padding: 4px 0; min-height: 32px; cursor: pointer; }
.ss-w-fact-link--muted { color: var(--ss-w-faint); margin-left: auto; }
.ss-w-fact-hist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ss-w-line); }
.ss-w-fact-hist li { display: grid; grid-template-columns: 34px 1fr; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--ss-w-line); }
.ss-w-fact-hist li:last-child { border-bottom: none; }
.ss-w-fact-hmin { font-size: 11px; font-weight: 800; color: var(--ss-w-faint); font-variant-numeric: tabular-nums; }
.ss-w-fact-htext { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--ss-w-ink); }
.ss-w-mon-stats { display: flex; flex-direction: column; gap: 10px; }
.ss-w-mon-stat { display: flex; flex-direction: column; gap: 5px; }
.ss-w-mon-pstrip { padding: 6px 8px; border-radius: 8px; background: color-mix(in srgb, var(--ss-w-accent) 8%, transparent); }
.ss-w-mon-stat-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 8px; }
.ss-w-mon-stat-v { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ss-w-ink); }
.ss-w-mon-stat-v--home { color: var(--ss-w-home); }
.ss-w-mon-stat-v--away { color: var(--ss-w-away); text-align: right; }
.ss-w-mon-stat-l { font-size: 10px; font-weight: 700; text-align: center; color: var(--ss-w-faint); text-transform: uppercase; letter-spacing: .03em; }
.ss-w-mon-bar { position: relative; height: 6px; border-radius: 999px; background: var(--ss-w-track); overflow: hidden; display: flex; }
.ss-w-mon-bar-home { height: 100%; background: var(--ss-w-home); }
.ss-w-mon-bar-away { height: 100%; background: var(--ss-w-away); margin-left: auto; }
.ss-w-mon-stat-mkt { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--ss-w-faint); }
.ss-w-mon-mkt { background: color-mix(in srgb, var(--ss-w-accent) 10%, transparent); border-radius: 6px; padding: 3px 6px; color: var(--ss-w-ink); }
.ss-w-mon-stat-mkt-right { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.ss-w-mon-price { font-family: ui-monospace, monospace; font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 700; color: var(--ss-w-accent); }
.ss-w-mon-susp { font-size: 10.5px; font-weight: 700; color: var(--ss-w-faint); background: var(--ss-w-bubble); border-radius: 6px; padding: 2px 6px; }
.ss-w-mon-asof { display: block; font-size: 10.5px; font-weight: 600; color: var(--ss-w-cta); }
.ss-w-mon-grace { font-size: 11px; color: var(--ss-w-faint); border-top: 1px solid var(--ss-w-line); padding-top: 8px; }

/* Matches/Odds tab panels (MonitorTabs): the shared per-market-pin context line, the empty
   state shown when the snapshot carries no matches/markets yet, the persistent D5 in-slip badge,
   and the per-market-pin wrapper card (struck price on settlement is a pure CSS hook off its
   [data-settled] attribute -- no separate class on the price element itself). */
.ss-w-mk-ctx { display: flex; align-items: center; gap: 6px; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--ss-w-line); }
/* the score and the trailing badges/pin never shrink or wrap -- only the fixture name truncates */
.ss-w-mk-ctx b { flex: none; white-space: nowrap; }
/* the context line's fixture name stays single-line (the two-line clamp is for the match card) */
.ss-w-mk-ctx .ss-w-mon-name { display: block; white-space: nowrap; text-overflow: ellipsis; }
.ss-w-mk-ctx-side { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ss-w-mk-ctx-right { display: flex; align-items: center; gap: 6px; margin-left: auto; flex: none; }
/* flex:1 keeps the composer pinned to the panel bottom when a tab is empty */
.ss-w-mon-empty { flex: 1; padding: 24px 16px; text-align: center; font-size: 12.5px; color: var(--ss-w-faint); }
/* shared group-header label for Club Fixtures (round) and Squad (position) list groups */
.ss-w-club-eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ss-w-faint); padding: 10px 2px 4px; }
.ss-w-sq-row { display: flex; align-items: center; gap: 10px; padding: 7px 2px; border-bottom: 1px solid var(--ss-w-line); }
.ss-w-sq-num { flex: none; width: 20px; text-align: right; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ss-w-faint); }
.ss-w-sq-name { font-size: 13px; font-weight: 600; color: var(--ss-w-ink); }
.ss-w-sq-name { flex: 1; min-width: 0; }
.ss-w-sq-name-1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-w-sq-seg { display: flex; gap: 2px; padding: 2px; border-radius: var(--ss-w-radius); background: var(--ss-w-track); }
.ss-w-sq-seg-btn { flex: 1; padding: 5px 8px; border: 0; border-radius: calc(var(--ss-w-radius) - 2px); background: transparent; font: inherit; font-size: 12px; font-weight: 600; color: var(--ss-w-faint); cursor: pointer; }
.ss-w-sq-seg-btn[aria-pressed="true"] { background: var(--ss-w-panel); color: var(--ss-w-ink); }
.ss-w-sq-seg-btn:focus-visible, .ss-w-sq-tap:focus-visible, .ss-w-pd-back:focus-visible { outline: 2px solid var(--ss-w-accent); outline-offset: 1px; }
.ss-w-sq-tap { width: 100%; border: 0; border-bottom: 1px solid var(--ss-w-line); background: transparent; font: inherit; text-align: left; cursor: pointer; }
.ss-w-sq-col { flex: none; width: 40px; text-align: center; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ss-w-ink); }
.ss-w-sq-head { border-bottom: 0; padding-bottom: 0; }
.ss-w-sq-head .ss-w-sq-col { font-size: 10px; font-weight: 700; color: var(--ss-w-faint); }
.ss-w-sq-stats { padding-top: 10px; gap: 10px; }
.ss-w-sq-card { background: var(--ss-w-panel); border: 1px solid var(--ss-w-line); border-radius: 12px; overflow: hidden; }
.ss-w-sq-stats .ss-w-sq-row { display: grid; grid-template-columns: 1fr 26px 30px 36px 20px 20px 20px 20px 36px; gap: 0; padding: 7px 10px; font-size: 11px; }
.ss-w-sq-card > :last-child { border-bottom: 0; }
.ss-w-sq-pos, .ss-w-sq-c20, .ss-w-sq-c30, .ss-w-sq-c36 { text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; font-weight: 400; font-variant-numeric: tabular-nums; color: var(--ss-w-ink); }
.ss-w-sq-stats .ss-w-sq-head { padding-bottom: 7px; border-bottom: 1px solid var(--ss-w-line); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; color: var(--ss-w-faint); }
.ss-w-sq-stats .ss-w-sq-head > span { font-size: 9px; font-weight: 700; color: var(--ss-w-faint); }
.ss-w-sq-player { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ss-w-sq-badge { flex: none; width: 18px; height: 18px; border-radius: 6px; background: var(--ss-w-track); color: var(--ss-w-faint); font-size: 9px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ss-w-sq-stats .ss-w-sq-name { font-size: 11px; }
.ss-w-sq-rtg { font-weight: 700; }
.ss-w-sq-rtg-none { color: var(--ss-w-faint); font-weight: 400; }
.ss-w-sq-stats .ss-w-pos-ink { color: var(--ss-w-pos); font-weight: 700; }
.ss-w-sq-foot { padding: 0 2px; font-size: 10.5px; color: var(--ss-w-faint); }
.ss-w-sq-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 14px 0; }
.ss-w-sq-bar .ss-w-sq-seg { margin: 0; }
.ss-w-sq-bar .ss-w-sq-seg:only-child { flex: 1; }
.ss-w-sq-bar .ss-w-sq-seg:not(:only-child) { flex: none; }
.ss-w-sq-eyebrow { flex: 1; min-width: 0; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ss-w-faint); }
@media (max-width: 429px) { .ss-w-sq-badge { display: none; } }
@media (max-width: 359px) {
  .ss-w-sq-yr { display: none; }
  .ss-w-sq-stats .ss-w-sq-row { grid-template-columns: 1fr 26px 30px 36px 20px 20px 36px; }
}
.ss-w-pd-bar { flex: none; display: flex; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--ss-w-line); line-height: normal; }
.ss-w-pd-back { display: flex; align-items: center; gap: 2px; min-height: 32px; padding: 8px 8px 8px 0; margin: -8px 0; border: 0; background: transparent; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ss-w-faint); cursor: pointer; }
.ss-w-pd-back:hover { color: var(--ss-w-ink); }
.ss-w-mon-list.ss-w-pd-list { padding: 16px; gap: 14px; line-height: normal; }
.ss-w-pd-card { background: var(--ss-w-panel); border: 1px solid var(--ss-w-line); border-radius: 12px; }
.ss-w-pd-faint { color: var(--ss-w-faint); }
.ss-w-pd-profile { display: flex; gap: 12px; padding: 14px; }
.ss-w-pd-photo { flex: none; border-radius: 50%; border: 1px solid var(--ss-w-line); background: var(--ss-w-bubble); object-fit: cover; }
.ss-w-pd-avatar { display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--ss-w-ink); }
.ss-w-pd-profile-main { flex: 1; min-width: 0; }
.ss-w-pd-name { font-size: 16px; font-weight: 800; color: var(--ss-w-ink); overflow-wrap: break-word; }
.ss-w-pd-sub { margin-top: 1px; font-size: 12px; color: var(--ss-w-faint); }
/* Two columns as on the board, collapsing to one when a column would drop under 80px (narrow phones). */
.ss-w-pd-bio { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(80px, calc((100% - 10px) / 2)), 1fr)); gap: 4px 10px; margin-top: 10px; font-size: 11.5px; }
.ss-w-pd-bio-item { min-width: 0; overflow-wrap: break-word; }
.ss-w-pd-pitch { position: relative; flex: none; width: 56px; height: 76px; border: 1px solid var(--ss-w-line); border-radius: 6px; background: var(--ss-w-track); }
.ss-w-pd-pitch-dot { position: absolute; width: 11px; height: 11px; border-radius: 50%; background: var(--ss-w-accent); border: 2px solid var(--ss-w-nav); transform: translate(-50%, -50%); }
.ss-w-pd-avail { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; }
.ss-w-pd-avail-text { min-width: 0; }
.ss-w-pd-avail-next { font-size: 12.5px; font-weight: 700; }
.ss-w-pd-avail-note { margin-top: 1px; font-size: 11px; color: var(--ss-w-faint); }
.ss-w-pd-pill { flex: none; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.ss-w-pd-pill--pos, .ss-w-pd-chip--pos { background: color-mix(in srgb, var(--ss-w-pos) 14%, transparent); color: var(--ss-w-pos); }
.ss-w-pd-pill--warn, .ss-w-pd-chip--warn { background: color-mix(in srgb, var(--ss-w-warn) 14%, transparent); color: var(--ss-w-warn); }
.ss-w-pd-pill--neg, .ss-w-pd-chip--neg { background: color-mix(in srgb, var(--ss-w-neg) 14%, transparent); color: var(--ss-w-neg); }
.ss-w-pd-pill--draw { background: var(--ss-w-track); color: var(--ss-w-faint); }
.ss-w-pd-eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ss-w-faint); padding: 0 2px; }
.ss-w-pd-eyebrow--block { margin-bottom: 8px; }
.ss-w-pd-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ss-w-pd-tile { min-width: 0; padding: 10px; background: var(--ss-w-panel); border: 1px solid var(--ss-w-line); border-radius: 12px; }
.ss-w-pd-tile-label { font-size: 10.5px; color: var(--ss-w-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-w-pd-tile-value { margin-top: 2px; font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ss-w-pd-pos-ink { color: var(--ss-w-pos); }
/* Below 360px the board's 10px tile padding clips "Matches"/"Minutes" (43px) in a ~34px label box. */
@media (max-width: 359px) {
  .ss-w-pd-tiles { gap: 6px; }
  .ss-w-pd-tile { padding: 10px 6px; }
}
.ss-w-pd-perf-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.ss-w-pd-perf-head .ss-w-pd-eyebrow { flex: 1; min-width: 0; }
.ss-w-pd-seg { flex: none; display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--ss-w-track); }
.ss-w-pd-seg-btn { padding: 5px 12px; border: 0; border-radius: 999px; background: transparent; font: inherit; font-size: 11.5px; font-weight: 700; line-height: normal; white-space: nowrap; color: var(--ss-w-faint); cursor: pointer; }
.ss-w-pd-seg-btn[aria-pressed="true"] { background: var(--ss-w-nav); color: #fff; }
.ss-w-pd-seg-btn:focus-visible { outline: 2px solid var(--ss-w-accent); outline-offset: 1px; }
.ss-w-pd-perf-sub { margin-bottom: 10px; font-size: 11px; color: var(--ss-w-faint); }
.ss-w-pd-perf-head + .ss-w-pd-perf-cards { margin-top: 10px; }
.ss-w-pd-perf-cards { display: flex; flex-direction: column; gap: 8px; }
.ss-w-pd-perf-card { padding: 14px; }
.ss-w-pd-perf-group { margin-bottom: 10px; font-size: 12.5px; font-weight: 700; }
.ss-w-pd-bar-row + .ss-w-pd-bar-row { margin-top: 12px; }
.ss-w-pd-bar-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 5px; font-size: 12.5px; }
.ss-w-pd-bar-label { min-width: 0; overflow-wrap: break-word; }
.ss-w-pd-bar-value { flex: none; font-weight: 700; font-variant-numeric: tabular-nums; }
.ss-w-pd-track { height: 6px; border-radius: 999px; background: var(--ss-w-track); overflow: hidden; }
.ss-w-pd-fill { height: 100%; border-radius: 999px; }
.ss-w-pd-fill--pos { background: var(--ss-w-pos); }
.ss-w-pd-fill--warn { background: var(--ss-w-warn); }
.ss-w-pd-fill--neg { background: var(--ss-w-neg); }
.ss-w-pd-match { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--ss-w-line); }
.ss-w-pd-match:last-child { border-bottom: none; }
.ss-w-pd-match-date { font-size: 10.5px; color: var(--ss-w-faint); }
.ss-w-pd-match-opp { font-size: 12.5px; font-weight: 600; overflow-wrap: break-word; }
.ss-w-pd-match-sub { margin-top: 1px; font-size: 10.5px; color: var(--ss-w-faint); }
.ss-w-pd-chip-empty { min-width: 30px; }
.ss-w-pd-chip { min-width: 30px; padding: 3px 0; border-radius: 6px; text-align: center; font-size: 11.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.ss-w-rec-list { margin: 0; padding: 0; list-style: none; }
.ss-w-rec-value { flex: none; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ss-w-ink); }
.ss-w-rec-since { font-size: 12px; color: var(--ss-w-faint); }
/* Per-pin unavailable state: the pin's context line still rendered above (score, name, unpin), but
   the pin has neither a card nor history (compose-time rescue failed) -- a small inline note beats
   a bare context line with nothing under it. */
.ss-w-mon-empty-card { padding: 8px 0 2px; font-size: 12px; color: var(--ss-w-faint); }
.ss-w-mon-inslip { display: inline-flex; flex: none; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700; color: var(--ss-w-pos); }
/* Odds-tab item is bare: the visible card is the market-odds card itself (no outer wrapper card),
   with an optional slim live strip above it. */
.ss-w-mon-oddspin { display: flex; flex-direction: column; gap: 8px; }
.ss-w-mk-live { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 0 2px; font-size: 11.5px; color: var(--ss-w-faint); }
.ss-w-mk-live-score { color: var(--ss-w-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.ss-w-mon-oddspin[data-settled] .ss-w-mo-price,
.ss-w-mon-oddspin[data-settled] .ss-w-mon-price { text-decoration: line-through; color: var(--ss-w-faint); }

/* market accordion (Task 9): one collapsed row per available market, expanding into a reused
   MarketOddsCardList ladder (hideHeader -- the row header already carries the market label). */
/* Pinned-match tile: the match card + its odds accordion, spaced apart. */
.ss-w-mon-item { display: flex; flex-direction: column; gap: 10px; }
.ss-w-acc { display: flex; flex-direction: column; gap: 6px; }
.ss-w-acc-row { background: var(--ss-w-panel); border: 1px solid var(--ss-w-line); border-radius: 12px; border-left: 3px solid var(--ss-w-accent); overflow: hidden; }
/* Row header: expand toggle (flex:1) + the market PinToggle as a sibling (no nested buttons). */
.ss-w-acc-head { display: flex; align-items: center; gap: 8px; padding: 6px 9px 6px 11px; }
.ss-w-acc-toggle { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; background: none; border: none; cursor: pointer; text-align: left; font: inherit; color: var(--ss-w-ink); padding: 5px 0; }
/* Suspended: the row stays listed (knowing a market is off is useful) but is not tappable --
   its card is unservable, so a pointer cursor would promise something that cannot load. */
.ss-w-acc-toggle--susp { cursor: default; color: var(--ss-w-faint); }
.ss-w-acc-chevron { color: var(--ss-w-faint); font-size: 11px; flex: none; }
.ss-w-acc-label { font-size: 12.5px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-w-acc-badge { font-size: 10.5px; font-weight: 700; color: var(--ss-w-accent); flex: none; }
.ss-w-acc-susp { margin-left: auto; font-size: 10.5px; color: var(--ss-w-faint); flex: none; }
.ss-w-acc-panel { padding: 0 11px 10px; display: flex; flex-direction: column; gap: 8px; }
.ss-w-acc-insight { font-size: 12px; color: var(--ss-w-ink); background: color-mix(in srgb, var(--ss-w-accent) 9%, var(--ss-w-panel)); border-radius: 8px; padding: 7px 9px; }
.ss-w-acc-retry { font-size: 12px; color: var(--ss-w-neg); cursor: pointer; padding: 6px 0; }

/* ---- Today tab (u355) ---- */
.ss-w-sec-head { display: flex; align-items: center; gap: 7px; padding: 2px 2px 0; font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--ss-w-faint); }
.ss-w-sec-head::after { content: ""; flex: 1; height: 1px; background: var(--ss-w-line); }
.ss-w-sec-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ss-w-neg); flex: none; }
.ss-w-today-live { display: flex; flex-direction: column; gap: 2px; }

/* Today tab root (Task 7): position: relative so the grid's own star/unstar toast (absolute,
   top-centre) anchors here rather than to some unrelated positioned ancestor. */
/* Non-scrolling anchor for .ss-w-today-toast (position: absolute; top: 0): .ss-w-mon-list below is
   the overflow-y: auto scroller, so a toast parented to IT would scroll out of view with the
   content that moved it. This wrapper sits outside that scroller, inside .ss-w-panel's fixed-size
   flex column, so top: 0 always lands at the visible top of the Today tab. min-height: 0 is
   required: without it this flex item defaults to min-height: auto (its content height), .ss-w-panel's
   overflow: hidden then clips it, and .ss-w-mon-list inside never gets a bounded height to scroll within. */
.ss-w-today-root { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* Section header for "Your leagues"/"Top leagues"/"All leagues" (Task 7) -- same visual
   treatment as .ss-w-sec-head (the live-band header), kept as a separate class so a kept test
   asserting .ss-w-sec-head is absent when nothing is live cannot see this header too. */
.ss-w-today-sec { display: flex; align-items: center; gap: 7px; padding: 2px 2px 0; font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--ss-w-faint); }
.ss-w-today-sec::after { content: ""; flex: 1; height: 1px; background: var(--ss-w-line); }
.ss-w-today-sec-sub { text-transform: none; letter-spacing: normal; font-weight: 600; }
.ss-w-today-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ss-w-today-empty { font-size: 12px; color: var(--ss-w-faint); padding: 10px 2px; }
.ss-w-today-search-block { display: flex; flex-direction: column; }
.ss-w-today-search-group { display: flex; align-items: center; gap: 7px; padding: 2px 2px 6px; }
.ss-w-today-search-group::after { content: ""; flex: 1; height: 1px; background: var(--ss-w-line); }
.ss-w-today-search-group .ss-w-bi-comp-logo { width: 16px; height: 16px; }
.ss-w-today-search-group-name { font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--ss-w-faint); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-w-today-search-row { cursor: pointer; border-radius: 10px; }
.ss-w-today-search-row:focus-visible { outline: 2px solid var(--ss-w-accent); outline-offset: -2px; }

/* League tile (Task 5): a flat row (crest + name as the open target, star as a separate sibling
   button) rather than a disclosure header -- opening is Task 6's LeagueDetail, not an inline
   expansion. Same border/radius language .ss-w-grp used to carry, before Task 7 deleted it. */
.ss-w-today-tile { display: flex; align-items: center; gap: 6px; border: 1px solid var(--ss-w-line); border-radius: 12px; overflow: hidden; background: var(--ss-w-bubble); }
.ss-w-today-tile-body { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 8px 9px; background: none; border: none; font: inherit; color: var(--ss-w-ink); cursor: pointer; text-align: left; }
.ss-w-today-tile-body:focus-visible { outline: 2px solid var(--ss-w-accent); outline-offset: -2px; }
.ss-w-today-tile-name { font-size: 12px; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-w-today-tile-country { font-weight: 600; color: var(--ss-w-faint); }
.ss-w-today-tile-star { flex: none; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; margin: 0 6px; background: none; border: none; border-radius: 8px; color: var(--ss-w-faint); cursor: pointer; }
.ss-w-today-tile-star:focus-visible { outline: 2px solid var(--ss-w-accent); outline-offset: -2px; }
.ss-w-today-tile-star[aria-pressed="true"] { color: var(--ss-w-accent); }
.ss-w-today-tile-star:disabled { cursor: default; opacity: .4; }
.ss-w-today-tile-star svg { width: 18px; height: 18px; }

/* Capped row groups (variant B of u521): one league's section-header plus up to
   ROW_CAP_PER_LEAGUE inline fixture rows, used in place of a tile when the section row budget
   allows it. Mirrors LeagueTile's button-body + sibling-star-button shape. */
.ss-w-today-rowsection { display: flex; flex-direction: column; gap: 12px; }
.ss-w-today-rowgroup { display: flex; flex-direction: column; }
.ss-w-today-rowgroup-head { display: flex; align-items: center; gap: 4px; }
.ss-w-today-rowgroup-head-body { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 2px; background: none; border: none; font: inherit; color: var(--ss-w-ink); cursor: pointer; text-align: left; }
.ss-w-today-rowgroup-head-body:focus-visible { outline: 2px solid var(--ss-w-accent); outline-offset: -2px; }
.ss-w-today-rowgroup-name { font-size: 11px; font-weight: 800; letter-spacing: .02em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-w-today-rowgroup-star { flex: none; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: none; border: none; border-radius: 8px; color: var(--ss-w-faint); cursor: pointer; }
.ss-w-today-rowgroup-star:focus-visible { outline: 2px solid var(--ss-w-accent); outline-offset: -2px; }
.ss-w-today-rowgroup-star[aria-pressed="true"] { color: var(--ss-w-accent); }
.ss-w-today-rowgroup-star:disabled { cursor: default; opacity: .4; }
.ss-w-today-rowgroup-star svg { width: 16px; height: 16px; }
.ss-w-today-rowgroup-rows { display: flex; flex-direction: column; }
.ss-w-today-rowgroup-seeall { align-self: flex-start; background: none; border: none; font: inherit; font-size: 11px; font-weight: 700; color: var(--ss-w-faint); cursor: pointer; padding: 4px 2px 0; }
.ss-w-today-rowgroup-seeall:focus-visible { outline: 2px solid var(--ss-w-accent); outline-offset: -2px; }

/* League detail (Task 6): the drill-in view opened from a tile. Its header star is always
   enabled (spec §3/§7's one exception to the tile rule), so it carries no :disabled styling. */
.ss-w-today-detail { position: relative; display: flex; flex-direction: column; gap: 10px; }
.ss-w-today-detail-head { display: flex; align-items: center; gap: 8px; }
.ss-w-today-detail-back { flex: none; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; background: none; border: none; border-radius: 8px; color: var(--ss-w-ink); cursor: pointer; transform: scaleX(-1); }
.ss-w-today-detail-back:focus-visible { outline: 2px solid var(--ss-w-accent); outline-offset: -2px; }
.ss-w-today-detail-name { flex: 1; min-width: 0; font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-w-today-detail-star { flex: none; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: none; border: none; border-radius: 8px; color: var(--ss-w-faint); cursor: pointer; }
.ss-w-today-detail-star:focus-visible { outline: 2px solid var(--ss-w-accent); outline-offset: -2px; }
.ss-w-today-detail-star[aria-pressed="true"] { color: var(--ss-w-accent); }
.ss-w-today-detail-star svg { width: 18px; height: 18px; }
.ss-w-today-detail-nav { display: flex; align-items: center; justify-content: center; gap: 10px; }
.ss-w-today-detail-prev, .ss-w-today-detail-next { flex: none; display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; background: none; border: none; border-radius: 8px; color: var(--ss-w-faint); cursor: pointer; }
.ss-w-today-detail-prev:focus-visible, .ss-w-today-detail-next:focus-visible { outline: 2px solid var(--ss-w-accent); outline-offset: -2px; }
.ss-w-today-detail-prev { transform: scaleX(-1); }
.ss-w-today-detail-pos { font-size: 10.5px; font-weight: 700; color: var(--ss-w-faint); font-variant-numeric: tabular-nums; }
.ss-w-today-detail-body { display: flex; flex-direction: column; }
.ss-w-today-detail-count { align-self: flex-end; flex: none; font-size: 10.5px; font-weight: 700; color: var(--ss-w-faint); background: var(--ss-w-panel); border: 1px solid var(--ss-w-line); border-radius: 999px; padding: 1px 7px; font-variant-numeric: tabular-nums; margin-bottom: 4px; }
/* aria-live status region, not a modal -- pointer-events: none so the header/nav above stay
   clickable while it is showing. */
.ss-w-today-toast { position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 1; pointer-events: none; width: max-content; max-width: 220px; font-size: 11px; font-weight: 560; color: var(--ss-w-accent); background: color-mix(in srgb, var(--ss-w-accent) 14%, var(--ss-w-panel)); border: 1px solid color-mix(in srgb, var(--ss-w-accent) 30%, var(--ss-w-line)); border-radius: 10px; padding: 5px 10px; box-shadow: 0 4px 14px rgba(0,0,0,.14); }

.ss-w-drow { display: grid; grid-template-columns: 42px minmax(0,1fr) 22px; align-items: center; gap: 9px; padding: 7px 0; border-bottom: 1px solid var(--ss-w-line); }
.ss-w-drow:last-child { border-bottom: none; }
.ss-w-drow-when { font-size: 11px; font-weight: 700; color: var(--ss-w-faint); font-variant-numeric: tabular-nums; }
.ss-w-drow-when--live { color: var(--ss-w-neg); }
/* Each side ellipsises independently: a single joined string truncates the away team off the end,
   which is the u350 betting-card truncation one layer down. */
.ss-w-drow-fx { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ss-w-drow-side { display: flex; align-items: center; gap: 5px; min-width: 0; flex: 1 1 0; }
/* Away side mirrors home around the score: crest to the far edge, name aligned inward. */
.ss-w-drow-side--away { flex-direction: row-reverse; text-align: right; }
.ss-w-drow-nm { font-size: 12.5px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Centre slot of .ss-w-drow-fx, between the two sides: flex:none so a widening score never
   steals width the team names need to avoid ellipsis. min-width holds the slot at the width of a
   one-digit scoreline so an unscored row's bare dash does not pull the column out of line -- the
   scores read as a column down the list, not a jitter. */
.ss-w-drow-sc { flex: none; min-width: 26px; text-align: center; font-size: 12.5px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--ss-w-ink); }
.ss-w-drow-sc--idle { color: var(--ss-w-faint); font-weight: 600; }
.ss-w-drow--live { background: color-mix(in srgb, var(--ss-w-neg) 5%, transparent); border-radius: 8px; padding: 7px 6px; margin: 0 -6px; border-bottom: none; }
.ss-w-drow-crest { width: 16px; height: 16px; flex: none; border-radius: 50%; object-fit: contain; background: var(--ss-w-bubble); }

.ss-w-stale { font-size: 11px; font-weight: 600; color: var(--ss-w-cta); background: color-mix(in srgb, var(--ss-w-cta) 12%, var(--ss-w-panel)); border-radius: 8px; padding: 6px 9px; }

/* Prize banner: CTA-tinted card with icon + body column (label + chips) — still used by
   LeaderboardEmpty.tsx's weekly-prize callout. */
.ss-w-prize { display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px; border-radius: 12px; background: color-mix(in srgb, var(--ss-w-cta) 10%, var(--ss-w-panel)); border: 1px solid color-mix(in srgb, var(--ss-w-cta) 22%, var(--ss-w-line)); }
.ss-w-prize-icon { flex: none; font-size: 20px; line-height: 1; padding-top: 1px; }
.ss-w-prize-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ss-w-prize-text { font-size: 12.5px; font-weight: 650; color: var(--ss-w-ink); line-height: 1.35; overflow-wrap: anywhere; }

/* ── games hub (u393) ── */
.ss-g-hub-wrap { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; background: var(--ss-g-ground); font-family: var(--ss-g-font-body); color: var(--ss-g-ink); }
.ss-g-hub { display: flex; flex-direction: column; gap: 14px; padding: 14px 16px 20px; }
.ss-g-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ss-g-stat { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: 12px; background: var(--ss-g-surface); border: 1px solid var(--ss-g-line); min-width: 0; }
.ss-g-stat-l { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ss-g-muted); }
.ss-g-stat-v { display: flex; align-items: baseline; gap: 4px; font-family: var(--ss-g-font-display); font-weight: 800; font-size: 24px; line-height: 1; white-space: nowrap; }
.ss-g-stat-v svg { color: var(--ss-g-flame); align-self: center; }
.ss-g-stat-v small { font-family: var(--ss-g-font-body); font-size: 12px; font-weight: 600; color: var(--ss-g-muted); overflow: hidden; text-overflow: ellipsis; }
.ss-g-stat-v--accent { color: var(--ss-w-accent); }
.ss-g-prize { align-self: flex-start; }
.ss-g-tile { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 10px; min-width: 0; border-radius: 14px; background: var(--ss-g-surface); border: 1px solid var(--ss-g-line); color: var(--ss-g-ink); text-align: left; font: inherit; cursor: pointer; }
.ss-g-tile:not([data-disabled]):hover { border-color: var(--ss-g-line-warm); }
.ss-g-tile[data-disabled] { opacity: .55; cursor: default; }
.ss-g-tile--tile { height: 148px; }
.ss-g-tile-art { height: 74px; border-radius: 10px; background: var(--ss-g-raised); display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.ss-g-art { width: 100%; height: 100%; }
.ss-g-art-fg { fill: var(--ss-g-strong-line); }
.ss-g-art-accent { fill: var(--ss-w-accent); }
.ss-g-art-accent-stroke { fill: none; stroke: var(--ss-w-accent); stroke-width: 2; }
.ss-g-art-dot { fill: var(--ss-g-pitch-mark); }
.ss-g-art-pitch { fill: var(--ss-g-pitch); stroke: var(--ss-g-pitch-line); }
.ss-g-art-block { fill: var(--ss-g-line); }
.ss-g-art-correct { fill: var(--ss-g-correct); }
.ss-g-art-dash { fill: none; stroke: var(--ss-g-strong-line); stroke-dasharray: 3 2; stroke-width: 1.5; }
.ss-g-art-line { stroke: var(--ss-g-line-warm); stroke-width: 2; }
.ss-g-art-ink { fill: none; stroke: var(--ss-g-on-accent); stroke-width: 2; }
.ss-g-art-q { fill: var(--ss-w-accent); font: 800 20px var(--ss-g-font-display); }
.ss-g-tile-title { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-g-tile-status { font-size: 12px; color: var(--ss-g-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-g-tile-status[data-tone="accent"] { color: var(--ss-w-accent); font-weight: 600; }
.ss-g-tile-status[data-tone="success"] { color: var(--ss-g-success); font-weight: 700; }
.ss-g-tile--hero { flex-direction: row; min-height: 184px; padding: 0; overflow: hidden; border-radius: 18px; background: var(--ss-g-warm); border-color: var(--ss-g-line-warm); }
.ss-g-hero-text { flex: 0 0 60%; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 18px; min-width: 0; }
.ss-g-hero-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ss-w-accent); }
.ss-g-hero-title { font-family: var(--ss-g-font-display); font-weight: 800; font-size: 34px; line-height: .95; text-transform: uppercase; overflow-wrap: anywhere; }
.ss-g-hero-sub { font-size: 14px; color: var(--ss-g-ink-2); }
.ss-g-hero-cta { align-self: flex-start; margin-top: 6px; padding: 9px 16px; border-radius: 999px; background: var(--ss-w-accent); color: var(--ss-g-on-accent); font-size: 14px; font-weight: 700; }
.ss-g-hero-art { flex: 1; display: flex; align-items: center; justify-content: center; background: repeating-linear-gradient(-58deg, var(--ss-g-accent-tint) 0 14px, var(--ss-g-warm) 14px 32px); }
.ss-g-sec { display: flex; flex-direction: column; gap: 10px; }
.ss-g-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 6px; }
.ss-g-sec-head h3 { font-family: var(--ss-g-font-display); font-weight: 700; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; }
.ss-g-sec-head span { font-size: 12px; color: var(--ss-g-muted); white-space: nowrap; }
.ss-g-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ss-g-tile--wide { flex-direction: row; align-items: center; gap: 14px; min-height: 104px; }
.ss-g-wide-art { width: 84px; height: 84px; flex: none; border-radius: 10px; background: var(--ss-g-raised); }
.ss-g-wide-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.ss-g-wide-chev { color: var(--ss-g-muted); transform: rotate(180deg); display: flex; }

/* ── Mystery Tiger (u393) ── */
.ss-g-mt-card { flex: none; border-radius: 18px; background: var(--ss-g-warm); border: 1px solid var(--ss-g-line-warm); overflow: hidden; display: flex; flex-direction: column; }
.ss-g-mt-portrait { position: relative; height: 178px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; background: repeating-linear-gradient(-58deg, var(--ss-g-accent-tint) 0 16px, var(--ss-g-warm) 16px 36px); }
.ss-g-mt-portrait .ss-g-sil { font-size: 46px; }
.ss-g-mt-photo { width: 132px; height: 132px; margin-bottom: 30px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--ss-g-accent-tint); color: var(--ss-w-accent); font: 800 40px var(--ss-g-font-display); }
.ss-g-mt-photo img { width: 100%; height: 100%; object-fit: cover; }
.ss-g-cp-photo { width: 64px; height: 64px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--ss-g-accent-tint); color: var(--ss-w-accent); font: 800 22px var(--ss-g-font-display); }
.ss-g-cp-photo img { width: 100%; height: 100%; object-fit: cover; }
.ss-g-mt-reveal-name { position: absolute; bottom: 6px; left: 12px; right: 12px; text-align: center; font: 800 20px var(--ss-g-font-display); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-g-mt-known { display: grid; gap: 6px; padding: 12px; }
.ss-g-mt-known-cell { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.ss-g-mt-lab { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ss-g-muted); }
.ss-g-mt-known-v { width: 100%; height: 38px; border-radius: 8px; display: grid; place-items: center; font: 700 16px var(--ss-g-font-display); background: var(--ss-g-raised); color: var(--ss-g-muted); white-space: nowrap; }
.ss-g-mt-known-v[data-state="known"] { background: var(--ss-g-correct); color: var(--ss-g-on-correct); font-size: 18px; }
.ss-g-mt-known-v[data-state="range"] { border: 1px dashed var(--ss-g-strong-line); }
.ss-g-mt-table { display: flex; flex-direction: column; gap: 8px; }
.ss-g-mt-thead, .ss-g-mt-row { display: grid; gap: 5px; align-items: center; }
.ss-g-mt-thead { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ss-g-muted); }
.ss-g-mt-thead span:not(:first-child) { text-align: center; }
.ss-g-mt-who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ss-g-mt-av { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--ss-g-raised); color: var(--ss-g-muted); font-size: 12px; font-weight: 700; overflow: hidden; }
.ss-g-mt-names { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.ss-g-mt-first { font-size: 11px; color: var(--ss-g-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-g-mt-last { font-size: 14px; font-weight: 700; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-g-mt-cell { height: 42px; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; font: 700 16px var(--ss-g-font-display); background: var(--ss-g-raised); border: 1px solid var(--ss-g-line); color: var(--ss-g-ink); overflow: hidden; }
.ss-g-mt-cell[data-verdict="exact"] { background: var(--ss-g-correct); border-color: transparent; color: var(--ss-g-on-correct); }
.ss-g-mt-cell[data-verdict="near"] { background: var(--ss-g-close); border-color: transparent; color: var(--ss-g-on-accent); }
.ss-g-mt-cell-dir { font-size: 10px; margin-top: 2px; }
.ss-g-mt-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--ss-g-muted); }
.ss-g-mt-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ss-g-mt-sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.ss-g-mt-sw[data-verdict="exact"] { background: var(--ss-g-correct); }
.ss-g-mt-sw[data-verdict="near"] { background: var(--ss-g-close); }
.ss-g-mt-hint { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--ss-g-surface); border: 1px solid var(--ss-g-line); font-size: 13px; color: var(--ss-g-ink-2); }
.ss-g-mt-hint svg { color: var(--ss-w-accent); flex: none; margin-top: 1px; }

/* ── Higher or Lower (u393) ── */
.ss-g-hl-prompt { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.ss-g-hl-prompt-q { font-size: 13px; color: var(--ss-g-muted); }
.ss-g-hl-prompt-stat { font: 800 30px var(--ss-g-font-display); text-transform: uppercase; letter-spacing: .02em; line-height: 1.05; }
.ss-g-hl-prompt-season { font-size: 12px; color: var(--ss-g-muted); }
/* The pair fills whatever height the panel leaves (a laptop demo panel is ~670px, the design 860px):
   both cards share it and the photos scale with them, so Higher/Lower never fall below the fold. */
.ss-g-hl .ss-g-body { overflow-y: auto; container: hl / size; }
.ss-g-hl-pair { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 12px; }
.ss-g-hl-card { flex: 1 1 0; min-height: min-content; max-height: 240px; display: flex; border-radius: 18px; overflow: hidden; background: var(--ss-g-surface); border: 1px solid var(--ss-g-line); }
.ss-g-hl-card--b { border-color: var(--ss-g-line-warm); }
.ss-g-hl-photo-wrap { width: 38%; max-width: 160px; flex: none; align-self: stretch; display: flex; align-items: flex-end; justify-content: center; background: var(--ss-g-raised); overflow: hidden; }
.ss-g-hl-photo-wrap .ss-g-sil { border-radius: 0; background: transparent; }
.ss-g-hl-photo { width: 100%; height: 100%; display: grid; place-items: center; color: var(--ss-g-muted); font: 800 36px var(--ss-g-font-display); }
.ss-g-hl-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ss-g-hl-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 12px 14px; }
.ss-g-hl-first { font-size: 13px; color: var(--ss-g-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-g-hl-surname { font: 800 26px var(--ss-g-font-display); text-transform: uppercase; line-height: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-g-hl-value { font: 800 56px var(--ss-g-font-display); line-height: .95; color: var(--ss-w-accent); margin-top: 6px; }
.ss-g-hl-stat { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ss-g-muted); }
.ss-g-hl-btns { display: flex; flex-direction: row; gap: 8px; margin-top: 12px; }
.ss-g-hl-btns .ss-g-btn { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 0 6px; gap: 4px; }
/* Labels stay on one line: Turkish "DAHA FAZLA" wrapped to two in a ~115px button. */
.ss-g-hl-btns .ss-g-btn { font-weight: 800; font-size: 13px; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.ss-g-hl-btns .ss-g-btn svg { flex: none; }
/* Phone-width cards: the info column is ~230px, too narrow for "DAHA FAZLA" + icon side by side.
   Drop the icons and tighten the type first; stack the buttons only when even that cannot fit. */
.ss-g-hl-info { container: hlinfo / inline-size; }
@container hlinfo (max-width: 280px) {
  .ss-g-hl-btns .ss-g-btn svg { display: none; }
  .ss-g-hl-btns .ss-g-btn { font-size: 12px; letter-spacing: 0; padding: 0 4px; }
}
@container hlinfo (max-width: 180px) {
  .ss-g-hl-btns { flex-direction: column; }
}
.ss-g-hl-vs { position: relative; z-index: 1; flex: none; align-self: center; width: 44px; height: 44px; margin: -28px 0; border-radius: 50%; display: grid; place-items: center; background: var(--ss-g-ground); border: 2px solid var(--ss-g-line-warm); color: var(--ss-w-accent); font: 800 18px var(--ss-g-font-display); }
/* Clear the VS badge that straddles the seam between the two cards. */
.ss-g-hl-pair > .ss-g-hl-card:first-child .ss-g-hl-info { padding-bottom: 24px; }
.ss-g-hl-vs + .ss-g-hl-card .ss-g-hl-info { padding-top: 24px; }
/* Short panels (a ~580px widget on a small laptop): tighten the type so both cards and the
   Higher/Lower buttons stay on screen; below this the body scrolls rather than clipping names. */
@container hl (max-height: 420px) {
  .ss-g-hl-prompt-stat { font-size: 24px; }
  .ss-g-hl-prompt-season { display: none; }
  .ss-g-hl-info { padding: 8px 12px; }
  .ss-g-hl-surname { font-size: 22px; }
  .ss-g-hl-value { font-size: 42px; margin-top: 2px; }
  .ss-g-hl-btns { margin-top: 8px; }
  .ss-g-hl-vs { width: 38px; height: 38px; margin: -22px 0; font-size: 15px; }
  .ss-g-hl-pair > .ss-g-hl-card:first-child .ss-g-hl-info { padding-bottom: 18px; }
  .ss-g-hl-vs + .ss-g-hl-card .ss-g-hl-info { padding-top: 18px; }
}
.ss-g-hl-feedback { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ss-g-ink-2); }
.ss-g-hl-feedback[data-correct="true"] svg { color: var(--ss-g-success); }
.ss-g-hl-feedback[data-correct="false"] svg { color: var(--ss-g-wrong-mark); }
.ss-g-hl-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ss-g-hl-dots { display: flex; gap: 5px; }
.ss-g-hl-dot { width: 22px; height: 22px; border-radius: 50%; border: 1.5px dashed var(--ss-g-strong-line); }
.ss-g-hl-dot[data-state="correct"] { background: var(--ss-g-correct); border: 0; }
.ss-g-hl-dot[data-state="wrong"] { background: var(--ss-g-wrong-mark); border: 0; }
.ss-g-hl-pts { font: 700 22px var(--ss-g-font-display); white-space: nowrap; }
.ss-g-hl-pts-unit { font-size: 13px; color: var(--ss-g-muted); }

/* ── Guess the XI (u393) ── pitch colours are the fixed --ss-g-pitch* tokens (Task 1) */
.ss-g-gxi-pitch { position: relative; flex: none; height: 380px; border-radius: 18px; overflow: hidden; border: 1px solid var(--ss-g-pitch-line);
  background: repeating-linear-gradient(180deg, color-mix(in srgb, var(--ss-g-pitch) 92%, var(--ss-g-pitch-mark)) 0 12.5%, var(--ss-g-pitch) 12.5% 25%); }
.ss-g-gxi-rows { position: absolute; inset: 14px 6px; display: flex; flex-direction: column; justify-content: space-between; }
.ss-g-gxi-row { display: flex; justify-content: space-evenly; align-items: flex-start; }
.ss-g-gxi-node { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; max-width: 72px; }
.ss-g-gxi-disc { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--ss-g-pitch-chip); border: 2px solid var(--ss-g-pitch-ink); font-size: 22px; line-height: 1; }
.ss-g-gxi-node[data-revealed] .ss-g-gxi-disc { border-color: var(--ss-w-accent); }
.ss-g-gxi-disc[data-code] { font-family: var(--ss-g-font-body); font-size: 11px; font-weight: 800; letter-spacing: .02em; color: var(--ss-g-pitch-ink); }
.ss-g-gxi-pos { max-width: 100%; padding: 1px 6px; border-radius: 4px; background: var(--ss-g-pitch-chip); color: var(--ss-g-pitch-ink); font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-g-gxi-pos--name { color: var(--ss-w-accent); text-transform: uppercase; }
.ss-g-gxi-wrong { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ss-g-gxi-wrong-l { font-size: 12px; color: var(--ss-g-muted); }
.ss-g-gxi-wrong-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 999px; background: var(--ss-g-surface); border: 1px solid var(--ss-g-line); font-size: 13px; color: var(--ss-g-muted); }
/* u407: lineup photo — fills the 44px disc like the flag does */
.ss-g-gxi-disc--photo { overflow: hidden; border: 2px solid var(--ss-w-accent); }
.ss-g-gxi-disc--photo img { width: 100%; height: 100%; object-fit: cover; }
.ss-g-gxi-disc--photo .ss-w-av-initials { font-family: var(--ss-g-font-body); font-size: 11px; font-weight: 800; color: var(--ss-g-pitch-ink); }
/* u407: answer reveal — prominent row using theme tokens, works on dark/navy/light surfaces */
.ss-g-gxi-answer { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 12px 16px; border-radius: 14px; background: var(--ss-g-warm); border: 1.5px solid var(--ss-g-line-warm); }
.ss-g-gxi-answer-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ss-g-muted); flex: none; }
.ss-g-gxi-answer-name { font-family: var(--ss-g-font-display); font-weight: 800; font-size: 20px; text-transform: uppercase; color: var(--ss-g-ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Daily Quiz (u393) ---- */
.ss-g-dq-stem { font-family: var(--ss-g-font-display); font-weight: 700; font-size: 30px; line-height: 1.05; overflow-wrap: anywhere; }
.ss-g-dq-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ss-g-dq-opt { position: relative; min-height: 96px; padding: 44px 12px 12px; border-radius: 16px; border: 1.5px solid var(--ss-g-line); background: var(--ss-g-surface); color: var(--ss-g-ink); text-align: left; font: inherit; cursor: pointer; display: flex; align-items: flex-end; min-width: 0; }
.ss-g-dq-opt:hover:not(:disabled) { border-color: var(--ss-g-line-warm); }
.ss-g-dq-opt[aria-pressed="true"] { border: 2px solid var(--ss-w-accent); background: var(--ss-g-warm); }
.ss-g-dq-opt:disabled { cursor: default; }
.ss-g-dq-badge { position: absolute; top: 10px; left: 10px; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--ss-g-raised); font-weight: 700; font-size: 13px; color: var(--ss-g-ink); }
.ss-g-dq-opt[aria-pressed="true"] .ss-g-dq-badge { background: var(--ss-w-accent); color: var(--ss-g-on-accent); }
.ss-g-dq-opt-name { display: flex; flex-direction: column; min-width: 0; line-height: 1.05; }
.ss-g-dq-opt-first { font-size: 12px; color: var(--ss-g-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-g-dq-opt-last { font-family: var(--ss-g-font-display); font-weight: 700; font-size: 20px; text-transform: uppercase; overflow-wrap: anywhere; }
.ss-g-dq-opt-suffix { margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--ss-g-muted); }
.ss-g-dq-opt-full { font-size: 15px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.ss-g-dq-nav { display: flex; gap: 10px; }
.ss-g-dq-nav .ss-g-btn--block { flex: 1; }
.ss-g-dq-rq { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 14px; background: var(--ss-g-surface); border: 1px solid var(--ss-g-line); }
.ss-g-dq-rq-stem { font-weight: 700; font-size: 14px; }
.ss-g-dq-rq-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.ss-g-dq-rq-opt { padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--ss-g-raised); color: var(--ss-g-muted); }
.ss-g-dq-rq-opt--correct { background: var(--ss-g-correct); color: var(--ss-g-on-correct); }
.ss-g-dq-rq-opt--wrong { background: var(--ss-g-wrong); color: var(--ss-g-on-correct); }
.ss-g-dq-why { font-size: 13px; color: var(--ss-g-ink-2); }
/* u407: player avatar in quiz option — centered in top half, badge at top-left unaffected */
.ss-g-dq-opt-av { position: absolute; top: 7px; right: 10px; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--ss-g-raised); display: grid; place-items: center; color: var(--ss-g-muted); font-size: 13px; font-weight: 700; flex: none; }
.ss-g-dq-opt-av img { width: 100%; height: 100%; object-fit: cover; }
.ss-g-dq-opt-av .ss-w-av-initials { font-size: 11px; }

/* ---- Career Path (u393) ---- */
.ss-g-cp-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--ss-g-warm); border: 1px solid var(--ss-g-line-warm); }
.ss-g-cp-card-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.ss-g-cp-card-title { font-family: var(--ss-g-font-display); font-weight: 700; font-size: 20px; text-transform: uppercase; overflow-wrap: anywhere; }
.ss-g-cp-hint { font-size: 13px; color: var(--ss-g-ink-2); }
.ss-g-cp-locks { display: flex; gap: 6px; flex-wrap: wrap; }
.ss-g-cp-line { list-style: none; display: flex; flex-direction: column; }
.ss-g-cp-step { display: flex; gap: 14px; align-items: stretch; }
.ss-g-cp-rail { display: flex; flex-direction: column; align-items: center; width: 52px; flex: none; }
.ss-g-cp-tile { width: 52px; height: 52px; border-radius: 14px; background: var(--ss-g-surface); border: 1px solid var(--ss-g-line); display: grid; place-items: center; }
.ss-g-cp-tile--locked { border: 1.5px dashed var(--ss-g-strong-line); background: transparent; color: var(--ss-g-muted); }
.ss-g-cp-tile--faint { border: 1.5px dashed var(--ss-g-line); background: transparent; color: var(--ss-g-faint); }
.ss-g-cp-conn { width: 2px; flex: 1; min-height: 14px; background: var(--ss-g-line-warm); }
.ss-g-cp-conn--faint { background: var(--ss-g-line); }
.ss-g-cp-step:last-child .ss-g-cp-conn { display: none; }
.ss-g-cp-step-text { display: flex; flex-direction: column; justify-content: center; min-height: 52px; padding-bottom: 14px; min-width: 0; }
.ss-g-cp-club { font-weight: 700; font-size: 16px; overflow-wrap: anywhere; }
.ss-g-cp-sub { font-size: 12px; color: var(--ss-g-muted); }
.ss-g-cp-loan { color: var(--ss-w-accent); font-weight: 600; }

/* Game screen host: fills the panel; each screen owns its header, gutters and scrolling. */
.ss-w-gscreen-wrap { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 0; overflow: hidden; background: var(--ss-g-ground); }
.ss-w-gscreen { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 0; }
.ss-w-gscreen-body { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 16px; color: var(--ss-w-faint); font-size: 13px; text-align: center; }

/* ---- Leaderboard (D2) ---- */
/* Outer shell */
.ss-w-lb2 { display: flex; flex-direction: column; gap: 12px; }

/* Segmented control: This week / All time */
.ss-w-seg { display: inline-flex; gap: 2px; align-self: flex-start; background: var(--ss-w-bubble); border: 1px solid var(--ss-w-line); border-radius: 9px; padding: 2px; }
.ss-w-seg-btn { font-size: 12px; font-weight: 600; border: none; border-radius: 7px; padding: 5px 12px; color: var(--ss-w-faint); background: none; cursor: pointer; font: inherit; white-space: nowrap; }
.ss-w-seg-btn[data-on] { color: var(--ss-w-ink); background: var(--ss-w-panel); box-shadow: 0 1px 3px rgba(0,0,0,.09); }

/* Row list */
.ss-w-lb2-rows { display: flex; flex-direction: column; border: 1px solid var(--ss-w-line); border-radius: 12px; overflow: hidden; background: var(--ss-w-panel); }
.ss-w-lb2-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-bottom: 1px solid var(--ss-w-line); }
.ss-w-lb2-row:last-child { border-bottom: none; }
/* Highlighted "you" row: full-width tint via negative margin trick, contained by border-radius above */
.ss-w-lb2-row--you { background: color-mix(in srgb, var(--ss-w-accent) 9%, var(--ss-w-panel)); }
.ss-w-lb2-rank { flex: none; min-width: 30px; font-size: 12.5px; font-weight: 750; font-variant-numeric: tabular-nums; color: var(--ss-w-faint); }
.ss-w-lb2-rank--top3 { color: var(--ss-w-cta); }
.ss-w-lb2-handle { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ss-w-ink); }
.ss-w-lb2-points { flex: none; font-size: 13px; font-weight: 750; font-variant-numeric: tabular-nums; color: var(--ss-w-ink); }
.ss-w-lb2-streak { flex: none; font-size: 11px; font-weight: 700; color: var(--ss-w-accent); padding-left: 4px; }

/* Kit-prize separator: a labelled hairline (eyebrow + two growing lines) */
.ss-w-kitline { display: flex; align-items: center; gap: 8px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ss-w-faint); }
.ss-w-kitline::before, .ss-w-kitline::after { content: ""; flex: 1; height: 1px; background: var(--ss-w-line); }

/* Off-board treatment: dashed pill indicating rank is outside top N */
.ss-w-lbgap { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 12px; font-size: 11.5px; color: var(--ss-w-faint); border: 1px dashed var(--ss-w-line); border-radius: 10px; }

/* ---- Leaderboard empty / weekly-reset default state ---- */
.ss-w-lb-empty { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.ss-w-lb-empty-hero { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; padding: 20px 16px; border: 1px dashed color-mix(in srgb, var(--ss-w-cta) 30%, var(--ss-w-line)); border-radius: 14px; background: color-mix(in srgb, var(--ss-w-cta) 6%, var(--ss-w-panel)); }
.ss-w-lb-empty--alltime { align-items: center; justify-content: center; text-align: center; padding: 24px 16px; }
.ss-w-lb-empty-icon { font-size: 30px; line-height: 1; }
.ss-w-lb-empty-title { margin: 2px 0 0; font-size: 16px; font-weight: 800; color: var(--ss-w-ink); }
.ss-w-lb-empty-body { margin: 0; max-width: 30ch; font-size: 12.5px; line-height: 1.4; color: var(--ss-w-faint); }
.ss-w-lb-empty-cta { margin-top: 6px; border: none; border-radius: 10px; padding: 9px 18px; font: inherit; font-size: 13px; font-weight: 700; color: var(--ss-w-cta-ink); background: var(--ss-w-cta); cursor: pointer; }
.ss-w-lb-empty-cta:hover { filter: brightness(1.04); }
.ss-w-lb-last { display: flex; align-items: center; gap: 7px; padding-top: 10px; border-top: 1px solid var(--ss-w-line); font-size: 11px; }
.ss-w-lb-last-label { text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: var(--ss-w-faint); }
.ss-w-lb-last-handle { flex: 1; min-width: 0; font-weight: 600; color: var(--ss-w-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-w-lb-last-points { flex: none; font-weight: 750; font-variant-numeric: tabular-nums; color: var(--ss-w-ink); }

/* PlayerAvatar initials fallback (PlayerAvatar.tsx) — size/colour inherit from the avatar class. */
.ss-w-av-initials { font-weight: 800; line-height: 1; text-transform: uppercase; letter-spacing: .02em; }

/* ---- Beat the Grid (u393) ---- */
.ss-g-btg-grid { display: grid; gap: 6px; }
/* While the search sheet is pinned below, the grid shrinks its rows to share the body with it
   instead of pushing the bottom row under the sheet. */
.ss-g-btg-grid--fit { flex: 0 1 auto; min-height: 0; }
.ss-g-btg-colhdr { min-height: 0; border-radius: 12px; background: var(--ss-g-surface); border: 1px solid var(--ss-g-line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 0 4px; font-size: 12px; font-weight: 700; line-height: 1.1; min-width: 0; overflow-wrap: anywhere; overflow: hidden; }
.ss-g-btg-colhdr[data-meta] { overflow-wrap: normal; word-break: normal; hyphens: none; font-size: 11px; letter-spacing: 0; }
.ss-g-btg-colhdr svg { color: var(--ss-w-accent); flex: none; }
.ss-g-btg-rowhdr { border-radius: 12px; background: var(--ss-g-surface); border: 1px solid var(--ss-g-line); display: grid; place-items: center; font-family: var(--ss-g-font-display); font-weight: 800; font-size: 18px; letter-spacing: .04em; text-transform: uppercase; overflow-wrap: anywhere; text-align: center; overflow: hidden; }
.ss-g-btg-rowhdr[data-meta] { font-size: 10px; font-family: var(--ss-g-font-body); font-weight: 700; letter-spacing: -0.01em; text-transform: none; word-break: normal; overflow-wrap: normal; hyphens: none; line-height: 1.25; padding: 0 2px; }
.ss-g-btg-cell { position: relative; min-height: 0; min-width: 0; border-radius: 12px; border: 1.5px dashed var(--ss-g-strong-line); background: transparent; color: var(--ss-g-muted); display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; cursor: pointer; font: inherit; padding: 0; }
.ss-g-btg-cell:disabled { cursor: default; }
.ss-g-btg-cell[data-state="active"] { border: 2px solid var(--ss-w-accent); background: var(--ss-g-warm); color: var(--ss-w-accent); }
.ss-g-btg-cell[data-state="correct"], .ss-g-btg-cell[data-state="wrong"] { justify-content: flex-end; background: var(--ss-g-surface); border-style: solid; }
.ss-g-btg-cell[data-state="correct"] { border-color: var(--ss-g-correct); }
.ss-g-btg-cell[data-state="wrong"] { border-color: var(--ss-g-wrong-mark); }
.ss-g-btg-badge { position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; color: var(--ss-g-on-correct); }
.ss-g-btg-badge--correct { background: var(--ss-g-correct); }
.ss-g-btg-badge--wrong { background: var(--ss-g-wrong); }
.ss-g-btg-rarity { position: absolute; top: 6px; left: 6px; padding: 1px 6px; border-radius: 999px; background: var(--ss-g-accent-tint); color: var(--ss-w-accent); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ss-g-btg-cell[data-state="wrong"] .ss-g-btg-rarity { background: var(--ss-g-raised); color: var(--ss-g-muted); }
.ss-g-btg-cell .ss-g-sil { border-radius: 0; background: transparent; }
.ss-g-btg-name { width: 100%; padding: 4px 2px; background: var(--ss-g-ground); color: var(--ss-g-ink); font-family: var(--ss-g-font-display); font-weight: 700; font-size: 14px; text-transform: uppercase; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-g-btg-plus { display: flex; }
.ss-g-btg-pin { flex: none; padding: 0 12px 12px; }
.ss-g-btg-sheet { padding: 14px; border-radius: 18px; background: var(--ss-g-surface); border: 1px solid var(--ss-g-line-warm); display: flex; flex-direction: column; gap: 12px; }
.ss-g-btg-sheet-hdr { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ss-g-btg-sheet-hdr .ss-g-chip { padding: 4px 10px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ss-g-btg-sheet-x { color: var(--ss-g-muted); display: flex; flex: none; }
.ss-g-btg-sheet-close { margin-left: auto; flex: none; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--ss-g-muted); display: grid; place-items: center; cursor: pointer; }
.ss-g-btg-sheet-close:hover { background: var(--ss-g-raised); color: var(--ss-g-ink); }
.ss-g-btg-sheet .ss-g-search-box { height: 48px; border-radius: 12px; background: var(--ss-g-ground); }
.ss-g-btg-sheet-empty { font-size: 13px; color: var(--ss-g-muted); }
.ss-g-btg-sheet .ss-g-opt { background: var(--ss-g-raised); }
.ss-g-btg-sheet .ss-g-opts { max-height: 160px; }
.ss-g-btg-result-name { flex: 1; min-width: 0; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-g-btg-result-plus { color: var(--ss-w-accent); display: flex; }
/* u407: cell avatar replaces Silhouette */
.ss-g-btg-av { width: 38px; height: 38px; flex: none; border-radius: 50%; overflow: hidden; background: var(--ss-g-raised); display: grid; place-items: center; color: var(--ss-g-muted); font-size: 12px; font-weight: 700; }
.ss-g-btg-av img { width: 100%; height: 100%; object-fit: cover; }
.ss-g-btg-av .ss-w-av-initials { font-size: 12px; }
/* u407: coach photo in row/col header */
.ss-g-btg-coach-av { width: 28px; height: 28px; flex: none; border-radius: 50%; overflow: hidden; background: var(--ss-g-raised); display: grid; place-items: center; color: var(--ss-g-muted); font-size: 10px; font-weight: 700; }
.ss-g-btg-coach-av img { width: 100%; height: 100%; object-fit: cover; }
/* u407: country flag emoji in header — sized to match other header icons */
.ss-g-btg-hdr-flag { font-size: 20px; line-height: 1; flex: none; }
/* u407: club crest in col/row header */
.ss-g-btg-colhdr .ss-g-crest, .ss-g-btg-rowhdr .ss-g-crest { width: 28px; height: 28px; flex: none; }

/* ── Starting XI (u393) ── */
.ss-g-xi-pitch { position: relative; flex: none; height: 400px; border-radius: 18px; overflow: hidden; background: repeating-linear-gradient(180deg, var(--ss-g-pitch) 0 40px, color-mix(in srgb, var(--ss-g-pitch) 88%, var(--ss-g-pitch-mark)) 40px 80px); border: 1px solid var(--ss-g-pitch-line); }
.ss-g-xi-slot { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 48px; border: 0; padding: 0; background: transparent; color: var(--ss-g-pitch-mark); font: inherit; cursor: pointer; }
.ss-g-xi-slot:disabled { cursor: default; }
.ss-g-xi-ring { width: 48px; height: 48px; box-sizing: border-box; display: grid; place-items: center; border-radius: 50%; border: 1.5px dashed var(--ss-g-pitch-mark); font-family: var(--ss-g-font-display); font-weight: 800; font-size: 20px; }
.ss-g-xi-slot[data-state="filled"] .ss-g-xi-ring { border: 2px solid var(--ss-w-accent); background: var(--ss-g-accent-tint); color: var(--ss-g-ink); }
.ss-g-xi-slot[data-state="active"] .ss-g-xi-ring { border: 2px solid var(--ss-w-accent); background: var(--ss-g-warm); color: var(--ss-w-accent); }
.ss-g-xi-tag { max-width: 72px; padding: 1px 6px; border-radius: 4px; background: var(--ss-g-ground); color: var(--ss-g-ink); font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-g-xi-slot[data-state="active"] .ss-g-xi-tag { background: var(--ss-w-accent); color: var(--ss-g-on-accent); }
.ss-g-xi-picker { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 16px; background: var(--ss-g-surface); border: 1px solid var(--ss-g-line-warm); }
.ss-g-xi-picker-head { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.ss-g-xi-list { list-style: none; display: flex; flex-direction: column; gap: 4px; max-height: 240px; overflow-y: auto; }
.ss-g-xi-opt { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 10px; border: 0; border-radius: 10px; background: var(--ss-g-raised); color: var(--ss-g-ink); font: inherit; text-align: left; cursor: pointer; }
.ss-g-xi-opt:disabled { opacity: .5; cursor: default; }
.ss-g-xi-opt-no { width: 28px; flex: none; font-family: var(--ss-g-font-display); font-weight: 800; font-size: 18px; color: var(--ss-w-accent); text-align: center; }
.ss-g-xi-opt-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-g-xi-opt-pos { flex: none; padding: 1px 6px; border-radius: 4px; background: var(--ss-g-line); color: var(--ss-g-ink-2); font-size: 10px; font-weight: 700; }
.ss-g-xi-lock { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ss-g-muted); }
.ss-g-xi-lock svg { color: var(--ss-w-accent); flex: none; }

/* ── Stat Ladder (u393) ── */
.ss-g-sl-prompt { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 0 6px; text-align: center; }
.ss-g-sl-stat { padding: 4px 10px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.ss-g-sl-q { font-family: var(--ss-g-font-display); font-weight: 800; font-size: 30px; line-height: 1.05; text-transform: uppercase; }
.ss-g-sl-q em { font-style: normal; color: var(--ss-w-accent); }
.ss-g-sl-rungs { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ss-g-sl-rung { min-height: 84px; display: flex; align-items: center; gap: 12px; padding: 0 16px 0 12px; border-radius: 16px; background: var(--ss-g-surface); border: 1px solid var(--ss-g-line); }
.ss-g-sl-rung--mystery { min-height: 96px; border: 2px dashed var(--ss-w-accent); background: repeating-linear-gradient(-58deg, var(--ss-g-accent-tint) 0 14px, var(--ss-g-warm) 14px 32px); }
.ss-g-sl-rung--mystery[data-result="correct"] { border: 2px solid var(--ss-g-correct); background: var(--ss-g-warm); }
.ss-g-sl-rung--mystery[data-result="wrong"] { border: 2px solid var(--ss-g-wrong-mark); background: var(--ss-g-warm); }
.ss-g-sl-rank { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--ss-g-raised); color: var(--ss-g-ink-2); font-family: var(--ss-g-font-display); font-weight: 800; font-size: 18px; }
.ss-g-sl-rung:first-child .ss-g-sl-rank { background: var(--ss-g-accent-tint); color: var(--ss-w-accent); }
.ss-g-sl-rung--mystery .ss-g-sl-rank { background: var(--ss-w-accent); color: var(--ss-g-on-accent); }
.ss-g-sl-av { width: 52px; height: 52px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--ss-g-raised); color: var(--ss-g-ink-2); font-weight: 700; }
.ss-g-sl-av img { width: 100%; height: 100%; object-fit: cover; }
.ss-g-sl-name { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.1; }
.ss-g-sl-name small { font-size: 12px; color: var(--ss-g-muted); }
.ss-g-sl-name b { font-family: var(--ss-g-font-display); font-weight: 800; font-size: 22px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-g-sl-who { flex: 1; min-width: 0; font-family: var(--ss-g-font-display); font-weight: 800; font-size: 22px; text-transform: uppercase; color: var(--ss-w-accent); }
.ss-g-sl-val { flex: none; font-family: var(--ss-g-font-display); font-weight: 800; font-size: 34px; line-height: 1; }
.ss-g-sl-val--mystery { font-size: 40px; color: var(--ss-w-accent); }
.ss-g-sl-clue { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--ss-g-surface); border: 1px solid var(--ss-g-line); font-size: 13px; line-height: 1.4; color: var(--ss-g-ink-2); }
.ss-g-sl-clue svg { flex: none; color: var(--ss-w-accent); }
.ss-g-sl-pool { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.ss-g-sl-opt { width: 100%; min-height: 48px; display: flex; align-items: center; gap: 12px; padding: 6px 10px; border: 1px solid transparent; border-radius: 12px; background: var(--ss-g-raised); color: var(--ss-g-ink); font: inherit; text-align: left; cursor: pointer; }
.ss-g-sl-opt[aria-pressed="true"] { border-color: var(--ss-w-accent); background: var(--ss-g-warm); }
.ss-g-sl-opt[aria-pressed="true"] svg { color: var(--ss-w-accent); }
.ss-g-sl-opt:disabled { opacity: .5; cursor: default; }
.ss-g-sl-opt-av { width: 36px; height: 36px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--ss-g-line); color: var(--ss-g-ink-2); font-size: 12px; font-weight: 700; }
.ss-g-sl-opt-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-g-sl-guess { display: flex; align-items: flex-end; gap: 8px; }
.ss-g-sl-guess .ss-g-search { flex: 1; min-width: 0; }
.ss-g-sl-guess .ss-g-btn { min-height: 50px; padding: 0 20px; border-radius: 14px; }

/* ── Matchday Predictor (u393) ── */
.ss-g-mp-card { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 16px 10px; border-radius: 18px; background: var(--ss-g-warm); border: 1px solid var(--ss-g-line-warm); }
.ss-g-mp-team { width: 84px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.ss-g-mp-team .ss-g-crest--ph { color: var(--ss-g-strong-line); }
.ss-g-mp-team-name { max-width: 100%; font-family: var(--ss-g-font-display); font-weight: 800; font-size: 17px; line-height: 1.05; text-transform: uppercase; overflow-wrap: anywhere; }
.ss-g-mp-team-side { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ss-g-muted); }
.ss-g-mp-scores { display: flex; align-items: center; gap: 8px; }
.ss-g-mp-col { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ss-g-mp-step { width: 64px; height: 44px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--ss-g-line-warm); background: var(--ss-g-raised); color: var(--ss-g-ink); cursor: pointer; }
.ss-g-mp-step:disabled { opacity: .4; cursor: default; }
.ss-g-mp-digit { width: 64px; height: 76px; display: grid; place-items: center; box-sizing: border-box; border-radius: 12px; background: var(--ss-g-ground); border: 2px solid var(--ss-g-strong-line); font-family: var(--ss-g-font-display); font-weight: 800; font-size: 52px; line-height: 1; }
.ss-g-mp-digit[data-active="true"] { border-color: var(--ss-w-accent); color: var(--ss-w-accent); }
.ss-g-mp-dash { font-family: var(--ss-g-font-display); font-weight: 800; font-size: 30px; color: var(--ss-g-faint); }
.ss-g-mp-scorer { display: flex; flex-direction: column; gap: 10px; }
.ss-g-mp-sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-top: 10px; }
.ss-g-mp-sec-head h3 { font-family: var(--ss-g-font-display); font-weight: 700; font-size: 18px; letter-spacing: .06em; text-transform: uppercase; }
.ss-g-mp-sec-head span { font-size: 12px; color: var(--ss-g-muted); }
.ss-g-mp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ss-g-mp-pcard { position: relative; min-width: 0; height: 116px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 6px; border-radius: 14px; border: 1px solid var(--ss-g-line); background: var(--ss-g-surface); color: var(--ss-g-ink); font: inherit; cursor: pointer; }
.ss-g-mp-pcard[aria-pressed="true"] { border: 2px solid var(--ss-w-accent); background: var(--ss-g-warm); }
.ss-g-mp-pcard:disabled { cursor: default; opacity: .6; }
.ss-g-mp-pcheck { position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--ss-w-accent); color: var(--ss-g-on-accent); }
.ss-g-mp-pname { max-width: 100%; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-g-mp-none { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--ss-g-line); background: transparent; color: var(--ss-g-muted); font: 600 14px var(--ss-g-font-body); cursor: pointer; text-align: left; }
.ss-g-mp-radio { width: 18px; height: 18px; flex: none; box-sizing: border-box; border-radius: 50%; border: 2px solid var(--ss-g-strong-line); }
.ss-g-mp-none[aria-pressed="true"] { color: var(--ss-g-ink); border-color: var(--ss-g-line-warm); }
.ss-g-mp-none[aria-pressed="true"] .ss-g-mp-radio { border-color: var(--ss-w-accent); background: var(--ss-w-accent); box-shadow: inset 0 0 0 3px var(--ss-g-ground); }
.ss-g-mp-closed { padding: 10px 14px; border-radius: 12px; background: var(--ss-g-surface); border: 1px solid var(--ss-g-line); color: var(--ss-g-muted); font-size: 13px; text-align: center; }
.ss-g-mp-fun { font-size: 11px; color: var(--ss-g-faint); text-align: center; }
.ss-g-mp-rows { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.ss-g-mp-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: 12px; background: var(--ss-g-surface); border: 1px solid var(--ss-g-line); font-size: 14px; }
.ss-g-mp-row-k { color: var(--ss-g-ink-2); }
.ss-g-mp-row-v { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ss-g-muted); }
.ss-g-mp-row[data-ok="true"] { border-color: var(--ss-g-correct); }
.ss-g-mp-row[data-ok="true"] .ss-g-mp-row-v { color: var(--ss-g-success); }
.ss-g-mp-row-d { color: var(--ss-g-ink); }

/* ── Fan MOTM (u393) ── */
.ss-g-motm-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ss-g-motm-row { width: 100%; min-height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 14px 0 10px; border-radius: 14px; border: 1px solid var(--ss-g-line); background: var(--ss-g-surface); color: var(--ss-g-ink); font: inherit; text-align: left; cursor: pointer; }
.ss-g-motm-row:not(:disabled):hover { border-color: var(--ss-g-line-warm); }
.ss-g-motm-row:disabled { cursor: default; }
.ss-g-motm-row--voted { border: 1.5px solid var(--ss-w-accent); background: var(--ss-g-warm); }
.ss-g-motm-av { width: 40px; height: 40px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--ss-g-raised); color: var(--ss-g-ink-2); font-size: 13px; font-weight: 700; }
.ss-g-motm-av img { width: 100%; height: 100%; object-fit: cover; }
.ss-g-motm-name { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-g-motm-pill { flex: none; padding: 3px 8px; font-size: 11px; }
.ss-g-motm-foot { font-size: 14px; font-weight: 600; }
.ss-g-motm-fun { font-size: 11px; color: var(--ss-g-faint); }

/* ── tap-to-answer tray + per-game team-colour band (u503) ── */
.ss-g-tray { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; max-height: 150px; overflow-y: auto; overscroll-behavior: contain; padding: 2px; }
.ss-g-tray-chip { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 78px; padding: 6px 4px; border: 1px solid var(--ss-g-line); border-radius: 14px; background: var(--ss-g-surface); color: var(--ss-g-ink); font-family: var(--ss-g-font-body); cursor: pointer; }
.ss-g-tray-chip:hover, .ss-g-tray-chip:focus-visible { background: var(--ss-g-raised); border-color: var(--ss-w-accent); outline: none; }
.ss-g-tray-chip:disabled { opacity: .5; cursor: default; }
.ss-g-tray-av { width: 38px; height: 38px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--ss-g-raised); color: var(--ss-g-muted); font-size: 14px; font-weight: 700; }
.ss-g-tray-av img { width: 100%; height: 100%; object-fit: cover; }
.ss-g-tray-name { width: 100%; display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.ss-g-tray-first { max-width: 100%; font-size: 10px; font-weight: 500; color: var(--ss-g-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-g-tray-last { max-width: 100%; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Each game gets its own band colour: the operator accent mixed into the ground, hue-nudged per game.
   Browsers without relative colour syntax keep the plain accent mix. */
.ss-g-screen[data-game] { --ss-g-band: color-mix(in srgb, var(--ss-w-accent) var(--ss-g-band-mix, 18%), var(--ss-g-ground)); }
@supports (color: oklch(from red l c h)) {
  .ss-g-screen[data-game] { --ss-g-band: oklch(from color-mix(in srgb, var(--ss-w-accent) var(--ss-g-band-mix, 18%), var(--ss-g-ground)) l calc(c * 1.5) calc(h + var(--ss-g-hue-shift, 0))); }
}
.ss-g-screen[data-game="mystery-tiger"] { --ss-g-band-mix: 14%; --ss-g-hue-shift: 0; }
.ss-g-screen[data-game="career-path"] { --ss-g-band-mix: 11%; --ss-g-hue-shift: -24; }
.ss-g-screen[data-game] > .ss-g-head { background: var(--ss-g-band); border-radius: 0 0 24px 24px; padding-bottom: 12px; }
.ss-g-worth { flex: none; display: flex; align-items: baseline; gap: 10px; font-size: 13px; color: var(--ss-g-muted); }
.ss-g-worth-now { font-family: var(--ss-g-font-display); font-weight: 800; font-size: 18px; letter-spacing: .02em; text-transform: uppercase; color: var(--ss-w-accent); }
.ss-g-screen[data-game="beat-the-grid"] { --ss-g-band-mix: 13%; --ss-g-hue-shift: 14; }
.ss-g-screen[data-game="guess-the-xi"] { --ss-g-band-mix: 12%; --ss-g-hue-shift: -36; }
.ss-g-screen[data-game="higher-or-lower"] { --ss-g-band-mix: 16%; --ss-g-hue-shift: 28; }
.ss-g-screen[data-game="daily-quiz"] { --ss-g-band-mix: 10%; --ss-g-hue-shift: -12; }
.ss-g-screen[data-game="stat-ladder"] { --ss-g-band-mix: 15%; --ss-g-hue-shift: 36; }
.ss-g-screen[data-game="matchday-predictor"] { --ss-g-band-mix: 18%; --ss-g-hue-shift: -4; }
.ss-g-screen[data-game="starting-xi"] { --ss-g-band-mix: 9%; --ss-g-hue-shift: -30; }
.ss-g-screen[data-game="fan-motm"] { --ss-g-band-mix: 14%; --ss-g-hue-shift: 8; }
