/* ============================================================
   Slipio — Shared Brand Styles
   Design tokens sourced from the Slipio Brand Bible.
   ============================================================ */

:root {
  /* Primary */
  --lime: #C7FF2F;
  --lime-ink-text: #101114;
  --ink: #101114;

  /* Secondary */
  --violet: #8B5CFF;

  /* Neutrals */
  --graphite: #1B1D22;
  --slate: #343840;
  --steel: #747B86;
  --mist: #B8BEC6;
  --ice: #E9F1F4;
  --white: #FFFFFF;

  /* Semantic */
  --surface: var(--white);
  --surface-alt: var(--ice);
  --text-primary: var(--ink);
  --text-secondary: var(--slate);
  --text-muted: #5B6570; /* darker than Steel for AA-safe small text on white */
  --border-subtle: #E4E6EA;

  /* Type */
  --font-display: 'Space Grotesk', 'Manrope', sans-serif;
  --font-ui: 'Manrope', sans-serif;

  /* Layout */
  --brand-section-gap: 46px; /* one gap value, reused between every major block on the brand panel */

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Shared app background (v0.6.0). The Slipio pattern lives on the
   root canvas, once, for every page in the webapp. A root background
   paints the whole canvas whatever the document's height, so it can
   never "run out" below the content, and as a background it can never
   add height to the document either. Shells and panels are
   transparent so it shows through; surfaces that need to be solid
   (cards, inputs, the dark brand panel) keep their own backgrounds
   and simply sit on top of it. The file is used exactly as supplied
   (native 4800px size, 10% opacity baked in, no CSS opacity added):
   see the v0.5.2 note on .auth-form-panel below. */
html {
  -webkit-text-size-adjust: 100%;
  background: url('../images/slipio-pattern-4800.svg') center / 4800px 4800px repeat var(--white);
  /* v0.6.1: stops the page being dragged past its real top/bottom
     edges (iOS elastic overscroll), which is what exposed empty space
     below the content on iPhone even when the page fits exactly.
     This is not a scroll lock: when content is taller than the
     screen, normal scrolling works exactly as before; only the
     bounce beyond the ends is removed. Set on html and body because
     browsers differ on which one they treat as the page scroller. */
  overscroll-behavior-y: none;
}

body {
  margin: 0;
  overscroll-behavior-y: none;
  font-family: var(--font-ui);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

/* .onboard-copy / .onboard-subheading cap their own width (for
   readable line length), so centring the text alone isn't enough on
   a left-aligned shell (Team, Leagues) — the box itself needs
   centring too. Auto margins on a flex item override the parent's
   align-items, so this works even though the shell stays
   left-aligned overall. */
.onboard-copy.text-center,
.onboard-subheading.text-center {
  margin-left: auto;
  margin-right: auto;
}

/* Visible focus states everywhere — never rely on colour alone */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   Auth layout — split screen
   ============================================================ */

.auth-shell {
  /* v0.6.0: content-driven height. At least one *small* viewport tall
     (svh: the visible area with mobile browser toolbars showing, so it
     can never be taller than what the user actually sees), growing with
     its content when that's taller, in which case the document itself
     scrolls normally. Replaces the v0.5.0 approach (height: 100dvh +
     overflow: hidden + each column scrolling internally), which turned
     the form panel into a nested scroll container on phones: on iOS,
     dragging that nested scroller carried the pattern layer off with
     the content and exposed plain white underneath. vh first as the
     fallback for browsers without svh. */
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 960px) {
  .auth-shell {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }
}

/* ---- Brand panel (desktop / tablet-landscape only) ---- */

.auth-brand {
  display: none;
  position: relative;
  background: var(--ink);
  color: var(--white);
  /* clip, not hidden: hidden on one axis forces the other to auto,
     which would make this a nested scroll container again. */
  overflow-x: clip;
  padding: 56px 56px 48px;
  flex-direction: column;
  justify-content: space-between;
}

@media (min-width: 960px) {
  .auth-brand {
    display: flex;
  }
}

.auth-brand__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: safe center;
  height: 100%;
}

.auth-brand__hero {
  text-align: center;
  margin: 0 auto var(--brand-section-gap);
  /* Wide enough that the eyebrow ("Your AI Football Intelligence
     Platform", uppercase + letter-spaced) fits on one line. The H2
     below keeps its own tighter 22ch cap (.auth-brand__message), so
     widening this doesn't disturb the headline's intentional 3-line
     stack. */
  max-width: 42ch;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-brand__logo {
  display: flex;
  justify-content: center;
  margin-bottom: 26px;
}

.auth-brand__logo img {
  height: 68px; /* +50% over the original 45px, per client QA */
  width: auto;
}

.auth-brand__eyebrow {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
  margin: 0 0 14px;
}

.auth-brand__message {
  max-width: 22ch;
}

.auth-brand__message h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 2.4vw, 36px);
  line-height: 1.15;
  margin: 0;
  color: var(--white);
  text-align: center;
}

/* ---- Value bullets ---- */

.auth-brand__points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  /* Wide enough that neither the longest heading nor the longest
     helper line wraps to a second line on any panel width the
     5fr/7fr split actually produces (≥960px viewport) — the panel
     itself, not this cap, is what limits things right at the
     960px breakpoint. */
  max-width: 70ch;
}

.auth-brand__points li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.auth-brand__points .point-icon {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(199, 255, 47, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.auth-brand__points .point-icon svg {
  width: 12px;
  height: 12px;
}

.auth-brand__points strong {
  display: block;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--white);
  margin-bottom: 3px;
}

.auth-brand__points span {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--mist);
}

/* ---- Fixture teaser card ---- */

.fixture-card {
  position: relative;
  margin-top: var(--brand-section-gap);
  background: linear-gradient(180deg, var(--graphite) 0%, #17181D 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
  padding: 24px 26px 22px;
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.6);
}

.fixture-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(199, 255, 47, 0.55), transparent);
}

.fixture-card__label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--lime);
  margin: 0 0 6px;
}

.fixture-card__subnote {
  text-align: center;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.5;
  color: var(--mist);
  margin: 0 0 14px;
}

.fixture-card__label .pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  flex: none;
  box-shadow: 0 0 0 0 rgba(199, 255, 47, 0.6);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(199, 255, 47, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(199, 255, 47, 0); }
  100% { box-shadow: 0 0 0 0 rgba(199, 255, 47, 0); }
}

.fixture-card__meta {
  text-align: center;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 12px;
  color: var(--steel);
  margin: 0 0 22px;
}

.fixture-card__teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-bottom: 24px;
}

.fixture-card__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  width: 96px;
}

.fixture-card__badge-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  flex: none;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 8px 18px -4px rgba(0, 0, 0, 0.45);
}

.fixture-card__badge {
  height: 42px;
  width: auto;
  max-width: 42px;
  flex: none;
  display: block;
}

.fixture-card__team-name {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 12.5px;
  color: var(--white);
  text-align: center;
  line-height: 1.35;
}

.fixture-card__vs {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--steel);
  flex: none;
  margin-top: -24px;
}

/* ---- Illustrative probability strip ---- */

.fixture-card__prob {
  margin-bottom: 20px;
}

.prob-bar {
  display: flex;
  gap: 3px;
  height: 8px;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 10px;
}

.prob-seg {
  display: block;
  height: 100%;
}

.prob-seg.prob-home {
  background: var(--lime);
}

.prob-seg.prob-draw {
  background: var(--slate);
}

.prob-seg.prob-away {
  background: var(--violet);
}

.prob-labels {
  display: flex;
  justify-content: space-between;
}

.prob-label {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 11px;
  color: var(--steel);
}

.prob-label strong {
  font-family: var(--font-ui);
  font-weight: 800;
  font-size: 15px;
  color: var(--white);
}

.prob-label.prob-home strong { color: var(--lime); }
.prob-label.prob-away strong { color: var(--violet); }

.fixture-card__note {
  text-align: center;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--mist);
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.fixture-card__note strong {
  color: var(--white);
  font-weight: 700;
}

/* Shown instead of .fixture-card__note for a returning user — same
   divider rhythm, but an actual control rather than plain text. */
.fixture-card__checkbox {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  user-select: none;
  text-align: left;
}

.fixture-card__checkbox[hidden] {
  display: none;
}

.fixture-card__checkbox input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.fixture-card__checkbox-box {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 1px;
  border-radius: 5px;
  border: 1.5px solid var(--mist);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms var(--ease), border-color 150ms var(--ease);
}

.fixture-card__checkbox-box svg {
  width: 11px;
  height: 11px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 120ms var(--ease), transform 120ms var(--ease);
}

.fixture-card__checkbox input[type="checkbox"]:checked + .fixture-card__checkbox-box {
  background: var(--lime);
  border-color: var(--lime);
}

.fixture-card__checkbox input[type="checkbox"]:checked + .fixture-card__checkbox-box svg {
  opacity: 1;
  transform: scale(1);
}

.fixture-card__checkbox input[type="checkbox"]:focus-visible + .fixture-card__checkbox-box {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.fixture-card__checkbox span:last-child {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--mist);
}

/* ---- Form panel ---- */

.auth-form-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  /* flex-direction: column makes this the vertical (main) axis, so
     "safe center" here is what actually protects against top-clipping
     on very short viewports — without it, the browser defaults to
     row, "safe" ends up guarding the wrong (horizontal) axis, and the
     plain align-items: center below clips vertical overflow evenly
     from both edges instead of falling back to the top. Caught in
     v0.5.0 QA at 1440x600 (heading was clipped) and fixed here rather
     than papering over it with extra padding. */
  justify-content: safe center;
  align-items: center;
  padding: 40px 20px 56px;
}

/* Subtle repeating brand texture on the white panel — a separate
   layer behind the form rather than opacity on the panel itself, so
   the form/fields/buttons stay fully opaque and legible.
   v0.5.0: swapped to the redrawn 1600x1600 source (organic scatter,
   varied rotation/scale, no grid, no mirrored symmetry) after the
   original dense pattern proved impossible to enlarge without either
   staying illegible or turning obviously tiled — see Agents.md for
   the full story.
   v0.5.1: shown at native (1600px) size, the panel displayed less
   than one full repeat on a dev-machine test viewport, which is what
   passed earlier QA screenshots — but on a real, wide desktop monitor
   at full resolution the icons (a football, a star, "GOAL!!!",
   "CHAMPION") read as individually identifiable pictures, not a
   texture, because this size is a fixed pixel value rather than
   anything relative to panel width. Went through several rounds of
   client review at 1920/2560/1440/mobile before landing here:
   background-size 156px 156px, opacity 0.20 — small enough that no
   single icon is nameable any more (it reads as texture, not a
   collage), confirmed with no visible tiling at any tested width
   including a real wide monitor. This is still the same source file
   just shown much smaller, so treat 156px/0.20 as the settled value
   for this source — if the designer ever redraws smaller icons on a
   larger canvas, both this size and opacity should be re-checked
   from scratch against the new file rather than assumed to carry
   over. This source has no baked-in opacity of its own (unlike the
   old PNG), so 0.20 here is the full effective visual weight.
   v0.5.2: 156px/0.20 still showed a faint repeating grid on Jaymes's
   own monitor at full resolution (screenshots don't always reveal
   this the way a real screen does) — the root cause wasn't opacity or
   size, it was that the v0.5.0/v0.5.1 source was authored as "icons
   scattered on a square" rather than a true seamless tile, so shrinking
   it enough to stop the icons being nameable also shrank the repeat
   interval enough to make that exact-arrangement-repeating visible.
   Replaced with a new source the designer built specifically to solve
   this: a 4800x4800 canvas that already tiles its own artwork
   internally at fine scale (via an SVG native <pattern> at a small
   scale factor), supplied pre-set to 10% opacity baked into the file
   itself. Per Jaymes's explicit instruction: this file is used exactly
   as supplied — no CSS opacity added on top, no shrinking it down the
   way earlier sources were, shown at its own native size so the panel
   sees well under one full repeat of the outer 4800px tile (the fine
   texture within it is already handled by the file, not by us). Do
   not "fix" a future tiling complaint on this source by shrinking
   background-size the way earlier sources needed — that was the wrong
   lever for the old file and would be the wrong lever here too; if
   this one ever needs adjustment, ask the designer first. */
/* v0.6.0: the pattern itself now lives on the root canvas (see the
   html rule at the top of this file) rather than on an absolutely
   positioned ::before here, so it covers every page and every page
   height. Everything in the history note above still applies to the
   artwork itself. */

.auth-form-wrap {
  position: relative;
  z-index: 1;
}

.auth-form-wrap {
  width: 100%;
  max-width: 420px;
}

.auth-form-header {
  margin-bottom: 32px;
  text-align: center;
}

.auth-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.auth-logo--mobile-only {
  display: flex;
}

@media (min-width: 960px) {
  .auth-logo--mobile-only {
    display: none;
  }
}

.auth-logo img {
  height: 45px;
  width: auto;
}

.auth-form-header .eyebrow {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
  margin: 0 0 10px;
}

.auth-form-header h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 3.2vw, 30px);
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 10px;
}

.auth-form-header p {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================================
   Form elements
   ============================================================ */

.field-group {
  margin-bottom: 18px;
}

.field-label {
  display: block;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 8px;
}

.field-control {
  position: relative;
}

.field-input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--border-subtle);
  border-radius: 10px;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease), background 160ms var(--ease);
}

.field-input::placeholder {
  color: var(--mist);
  font-weight: 400;
}

.field-input:hover {
  border-color: var(--mist);
}

.field-input:focus {
  outline: none;
  border-color: var(--lime);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(199, 255, 47, 0.25);
}

.field-input:focus-visible {
  outline: none;
}

.field-input.has-icon {
  padding-right: 46px;
}

.field-icon-btn {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--steel);
  cursor: pointer;
  transition: color 150ms var(--ease), background 150ms var(--ease);
}

.field-icon-btn:hover {
  color: var(--ink);
  background: var(--ice);
}

.field-icon-btn svg {
  width: 20px;
  height: 20px;
}

/* ---- Row: remember me ---- */

.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0 26px;
  flex-wrap: wrap;
  gap: 10px;
}

.checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.checkbox-field input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.checkbox-box {
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 6px;
  border: 1.5px solid var(--mist);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms var(--ease), border-color 150ms var(--ease);
}

.checkbox-box svg {
  width: 13px;
  height: 13px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 120ms var(--ease), transform 120ms var(--ease);
}

.checkbox-field input[type="checkbox"]:checked + .checkbox-box {
  background: var(--lime);
  border-color: var(--lime);
}

.checkbox-field input[type="checkbox"]:checked + .checkbox-box svg {
  opacity: 1;
  transform: scale(1);
}

.checkbox-field input[type="checkbox"]:focus-visible + .checkbox-box {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.checkbox-label {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-secondary);
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 52px;
  border-radius: 10px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 150ms var(--ease), box-shadow 150ms var(--ease), background 150ms var(--ease), border-color 150ms var(--ease), opacity 150ms var(--ease);
  position: relative;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(16, 17, 20, 0.04);
}

.btn-primary:hover {
  box-shadow: 0 8px 20px -6px rgba(199, 255, 47, 0.55);
}

.btn-primary[disabled] {
  opacity: 0.75;
  cursor: progress;
}

.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  border-color: var(--slate);
  background: var(--ice);
}

.btn-secondary[disabled] {
  opacity: 0.7;
  cursor: progress;
}

.btn svg {
  width: 19px;
  height: 19px;
  flex: none;
}

.btn .btn-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(16, 17, 20, 0.25);
  border-top-color: var(--ink);
  animation: spin 700ms linear infinite;
  display: none;
}

.btn-secondary .btn-spinner {
  border: 2px solid rgba(16, 17, 20, 0.15);
  border-top-color: var(--ink);
}

.btn.is-loading .btn-spinner {
  display: inline-block;
}

.btn.is-loading .btn-label,
.btn.is-loading svg:not(.btn-spinner) {
  opacity: 0.45;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---- Divider ---- */

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.divider span {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 13px;
  color: var(--text-muted);
  text-transform: lowercase;
}

/* ---- Social buttons stack ---- */

.social-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---- Footer / register line ---- */

.auth-footer {
  margin-top: 30px;
  text-align: center;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-secondary);
}

.text-link {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--mist);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
  transition: text-decoration-color 150ms var(--ease), color 150ms var(--ease);
}

.text-link:hover {
  text-decoration-color: var(--ink);
}

.inline-note {
  /* Collapsed notes take no space at all: margin only appears with the
     note (v0.6.0). Previously the 12px margin stayed even while the
     note was invisible, and the default paragraph bottom margin added
     a further 13px, together leaving blank height at the bottom of
     Sign In. */
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 220ms var(--ease), opacity 220ms var(--ease), margin-top 220ms var(--ease);
}

.inline-note.is-visible {
  margin-top: 12px;
  max-height: 60px;
  opacity: 1;
}

/* ============================================================
   Placeholder / interim screen (e.g. Dashboard stand-in)
   ============================================================ */

.stub-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  text-align: center;
}

.stub-card {
  max-width: 460px;
}

.stub-card .auth-logo {
  margin-bottom: 32px;
}

.stub-card .eyebrow {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
  margin: 0 0 14px;
}

.stub-card h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 36px);
  color: var(--ink);
  margin: 0 0 14px;
}

.stub-card p {
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 32px;
}

.stub-card .btn {
  width: auto;
  padding: 0 26px;
  display: inline-flex;
}

/* ============================================================
   Onboarding shell — Welcome / Team / Leagues / Complete
   Single centred column, generous white space, no split-screen
   brand panel. Continues the Phase 1 visual system.
   ============================================================ */

.onboard-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 20px 48px;
}

.onboard-top {
  width: 100%;
  max-width: 520px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: clamp(28px, 6vh, 56px);
}

.onboard-top--centred {
  justify-content: center;
}

.onboard-logo img {
  height: 26px;
  width: auto;
  display: block;
}

.onboard-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text-secondary);
  text-decoration: none;
  background: none;
  border: none;
  padding: 6px 4px;
  cursor: pointer;
  border-radius: 8px;
}

.onboard-back:hover {
  color: var(--ink);
}

.onboard-back svg {
  flex: none;
}

.onboard-main {
  width: 100%;
  max-width: 520px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.onboard-eyebrow {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 10px;
}

.onboard-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 12px;
}

.onboard-copy {
  font-family: var(--font-ui);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 8px;
  max-width: 44ch;
}

.onboard-copy + .onboard-copy {
  color: var(--text-muted);
}

.onboard-subheading {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-secondary);
  margin: 20px 0 0;
}

.onboard-actions {
  width: 100%; /* gives percentage-width children (e.g. .btn) a definite
                  box to resolve against even when the parent flex
                  container uses align-items: center, which otherwise
                  shrinks an unsized flex item to content width and was
                  the root cause of the Welcome/Complete CTA rendering
                  too narrow. */
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.onboard-actions .btn {
  width: 100%;
}

.onboard-actions--row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.onboard-actions--row .btn {
  width: auto;
  flex: 1;
}

/* Two (or more) full-weight CTA buttons side by side — always equal
   width, never one button wider than its neighbour. Grid with equal
   1fr columns guarantees that regardless of label length (flexbox
   grow/shrink alone would let the longer label's button end up
   wider). Use this whenever the row holds actual buttons rather
   than a button + a lightweight text action (see
   .onboard-actions--row for that case). */
.onboard-actions--split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 100%;
  gap: 14px;
}

.onboard-skip {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px 8px;
  border-radius: 8px;
  white-space: nowrap;
}

.onboard-skip:hover {
  color: var(--ink);
}

/* Short, tasteful entrance transition for the Complete screen —
   no confetti, just a soft settle-in. */
.onboard-fade-in {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.onboard-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Centre-anchored variant for Welcome / Complete, which have no
   list content above the fold. These are the "bookend" screens of
   onboarding, so they share one decorative treatment: a soft
   background wash and a pair of low-opacity arcs (an abstract
   pitch-geometry motif), applied here once rather than duplicated
   as markup on every centred screen. */
.onboard-shell--centred {
  position: relative;
  /* Clips the decorative arcs, which deliberately hang off the bottom
     right. clip (with hidden as the fallback) rather than hidden alone,
     so the shell is never a scroll container that focus or
     scrollIntoView could quietly scroll. */
  overflow: hidden;
  overflow: clip;
  background: radial-gradient(720px 480px at 50% 15%, rgba(233, 241, 244, 0.9) 0%, rgba(255, 255, 255, 0) 70%);
}

.onboard-shell--centred::before,
.onboard-shell--centred::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--mist);
  pointer-events: none;
}

.onboard-shell--centred::before {
  width: 640px;
  height: 640px;
  opacity: 0.35;
  bottom: -360px;
  right: -220px;
}

.onboard-shell--centred::after {
  width: 360px;
  height: 360px;
  opacity: 0.3;
  bottom: -170px;
  right: -70px;
}

.onboard-shell--centred .onboard-top,
.onboard-shell--centred .onboard-main {
  position: relative;
  z-index: 1;
}

.onboard-shell--centred .onboard-main {
  justify-content: center;
  text-align: center;
  align-items: center;
}

.onboard-shell--centred .onboard-copy {
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
}

/* The second paragraph in a letter-style block reads as a quieter
   reassurance line by default (see .onboard-copy + .onboard-copy
   below) — this modifier opts a paragraph back into full-strength
   colour for the rare case where it's carrying a brand statement
   rather than a footnote. */
.onboard-copy--strong {
  color: var(--text-primary);
  font-weight: 500;
}

.onboard-signoff {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--ink);
  margin: 22px 0 0;
}

.onboard-shell--centred .onboard-actions {
  align-items: center;
}

/* Generous, content-sized pill CTA for the centred screens — sized
   to its label plus breathing room rather than stretched edge to
   edge, matching the approved Welcome mock. */
.onboard-shell--centred .onboard-actions .btn {
  width: auto;
  height: 56px;
  padding: 0 44px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
}

.onboard-shell--centred .onboard-actions .btn-primary {
  box-shadow: 0 18px 32px -16px rgba(199, 255, 47, 0.55);
}

.onboard-shell--centred .onboard-actions .btn-primary:hover {
  box-shadow: 0 20px 36px -14px rgba(199, 255, 47, 0.65);
}

/* A split row holds two buttons in a fixed-width column, so it gets
   slightly tighter sizing than a lone centred CTA and wraps its
   label onto a second line rather than overflowing if needed —
   both columns stretch to match whichever button ends up taller. */
.onboard-shell--centred .onboard-actions--split .btn {
  width: auto;
  height: auto;
  min-height: 52px;
  padding: 12px 18px;
  font-size: 15px;
  white-space: normal;
  text-align: center;
}

/* Small rounded-square mark with a lime dot, used above the eyebrow
   on both bookend screens. */
.onboard-badge {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--graphite);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 16px 32px -16px rgba(16, 17, 20, 0.35);
}

.onboard-badge span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--lime);
  display: block;
}

/* Close ("skip setup") control — Welcome only. */
.onboard-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border-subtle);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  z-index: 2;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.onboard-close:hover {
  color: var(--ink);
  border-color: var(--slate);
}

.onboard-close svg {
  flex: none;
}

/* ---- Skip-setup confirmation popup ---- */

.onboard-overlay[hidden] {
  display: none;
}

.onboard-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 17, 20, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 70;
  padding: 20px;
}

.onboard-popup {
  width: 100%;
  max-width: 380px;
  background: var(--white);
  border-radius: 18px;
  padding: 32px 28px 28px;
  box-shadow: 0 32px 64px -24px rgba(16, 17, 20, 0.4);
  text-align: center;
}

.onboard-popup h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 12px;
}

.onboard-popup p {
  font-family: var(--font-ui);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 26px;
}

.onboard-popup__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.onboard-popup__actions .btn {
  width: 100%;
  height: 50px;
  padding: 0;
  font-size: 14.5px;
  box-shadow: none;
}

.onboard-popup__skip {
  height: 50px;
  border-radius: 10px;
  background: none;
  color: var(--text-secondary);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14.5px;
  border: none;
  cursor: pointer;
}

.onboard-popup__skip:hover {
  color: var(--ink);
}

/* ---- Confirmation micro-copy (e.g. "Spurs it is.") ---- */
.onboard-confirm {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  background: var(--surface-alt);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 18px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}

.onboard-confirm.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Team search selector
   ============================================================ */

.team-search {
  position: relative;
  margin-bottom: 18px;
}

.team-search input {
  width: 100%;
  height: 52px;
  border: 1.5px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0 16px 0 44px;
  font-family: var(--font-ui);
  font-size: 15px;
  color: var(--text-primary);
  background: var(--white);
  transition: border-color 0.16s var(--ease);
}

.team-search input::placeholder {
  color: var(--steel);
}

.team-search input:focus {
  outline: none;
  border-color: var(--ink);
}

.team-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--steel);
  pointer-events: none;
}

.team-results {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  max-height: 320px;
  overflow-y: auto;
}

.team-result {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--white);
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-ui);
}

.team-result:last-child {
  border-bottom: none;
}

.team-result:hover {
  background: var(--surface-alt);
}

.team-result[aria-pressed="true"] {
  background: var(--surface-alt);
}

.team-result__crest {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  overflow: hidden;
}

/* Real crest artwork sits on white regardless of surrounding
   surface — several club colourways (Tottenham's navy) disappear
   on a dark chip. Same fix as the Phase 1 fixture-card badges. */
.team-result__crest--image {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  color: transparent;
}

.team-result__crest--image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 5px;
}

/* Placeholder initials chip for clubs without a supplied crest */
.team-result__crest--placeholder {
  background: var(--graphite);
  color: var(--white);
}

.team-result__info {
  flex: 1;
  min-width: 0;
}

.team-result__name {
  display: block;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--ink);
}

.team-result__meta {
  display: block;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 1px;
}

.team-result__check {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--lime);
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.team-result[aria-pressed="true"] .team-result__check {
  display: flex;
}

.team-empty {
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text-muted);
  padding: 16px 4px;
}

.team-no-team {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 13px 14px;
  border: 1.5px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--white);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  text-align: left;
}

.team-no-team[aria-pressed="true"] {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--surface-alt);
}

.team-no-team__check {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid var(--mist);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.team-no-team[aria-pressed="true"] .team-no-team__check {
  background: var(--ink);
  border-color: var(--ink);
}

/* ============================================================
   League chips / cards
   ============================================================ */

.league-search {
  margin-bottom: 16px;
}

.league-search input {
  width: 100%;
  height: 46px;
  border: 1.5px solid var(--border-subtle);
  border-radius: 12px;
  padding: 0 16px;
  font-family: var(--font-ui);
  font-size: 14.5px;
  color: var(--text-primary);
}

.league-search input:focus {
  outline: none;
  border-color: var(--ink);
}

.league-context[hidden] {
  display: none;
}

.league-context {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0 0 16px;
  line-height: 1.5;
}

.league-context svg {
  flex: none;
  margin-top: 2px;
  color: var(--violet);
}

.league-grid {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 480px) {
  .league-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.league-chip {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--white);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text-secondary);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.14s var(--ease), background 0.14s var(--ease);
}

.league-chip__label {
  flex: 1;
  min-width: 0;
}

/* Placeholder league mark — no licensed league badge artwork yet,
   same "graphite chip with an initials-style mark" treatment as the
   team crest placeholder, so a missing badge never reads as broken. */
.league-chip__badge {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--graphite);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 9.5px;
  flex: none;
}

.league-chip:hover {
  border-color: var(--slate);
}

.league-chip[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--surface-alt);
  color: var(--ink);
}

.league-chip__check {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--mist);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.league-chip[aria-pressed="true"] .league-chip__check {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
}

/* ============================================================
   League quick-picks (Team screen) — a fast way into the team
   list without typing, filtering the results below to one league.
   ============================================================ */

.league-quickpicks {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  margin: 18px 0 22px;
}

.league-quickpick {
  flex: none;
  width: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 4px;
  border: 1.5px solid transparent;
  border-radius: 14px;
  background: none;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.14s var(--ease), background 0.14s var(--ease);
}

.league-quickpick:hover {
  background: var(--surface-alt);
}

.league-quickpick[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--surface-alt);
}

.league-badge {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--graphite);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  flex: none;
}

.league-quickpick__name {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 11.5px;
  line-height: 1.25;
  color: var(--text-secondary);
}

.league-quickpick[aria-pressed="true"] .league-quickpick__name {
  color: var(--ink);
}

/* ============================================================
   Coachmark / contextual tooltip
   ============================================================ */

.coachmark {
  position: fixed;
  z-index: 60;
  width: min(300px, calc(100vw - 32px));
  background: var(--ink);
  color: var(--white);
  border-radius: 14px;
  padding: 16px 18px 16px 16px;
  box-shadow: 0 20px 40px -16px rgba(16, 17, 20, 0.5);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.coachmark.coachmark--above {
  transform: translateY(-4px);
}

.coachmark.coachmark--side {
  transform: translateX(-4px);
}

.coachmark.coachmark--side.is-visible {
  transform: translateX(0);
}

/* Bottom-sheet variant for narrow viewports — docked to the screen
   edge so it can never collide with page content, and easy to reach
   with a thumb. */
.coachmark.coachmark--sheet {
  position: fixed;
  top: auto;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: none;
  border-radius: 18px 18px 0 0;
  padding: 18px 20px calc(18px + env(safe-area-inset-bottom, 0px));
  transform: translateY(12px);
}

.coachmark.coachmark--sheet.is-visible {
  transform: translateY(0);
}

.coachmark.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.coachmark__body {
  flex: 1;
  min-width: 0;
}

.coachmark__heading {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--white);
  margin: 0 0 4px;
}

.coachmark__text {
  font-family: var(--font-ui);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--mist);
  margin: 0;
}

.coachmark__close {
  order: 2;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.coachmark__close:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* ============================================================
   Small screens
   ============================================================ */

@media (max-width: 420px) {
  .auth-form-panel {
    padding: 32px 18px 40px;
  }

  .field-input,
  .btn {
    height: 48px;
  }

  .league-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .onboard-actions--row {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .onboard-actions--row .btn,
  .onboard-actions--row .onboard-skip {
    width: 100%;
    text-align: center;
  }

  .onboard-actions--split {
    grid-template-columns: 1fr;
  }

  .onboard-shell--centred .onboard-actions .btn {
    width: 100%;
    padding: 0 24px;
  }
}

/* ============================================================
   Sign Up page (SUP) — /register/  (v0.7.0)
   Sibling of Sign In: same .auth-shell split, same panels, same
   form controls. Everything below is additive; nothing above is
   changed for it.
   ============================================================ */

:root {
  /* Functional error colour for validation states. Not in the
     Brand Bible palette (which has no error colour): 5.8:1 on
     white, so AA for small text. To be confirmed by the designer. */
  --error: #C5221F;
  --error-tint: rgba(197, 34, 31, 0.07);
}

/* ---- Conversion panel ---- */

/* The SUP panel carries more than Sign In's (offer, lede, locked
   teaser, free-access block), so its rhythm is tightened through
   the same shared variable rather than one-off gaps. */
.auth-brand--register {
  --brand-section-gap: 26px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.auth-brand--register .auth-brand__logo {
  margin-bottom: 18px;
}

.auth-brand--register .auth-brand__logo img {
  height: 50px;
}

.auth-brand--register .auth-brand__points {
  gap: 14px;
}

/* Tighter version of the Sign In fixture card, so the whole
   conversion story fits a laptop screen. */
.auth-brand--register .fixture-card {
  padding: 18px 24px 18px;
}

.auth-brand--register .fixture-card__subnote {
  margin-bottom: 8px;
}

.auth-brand--register .fixture-card__meta {
  margin-bottom: 14px;
}

.auth-brand--register .fixture-card__teams {
  margin-bottom: 16px;
}

.auth-brand--register .fixture-card__team {
  gap: 8px;
}

.auth-brand--register .fixture-card__badge-chip {
  width: 52px;
  height: 52px;
}

.auth-brand--register .fixture-card__badge {
  height: 32px;
  max-width: 32px;
}

.auth-brand--register .fixture-card__vs {
  margin-top: -20px;
}

/* "7 days free" — typed in sentence case, shown as an offer badge */
.offer-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--lime);
  border-radius: 999px;
  padding: 7px 14px 6px;
  margin: 0 0 16px;
  box-shadow: 0 10px 24px -12px rgba(199, 255, 47, 0.7);
}

.auth-brand__message--wide {
  max-width: 100%;
}

.auth-brand__message--wide h2 {
  max-width: 17ch;
  margin: 0 auto;
}

.auth-brand__lede {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.55;
  color: var(--mist);
  text-align: center;
  max-width: 40ch;
  margin: 14px 0 0;
}

/* ---- Locked Match Intelligence teaser (inside .fixture-card) ---- */

.fixture-card--teaser .fixture-card__prob {
  margin-bottom: 14px;
}

.intel-lock {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.intel-lock__teaser {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--mist);
  margin: 0 auto 10px;
  max-width: 48ch;
}

/* Placeholder bars, blurred: suggests locked detail without
   showing anything that could read as a real statistic. */
.intel-lock__rows {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  filter: blur(1.2px);
}

.intel-lock__rows span {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(139, 92, 255, 0.28));
}

.intel-lock__rows span:nth-child(1) { width: 88%; }
.intel-lock__rows span:nth-child(2) { width: 72%; }
.intel-lock__rows span:nth-child(3) { width: 56%; }

.intel-lock__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--mist);
  margin: 0;
}

.intel-lock__cta strong {
  color: var(--white);
  font-weight: 700;
}

.intel-lock__icon {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(199, 255, 47, 0.14);
  color: var(--lime);
  display: flex;
  align-items: center;
  justify-content: center;
}

.intel-lock__icon svg {
  width: 12px;
  height: 12px;
}

/* ---- Free-access reinforcement ---- */

.free-access {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(199, 255, 47, 0.32);
  background: rgba(199, 255, 47, 0.06);
}

.free-access__mark {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--lime);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.free-access__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
}

.free-access__unit {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 10.5px;
  margin-top: 2px;
}

.free-access__title {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 15px;
  color: var(--white);
  margin: 0 0 3px;
}

.free-access__text {
  font-family: var(--font-ui);
  font-weight: 400;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--mist);
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .auth-brand--register .pulse {
    animation: none;
  }
}

/* ---- Form panel additions ---- */

/* Compact offer, phones and tablets only (the conversion panel is
   hidden there). */
.offer-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 12.5px;
  color: var(--ink);
  background: var(--lime);
  border-radius: 999px;
  padding: 6px 13px;
  margin: 0 0 16px;
}

.offer-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink);
  flex: none;
}

@media (min-width: 960px) {
  .offer-pill {
    display: none;
  }
}

.auth-shell--register .auth-form-header {
  margin-bottom: 28px;
}

/* First + last name side by side where there's room */
.field-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: 14px;
}

@media (min-width: 340px) {
  .field-split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

.field-hint {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--text-muted);
  margin: 8px 0 0;
}

.field-error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.4;
  color: var(--error);
  margin: 8px 0 0;
}

.field-error[hidden] {
  display: none;
}

.field-error svg {
  flex: none;
  width: 15px;
  height: 15px;
  margin-top: 1px;
}

.field-input.is-invalid,
.field-input.is-invalid:hover {
  border-color: var(--error);
}

.field-input.is-invalid:focus {
  border-color: var(--error);
  box-shadow: 0 0 0 4px rgba(197, 34, 31, 0.14);
}

/* While submitting: fields locked, visibly */
.is-submitting .field-input,
.is-submitting .phone-field,
.is-submitting .checkbox-field {
  opacity: 0.6;
  cursor: progress;
}

.field-input:disabled {
  background: var(--white);
}

/* ---- Country picker trigger (looks like a field, is a button) ---- */

.picker-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

.picker-trigger__value {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.picker-trigger__text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.picker-trigger__placeholder {
  color: var(--text-muted);
  font-weight: 500;
}

.picker-trigger__chevron {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--steel);
  transition: transform 160ms var(--ease);
}

[aria-expanded="true"] > .picker-trigger__chevron {
  transform: rotate(180deg);
}

.picker-trigger:focus-visible {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 4px rgba(199, 255, 47, 0.25);
}

.picker-trigger[aria-expanded="true"] {
  border-color: var(--lime);
}

/* Flags: emoji where supported, otherwise an ISO chip in the same
   Graphite-and-white treatment as placeholder crests, so it never
   pretends to be artwork. Name is always shown next to it. */
.flag {
  flex: none;
  font-size: 19px;
  line-height: 1;
  width: 24px;
  text-align: center;
}

.flag--code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 19px;
  border-radius: 4px;
  background: var(--graphite);
  color: var(--white);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.04em;
}

/* ---- Mobile number: dialling code + number in one field ---- */

.phone-field {
  display: flex;
  align-items: stretch;
  height: 50px;
  background: var(--white);
  border: 1.5px solid var(--border-subtle);
  border-radius: 10px;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}

.phone-field:hover {
  border-color: var(--mist);
}

.phone-field:focus-within {
  border-color: var(--lime);
  box-shadow: 0 0 0 4px rgba(199, 255, 47, 0.25);
}

.phone-field.is-invalid {
  border-color: var(--error);
}

.phone-field.is-invalid:focus-within {
  box-shadow: 0 0 0 4px rgba(197, 34, 31, 0.14);
}

.phone-field__code {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px 0 14px;
  background: transparent;
  border: none;
  border-right: 1.5px solid var(--border-subtle);
  border-radius: 9px 0 0 9px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
}

.phone-field__code:hover {
  background: var(--ice);
}

.phone-field__code:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: -3px;
  border-radius: 9px 0 0 9px;
}

.phone-field__code-value {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.phone-field__dial {
  font-variant-numeric: tabular-nums;
}

.phone-field__input.field-input {
  flex: 1;
  min-width: 0;
  height: auto;
  border: none;
  border-radius: 0 9px 9px 0;
  background: transparent;
  box-shadow: none;
  padding-left: 14px;
}

.phone-field__input.field-input:focus {
  box-shadow: none;
}

/* ---- Consent ---- */

.consent-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 24px 0 26px;
}

.checkbox-field--consent {
  align-items: flex-start;
}

.checkbox-field--consent .checkbox-box {
  margin-top: 1px;
}

.checkbox-field--consent .checkbox-label {
  font-size: 13.5px;
  line-height: 1.5;
}

.checkbox-label__optional {
  color: var(--text-muted);
  font-weight: 500;
}

.checkbox-field.is-invalid .checkbox-box {
  border-color: var(--error);
  background: var(--error-tint);
}

.field-error--consent {
  margin: -6px 0 0 30px;
}

.inline-note--left {
  text-align: left;
}

.consent-group .inline-note.is-visible {
  margin-top: -4px;
}

/* ---- General form error ---- */

.form-alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  margin: 0 0 22px;
  border: 1.5px solid var(--error);
  border-radius: 10px;
  background: var(--error-tint);
  color: var(--error);
}

.form-alert[hidden] {
  display: none;
}

.form-alert__icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.form-alert p {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
}

.divider[hidden],
.social-stack[hidden] {
  display: none;
}

/* ============================================================
   Country picker (shared by both selectors)
   Desktop: a popover fixed under its field (fixed, so it can never
   add height to the page). Phones and short screens: a full-screen
   sheet, search pinned at the top so it stays above the keyboard.
   The list is a deliberate in-component scroller with a solid
   background (Agents.md Section 5).
   ============================================================ */

.picker {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}

.picker[hidden] {
  display: none;
}

.picker__panel {
  position: fixed;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--white);
  border: 1.5px solid var(--border-subtle);
  border-radius: 14px;
  box-shadow: 0 24px 48px -20px rgba(16, 17, 20, 0.35);
  overflow: hidden;
}

.picker__head {
  display: none;
}

.picker__search {
  position: relative;
  flex: none;
  padding: 10px 10px 6px;
}

.picker__search-icon {
  position: absolute;
  left: 22px;
  top: 50%;
  margin-top: 2px;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--steel);
  pointer-events: none;
}

.picker__search-input {
  width: 100%;
  height: 42px;
  padding: 0 12px 0 38px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 16px; /* 16px stops iOS zooming in on focus */
  color: var(--ink);
  background: var(--ice);
  border: 1.5px solid transparent;
  border-radius: 9px;
}

.picker__search-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.picker__search-input:focus,
.picker__search-input:focus-visible {
  outline: none;
  border-color: var(--lime);
  background: var(--white);
}

.picker__list {
  list-style: none;
  margin: 0;
  padding: 4px 6px 8px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--white);
}

.picker__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 8px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 14.5px;
  color: var(--ink);
  cursor: pointer;
}

.picker__option:hover,
.picker__option.is-active {
  background: var(--ice);
}

.picker__option.is-active {
  box-shadow: inset 0 0 0 1.5px var(--mist);
}

.picker__option.is-selected {
  font-weight: 700;
}

.picker__option-name {
  flex: 1;
  min-width: 0;
}

.picker__option-dial {
  flex: none;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.picker__option-check {
  flex: none;
  width: 15px;
  height: 15px;
  color: var(--ink);
  opacity: 0;
}

.picker__option.is-selected .picker__option-check {
  opacity: 1;
}

.picker__empty {
  margin: 0;
  padding: 14px 18px 18px;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text-muted);
}

.picker__empty[hidden] {
  display: none;
}

/* Full-screen sheet */
.picker--sheet {
  pointer-events: auto;
  background: rgba(16, 17, 20, 0.45);
}

.picker--sheet .picker__panel {
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.picker--sheet .picker__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 4px 20px;
}

.picker__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
  margin: 0;
}

.picker__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border-subtle);
  background: var(--white);
  color: var(--slate);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.picker--sheet .picker__search {
  padding: 8px 14px 8px;
}

.picker--sheet .picker__search-icon {
  left: 26px;
  margin-top: 0;
}

.picker--sheet .picker__list {
  padding: 4px 10px 16px;
}

.picker--sheet .picker__option {
  padding: 13px 10px;
  font-size: 15.5px;
}

@media (max-width: 420px) {
  .phone-field {
    height: 48px;
  }
}

/* ============================================================
   Registration success page — /register/success/  (v0.7.0)
   Uses the shared bookend shell (.onboard-shell--centred).
   ============================================================ */

.onboard-badge--mail svg {
  width: 26px;
  height: 26px;
}

.sent-to {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  max-width: 420px;
  margin: 10px 0 16px;
  padding: 14px 18px;
  background: var(--white);
  border: 1.5px solid var(--border-subtle);
  border-radius: 12px;
}

.sent-to[hidden] {
  display: none;
}

.sent-to__label {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 12px;
  color: var(--text-muted);
}

.sent-to__email {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.success-actions {
  width: 100%;
  max-width: 420px;
  margin-top: 24px;
}

.success-actions .btn {
  width: 100%;
}

.success-links {
  margin: 18px 0 0;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
}

/* ============================================================
   Forgot Password — /forgot-password/, /next/, /new/  (v0.8.0)
   Single-column version of the Sign In shell: same form panel,
   fields, buttons and pattern, no brand panel at any width, logo
   always shown. Additive only.
   ============================================================ */

@media (min-width: 960px) {
  .auth-shell--single {
    grid-template-columns: minmax(0, 1fr);
  }
}

.auth-shell--single .auth-form-header p + p {
  margin-top: 10px;
}

.auth-shell--single .onboard-badge {
  margin: 0 auto 22px;
}

.fp-email {
  color: var(--ink);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.auth-form-header .fp-muted {
  color: var(--text-muted);
  font-size: 14px;
}

.auth-footer--tight {
  margin-top: 12px;
}

/* Primary button that is waiting for valid input (not loading).
   Visibly inactive, so it never looks like a broken button. */
.btn-primary:disabled:not(.is-loading) {
  background: var(--border-subtle);
  color: var(--text-muted);
  box-shadow: none;
  opacity: 1;
  cursor: not-allowed;
}

.btn-secondary:disabled:not(.is-loading) {
  color: var(--text-muted);
  background: var(--white);
  border-color: var(--border-subtle);
  opacity: 1;
  cursor: not-allowed;
}

/* ---- Link checking / invalid / success states ---- */

.fp-state {
  text-align: center;
}

.fp-state[hidden] {
  display: none;
}

#fpChecking {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 0;
}

#fpChecking[hidden] {
  display: none;
}

.fp-state__text {
  margin: 0;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-secondary);
}

.inline-spinner {
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 50%;
  border: 2px solid rgba(16, 17, 20, 0.15);
  border-top-color: var(--ink);
  animation: spin 700ms linear infinite;
}

.fp-state--block h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 3.2vw, 30px);
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 10px;
}

.fp-state--block h1:focus,
.auth-form-header h1:focus {
  outline: none;
}

.fp-state--block > p {
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0 auto 26px;
  max-width: 40ch;
}

.fp-state--block > p.auth-footer {
  margin: 24px 0 0;
  max-width: none;
}

/* ---- Live password requirements ----
   Not met: hollow circle, muted text. Met: Lime-filled circle with
   an Ink tick and Ink text, the same "selected" treatment as the
   Sign In checkbox. Never colour alone: the tick appears too, and a
   hidden ", done" / ", not done yet" is read out. */

.pw-rules {
  list-style: none;
  margin: 4px 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.pw-rule {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-muted);
  transition: color 150ms var(--ease);
}

.pw-rule__icon {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  border: 1.5px solid var(--mist);
  background: var(--white);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms var(--ease), border-color 150ms var(--ease);
}

.pw-rule__icon svg {
  width: 11px;
  height: 11px;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 120ms var(--ease), transform 120ms var(--ease);
}

.pw-rule.is-met {
  color: var(--ink);
  font-weight: 600;
}

.pw-rule.is-met .pw-rule__icon {
  background: var(--lime);
  border-color: var(--lime);
}

.pw-rule.is-met .pw-rule__icon svg {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .pw-rule,
  .pw-rule__icon,
  .pw-rule__icon svg,
  .inline-spinner {
    transition: none;
    animation-duration: 2s;
  }
}

/* Sign In: "Forgot password?" sits opposite "Remember me" */
.field-row .text-link {
  font-size: 14px;
  font-weight: 600;
}

/* ============================================================
   App shell — signed-in layout (v0.9.0)
   Left sidebar + canvas, rendered by assets/js/app-shell.js.
   Three layouts, one markup:
     >= 1024px   sidebar, expanded or collapsed to an icon rail
                 (the user's choice, remembered in SlipioState)
     768-1023px  icon rail only
     < 768px     top bar + slide-in menu
   The JS sets .is-rail whenever the rail layout applies, so the
   rail styles are written once.

   Height: content-driven like every other page (Agents.md
   Section 5). The shell is at least one small viewport tall and
   grows with the content; the page itself scrolls. The desktop
   sidebar is sticky and exactly one viewport tall, and its
   contents are short enough to fit, so it never needs to scroll
   on its own. On desktop windows too short for it (under 640px
   tall) it stops being sticky and simply scrolls with the page,
   rather than becoming a nested scroller.
   ============================================================ */

:root {
  --sidebar-w: 248px;
  --rail-w: 76px;
  --content-max: 1200px; /* content column cap (brief v0.2) */
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100svh;
}

.app-shell.is-rail {
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
}

.app-icon {
  width: 20px;
  height: 20px;
  flex: none;
}

/* ---- Sidebar ---- */

.app-topbar {
  display: none;
}

.app-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 14px 16px;
  background: var(--white);
  border-right: 1px solid var(--border-subtle);
  z-index: 20;
}

@media (min-width: 768px) and (max-height: 639.98px) {
  .app-sidebar {
    position: relative;
    align-self: stretch;
    height: auto;
  }
}

.app-sidebar__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 0 8px 0 10px;
}

.app-logo {
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
}

.app-logo__full {
  height: 30px;
  width: auto;
}

.app-logo__mark {
  display: none;
  width: 34px;
  height: 34px;
}

.app-icon-btn.app-sidebar__close {
  display: none;
}

.app-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-nav__link,
.app-collapse {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 6px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--slate);
  font-family: var(--font-ui);
  font-size: 14.5px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: background 150ms var(--ease), color 150ms var(--ease);
}

.app-nav__link:hover,
.app-collapse:hover {
  background: var(--ice);
  color: var(--ink);
}

/* Active route: Ice fill, Ink text, heavier weight and a lime marker.
   Never colour alone: the fill and weight carry it without the bar. */
.app-nav__link[aria-current="page"] {
  background: var(--ice);
  color: var(--ink);
  font-weight: 700;
}

.app-nav__link[aria-current="page"]::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--lime);
}

.app-nav__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.app-nav__meta {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
}

.app-sidebar__foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.app-collapse {
  color: var(--text-muted);
  font-weight: 500;
}

.app-collapse__icon {
  display: inline-flex;
}

.app-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0 -4px;
  flex: none;
  border-radius: 50%;
  background: var(--graphite);
  color: var(--lime);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
}

.app-tooltip {
  display: none;
}

/* ---- Rail (collapsed desktop, and every tablet) ---- */

.app-shell.is-rail .app-sidebar {
  padding-left: 12px;
  padding-right: 12px;
}

.app-shell.is-rail .app-sidebar__head {
  justify-content: center;
  padding: 0;
}

.app-shell.is-rail .app-logo__full {
  display: none;
}

.app-shell.is-rail .app-logo__mark {
  display: block;
}

.app-shell.is-rail .app-nav__link,
.app-shell.is-rail .app-collapse {
  justify-content: center;
  padding: 6px 0;
}

.app-shell.is-rail .app-nav__link[aria-current="page"]::before {
  left: -12px;
}

/* Labels stay in the accessibility tree (they are each link's name);
   only their visible box goes. */
.app-shell.is-rail .app-nav__text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.app-shell.is-rail .app-avatar {
  margin: 0;
}

/* Tooltips: a visual copy of the label, shown on hover or keyboard
   focus. aria-hidden, so screen readers hear the label once. */
.app-shell.is-rail .app-tooltip {
  display: block;
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translate(-4px, -50%);
  padding: 6px 10px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms var(--ease), transform 120ms var(--ease);
  z-index: 60;
}

.app-shell.is-rail .app-nav__link:hover .app-tooltip,
.app-shell.is-rail .app-nav__link:focus-visible .app-tooltip,
.app-shell.is-rail .app-collapse:hover .app-tooltip,
.app-shell.is-rail .app-collapse:focus-visible .app-tooltip {
  opacity: 1;
  transform: translate(0, -50%);
}

/* Tablet: always the rail, so the collapse control has nothing to do */
@media (min-width: 768px) and (max-width: 1023.98px) {
  .app-collapse {
    display: none;
  }
}

/* ---- Canvas ----
   The football pattern stays on the root canvas, as on Sign In and
   Sign Up (Agents.md Section 2). Over the canvas a soft
   white veil turns it down so it reads as texture rather than
   competing with cards and numbers (Jaymes, 2026-10-12: "subtle and
   not overpowering"). One even veil over the whole canvas, so the
   pattern is equally quiet everywhere. The veil is a background, so
   it can never add height. */
.app-canvas {
  min-width: 0;
  padding: 40px 40px 64px;
  background: rgba(255, 255, 255, 0.55);
}

.app-content {
  max-width: var(--content-max);
  margin: 0 auto;
}

/* ---- Phones: top bar + slide-in menu ---- */
@media (max-width: 767.98px) {
  .app-shell,
  .app-shell.is-rail {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto 1fr;
  }

  .app-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 60px;
    padding: env(safe-area-inset-top) max(10px, env(safe-area-inset-right)) 0 max(10px, env(safe-area-inset-left));
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border-subtle);
  }

  .app-topbar__logo img {
    height: 26px;
    width: auto;
  }

  .app-topbar__logo,
  .app-topbar__avatar {
    display: inline-flex;
    align-items: center;
    border-radius: 8px;
  }

  .app-topbar__avatar {
    width: 44px;
    height: 44px;
    justify-content: center;
    text-decoration: none;
  }

  .app-topbar__avatar .app-avatar {
    margin: 0;
  }

  /* The menu is a deliberate in-component scroller with a solid
     background (allowed by Agents.md Section 5): on a phone in
     landscape it can be taller than the screen. */
  .app-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(300px, 86vw);
    height: auto;
    /* Stretch between top and bottom. Browsers now apply align-self
       to fixed elements, and the desktop rule's "start" would shrink
       the menu to its content instead of the screen. */
    align-self: stretch;
    padding: max(16px, env(safe-area-inset-top)) 14px max(16px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    overflow-y: auto;
    overscroll-behavior: contain;
    border-right: 0;
    box-shadow: 0 0 40px rgba(16, 17, 20, 0.18);
    transform: translateX(-100%);
    visibility: hidden;
    z-index: 50;
  }

  .app-shell.is-ready .app-sidebar {
    transition: transform 240ms var(--ease), visibility 0s linear 240ms;
  }

  .app-shell.is-menu-open .app-sidebar {
    transform: none;
    visibility: visible;
    transition: transform 240ms var(--ease);
  }

  /* The phone menu always shows full labels, whatever the desktop
     preference is. */
  .app-shell.is-rail .app-sidebar__head { justify-content: space-between; padding: 0 0 0 10px; }
  .app-shell .app-logo__full { display: block; }
  .app-shell .app-logo__mark { display: none; }

  .app-icon-btn.app-sidebar__close {
    display: inline-flex;
  }

  .app-collapse {
    display: none;
  }

  .app-canvas {
    padding: 22px 16px 40px;
    background: rgba(255, 255, 255, 0.6);
  }
}

.app-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.app-icon-btn:hover {
  background: var(--ice);
}

.app-icon-btn .app-icon {
  width: 22px;
  height: 22px;
}

.app-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(16, 17, 20, 0.45);
}

.app-backdrop[hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .app-shell.is-ready .app-sidebar,
  .app-shell.is-menu-open .app-sidebar,
  .app-tooltip {
    transition: none;
  }
}

/* ============================================================
   Dashboard — /dashboard/  (v0.9.0, chunk a)
   Greeting and the Build a Prediction banner. The module rows
   (Your Upcoming Matches, Up next, Most Slipable Matches,
   Matches for you) arrive in chunk b.
   ============================================================ */

.dash-greeting {
  margin: 0 0 22px;
}

.dash-greeting__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.dash-greeting__sub {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Build a Prediction: the one bold element on the page. Dark
   Graphite, the pitch-arc motif from the bookend screens, and the
   only lime button. Compact by design (brief section 5): one row on
   desktop, never a hero block. */
.build-banner {
  position: relative;
  overflow: hidden;
  overflow: clip;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 26px 32px;
  border-radius: 18px;
  background: var(--graphite);
  color: var(--white);
}

.build-banner::before,
.build-banner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(199, 255, 47, 0.22);
  pointer-events: none;
}

.build-banner::before {
  width: 360px;
  height: 360px;
  right: 120px;
  top: -250px;
}

.build-banner::after {
  width: 200px;
  height: 200px;
  right: 200px;
  top: -150px;
  border-color: rgba(199, 255, 47, 0.14);
}

.build-banner__body {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.build-banner__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--white);
}

.build-banner__copy {
  margin: 6px 0 0;
  max-width: 58ch;
  font-size: 15px;
  line-height: 1.55;
  color: var(--mist);
}

.build-banner .btn {
  position: relative;
  z-index: 1;
  flex: none;
  width: auto;
  padding: 0 30px;
}

/* First visit, zero Prediction Sets: a little more room for the
   introductory message (brief section 5). */
.build-banner--intro {
  padding-top: 32px;
  padding-bottom: 32px;
}

.build-banner--intro .build-banner__title {
  font-size: 24px;
}

@media (max-width: 767.98px) {
  .build-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    padding: 24px 20px;
  }

  .build-banner .btn {
    width: 100%;
  }

  .build-banner::before {
    right: -160px;
  }

  .build-banner::after {
    right: -60px;
  }
}

/* Prototype-only note marking where the next build's modules go.
   Removed in chunk b. */
.proto-note {
  margin: 28px 0 0;
  padding: 18px 20px;
  border: 1.5px dashed var(--mist);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

.proto-note strong {
  color: var(--slate);
}

/* ============================================================
   Placeholder destinations — /placeholder/?page=...  (v0.9.0)
   Sidebar routes that aren't built yet. Keeps the shell and
   offers a route back, per Agents.md.
   ============================================================ */

.placeholder-card {
  max-width: 620px;
  padding: 32px;
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  background: var(--white);
}

.placeholder-card__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 600;
  color: var(--ink);
}

.placeholder-card p {
  margin: 0 0 14px;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.placeholder-card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 24px;
}

.placeholder-card__actions .btn {
  width: auto;
  padding: 0 26px;
}

.placeholder-card__actions .text-link {
  font-size: 14.5px;
  font-weight: 600;
}

/* ============================================================
   Dashboard modules — /dashboard/  (v0.10.0, chunk b)
   Up next / Your upcoming matches, Most Slipable matches,
   Matches for you and the Explore fallback. One card system for
   every match, so each state of the Dashboard keeps one rhythm.
   Rendered by assets/js/dashboard.js.
   ============================================================ */

.dash-modules {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-top: 36px;
}

.dash-module__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-bottom: 14px;
}

.dash-module__titles {
  min-width: 0;
}

.dash-module__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}

.dash-module__sub {
  margin: 4px 0 0;
  max-width: 64ch;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

.dash-module__aside {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  flex: 0 1 auto;
  min-width: 0;
}

.dash-module__more {
  font-size: 14px;
}

/* Every module showing mock data says so (brief: never present
   placeholder data as live). Prototype only. */
.tag-illustrative {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border: 1px dashed var(--mist);
  border-radius: 999px;
  background: var(--white);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.match-grid,
.explore-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.match-grid--featured {
  grid-template-columns: minmax(0, 1fr);
}

/* ---- Match card ---- */
.match-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: var(--white);
}

.match-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.match-card__league {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-card__time {
  margin-left: auto;
  flex: none;
  color: var(--slate);
  white-space: nowrap;
}

.league-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-width: 26px;
  height: 20px;
  padding: 0 4px;
  border-radius: 6px;
  background: var(--graphite);
  color: var(--white);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.match-card__teams {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.match-card__team {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.match-card__name {
  min-width: 0;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
  overflow-wrap: anywhere;
}

/* Placeholder club badge: Graphite initials chip, deliberately
   unlike real crest artwork (Agents.md Section 3). */
.club-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--graphite);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
}

.match-card__team.is-yours .club-badge {
  box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--lime);
}

.match-card__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.match-card__note {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-muted);
}

.match-card__tag {
  align-self: flex-start;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 700;
}

.match-card__link {
  flex: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--mist);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.match-card__link:hover {
  text-decoration-color: var(--ink);
}

/* Featured card (Up next): teams face each other across a "v". */
.match-card--featured {
  padding: 22px 26px;
  gap: 18px;
}

.match-card--featured .match-card__teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.match-card--featured .match-card__team:first-child {
  flex-direction: row-reverse;
  text-align: right;
}

.match-card--featured .club-badge {
  width: 46px;
  height: 46px;
  font-size: 15px;
}

.match-card--featured .match-card__name {
  font-family: var(--font-display);
  font-size: 20px;
}

.match-card__v {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
}

/* ---- Explore fallback (nothing personal to show) ---- */
.explore-card__link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  padding: 18px 20px;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: var(--white);
  text-decoration: none;
  transition: border-color 150ms var(--ease);
}

.explore-card__link:hover {
  border-color: var(--slate);
}

.explore-card__title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
}

.explore-card__text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* ---- Loading and error states ---- */
.skeleton {
  border-radius: 6px;
  background: linear-gradient(90deg, var(--ice) 0%, #F4F7F9 50%, var(--ice) 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}

.skeleton--title { width: 220px; height: 22px; }
.skeleton--line { width: 70%; height: 12px; }
.skeleton--short { width: 40%; margin-top: auto; }
.skeleton--team { width: 85%; height: 28px; border-radius: 14px; }

.match-card--skeleton {
  min-height: 178px;
}

@keyframes skeleton-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

.dash-error {
  padding: 24px 26px;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: var(--white);
}

.dash-error__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
}

.dash-error__text {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.dash-error__btn {
  width: auto;
  height: 46px;
  padding: 0 22px;
}

@media (prefers-reduced-motion: reduce) {
  .skeleton { animation: none; }
}

/* ---- Responsive ---- */
@media (max-width: 1099.98px) {
  .match-grid,
  .explore-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .match-grid--featured {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 639.98px) {
  .dash-modules {
    gap: 30px;
    margin-top: 28px;
  }

  .match-grid,
  .explore-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .match-card--featured {
    padding: 18px;
  }

  .match-card--featured .match-card__teams {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .match-card--featured .match-card__team:first-child {
    flex-direction: row;
    text-align: left;
  }

  .match-card--featured .match-card__v {
    display: none;
  }

  .match-card--featured .club-badge {
    width: 36px;
    height: 36px;
    font-size: 12.5px;
  }

  .match-card--featured .match-card__name {
    font-size: 17px;
  }
}

/* ============================================================
   Prediction Builder — /prediction-builder/  (v0.11.0)
   Focused full-page layout (no sidebar, not a modal: brief v1.1
   section 0.4). Content-driven height like every page: at least
   one small viewport tall, grows with content, never scrolls on
   its own (Agents.md Section 5).
   Start screen: one bold element (the dark "Let Slipio build it
   for you" card with the only lime button), the "Build it my way"
   route deliberately quieter underneath.
   ============================================================ */

.builder-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(40px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  background: rgba(255, 255, 255, 0.55);
}

.builder-top {
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
}

.builder-top__logo {
  display: inline-flex;
  border-radius: 6px;
}

.builder-top__logo img {
  height: 28px;
  width: auto;
}

.builder-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--border-subtle);
  border-radius: 50%;
  background: var(--white);
  color: var(--text-muted);
  transition: color 150ms var(--ease), border-color 150ms var(--ease);
}

.builder-close:hover {
  color: var(--ink);
  border-color: var(--slate);
}

.builder-main {
  width: 100%;
  max-width: 600px;
  margin-top: clamp(24px, 6vh, 64px);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.builder-intro {
  text-align: center;
}

.builder-intro .onboard-badge {
  margin: 0 auto 20px;
}

.builder-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 34px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.builder-lede {
  max-width: 46ch;
  margin: 12px auto 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ---- The quick build card ---- */
.builder-quick {
  position: relative;
  overflow: hidden;
  overflow: clip;
  padding: 28px;
  border-radius: 20px;
  background: var(--graphite);
  color: var(--white);
}

.builder-quick::before {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  right: -150px;
  top: -170px;
  border-radius: 50%;
  border: 1px solid rgba(199, 255, 47, 0.2);
  pointer-events: none;
}

.builder-quick > * {
  position: relative;
}

.builder-quick__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
}

.builder-quick__copy {
  margin: 6px 0 18px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--mist);
}

.builder-defaults {
  margin: 0 0 22px;
  padding: 4px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.builder-defaults__row {
  display: grid;
  grid-template-columns: minmax(110px, 34%) minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.builder-defaults dt {
  font-size: 14px;
  color: var(--mist);
}

.builder-defaults dd {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--white);
}

.builder-quick__btn {
  height: 56px;
  font-size: 16px;
}

/* ---- Build it my way: deliberately quieter ---- */
.builder-myway {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  text-align: center;
}

.builder-myway__lead {
  margin: 0;
  font-size: 15px;
  color: var(--text-secondary);
}

.builder-myway__btn {
  width: auto;
  height: 46px;
  padding: 0 22px;
}

/* ---- New to Prediction Sets? (always visible, v0.12.0) ---- */
.builder-explain {
  padding: 18px 20px;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: var(--white);
}

.builder-explain__title {
  margin: 0 0 6px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--ink);
}

.builder-explain p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

@media (max-width: 559.98px) {
  .builder-quick {
    padding: 22px 18px;
  }

  .builder-defaults__row {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .builder-myway {
    flex-direction: column;
  }

  .builder-myway__btn {
    width: 100%;
  }
}


/* ============================================================
   Prediction Builder — "Build one for me" result (v0.12.0)
   /prediction-builder/quick/. Building moment, result (summary,
   whole-set estimate, settings + Rebuild, predictions) and the
   "nothing fits" view. Reuses .match-card__meta, .league-mini,
   .club-badge and .match-card__link from the Dashboard.
   The bold element on this screen is the whole-set estimate.
   ============================================================ */

.builder-main--wide {
  max-width: 760px;
}

/* ---- Building ---- */
.build-progress {
  padding: clamp(40px, 12vh, 120px) 0 40px;
  text-align: center;
}

.build-progress__spinner {
  display: block;
  width: 44px;
  height: 44px;
  margin: 0 auto 22px;
  border-radius: 50%;
  border: 3px solid var(--ice);
  border-top-color: var(--ink);
  animation: spin 800ms linear infinite;
}

.build-progress__title {
  font-size: clamp(24px, 3vw, 30px);
}

/* ---- Result header ---- */
.result {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.result-head__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.result-head__title {
  outline: none;
}

.result-head__saved {
  margin: 8px 0 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.result-notice {
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ice);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.result-notice[hidden],
.result-welcome[hidden],
.result-empty__plan[hidden],
.result-actions .btn[hidden] {
  display: none;
}

.result-welcome {
  padding: 16px 18px;
  border-left: 4px solid var(--lime);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 0 0 1px var(--border-subtle);
}

.result-welcome p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink);
}

/* ---- Summary and the whole-set estimate ---- */
.result-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 16px;
}

.result-stats {
  list-style: none;
  margin: 0;
  padding: 18px 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: var(--white);
}

.result-stat {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.result-stat__value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

.result-stat:last-child {
  grid-column: 1 / -1;
}

.result-stat:last-child .result-stat__value {
  font-family: var(--font-ui);
  font-size: 14.5px;
  font-weight: 600;
}

.result-stat__label {
  font-size: 13px;
  color: var(--text-muted);
}

.result-estimate {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border-radius: 16px;
  background: var(--graphite);
}

.result-estimate__figure {
  margin: 0;
  flex: none;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  color: var(--lime);
}

.result-estimate__label {
  margin: 0 0 4px;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--white);
}

.result-estimate__note {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--mist);
}

/* ---- Settings: summary chips, then the panel ---- */
.result-section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
}

.result-settings__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.result-settings__toggle {
  width: auto;
  height: 42px;
  padding: 0 18px;
  font-size: 14px;
}

.settings-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.settings-chip {
  display: flex;
  flex-direction: column;
  padding: 8px 14px;
  border-radius: 12px;
  background: var(--ice);
}

.settings-chip__label {
  font-size: 12px;
  color: var(--text-muted);
}

.settings-chip__value {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.settings-panel {
  margin-top: 14px;
  padding: 20px;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.settings-panel[hidden] {
  display: none;
}

.settings-group {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.settings-group legend {
  margin-bottom: 10px;
  padding: 0;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}

.option-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

/* Native radios and checkboxes stay visible (accessible by default);
   the selected option also gets a stronger border and fill. */
.option-pill,
.option-card {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1.5px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--white);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

.option-card {
  flex-wrap: wrap;
  align-items: flex-start;
  align-content: flex-start; /* keep the description under the label when cards share a taller row */
  padding: 12px 14px;
}

.option-card__desc {
  flex-basis: 100%;
  padding-left: 24px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-muted);
}

.option-pill input,
.option-card input {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: none;
  accent-color: var(--ink);
}

.option-card input {
  margin-top: 2px;
}

.option-pill:has(input:checked),
.option-card:has(input:checked) {
  border-color: var(--ink);
  background: var(--ice);
}

.settings-hint {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.settings-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.settings-actions .btn {
  width: auto;
  padding: 0 28px;
}

/* ---- Predictions ---- */
.prediction-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prediction-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: var(--white);
}

.prediction-card__teams {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--slate);
}

.club-badge--sm {
  width: 24px;
  height: 24px;
  font-size: 9.5px;
}

.prediction-card__v {
  color: var(--text-muted);
  font-weight: 500;
}

.prediction-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.prediction-card__prediction {
  margin: 0;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.prediction-card__chance {
  margin: 0;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.prediction-card__chance-value {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
}

.prediction-card__chance-label {
  font-size: 12px;
  color: var(--text-muted);
}

.prediction-why {
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
}

.prediction-why__summary {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--mist);
  text-underline-offset: 3px;
}

.prediction-why__body {
  padding-top: 8px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.prediction-why__body p {
  margin: 0 0 6px;
}

.prediction-why__body ul {
  margin: 0 0 8px;
  padding-left: 20px;
}

.prediction-why__note {
  font-size: 12.5px;
  color: var(--text-muted);
}

.prediction-card__foot {
  display: flex;
  justify-content: flex-end;
}

/* ---- Actions ---- */
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.result-actions .btn {
  width: auto;
  padding: 0 28px;
}

/* ---- Nothing fits ---- */
.result-empty {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: clamp(20px, 6vh, 60px);
}

.result-empty .builder-title,
.result-empty .builder-lede {
  text-align: left;
  margin-left: 0;
}

.result-empty .builder-title {
  outline: none;
}

.result-empty__plan {
  padding: 16px 18px;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: var(--white);
}

.result-empty__plan-title {
  margin: 0 0 8px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
}

.result-empty__plan ul {
  margin: 0;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-secondary);
}

@media (max-width: 639.98px) {
  .result-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .option-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .result-actions .btn,
  .settings-actions .btn {
    width: 100%;
  }

  .settings-actions {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .prediction-card__prediction {
    font-size: 16.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .build-progress__spinner { animation-duration: 2s; }
}

/* v0.12.0: these views set their own display, which beats the
   browser's [hidden] rule (Agents.md Section 4 trap). */
.build-progress[hidden],
.result[hidden],
.result-empty[hidden] {
  display: none;
}

/* Titles receive focus from the script so screen readers announce the
   new view; no ring for that programmatic focus. */
.result-head__title:focus,
.result-empty .builder-title:focus {
  outline: none;
}

/* Why this prediction? and Explore match share the card's bottom row */
.prediction-card__bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
}

.prediction-card__bottom .prediction-why {
  flex: 1;
  min-width: 0;
  border-top: 0;
  padding-top: 0;
}

.prediction-card__bottom .match-card__link {
  line-height: 32px;
}

/* ============================================================
   Prediction Builder — "Build it my way", four guided steps (v0.13.0)
   /prediction-builder/my-way/. Reuses .builder-shell, .builder-title,
   .option-pill/.option-card, .league-mini, .club-badge, .field-input
   and .tag-illustrative. One step visible at a time; a sticky action
   bar (in the page flow, not fixed) carries the live summary, Back
   and Continue. No nested scrolling anywhere (Agents.md Section 5).
   ============================================================ */

.wizard {
  gap: 22px;
}

/* ---- Progress ---- */
.wizard-progress__label {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.wizard-progress__bar {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.wizard-progress__seg {
  height: 6px;
  border-radius: 999px;
  background: var(--border-subtle);
}

.wizard-progress__seg.is-done {
  background: var(--ink);
}

.wizard-progress__seg.is-current {
  background: var(--lime);
  box-shadow: inset 0 0 0 1px rgba(16, 17, 20, 0.25);
}

/* ---- Step ---- */
.wizard-form {
  display: flex;
  flex-direction: column;
}

.wizard-step {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.wizard-step[hidden] {
  display: none;
}

.wizard-step__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.wizard-step__title:focus {
  outline: none;
}

.wizard-step__lede {
  margin: 0;
  max-width: 56ch;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.wizard-note {
  margin: 0;
  padding: 10px 14px;
  border-left: 3px solid var(--lime);
  border-radius: 0 10px 10px 0;
  background: var(--white);
  font-size: 14px;
  color: var(--text-secondary);
}

.wizard-note[hidden] {
  display: none;
}

.wizard-block {
  margin: 0;
  padding: 20px;
  min-width: 0;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.wizard-block__title {
  float: left;
  width: 100%;
  margin: 0 0 2px;
  padding: 0;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
}

.wizard-block__title + * {
  clear: both;
}

.wizard-window {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

.wizard-window:empty {
  display: none;
}

/* ---- Custom dates ---- */
.custom-dates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.custom-dates[hidden] {
  display: none;
}

.custom-dates__field {
  min-width: 0;
}

.custom-dates .field-input {
  height: 46px;
}

.wizard-error {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--error, #C5221F);
}

.wizard-error[hidden] {
  display: none;
}

/* ---- Alerts, callout ---- */
.wizard-alert,
.wizard-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding: 14px 16px;
  border-radius: 12px;
}

.wizard-alert {
  border: 1px solid #F0D58A;
  background: #FFF9E8;
}

.wizard-callout {
  border: 1px solid var(--ink);
  background: var(--ice);
}

.wizard-alert[hidden],
.wizard-callout[hidden] {
  display: none;
}

.wizard-alert__text,
.wizard-callout__text {
  flex: 1 1 260px;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink);
}

.wizard-callout__text {
  font-weight: 600;
}

.wizard-alert__btn,
.wizard-callout__btn {
  width: auto;
  height: 42px;
  padding: 0 18px;
  font-size: 14px;
  flex: none;
}

/* ---- Option cards: stacked variants ---- */
.option-cards--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ---- Pickers (leagues, matches) ---- */
.match-picker {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.match-picker[hidden] {
  display: none;
}

.match-picker__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.match-picker__hint {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

.match-picker__clear {
  flex: none;
  font-size: 14px;
}

.match-picker__clear[hidden] {
  display: none;
}

.match-picker__search .field-input {
  height: 46px;
}

.match-picker__empty {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.match-picker__empty[hidden] {
  display: none;
}

#leagueGroups,
#matchGroups {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pick-group[hidden] {
  display: none;
}

.pick-group__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.pick-group__title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.pick-group__head .pick-group__title {
  margin: 0;
}

.pick-group__all {
  position: relative; /* anchors its visually-hidden label */
  font-size: 13.5px;
}

.pick-group__none {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--ice);
  font-size: 14px;
  color: var(--text-secondary);
}

.pick-group__none p {
  margin: 0;
}

.pick-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pick-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 10px 14px;
  border: 1.5px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
}

.pick-row[hidden] {
  display: none;
}

.pick-row input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: none;
  accent-color: var(--ink);
}

.pick-row:has(input:checked) {
  border-color: var(--ink);
  background: var(--ice);
}

.pick-row__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pick-row__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.pick-row__meta {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.pick-row__meta--top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin-bottom: 6px;
}

.pick-row__time {
  margin-left: auto;
  white-space: nowrap;
  color: var(--slate);
}

.pick-row__count {
  flex: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate);
  text-align: right;
}

.pick-row__count.is-none {
  max-width: 11ch;
  font-weight: 500;
  color: var(--text-muted);
}

.pick-row__teams {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
}

.pick-row__team {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.pick-row__team.is-yours .club-badge {
  box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--lime);
}

.pick-row__v {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---- Prediction types ---- */
.type-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.type-groups[hidden] {
  display: none;
}

.type-group {
  margin: 0;
  padding: 16px;
  min-width: 0;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: var(--white);
}

.type-group__title {
  float: left;
  width: 100%;
  padding: 0;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.type-group__list {
  clear: both;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.type-option__row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.type-option__row .option-pill {
  flex: 1;
  min-width: 0;
}

.info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
}

.info-btn:hover,
.info-btn[aria-expanded="true"] {
  color: var(--ink);
  background: var(--ice);
}

.info-tip {
  margin: 6px 0 2px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--ice);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.info-tip[hidden] {
  display: none;
}

.wizard-more {
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: var(--white);
}

.wizard-more[hidden] {
  display: none;
}

.wizard-more__summary {
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.wizard-more__body {
  padding: 0 18px 18px;
}

.wizard-select {
  max-width: 260px;
  height: 46px;
}

.wizard-select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---- Review ---- */
.review-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: var(--white);
}

.review-row__text {
  min-width: 0;
}

.review-row__term {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.review-row__value {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
}

.review-row__extra {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

.review-row__change {
  width: auto;
  height: 40px;
  padding: 0 16px;
  font-size: 14px;
  flex: none;
}

.review-matches {
  margin: 0;
  padding-left: 18px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
}

.review-matches.is-collapsed .is-more {
  display: none;
}

.review-matches__toggle {
  margin-top: 4px;
  font-size: 14px;
}

.prebuild {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: var(--white);
}

.prebuild:focus {
  outline: none;
}

.prebuild.is-ok {
  border-color: var(--ink);
  border-left: 4px solid var(--lime);
}

.prebuild.is-info {
  border-color: #F0D58A;
  background: #FFF9E8;
}

.prebuild.is-warn {
  border-color: #F0D58A;
  border-left: 4px solid #D9A400;
  background: #FFF9E8;
}

.prebuild__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.prebuild__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.prebuild__text {
  margin: 6px 0 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.prebuild__plan {
  margin: 8px 0 0;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink);
}

.prebuild__plan[hidden],
.prebuild__btn[hidden] {
  display: none;
}

.prebuild__btn {
  width: auto;
  height: 42px;
  margin-top: 12px;
  padding: 0 18px;
  font-size: 14px;
}

.wizard-remember {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

/* ---- Sticky action bar (in flow, sticks to the bottom while the
   step is longer than the screen) ---- */
.wizard-bar {
  position: sticky;
  bottom: calc(var(--rp-bar-h, 0px) + max(12px, env(safe-area-inset-bottom)));
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 12px 12px 12px 18px;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 30px -12px rgba(16, 17, 20, 0.28);
}

.wizard-bar__summary {
  min-width: 0;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-secondary);
}

.wizard-bar__actions {
  display: flex;
  gap: 8px;
  flex: none;
}

.wizard-bar .btn {
  width: auto;
  height: 46px;
  padding: 0 20px;
}

.wizard-bar__next--build {
  padding: 0 24px;
}

@media (max-width: 639.98px) {
  .wizard-block {
    padding: 16px;
  }

  .type-groups,
  .option-cards--two {
    grid-template-columns: minmax(0, 1fr);
  }

  .wizard-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
  }

  .wizard-bar__summary {
    padding: 0 6px;
    font-size: 13px;
  }

  .wizard-bar__summary:empty {
    display: none;
  }

  .wizard-bar__actions .btn {
    flex: 1;
    padding: 0 12px;
  }

  .wizard-bar__back {
    flex: 0 0 34% !important;
  }

  .review-row {
    flex-direction: column;
    gap: 10px;
  }

  .custom-dates {
    grid-template-columns: minmax(0, 1fr);
  }

  .pick-row__meta--top {
    flex-wrap: wrap;
  }
}

/* v0.13.0: guided-steps choice the result panel can't show */
.settings-note {
  flex-basis: 100%;
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================================
   Matches (v0.14.0)  /matches/
   Brief: Slipio_Matches_UX_UI_Brief_v0.14.0.md. Filters across the
   top, Your team (the one bold element), Your leagues, More matches,
   grouped by day. Reuses .option-pill, .pick-row/.pick-group (guided
   steps), .league-mini, .club-badge, .field-input, .tag-illustrative,
   .custom-dates and .wizard-error. No nested scrolling; the leagues
   panel opens in the page flow.
   ============================================================ */

.mx {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---- Header ---- */
.mx-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}

.mx-head__title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.mx-head__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.mx-head__sub {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--text-secondary);
}

.mx-head__build {
  width: auto;
  height: 46px;
  padding: 0 22px;
}

/* ---- Upcoming / Results ---- */
.mx-view {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--white);
}

.mx-view__btn {
  min-height: 40px;
  padding: 0 20px;
  border: 0;
  border-radius: 9px;
  background: none;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
}

.mx-view__btn[aria-pressed="true"] {
  background: var(--ink);
  color: var(--white);
}

/* ---- Filter bar ---- */
.mx-filters {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: var(--white);
}

.mx-filters__period {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.mx-filters__row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.mx-leagues-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 46px;
  max-width: 100%;
  padding: 0 16px;
  border: 1.5px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--white);
  font-family: var(--font-ui);
  font-size: 14.5px;
  color: var(--ink);
  cursor: pointer;
}

.mx-leagues-btn:hover,
.mx-leagues-btn[aria-expanded="true"] {
  border-color: var(--ink);
}

.mx-leagues-btn__label {
  color: var(--text-muted);
  font-weight: 600;
}

.mx-leagues-btn__value {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mx-search {
  flex: 1 1 220px;
  min-width: 0;
  max-width: 360px;
}

.mx-search .field-input {
  height: 46px;
}

.mx-count {
  margin: 0 0 0 auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
}

.mx-reset {
  font-size: 14px;
}

.mx-reset[hidden],
.mx-dates[hidden] {
  display: none;
}

/* ---- Leagues panel (in flow) ---- */
.mx-leagues {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.mx-leagues[hidden] {
  display: none;
}

.mx-leagues__top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mx-leagues__top .field-input {
  flex: 1 1 240px;
  width: auto;
  height: 44px;
}

.mx-leagues__quick {
  display: flex;
  gap: 8px;
}

.mx-leagues__quick .btn {
  width: auto;
  height: 44px;
  padding: 0 16px;
  font-size: 14px;
}

.mx-leagues__quick .btn[hidden] {
  display: none;
}

.mx-leagues__groups {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mx-leagues__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mx-leagues__done .btn {
  width: auto;
  height: 44px;
  padding: 0 28px;
}

/* ---- Content ---- */
.mx-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mx-section__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 12px;
}

.mx-section__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
}

.mx-section__sub {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.mx-days {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mx-day__title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.mx-day__count {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.mx-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: var(--white);
}

/* ---- Row ---- */
.mx-row {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(0, 380px);
  align-items: center;
  gap: 12px 18px;
  padding: 14px 18px;
}

.mx-row + .mx-row {
  border-top: 1px solid var(--border-subtle);
}

.mx-row:hover {
  background: #FAFBFC;
}

.mx-row:first-child { border-radius: 16px 16px 0 0; }
.mx-row:last-child { border-radius: 0 0 16px 16px; }
.mx-row:only-child { border-radius: 16px; }

.mx-row--result {
  grid-template-columns: 64px minmax(0, 1fr);
}

.mx-row__time {
  align-self: start;
  padding-top: 2px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.mx-row__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mx-row__comp {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
}

.mx-row__comp-time {
  display: none;
  font-weight: 700;
  color: var(--ink);
}

.mx-row__ft {
  margin-left: auto;
  font-weight: 700;
  color: var(--slate);
}

.mx-row__link {
  color: inherit;
  text-decoration: none;
}

/* The row is one big link to the match; buttons sit above it. */
.mx-row__link::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.mx-row__link:focus-visible {
  outline: none;
}

.mx-row__link:focus-visible::after {
  outline: 3px solid var(--ink);
  outline-offset: -3px;
}

.mx-row__teams {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mx-row__team {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mx-row__name {
  min-width: 0;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.mx-row__team.is-yours .club-badge,
.mx-team__club.is-yours .club-badge {
  box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--lime);
}

.mx-row--result .mx-row__name {
  font-weight: 500;
}

.mx-row--result .mx-row__team.is-winner .mx-row__name {
  font-weight: 700;
}

.mx-row__score {
  margin-left: auto;
  min-width: 24px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  text-align: right;
  color: var(--ink);
}

.mx-row__score.is-winner {
  font-weight: 700;
}

.mx-markers {
  list-style: none;
  margin: 2px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.mx-marker {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--ice);
  font-size: 12px;
  font-weight: 700;
  color: var(--slate);
}

.mx-marker.is-team {
  background: rgba(199, 255, 47, 0.35);
  color: var(--ink);
}

.mx-marker.is-sets {
  background: var(--ink);
  color: var(--white);
}

.mx-row__side {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.mx-row__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.mx-row__build {
  width: auto;
  height: 38px;
  padding: 0 14px;
  font-size: 13.5px;
}

/* ---- Slipio's view (home / draw / away) ---- */
.mx-view-bar__track {
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  gap: 2px;
  background: var(--white);
}

.mx-view-bar__seg--home { background: var(--ink); }
.mx-view-bar__seg--draw { background: var(--mist); }
.mx-view-bar__seg--away { background: var(--lime); box-shadow: inset 0 0 0 1px rgba(16, 17, 20, 0.15); }

.mx-view-bar__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  margin: 6px 0 0;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.mx-view-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.mx-view-bar__item strong {
  color: var(--ink);
}

.mx-view-bar__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

.mx-view-bar__dot--home { background: var(--ink); }
.mx-view-bar__dot--draw { background: var(--mist); }
.mx-view-bar__dot--away { background: var(--lime); box-shadow: inset 0 0 0 1px rgba(16, 17, 20, 0.25); }

.mx-view-bar--dark .mx-view-bar__track { background: transparent; }
.mx-view-bar--dark .mx-view-bar__seg--home,
.mx-view-bar--dark .mx-view-bar__dot--home { background: var(--white); }
.mx-view-bar--dark .mx-view-bar__seg--draw,
.mx-view-bar--dark .mx-view-bar__dot--draw { background: var(--steel); }
.mx-view-bar--dark .mx-view-bar__legend { color: var(--mist); }
.mx-view-bar--dark .mx-view-bar__item strong { color: var(--white); }

/* ---- Watch ---- */
.mx-watch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border: 1.5px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--white);
  color: var(--text-muted);
  cursor: pointer;
}

.mx-watch:hover,
.mx-watch[aria-pressed="true"] {
  border-color: var(--ink);
  color: var(--ink);
}

.mx-watch--dark {
  width: 44px;
  height: 44px;
  border-color: rgba(255, 255, 255, 0.25);
  background: transparent;
  color: var(--mist);
}

.mx-watch--dark:hover,
.mx-watch--dark[aria-pressed="true"] {
  border-color: var(--lime);
  color: var(--lime);
}

/* ---- Your team (the one bold element) ---- */
.mx-team {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 26px;
  border-radius: 20px;
  background: var(--graphite);
  color: var(--white);
}

.mx-team__eyebrow {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--lime);
}

.mx-team__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--mist);
}

.league-mini--light {
  background: var(--white);
  color: var(--ink);
}

.mx-team__teams {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 0;
}

.mx-team__club {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mx-team__club .club-badge {
  width: 36px;
  height: 36px;
  font-size: 12px;
  background: var(--white);
  color: var(--ink);
}

.mx-team__club.is-yours .club-badge {
  box-shadow: 0 0 0 2px var(--graphite), 0 0 0 4px var(--lime);
}

.mx-team__name {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.mx-team__score {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  color: var(--lime);
}

.mx-team__v {
  color: var(--steel);
  font-size: 15px;
}

.mx-team__note {
  margin: 0;
  font-size: 14.5px;
  color: var(--mist);
}

.mx-team .mx-view-bar {
  max-width: 460px;
}

.mx-team__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 4px;
}

.mx-team__build {
  width: auto;
  height: 46px;
  padding: 0 22px;
}

.mx-team__explore {
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 3px;
}

.mx-team__explore:hover {
  text-decoration-color: var(--white);
}

.mx-team--none {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--border-subtle);
}

.mx-team--none .mx-team__eyebrow { color: var(--text-muted); }
.mx-team--none .mx-team__note { color: var(--text-secondary); }

/* ---- Show more, empty, hint, skeleton ---- */
.mx-more {
  width: auto;
  height: 44px;
  margin-top: 12px;
  padding: 0 22px;
  font-size: 14px;
}

.mx-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 24px;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: var(--white);
}

.mx-empty--inline {
  padding: 16px 18px;
  background: var(--ice);
  border-color: transparent;
}

.mx-empty__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
}

.mx-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mx-empty .btn {
  width: auto;
  height: 42px;
  padding: 0 18px;
  font-size: 14px;
}

.mx-hint {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-secondary);
}

.mx-skeleton {
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  background: var(--border-subtle);
}

.mx-skeleton__row {
  height: 88px;
  background: linear-gradient(90deg, var(--ice) 0%, #F4F7F9 50%, var(--ice) 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}

/* ---- Tablet and phone ---- */
@media (max-width: 899.98px) {
  .mx-row {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .mx-row__side {
    grid-column: 2;
  }

  .mx-row__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 639.98px) {
  .mx-head__build {
    width: 100%;
  }

  .mx-view {
    align-self: stretch;
  }

  .mx-view__btn {
    flex: 1;
  }

  .mx-filters {
    padding: 14px;
  }

  .mx-leagues-btn,
  .mx-search {
    flex: 1 1 100%;
    max-width: none;
  }

  .mx-count {
    margin-left: 0;
  }

  .mx-leagues__list {
    grid-template-columns: minmax(0, 1fr);
  }

  .mx-leagues__done .btn {
    width: 100%;
  }

  .mx-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 14px 16px;
  }

  .mx-row__time {
    display: none;
  }

  .mx-row__comp-time {
    display: inline;
    order: -1;
  }

  .mx-row__ft {
    margin-left: auto;
  }

  .mx-team__v {
    display: none;
  }

  .mx-row__side {
    grid-column: 1;
  }

  .mx-row__build {
    flex: 1;
  }

  .mx-team {
    padding: 20px;
  }

  .mx-team__build {
    flex: 1 1 100%;
  }
}

/* Results: keep the score beside the team names on wide screens */
.mx-row--result .mx-row__comp,
.mx-row--result .mx-row__link {
  max-width: 460px;
}

/* ============================================================
   Match Intelligence (v0.15.0)  /match/?fixture=<id>
   Brief: Slipio_Match_Intelligence_UX_UI_Brief_v0.15.0.md. Key card
   (dark, the one bold element; minimisable) above six tabs. Reuses
   .mx-view-bar (Matches), .club-badge, .league-mini, .info-btn,
   .tag-illustrative, .mx-empty. Tabs wrap on phones (no sideways
   scrolling); no scroll areas inside the page.
   ============================================================ */

.mi {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mi-back {
  align-self: flex-start;
  font-size: 14.5px;
}

/* ---- Key card ---- */
.mi-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px 26px 24px;
  border-radius: 20px;
  background: var(--graphite);
  color: var(--white);
}

.mi-card[hidden] { display: none; }

.mi-card.is-minimised {
  padding: 14px 18px;
}

.mi-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--mist);
}

.mi-card__meta .tag-illustrative {
  background: transparent;
  color: var(--mist);
  border-color: var(--steel);
}

.mi-card__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: transparent;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  cursor: pointer;
}

.mi-card__toggle:hover {
  border-color: var(--lime);
  color: var(--lime);
}

.mi-card__compact {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mi-card__compact-text {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--white);
}

.mi-card__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mi-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.mi-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  text-align: center;
}

.mi-side .club-badge {
  width: 52px;
  height: 52px;
  font-size: 16px;
  background: var(--white);
  color: var(--ink);
}

.mi-side.is-yours .club-badge {
  box-shadow: 0 0 0 3px var(--graphite), 0 0 0 5px var(--lime);
}

.mi-side__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(19px, 2.4vw, 26px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--white);
  overflow-wrap: break-word;
  hyphens: auto;
}

.mi-side__pos {
  margin: 0;
  font-size: 13px;
  color: var(--mist);
}

.mi-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.mi-mid__label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--lime);
}

.mi-mid__score {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 700;
  line-height: 1;
  color: var(--white);
}

.mi-mid__xg {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--mist);
}

.mi-mid__xg .info-btn {
  width: 32px;
  height: 32px;
  color: var(--mist);
}

.mi-info {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.mi-info__tip {
  display: block;
  max-width: 280px;
  margin: 4px 0 0;
  text-align: left;
}

.mi-card .mi-info__tip {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.mi-info__tip[hidden] { display: none; }

.mi-view {
  margin: 0;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.5;
  color: var(--white);
}

.mi-view strong {
  color: var(--lime);
}

.mi-bar .mx-view-bar__track {
  height: 10px;
}

.mi-nums {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.mi-num {
  padding: 12px 14px;
  background: #23262C;
  min-width: 0;
}

.mi-num__label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--mist);
}

.mi-num__value {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  overflow-wrap: anywhere;
}

.mi-num:last-child .mi-num__value {
  font-size: 16px;
  line-height: 1.35;
}

.mi-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.mi-card__data {
  margin: 0;
  font-size: 13px;
  color: var(--mist);
}

.mi-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mi-card__actions .btn {
  width: auto;
  height: 46px;
  padding: 0 20px;
}

.mi-watch {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.mi-watch:hover,
.mi-watch[aria-pressed="true"] {
  background: transparent;
  border-color: var(--lime);
  color: var(--lime);
}

/* ---- Tabs ---- */
.mi-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: var(--white);
}

.mi-tabs[hidden] { display: none; }

.mi-tab {
  flex: 1 1 auto;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: none;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
}

.mi-tab:hover {
  background: var(--ice);
  color: var(--ink);
}

.mi-tab[aria-selected="true"] {
  background: var(--ink);
  color: var(--white);
}

/* ---- Panels ---- */
.mi-panel {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.mi-panel:focus { outline: none; }

.mi-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mi-section--tight { gap: 10px; }

.mi-section__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.mi-section__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
}

.mi-section--tight .mi-section__title { font-size: 17px; }

.mi-section__sub {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.mi-box {
  padding: 16px 18px;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: var(--white);
  min-width: 0;
}

.mi-box--text {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
}

.mi-box__title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}

.mi-box__empty {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-secondary);
}

.mi-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mi-more {
  align-self: flex-start;
  margin-top: 8px;
  font-size: 14px;
}

.mi-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

/* Lists that show "more" rows only when opened (match page only;
   the builder's review list has its own .is-more rule) */
.mi .is-more { display: none; }
.mi .mi-facts.is-open .is-more,
.mi .mi-results.is-open .is-more { display: flex; }

/* Key facts */
.mi-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: var(--white);
}

.mi-fact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 18px;
}

.mi-fact + .mi-fact { border-top: 1px solid var(--border-subtle); }

.mi-fact__team {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
}

.mi-fact__text {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}

/* Form */
.mi-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 6px;
}

.mi-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.mi-chip--sm { width: 24px; height: 24px; font-size: 11.5px; flex: none; }
.mi-chip--w { background: var(--lime); color: var(--ink); }
.mi-chip--d { background: var(--mist); color: var(--ink); }
.mi-chip--l { background: var(--ink); color: var(--white); }

.mi-results {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mi-result {
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.mi-result__opp { flex: 1; min-width: 0; color: var(--text-secondary); }
.mi-result__score { font-weight: 700; color: var(--ink); }

.mi-h2h {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: var(--white);
}

.mi-h2h__row {
  padding: 12px 18px;
  font-size: 15px;
}

.mi-h2h__row + .mi-h2h__row { border-top: 1px solid var(--border-subtle); }

/* Predictions and scores */
.mi-probs {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: var(--white);
}

.mi-prob {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 56px auto;
  align-items: center;
  gap: 8px 14px;
  padding: 10px 18px;
}

.mi-prob__label {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.mi-prob__bar {
  height: 8px;
  border-radius: 999px;
  background: var(--ice);
  overflow: hidden;
}

.mi-prob__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--ink);
}

.mi-prob__value {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  text-align: right;
  color: var(--ink);
}

.mi-probs--outcomes .mi-prob {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 56px 112px;
}

.mi-probs--outcomes .mi-outcome {
  justify-self: start;
}

.mi-prob.is-final {
  background: rgba(199, 255, 47, 0.18);
}

.mi-outcome {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.mi-outcome.is-yes { background: var(--lime); color: var(--ink); }
.mi-outcome.is-no { background: var(--ice); color: var(--slate); }

/* Stats */
.mi-stats__teams {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.mi-stats {
  list-style: none;
  margin: 0;
  padding: 8px 18px;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: var(--white);
}

.mi-stat {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.mi-stat__value {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.mi-stat__value--away { text-align: right; }

.mi-stat__mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.mi-stat__label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
}

.mi-stat__bars {
  display: flex;
  width: 100%;
  height: 8px;
  gap: 3px;
}

.mi-stat__bar { display: block; height: 100%; border-radius: 999px; }
.mi-stat__bar--home { background: var(--ink); }
.mi-stat__bar--away { background: var(--lime); box-shadow: inset 0 0 0 1px rgba(16, 17, 20, 0.15); }

/* Players */
.mi-news {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mi-news__row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mi-news__role { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.mi-news__meta { font-size: 13px; color: var(--text-muted); }

.mi-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.mi-table th,
.mi-table td {
  padding: 7px 4px;
  text-align: right;
  border-bottom: 1px solid var(--border-subtle);
}

.mi-table th[scope="row"],
.mi-table thead th:first-child {
  text-align: left;
  font-weight: 600;
}

.mi-table thead th {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
}

.mi .mi-table tr.is-more { display: none; }
.mi .mi-table.is-open tr.is-more { display: table-row; }

.mi-facts-list {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  background: var(--border-subtle);
}

.mi-facts-list > div {
  padding: 12px 18px;
  background: var(--white);
}

.mi-facts-list dt { font-size: 13px; font-weight: 700; color: var(--text-muted); }
.mi-facts-list dd { margin: 3px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--ink); }

/* Ask Slipio (match page, before v0.21.0) */
.mi-ask {
  padding: 18px 20px;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: var(--white);
}

.mi-ask__btn { width: auto; height: 46px; padding: 0 22px; }
.mi-ask__btn[hidden] { display: none; }

.mi-ask__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.mi-ask__head .mi-box__title { margin: 0; }
.mi-ask__head .mi-box__title:focus { outline: none; }

.mi-ask__out p:not(.mi-note) {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}

/* Loading */
.mi-skeleton {
  height: 220px;
  border-radius: 16px;
  background: linear-gradient(90deg, var(--ice) 0%, #F4F7F9 50%, var(--ice) 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}

.mi-skeleton--card { height: 300px; background-color: var(--ice); }

/* ---- Tablet and phone ---- */
@media (max-width: 899.98px) {
  .mi-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 639.98px) {
  .mi-card { padding: 18px; }
  .mi-teams {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "home away" "mid mid";
    gap: 14px 10px;
  }
  .mi-side--home { grid-area: home; }
  .mi-side--away { grid-area: away; }
  .mi-mid { grid-area: mid; }
  .mi-side .club-badge { width: 42px; height: 42px; font-size: 14px; }
  .mi-side__name { font-size: 17px; }
  .mi-two { grid-template-columns: minmax(0, 1fr); }
  .mi-card__actions { width: 100%; }
  .mi-card__actions .btn { flex: 1 1 100%; }
  .mi-tab { flex: 1 1 30%; padding: 0 8px; font-size: 14px; }
  .mi-prob,
  .mi-probs--outcomes .mi-prob {
    grid-template-columns: minmax(0, 1fr) 52px;
    padding: 10px 14px;
  }
  .mi-prob__bar { grid-column: 1 / -1; grid-row: 2; }
  .mi-prob .mi-outcome { grid-column: 1 / -1; justify-self: start; }
  .mi-stats { padding: 6px 12px; }
  .mi-stat { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 8px; }
}

/* ============================================================
   Leagues (v0.16.0)  /leagues/
   Brief: Slipio_Leagues_UX_UI_Brief_v0.16.0.md. Search, Your leagues
   and the top 5 as badge tiles, then region tabs (reuses .mi-tabs /
   .mi-tab from Match Intelligence; they wrap on phones) and Cups.
   Rows: badge, name, country, "matches this week", Follow star.
   Reuses .mx-head, .mx-count, .mx-empty, .field-input,
   .tag-illustrative. No nested scrolling.
   ============================================================ */

.lg {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lg-search {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.lg-search .field-input {
  flex: 1 1 320px;
  max-width: 480px;
}

.lg-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.lg-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lg-section__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}

.lg-help {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-muted);
}

.lg-help--tab {
  margin-bottom: 4px;
}

/* ---- Badge (placeholder text until licensed artwork) ---- */
.lg-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--graphite);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.lg-badge.is-uefa {
  background: var(--violet);
}

.lg-badge--lg {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  font-size: 17px;
}

/* ---- Tiles ---- */
.lg-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Same tile width everywhere: five to a row. */
.lg-tiles .lg-tile {
  flex: 0 0 calc((100% - 48px) / 5);
}

.lg-tiles--featured {
  justify-content: center;
}

.lg-tile {
  position: relative;
  min-width: 0;
}

.lg-tile__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  padding: 18px 12px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: var(--white);
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.lg-tile__link:hover {
  border-color: var(--ink);
}

.lg-tile__link:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}

.lg-tile__link .lg-badge {
  margin-bottom: 8px;
}

.lg-tile__name {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: break-word;
  max-width: 100%;
}

.lg-tile__meta {
  font-size: 13px;
  color: var(--text-muted);
}

.lg-tile.is-followed .lg-tile__link {
  border-color: var(--ink);
}

.lg-tile__following {
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--lime-ink-text);
  font-size: 11px;
  font-weight: 700;
  pointer-events: none;
}

/* ---- Tabs and panel ---- */
.lg-browse {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lg-panel {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.lg-panel:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 4px;
}

/* ---- Countries and rows ---- */
.lg-countries {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 24px;
  align-items: start;
}

.lg-country {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.lg-country__name {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.lg-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: var(--white);
  overflow: hidden;
}

.lg-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 8px 10px 14px;
}

.lg-row + .lg-row {
  border-top: 1px solid var(--border-subtle);
}

.lg-row:hover {
  background: var(--ice);
}

.lg-row__link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

/* The whole row is the link; the star sits above it. */
.lg-row__link::after {
  content: '';
  position: absolute;
  inset: 0;
}

.lg-row__link:focus-visible {
  outline: none;
}

.lg-row__link:focus-visible::after {
  outline: 2px solid var(--violet);
  outline-offset: -2px;
  border-radius: 14px;
}

.lg-row__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.lg-row__name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: break-word;
}

.lg-row__tier {
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--ice);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
}

.lg-row__country {
  font-size: 13.5px;
  color: var(--text-muted);
}

.lg-row__count {
  flex: none;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}

.lg-row__count.is-none {
  font-weight: 500;
  color: var(--text-muted);
}

.lg-star {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--steel);
  cursor: pointer;
}

.lg-star svg {
  fill: none;
}

.lg-star:hover {
  color: var(--ink);
  background: var(--white);
}

.lg-star[aria-pressed="true"] {
  color: var(--ink);
}

.lg-star[aria-pressed="true"] svg {
  fill: var(--lime);
}

.lg-star:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: -2px;
}

/* ---- Cups ---- */
.lg-list--narrow {
  width: 100%;
  max-width: 640px;
  align-self: center;
}

.lg-all {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: -8px;
}

/* ---- Your leagues: compact chips (v0.16.1) ---- */
.lg-mine {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lg-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--ink);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
}

.lg-chip:hover {
  background: var(--ice);
}

.lg-chip:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}

.lg-chip__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.lg-chip__name {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.25;
}

.lg-chip__meta {
  font-size: 12.5px;
  color: var(--text-muted);
}

.lg-badge--sm {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 11px;
}

/* ---- Match filter (v0.16.1) ---- */
.lg-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 24px;
}

.lg-filter__period {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.lg-filter__legend {
  float: left;
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.lg-filter .option-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lg-filter .option-pill {
  min-height: 40px;
  padding: 6px 12px;
}

.lg-filter__active {
  position: relative; /* keeps the visually hidden checkbox inside the label */
  min-height: 40px;
}

.lg-empty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.lg-empty__actions .btn {
  width: auto;
  padding: 0 18px;
}

.lg-cups__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.lg-cups__head .lg-section__title {
  font-size: 17px;
}

.lg-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lg-subtab {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: var(--white);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
}

.lg-subtab:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.lg-subtab[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.lg-subtab:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}

/* ---- Search results ---- */
.lg-results .lg-list {
  max-width: 760px;
}

/* ---- Tablet and phone ---- */
@media (max-width: 1100px) {
  .lg-countries {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .lg-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lg-tabs .mi-tab {
    padding: 6px 10px;
    line-height: 1.25;
  }
  .lg-tabs.is-odd .mi-tab:last-child {
    grid-column: 1 / -1;
  }
  .lg-tiles {
    gap: 10px 8px;
  }
  .lg-tiles .lg-tile {
    flex-basis: calc((100% - 16px) / 3);
  }
  .lg-tile__link {
    padding: 14px 6px 12px;
  }
  .lg-badge--lg {
    width: 56px;
    height: 56px;
    font-size: 14px;
  }
  .lg-tile__name {
    font-size: 14px;
  }
  .lg-tile__meta {
    font-size: 12px;
  }
  .lg-tile__following {
    font-size: 10.5px;
    padding: 1px 6px;
  }
  .lg-row {
    flex-wrap: wrap;
    padding-left: 12px;
  }
  .lg-row__link {
    flex-basis: calc(100% - 56px);
  }
  .lg-row__count {
    order: 3;
    flex-basis: 100%;
    padding-left: 52px;
    margin-top: -6px;
    text-align: left;
  }
  .lg-row__count.is-none {
    display: block;
  }
}

/* ============================================================
   League Intelligence (v0.16.2)  /leagues/
   Brief: Slipio_Leagues_UX_UI_Brief_v0.16.2.md, section 12.
   Centred header and search; the filter tab (ink, lime cog) fixed to
   the right edge of the screen (moved from the left in v0.18.0, Jaymes) and
   its drawer, which slides out over the page. Featured sections are
   centred. The drawer is short enough not to scroll; on very short
   landscape screens it scrolls inside itself rather than being cut
   off.
   ============================================================ */

.lg-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.lg-hero__title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.lg-hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.lg-hero__sub {
  margin: 0;
  max-width: 560px;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.lg-hero .lg-search {
  justify-content: center;
  width: 100%;
  margin-top: 6px;
}

.lg-hero .lg-search .field-input {
  flex: 0 1 560px;
  max-width: 560px;
}

.lg-status {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px 8px;
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

.lg-status__change {
  font-size: 13.5px;
}

.lg-search-count:empty {
  display: none;
}

/* ---- Centred featured sections ---- */
.lg-featured {
  align-items: center;
  text-align: center;
}

.lg-featured .lg-tiles {
  width: 100%;
}

.lg-help--tab {
  text-align: center;
}

.lg-list--narrow {
  text-align: left;
}

.lg-tile__count {
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}

.lg-tile__count.is-none {
  font-weight: 500;
  color: var(--text-muted);
}

/* ---- Filter tab (cog) ---- */
.lg-cog {
  position: fixed;
  top: 34vh;
  right: 0;
  z-index: 36;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 14px 0 0 14px;
  background: var(--ink);
  color: var(--lime);
  box-shadow: 0 6px 18px rgba(16, 17, 20, 0.18);
  cursor: pointer;
  transition: right 0.2s var(--ease), background 0.15s var(--ease);
}

.lg-cog:hover {
  background: var(--graphite);
}

.lg-cog svg {
  transition: transform 0.3s var(--ease);
}

.lg-cog:hover svg,
.lg-cog[aria-expanded="true"] svg {
  transform: rotate(60deg);
}

.lg-cog:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}

/* With the drawer open, the tab rides on its edge. */
.lg-cog[aria-expanded="true"] {
  right: min(320px, 100vw - 56px);
}

.lg-cog[aria-expanded="true"][aria-controls="tlDrawer"] {
  right: min(340px, 100vw - 56px);
}

.lg-cog__dot {
  position: absolute;
  top: 9px;
  right: 8px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--lime);
}

.lg-cog__dot[hidden] {
  display: none;
}

/* ---- Drawer ---- */
.lg-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: 37;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: min(320px, 100vw - 56px);
  padding: 22px 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--white);
  border-left: 1px solid var(--border-subtle);
  box-shadow: -12px 0 32px rgba(16, 17, 20, 0.14);
  transform: translateX(12px);
  opacity: 0;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.lg-drawer[hidden] {
  display: none;
}

.lg-drawer.is-open {
  transform: none;
  opacity: 1;
}

.lg-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lg-drawer__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

.lg-drawer__title:focus {
  outline: none;
}

.lg-drawer__title:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}

.lg-drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.lg-drawer__close:hover {
  background: var(--ice);
}

.lg-drawer__close:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}

.lg-drawer__group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.lg-drawer__legend {
  margin: 0 0 10px;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}

.lg-drawer__pills {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lg-drawer__check {
  position: relative; /* keeps the visually hidden checkbox inside the label */
  min-height: 44px;
}

.lg-drawer__reset {
  align-self: flex-start;
}

.lg-drawer__reset[hidden] {
  display: none;
}

@media (max-width: 760px) {
  .lg-cog {
    top: auto;
    bottom: calc(96px + var(--rp-bar-h, 0px) + env(safe-area-inset-bottom, 0px));
    width: 40px;
    height: 48px;
  }
  .lg-drawer {
    top: 0;
    padding-top: 18px;
  }
}

/* ============================================================
   Team Intelligence (v0.17.0)  /team/?team=<id>  and  /teams/
   Brief: Slipio_Teams_UX_UI_Brief_v0.17.0.md. The team page reuses
   Match Intelligence (.mi-*): key card, tabs, sections, boxes,
   chips, tables. The list reuses League Intelligence (.lg-hero,
   .lg-row, .lg-star, the cog and drawer). Team-only parts: .tm-*,
   list-only parts: .tl-*. No sideways scrolling: the Table view only
   exists on screens 1100px and wider.
   ============================================================ */

.mi-side__link {
  color: inherit;
  text-decoration: none;
}

.mi-side__link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tm-crest {
  flex: none;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

/* ---- Key card ---- */
.tm-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 18px;
}

.tm-head__badge.club-badge,
.tm-head__badge.tm-crest {
  width: 64px;
  height: 64px;
  font-size: 20px;
}

.tm-head__badge.tm-crest {
  padding: 6px;
  border-radius: 16px;
  background: var(--white);
}

.tm-head__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  flex: 1 1 260px;
  min-width: 0;
}

.tm-head__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600;
  line-height: 1.15;
  color: var(--white);
  overflow-wrap: break-word;
}

.tm-head__sub {
  margin: 0;
  font-size: 15px;
  color: var(--mist);
}

.tm-head__form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.tm-head__form-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--mist);
}

.tm-yours {
  display: inline-flex;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--lime-ink-text);
  font-size: 12px;
  font-weight: 700;
}

.tm-yours--light {
  padding: 1px 8px;
  font-size: 11px;
}

/* ---- What Matters, tiles ---- */
.tm-matters {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  background: var(--border-subtle);
}

.tm-matters__item {
  position: relative;
  padding: 13px 18px 13px 36px;
  background: var(--white);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}

.tm-matters__item::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 21px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 1.5px var(--ink);
}

.tm-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.tm-tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tm-tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.tm-tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: var(--white);
}

.tm-tile dd { margin: 0; }

.tm-tile__label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 4px;
  min-width: 0;
  overflow-wrap: break-word;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
}

.tm-tile__value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--ink);
}

.tm-tile__note {
  font-size: 13px;
  color: var(--text-muted);
}

.tm-tile.is-down .tm-tile__note { color: var(--error, #C5221F); font-weight: 700; }
.tm-tile.is-up .tm-tile__note { color: #1E7B34; font-weight: 700; }

.tm-tiles--small .tm-tile { padding: 10px 12px; background: var(--ice); border-color: transparent; }
.tm-tiles--small .tm-tile__value { font-size: 19px; }

.tm-lines {
  margin: 0;
  padding: 0 0 0 18px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink);
}

.tm-coverage {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--ice);
  font-size: 14.5px;
}

.tm-small {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.tm-small--strong {
  color: var(--ink);
  font-weight: 600;
}

/* ---- How They Play (bars against the league) ---- */
.tm-key {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
}

.tm-key span::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 3px;
  vertical-align: -1px;
}

.tm-key__better::before { background: var(--ink); }
.tm-key__worse::before { background: var(--mist); }

.tm-dna,
.tm-shapes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 28px;
  margin: 0;
  padding: 18px;
  list-style: none;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: var(--white);
}

.tm-shapes { grid-template-columns: minmax(0, 1fr); }

.tm-dna__row,
.tm-shape {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.tm-dna__top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14.5px;
}

.tm-dna__label { font-weight: 600; color: var(--ink); }
.tm-dna__value { font-weight: 700; color: var(--ink); }

.tm-dna__bar {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: var(--ice);
}

.tm-dna__fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
}

.tm-dna__fill.is-good { background: var(--ink); }
.tm-dna__fill.is-bad { background: var(--mist); }

.tm-dna__avg {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 2px;
  margin-left: -1px;
  background: var(--lime);
  box-shadow: 0 0 0 1px var(--ink);
}

.tm-dna__sub {
  font-size: 12.5px;
  color: var(--text-muted);
}

.tm-switch {
  position: relative;
  align-self: flex-start;
  min-height: 40px;
}

.tm-adjusted {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tm-adjusted[hidden] { display: none; }

.tm-table .is-num { text-align: right; }
.tm-table th[scope="row"] { text-align: left; }

.tm-caption {
  caption-side: top;
  padding: 10px 0 6px;
  text-align: left;
  font-size: 13px;
  color: var(--text-muted);
}

.tm-box__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.tm-trend {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--ice);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}

.tm-hist {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.tm-hist__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 0;
  text-align: center;
}

.tm-hist__track {
  display: flex;
  align-items: flex-end;
  width: 100%;
  height: 64px;
}

.tm-hist__bar {
  width: 100%;
  border-radius: 6px 6px 2px 2px;
  background: var(--violet);
}

.tm-hist__label { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.tm-hist__count { font-size: 12px; color: var(--text-muted); }

/* ---- Matches ---- */
.tm-fixtures {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: var(--white);
  overflow: hidden;
}

.tm-fixture {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 6px 16px;
  min-height: 56px;
  padding: 10px 16px;
}

.tm-fixture + .tm-fixture { border-top: 1px solid var(--border-subtle); }

.tm-fixture__when { font-size: 13.5px; color: var(--text-muted); }

.tm-fixture__teams {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: break-word;
  min-width: 0;
}

a.tm-fixture__teams:hover { text-decoration: underline; text-underline-offset: 3px; }

.tm-fixture__comp { font-size: 13px; color: var(--text-muted); }
.tm-fixture__build { font-size: 14px; white-space: nowrap; }

/* ---- Team Intelligence list ---- */
.tl-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.tl-count { margin: 0; font-weight: 700; }

.tl-bar__controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.tl-sort {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tl-sort__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.tl-sort__select {
  width: auto;
  min-width: 200px;
  height: 44px;
  padding: 0 12px;
}

.tl-dir {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  background: var(--white);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.tl-dir:hover { border-color: var(--ink); }
.tl-dir:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

.tl-view[hidden] { display: none; }

.tl-content {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.tl-section__head {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tl-listwrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.tl-list { width: 100%; }

.tl-more { width: auto; padding: 0 22px; }

.tl-badge,
.tl-crest {
  width: 40px;
  height: 40px;
  font-size: 13px;
}

.tl-row__info {
  display: grid;
  grid-template-columns: 96px auto 190px;
  align-items: center;
  gap: 4px 16px;
  flex: none;
}

.tl-row__pos {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.tl-row__stats {
  font-size: 13.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

.tl-chips { position: relative; z-index: 1; }

.lg-row.is-yours { background: #F6FFE0; }

/* Your Team card */
.tl-yours {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 18px;
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--graphite);
  color: var(--white);
  text-decoration: none;
}

.tl-yours:hover { background: var(--ink); }
.tl-yours:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

.tl-yours .tl-badge,
.tl-yours .tl-crest {
  width: 52px;
  height: 52px;
}

.tl-yours .tl-crest {
  padding: 5px;
  border-radius: 14px;
  background: var(--white);
}

.tl-yours__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 240px;
  min-width: 0;
}

.tl-yours__eyebrow { font-size: 12.5px; font-weight: 700; color: var(--lime); }
.tl-yours__name { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.tl-yours__meta { font-size: 14px; color: var(--mist); }

.tl-yours__right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.tl-yours__cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--lime);
  color: var(--lime-ink-text);
  font-size: 14.5px;
  font-weight: 700;
}

/* Table view (1100px and wider only) */
.tl-tablewrap {
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: var(--white);
  overflow: hidden;
}

.tl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.tl-table th,
.tl-table td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
  white-space: nowrap;
}

.tl-table thead th {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--white);
}

.tl-table .is-num { text-align: right; }

.tl-table tbody tr:hover { background: var(--ice); }
.tl-table tr.is-yours { background: #F6FFE0; }

.tl-table__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.tl-table__link .tl-badge,
.tl-table__link .tl-crest { width: 28px; height: 28px; font-size: 10.5px; }
.tl-table__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.tl-table__league { color: var(--text-muted); }
.tl-table th.tl-table__team { white-space: normal; min-width: 170px; }

@media (max-width: 1400px) {
  .tl-table th:nth-child(2),
  .tl-table td.tl-table__league { display: none; }
  .tl-table { font-size: 13.5px; }
}

.tl-th {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.tl-th:hover { color: var(--ink); }
.tl-th:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.tl-th__arrow { color: var(--ink); }

/* Drawer filters */
.tl-drawer { width: min(340px, 100vw - 56px); }

.tl-filters {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.tl-group { gap: 4px; }

.tl-check {
  position: relative;
  min-height: 36px;
}

.tl-check__text {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  color: var(--ink);
}

.tl-check__count { color: var(--text-muted); }

.tl-more-filters {
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
}

.tl-more-filters__summary {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.tl-more-filters[open] .tl-more-filters__summary { margin-bottom: 6px; }

.tl-small { margin: 0 0 8px; font-size: 13px; color: var(--text-muted); }

.tl-num {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
}

.tl-num .field-input { height: 42px; }

/* Squad boxes keep their own height. */
.tm .mi-two { align-items: start; }

/* ---- Tablet and phone ---- */
@media (max-width: 1100px) {
  .tl-row__info { grid-template-columns: 96px auto; }
  .tl-row__stats { display: none; }
}

@media (max-width: 400px) {
  .tl-row__info { padding-left: 0; }
  .tm-tiles--small { gap: 6px; }
  .tm-tiles--small .tm-tile { padding: 8px; }
  .tm-tiles--small .tm-tile__label { font-size: 11px; }
}

@media (max-width: 760px) {
  .tm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tm-tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tm-tiles--small .tm-tile__value { font-size: 17px; }
  .tm-dna { grid-template-columns: minmax(0, 1fr); }
  .tm-head__badge.club-badge,
  .tm-head__badge.tm-crest { width: 52px; height: 52px; }
  .tm-fixture {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 12px 14px;
  }
  .tm-fixture__when { grid-column: 1 / -1; }
  .tm-fixture__comp { grid-column: 1; }
  .tm-col--wide { display: none; }
  .tl-row__info {
    order: 3;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    flex-basis: 100%;
    gap: 6px 12px;
    padding-left: 52px;
    margin-top: -4px;
  }
  .tl-row .mi-chips { flex-wrap: nowrap; }
  .tl-sort__select { min-width: 0; }
  .tl-bar__controls { width: 100%; }
  .tl-sort { flex: 1 1 auto; }
  .tl-sort__select { flex: 1 1 auto; }
}

/* ============================================================
   Player Intelligence (v0.18.0)  /players/  and  /player/?player=<id>
   Brief: Slipio_Players_UX_UI_Brief_v0.18.0.md. Reuses Team
   Intelligence (.tl-*, .tm-*), Match Intelligence (.mi-*) and League
   Intelligence (.lg-*). Player-only parts: .pl-*. Players are shown
   by role with a person placeholder instead of a photo.
   ============================================================ */

.pl-positions {
  justify-content: center;
}

.pl-avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ice);
  color: var(--slate);
}

.pl-avatar svg {
  width: 26px;
  height: 26px;
}

.pl-avatar__pos {
  position: absolute;
  right: -4px;
  bottom: -3px;
  padding: 0 4px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  line-height: 15px;
}

.pl-avatar--sm { width: 28px; height: 28px; }
.pl-avatar--sm svg { width: 18px; height: 18px; }
.pl-avatar--sm .pl-avatar__pos { display: none; }

.pl-avatar--lg {
  width: 72px;
  height: 72px;
  background: var(--slate);
  color: var(--mist);
}

.pl-avatar--lg svg { width: 46px; height: 46px; }

.pl-avatar--lg .pl-avatar__pos {
  right: -2px;
  bottom: 0;
  padding: 0 6px;
  background: var(--lime);
  color: var(--lime-ink-text);
  font-size: 11px;
  line-height: 19px;
}

.pl-row__info { grid-template-columns: 70px 260px; }

.pl-row__key {
  font-size: 13.5px;
  color: var(--text-muted);
  white-space: nowrap;
}

.pl-table__club { color: var(--ink); }
.tl-more--table { align-self: center; }
.tl-sort { min-width: 0; }

/* Key card */
.pl-club__link {
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pl-club__link:hover { color: var(--lime); }

.pl-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.pl-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
}

.pl-status--ok { background: #DDF7D9; color: #14532D; }
.pl-status--warn { background: #FFF1C2; color: #6B4E00; }
.pl-status--out { background: #FDE2E1; color: #8A1C1A; }
.pl-status--plain { background: rgba(255, 255, 255, 0.12); color: var(--white); }

.tm-player-link {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--mist);
  text-underline-offset: 3px;
}

.tm-player-link:hover { text-decoration-color: var(--ink); }

.pl-tiles--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* Form */
.pl-log td,
.pl-log th { vertical-align: middle; }
.pl-log__opp,
.pl-log thead th:nth-child(2) { text-align: left !important; }
.pl-log__venue { color: var(--text-muted); font-size: 13px; }
.pl-log__score { font-size: 13px; color: var(--text-muted); }
.pl-log__dnp th,
.pl-log__dnp td { color: var(--text-muted); }
.pl-log__none { font-style: italic; }

/* Impact */
.pl-impact { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.pl-cover--well-covered { background: #DDF7D9; color: #14532D; }
.pl-cover--some-cover { background: #FFF1C2; color: #6B4E00; }
.pl-cover--no-cover { background: #FDE2E1; color: #8A1C1A; }

/* Next match */
.pl-next {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pl-next__when { margin: 0; font-size: 14px; color: var(--text-muted); }

.pl-next__teams {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.pl-next__teams:hover { text-decoration: underline; text-underline-offset: 4px; }

.pl-next__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.pl-next__actions .btn,
.pl-whatif__btn {
  width: auto;
  height: 46px;
  padding: 0 20px;
}

.pl-whatif {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.pl-whatif__note { margin: 0; }

.pl-whatif__btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 1100px) {
  .pl-row__info { grid-template-columns: 70px auto; }
}

@media (max-width: 400px) {
  .pl-log .pl-col--result { display: none; }
  .pl-log th, .pl-log td { padding-left: 2px; padding-right: 2px; font-size: 13px; }
}

@media (max-width: 760px) {
  .pl-tiles--5,
  .pl .tm-tiles--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pl-impact { grid-template-columns: minmax(0, 1fr); }
  .pl-avatar--lg { width: 58px; height: 58px; }
  .pl-row__key { white-space: normal; }
  .pl-next__actions .btn { flex: 1 1 100%; }
  .pl-log .pl-log__score { display: none; }
}


/* ============================================================
   Footer and responsible-play reminder (v0.19.0), every signed-in
   page (added by app-shell.js). The reminder is charcoal, pinned to
   the bottom of the screen, closable; --rp-bar-h (its height while
   showing) lifts sticky bars above it and pads the page so nothing
   is ever hidden behind it.
   ============================================================ */

.app-footer {
  margin-top: 48px;
  padding: 26px 0 calc(28px + var(--rp-bar-h, 0px));
  border-top: 1px solid var(--border-subtle);
}

.app-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: var(--content-max, 1200px);
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 40px);
}

.app-footer__line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.app-footer__age,
.rp-bar__age {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  min-width: 34px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.app-footer__links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-footer__links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.app-footer__links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.app-footer__links a:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}

.app-footer__copy {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-muted);
}

.rp-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 34;
  display: flex;
  align-items: center;
  gap: 10px 20px;
  padding: 12px clamp(16px, 3vw, 28px) calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--graphite);
  color: var(--white);
  box-shadow: 0 -8px 24px rgba(16, 17, 20, 0.18);
}

.rp-bar[hidden] { display: none; }

.rp-bar__text {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.rp-bar__age { color: var(--lime); }

.rp-bar__links {
  display: flex;
  flex: none;
  gap: 16px;
}

.rp-bar__links a {
  font-size: 14px;
  font-weight: 700;
  color: var(--lime);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.rp-bar__links a:focus-visible,
.rp-bar__close:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 2px;
}

.rp-bar__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.rp-bar__close:hover { border-color: var(--lime); color: var(--lime); }
.rp-bar__close .app-icon { width: 18px; height: 18px; }

@media (min-width: 768px) {
  /* The bar starts beside the sidebar, not under it. */
  .rp-bar { left: var(--sidebar-w, 248px); }
  .app-shell.is-rail ~ .rp-bar { left: var(--rail-w, 76px); }
}

@media (max-width: 767.98px) {
  .rp-bar {
    flex-wrap: wrap;
    align-items: flex-start;
    padding-right: 60px;
  }
  .rp-bar__text { font-size: 13px; align-items: flex-start; }
  .rp-bar__links { padding-left: 46px; }
  .rp-bar__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 36px;
    height: 36px;
  }
}

/* ============================================================
   Account (v0.19.0)  /account/?section=<id>
   Brief: Slipio_Account_UX_UI_Brief_v0.19.0.md. Header, a section
   menu (left column on desktop, wrapping pills on phones) and one
   section at a time made of cards (.ac-card). Reuses .btn,
   .field-input, .field-label, .checkbox-field, .option-pill,
   .mx-view, .tag-illustrative, .wizard-error. Section headings in
   title case.
   ============================================================ */

.ac {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.ac-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.ac-top__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 600;
  color: var(--ink);
}

.ac-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px 18px;
  padding: 20px 22px;
  border-radius: 20px;
  background: var(--graphite);
  color: var(--white);
}

.ac-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--lime-ink-text);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
}

.ac-header__text { flex: 1 1 200px; min-width: 0; }
.ac-header__name { margin: 0; font-family: var(--font-display); font-size: 21px; font-weight: 600; }
.ac-header__email { margin: 2px 0 0; font-size: 14px; color: var(--mist); overflow-wrap: anywhere; }

.ac-header__right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.ac-plan-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--lime-ink-text);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
}

.ac-plan-chip.is-trial {
  background: transparent;
  border: 1.5px solid var(--lime);
  color: var(--lime);
}

.ac-plan-chip:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }

.ac-signout {
  width: auto;
  height: 40px;
  padding: 0 16px;
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.3);
}

.ac-signout:hover { border-color: var(--lime); color: var(--lime); background: transparent; }

/* ---- Layout ---- */
.ac-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.ac-menu {
  position: sticky;
  top: 20px;
}

.ac-menu__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: var(--white);
}

.ac-menu__link {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
}

.ac-menu__link:hover { background: var(--ice); color: var(--ink); }

.ac-menu__link[aria-current="page"] {
  background: var(--ink);
  color: var(--white);
}

.ac-menu__link:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

.ac-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.ac-section__head { display: flex; flex-direction: column; gap: 4px; }
.ac-section__title { margin: 0; font-family: var(--font-display); font-size: 24px; font-weight: 600; color: var(--ink); }
.ac-section__title:focus { outline: none; }
.ac-section__sub { margin: 0; font-size: 15px; color: var(--text-secondary); }

/* ---- Cards, rows, fields ---- */
.ac-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 22px;
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  background: var(--white);
  min-width: 0;
}

.ac-card__head { display: flex; flex-direction: column; gap: 3px; }
.ac-card__title { margin: 0; font-size: 17px; font-weight: 700; color: var(--ink); }
.ac-card__sub { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-muted); }

.ac-card--danger { border-color: #F2C3C1; }
.ac-card--danger .ac-card__title { color: #8A1C1A; }

.ac-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.ac-grid--1 { grid-template-columns: minmax(0, 1fr); max-width: 460px; }

.ac-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ac-field .field-input { height: 46px; }
.ac-help { margin: 0; font-size: 13px; line-height: 1.45; color: var(--text-muted); }

.ac-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.ac-row__value {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 0;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.ac-row__value.is-muted { font-weight: 500; color: var(--text-muted); }

.ac-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ac-actions .btn,
.ac-row .btn,
.ac-links .btn,
.ac-plan__actions .btn,
.ac-card > a.btn {
  width: auto;
  height: 44px;
  padding: 0 18px;
}

.ac-card > a.btn { align-self: flex-start; }

.ac-btn-small { height: 36px !important; padding: 0 12px !important; font-size: 14px; }

.ac-btn-ghost {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.ac-btn-ghost:hover { border-color: var(--lime); color: var(--lime); }

.ac-btn-danger {
  background: #B42318;
  border: 1.5px solid #B42318;
  color: var(--white);
}

.ac-btn-danger:hover { background: #8A1C1A; border-color: #8A1C1A; }
.ac-btn-danger:disabled { opacity: 0.45; cursor: not-allowed; }
.ac-btn-danger:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

.ac-note { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text-muted); }

.ac-note.is-info {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--ice);
  color: var(--ink);
}

.ac-note.is-secure {
  padding-left: 22px;
  position: relative;
}

.ac-note.is-secure::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 4px;
  width: 11px;
  height: 9px;
  border: 1.6px solid var(--text-muted);
  border-radius: 2px;
  margin-top: 4px;
}

.ac-note.is-secure::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 2px;
  width: 7px;
  height: 7px;
  border: 1.6px solid var(--text-muted);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
}

.ac-inline {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 460px;
}

.ac-inline[hidden] { display: none; }

.ac-check { position: relative; align-items: flex-start; min-height: 32px; }
.ac-check .checkbox-box { margin-top: 1px; }
.ac-check.is-disabled { opacity: 0.75; cursor: default; }
.ac-check__text { display: flex; flex-direction: column; gap: 2px; }
.ac-check__label { font-size: 15px; font-weight: 600; color: var(--ink); }
.ac-check__help { font-size: 13px; line-height: 1.45; color: var(--text-muted); }

.ac-link { align-self: flex-start; font-size: 14.5px; }

/* Following */
.ac-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ac-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  min-height: 36px;
  padding: 0 4px 0 14px;
  border-radius: 999px;
  background: var(--ice);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.ac-chip span { overflow-wrap: anywhere; }

.ac-chip__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--slate);
  cursor: pointer;
}

.ac-chip__remove:hover { background: var(--white); color: var(--ink); }
.ac-chip__remove:focus-visible { outline: 2px solid var(--violet); outline-offset: 1px; }

/* Matrices (notifications, marketing) */
.ac-matrix { width: 100%; border-collapse: collapse; }

.ac-matrix th,
.ac-matrix td {
  padding: 10px 6px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
  vertical-align: middle;
}

.ac-matrix tbody tr:last-child th,
.ac-matrix tbody tr:last-child td { border-bottom: 0; }

.ac-matrix thead th { font-size: 12.5px; font-weight: 700; color: var(--text-muted); }
.ac-matrix .is-c { text-align: center; width: 92px; }
.ac-matrix .is-c .checkbox-field { justify-content: center; min-height: 32px; }

.ac-matrix__label { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.ac-matrix__help { display: block; font-size: 13px; line-height: 1.4; color: var(--text-muted); }

.ac-always {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ice);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

/* ---- Plan & Billing ---- */
.ac-plan {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border-radius: 20px;
  background: var(--graphite);
  color: var(--white);
}

.ac-plan__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.ac-plan__tag { color: var(--mist); border-color: rgba(255, 255, 255, 0.35); }
.ac-plan__eyebrow { margin: 0; font-size: 13px; font-weight: 700; color: var(--lime); }
.ac-plan__name { margin: 2px 0 0; font-family: var(--font-display); font-size: 28px; font-weight: 600; }
.ac-plan__name:focus { outline: none; }
.ac-plan__status { margin: 0; font-size: 15px; line-height: 1.5; color: var(--mist); }
.ac-plan__pending { color: var(--lime); font-weight: 600; }

.ac-meter {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.ac-meter__label { margin: 0; font-size: 14.5px; color: var(--mist); }
.ac-meter__label strong { color: var(--white); }

.ac-meter__bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}

.ac-meter__fill { display: block; height: 100%; border-radius: 999px; background: var(--lime); }
.ac-meter__note { margin: 0; font-size: 13px; color: var(--mist); }

.ac-plan__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.ac-plans__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.ac-plans__head > div:first-child { display: flex; flex-direction: column; gap: 3px; flex: 1 1 280px; }

.ac-cycle { align-self: flex-start; }
.ac-cycle .mx-view__btn { padding: 0 14px; font-size: 14px; white-space: nowrap; }

.ac-plan-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ac-plancard {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px 16px;
  border: 1.5px solid var(--border-subtle);
  border-radius: 16px;
  background: var(--white);
  min-width: 0;
}

.ac-plancard.is-popular { border-color: var(--ink); box-shadow: 0 10px 24px -14px rgba(16, 17, 20, 0.4); }
.ac-plancard.is-current { background: #F6FFE0; border-color: var(--lime); }

.ac-plancard__badge {
  position: absolute;
  top: -11px;
  left: 14px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--lime);
  font-size: 11.5px;
  font-weight: 700;
}

.ac-plancard__name { margin: 0; font-size: 17px; font-weight: 700; color: var(--ink); }
.ac-plancard__price { margin: 0; font-size: 14px; color: var(--text-muted); }
.ac-plancard__price strong { font-family: var(--font-display); font-size: 28px; font-weight: 600; color: var(--ink); }
.ac-plancard__save { margin: 0; font-size: 12.5px; font-weight: 600; color: #1E7B34; }
.ac-plancard__sets { flex: 1 1 auto; margin: 4px 0 8px; font-size: 14px; font-weight: 600; color: var(--ink); }

.ac-plancard .btn { width: 100%; height: 44px; padding: 0 10px; }

.ac-plancard__current,
.ac-plancard__muted {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
}

.ac-plancard__current { background: var(--lime); color: var(--lime-ink-text); }
.ac-plancard__muted { background: var(--ice); color: var(--text-muted); }

.ac-features__title { margin: 4px 0 0; font-size: 14px; font-weight: 700; color: var(--ink); }

.ac-features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 6px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ac-features li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--ink);
}

.ac-features li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 4px;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(-45deg);
}

.ac-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  background: var(--white);
  color: var(--ink);
}

.ac-plan .ac-panel { margin-top: 4px; }
.ac-panel__title { margin: 0; font-size: 17px; font-weight: 700; }
.ac-panel__title:focus { outline: none; }

.ac-panel__lines {
  margin: 0;
  padding-left: 20px;
  font-size: 14.5px;
  line-height: 1.6;
}

.ac-sizes { gap: 8px; }

.ac-cardline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
}

.ac-cardline__brand {
  padding: 3px 9px;
  border-radius: 6px;
  background: #1A1F71;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.ac-stripe {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 10px;
}

.ac-stripe__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ac-stripe__label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }

.ac-stripe__box {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 12px;
  border: 1.5px dashed var(--mist);
  border-radius: 10px;
  background: var(--ice);
  font-size: 14px;
  color: var(--text-muted);
  overflow: hidden;
  white-space: nowrap;
}

/* Tables (invoices, sign-ins) */
.ac-table { width: 100%; border-collapse: collapse; font-size: 14px; }

.ac-table th,
.ac-table td {
  padding: 10px 6px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
  vertical-align: middle;
}

.ac-table thead th { font-size: 12.5px; font-weight: 700; color: var(--text-muted); }
.ac-table th[scope="row"] { font-weight: 600; color: var(--ink); white-space: nowrap; }
.ac-table .is-num { text-align: right; }
.ac-table__sub { display: block; font-size: 12.5px; color: var(--text-muted); }

.ac-status {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.ac-status--paid { background: #DDF7D9; color: #14532D; }
.ac-status--failed { background: #FDE2E1; color: #8A1C1A; }
.ac-status--refunded { background: #FFF1C2; color: #6B4E00; }
.ac-status--off { background: var(--ice); color: var(--text-secondary); }

.ac-download { font-size: 14px; white-space: nowrap; }

/* ---- Security ---- */
.ac-strength {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 4px;
}

.ac-strength span { height: 5px; border-radius: 999px; background: var(--ice); }
.ac-strength span.is-on.is-1 { background: #D84A3A; }
.ac-strength span.is-on.is-2 { background: #E9A23B; }
.ac-strength span.is-on.is-3,
.ac-strength span.is-on.is-4 { background: #2E9B4E; }
.ac-strength__label { min-height: 18px; }

.ac-steps { margin: 0; padding-left: 20px; font-size: 14.5px; line-height: 1.7; }
.ac-steps:focus { outline: none; }

.ac-qr {
  display: grid;
  grid-template-columns: repeat(7, 14px);
  gap: 2px;
  padding: 10px;
  align-self: flex-start;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--white);
}

.ac-qr span { width: 14px; height: 14px; background: var(--ice); }
.ac-qr span.is-on { background: var(--ink); }

.ac-codes { padding: 14px; border-radius: 12px; background: var(--ice); }
.ac-codes__title { margin: 0 0 4px; font-size: 14.5px; font-weight: 700; }

.ac-codes__list {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 6px 18px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
}

.ac-devices { margin: 0; padding: 0; list-style: none; }

.ac-device {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.ac-device:last-child { border-bottom: 0; }
.ac-device__name { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.ac-device__meta { margin: 2px 0 0; font-size: 13px; color: var(--text-muted); }

/* ---- Responsible play, help ---- */
.ac-list { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.7; color: var(--ink); }

.ac-services { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ac-service { display: flex; flex-direction: column; gap: 2px; }
.ac-service__name { font-size: 15.5px; font-weight: 700; color: var(--ink); }
.ac-service__meta { font-size: 13.5px; color: var(--text-muted); }

.ac-links { display: flex; flex-wrap: wrap; gap: 10px; }

.ac-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Toast */
.ac-toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + var(--rp-bar-h, 0px));
  z-index: 60;
  max-width: min(520px, calc(100vw - 32px));
  margin: 0;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--white);
  font-size: 14.5px;
  box-shadow: 0 12px 30px -10px rgba(16, 17, 20, 0.5);
  transform: translate(-50%, 8px);
  opacity: 0;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.ac-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.ac-toast[hidden] { display: none; }

/* ---- Tablet and phone ---- */
@media (max-width: 1100px) {
  .ac-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
}

@media (max-width: 900px) {
  .ac-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .ac-menu { position: static; }
  .ac-menu__list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    border: 0;
    background: none;
  }
  .ac-menu__link {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    background: var(--white);
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  .ac-grid { grid-template-columns: minmax(0, 1fr); }
  .ac-card { padding: 16px; }
  .ac-plan { padding: 18px; }
  .ac-plan-grid { grid-template-columns: minmax(0, 1fr); }
  .ac-stripe { grid-template-columns: 1fr 1fr; }
  .ac-stripe__field:first-child { grid-column: 1 / -1; }
  .ac-matrix .is-c { width: 58px; }
  .ac-matrix thead th.is-c { font-size: 11.5px; }
  .ac-table thead { display: none; }
  .ac-table tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--border-subtle); }
  .ac-table th, .ac-table td { padding: 0; border: 0; }
  .ac-table .is-num { text-align: right; }
  .ac-codes__list { grid-template-columns: repeat(2, auto); }
  .ac-header__right { width: 100%; }
}

/* ============================================================
   Prediction Builder: four ways to build (v0.20.0)
   Brief: Slipio_Builder_Ways_UX_UI_Brief_v0.20.0.md. Start screen
   "Or build it another way" cards (.build-way), and the two new
   pages: Build from your record and Describe it (.bw-*). Reuses
   .option-pill, .field-input, .tag-illustrative, .mx-empty.
   ============================================================ */

.build-ways {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.build-ways__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: center;
}

.build-ways__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.build-ways__list > li[hidden] { display: none; }

.build-way {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 16px 18px;
  border: 1.5px solid var(--border-subtle);
  border-radius: 16px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s var(--ease);
}

.build-way:hover { border-color: var(--ink); }
.build-way:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

.build-way__name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 16px;
  font-weight: 700;
}

.build-way__new {
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--lime);
  color: var(--lime-ink-text);
  font-size: 11px;
  font-weight: 800;
}

.build-way__text { font-size: 14px; line-height: 1.45; color: var(--text-muted); }

/* ---- Shared page parts ---- */
.bw {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bw-back { align-self: flex-start; font-size: 14.5px; }
.bw-intro { text-align: left; align-items: flex-start; }
.bw-intro .builder-lede { margin-left: 0; margin-right: 0; }
#recLocked[hidden] { display: none; }

.bw-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.bw-legend { margin: 0; padding: 0; font-size: 15px; font-weight: 700; color: var(--ink); }
.bw-help { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text-muted); }

.bw-how {
  padding: 12px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: var(--white);
}

.bw-how summary { font-size: 14.5px; font-weight: 700; cursor: pointer; color: var(--ink); }
.bw-how p { margin: 10px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--text-secondary); }

#recBody { display: flex; flex-direction: column; gap: 20px; }
#recBody[hidden] { display: none; }

.bw-record {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  border-radius: 18px;
  background: var(--graphite);
  color: var(--white);
}

.bw-record__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.bw-record__head .tag-illustrative { color: var(--mist); border-color: rgba(255, 255, 255, 0.35); }
.bw-record__basis { margin: 0; font-size: 15px; line-height: 1.5; color: var(--white); }

.bw-record__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
}

.bw-record__title { margin: 0 0 8px; font-size: 14px; font-weight: 700; }
.bw-record .bw-record__title { color: var(--lime); }
.bw-record__note { margin: 0; font-size: 13.5px; color: var(--mist); }

.bw-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }

.bw-tag {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
}

.bw-tags--use .bw-tag { background: var(--lime); color: var(--lime-ink-text); }
.bw-tags--out .bw-tag { background: rgba(255, 255, 255, 0.1); color: var(--mist); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.4); }

.bw-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding: 14px 16px 14px 18px;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: var(--white);
}

.bw-foot__cost { margin: 0; font-size: 14px; color: var(--text-secondary); flex: 1 1 260px; }
.bw-foot__btn { width: auto; height: 48px; padding: 0 26px; }
.bw-foot__btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---- Describe it ---- */
.bw-describe {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.bw-ask {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.bw-suggest { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 6px; padding: 0; list-style: none; }

.bw-chip {
  min-height: 38px;
  padding: 6px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: var(--white);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.bw-chip:hover { border-color: var(--ink); }
.bw-chip:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

.bw-input { position: relative; }

.bw-input__text {
  display: block;
  width: 100%;
  min-height: 112px;
  padding: 14px 60px 14px 14px;
  resize: none;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.5;
}

.bw-mic {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.bw-mic:hover { border-color: var(--ink); }
.bw-mic[aria-pressed="true"] { background: var(--lime); border-color: var(--lime); animation: bw-pulse 1s ease-in-out infinite; }
.bw-mic:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

@keyframes bw-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(199, 255, 47, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(199, 255, 47, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .bw-mic[aria-pressed="true"] { animation: none; }
}

.bw-understood {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  background: var(--graphite);
  color: var(--white);
  min-width: 0;
}

.bw-understood__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bw-understood .bw-record__title { margin: 0; color: var(--lime); }
.bw-understood .tag-illustrative { color: var(--mist); border-color: rgba(255, 255, 255, 0.35); }
.bw-understood .bw-help { color: var(--mist); }

.bw-und { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }

.bw-und__item {
  padding: 10px 8px 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
}

.bw-und__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.bw-und__text { margin: 0; font-size: 15px; font-weight: 600; color: var(--white); overflow-wrap: anywhere; }
.bw-und__key { display: block; font-size: 12px; font-weight: 700; color: var(--mist); }
.bw-und__note { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--lime); }

.bw-und__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--mist);
  cursor: pointer;
}

.bw-und__remove:hover { background: rgba(255, 255, 255, 0.1); color: var(--white); }
.bw-und__remove:focus-visible { outline: 2px solid var(--lime); outline-offset: 1px; }

/* Result screen: how the set was built */
.result-mode {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

.result-mode[hidden] { display: none; }

@media (max-width: 760px) {
  .bw-describe { grid-template-columns: minmax(0, 1fr); }
  .bw-record__cols { grid-template-columns: minmax(0, 1fr); }
  .bw-foot { flex-direction: column; align-items: stretch; }
  .bw-foot__btn { width: 100%; }
}

/* ============================================================
   Slippy, the chat assistant (v0.21.0)
   Brief: Slipio_Slippy_UX_UI_Brief_v0.21.0.md. Added by slippy.js
   on every signed-in page. Launcher bottom left of the page area
   (--sl-left, set from #main), above the reminder bar (--rp-bar-h).
   Box: a standard chat window above the launcher. Panel: a narrow
   full-height panel on the right. Full tab: /slippy/ (.sl--full).
   ============================================================ */

.sl {
  --sl-gap: 20px;
  font-family: var(--font-ui);
}

/* ---- Launcher ---- */
.sl-launcher {
  position: fixed;
  left: calc(var(--sl-left, 0px) + var(--sl-gap));
  bottom: calc(var(--rp-bar-h, 0px) + var(--sl-gap) + env(safe-area-inset-bottom, 0px));
  z-index: 38;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 10px 28px -6px rgba(16, 17, 20, 0.45), 0 0 0 3px rgba(199, 255, 47, 0.35);
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.sl-launcher:hover { transform: translateY(-2px) rotate(-6deg); }
.sl-launcher:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.sl.is-open .sl-launcher { box-shadow: 0 10px 28px -6px rgba(16, 17, 20, 0.45), 0 0 0 3px var(--lime); }

.sl-launcher__dot {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 14px;
  height: 14px;
  border: 2.5px solid var(--white);
  border-radius: 50%;
  background: var(--violet);
}

.sl-launcher__dot[hidden] { display: none; }

.sl-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border-radius: 50%;
  background: var(--ink);
}

.sl-avatar img { display: block; width: 62%; height: auto; }
.sl-avatar--launcher { width: 62px; height: 62px; background: transparent; }
.sl-avatar--launcher img { width: 52%; animation: sl-bob 3.2s ease-in-out infinite; }

@keyframes sl-bob {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50% { transform: rotate(4deg) translateY(-2px); }
}

.sl-hint {
  position: fixed;
  left: calc(var(--sl-left, 0px) + var(--sl-gap) + 72px);
  bottom: calc(var(--rp-bar-h, 0px) + var(--sl-gap) + 14px + env(safe-area-inset-bottom, 0px));
  z-index: 38;
  max-width: min(260px, calc(100vw - 110px));
  padding: 10px 14px;
  border: 0;
  border-radius: 16px 16px 16px 4px;
  background: var(--white);
  box-shadow: 0 10px 28px -8px rgba(16, 17, 20, 0.35);
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  animation: sl-pop 0.35s var(--ease) 1.2s both;
}

.sl-hint strong { white-space: nowrap; }
.sl-hint strong { color: var(--ink); text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 3px; }
.sl-hint:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

@keyframes sl-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

/* ---- Box ---- */
.sl-box {
  position: fixed;
  left: calc(var(--sl-left, 0px) + var(--sl-gap));
  bottom: calc(var(--rp-bar-h, 0px) + var(--sl-gap) + 76px + env(safe-area-inset-bottom, 0px));
  z-index: 39;
  display: none;
  flex-direction: column;
  width: min(390px, calc(100vw - 32px));
  height: min(600px, calc(100vh - var(--rp-bar-h, 0px) - 120px));
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 24px 60px -16px rgba(16, 17, 20, 0.45);
  transform-origin: bottom left;
}

.sl.is-open .sl-box { display: flex; animation: sl-open 0.22s var(--ease); }

@keyframes sl-open {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

/* Panel: narrow, full height, on the right */
.sl.is-panel .sl-box {
  left: auto;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(420px, 100vw);
  height: auto;
  border-radius: 0;
  border-width: 0 0 0 1px;
  box-shadow: -18px 0 48px -18px rgba(16, 17, 20, 0.4);
  z-index: 41;
  transform-origin: right center;
}

.sl.is-panel.is-open .sl-box { animation: sl-slide 0.25s var(--ease); }

@keyframes sl-slide {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: none; }
}

/* On wide screens the page makes room for the panel, so nothing hides behind it */
@media (min-width: 1100px) {
  body.has-slippy-panel .app-canvas { padding-right: 460px; transition: padding-right 0.25s var(--ease); }
  body.has-slippy-panel .rp-bar { right: 420px; }
}

/* ---- Header ---- */
.sl-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px 12px 14px;
  background: var(--ink);
  color: var(--white);
}

.sl-avatar--head { width: 40px; height: 40px; background: var(--graphite); box-shadow: inset 0 0 0 1.5px rgba(199, 255, 47, 0.5); }
.sl-head__who { flex: 1 1 auto; min-width: 0; }
.sl-head__name { margin: 0; font-family: var(--font-display); font-size: 17px; font-weight: 600; }

.sl-head__status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 1px 0 0;
  font-size: 12.5px;
  color: var(--mist);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sl-online { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(199, 255, 47, 0.2); flex: none; }

.sl-sets {
  display: none;
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 700;
  color: var(--lime);
  text-decoration: none;
  white-space: nowrap;
}

.sl-sets.is-empty { color: #FFB4AE; }
.sl-sets:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.sl--full .sl-sets { display: inline-block; }
.sl.is-panel .sl-head { flex-wrap: wrap; row-gap: 6px; }
.sl.is-panel .sl-sets { display: inline-block; order: 5; margin-left: 50px; }

.sl-head__acts { display: flex; gap: 2px; flex: none; }

.sl-iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.sl-iconbtn:hover { background: rgba(255, 255, 255, 0.1); color: var(--lime); }
.sl-iconbtn:focus-visible { outline: 2px solid var(--lime); outline-offset: 1px; }

/* ---- Conversation ---- */
.sl-log {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 14px 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    radial-gradient(circle at 100% 0, rgba(199, 255, 47, 0.12), transparent 40%),
    var(--ice);
}

.sl-msg { display: flex; align-items: flex-end; gap: 8px; max-width: 100%; }
.sl-msg--you { justify-content: flex-end; }
.sl-msg.is-new { animation: sl-pop 0.25s var(--ease); }
.sl-msg.is-follow { padding-left: 38px; margin-top: -4px; }

.sl-avatar--msg { width: 30px; height: 30px; align-self: flex-start; }

.sl-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; max-width: calc(100% - 38px); }

.sl-bubble {
  margin: 0;
  padding: 10px 14px;
  border-radius: 18px 18px 18px 6px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(16, 17, 20, 0.06);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.sl-msg--you .sl-bubble {
  max-width: 82%;
  border-radius: 18px 18px 6px 18px;
  background: var(--ink);
  color: var(--white);
}

.sl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }

.sl-chip {
  min-height: 36px;
  padding: 6px 12px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s var(--ease);
}

.sl-chip:hover:not(:disabled) { background: var(--lime); }
.sl-chip:disabled { opacity: 0.45; cursor: default; border-color: var(--mist); }
.sl-chip:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

.sl-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 3px;
  text-underline-offset: 3px;
}

.sl-link--small { font-size: 13px; }
.sl-link--cta { padding: 2px 0; }

.sl-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  margin: 0;
}

.sl-stats > div { padding: 10px 12px; border-radius: 14px; background: var(--white); }
.sl-stats dt { font-size: 12px; font-weight: 700; color: var(--text-muted); }
.sl-stats dd { margin: 2px 0 0; font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--ink); }

.sl-und {
  display: flex;
  flex-direction: column;
  gap: 1px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  border-radius: 14px;
  overflow: hidden;
  background: var(--border-subtle);
}

.sl-und li { display: flex; flex-direction: column; padding: 8px 12px; background: var(--white); }
.sl-und__key { font-size: 11.5px; font-weight: 700; color: var(--text-muted); }
.sl-und__val { font-size: 14px; font-weight: 700; color: var(--ink); }
.sl-und__note { margin-top: 2px; font-size: 12.5px; color: var(--text-secondary); }

.sl-confirm { display: flex; flex-wrap: wrap; gap: 8px; }
.sl-confirm .btn { width: auto; height: 40px; padding: 0 16px; font-size: 14px; }

.sl-matches { display: flex; flex-direction: column; gap: 6px; width: 100%; margin: 0; padding: 0; list-style: none; }

.sl-match {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--white);
  border-left: 4px solid var(--lime);
}

.sl-match__meta { margin: 0; font-size: 12px; color: var(--text-muted); }
.sl-match__teams { font-size: 15px; font-weight: 700; color: var(--ink); text-decoration: none; }
.sl-match__teams:hover { text-decoration: underline; text-underline-offset: 3px; }
.sl-match__lean { margin: 0; font-size: 13px; font-weight: 600; color: var(--violet); }
.sl-match__acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

.sl-mini {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--border-subtle);
  border-radius: 9px;
  background: var(--white);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}

.sl-mini:hover { border-color: var(--ink); }
.sl-mini--add { background: var(--ink); color: var(--lime); border-color: var(--ink); }
.sl-mini--add.is-added { background: var(--lime); color: var(--lime-ink-text); border-color: var(--lime); cursor: default; }
.sl-mini:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

.sl-typing {
  display: inline-flex;
  align-self: flex-start;
  gap: 4px;
  margin-left: 38px;
  padding: 12px 14px;
  border-radius: 18px 18px 18px 6px;
  background: var(--white);
}

.sl-typing[hidden] { display: none; }
.sl-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--steel); animation: sl-dot 1s infinite ease-in-out; }
.sl-typing span:nth-child(2) { animation-delay: 0.15s; }
.sl-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes sl-dot {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-4px); opacity: 1; }
}

/* ---- Input ---- */
.sl-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 10px 8px 14px;
  border-top: 1px solid var(--border-subtle);
  background: var(--white);
}

.sl-input {
  flex: 1 1 auto;
  min-height: 42px;
  max-height: 120px;
  padding: 10px 12px;
  border: 1.5px solid var(--border-subtle);
  border-radius: 14px;
  resize: none;
  overflow-y: hidden;
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink);
  background: var(--white);
}

.sl-input:focus { outline: none; border-color: var(--ink); }

.sl-send {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--lime);
  color: var(--lime-ink-text);
}

.sl-send:hover { background: var(--lime); color: var(--ink); transform: rotate(-8deg); }

.sl-foot {
  margin: 0;
  padding: 0 14px 10px;
  background: var(--white);
  font-size: 11.5px;
  color: var(--text-muted);
}

/* ---- Ask Slippy tab (match, team and player pages) ---- */
.sl-ask {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 22px;
  border-radius: 20px;
  background: var(--graphite);
  color: var(--white);
}

.sl-ask__img { flex: none; width: 64px; height: auto; transform: rotate(-8deg); }
.sl-ask__text { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.sl-ask .mi-section__title { color: var(--white); }
.sl-ask .mi-section__sub { color: var(--mist); }
.sl-ask__qs { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.sl-ask .sl-chip { background: transparent; border-color: rgba(255, 255, 255, 0.4); color: var(--white); }
.sl-ask .sl-chip:hover { background: var(--lime); border-color: var(--lime); color: var(--lime-ink-text); }
.sl-ask__own { width: auto; height: 44px; padding: 0 18px; background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.35); }
.sl-ask__own:hover { border-color: var(--lime); color: var(--lime); background: transparent; }

/* ---- Full tab: /slippy/ ---- */
.slp { display: flex; flex-direction: column; gap: 16px; }
.slp-head__title { margin: 0; font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 34px); font-weight: 600; color: var(--ink); }
.slp-head__sub { margin: 4px 0 0; font-size: 15px; color: var(--text-secondary); }

.slp-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.slp-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: sticky;
  top: 20px;
}

.slp-new { width: 100%; height: 46px; }
.slp-side__title { margin: 8px 0 0; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); }
.slp-history { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }

.sl-hist {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  font-family: var(--font-ui);
  text-align: left;
  cursor: pointer;
}

.sl-hist:hover { background: var(--white); border-color: var(--border-subtle); }
.sl-hist.is-current { background: var(--white); border-color: var(--ink); }
.sl-hist:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.sl-hist__title { font-size: 14px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.sl-hist__when { font-size: 12px; color: var(--text-muted); }

.sl--full .sl-box {
  position: static;
  display: flex;
  width: 100%;
  height: calc(100vh - 210px - var(--rp-bar-h, 0px));
  min-height: 460px;
  max-height: 820px;
  border-radius: 22px;
  box-shadow: 0 18px 48px -24px rgba(16, 17, 20, 0.35);
}

.sl--full .sl-log { padding: 22px 24px 14px; }
.sl--full .sl-body { max-width: min(640px, calc(100% - 38px)); }
.sl--full .sl-matches { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

/* ---- Phones ---- */
@media (max-width: 767.98px) {
  .sl { --sl-gap: 14px; }
  .sl-launcher { width: 56px; height: 56px; }
  .sl-avatar--launcher { width: 56px; height: 56px; }
  .sl-hint { left: calc(var(--sl-gap) + 64px); }
  .sl-box { left: 12px; right: 12px; width: auto; height: calc(100vh - var(--rp-bar-h, 0px) - 110px); height: calc(100dvh - var(--rp-bar-h, 0px) - 110px); }
  .sl.is-panel .sl-box { left: 0; right: 0; width: 100%; border-width: 0; }
  .sl-tab { display: none; }
  .slp-layout { grid-template-columns: minmax(0, 1fr); }
  .slp-side { position: static; }
  .slp-history { flex-direction: row; overflow: visible; flex-wrap: wrap; }
  .slp-history li { flex: 1 1 140px; }
  .sl--full .sl-box { height: calc(100dvh - 190px - var(--rp-bar-h, 0px)); min-height: 420px; }
  .sl-ask { flex-direction: column; padding: 18px; }
  .sl-ask__img { width: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .sl-avatar--launcher img,
  .sl-hint,
  .sl.is-open .sl-box,
  .sl-msg.is-new,
  .sl-typing span { animation: none; }
  .sl-launcher:hover { transform: none; }
}

/* Slippy on the right (Jaymes, 2026-10-16: "where most chatbots live"). Live as a hotfix on v0.21.0, part of v0.22.0 */
.sl-launcher { left: auto; right: calc(var(--sl-gap) + env(safe-area-inset-right, 0px)); }
.sl-hint { left: auto; right: calc(var(--sl-gap) + 72px); border-radius: 16px 16px 4px 16px; }
.sl-box { left: auto; right: var(--sl-gap); transform-origin: bottom right; }
@media (max-width: 767.98px) {
  .sl-hint { left: auto; right: calc(var(--sl-gap) + 64px); }
  .sl-box { left: 12px; right: 12px; }
}

/* ============================================================
   One league or cup (v0.22.0)  /league/?league=<id>
   Brief: Slipio_League_UX_UI_Brief_v0.22.0.md. Script: league.js.
   Colour (Charbel and Maher via Jaymes, after Statz): a dark
   header with violet and lime light, zone bands in the table,
   coloured card heads. Brand palette only, plus the functional
   red (--error) for relegation.
   ============================================================ */

.lp { display: flex; flex-direction: column; gap: 20px; }
.lp .mi-back { align-self: flex-start; }

/* ---- Header ---- */
.lp-hero {
  position: relative;
  overflow: hidden;
  padding: 28px 28px 0;
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% -20%, rgba(139, 92, 255, 0.55), transparent 46%),
    radial-gradient(circle at -5% 130%, rgba(199, 255, 47, 0.2), transparent 42%),
    var(--ink);
  color: var(--white);
}

.lp-hero__top { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 20px; }

.lp-hero__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 76px;
  height: 76px;
  border-radius: 22px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 30px -10px rgba(199, 255, 47, 0.6);
}

.lp-hero__badge.is-uefa { background: var(--violet); color: var(--white); box-shadow: 0 10px 30px -10px rgba(139, 92, 255, 0.8); }
.lp-hero__text { flex: 1 1 260px; min-width: 0; }
.lp-hero__eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0; font-size: 13.5px; font-weight: 600; color: var(--mist); }
.lp-hero .tag-illustrative { background: transparent; border-color: rgba(255, 255, 255, 0.35); color: var(--mist); }
.lp-hero__name { margin: 4px 0 2px; font-family: var(--font-display); font-size: clamp(28px, 3.2vw, 40px); font-weight: 600; line-height: 1.1; color: var(--white); overflow-wrap: anywhere; }
.lp-hero__meta { margin: 0; font-size: 14.5px; color: var(--mist); }

.lp-hero__actions { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-left: auto; }
.lp-season { display: flex; flex-direction: column; gap: 4px; }
.lp-season__label { font-size: 12.5px; font-weight: 700; color: var(--mist); }

.lp-season__select {
  height: 44px;
  padding: 0 38px 0 14px;
  border: 1px solid var(--slate);
  border-radius: 12px;
  background: var(--graphite) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5l3 3 3-3' stroke='%23C7FF2F' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.lp-season__select:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.lp-season__select option { color: var(--ink); background: var(--white); }

.lp-follow {
  width: auto;
  height: 44px;
  padding: 0 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  color: var(--white);
}

.lp-follow:hover { border-color: var(--lime); color: var(--lime); background: transparent; }
.lp-follow.is-on { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.lp-follow:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

.lp-glance {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 0;
}

.lp-glance__item {
  min-width: 0;
  padding: 14px 16px;
  border-radius: 16px;
  border-top: 3px solid var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.lp-glance__item--lime { border-top-color: var(--lime); }
.lp-glance__item--violet { border-top-color: var(--violet); }
.lp-glance__label { font-size: 12.5px; font-weight: 700; color: var(--mist); }
.lp-glance__value { margin: 4px 0 0; font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--white); overflow-wrap: anywhere; }
.lp-glance__item--lime .lp-glance__value { color: var(--lime); }
.lp-glance__note { margin: 2px 0 0; font-size: 13px; color: var(--mist); }

.lp-tabs {
  display: flex;
  gap: 4px;
  margin: 22px -28px 0;
  padding: 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lp-tab {
  padding: 15px 14px 13px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: none;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  color: var(--mist);
  cursor: pointer;
  white-space: nowrap;
}

.lp-tab:hover { color: var(--white); }
.lp-tab[aria-selected="true"] { color: var(--white); border-bottom-color: var(--lime); }
.lp-tab:focus-visible { outline: 2px solid var(--lime); outline-offset: -4px; border-radius: 8px; }

.lp-note {
  margin: 0;
  padding: 14px 18px;
  border-left: 4px solid var(--violet);
  border-radius: 12px;
  background: var(--ice);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.lp-note[hidden] { display: none; }

/* ---- Panel and sections ---- */
.lp-panel { display: flex; flex-direction: column; gap: 20px; outline: none; }
.lp-section { display: flex; flex-direction: column; gap: 14px; }
.lp-section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px; }
.lp-section__title { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--ink); }
.lp-section__sub { margin: 4px 0 0; font-size: 14.5px; color: var(--text-muted); }
.lp-foot { margin: 0; font-size: 13px; color: var(--text-muted); }

.lp-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.lp-main, .lp-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

@media (min-width: 1200px) {
  .lp-layout { grid-template-columns: minmax(0, 1fr) 340px; }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .lp-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}

.lp-card {
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  background: var(--white);
}

.lp-card__head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; }
.lp-card__head--ink { background: var(--ink); color: var(--white); }
.lp-card__head--graphite { background: var(--graphite); color: var(--white); }
.lp-card__head--violet { background: var(--violet); color: var(--white); }
.lp-card__head--lime { background: var(--lime); color: var(--ink); }
.lp-card__head--ice { background: var(--ice); color: var(--ink); }
.lp-card__title { margin: 0; font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.lp-card__sub { margin: 2px 0 0; font-size: 13px; opacity: 0.82; }
.lp-card__link { display: inline-block; margin: 12px 18px 16px; background: none; border: 0; padding: 0; font: inherit; font-weight: 700; cursor: pointer; }

/* ---- Crests ---- */
.lp-crest { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 26px; height: 26px; border-radius: 50%; object-fit: contain; }
.lp-crest--text { background: var(--ice); color: var(--slate); font-size: 10px; font-weight: 800; letter-spacing: 0.01em; }
.lp-crest--sm { width: 22px; height: 22px; }
.lp-crest--sm.lp-crest--text { font-size: 9px; }
.lp-club { font-weight: 600; color: var(--ink); text-decoration: none; overflow-wrap: break-word; hyphens: auto; }
a.lp-club:hover { text-decoration: underline; text-decoration-color: var(--violet); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a.lp-club:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 4px; }

/* ---- Table ---- */
.lp-table-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding: 18px 20px; }
.lp-table-card__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.lp-table-card__foot { margin: 0; padding: 14px 20px 18px; border-top: 1px solid var(--border-subtle); font-size: 13.5px; color: var(--text-muted); }

.lp-seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 12px; background: var(--ice); }

.lp-seg__btn {
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
}

.lp-seg__btn[aria-checked="true"] { background: var(--ink); color: var(--white); }
.lp-seg__btn:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

.lp-switch { position: relative; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--text-secondary); cursor: pointer; }
.lp-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lp-switch__track { position: relative; width: 40px; height: 24px; border-radius: 999px; background: var(--mist); transition: background 0.15s var(--ease); }
.lp-switch__track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--white); transition: transform 0.15s var(--ease); }
.lp-switch input:checked + .lp-switch__track { background: var(--ink); }
.lp-switch input:checked + .lp-switch__track::after { transform: translateX(16px); background: var(--lime); }
.lp-switch input:focus-visible + .lp-switch__track { outline: 2px solid var(--violet); outline-offset: 2px; }

.lp-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.lp-table thead th { padding: 10px 8px; border-top: 1px solid var(--border-subtle); background: #F6F9FA; font-size: 12.5px; font-weight: 700; color: var(--text-muted); text-align: center; white-space: nowrap; }
.lp-table thead th abbr { text-decoration: none; }
.lp-table .lp-col--team { text-align: left; }
.lp-table thead .lp-col--pos { padding-left: 20px; }
.lp-table td, .lp-table tbody th { padding: 9px 8px; border-top: 1px solid var(--border-subtle); text-align: center; color: var(--ink); }
.lp-table tbody th.lp-col--team { font-weight: 400; text-align: left; }
.lp-table .lp-col--pos { width: 44px; padding-left: 20px; font-weight: 700; color: var(--text-secondary); }
.lp-table .lp-col--pts { padding-right: 20px; font-family: var(--font-display); font-size: 15.5px; font-weight: 700; }
.lp-table .lp-col--gd.is-neg { color: var(--text-muted); }
.lp-table .lp-col--form { width: 1%; }
.lp-table .lp-col--gf, .lp-table .lp-col--ga, .lp-table .lp-col--ppg { display: none; }
.lp-table.is-more .lp-col--gf, .lp-table.is-more .lp-col--ga, .lp-table.is-more .lp-col--ppg { display: table-cell; }

.lp-team { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.lp-team .lp-club { flex: 1 1 0; min-width: 0; }
.lp-team .lp-yours { margin-left: 36px; }
.lp-yours { flex: none; padding: 2px 7px; border-radius: 6px; background: var(--lime); font-size: 11px; font-weight: 800; color: var(--ink); white-space: nowrap; }

/* Zone bands */
.lp-table .lp-zone-row th, .lp-table .lp-zone-row td {
  padding: 7px 20px;
  border-top: 1px solid var(--border-subtle);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
}

.lp-zone-row--violet th { background: rgba(139, 92, 255, 0.12); color: #5B36D6; }
.lp-zone-row--lime th { background: rgba(199, 255, 47, 0.38); color: var(--ink); }
.lp-zone-row--steel th { background: rgba(116, 123, 134, 0.14); color: var(--slate); }
.lp-zone-row--red th { background: rgba(197, 34, 31, 0.09); color: var(--error); }
.lp-zone-row--none td { padding: 0; height: 6px; background: #F6F9FA; }

.lp-row--violet td, .lp-row--violet th { background: rgba(139, 92, 255, 0.035); }
.lp-row--lime td, .lp-row--lime th { background: rgba(199, 255, 47, 0.1); }
.lp-row--red td, .lp-row--red th { background: rgba(197, 34, 31, 0.03); }
.lp-row--violet .lp-col--pos { box-shadow: inset 4px 0 0 var(--violet); }
.lp-row--lime .lp-col--pos { box-shadow: inset 4px 0 0 #9CCB00; }
.lp-row--steel .lp-col--pos { box-shadow: inset 4px 0 0 var(--steel); }
.lp-row--red .lp-col--pos { box-shadow: inset 4px 0 0 var(--error); }
.lp-row.is-yours td, .lp-row.is-yours th { background: rgba(199, 255, 47, 0.32); }
.lp-row.is-yours .lp-club { font-weight: 800; }
.lp-row:hover td, .lp-row:hover th { background-color: rgba(233, 241, 244, 0.9); }

.lp-form { display: flex; gap: 3px; margin: 0; padding: 0; list-style: none; }
.lp-form .mi-chip--sm { width: 20px; height: 20px; border-radius: 6px; font-size: 10.5px; }

.lp-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 14px 20px 18px; border-top: 1px solid var(--border-subtle); list-style: none; font-size: 13px; color: var(--text-secondary); }
.lp-legend__item { display: inline-flex; align-items: center; gap: 8px; }
.lp-legend__dot { width: 10px; height: 10px; border-radius: 50%; }
.lp-legend__dot--violet { background: var(--violet); }
.lp-legend__dot--lime { background: var(--lime); box-shadow: 0 0 0 1px #9CCB00; }
.lp-legend__dot--steel { background: var(--steel); }
.lp-legend__dot--red { background: var(--error); }

/* ---- This round card ---- */
.lp-round .lp-card__head { justify-content: space-between; text-align: center; }
.lp-round__title { flex: 1 1 auto; min-width: 0; }

.lp-round__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  cursor: pointer;
}

.lp-round__nav:hover:not(:disabled) { background: var(--lime); color: var(--ink); }
.lp-round__nav:disabled { opacity: 0.3; cursor: default; }
.lp-round__nav:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

/* ---- Matches ---- */
.lp-matches { margin: 0; padding: 0; list-style: none; }
.lp-day { padding: 12px 18px 6px; font-size: 12.5px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); }

.lp-match__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 14px;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-top: 1px solid var(--border-subtle);
  color: var(--ink);
  text-decoration: none;
}

a.lp-match__link:hover { background: var(--ice); }
a.lp-match__link:focus-visible { outline: 2px solid var(--violet); outline-offset: -2px; }
.lp-match__team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lp-match__team--home { justify-content: flex-end; text-align: right; }
.lp-match__name { min-width: 0; font-size: 14.5px; font-weight: 600; overflow-wrap: break-word; hyphens: auto; }
.lp-match__team.is-winner .lp-match__name { font-weight: 800; }
.is-played .lp-match__team:not(.is-winner) .lp-match__name { color: var(--text-secondary); }

.lp-match__mid {
  min-width: 60px;
  padding: 6px 10px;
  border-radius: 10px;
  background: var(--ice);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  color: var(--ink);
}

.lp-match__mid.is-score { background: var(--ink); color: var(--white); letter-spacing: 0.04em; }
.lp-match__arrow { display: inline-flex; color: var(--steel); }
.lp-match__pens { grid-column: 1 / -1; font-size: 12.5px; color: var(--text-muted); text-align: center; }
.lp-matches--compact .lp-match__link { padding: 9px 14px; gap: 8px; }
.lp-matches--compact .lp-match__name { font-size: 13.5px; }
.lp-matches--compact .lp-match__team .lp-crest { display: none; }
.lp-matches--compact .lp-match__mid { min-width: 52px; padding: 5px 8px; font-size: 14px; }
.lp-matches--compact .lp-day { padding: 10px 14px 4px; }

/* ---- Fixtures: rounds ---- */
.lp-rounds { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.lp-roundbox { overflow: hidden; border: 1px solid var(--border-subtle); border-radius: 16px; background: var(--white); }
.lp-roundbox.is-current { border-color: var(--ink); box-shadow: 0 8px 24px -16px rgba(16, 17, 20, 0.5); }

.lp-roundbox__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  width: 100%;
  padding: 14px 18px;
  border: 0;
  background: var(--white);
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.lp-roundbox.is-current .lp-roundbox__head { background: var(--ink); color: var(--white); }
.lp-roundbox__head:hover { background: var(--ice); }
.lp-roundbox.is-current .lp-roundbox__head:hover { background: var(--graphite); }
.lp-roundbox__head:focus-visible { outline: 2px solid var(--violet); outline-offset: -2px; }
.lp-roundbox__when { margin-left: auto; font-size: 13.5px; font-weight: 600; color: var(--text-muted); }
.lp-roundbox__count { font-size: 13.5px; font-weight: 600; color: var(--text-muted); }
.lp-roundbox.is-current .lp-roundbox__when, .lp-roundbox.is-current .lp-roundbox__count { color: var(--mist); }
.lp-roundbox__chev { flex: none; transition: transform 0.2s var(--ease); }
.lp-roundbox__head[aria-expanded="true"] .lp-roundbox__chev { transform: rotate(180deg); }
.lp-roundbox__body[hidden] { display: none; }
.lp-pill { display: inline-flex; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 800; }
.lp-pill--lime { background: var(--lime); color: var(--ink); }

/* ---- Stats ---- */
.lp-glancecard {
  padding: 24px;
  border: 0;
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0, rgba(139, 92, 255, 0.5), transparent 45%),
    var(--ink);
  color: var(--white);
}

.lp-glancecard__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; }
.lp-glancecard__title { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.lp-glancecard__sub { margin: 4px 0 0; font-size: 14px; color: var(--mist); }
.lp-glancecard .tag-illustrative { background: transparent; border-color: rgba(255, 255, 255, 0.35); color: var(--mist); }

.lp-bignums { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 20px 0 22px; }
.lp-bignum { padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.07); }
.lp-bignum__label { font-size: 13px; font-weight: 600; color: var(--mist); }
.lp-bignum__value { margin: 6px 0 0; font-family: var(--font-display); font-size: 32px; font-weight: 600; line-height: 1; color: var(--white); }
.lp-bignum:first-child .lp-bignum__value { color: var(--lime); }

.lp-split__title { margin: 0 0 10px; font-size: 14px; font-weight: 700; }
.lp-split__bar { display: flex; height: 14px; overflow: hidden; border-radius: 999px; background: var(--graphite); }
.lp-split__part--home { background: var(--lime); }
.lp-split__part--draw { background: var(--steel); }
.lp-split__part--away { background: var(--violet); }
.lp-split__key { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 12px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--mist); }
.lp-split__key li { display: inline-flex; align-items: center; gap: 8px; }
.lp-split__key strong { color: var(--white); }
.lp-split__dot { width: 10px; height: 10px; border-radius: 50%; }
.lp-split__dot--home { background: var(--lime); }
.lp-split__dot--draw { background: var(--steel); }
.lp-split__dot--away { background: var(--violet); }

.lp-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }

@media (min-width: 900px) {
  .lp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-cards--one { grid-template-columns: minmax(0, 1fr); }
}

.lp-top { margin: 0; padding: 4px 0 8px; list-style: none; }

.lp-top__item {
  display: grid;
  grid-template-columns: 24px 22px minmax(0, 1fr) minmax(60px, 110px) 58px;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
}

.lp-top__item + .lp-top__item { border-top: 1px solid var(--border-subtle); }
.lp-top__item.is-yours { background: rgba(199, 255, 47, 0.28); }
.lp-top__rank { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; font-size: 13px; font-weight: 800; color: var(--text-muted); }
.lp-top__item:first-child .lp-top__rank { background: var(--ink); color: var(--lime); }
.lp-top__name { min-width: 0; font-size: 14.5px; }
.lp-top__bar { height: 8px; overflow: hidden; border-radius: 999px; background: var(--ice); }
.lp-top__fill { display: block; height: 100%; border-radius: inherit; background: var(--violet); }
.lp-top__item:first-child .lp-top__fill { background: var(--ink); }
.lp-top__value { font-family: var(--font-display); font-size: 15.5px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.lp-top__item .lp-form { justify-self: end; }
.lp-top--stacked .lp-top__item { grid-template-columns: 24px 22px minmax(0, 1fr) auto; }
.lp-top--stacked .lp-top__name { display: flex; flex-direction: column; gap: 6px; }
.lp-top--stacked .lp-form { justify-self: start; }

/* ---- Phones and small tablets ---- */
@media (max-width: 1023.98px) {
  .lp-bignums { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 767.98px) {
  .lp-hero { padding: 20px 16px 0; border-radius: 20px; }
  .lp-hero__badge { width: 58px; height: 58px; border-radius: 18px; font-size: 18px; }
  .lp-hero__actions { width: 100%; margin-left: 0; }
  .lp-season { flex: 1 1 auto; }
  .lp-season__select { width: 100%; }
  .lp-glance { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 18px; }
  .lp-glance__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 12px 14px; border-top-width: 0; border-left: 3px solid var(--white); }
  .lp-glance__item--lime { border-left-color: var(--lime); }
  .lp-glance__item--violet { border-left-color: var(--violet); }
  .lp-glance__label { grid-column: 1; }
  .lp-glance__value { grid-column: 1; font-size: 18px; }
  .lp-glance__note { grid-column: 1; }
  .lp-tabs { margin: 18px -16px 0; padding: 0 8px; gap: 0; }
  .lp-tab { flex: 1 1 auto; padding: 14px 6px 12px; font-size: 14px; }
  .lp-switch { display: none; }
  .lp-table-card__head { padding: 16px; }
  .lp-table .lp-col--w, .lp-table .lp-col--d, .lp-table .lp-col--l,
  .lp-table.is-more .lp-col--gf, .lp-table.is-more .lp-col--ga, .lp-table.is-more .lp-col--ppg { display: none; }
  .lp-table .lp-col--pos { width: 36px; padding-left: 14px; }
  .lp-table .lp-col--pts { padding-right: 14px; }
  .lp-table td, .lp-table tbody th { padding: 9px 5px; }
  .lp-zone-row th { padding: 7px 14px; }
  .lp-bignums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-bignum:first-child { grid-column: 1 / -1; }
  .lp-bignum__value { font-size: 28px; }
  .lp-glancecard { padding: 20px 16px; }
  .lp-match__link { padding: 10px 12px; gap: 8px; }
  .lp-match__name { font-size: 13.5px; }
  .lp-match__mid { min-width: 52px; padding: 5px 7px; font-size: 14px; }
  .lp-roundbox__head { padding: 13px 14px; }
  .lp-roundbox__when { margin-left: 0; order: 5; flex-basis: 100%; }
  .lp-top__item { grid-template-columns: 24px 22px minmax(0, 1fr) 54px; padding: 11px 14px; }
  .lp-top__bar { display: none; }
  .lp-top__item > .lp-form { display: none; }
}

@media (max-width: 419.98px) {
  .lp-table .lp-col--form { display: none; }
  .lp-table td, .lp-table tbody th { padding: 9px 4px; }
  .lp-table .lp-col--pos { width: 30px; padding-left: 10px; }
  .lp-table .lp-col--pts { padding-right: 10px; }
  .lp-crest { width: 22px; height: 22px; }
  .lp-team { gap: 8px; }
  .lp-match__team .lp-crest { display: none; }
  .lp-yours { display: none; }
}

@media (max-width: 359.98px) {
  .lp-table .lp-crest { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-roundbox__chev, .lp-switch__track, .lp-switch__track::after { transition: none; }
}

/* v0.22.0: league names in the dark key cards open the league page */
.mi-card__league { color: inherit; text-decoration: underline; text-decoration-color: rgba(199, 255, 47, 0.6); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.mi-card__league:hover { color: var(--lime); }
.mi-card__league:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 4px; }

/* Narrower table column alongside the side cards: tighter cells when every column shows */
@media (min-width: 1200px) and (max-width: 1439.98px) {
  .lp-table.is-more td, .lp-table.is-more tbody th, .lp-table.is-more thead th { padding-left: 5px; padding-right: 5px; }
  .lp-table.is-more .lp-col--pos { padding-left: 16px; }
  .lp-table.is-more .lp-col--pts { padding-right: 16px; }
}

/* ============================================================
   Alerts: the Alerts button, the bell and the panel (v0.23.0)
   Brief: Slipio_Watchlist_UX_UI_Brief_v0.23.0.md. Script: watch-alerts.js.
   ============================================================ */

.app-alerts-btn__icon { position: relative; display: inline-flex; }
.app-alerts-count {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 2px solid var(--white);
  border-radius: 999px;
  background: var(--violet);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 14px;
  color: var(--white);
  text-align: center;
}
.app-alerts-count[hidden] { display: none; }
.app-alerts-btn[aria-expanded="true"] { background: var(--ice); color: var(--ink); }
.app-topbar__bell { position: relative; display: none; }
.app-topbar__bell .app-alerts-count { top: 4px; right: 2px; }

@media (max-width: 767.98px) {
  .app-topbar__bell { display: inline-flex; margin-left: auto; }
  .app-topbar__logo { position: absolute; left: 50%; transform: translateX(-50%); }
}

.wa-panel {
  position: fixed;
  left: calc(var(--sidebar-w) + 12px);
  bottom: 16px;
  z-index: 42;
  display: flex;
  flex-direction: column;
  width: min(400px, calc(100vw - 24px));
  max-height: min(640px, calc(100vh - 32px));
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 24px 60px -16px rgba(16, 17, 20, 0.4);
  animation: sl-pop 0.18s var(--ease);
}
.wa-panel[hidden] { display: none; }

.wa-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  padding: 16px 12px 14px 18px;
  background: var(--ink);
  color: var(--white);
}
.wa-panel__title { margin: 0; font-family: var(--font-display); font-size: 19px; font-weight: 600; outline: none; }
.wa-panel__count { font-size: 13px; color: var(--mist); }
.wa-panel__mark { margin-left: auto; padding: 6px 8px; border: 0; border-radius: 8px; background: none; font-family: var(--font-ui); font-size: 13px; font-weight: 700; color: var(--lime); cursor: pointer; }
.wa-panel__mark:hover { background: rgba(255, 255, 255, 0.08); }
.wa-panel__close { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: none; color: var(--white); cursor: pointer; }
.wa-panel__count + .wa-panel__close { margin-left: auto; }
.wa-panel__close:hover { background: rgba(255, 255, 255, 0.1); color: var(--lime); }
.wa-panel__mark:focus-visible, .wa-panel__close:focus-visible { outline: 2px solid var(--lime); outline-offset: 1px; }
.wa-panel .wa-list { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; }
.wa-panel__empty { padding: 22px 18px; font-size: 14.5px; line-height: 1.5; color: var(--text-secondary); }
.wa-panel__empty p { margin: 0; }
.wa-panel__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 14px 18px; border-top: 1px solid var(--border-subtle); font-size: 14px; }

.wa-list { margin: 0; padding: 0; list-style: none; }
.wa-item + .wa-item { border-top: 1px solid var(--border-subtle); }
.wa-item__link { display: grid; grid-template-columns: 36px minmax(0, 1fr) 10px; align-items: start; gap: 12px; padding: 13px 16px; color: var(--ink); text-decoration: none; }
.wa-item__link:hover { background: var(--ice); }
.wa-item__link:focus-visible { outline: 2px solid var(--violet); outline-offset: -2px; }
.wa-item.is-unread .wa-item__link { background: rgba(139, 92, 255, 0.05); }
.wa-item.is-unread .wa-item__link:hover { background: var(--ice); }
.wa-item__icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 11px; }
.wa-item__icon--lineups { background: var(--lime); color: var(--ink); }
.wa-item__icon--availability { background: rgba(197, 34, 31, 0.1); color: var(--error); }
.wa-item__icon--fixtures { background: var(--ink); color: var(--lime); }
.wa-item__icon--weather { background: var(--ice); color: var(--slate); }
.wa-item__icon--insights { background: var(--violet); color: var(--white); }
.wa-item__icon--kickoff { background: var(--graphite); color: var(--white); }
.wa-item__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.wa-item__title { font-size: 14.5px; font-weight: 600; line-height: 1.35; overflow-wrap: break-word; }
.wa-item.is-unread .wa-item__title { font-weight: 800; }
.wa-item__detail { font-size: 13.5px; line-height: 1.4; color: var(--text-secondary); overflow-wrap: break-word; }
.wa-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 3px; font-size: 12.5px; color: var(--text-muted); }
.wa-item__cat { font-weight: 700; }
.wa-item__flag { padding: 1px 7px; border-radius: 999px; background: var(--ink); font-size: 11px; font-weight: 800; color: var(--lime); }
.wa-item__dot { width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--violet); }

@media (max-width: 767.98px) {
  .wa-panel {
    top: calc(64px + env(safe-area-inset-top));
    right: 8px;
    bottom: auto;
    left: 8px;
    width: auto;
    max-height: calc(100vh - 90px - var(--rp-bar-h, 0px));
    max-height: calc(100dvh - 90px - var(--rp-bar-h, 0px));
  }
}

@media (prefers-reduced-motion: reduce) { .wa-panel { animation: none; } }

/* ============================================================
   Watchlist (v0.23.0)  /watchlist/
   Brief: Slipio_Watchlist_UX_UI_Brief_v0.23.0.md. Script: watchlist.js.
   Reuses the league page's coloured header and tabs (.lp-hero, .lp-tab).
   ============================================================ */

.wl { display: flex; flex-direction: column; gap: 20px; }
.wl-hero__badge { background: var(--lime); color: var(--ink); }
.wl-hero .lp-hero__meta { max-width: 560px; margin-top: 4px; line-height: 1.5; }
.wl-hero .lp-hero__name { margin-top: 0; }
.wl-settings { text-decoration: none; }
.wl-tabs { flex-wrap: wrap; }
.wl-tab { display: inline-flex; align-items: center; gap: 8px; }
.wl-tab__count { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); font-size: 12px; font-weight: 800; color: var(--mist); text-align: center; }
.wl-tab[aria-selected="true"] .wl-tab__count { background: var(--lime); color: var(--ink); }
.wl-tab__new { padding: 1px 8px; border-radius: 999px; background: var(--violet); font-size: 12px; font-weight: 800; color: var(--white); }

.wl-group__count { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 26px; margin-left: 6px; padding: 0 8px; border-radius: 999px; background: var(--ink); font-family: var(--font-ui); font-size: 13px; font-weight: 800; color: var(--lime); vertical-align: 3px; }

.wl-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 1000px) { .wl-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.wl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 18px 16px 22px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  background: var(--white);
}
.wl-card::before { content: ''; position: absolute; top: 0; bottom: 0; left: 0; width: 5px; background: var(--steel); }
.wl-card--matches::before { background: var(--violet); }
.wl-card--teams::before { background: var(--lime); }
.wl-card--players::before { background: var(--ink); }
.wl-card--competitions::before { background: var(--steel); }
.wl-card.is-yours { border-color: #C9E86F; background: linear-gradient(180deg, rgba(199, 255, 47, 0.14), var(--white) 60%); }
.wl-card.is-muted { background: #FAFBFC; }
.wl-card.is-muted .wl-card__head, .wl-card.is-muted .wl-facts { opacity: 0.72; }

.wl-card__head { display: flex; align-items: center; gap: 14px; min-width: 0; }
.wl-crest { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: contain; }
.wl-crest--text { background: var(--ice); font-size: 13px; font-weight: 800; color: var(--slate); }
.wl-pair { display: inline-flex; flex: none; }
.wl-pair .wl-crest { width: 36px; height: 36px; box-shadow: 0 0 0 2px var(--white); background-color: var(--white); }
.wl-pair .wl-crest--text { background: var(--ice); }
.wl-pair .wl-crest + .wl-crest { margin-left: -10px; }
.wl-badge { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 13px; background: var(--lime); font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--ink); }
.wl-badge.is-uefa { background: var(--violet); color: var(--white); }
.wl-card__titles { min-width: 0; }
.wl-card__top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.wl-card__name { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--ink); text-decoration: none; overflow-wrap: break-word; }
.wl-card__name:hover { text-decoration: underline; text-decoration-color: var(--violet); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.wl-card__name:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 4px; }
.wl-card__sub { margin: 2px 0 0; font-size: 13.5px; color: var(--text-muted); }
.wl-type { padding: 2px 8px; border-radius: 999px; background: var(--ice); font-size: 11.5px; font-weight: 800; color: var(--slate); }
.wl-yours { padding: 2px 8px; border-radius: 999px; background: var(--lime); font-size: 11.5px; font-weight: 800; color: var(--ink); }

.wl-facts { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.wl-fact { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; font-size: 14px; }
.wl-fact dt { font-weight: 700; color: var(--text-muted); }
.wl-fact dd { margin: 0; min-width: 0; color: var(--ink); overflow-wrap: break-word; }
.wl-fact--ok dd { font-weight: 600; }
.wl-fact--warn dd { font-weight: 700; color: var(--error); }
.wl-fact--lean dd { font-weight: 700; color: #5B36D6; }
.wl-fact--done dd { font-weight: 700; }
.wl-link { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.wl-link:hover { text-decoration-color: var(--violet); }
.wl-form { display: inline-flex; gap: 3px; vertical-align: middle; }
.wl-form .mi-chip--sm { width: 20px; height: 20px; border-radius: 6px; font-size: 10.5px; }

.wl-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border-subtle); }
.wl-btn {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1.5px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--white);
  font-family: var(--font-ui);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.wl-btn:hover { border-color: var(--ink); }
.wl-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--lime); }
.wl-btn--remove:hover { border-color: var(--error); color: var(--error); }
.wl-btn:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }

.wl-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 24px; border: 1.5px dashed var(--mist); border-radius: 18px; background: rgba(255, 255, 255, 0.7); }
.wl-empty p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--text-secondary); }
.wl-empty .btn { width: auto; }
.wl-empty--big { align-items: center; padding: 40px 24px; text-align: center; }
.wl-empty__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.wl-more { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 16px 20px; border-radius: 16px; background: var(--ice); font-size: 14.5px; }
.wl-more__text { margin: 0; font-weight: 700; color: var(--text-secondary); }

.wl-alertbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 14px 18px; border: 1px solid var(--border-subtle); border-radius: 16px; background: var(--white); }
.wl-select { display: inline-flex; align-items: center; gap: 10px; }
.wl-select__label { font-size: 14px; font-weight: 700; color: var(--text-secondary); }
.wl-select__input {
  height: 40px;
  padding: 0 36px 0 12px;
  border: 1.5px solid var(--border-subtle);
  border-radius: 10px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5l3 3 3-3' stroke='%23101114' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
  font-family: var(--font-ui);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  appearance: none;
  -webkit-appearance: none;
}
.wl-select__input:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.wl-alertbar__count { font-size: 14px; font-weight: 700; color: #5B36D6; }
.wl-markall { width: auto; height: 40px; margin-left: auto; padding: 0 16px; font-size: 14px; }

.wl-day { display: flex; flex-direction: column; gap: 8px; }
.wl-day__title { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); }
.wa-list--page { overflow: hidden; border: 1px solid var(--border-subtle); border-radius: 16px; background: var(--white); }
.wa-list--page .wa-item__link { padding: 15px 18px; }

.wl-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--rp-bar-h, 0px) + 96px);
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: calc(100vw - 32px);
  padding: 12px 14px 12px 18px;
  border-radius: 14px;
  background: var(--ink);
  box-shadow: 0 16px 40px -14px rgba(16, 17, 20, 0.6);
  font-size: 14.5px;
  color: var(--white);
  transform: translateX(-50%);
}
.wl-toast[hidden] { display: none; }
.wl-toast__undo { padding: 6px 10px; border: 0; border-radius: 8px; background: var(--lime); font-family: var(--font-ui); font-size: 14px; font-weight: 800; color: var(--ink); cursor: pointer; }
.wl-toast__undo:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }

@media (max-width: 767.98px) {
  .wl-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wl-tab { justify-content: center; padding: 12px 4px 10px; font-size: 13.5px; gap: 6px; }
  .wl-tab__new { padding: 1px 6px; font-size: 11px; }
  .wl-card { padding: 16px 14px 14px 18px; }
  .wl-fact { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .wl-markall { margin-left: 0; }
  .wl-select { width: 100%; }
  .wl-select__input { flex: 1 1 auto; }
  .lp-hero .wl-settings { width: 100%; justify-content: center; }
}

/* v0.23.0: Account > Notifications, quiet hours time range */
.ac-quiet { display: flex; flex-wrap: wrap; gap: 12px 18px; margin: 4px 0 12px 34px; }
.ac-quiet__field { display: flex; align-items: center; gap: 10px; }
.ac-quiet__label { font-size: 14px; font-weight: 700; color: var(--text-secondary); }
.ac-quiet .field-input { width: auto; min-width: 110px; }
.ac-quiet .field-input:disabled { opacity: 0.5; }
@media (max-width: 479.98px) { .ac-quiet { margin-left: 0; } }
@media (max-width: 419.98px) {
  .wa-panel__head { flex-wrap: nowrap; }
  .wa-panel__count { display: none; }
  .wa-panel__title + .wa-panel__close { margin-left: auto; }
}

/* ============================================================
   My Predictions (v0.24.0)  /predictions/
   Brief: Slipio_My_Predictions_UX_UI_Brief_v0.24.0.md. Script: my-predictions.js.
   Reuses the league page header and tabs (.lp-hero, .lp-tab, .lp-seg).
   Colour: kind of set (Steady lime, Balanced violet, Bold ink), the
   progress bars, the status pills and the dark Insights card.
   ============================================================ */

.mp { display: flex; flex-direction: column; gap: 20px; }
.mp-hero__badge { background: var(--lime); color: var(--ink); }
.mp-build { width: auto; height: 48px; padding: 0 22px; }

/* Filters */
.mp-filters { display: flex; flex-wrap: wrap; gap: 12px 26px; padding: 16px 18px; border: 1px solid var(--border-subtle); border-radius: 18px; background: var(--white); }
.mp-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.mp-filter__label { font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); }
.mp-seg { flex-wrap: wrap; }
.mp-filter--dark .mp-filter__label { color: var(--mist); }
.mp-filter--dark .lp-seg { background: rgba(255, 255, 255, 0.08); }
.mp-filter--dark .lp-seg__btn { color: var(--mist); }
.mp-filter--dark .lp-seg__btn[aria-checked="true"] { background: var(--lime); color: var(--ink); }
.mp-filter--dark .lp-seg__btn:focus-visible { outline-color: var(--lime); }

/* Tiles */
.mp-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.4fr); gap: 12px; margin: 0; }
.mp-tile { padding: 14px 16px; border: 1px solid var(--border-subtle); border-radius: 16px; background: var(--white); }
.mp-tile--lime { border-color: var(--lime); background: rgba(199, 255, 47, 0.22); }
.mp-tile--wide { background: var(--ink); border-color: var(--ink); }
.mp-tile__label { font-size: 12.5px; font-weight: 700; color: var(--text-muted); }
.mp-tile__value { margin: 4px 0 0; font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--ink); }
.mp-tile--wide .mp-tile__label, .mp-tile--wide .mp-tile__note { color: var(--mist); }
.mp-tile--wide .mp-tile__value { color: var(--lime); }
.mp-tile__note { margin: 2px 0 0; font-size: 13px; }
.mp-count { margin: 0; font-size: 14px; color: var(--text-muted); }

/* Sets */
.mp-sets { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.mp-set { overflow: hidden; border: 1px solid var(--border-subtle); border-radius: 18px; background: var(--white); transition: box-shadow 0.15s var(--ease), border-color 0.15s var(--ease); }
.mp-set:hover { border-color: var(--mist); box-shadow: 0 10px 28px -20px rgba(16, 17, 20, 0.5); }
.mp-set.is-open { border-color: var(--ink); box-shadow: 0 14px 34px -22px rgba(16, 17, 20, 0.55); }

.mp-set__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1.2fr) minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px 18px;
  width: 100%;
  padding: 16px 18px;
  border: 0;
  background: none;
  font-family: var(--font-ui);
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}
.mp-set__head:focus-visible { outline: 3px solid var(--violet); outline-offset: -3px; border-radius: 18px; }
.mp-set.is-open .mp-set__head { background: #F6F9FA; }

.mp-kind { display: inline-flex; align-items: center; justify-content: center; min-width: 78px; padding: 6px 10px; border-radius: 10px; font-size: 12.5px; font-weight: 800; }
.mp-kind--steady { background: var(--lime); color: var(--ink); }
.mp-kind--balanced { background: var(--violet); color: var(--white); }
.mp-kind--bold { background: var(--ink); color: var(--lime); }
.mp-set__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mp-set__title { font-family: var(--font-display); font-size: 16.5px; font-weight: 600; }
.mp-set__meta { font-size: 13px; color: var(--text-muted); }
.mp-set__mid { min-width: 0; }
.mp-set__right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.mp-set__est { font-size: 12.5px; color: var(--text-muted); white-space: nowrap; }
.mp-set__toggle { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; background: var(--ice); font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.mp-set__head:hover .mp-set__toggle { background: var(--lime); }
.mp-set__toggle svg { transition: transform 0.2s var(--ease); }
.mp-set__head[aria-expanded="true"] .mp-set__toggle svg { transform: rotate(180deg); }

.mp-progress { display: flex; flex-direction: column; gap: 6px; }
.mp-progress__bar { display: flex; gap: 2px; height: 10px; overflow: hidden; border-radius: 999px; background: var(--ice); }
.mp-progress__seg { flex: 1 1 0; }
.mp-progress__seg--hit { background: #9CCB00; }
.mp-progress__seg--miss { background: var(--error); }
.mp-progress__seg--open { background: var(--mist); }
.mp-progress__text { margin: 0; font-size: 13px; color: var(--text-secondary); }

.mp-pill { display: inline-flex; padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.mp-pill--progress { background: var(--ice); color: var(--slate); box-shadow: inset 0 0 0 1.5px var(--mist); }
.mp-pill--all { background: var(--lime); color: var(--ink); }
.mp-pill--some { background: var(--ink); color: var(--white); }

.mp-set__body { padding: 4px 18px 18px; border-top: 1px solid var(--border-subtle); }
.mp-set__body[hidden] { display: none; }
.mp-day { margin: 16px 0 8px; font-size: 12.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); }
.mp-preds { margin: 0; padding: 0; list-style: none; border: 1px solid var(--border-subtle); border-radius: 14px; overflow: hidden; }
.mp-pred { display: grid; grid-template-columns: 30px minmax(0, 1fr) minmax(0, 1.1fr) 130px; align-items: center; gap: 12px; padding: 12px 14px; }
.mp-pred + .mp-pred { border-top: 1px solid var(--border-subtle); }
.mp-pred__icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; }
.mp-pred--hit .mp-pred__icon { background: var(--lime); color: var(--ink); }
.mp-pred--miss .mp-pred__icon { background: rgba(197, 34, 31, 0.1); color: var(--error); }
.mp-pred--open .mp-pred__icon { background: var(--ice); color: var(--slate); }
.mp-pred__info, .mp-pred__what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mp-pred__match { font-size: 14.5px; font-weight: 700; color: var(--ink); text-decoration: none; overflow-wrap: break-word; }
a.mp-pred__match { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a.mp-pred__match:hover { text-decoration-color: var(--violet); }
.mp-pred__meta { font-size: 12.5px; color: var(--text-muted); }
.mp-pred__text { font-size: 14px; font-weight: 600; overflow-wrap: break-word; }
.mp-pred__est { font-size: 12.5px; font-weight: 700; color: #5B36D6; }
.mp-pred__result { font-size: 13px; font-weight: 700; text-align: right; }
.mp-pred--hit .mp-pred__result { color: var(--ink); }
.mp-pred--miss .mp-pred__result { color: var(--error); }
.mp-pred--open .mp-pred__result { color: var(--text-muted); }
.mp-set__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.mp-set__actions .btn { width: auto; height: 42px; padding: 0 16px; font-size: 14px; }

/* Empty */
.mp-empty__img { width: 64px; height: auto; transform: rotate(-8deg); }
.mp-empty .btn { width: auto; }

/* Insights */
.mp-ihead { display: flex; flex-direction: column; gap: 18px; padding: 24px; border: 0; border-radius: 22px; background: radial-gradient(circle at 100% 0, rgba(139, 92, 255, 0.5), transparent 45%), var(--ink); color: var(--white); }
.mp-ihead__top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; }
.mp-ihead__title { margin: 0; font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.mp-ihead__sub { margin: 6px 0 0; max-width: 620px; font-size: 14.5px; line-height: 1.5; color: var(--mist); }
.mp-ihead .tag-illustrative { background: transparent; border-color: rgba(255, 255, 255, 0.35); color: var(--mist); }
.mp-bignums { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.mp-bignums .lp-bignum:first-child .lp-bignum__value { color: var(--white); }
.mp-bignums .lp-bignum:nth-child(2) .lp-bignum__value { color: var(--lime); }
.lp-bignum__value.is-pos { color: var(--lime); }
.lp-bignum__value.is-neg { color: #FF8A84; }
.mp-bignum__note { margin: 6px 0 0; font-size: 13px; color: var(--mist); }

.mp-chart, .mp-rows, .mp-focuscard { padding: 0 0 8px; }
.mp-chart__head { padding: 18px 20px 6px; }
.mp-two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 1000px) { .mp-two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.mp-div { margin: 0; padding: 6px 20px 12px; list-style: none; }
.mp-div__row { display: grid; grid-template-columns: minmax(110px, 0.9fr) minmax(0, 1.6fr) 74px; align-items: center; gap: 12px; padding: 7px 0; }
.mp-div__row.is-thin { opacity: 0.55; }
.mp-div__name { display: flex; flex-direction: column; min-width: 0; font-size: 14px; font-weight: 600; overflow-wrap: break-word; }
.mp-div__sub { font-size: 12px; font-weight: 500; color: var(--text-muted); }
.mp-div__track { position: relative; height: 12px; border-radius: 999px; background: var(--ice); }
.mp-div__track::after { content: ''; position: absolute; top: -3px; bottom: -3px; left: 50%; width: 2px; background: var(--mist); }
.mp-div__bar { position: absolute; top: 0; bottom: 0; border-radius: 999px; }
.mp-div__bar.is-pos { left: 50%; background: #9CCB00; }
.mp-div__bar.is-neg { right: 50%; background: var(--error); }
.mp-div__value { font-family: var(--font-display); font-size: 14.5px; font-weight: 700; text-align: right; white-space: nowrap; }
.mp-div__value.is-pos, .mp-row__value.is-pos { color: #4C7300; }
.mp-div__value.is-neg, .mp-row__value.is-neg { color: var(--error); }

.mp-focus { padding: 8px 20px 12px; }
.mp-focus__title { display: flex; align-items: center; gap: 8px; margin: 6px 0 10px; font-size: 13px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.mp-focus__title::before { content: ''; width: 10px; height: 10px; border-radius: 50%; }
.mp-focus__title.is-good::before { background: #9CCB00; }
.mp-focus__title.is-bad::before { background: var(--error); }
.mp-focus__none { margin: 0; font-size: 14px; color: var(--text-muted); }
.mp-focus__cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.mp-fcard { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border-radius: 16px; border-left: 5px solid; background: #F6F9FA; }
.mp-fcard.is-good { border-color: #9CCB00; background: rgba(199, 255, 47, 0.16); }
.mp-fcard.is-bad { border-color: var(--error); background: rgba(197, 34, 31, 0.05); }
.mp-fcard__group { font-size: 11.5px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--text-muted); }
.mp-fcard__name { font-family: var(--font-display); font-size: 17px; font-weight: 600; color: var(--ink); }
.mp-fcard__sub { font-size: 12.5px; color: var(--text-muted); }
.mp-fcard__value { margin-top: 6px; font-family: var(--font-display); font-size: 24px; font-weight: 700; }
.mp-fcard.is-good .mp-fcard__value { color: #4C7300; }
.mp-fcard.is-bad .mp-fcard__value { color: var(--error); }
.mp-fcard__note { font-size: 13px; color: var(--text-secondary); }

.mp-rowlist { margin: 0; padding: 6px 20px 12px; list-style: none; }
.mp-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; }
.mp-row + .mp-row { border-top: 1px solid var(--border-subtle); }
.mp-row__main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mp-row__name { font-size: 15px; font-weight: 700; }
.mp-row__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; color: var(--text-secondary); }
.mp-row__value { font-family: var(--font-display); font-size: 16px; font-weight: 700; white-space: nowrap; }
.mp-verdict { padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 800; }
.mp-verdict--ahead { background: var(--lime); color: var(--ink); }
.mp-verdict--behind { background: rgba(197, 34, 31, 0.1); color: var(--error); }
.mp-verdict--level { background: var(--ice); color: var(--slate); }
.mp-verdict--notyet { background: transparent; color: var(--text-muted); box-shadow: inset 0 0 0 1px var(--mist); }

.mp-how { padding: 14px 18px; border-radius: 16px; background: var(--ice); }
.mp-how summary { font-size: 15px; font-weight: 700; cursor: pointer; }
.mp-how summary:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
.mp-how__body p { margin: 10px 0 0; font-size: 14px; line-height: 1.55; color: var(--text-secondary); }

.mp-record { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-radius: 18px; background: var(--violet); color: var(--white); text-decoration: none; }
.mp-record:hover { background: #7A4BF0; }
.mp-record:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.mp-record__text { display: flex; flex-direction: column; gap: 4px; }
.mp-record__title { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.mp-record__sub { font-size: 14px; opacity: 0.9; }

/* Phones and tablets */
@media (max-width: 1199.98px) {
  .mp-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mp-tile--wide { grid-column: 1 / -1; }
  .mp-set__head { grid-template-columns: auto minmax(0, 1fr) auto; }
  .mp-set__mid { grid-column: 2 / 3; grid-row: 2; }
  .mp-set__right { grid-column: 3; grid-row: 1; }
  .mp-set__toggle { grid-column: 3; grid-row: 2; justify-self: end; }
}

@media (max-width: 767.98px) {
  .mp-hero .lp-hero__actions .btn { width: 100%; }
  .mp-filters { padding: 14px; }
  .mp-filter { width: 100%; }
  .mp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mp-tile:first-child { grid-column: 1 / -1; }
  .mp-set__head { grid-template-columns: minmax(0, 1fr) auto; padding: 14px; gap: 10px; }
  .mp-kind { grid-column: 1; grid-row: 1; justify-self: start; min-width: 0; }
  .mp-set__right { grid-column: 2; grid-row: 1; }
  .mp-set__main { grid-column: 1 / -1; grid-row: 2; }
  .mp-set__mid { grid-column: 1 / -1; grid-row: 3; }
  .mp-set__toggle { grid-column: 1 / -1; grid-row: 4; justify-content: center; justify-self: stretch; }
  .mp-set__est { white-space: normal; text-align: right; }
  .mp-set__body { padding: 0 12px 14px; }
  .mp-pred { grid-template-columns: 28px minmax(0, 1fr); gap: 4px 10px; }
  .mp-pred__icon { grid-row: 1 / 4; align-self: start; }
  .mp-pred__result { grid-column: 2; text-align: left; }
  .mp-set__actions .btn { width: 100%; }
  .mp-ihead { padding: 20px 16px; }
  .mp-bignums { grid-template-columns: minmax(0, 1fr); }
  .mp-div { padding: 6px 14px 12px; }
  .mp-div__row { grid-template-columns: minmax(0, 1fr) 70px; }
  .mp-div__track { grid-column: 1 / -1; grid-row: 2; }
  .mp-focus, .mp-rowlist { padding-left: 14px; padding-right: 14px; }
  .mp-chart__head { padding: 16px 14px 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .mp-set, .mp-set__toggle svg { transition: none; }
}

/* v0.25.0: Slippy keeps line breaks in bubbles (Scanner lists) */
.sl-bubble { white-space: pre-line; }

/* ============================================================
   The Scanner and Intelligence (v0.25.0)
   Brief: Slipio_Intelligence_Scanner_UX_UI_Brief_v0.25.0.md.
   Scripts: scanner-card.js (shared card), scanner.js (page),
   intelligence.js (hub), dash-scanner.js (Dashboard strip).
   Colour: each category has its own chip colour; strength has a
   meter (lime Strong, violet Notable, steel Worth knowing).
   ============================================================ */

.sc, .ih { display: flex; flex-direction: column; gap: 20px; }
.sc-hero__badge, .ih-hero__badge { background: var(--violet); color: var(--white); box-shadow: 0 10px 30px -10px rgba(139, 92, 255, 0.8); }
.sc-crumb { color: var(--lime); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.sc-crumb:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 4px; }
.lp-hero .lp-hero__eyebrow .tag-illustrative { background: transparent; border-color: rgba(255, 255, 255, 0.35); color: var(--mist); }
.ih-open { width: auto; height: 48px; padding: 0 22px; }

/* Bar */
.sc-bar { flex-direction: column; align-items: stretch; }
.sc-bar__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.sc-sort .wl-select__input { min-width: 200px; }
.sc-filters-link { margin-left: auto; background: none; border: 0; padding: 0; font: inherit; font-weight: 700; cursor: pointer; }

/* Category chips */
.sc-cats, .ih-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sc-catchip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px 0 14px;
  border: 1.5px solid var(--border-subtle); border-radius: 999px; background: var(--white);
  font-family: var(--font-ui); font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none; cursor: pointer;
}
.sc-catchip:hover { border-color: var(--ink); }
.sc-catchip[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.sc-catchip:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.sc-catchip__n { min-width: 24px; padding: 1px 7px; border-radius: 999px; background: var(--ice); font-size: 12px; text-align: center; color: var(--slate); }
.sc-catchip[aria-checked="true"] .sc-catchip__n { background: var(--lime); color: var(--ink); }
.sc-count { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text-muted); }
.sc-count strong { color: var(--ink); margin-right: 6px; }

/* Card */
.sc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 1000px) { .sc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .sc-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sc-card { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 18px 18px 14px; overflow: hidden; border: 1px solid var(--border-subtle); border-radius: 18px; background: var(--white); }
.sc-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--sc-c, var(--steel)); }
.sc-card.is-open { border-color: var(--ink); }
.sc-card--goals { --sc-c: #9CCB00; --sc-bg: rgba(199, 255, 47, 0.3); --sc-fg: #3F5E00; }
.sc-card--bothScore { --sc-c: #6BBF00; --sc-bg: rgba(156, 203, 0, 0.18); --sc-fg: #3F5E00; }
.sc-card--form { --sc-c: var(--violet); --sc-bg: rgba(139, 92, 255, 0.12); --sc-fg: #5B36D6; }
.sc-card--players { --sc-c: var(--ink); --sc-bg: var(--ink); --sc-fg: var(--lime); }
.sc-card--corners { --sc-c: var(--steel); --sc-bg: var(--ice); --sc-fg: var(--slate); }
.sc-card--cards { --sc-c: #E0B400; --sc-bg: rgba(224, 180, 0, 0.16); --sc-fg: #6B5500; }
.sc-card--lineups { --sc-c: var(--slate); --sc-bg: var(--ice); --sc-fg: var(--slate); }
.sc-card--availability { --sc-c: var(--error); --sc-bg: rgba(197, 34, 31, 0.08); --sc-fg: var(--error); }
.sc-card--info { --sc-c: var(--mist); --sc-bg: var(--ice); --sc-fg: var(--slate); }
.sc-card__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sc-cat { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--sc-bg, var(--ice)); font-size: 12.5px; font-weight: 800; color: var(--sc-fg, var(--slate)); }
.sc-strength { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border-radius: 999px; background: var(--ice); font-size: 12.5px; font-weight: 800; color: var(--ink); }
.sc-strength__meter { width: 46px; height: 6px; overflow: hidden; border-radius: 999px; background: rgba(16, 17, 20, 0.12); }
.sc-strength__fill { display: block; height: 100%; border-radius: inherit; background: var(--steel); }
.sc-strength--strong { background: var(--ink); color: var(--white); }
.sc-strength--strong .sc-strength__meter { background: rgba(255, 255, 255, 0.2); }
.sc-strength--strong .sc-strength__fill { background: var(--lime); }
.sc-strength--notable .sc-strength__fill { background: var(--violet); }
.sc-strength__num { font-variant-numeric: tabular-nums; }
.sc-foryou { padding: 3px 9px; border-radius: 999px; background: var(--lime); font-size: 12px; font-weight: 800; color: var(--ink); }
.sc-match { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 2px 0 0; font-size: 14px; font-weight: 700; color: var(--ink); }
.sc-crest { width: 20px; height: 20px; flex: none; border-radius: 50%; object-fit: contain; }
.sc-crest--text { display: inline-flex; align-items: center; justify-content: center; background: var(--ice); font-size: 8.5px; font-weight: 800; color: var(--slate); }
.sc-match__v { font-weight: 600; color: var(--text-muted); }
.sc-match__meta { flex-basis: 100%; font-size: 12.5px; font-weight: 600; color: var(--text-muted); }
.sc-card__title { margin: 4px 0 0; font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--ink); }
.sc-card__text { margin: 0; font-size: 15px; line-height: 1.45; color: var(--text-secondary); }
.sc-why { margin-top: 2px; }
.sc-why__label { margin: 0 0 4px; font-size: 11.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }
.sc-why__list { margin: 0; padding: 0; list-style: none; }
.sc-why__list li { position: relative; padding-left: 16px; font-size: 13.5px; line-height: 1.5; color: var(--ink); }
.sc-why__list li::before { content: ''; position: absolute; left: 2px; top: 0.6em; width: 6px; height: 6px; border-radius: 50%; background: var(--sc-c, var(--violet)); }
.sc-evidence { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: 14px; background: #F6F9FA; }
.sc-evidence[hidden] { display: none; }
.sc-evidence__form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.sc-evidence__k { font-size: 12.5px; font-weight: 700; color: var(--text-muted); }
.sc-chips { display: inline-flex; flex-wrap: wrap; gap: 3px; }
.sc-chips .mi-chip--sm { width: 20px; height: 20px; border-radius: 6px; font-size: 10.5px; }
.sc-evidence__data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; margin: 0; }
.sc-evidence__data div { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.sc-evidence__data dt { color: var(--text-muted); }
.sc-evidence__data dd { margin: 0; font-weight: 700; text-transform: capitalize; }
.sc-evidence__data .is-complete, .sc-evidence__data .is-confirmed { color: #4C7300; }
.sc-evidence__data .is-partial, .sc-evidence__data .is-predicted { color: var(--slate); }
.sc-evidence__note { margin: 0; font-size: 12.5px; color: var(--text-muted); }
.sc-card__foot { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border-subtle); }
.sc-facts { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; font-size: 12.5px; color: var(--text-muted); }
.sc-conf--high { color: #4C7300; font-weight: 700; }
.sc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sc-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px;
  border: 1.5px solid var(--border-subtle); border-radius: 10px; background: var(--white);
  font-family: var(--font-ui); font-size: 13.5px; font-weight: 700; color: var(--ink); text-decoration: none; cursor: pointer;
}
.sc-btn:hover { border-color: var(--ink); }
.sc-btn:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.sc-btn--save[aria-pressed="true"] { background: var(--violet); border-color: var(--violet); color: var(--white); }
.sc-btn--match { margin-left: auto; background: var(--ink); border-color: var(--ink); color: var(--white); }
.sc-btn--match:hover { background: var(--graphite); color: var(--lime); }
.sc-card--compact .sc-card__title { font-size: 17px; }
.sc-card--compact .sc-card__text { font-size: 14px; }

/* Matches view */
.sc-matches { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; list-style: none; }
.sc-mblock { border: 1px solid var(--border-subtle); border-radius: 20px; background: var(--white); overflow: hidden; }
.sc-mblock__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 16px 18px; background: var(--ink); color: var(--white); }
.sc-mblock__titles { flex: 1 1 240px; min-width: 0; }
.sc-mblock__name { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--white); text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.sc-mblock__name:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
.sc-mblock__meta { margin: 4px 0 0; font-size: 13px; color: var(--mist); }
.sc-mblock__count { padding: 4px 10px; border-radius: 999px; background: var(--lime); font-size: 12.5px; font-weight: 800; color: var(--ink); }
.sc-mblock__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 0; padding: 14px; list-style: none; background: #F6F9FA; }
@media (min-width: 1000px) { .sc-mblock__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.sc-more { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sc-more .btn { width: auto; }
.sc-more__note { margin: 0; font-size: 13px; color: var(--text-muted); }

/* Drawer radio pills */
.lg-pill { position: relative; display: inline-flex; }
.lg-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lg-pill span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border: 1.5px solid var(--border-subtle); border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer; }
.lg-pill input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--lime); }
.lg-pill input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 2px; }
.sc-drawer-pills, #scFilters .lg-drawer__pills { flex-direction: row; flex-wrap: wrap; }

/* On match and team pages */
.sc-onpage__box { display: flex; flex-direction: column; gap: 12px; }
.sc-onpage__loading { margin: 0; font-size: 14.5px; color: var(--text-muted); }
.sc-onpage__all { align-self: flex-start; }

/* Intelligence hub */
.ih-scanner { display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: 24px; background: radial-gradient(circle at 100% 0, rgba(139, 92, 255, 0.18), transparent 50%), var(--ice); }
.ih-scanner__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.ih-scanner__title { margin: 0; font-family: var(--font-display); font-size: 26px; font-weight: 600; }
.ih-scanner__sub { margin: 4px 0 0; font-size: 15px; color: var(--text-secondary); }
.ih-scanner__btn { width: auto; height: 46px; padding: 0 20px; }
@media (min-width: 1200px) { .ih-scanner__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ih-note { margin: 0; font-size: 13px; color: var(--text-muted); }
.ih-doors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.ih-door__link { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px; border-radius: 18px; text-decoration: none; transition: transform 0.15s var(--ease); }
.ih-door__link:hover { transform: translateY(-2px); }
.ih-door__link:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.ih-door--lime .ih-door__link { background: var(--lime); color: var(--ink); }
.ih-door--violet .ih-door__link { background: var(--violet); color: var(--white); }
.ih-door--ink .ih-door__link { background: var(--ink); color: var(--white); }
.ih-door--ice .ih-door__link { background: var(--white); color: var(--ink); border: 1px solid var(--border-subtle); }
.ih-door__title { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.ih-door__text { font-size: 14px; line-height: 1.45; opacity: 0.9; }
.ih-door__arrow { margin-top: auto; }
.ih-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.ih-rows { margin: 0; padding: 0; list-style: none; }
.ih-row + .ih-row { border-top: 1px solid var(--border-subtle); }
.ih-row__link { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 11px 18px; color: var(--ink); text-decoration: none; }
.ih-row__link:hover { background: var(--ice); }
.ih-row__link:focus-visible { outline: 2px solid var(--violet); outline-offset: -2px; }
.ih-row__when { font-size: 12.5px; font-weight: 700; color: var(--text-muted); }
.ih-row__match { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 14px; font-weight: 700; }
.ih-row__v { color: var(--text-muted); font-weight: 600; }
.ih-score { padding: 2px 8px; border-radius: 8px; background: var(--ink); font-family: var(--font-display); font-size: 13.5px; color: var(--white); }
.ih-row__side { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.ih-lean { padding: 2px 8px; border-radius: 999px; background: rgba(139, 92, 255, 0.12); font-size: 12px; font-weight: 800; color: #5B36D6; }
.ih-insights { padding: 2px 8px; border-radius: 999px; background: var(--lime); font-size: 12px; font-weight: 800; color: var(--ink); }
.ih-verdict { padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.ih-verdict.is-right { background: var(--lime); color: var(--ink); }
.ih-verdict.is-wrong { background: var(--ice); color: var(--slate); }
.ih-record { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 22px 24px; border-radius: 20px; background: var(--graphite); color: var(--white); }
.ih-record__title { margin: 0; font-family: var(--font-display); font-size: 21px; font-weight: 600; }
.ih-record__sub { margin: 6px 0 0; max-width: 640px; font-size: 14.5px; line-height: 1.5; color: var(--mist); }

/* Dashboard strip */
.dash-scanner { padding: 22px; border-radius: 22px; background: radial-gradient(circle at 100% 0, rgba(139, 92, 255, 0.16), transparent 50%), var(--ice); }
.dash-scanner__btn { width: auto; height: 42px; padding: 0 16px; }

@media (max-width: 1199.98px) { .ih-doors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 999.98px) { .ih-two { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767.98px) {
  .sc-filters-link { margin-left: 0; }
  .sc-sort { width: 100%; }
  .sc-sort .wl-select__input { flex: 1 1 auto; min-width: 0; }
  .sc-card { padding: 16px 14px 12px; }
  .sc-evidence__data { grid-template-columns: minmax(0, 1fr); }
  .sc-btn--match { margin-left: 0; }
  .ih-scanner, .dash-scanner { padding: 18px 14px; }
  .ih-scanner__btn, .ih-open { width: 100%; }
  .ih-doors { grid-template-columns: minmax(0, 1fr); }
  .ih-row__link { grid-template-columns: minmax(0, 1fr); padding: 11px 14px; }
  .ih-row__side { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) { .ih-door__link { transition: none; } }

/* ============================================================
   Slipio's Record (v0.26.0)  /intelligence/record/
   Brief: Slipio_Record_UX_UI_Brief_v0.26.0.md. Script: record.js.
   Colour: lime header badge; "said" marks violet, "happened" marks
   lime on a track; result pills; verdict badges.
   ============================================================ */

.rc { display: flex; flex-direction: column; gap: 20px; }
.rc-hero__badge { background: var(--lime); color: var(--ink); }
.rc-intro { display: flex; flex-direction: column; gap: 4px; }
.rc-intro .lp-section__sub { max-width: 760px; line-height: 1.5; }
.rc-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 18px; }
.rc-select { flex-direction: column; align-items: stretch; gap: 6px; }
.rc-select .wl-select__input { width: 100%; }
.rc-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.rc-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.rc-table th, .rc-table td { padding: 11px 14px; border-top: 1px solid var(--border-subtle); text-align: left; }
.rc-table thead th { border-top: 0; background: #F6F9FA; font-size: 12.5px; font-weight: 700; color: var(--text-muted); }
.rc-table tbody th { font-weight: 700; color: var(--ink); }
.rc-table .is-num { text-align: right; }
.rc-table .is-strong { font-weight: 800; color: var(--ink); }
.rc-table tr.is-thin { opacity: 0.55; }
.rc-vis { width: 30%; min-width: 120px; }
.rc-track { position: relative; display: block; height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--ice), #DDE6EA); }
.rc-mark { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 2px solid var(--white); }
.rc-mark--said { background: var(--violet); }
.rc-mark--happened { background: #9CCB00; box-shadow: 0 0 0 1px #9CCB00; }
.rc-mark--inline { position: relative; display: inline-block; top: 2px; margin: 0; }
.rc-key { margin: 0; padding: 12px 14px 16px; font-size: 13px; color: var(--text-muted); white-space: pre-wrap; }
.rc-types .lp-card__sub { max-width: 640px; }

.rc-list { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rc-row { overflow: hidden; border: 1px solid var(--border-subtle); border-radius: 16px; background: var(--white); }
.rc-row.is-open { border-color: var(--ink); }
.rc-row__head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 54px 118px 18px; align-items: center; gap: 8px 16px; width: 100%; padding: 13px 16px; border: 0; background: none; font-family: var(--font-ui); text-align: left; color: var(--ink); cursor: pointer; }
.rc-row__head:hover { background: #F6F9FA; }
.rc-row__head:focus-visible { outline: 3px solid var(--violet); outline-offset: -3px; border-radius: 16px; }
.rc-row__match, .rc-row__what { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rc-row__teams { font-size: 15px; font-weight: 700; overflow-wrap: break-word; }
.rc-row__meta { font-size: 12.5px; color: var(--text-muted); }
.rc-row__type { font-size: 12px; font-weight: 700; color: var(--text-muted); }
.rc-row__text { font-size: 14.5px; font-weight: 700; overflow-wrap: break-word; }
.rc-row__pct { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: #5B36D6; text-align: right; }
.rc-pill { justify-self: end; padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.rc-pill--hit { background: var(--lime); color: var(--ink); }
.rc-pill--miss { background: rgba(197, 34, 31, 0.1); color: var(--error); }
.rc-pill--open { background: var(--ice); color: var(--slate); box-shadow: inset 0 0 0 1.5px var(--mist); }
.rc-pill--void { background: var(--ice); color: var(--text-muted); }
.rc-row__chev { transition: transform 0.2s var(--ease); }
.rc-row__head[aria-expanded="true"] .rc-row__chev { transform: rotate(180deg); }
.rc-row__body { display: flex; flex-direction: column; gap: 10px; padding: 4px 16px 16px; border-top: 1px solid var(--border-subtle); background: #F6F9FA; }
.rc-row__body[hidden] { display: none; }
.rc-row__body .text-link { align-self: flex-start; }
.rc-detail { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 0; }
.rc-detail div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; font-size: 14px; }
.rc-detail dt { font-weight: 700; color: var(--text-muted); }
.rc-detail dd { margin: 0; }

.rc-rel, .rc-replay { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.rc-relcard, .rc-replaycard { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; }
.rc-replaycard { padding: 18px 0 6px; }
.rc-replaycard .rc-relcard__top { padding: 0 20px; }
.rc-relcard__top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.rc-relcard__title { margin: 0; font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.rc-relcard__sub { margin: -4px 0 0; font-size: 13.5px; color: var(--text-muted); }
.rc-verdict { padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; }
.rc-verdict--good { background: var(--lime); color: var(--ink); }
.rc-verdict--fair { background: rgba(139, 92, 255, 0.14); color: #5B36D6; }
.rc-verdict--needs-work { background: rgba(197, 34, 31, 0.1); color: var(--error); }
.rc-sim { font-size: 12.5px; color: var(--text-muted); }
.rc-void { margin-left: auto; font-size: 12.5px; color: var(--text-muted); }
.rc-relnums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; }
.rc-relnum { padding: 12px 14px; border-radius: 14px; background: #F6F9FA; }
.rc-relnum dt { font-size: 12.5px; font-weight: 700; color: var(--text-muted); }
.rc-relnum dd { margin: 4px 0 0; font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.rc-relnum.is-lime { background: var(--ink); }
.rc-relnum.is-lime dt { color: var(--mist); }
.rc-relnum.is-lime dd { color: var(--lime); }
.rc-relnum.is-violet dd { color: #5B36D6; }
.rc-note { margin: 0; font-size: 13px; color: var(--text-muted); }
.rc-ranges-btn { align-self: flex-start; width: auto; height: 40px; padding: 0 16px; font-size: 14px; }
.rc-ranges { display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--border-subtle); border-radius: 14px; overflow: hidden; }
.rc-ranges[hidden] { display: none; }
.rc-ranges .rc-note { padding: 0 14px 12px; }
.rc-strip { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; padding: 14px 18px; border-radius: 16px; background: var(--ink); color: var(--white); }
.rc-strip div { display: flex; gap: 8px; align-items: baseline; }
.rc-strip dt { font-size: 13px; color: var(--mist); }
.rc-strip dd { margin: 0; font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--lime); }
.rc-notenough { color: var(--text-muted); font-weight: 600; }
.rc-gap { white-space: nowrap; }
.rc-gap.is-pos { color: #4C7300; font-weight: 800; }
.rc-gap.is-neg { color: var(--error); font-weight: 800; }
.rc-gap.is-small { color: var(--text-secondary); font-weight: 700; }

/* Intelligence hub: the record is now a link */
.ih-record__link { flex: none; width: auto; height: 46px; padding: 0 20px; }

@media (max-width: 1023.98px) {
  .rc-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rc-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rc-relnums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rc-row__head { grid-template-columns: minmax(0, 1fr) auto 18px; }
  .rc-row__what { grid-column: 1; grid-row: 2; }
  .rc-row__pct { grid-column: 2; grid-row: 2; }
  .rc-pill { grid-column: 2; grid-row: 1; }
  .rc-row__chev { grid-column: 3; grid-row: 1 / 3; }
}
@media (max-width: 767.98px) {
  .rc-filters { grid-template-columns: minmax(0, 1fr); }
  .rc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rc-tiles .mp-tile:first-child { grid-column: 1 / -1; }
  .rc-table th, .rc-table td { padding: 10px 8px; }
  .rc-types .rc-table td:nth-child(3), .rc-types .rc-table th:nth-child(3), .rc-types .rc-table .rc-vis, .rc-types .rc-table thead th:last-child { display: none; }
  .rc-table--ranges .rc-vis, .rc-table--ranges thead th:last-child { display: none; }
  .rc-detail div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .rc-row__head { padding: 12px; }
  .rc-relcard { padding: 16px 14px; }
  .rc-replaycard .rc-relcard__top { padding: 0 14px; }
  .rc-void { margin-left: 0; }
  .rc-key { white-space: normal; }
  .ih-record__link { width: 100%; }
}
@media (max-width: 767.98px) {
  .rc-hero .lp-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; padding: 0 12px; }
  .rc-hero .lp-tab { padding: 13px 6px 11px; font-size: 14px; line-height: 1.25; white-space: normal; text-align: center; }
}
@media (max-width: 419.98px) {
  .rc-table th, .rc-table td { padding: 9px 5px; font-size: 13px; }
  .rc-table th:first-child, .rc-table td:first-child { padding-left: 12px; }
  .rc-table th:last-child, .rc-table td:last-child { padding-right: 12px; }
  .rc-hero .lp-tab { font-size: 13px; }
  .rc-table thead th { font-size: 11.5px; padding-left: 4px; padding-right: 4px; }
  .rc-table td { padding-left: 4px; padding-right: 4px; }
  .rc-gap { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { .rc-row__chev { transition: none; } }
