/* ═══════════════════════════════════════════════════════════════════════════
   "B" BIENKOWSKI · THE DIGITAL TENNIS COUNTRY CLUB
   Unified Design System — v3.0
   A single source of truth. Luxury tennis club, translated to the screen.

   Architecture:
     1. Design Tokens (CSS Variables)
     2. Reset & Base
     3. Typography
     4. Layout & Containers
     5. Navigation
     6. Buttons
     7. Cards & Surfaces
     8. Badges & Status
     9. Forms
     10. Stats, Progress & Charts
     11. Domain Cards (Match / Court / Practice / Video / Challenge / Event)
     12. Leaderboard & Tables
     13. Modals & Overlays
     14. Motion & Utilities
     15. Responsive (mobile-first)
   ═══════════════════════════════════════════════════════════════════════════ */


/* ─────────────────────────────────────────────────────────────────────────
   1. DESIGN TOKENS
   ───────────────────────────────────────────────────────────────────────── */
:root {
  /* ── Champagne Gold (the hero accent — used like jewelry) ── */
  --gold:          #C9A86A;   /* Champagne — flat accent */
  --gold-light:    #E6C887;   /* Highlight */
  --gold-deep:     #A07E45;   /* Antique */
  --gold-bronze:   #8A6A38;   /* Shadow */
  --gold-line:     rgba(201,168,106,0.32);
  --gold-line-2:   rgba(201,168,106,0.16);
  --gold-wash:     rgba(201,168,106,0.10);
  /* Metallic gradient — for borders, CTAs, hairlines that should "catch light" */
  --gold-metal:    linear-gradient(145deg, #E6C887 0%, #C9A86A 38%, #9A7A42 72%, #C9A86A 100%);

  /* ── Near-black field (the brand sits on near-black; faintly warm, never dead flat) ── */
  /* Warmth Pass v1: uniform small brightness lift — preserves the tier-to-tier
     contrast (cards still separate from the ground) while easing the "too dark" read. */
  --noir:          #0E0E11;   /* Deepest base — matches the logo backdrop */
  --noir-2:        #131318;   /* Lifted base */
  --noir-3:        #191A21;   /* Default card on dark */

  /* ── Club Green (forest panels / secondary surfaces) ── */
  --green:         #14271E;   /* Forest panel */
  --green-soft:    #1C3528;   /* Lifted forest */
  --green-deep:    #0E1C15;   /* Sunken forest */
  --green-dark:    var(--green-deep);

  /* ── Clay (photography & rare warm accents only — minimal UI use) ── */
  --clay:          #A84B2A;
  --clay-deep:     #8E3D22;
  --clay-soft:     #C06A47;
  --clay-wash:     rgba(168,75,42,0.10);
  --clay-line:     rgba(168,75,42,0.22);

  /* ── Sage (Warmth Pass v1: muted fourth accent — secondary badges / tertiary
     status, to break up green/gold monotony. NOT a CTA colour, not a --win/--loss
     replacement. Defined here; wired into components in a later pass.) ── */
  --sage:          #A8B39E;
  --sage-soft:     #B9C3B0;
  --sage-deep:     #8B9682;
  --sage-wash:     rgba(168,179,158,0.10);
  --sage-line:     rgba(168,179,158,0.22);

  /* ── Warm light tones (for cream contrast cards: attributes, league detail) ── */
  --ivory:         #ECE3D2;   /* Warm off-white — primary text on dark */
  --cream:         #F4EDDF;   /* Cream — light contrast surface */
  --stone:         #D7CFC3;
  --stone-soft:    #E8E1D6;

  /* ── Ink (text on cream/light surfaces) ── */
  --charcoal:      #ECE3D2;   /* Primary text (now on dark) */
  --ink:           #211D17;   /* Text on cream cards */
  --ink-2:         #B0A798;   /* Muted text on dark — Warmth Pass v1: 8.4:1 vs --noir, clears AAA */
  --ink-3:         #6E665C;   /* Faint text on dark */
  --ink-4:         #4A453E;   /* Disabled / hairline-ink */

  /* ── Semantic surfaces (dark-primary) ── */
  --bg:            var(--noir);
  --surface:       var(--noir-3);   /* Default dark card */
  --surface-2:     #1E212B;         /* Lifted dark card — Warmth Pass v1 lift */
  --surface-sunk:  #101013;         /* Sunken — Warmth Pass v1 lift */
  --panel-forest:  var(--green);    /* Green section/card */
  --panel-cream:   var(--cream);    /* Light contrast card */
  --text:          var(--ivory);
  --text-muted:    var(--ink-2);
  --border:        rgba(255,255,255,0.07);
  --border-soft:   rgba(255,255,255,0.045);
  --accent:        var(--gold);
  --accent-on:     var(--noir);

  /* ── Status ── */
  --win:           #2F6B4F;
  --win-wash:      rgba(47,107,79,0.10);
  --loss:          #C0392B;
  --loss-wash:     rgba(154,74,56,0.10);
  --neutral:       var(--ink-3);

  /* ── Typography ── */
  --font-display:  'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-serif:    'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body:     'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:     'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --fs-hero:       clamp(2.75rem, 6vw, 4.5rem);   /* 44 → 72 */
  --fs-page:       clamp(2rem, 4vw, 3rem);        /* 32 → 48 */
  --fs-section:    clamp(1.5rem, 2.5vw, 2rem);    /* 24 → 32 */
  --fs-title:      1.25rem;                       /* 20 */
  --fs-body:       1.0625rem;                     /* 17 */
  --fs-sm:         0.9375rem;                      /* 15 */
  --fs-micro:      0.75rem;                        /* 12 */

  --lh-tight:      1.05;
  --lh-snug:       1.25;
  --lh-body:       1.6;
  --tracking-wide: 0.16em;
  --tracking-label:0.22em;

  /* ── Spacing scale (airy, premium) ── */
  --space-2xs:     0.375rem;   /* 6  */
  --space-xs:      0.625rem;   /* 10 */
  --space-sm:      1rem;       /* 16 */
  --space-md:      1.5rem;     /* 24 */
  --space-lg:      2.5rem;     /* 40 */
  --space-xl:      4rem;       /* 64 */
  --space-2xl:     6rem;       /* 96 */

  /* ── Radius ── */
  --radius-sm:     10px;
  --radius:        16px;
  --radius-lg:     20px;
  --radius-xl:     24px;
  --radius-pill:   999px;

  /* ── Shadows & glows (dark — depth via blackness + gold light) ── */
  --shadow-soft:   0 1px 2px rgba(0,0,0,0.4), 0 2px 10px rgba(0,0,0,0.35);
  --shadow-card:   0 4px 14px rgba(0,0,0,0.45), 0 12px 36px rgba(0,0,0,0.40);
  --shadow-lift:   0 10px 24px rgba(0,0,0,0.5), 0 24px 60px rgba(0,0,0,0.45);
  --shadow-inset:  inset 0 1px 0 rgba(255,255,255,0.06);
  --glow-gold:     0 0 0 1px var(--gold-line-2), 0 8px 30px rgba(201,168,106,0.18);
  --glow-gold-lg:  0 0 60px rgba(201,168,106,0.22), 0 0 120px rgba(201,168,106,0.10);
  --shadow-clay:   0 4px 18px rgba(168,75,42,0.22);

  /* ── Motion (slow, elegant, deliberate) ── */
  --ease:          cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft:     cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast:        200ms;
  --t-base:        300ms;
  --t-slow:        400ms;

  /* ── Layout ── */
  --container:     1200px;
  --container-wide:1440px;
  --nav-h:         68px;
}


/* ─────────────────────────────────────────────────────────────────────────
   2. RESET & BASE
   ───────────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--noir);
  /* near-black field with a faint warm gold breath up top + deep vignette */
  background-image:
    radial-gradient(900px 520px at 50% -8%, rgba(201,168,106,0.10), transparent 62%),
    radial-gradient(1100px 700px at 50% 120%, rgba(20,39,30,0.45), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Global film-grain overlay — analog texture so the black is never dead-flat */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: 0.04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

::selection { background: var(--clay); color: var(--ivory); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Respect HTML hidden attribute — must override any display rules */
[hidden] { display: none !important; }

/* Screen-reader-only — visually hidden but announced by assistive tech.
   For headings/labels that shouldn't show (e.g. the landing masthead is
   the logo lockup, but the page still needs a real <h1>). */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ─────────────────────────────────────────────────────────────────────────
   3. TYPOGRAPHY
   ───────────────────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-snug);
  color: var(--text);
  letter-spacing: -0.01em;
}

.display-hero {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--fs-hero);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
}
.display-hero em { font-style: italic; font-weight: 700; color: var(--gold); }

.title-page    { font-size: var(--fs-page);    font-weight: 800; line-height: var(--lh-tight); }
.title-section { font-size: var(--fs-section); font-weight: 700; }
.title-card    { font-size: var(--fs-title);   font-weight: 700; }

.serif-quote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.375rem;
  font-weight: 500;
  color: var(--ink-2);
  line-height: 1.4;
}

/* Eyebrow / micro label — the luxury detail */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow--gold { color: var(--gold-light); }
.eyebrow--muted { color: var(--ink-2); }

.lede {
  font-size: 1.1875rem;
  line-height: var(--lh-body);
  color: var(--text-muted);
}

.text-muted { color: var(--text-muted); }
.text-faint { color: var(--ink-2); }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }

/* Decorative hairline divider with center mark */
.rule {
  display: flex; align-items: center; gap: var(--space-sm);
  color: var(--gold-deep);
}
.rule::before, .rule::after {
  content: ''; height: 1px; flex: 1;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.rule__mark { font-size: var(--fs-micro); letter-spacing: var(--tracking-label); text-transform: uppercase; }


/* ─────────────────────────────────────────────────────────────────────────
   4. LAYOUT & CONTAINERS
   ───────────────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-sm);
}
.container--wide { max-width: var(--container-wide); }

.section { padding-block: var(--space-xl); }
.section--tight { padding-block: var(--space-lg); }

.stack > * + * { margin-top: var(--space-md); }
.stack-sm > * + * { margin-top: var(--space-sm); }
.stack-lg > * + * { margin-top: var(--space-lg); }

.grid { display: grid; gap: var(--space-md); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.row { display: flex; align-items: center; gap: var(--space-sm); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); }
.col { display: flex; flex-direction: column; }

/* Layout shell with optional sidebar (profile, diary, etc.) */
.page-wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--space-lg) var(--space-sm);
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: var(--space-lg);
  align-items: start;
}
.sidebar { position: sticky; top: calc(var(--nav-h) + var(--space-md)); }


/* ─────────────────────────────────────────────────────────────────────────
   5. NAVIGATION
   ───────────────────────────────────────────────────────────────────────── */
.bien-nav {
  position: sticky; top: 0; z-index: 300;
  height: var(--nav-h);
  display: flex; align-items: center; gap: var(--space-md);
  padding-inline: var(--space-md);
  background: var(--green-dark);
  background-image: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
  border-bottom: 1px solid rgba(210,176,122,0.18);
  box-shadow: 0 1px 0 rgba(210,176,122,0.08), 0 8px 30px rgba(15,42,36,0.18);
}

.logo-wrap { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-img {
  width: 40px; height: 40px; border-radius: 12px; object-fit: contain;
  box-shadow: 0 0 0 1px var(--gold-line), 0 3px 10px rgba(0,0,0,0.25);
}
.logo-mark {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 19px; font-weight: 900; color: var(--ivory);
  background: var(--green);
  color: var(--gold-light);
  box-shadow: 0 0 0 1px var(--gold-line), var(--shadow-clay);
}
.logo-text { font-family: var(--font-display); font-size: 19px; font-weight: 900; color: var(--ivory); letter-spacing: 0.08em; line-height: 1; }
.logo-sub  { display: block; margin-top: 3px; font-size: 7.5px; font-weight: 700; letter-spacing: var(--tracking-label); text-transform: uppercase; color: rgba(246,241,232,0.4); }

.nav-rule { width: 1px; height: 28px; background: rgba(210,176,122,0.18); flex-shrink: 0; }

.bien-nav ul { display: flex; gap: 2px; flex: 1; }
.bien-nav ul a {
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  color: rgba(246,241,232,0.55);
  padding: 8px 14px; border-radius: var(--radius-sm);
  transition: color var(--t-fast) var(--ease-soft), background var(--t-fast) var(--ease-soft);
}
.bien-nav ul a:hover { color: var(--ivory); }
.bien-nav ul a.active {
  color: var(--gold-light);
  background: rgba(210,176,122,0.10);
  box-shadow: inset 0 0 0 1px rgba(210,176,122,0.2);
}

.nav-right { display: flex; align-items: center; gap: var(--space-sm); flex-shrink: 0; }
.nav-meta { font-size: 12px; font-weight: 600; color: rgba(246,241,232,0.45); letter-spacing: 0.04em; }


/* ─────────────────────────────────────────────────────────────────────────
   6. BUTTONS  (buttons should feel expensive)
   ───────────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.85em 1.6em;
  border-radius: var(--radius-sm);
  transition: transform var(--t-base) var(--ease),
              box-shadow var(--t-base) var(--ease),
              background var(--t-base) var(--ease-soft),
              color var(--t-base) var(--ease-soft),
              border-color var(--t-base) var(--ease-soft);
  will-change: transform;
}
.btn:active { transform: translateY(1px); }

/* Primary — champagne gold fill, dark ink text (the marquee CTA) */
.btn-primary {
  color: #1A140A;
  background: var(--gold-metal);
  background-size: 180% 180%;
  background-position: 0% 50%;
  border: 1px solid rgba(230,200,135,0.6);
  box-shadow: var(--glow-gold), var(--shadow-inset);
  text-shadow: 0 1px 0 rgba(255,255,255,0.18);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease),
              background-position var(--t-slow) var(--ease-soft);
}
.btn-primary:hover { transform: translateY(-2px); background-position: 100% 50%; box-shadow: 0 0 0 1px var(--gold-line), 0 10px 36px rgba(201,168,106,0.32), var(--shadow-inset); }

/* Secondary — transparent, gold hairline + gold text */
.btn-secondary {
  color: var(--gold-light);
  background: rgba(201,168,106,0.04);
  border: 1px solid var(--gold-line);
}
.btn-secondary:hover { background: var(--gold-wash); border-color: var(--gold); color: #F2DEB0; }

/* Ghost — text only, luxury transition */
.btn-ghost {
  color: var(--ink-2);
  background: transparent;
  padding-inline: 0.9em;
}
.btn-ghost:hover { color: var(--gold-light); }

/* Dark — forest green, for use over cream/light surfaces */
.btn-dark {
  color: var(--ivory);
  background: var(--green);
  border: 1px solid var(--gold-line-2);
  box-shadow: var(--shadow-soft);
}
.btn-dark:hover { background: var(--green-soft); transform: translateY(-2px); }

/* Join — alias of primary, kept for legacy markup */
.btn-join {
  font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.7em 1.25em; border-radius: var(--radius-sm);
  color: #1A140A;
  background: var(--gold-metal); background-size: 180% 180%;
  border: 1px solid rgba(230,200,135,0.6);
  box-shadow: var(--glow-gold);
  transition: transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.btn-join:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(201,168,106,0.34); }

.btn-sm { font-size: var(--fs-micro); padding: 0.55em 1em; }
.btn-lg { font-size: var(--fs-body); padding: 1em 2em; }
.btn-block { display: flex; width: 100%; }
.btn:disabled, .btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }


/* ─────────────────────────────────────────────────────────────────────────
   7. CARDS & SURFACES  (warm ivory, soft depth, premium restraint)
   ───────────────────────────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  /* Warmth Pass v1 §3 (temperature test): warm clay hairline in place of the
     cool white --border-soft. .card renders only on My Profile (My Kit +
     Tennis Identity) — a loss/win-free surface, so the warm rule can't be
     misread as an error border. */
  border: 1px solid var(--clay-line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: var(--space-md);
  transition: transform var(--t-slow) var(--ease), box-shadow var(--t-slow) var(--ease);
}
.card-hover:hover, .card.is-interactive:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.card-elevated {
  background: var(--cream);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  padding: var(--space-lg);
}

/* Glass — restrained, warm frosted ivory (legacy class kept) */
.glass, .glass-panel {
  background: rgba(253,249,243,0.72);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(210,176,122,0.35);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: var(--space-md);
}

/* Stone — sunken / secondary surface */
.stone-panel {
  background: var(--surface-sunk);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-md);
}

/* Card top accent hairline — the editorial flourish */
.card--accent { position: relative; overflow: hidden; }
.card--accent::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--clay), var(--gold), var(--clay-deep));
}

.card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-sm); margin-bottom: var(--space-sm); }
.card-title { font-family: var(--font-display); font-size: var(--fs-title); font-weight: 700; }
.card-meta { font-size: var(--fs-micro); color: var(--ink-2); letter-spacing: 0.04em; font-weight: 500; }

/* spacing helper kept from legacy */
.g-mb { margin-bottom: var(--space-md); }


/* ─────────────────────────────────────────────────────────────────────────
   8. BADGES & STATUS
   ───────────────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.04em;
  padding: 0.4em 0.8em; border-radius: var(--radius-pill);
  background: var(--clay-wash); color: var(--clay-deep);
  border: 1px solid var(--clay-line);
}
.badge--gold  { background: var(--gold-wash); color: var(--gold-deep); border-color: var(--gold-line); }
.badge--green { background: var(--win-wash); color: var(--win); border-color: rgba(47,107,79,0.25); }
.badge--stone { background: var(--surface-sunk); color: var(--ink-2); border-color: var(--border); }
.badge--solid { background: var(--clay); color: var(--ivory); border-color: transparent; }

.status-win  { color: var(--win); }
.status-loss { color: var(--loss); }

/* Rank badge (legacy class kept, restyled) */
.rank-badge {
  display: flex; align-items: center; gap: var(--space-sm);
  padding: var(--space-xs) var(--space-sm);
  background: linear-gradient(135deg, var(--gold-wash), transparent);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-sm);
}
.rank-seed {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 900;
  color: var(--clay); line-height: 1;
}
.rank-title { font-size: var(--fs-sm); font-weight: 700; color: var(--text); }
.rank-zone  { font-size: var(--fs-micro); color: var(--ink-3); }

/* Tier chip — earned status, not gamey */
.tier {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm);
  padding: 0.4em 0.9em; border-radius: var(--radius-pill);
  background: var(--green); color: var(--gold-light);
  box-shadow: var(--shadow-soft);
}

/* Version badge — stamped on every page footer */
#version-root {
  font-size: 9px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--ink-3); text-align: center;
  padding: 2px 0 8px;
  opacity: 0.55;
}


/* ─────────────────────────────────────────────────────────────────────────
    9. FORMS
   ───────────────────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 0.45em; }
.label {
  font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-2);
}
.input, .textarea, .select {
  width: 100%;
  font-family: var(--font-body); font-size: var(--fs-sm); color: var(--text);
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.8em 1em;
  transition: border-color var(--t-fast) var(--ease-soft), box-shadow var(--t-fast) var(--ease-soft), background var(--t-fast);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 3px var(--clay-wash);
  background: var(--surface-2);
}
.textarea { min-height: 120px; resize: vertical; line-height: var(--lh-body); }

/* Search field — for The Arena (never "search bar" energy) */
.search {
  display: flex; align-items: center; gap: 0.6em;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.7em 1.2em;
  box-shadow: var(--shadow-soft);
}
.search input { flex: 1; border: none; background: none; outline: none; font: inherit; color: var(--text); }
.search input::placeholder { color: var(--ink-4); }

/* Filter pills */
.pill {
  font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.03em;
  padding: 0.5em 1em; border-radius: var(--radius-pill);
  background: transparent; color: var(--ink-2);
  border: 1px solid var(--border);
  transition: all var(--t-fast) var(--ease-soft);
}
.pill:hover { border-color: var(--gold-line); color: var(--clay-deep); }
.pill.active {
  background: var(--clay-wash); color: var(--clay-deep);
  border-color: var(--clay-line);
}


/* ─────────────────────────────────────────────────────────────────────────
   10. STATS, PROGRESS & CHARTS
   ───────────────────────────────────────────────────────────────────────── */
.stat {
  display: flex; flex-direction: column; gap: 0.25em;
}
.stat__value {
  font-family: var(--font-display); font-size: 2rem; font-weight: 800;
  color: var(--text); line-height: 1; font-feature-settings: "tnum";
}
.stat__label {
  font-size: var(--fs-micro); font-weight: 700; letter-spacing: var(--tracking-label);
  text-transform: uppercase; color: var(--ink-3);
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: var(--space-md);
  text-align: center;
}

/* Progress bar — attribute ratings (0–100) */
.progress {
  height: 8px; border-radius: var(--radius-pill);
  background: var(--surface-sunk);
  overflow: hidden;
}
.progress__fill {
  height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--clay), var(--gold-deep));
  transition: width var(--t-slow) var(--ease);
}

/* Attribute row — the Big 7 DNA display */
.attr-row { display: grid; grid-template-columns: 1fr auto; gap: 0.5em 1em; align-items: center; }
.attr-row__name { font-size: var(--fs-sm); font-weight: 600; color: var(--text); }
.attr-row__score { font-family: var(--font-mono); font-size: var(--fs-sm); font-weight: 600; color: var(--clay-deep); }
.attr-row__bar { grid-column: 1 / -1; }


/* ─────────────────────────────────────────────────────────────────────────
   11. DOMAIN CARDS
   Match · Court · Practice · Video · Challenge · Event
   ───────────────────────────────────────────────────────────────────────── */

/* Shared domain-card base */
.dcard {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--t-slow) var(--ease), box-shadow var(--t-slow) var(--ease);
}
.dcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.dcard__media { aspect-ratio: 16/10; width: 100%; object-fit: cover; background: var(--surface-sunk); }
.dcard__body { padding: var(--space-md); }
.dcard__title { font-family: var(--font-display); font-size: var(--fs-title); font-weight: 700; }
.dcard__sub { font-size: var(--fs-sm); color: var(--ink-2); margin-top: 0.25em; }
.dcard__foot { display: flex; align-items: center; justify-content: space-between; margin-top: var(--space-sm); padding-top: var(--space-sm); border-top: 1px solid var(--border-soft); }

/* Match card — performance, not dating.  Usage: class="dcard match-card" */
.match-card .vs { font-family: var(--font-display); font-style: italic; color: var(--ink-3); }
.match-card__score { font-family: var(--font-mono); font-weight: 600; letter-spacing: 0.04em; }
.match-card.is-win  { border-left: 3px solid var(--win); }
.match-card.is-loss { border-left: 3px solid var(--loss); }

/* Court card — user-contributed "Home Court" */
.court-card__rating { display: flex; align-items: center; gap: 0.3em; color: var(--gold-deep); font-weight: 700; }
.court-card__conditions { display: flex; flex-wrap: wrap; gap: 0.4em; margin-top: var(--space-xs); }

/* Practice / Drill card — private coach feel */
.practice-card { border-radius: var(--radius-lg); }
.practice-card__level { font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-deep); }

/* Video card — performance laboratory */
.video-card .dcard__media { position: relative; }
.video-card__play {
  position: absolute; inset: 0; margin: auto;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(42,42,42,0.55); color: var(--ivory);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: transform var(--t-base) var(--ease), background var(--t-base);
}
.video-card:hover .video-card__play { transform: scale(1.08); background: var(--clay); }
.video-card__duration {
  position: absolute; right: 10px; bottom: 10px;
  font-family: var(--font-mono); font-size: 11px; color: var(--ivory);
  background: rgba(42,42,42,0.7); padding: 2px 7px; border-radius: 6px;
}

/* Challenge card — earned club status, not a video game */
.challenge-card { text-align: left; }
.challenge-card__xp { font-family: var(--font-mono); font-weight: 600; color: var(--clay-deep); }
.challenge-card.is-locked { opacity: 0.6; }
.challenge-card.is-locked .dcard__media { filter: grayscale(0.4); }

/* Event card — community */
.event-card__date {
  display: flex; flex-direction: column; align-items: center;
  background: var(--green); color: var(--ivory);
  border-radius: var(--radius-sm); padding: 0.6em 0.8em; min-width: 56px;
}
.event-card__date .d { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; line-height: 1; }
.event-card__date .m { font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold-light); }


/* ─────────────────────────────────────────────────────────────────────────
   12. LEADERBOARD & TABLES
   ───────────────────────────────────────────────────────────────────────── */
.table { width: 100%; border-collapse: collapse; }
.table th {
  font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3); text-align: left; padding: 0.75em var(--space-sm);
  border-bottom: 1px solid var(--border);
}
.table td { padding: var(--space-sm); border-bottom: 1px solid var(--border-soft); font-size: var(--fs-sm); }
.table tr:last-child td { border-bottom: none; }

.leaderboard-row {
  display: grid; grid-template-columns: 48px 1fr auto;
  align-items: center; gap: var(--space-sm);
  padding: var(--space-sm); border-radius: var(--radius-sm);
  transition: background var(--t-fast) var(--ease-soft);
}
.leaderboard-row:hover { background: var(--gold-wash); }
.leaderboard-row__rank {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 800;
  color: var(--ink-3); text-align: center;
}
.leaderboard-row.is-top .leaderboard-row__rank { color: var(--clay); }
.leaderboard-row__name { font-weight: 600; }
.leaderboard-row__score { font-family: var(--font-mono); font-weight: 600; color: var(--clay-deep); }


/* ─────────────────────────────────────────────────────────────────────────
   13. MODALS & OVERLAYS
   ───────────────────────────────────────────────────────────────────────── */
.overlay {
  position: fixed; inset: 0; z-index: 500;
  display: grid; place-items: center; padding: var(--space-sm);
  background: rgba(42,37,32,0.45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: fade var(--t-base) var(--ease-soft);
}
.modal {
  width: min(560px, 100%);
  background: var(--green);
  color: var(--ivory);
  border: 1px solid var(--gold-line-2);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lift);
  padding: var(--space-lg);
  animation: rise var(--t-slow) var(--ease);
}
.modal__close {
  position: absolute; top: var(--space-md); right: var(--space-md);
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ivory);
  transition: background var(--t-fast), color var(--t-fast);
}
.modal__close:hover { background: rgba(201,168,106,0.15); color: var(--gold-light); }

/* Modal form elements — override for dark background */
.modal .label {
  color: var(--ivory);
}
.modal .input,
.modal .textarea,
.modal .select {
  background: rgba(236,227,210,0.08);
  border: 1px solid rgba(201,168,106,0.3);
  color: var(--ivory);
}
.modal .input::placeholder,
.modal .textarea::placeholder {
  color: rgba(236,227,210,0.5);
}
.modal .input:focus,
.modal .textarea:focus,
.modal .select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,106,0.2);
  background: rgba(236,227,210,0.12);
}
.modal .card-meta {
  color: rgba(236,227,210,0.7);
}
.modal .title-card,
.modal h2,
.modal h3 {
  color: var(--ivory);
}

/* Segmented control (button group) */
.segmented {
  display: flex; gap: 0; border-radius: var(--radius-sm); overflow: hidden;
  background: rgba(236,227,210,0.05);
  border: 1px solid rgba(201,168,106,0.3);
}
.segmented button {
  flex: 1;
  padding: 0.7em 1em;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 600;
  background: transparent;
  border: none;
  color: rgba(236,227,210,0.6);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease-soft);
}
.segmented button:not(:last-child) {
  border-right: 1px solid rgba(201,168,106,0.2);
}
.segmented button:hover {
  background: rgba(201,168,106,0.1);
  color: var(--ivory);
}
.segmented button.active {
  background: var(--gold);
  color: #1A140A;
  font-weight: 700;
}

/* Modal-specific button overrides */
.modal .btn-primary {
  background: var(--gold-metal);
  color: #1A140A;
  border: 1px solid rgba(230,200,135,0.6);
}
.modal .btn-primary:hover {
  background-position: 100% 50%;
  box-shadow: 0 0 0 1px var(--gold-line), 0 10px 36px rgba(201,168,106,0.32), var(--shadow-inset);
}


/* ─────────────────────────────────────────────────────────────────────────
   13b. CREAM CONTRAST PANEL  (the light card used on dark screens)
   ───────────────────────────────────────────────────────────────────────── */
.panel-cream {
  background: var(--cream);
  color: var(--ink);
  border: 1px solid rgba(201,168,106,0.4);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  padding: var(--space-lg);
}
.panel-cream .label,
.panel-cream .card-meta,
.panel-cream .text-muted { color: #6B5F4E; }
.panel-cream .title-card,
.panel-cream h2, .panel-cream h3 { color: var(--ink); }

.panel-forest {
  background: var(--green);
  color: var(--ivory);
  border: 1px solid var(--gold-line-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-lg);
}


/* ─────────────────────────────────────────────────────────────────────────
   13c. LANDING & BRAND  (the front door — quiet, dark, expensive)
   ───────────────────────────────────────────────────────────────────────── */

/* Full-viewport stage */
.landing {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: var(--space-xl) var(--space-md) var(--space-lg);
  overflow: hidden;
  isolation: isolate;
}
/* Optional hero photograph — drop in via --hero-image; defaults to pure dark */
.landing { --hero-image: none; }
.landing::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(700px 480px at 50% 34%, rgba(201,168,106,0.14), transparent 60%),
    var(--hero-image, none);
  background-size: cover; background-position: center;
}
/* Deep vignette so edges fall into black — cinematic focus on the crest */
.landing::after {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 42%, transparent 38%, rgba(8,8,10,0.55) 78%, var(--noir) 100%);
}

/* The gold lockup — leather texture dialed down to let the gold pop */
.brand-lockup {
  width: min(200vw, 400px);
  height: auto; 
  margin-inline: auto;
  filter: drop-shadow(0 0 48px rgba(201, 168, 106, 0.3));
  
  /* ─── THE TEXTURE BALANCING ACT ─── */
  /* 1. Dissolves the entire outer bounding box framework (sides, top, bottom, and corners) */
-webkit-mask-image: 
  linear-gradient(to right, transparent 0%, black 15%, black 70%, transparent 100%),
  linear-gradient(to bottom, transparent 10%, black 05%, black 100%, transparent 100%);
mask-image: 
  linear-gradient(to right, transparent 0%, black 05%, black 70%, transparent 100%),
  linear-gradient(to bottom, transparent 0%, black 05%, black 100%, transparent 100%);

/* Interlocks the two directional gradients together */
-webkit-mask-composite: source-in;
mask-composite: intersect;
  
  /* 2. Softens the leather grain so it feels smooth, not harsh or distracting */
  filter: blur(0.2px) drop-shadow(0 8px 34px rgba(201,168,106,0.28));
  
  /* 3. Drop the opacity of the entire asset slightly so the black leather fades back */
  opacity: 0.92;
  
  /* 4. Let the deep radial vignette underneath bleed through the dark tones */
  mix-blend-mode: color-dodge; 
}
.brand-crest {
  width: min(46vw, 168px);
  filter: drop-shadow(0 6px 26px rgba(201,168,106,0.3));
}
/* Slow ceremonial breathing glow behind the mark */
@keyframes breathe { 0%,100% { opacity: 0.55; transform: scale(1); } 50% { opacity: 0.9; transform: scale(1.05); } }
.brand-aura {
  position: absolute; z-index: -1; top: 38%; left: 50%;
  width: 60vw; max-width: 480px; aspect-ratio: 1; transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(201,168,106,0.16), transparent 62%);
  animation: breathe 7s var(--ease-soft) infinite;
  pointer-events: none;
}

/* Action stack */
.landing__actions {
  width: 100%; max-width: 320px;
  margin-top: var(--space-xl);
  display: flex; flex-direction: column; gap: var(--space-sm);
}
.landing__actions .btn {
  text-transform: uppercase; letter-spacing: 0.16em;
  font-size: var(--fs-sm); padding-block: 1.15em; border-radius: var(--radius-sm);
}

/* MECZ wordmark — the live-text masthead (replaces the old raster lockup).
   Ivory, not gold: gold stays jewellery (the rule, the aura, the CTA). */
.brand-wordmark {
  font-family: var(--font-display); font-weight: 900; text-transform: uppercase;
  color: var(--ivory); line-height: 1; margin: 0;
  font-size: clamp(2.3rem, 12vw, 4.4rem);
  letter-spacing: 0.14em; padding-left: 0.14em;   /* recenter the trailing tracking */
  filter: drop-shadow(0 6px 34px rgba(201,168,106,0.22));
}
/* Landing subtitle — the tagline line under "The Match" */
.brand-sub {
  font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic;
  font-weight: 500; color: rgba(236,227,210,0.60);
  font-size: clamp(1rem, 4.6vw, 1.2rem); letter-spacing: 0.015em;
  margin: 10px 0 0; text-align: center;
}
/* Landing content fills the space above the footer — keeps it centered
   without ever overlapping the endorsement at short viewport heights */
.landing__stage {
  flex: 1 1 auto;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  width: 100%;
}
.brand-endorse {
  margin-top: var(--space-lg);
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  text-align: center;
}
.brand-endorse__mark img {
  width: 30px; height: auto; display: block;
  filter: drop-shadow(0 2px 8px rgba(201,168,106,0.28));
}
.brand-endorse__inc {
  font-family: var(--font-body); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2);
}
.brand-endorse__legal {
  font-family: var(--font-body); font-size: 9.5px; font-weight: 400;
  letter-spacing: 0.10em; text-transform: uppercase; color: var(--gold-line);
}

/* Tagline rule — gold hairline flanking centered micro-label */
.tagline {
  display: flex; align-items: center; justify-content: center; gap: var(--space-sm);
  color: var(--gold); margin-top: var(--space-md);
}
.tagline::before, .tagline::after {
  content: ''; height: 1px; width: clamp(24px, 12vw, 64px);
  background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
}
.tagline span {
  font-size: var(--fs-micro); font-weight: 600;
  letter-spacing: var(--tracking-label); text-transform: uppercase;
}

/* Carousel dots */
.dots { display: flex; gap: 9px; justify-content: center; margin-top: var(--space-lg); }
.dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(201,168,106,0.28);
  transition: all var(--t-base) var(--ease-soft);
}
.dot.active { width: 22px; border-radius: var(--radius-pill); background: var(--gold); }

/* Thin inset gold frame — the "framed invitation" */
.frame {
  position: fixed; inset: 14px; z-index: 200; pointer-events: none;
  border: 1px solid var(--gold-line-2);
  border-radius: var(--radius);
}
.frame::before {
  content: ''; position: absolute; inset: 5px;
  border: 1px solid rgba(201,168,106,0.06);
  border-radius: calc(var(--radius) - 5px);
}

/* Explicit reveal delays (finer than nth-child) */
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.45s; }
.delay-3 { animation-delay: 0.75s; }
.delay-4 { animation-delay: 1.0s; }
.delay-5 { animation-delay: 1.2s; }


/* ─────────────────────────────────────────────────────────────────────────
   13d. CLUBHOUSE / APP SHELL
   App bar · UTR badge · quick actions · This Week · events · avatars ·
   community · empty states · bottom tab bar
   ───────────────────────────────────────────────────────────────────────── */

/* ── App bar (authenticated header) ── */
.appbar {
  position: sticky; top: 0; z-index: 300;
  height: var(--nav-h);
  display: flex; align-items: center; gap: var(--space-md);
  padding-inline: var(--space-md);
  background: rgba(8,8,10,0.82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--gold-line-2);
}
.appbar__brand { display: flex; align-items: center; gap: 10px; }
.appbar__brand img { width: 55px; height: 55px; }
.appbar__brand .wordmark {
  font-family: var(--font-display); font-weight: 800; font-size: 18px;
  letter-spacing: 0.18em; color: var(--gold-light);
}
.appbar__nav { display: none; flex: 1; gap: 2px; }            /* desktop only */
.appbar__nav a {
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  padding: 8px 14px; border-radius: var(--radius-sm);
  transition: color var(--t-fast), background var(--t-fast);
}
.appbar__nav a:hover { color: var(--ivory); }
.appbar__nav a.active { color: var(--gold-light); background: var(--gold-wash); }
.appbar__right { margin-left: auto; display: flex; align-items: center; gap: var(--space-sm); }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; color: var(--gold);
  border: 1px solid var(--gold-line-2); background: rgba(201,168,106,0.04);
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.icon-btn:hover { background: var(--gold-wash); color: var(--gold-light); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }
.notif-wrap { position: relative; }
.notif-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  min-width: 220px;
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lift);
  padding: var(--space-md); z-index: 320;
}
.notif-empty { font-size: var(--fs-micro); color: var(--ink-2); text-align: center; font-weight: 500; }
/* ── App scroll region (clears the fixed tab bar on mobile) ── */
.app-main {
  max-width: var(--container-wide);
  margin-inline: auto;
  padding: var(--space-lg) var(--space-md) calc(var(--tabbar-h, 76px) + var(--space-lg));
}

/* ── Greeting + UTR ── */
.greeting { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); }
.greeting__hello { font-family: var(--font-display); font-size: var(--fs-page); font-weight: 800; line-height: var(--lh-tight); }
.greeting__hello em { font-style: italic; color: var(--gold); }
.greeting__sub { color: var(--ink-2); margin-top: 0.35em; font-size: var(--fs-sm); }

/* ── Section header (eyebrow + See all) ── */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-sm); margin-bottom: var(--space-sm); }
.seeall {
  white-space: nowrap;
  font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold); display: inline-flex; align-items: center; gap: 0.4em;
  transition: color var(--t-fast), gap var(--t-fast);
}
.seeall:hover { color: var(--gold-light); gap: 0.7em; }

/* ── Quick-action grid ── */
.qgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); }
.qtile {
  display: flex; flex-direction: column; gap: 0.55em;
  padding: var(--space-md);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-align: left;
  transition: transform var(--t-slow) var(--ease), box-shadow var(--t-slow) var(--ease), border-color var(--t-slow);
}
.qtile:hover { transform: translateY(-4px); border-color: var(--gold-line); box-shadow: var(--shadow-lift), var(--glow-gold); }
.qtile__icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; color: var(--gold);
  background: var(--gold-wash); border: 1px solid var(--gold-line-2);
}
.qtile__icon svg { width: 22px; height: 22px; }
.qtile__label { font-weight: 700; font-size: var(--fs-body); color: var(--ivory); }
.qtile__sub { font-size: var(--fs-micro); letter-spacing: 0.04em; color: var(--ink-2); }

/* ── This Week cards ── */
.week-stack { display: flex; flex-direction: column; gap: var(--space-sm); }
.week-card {
  position: relative;
  display: flex; flex-direction: column; gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.week-card__eyebrow { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); }
.week-card__kicker { font-size: var(--fs-micro); font-weight: 700; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--gold); display: inline-flex; align-items: center; gap: 0.5em; }
.week-card__title { font-family: var(--font-display); font-size: var(--fs-title); font-weight: 700; color: var(--ivory); }
.week-card__body { font-size: var(--fs-sm); color: var(--ink-2); }
.week-card__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); }

/* Curated club card — gold left bar + faint glow */
.week-card--curated { border-color: var(--gold-line); box-shadow: var(--shadow-card), 0 0 30px rgba(201,168,106,0.08); }
.week-card--curated::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--gold-metal); }

/* Personal momentum card — forest tint */
.week-card--personal { background: linear-gradient(180deg, rgba(28,53,40,0.55), var(--surface)); border-color: var(--gold-line-2); }
.week-card--personal .week-card__kicker { color: #8FB7A1; }

/* Event card — date chip + content */
.week-card--event { flex-direction: row; align-items: center; }
.datechip {
  flex-shrink: 0; width: 58px;
  display: flex; flex-direction: column; align-items: center;
  padding: 0.55em 0; border-radius: var(--radius-sm);
  background: var(--green); border: 1px solid var(--gold-line-2);
}
.datechip .m { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.datechip .d { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; line-height: 1; color: var(--ivory); }
.week-card--event .week-card__title { font-size: var(--fs-body); }

/* ── Last on Court card (clubhouse) ── */
.week-card--match { border-color: var(--border); }

.match-result {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px; border-radius: 6px;
  font-family: var(--font-body); font-size: 11px; font-weight: 800;
  letter-spacing: 0.04em; flex-shrink: 0;
}
.match-result.is-win  { background: var(--win-wash); color: var(--win); border: 1px solid rgba(47,107,79,0.3); }
.match-result.is-loss { background: rgba(154,74,56,0.10); color: var(--loss); border: 1px solid var(--clay-line); }

.match-score {
  font-family: var(--font-mono); font-size: var(--fs-body);
  font-weight: 600; letter-spacing: 0.04em;
  color: var(--ivory); margin: 0.2em 0;
}

/* Tag chip on cards */
.tag { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }

/* ── Avatars ── */
.avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--green-soft); border: 1px solid var(--gold-line); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--gold-light); overflow: hidden; }
.avatar-stack { display: flex; align-items: center; }
.avatar-stack .avatar { margin-left: -8px; box-shadow: 0 0 0 2px var(--noir); }
.avatar-stack .avatar:first-child { margin-left: 0; }
.avatar-stack__more {
  margin-left: -8px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; box-shadow: 0 0 0 2px var(--noir);
  background: var(--gold-wash); border: 1px solid var(--gold-line);
  font-size: 11px; font-weight: 700; color: var(--gold-light);
}
.avatar-meta { display: flex; align-items: center; gap: 0.6em; font-size: var(--fs-micro); color: var(--ink-2); }
.avatar-stack__more { font-size: 11px; }

/* ── Clubhouse home (Phase 2) ─────────────────────────────────
   Primary actions, the conditional "Needs You" strip, the profile
   completion nudge, Drill of the Day, and Founding Members. */
.home-actions { display: grid; grid-template-columns: 1fr; gap: var(--space-sm); }
@media (min-width: 520px) { .home-actions { grid-template-columns: 1fr 1fr; } }

.needs-list { display: flex; flex-direction: column; gap: var(--space-xs); }
.needs-item {
  display: flex; align-items: center; gap: 10px;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--gold-line); border-radius: var(--radius-sm);
  background: var(--gold-wash); color: var(--ivory); text-decoration: none;
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.needs-item:hover { border-color: var(--gold); transform: translateX(2px); }
.needs-item svg { width: 16px; height: 16px; color: var(--gold-light); flex-shrink: 0; }
.needs-item__text { flex: 1; min-width: 0; font-size: var(--fs-sm); font-weight: 600; }
.needs-item__chev { width: 16px; height: 16px; color: var(--gold-light); opacity: 0.7; }

.home-nudge {
  display: block; margin-top: var(--space-sm);
  font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.02em;
  color: var(--ink-2); text-decoration: none;
}
.home-nudge:hover { color: var(--gold-light); }
.home-nudge b { color: var(--gold-light); font-weight: 700; }

.drill-eyebrow { font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 6px; }
.drill-title { font-family: var(--font-display); font-size: var(--fs-title); font-weight: 700; margin: 0 0 6px; }
.drill-desc { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.5; margin: 0 0 10px; }
.drill-goal { font-size: var(--fs-micro); color: var(--ink-2); margin: 0 0 var(--space-sm); }
.drill-goal b { color: var(--ivory); font-weight: 700; }

.founding { display: flex; flex-direction: column; gap: var(--space-sm); }
.founding__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); flex-wrap: wrap; }
.founding__count { font-family: var(--font-display); font-size: var(--fs-title); font-weight: 700; color: var(--ivory); }
.founding__count span { display: block; margin-top: 2px; font-family: var(--font-body); font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }
.invite-btn {
  align-self: flex-start;
  font-family: var(--font-body); font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.04em;
  color: var(--gold-light); padding: 8px 14px;
  border: 1px solid var(--gold-line); border-radius: var(--radius-pill);
  background: transparent; cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.invite-btn:hover { border-color: var(--gold); background: var(--gold-wash); }

/* ── Community feed card (for later) ── */
.feed-card { display: flex; flex-direction: column; gap: var(--space-sm); padding: var(--space-md); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.feed-card__head { display: flex; align-items: center; gap: 0.6em; }
.feed-card__name { font-weight: 700; color: var(--ivory); font-size: var(--fs-sm); }
.feed-card__time { font-size: var(--fs-micro); color: var(--ink-2); margin-left: auto; font-weight: 500; }
.feed-card__media { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius-sm); background: var(--surface-sunk); }
.feed-card__react { display: flex; gap: var(--space-md); font-size: var(--fs-sm); color: var(--ink-2); }
.feed-card__react span { display: inline-flex; align-items: center; gap: 0.35em; }

/* ── Designed empty state ── */
.empty {
  text-align: center; padding: var(--space-lg);
  border: 1px dashed var(--gold-line); border-radius: var(--radius-lg);
  background: rgba(201,168,106,0.03);
}
.empty__text { color: var(--ink-2); font-size: var(--fs-sm); max-width: 36ch; margin-inline: auto; }
.empty__cta { display: inline-flex; align-items: center; gap: 0.4em; margin-top: var(--space-sm); color: var(--gold); font-weight: 700; font-size: var(--fs-sm); }
.empty__cta:hover { color: var(--gold-light); }

/* ── Bottom tab bar (mobile) ── */
:root { --tabbar-h: 76px; }
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
  height: var(--tabbar-h);
  display: flex; align-items: stretch;
  padding: 8px max(var(--space-sm), env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom));
  background: rgba(8,8,10,0.9);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-top: 1px solid var(--gold-line-2);
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--ink-3); font-size: 10px; font-weight: 600; letter-spacing: 0.04em;
  transition: color var(--t-fast);
}
.tab svg { width: 22px; height: 22px; }
.tab:hover { color: var(--ink-2); }
.tab.active { color: var(--gold); }


/* ─────────────────────────────────────────────────────────────────────────
   13e. THE ARENA / FIND PLAYERS
   Page head · intent presets · filter pills · refine panel · player cards
   ───────────────────────────────────────────────────────────────────────── */

/* Page head */
.page-head { margin-bottom: var(--space-md); }
.page-head .title-page { margin-top: 0.15em; }
.page-head .lede { margin-top: 0.4em; max-width: 52ch; }

/* Intent presets — tasteful one-tap "what are you looking for" */
.intents { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-sm); }
.intent {
  text-align: left; padding: var(--space-sm) var(--space-md);
  display: flex; flex-direction: column; gap: 3px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform var(--t-base) var(--ease), border-color var(--t-base), box-shadow var(--t-base), background var(--t-base);
}
.intent:hover { transform: translateY(-2px); border-color: var(--gold-line); box-shadow: var(--shadow-card); }
.intent.active { border-color: var(--gold); background: var(--gold-wash); box-shadow: var(--glow-gold); }
.intent__title { font-weight: 700; color: var(--ivory); font-size: var(--fs-sm); }
.intent__sub { font-size: var(--fs-micro); color: var(--ink-2); margin-top: 2px; }

/* Filter pill row + Refine toggle */
.filterbar { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-2xs); margin-top: var(--space-md); }
.filterbar .spacer { flex: 1; }
.refine-toggle {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold); padding: 0.5em 0.4em;
}
.refine-toggle svg { width: 13px; height: 13px; transition: transform var(--t-base) var(--ease); }
.refine-toggle.open svg { transform: rotate(180deg); }

/* Refine panel (collapsible precise controls) */
.refine { overflow: hidden; max-height: 0; transition: max-height var(--t-slow) var(--ease); }
.refine.open { max-height: 600px; }
.refine__inner {
  margin-top: var(--space-sm); padding: var(--space-md);
  background: var(--surface-sunk); border: 1px solid var(--border); border-radius: var(--radius);
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md);
}
.refine__row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 0.4em; }

/* UTR range read-out */
.range-val { font-family: var(--font-mono); color: var(--gold-light); font-weight: 600; }
input[type=range].range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold)); outline: none; margin-top: 0.6em;
}
input[type=range].range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold-light); border: 2px solid var(--noir); box-shadow: var(--glow-gold); cursor: pointer;
}
input[type=range].range::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold-light); border: 2px solid var(--noir); cursor: pointer;
}

/* Results header */
.results-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-sm); margin: var(--space-lg) 0 var(--space-sm); }
.results-count { font-size: var(--fs-micro); color: var(--ink-2); letter-spacing: 0.04em; }

/* Player grid + card */
.player-grid { display: grid; grid-template-columns: 1fr; gap: var(--space-sm); }
.player-card {
  position: relative; padding: var(--space-md);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform var(--t-slow) var(--ease), box-shadow var(--t-slow) var(--ease), border-color var(--t-slow);
}
.player-card:hover { transform: translateY(-3px); border-color: var(--gold-line); box-shadow: var(--shadow-lift); }
.player-card__head { display: flex; align-items: center; gap: var(--space-sm); }
.player-card .avatar { width: 46px; height: 46px; font-size: 15px; }
.player-card__id { flex: 1; min-width: 0; }
.player-card__name { font-family: var(--font-display); font-size: var(--fs-title); font-weight: 700; color: var(--ivory); line-height: 1.1; }
.player-card__handle { font-size: var(--fs-micro); color: var(--ink-2); font-weight: 500; }

.player-meta { display: flex; flex-wrap: wrap; gap: 0.5em 1em; margin-top: var(--space-sm); font-size: var(--fs-sm); color: var(--ink-2); }
.player-meta span { display: inline-flex; align-items: center; gap: 0.4em; }
.player-meta svg { width: 14px; height: 14px; color: var(--gold-deep); }

.player-attrs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5em var(--space-md); margin-top: var(--space-sm); }
.attr-mini { display: grid; grid-template-columns: 1fr auto; gap: 0.2em 0.5em; align-items: center; }
.attr-mini__name { font-size: var(--fs-micro); color: var(--ink-2); }
.attr-mini__val { font-family: var(--font-mono); font-size: var(--fs-micro); font-weight: 600; color: var(--gold-light); }
.attr-mini .progress { grid-column: 1 / -1; height: 5px; }

.player-avail { display: flex; flex-wrap: wrap; gap: 0.4em; margin-top: var(--space-sm); }
.player-card__foot { display: flex; gap: var(--space-sm); margin-top: var(--space-md); }
.player-card__foot .btn { flex: 1; }


/* ─────────────────────────────────────────────────────────────────────────
   14. MOTION & UTILITIES
   ───────────────────────────────────────────────────────────────────────── */
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

.fade-in   { animation: fade var(--t-slow) var(--ease-soft) both; }
.rise-in   { animation: slideUp var(--t-slow) var(--ease) both; }

/* Staggered page-load reveal — add .reveal to children */
.reveal { animation: slideUp var(--t-slow) var(--ease) both; }
.reveal:nth-child(1) { animation-delay: 0.05s; }
.reveal:nth-child(2) { animation-delay: 0.12s; }
.reveal:nth-child(3) { animation-delay: 0.19s; }
.reveal:nth-child(4) { animation-delay: 0.26s; }
.reveal:nth-child(5) { animation-delay: 0.33s; }
.reveal:nth-child(6) { animation-delay: 0.40s; }

/* Spacing/text utilities (complement Tailwind CDN) */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-sm { margin-top: var(--space-sm); } .mt-md { margin-top: var(--space-md); } .mt-lg { margin-top: var(--space-lg); }
.mb-sm { margin-bottom: var(--space-sm); } .mb-md { margin-bottom: var(--space-md); } .mb-lg { margin-bottom: var(--space-lg); }
.full { width: 100%; }
.hidden { display: none; }


/* ─────────────────────────────────────────────────────────────────────────
   15. RESPONSIVE  (mobile-first — these are scale-UP breakpoints)
   ───────────────────────────────────────────────────────────────────────── */

/* Mobile defaults: collapse grids & sidebar */
.grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
.page-wrap { grid-template-columns: 1fr; gap: var(--space-md); }
.sidebar { position: static; }

/* Mobile nav: hide inline links (replace with menu trigger in HTML) */
@media (max-width: 768px) {
  .bien-nav ul { display: none; }
  .nav-meta { display: none; }
  .bien-nav { padding-inline: var(--space-sm); }
}

/* Tablet ≥ 641px */
@media (min-width: 641px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Desktop ≥ 1025px */
@media (min-width: 1025px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .page-wrap { grid-template-columns: 320px 1fr; }
  .sidebar { position: sticky; }

  /* Clubhouse: top nav takes over, bottom tab bar retires */
  .appbar__nav { display: flex; }
  .tabbar { display: none; }
  .app-main { padding-bottom: var(--space-xl); }
  .qgrid { grid-template-columns: repeat(4, 1fr); }
  /* Home content sits two-up: This Week beside From-the-Club */
  .home-columns { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-lg); align-items: start; }
  /* Arena */
  .intents { grid-template-columns: repeat(4, 1fr); }
  .player-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet 641–1024: quick actions stay 2-up but home stacks */
@media (min-width: 641px) and (max-width: 1024px) {
  .qgrid { grid-template-columns: repeat(4, 1fr); }
  .intents { grid-template-columns: repeat(4, 1fr); }
  .player-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Ultra-wide ≥ 1400px */
@media (min-width: 1400px) {
  .container { max-width: var(--container-wide); }
}


/* ─────────────────────────────────────────────────────────────────────────
   13f. PLAYER PROFILE
   Hero card · Stats strip · DNA radar · Tabs · Match rows ·
   Rankings · Endorsements · Kit
   ───────────────────────────────────────────────────────────────────────── */

/* ── Profile layout shell ── */
.prof-main { display: flex; flex-direction: column; gap: var(--space-md); }

/* ── Profile hero card ── */
.profile-hero {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--space-sm); text-align: center;
  padding: var(--space-lg) var(--space-md);
  margin-bottom: var(--space-md);
}

/* Avatar wrapper + kit badge */
.profile-hero__av-wrap { position: relative; margin-bottom: var(--space-xs); }

.profile-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, var(--green-soft), var(--green-deep));
  border: 2px solid var(--gold-line);
  box-shadow: var(--glow-gold);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 800;
  color: var(--gold-light); letter-spacing: 0.04em;
}

.kit-badge {
  position: absolute; bottom: 0; right: -4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--gold); color: var(--noir);
  display: grid; place-items: center;
  border: 2px solid var(--green);
  box-shadow: var(--shadow-soft);
}
.kit-badge svg { width: 11px; height: 11px; }

/* Identity text */
.profile-hero__name {
  font-family: var(--font-display); font-size: var(--fs-section);
  font-weight: 800; color: var(--ivory); line-height: var(--lh-tight);
  margin-bottom: 0.1em;
}
.profile-hero__handle {
  font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.06em;
  color: var(--ink-3); margin-bottom: 0.25em;
}
.profile-hero__location {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-size: var(--fs-sm); color: var(--ink-2);
}
.profile-hero__location svg { width: 12px; height: 12px; flex-shrink: 0; }

/* UTR + style row */
.profile-hero__ratings {
  display: flex; align-items: center; gap: var(--space-md);
  margin-block: var(--space-xs);
}
.profile-utr { width: 68px; height: 68px; }
.profile-utr .l { font-size: 8px; }
.profile-utr .v { font-size: 1.3rem; }

.profile-hero__style-wrap { text-align: left; }
.profile-hero__style {
  display: block;
  font-family: var(--font-display); font-size: var(--fs-title);
  font-weight: 700; color: var(--ivory); margin-top: 0.2em;
}

/* Chips row */
.profile-hero__chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4em;
}

/* CTA pair */
.profile-hero__ctas {
  display: flex; flex-direction: column; gap: var(--space-xs);
  width: 100%; max-width: 260px;
}

/* ── Quick stats strip ── */
.prof-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border-soft);
  border: 1px solid var(--border-soft); border-radius: var(--radius);
  overflow: hidden; margin-bottom: var(--space-md);
}
.prof-stat {
  display: flex; flex-direction: column; align-items: center; gap: 0.2em;
  padding: var(--space-sm) var(--space-xs);
  background: var(--surface); text-align: center;
}
.prof-stat .stat__value { font-size: 0.90rem; }
.prof-stat .stat__label { font-size: 10px; }

/* ── Performance DNA section ── */
.prof-dna { padding: var(--space-md); }
.prof-dna__head {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: var(--space-sm);
}
.prof-dna__explainer {
  margin-bottom: var(--space-sm); padding: var(--space-sm);
  background: rgba(0,0,0,0.2); border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
}

/* Radar SVG container */
.radar-wrap {
  display: flex; justify-content: center; align-items: center;
  margin-block: var(--space-sm);
}
.radar-svg { width: 100%; max-width: 300px; overflow: visible; }

/* Attribute bar rows in DNA section */
.prof-attrs { display: flex; flex-direction: column; gap: var(--space-sm); margin-top: var(--space-sm); }

.prof-attr-row {
  display: grid; grid-template-columns: 1fr auto;
  gap: 0.3em 0.75em; align-items: center;
}
.prof-attr-row .attr-row__bar { grid-column: 1 / -1; }

/* Mental Toughness uncapped label */
.attr-uncapped {
  font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gold-deep); margin-left: 0.4em; vertical-align: middle;
}

/* ── Profile tab switcher ── */
.profile-tabs {
  display: flex; gap: 2px;
  background: var(--surface-sunk); border-radius: var(--radius-sm);
  padding: 4px; border: 1px solid var(--border-soft);
}
.profile-tab-btn {
  flex: 1; padding: 0.6em 0.4em; border-radius: 7px;
  font-family: var(--font-body); font-size: var(--fs-micro);
  font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink-3); background: transparent; border: none; cursor: pointer;
  transition: color var(--t-fast), background var(--t-fast);
}
.profile-tab-btn:hover { color: var(--ivory); }
.profile-tab-btn.active { color: var(--gold); background: var(--gold-wash); box-shadow: 0 1px 0 var(--gold-line) inset; }

.profile-tab-panel { display: block; }
.profile-tab-panel.hidden { display: none; }

/* ── Match history rows ── */
.match-row {
  display: grid; grid-template-columns: 28px 1fr auto auto;
  align-items: center; gap: 0.5em var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--border-soft);
}
.match-row:last-child { border-bottom: none; }
.match-row__wl { font-family: var(--font-display); font-size: var(--fs-title); font-weight: 800; line-height: 1; text-align: center; }
.match-row__opp { font-size: var(--fs-sm); font-weight: 600; color: var(--ivory); }
.match-row__score { font-family: var(--font-mono); font-size: var(--fs-sm); font-weight: 500; color: var(--ink-2); letter-spacing: 0.04em; }
.match-row__date { font-size: var(--fs-micro); color: var(--ink-2); white-space: nowrap; font-weight: 500; }
.match-row.is-win  { border-left: 3px solid var(--win);  padding-left: var(--space-sm); }
.match-row.is-loss { border-left: 3px solid var(--loss); padding-left: var(--space-sm); }

/* ── Rankings rows ── */
.rank-list { display: flex; flex-direction: column; }
.rank-row {
  display: grid; grid-template-columns: 1fr 1fr auto;
  align-items: center; gap: 0.5em var(--space-sm);
  padding: var(--space-sm) 0; border-bottom: 1px solid var(--border-soft);
}
.rank-row:last-child { border-bottom: none; }
.rank-row--locked { opacity: 0.55; }
.rank-row__scope { font-size: var(--fs-sm); font-weight: 700; color: var(--ivory); }
.rank-row__sub { font-size: var(--fs-micro); color: var(--ink-2); font-weight: 500; }
.rank-row__val { font-family: var(--font-display); font-size: var(--fs-title); font-weight: 800; color: var(--gold-light); text-align: right; display: flex; align-items: center; justify-content: flex-end; gap: 0.3em; }

/* Linked ratings */
.rank-linked { display: flex; flex-direction: column; gap: var(--space-sm); }
.rank-linked-row { display: flex; align-items: center; gap: var(--space-sm); padding: var(--space-sm); background: var(--surface-sunk); border: 1px solid var(--border-soft); border-radius: var(--radius-sm); }
.rank-linked__org { flex-shrink: 0; width: 40px; height: 40px; border-radius: var(--radius-sm); display: grid; place-items: center; font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--gold-light); background: var(--green); border: 1px solid var(--gold-line-2); }
.rank-linked__info { flex: 1; min-width: 0; }
.rank-linked__name { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--ivory); }
.rank-linked__val { font-size: var(--fs-micro); }

/* ── Endorsement bars ── */
.endorse-bar { display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 0.5em var(--space-sm); margin-bottom: var(--space-xs); }
.endorse-bar__label { font-size: var(--fs-sm); font-weight: 600; color: var(--ivory); white-space: nowrap; }
.endorse-bar__track { height: 6px; border-radius: var(--radius-pill); background: var(--surface-sunk); overflow: hidden; }
.endorse-bar__fill  { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green-soft), var(--gold-deep)); transition: width var(--t-slow) var(--ease); }
.endorse-bar__count { font-family: var(--font-mono); font-size: var(--fs-micro); font-weight: 600; color: var(--gold-light); min-width: 20px; text-align: right; }

/* ── Kit table ── */
.kit-table { display: flex; flex-direction: column; }
.kit-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-sm); padding: var(--space-xs) 0; border-bottom: 1px solid var(--border-soft); }
.kit-row:last-child { border-bottom: none; }
.kit-row__label { font-size: var(--fs-micro); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); flex-shrink: 0; }
.kit-row__value { font-size: var(--fs-sm); font-weight: 600; color: var(--ivory); text-align: right; }
.kit-note { margin-top: var(--space-md); font-size: var(--fs-micro); line-height: 1.6; padding-top: var(--space-sm); border-top: 1px solid var(--border-soft); font-style: italic; }

/* ── Responsive: profile ── */
@media (max-width: 1024px) {
  .profile-hero__ctas { flex-direction: row; }
  .profile-hero__ctas .btn { flex: 1; }
  .endorse-bar { grid-template-columns: 110px 1fr auto; }
}
@media (max-width: 640px) {
  .prof-stats { grid-template-columns: repeat(2, 1fr); }
  .match-row  { grid-template-columns: 24px 1fr auto; }
  .match-row__date { display: none; }
  .rank-row   { grid-template-columns: 1fr auto; }
  .rank-row__sub { display: none; }
  .endorse-bar { grid-template-columns: 100px 1fr auto; }
  .profile-tab-btn { font-size: 9px; padding: 0.55em 0.3em; }
}
/* Weapons line — profile DNA */
.prof-weapons {
  margin-top: var(--space-sm);
  text-align: center;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--gold-line-2);
}
.prof-weapons__label { margin-bottom: 0.4em; }
.prof-weapons__list {
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--ivory);
  letter-spacing: 0.04em;
}
/* ─────────────────────────────────────────────────────────────────────────
   18. MY GAME — sub-tab strip, Journal, Quick Log
   (appended for the My Game page — nothing above this line was touched)
   ───────────────────────────────────────────────────────────────────────── */

/* In-page secondary tabs (Journal / Progress / Stats / Drills /Practice) —
   deliberately a different class from .tabbar/.tab, which is the bottom
   primary nav. These two never appear on the same page by accident. */

.subtab.active { color: var(--ivory); border-bottom-color: var(--gold); }

/* Journal — collapsible match rows */
.journal-row { border-bottom: 1px solid var(--border); }
.journal-row__head {
  display: flex; align-items: center; gap: var(--space-sm);
  width: 100%; text-align: left;
  padding: var(--space-md) 0; background: none; border: none; cursor: pointer;
  font-family: var(--font-body); color: inherit;
}
.journal-row__result {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 0.95rem;
  background: var(--surface-sunk); color: var(--ink-3);
  border: 1px solid var(--border);
}
.journal-row__result.is-win  { background: var(--win-wash); color: var(--win); border-color: rgba(47,107,79,0.3); }
.journal-row__result.is-loss { background: rgba(154,74,56,0.10); color: var(--loss); border-color: var(--clay-line); }
.journal-row__id { flex: 1; min-width: 0; }
.journal-row__opp { font-weight: 700; font-size: var(--fs-sm); color: var(--ivory); }
.journal-row__meta { font-size: var(--fs-micro); color: var(--ink-2); margin-top: 2px; font-weight: 500; }
.journal-row__score { font-family: var(--font-mono); font-weight: 600; font-size: var(--fs-sm); color: var(--ivory); white-space: nowrap; }
.journal-row__chevron { color: var(--ink-3); transition: transform var(--t-fast) var(--ease-soft); flex-shrink: 0; }
.journal-row.is-open .journal-row__chevron { transform: rotate(180deg); }
.journal-row__body { display: none; padding: 0 0 var(--space-md) 42px; }
.journal-row.is-open .journal-row__body { display: block; }
.journal-stats { display: flex; gap: var(--space-md); flex-wrap: wrap; margin-bottom: var(--space-sm); }
.journal-stats .stat__label { font-size: 7px; }
.journal-notes { font-size: var(--fs-sm); color: var(--ink-2); font-style: italic; line-height: 1.6; margin-bottom: var(--space-sm); }
.journal-tiebreaks { font-family: var(--font-mono); font-size: var(--fs-micro); color: var(--ink-2); margin-bottom: var(--space-sm); font-weight: 500; }
.journal-row__resume { margin-top: var(--space-2xs); }

/* Pending / suspended status pill, distinct from the win/loss result mark */
.status-pending { color: var(--gold-light); font-weight: 700; }

/* Quick Log — segmented Won/Lost control */
.segmented { display: flex; gap: 4px; background: var(--surface-sunk); border-radius: var(--radius-pill); padding: 4px; margin-bottom: var(--space-md); }
.segmented button {
  flex: 1; border: none; background: none; cursor: pointer;
  font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 700;
  color: var(--ink-2); padding: 0.6em 1em; border-radius: var(--radius-pill);
}
.segmented button.active { background: var(--gold-wash); color: var(--gold-light); }

/* Floating "Log a Match" entry point */
.fab-row { display: flex; justify-content: flex-end; margin-bottom: var(--space-md); }


/* ─────────────────────────────────────────────────────────────────────────
   19. MY GAME — Progress & Stats tabs, SelfRate sheet
   ───────────────────────────────────────────────────────────────────────── */

/* Big-7 attribute rows */
.attr-line { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.attr-line__name { font-size: var(--fs-sm); font-weight: 600; width: 92px; flex-shrink: 0; }
.attr-line__label { flex: 1; font-family: var(--font-display); font-size: 14px; font-style: italic; color: var(--ivory); }
.attr-line__label.is-unrated { color: var(--ink-3); }
.attr-line__source { font-size: 9px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); font-family: var(--font-body); white-space: nowrap; }
.attr-line__source.src-self  { color: var(--ink-2); }
.attr-line__source.src-peer,
.attr-line__source.src-stat  { color: var(--ivory); }
.attr-line__source.src-coach { color: var(--gold); font-weight: 800; }

/* check-mark pips */
.pips { display: inline-flex; gap: 5px; align-items: center; flex-shrink: 0; }
.pip { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--ink-3); background: transparent; }
.pip.on { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 5px var(--gold-wash); }

/* development crest */
.crest { position: relative; display: inline-block; width: 15px; height: 15px; flex-shrink: 0; vertical-align: middle; }
.crest svg { position: absolute; top: 0; left: 0; }
.crest__fill { position: absolute; left: 0; right: 0; bottom: 0; overflow: hidden; }
.crest__fill svg { position: absolute; bottom: 0; left: 0; top: auto; }

/* progress-tab header row */
.progress-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.progress-head__title { display: flex; align-items: center; gap: 7px; font-size: var(--fs-micro); font-weight: 700; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--gold-light); }

/* stats — record grid */
.record-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin-bottom: 14px; }
.record-cell { background: var(--surface-sunk); padding: 16px 10px; text-align: center; }
.record-cell__v { font-family: var(--font-mono); font-size: 22px; color: var(--ivory); }
.record-cell__v.is-gold { color: var(--gold); }
.record-cell__l { font-size: 9px; color: var(--ink-3); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 5px; }
.record-strip { display: flex; justify-content: space-around; padding: 14px 0 24px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.record-strip__v { font-family: var(--font-mono); font-size: 15px; color: var(--ivory); }
.record-strip__v.is-gold { color: var(--gold); }
.record-strip__v.is-loss { color: var(--loss); }
.record-strip__l { font-size: 9px; color: var(--ink-3); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 4px; text-align: center; }

.stat-line { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--border); }
.stat-line__name { font-size: 13.5px; font-weight: 600; }
.stat-line__v { font-family: var(--font-mono); font-size: 15px; color: var(--ivory); }
.stat-line__sub { font-size: 10px; color: var(--ink-2); margin-top: 2px; font-weight: 500; }

.section-label { font-size: 9px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); font-family: var(--font-body); }

/* ── Stats-tab category tiles (ATP-style grouped grid) ── */
.stat-group { margin-bottom: 22px; }
.stat-group__title { margin-bottom: 12px; }
.stat-tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat-tile { background: var(--surface-sunk); border: 1px solid var(--border); border-radius: 12px; padding: 14px 15px; }
.stat-tile__v { font-family: var(--font-mono); font-size: 24px; line-height: 1; color: var(--ivory); }
.stat-tile__v.is-gold { color: var(--gold); }
.stat-tile__v.is-loss { color: var(--loss); }
.stat-tile__l { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); margin-top: 9px; line-height: 1.3; }
.stat-tile__sub { font-size: 10px; font-weight: 500; color: var(--ink-3); margin-top: 3px; font-family: var(--font-mono); }

.best-win { background: var(--gold-wash); border: 1px solid var(--gold-line); border-radius: 12px; padding: 16px 18px; }

/* SelfRate sheet — level picker cards */
.level-card { width: 100%; text-align: left; background: var(--surface-sunk); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; margin-bottom: 10px; cursor: pointer; transition: border-color var(--t-fast) var(--ease-soft), background var(--t-fast); }
.level-card:hover { border-color: var(--gold-line); }
.level-card.selected { border-color: var(--gold); background: var(--gold-wash); }
.level-card__name { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--ivory); margin-bottom: 4px; }
.level-card__desc { font-size: 12px; color: var(--ink-2); line-height: 1.55; }

/* SelfRate step 2 — per-attribute rate row */
.rate-row { padding: 16px 0; border-bottom: 1px solid var(--border); }
.rate-row__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.rate-row__name { font-size: 14px; font-weight: 700; }
.rate-row__label { font-family: var(--font-display); font-size: 13px; font-style: italic; color: var(--gold-light); }
.rate-opts { display: flex; gap: 8px; }
.rate-opt { flex: 1; padding: 10px 6px; border-radius: 10px; border: 1px solid var(--border); background: transparent; cursor: pointer; text-align: center; transition: all var(--t-fast) var(--ease-soft); }
.rate-opt.active { border-color: var(--gold); background: var(--gold-wash); }
.rate-opt__pips { display: flex; gap: 3px; justify-content: center; margin-bottom: 5px; }
.rate-opt__txt { font-size: 9.5px; color: var(--ink-2); font-weight: 600; }
.rate-opt.locked { opacity: 0.5; cursor: not-allowed; }


/* ─────────────────────────────────────────────────────────────────────────
   20. MY GAME — Drills tab + drill-result sheet
   ───────────────────────────────────────────────────────────────────────── */
.drill-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.drill { padding: 22px 0; border-bottom: 1px solid var(--border); }
.drill__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.drill__attr { font-size: var(--fs-micro); font-weight: 700; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--gold); }
.drill__meta { display: flex; align-items: center; gap: 8px; }
.drill__forme { font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold-line); border-radius: 999px; padding: 2px 8px; }
.drill__mins { font-size: 10.5px; color: var(--ink-2); font-weight: 500; }
.drill__name { font-family: var(--font-display); font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.drill__desc { font-size: 12.5px; color: var(--ink-2); line-height: 1.7; margin-bottom: 12px; }
.drill__goal { font-size: 11.5px; color: var(--ink-2); margin-bottom: 14px; font-weight: 500; }
.drill__goal strong { color: var(--ivory); font-weight: 600; }

.drill-result { border-radius: 12px; padding: 14px 16px; border: 1px solid var(--border); background: rgba(0,0,0,0.2); }
.drill-result.is-hit { background: var(--gold-wash); border-color: var(--gold-line); }
.drill-result__title { font-size: 13px; font-weight: 700; color: var(--ivory); margin-bottom: 4px; }
.drill-result.is-hit .drill-result__title { color: var(--gold); }
.drill-result__msg { font-size: 12px; color: var(--ink-2); line-height: 1.5; }

/* big stepper for drill result entry */
.stepper-big { display: flex; align-items: center; gap: 18px; justify-content: center; }
.stepper-big button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--gold-line); background: transparent; color: var(--gold); font-size: 22px; cursor: pointer; line-height: 1; display: grid; place-items: center; }
.stepper-big button:disabled { opacity: 0.3; cursor: not-allowed; }
.stepper-big__val { font-family: var(--font-mono); font-size: 38px; color: var(--ivory); min-width: 60px; text-align: center; }
/* track-live-points toggle */
/* ─── 21. MY GAME — Live Match ─── */
#liveOverlay .modal { position: relative; max-height: 92vh; overflow-y: auto; }

.live-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.live-pill { padding: 10px 14px; border-radius: var(--radius-pill); cursor: pointer; font-size: 11.5px; font-weight: 700; font-family: var(--font-body); background: transparent; color: var(--ink-3); border: 1px solid var(--border); }
.live-pill.active { background: var(--gold-wash); color: var(--gold); border-color: var(--gold-line); }

.scoreboard { background: rgba(0,0,0,0.25); border: 1px solid var(--gold-line); border-radius: 16px; padding: 22px 20px; margin-bottom: 14px; }
.scoreboard__eyebrow { font-size: 9px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); text-align: center; margin-bottom: 6px; }
.scoreboard__timer { font-family: var(--font-mono); font-size: 11px; color: var(--ink-2); text-align: center; margin-bottom: 18px; font-weight: 500; }
.score-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.score-row__name { font-size: 13px; font-weight: 700; width: 64px; }
.score-row__name.opp { color: var(--ink-2); }
.score-row__big { font-family: var(--font-mono); font-size: 26px; color: var(--ivory); padding-right: 16px; }
.done-sets { text-align: center; font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); margin-bottom: 20px; font-weight: 500; }
.done-sets span { margin: 0 8px; }

.stepper { display: flex; align-items: center; gap: 14px; }
.stepper button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--gold-line); background: var(--surface-sunk); color: var(--gold); font-size: 19px; cursor: pointer; line-height: 1; display: grid; place-items: center; }
.stepper button:disabled { opacity: 0.3; cursor: not-allowed; }
.stepper__val { font-family: var(--font-mono); font-size: 26px; color: var(--ivory); min-width: 40px; text-align: center; }
.stepper.big button { width: 46px; height: 46px; font-size: 24px; }
.stepper.big .stepper__val { font-size: 40px; min-width: 60px; }
.tlp-toggle { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin: 14px 0 4px; background: none; border: none; cursor: pointer; font-family: var(--font-body); }
.tlp-toggle__track { width: 34px; height: 20px; border-radius: 999px; background: var(--border); position: relative; transition: background 0.2s; flex-shrink: 0; }
.tlp-toggle.on .tlp-toggle__track { background: var(--gold); }
.tlp-toggle__knob { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--noir); transition: left 0.2s; }
.tlp-toggle.on .tlp-toggle__knob { left: 16px; }
.tlp-toggle__label { font-size: 11.5px; font-weight: 700; color: var(--ink-3); letter-spacing: 0.04em; }
.tlp-toggle.on .tlp-toggle__label { color: var(--gold); }
 
/* courtside point panel */
.courtside { background: var(--green); border: 1px solid var(--gold-line); border-radius: 16px; padding: 20px; margin-bottom: 14px; }
.courtside__eyebrow { font-size: 9px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); text-align: center; margin-bottom: 4px; }
.courtside__sub { font-size: 10px; color: var(--ivory); text-align: center; margin-bottom: 12px; letter-spacing: 0.04em; }
.point-row { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 10px 0 22px; }
.point-side { text-align: center; flex: 1; }
.point-side__name { font-size: 11px; color: var(--ink-2); font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; justify-content: center; gap: 5px; }
.point-side__val { font-family: var(--font-mono); font-size: 40px; color: var(--ivory); line-height: 1; }
.point-dot { font-family: var(--font-mono); font-size: 24px; color: var(--ink-3); }
.serve-pick { text-align: center; margin-bottom: 18px; }
.serve-pick__q { font-size: 10.5px; color: var(--ink-2); margin-bottom: 10px; }
.serve-pick__opts { display: flex; gap: 10px; justify-content: center; }
.serve-pick__opt { display: flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--gold-line); background: var(--surface-sunk); color: var(--ivory); font-size: 12px; font-weight: 600; cursor: pointer; font-family: var(--font-body); }
.point-btns { display: flex; gap: 12px; }
.point-btn { flex: 1; padding: 20px 0; border-radius: 14px; border: 1px solid var(--gold-line); background: var(--gold-wash); color: var(--gold); font-size: 15px; font-weight: 800; cursor: pointer; font-family: var(--font-body); }
.point-undo { display: flex; gap: 12px; margin-top: 8px; }
.point-undo button { flex: 1; padding: 8px 0; border-radius: var(--radius-pill); border: 1px solid var(--border); background: transparent; color: var(--ink-2); font-size: 10.5px; font-weight: 700; cursor: pointer; font-family: var(--font-body); letter-spacing: 0.02em; }
.point-undo button:active { border-color: var(--gold-line); color: var(--gold-light); }
.serve-ball { background: none; border: none; padding: 6px; margin: -6px; cursor: pointer; display: inline-flex; align-items: center; animation: serveBallPop 380ms cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes serveBallPop {
  0%   { opacity: 0; transform: scale(0.4) translateY(2px); }
  55%  { opacity: 1; transform: scale(1.18) translateY(0); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
 
.points-summary { display: flex; justify-content: space-between; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--gold-line); }
.points-summary > div { text-align: center; flex: 1; }
.points-summary__v { font-family: var(--font-mono); font-size: 18px; color: var(--ivory); }
.points-summary__v.is-gold { color: var(--gold); }
.points-summary__l { font-size: 9px; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }
.points-summary__pct { font-family: var(--font-mono); font-size: 11px; color: var(--gold); margin-top: 4px; }
.bp-summary { display: flex; justify-content: space-between; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--gold-line); }
.bp-summary > div { text-align: center; flex: 1; }
.bp-summary > div + div { border-left: 1px solid var(--border); }
.bp-summary__sub { font-size: 9.5px; color: var(--ink-3); margin-top: 4px; }
.courtside__note { font-size: 10px; color: var(--ink-2); text-align: center; margin-top: 12px; font-style: italic; font-weight: 500; }
 
/* tracked-stats list during live play */
.live-statlist__label { font-size: 9px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); margin: 20px 0 6px; }
.live-stat { display: flex; align-items: center; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--border); }
.live-stat__name { font-size: 13.5px; font-weight: 600; }
.live-stat__sub { display: block; font-size: 10px; color: var(--ink-2); margin-top: 2px; font-weight: 500; }
.live-stat__auto { font-family: var(--font-mono); font-size: 22px; color: var(--gold); min-width: 36px; text-align: center; }
.live-stat__wbtn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--gold-line); background: var(--surface-sunk); color: var(--gold); font-size: 18px; cursor: pointer; }

/* ── compact broadcast-style scoreboard grid (live tracking) ── */
.sb-grid { display: flex; align-items: stretch; gap: 4px; }
.sb-col { flex: 1 1 0; display: flex; flex-direction: column; min-width: 0; }
.sb-col--name { flex: 0 0 auto; min-width: 60px; }
.sb-col--live { flex: 1.25 1 0; }
.sb-col__head { height: 20px; font-size: 8.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3); text-align: center; }
.sb-col--live .sb-col__head { color: var(--gold); }
.sb-col--pts .sb-col__head { color: var(--gold); }
.sb-col__cell { height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
.sb-col--name .sb-col__cell { align-items: flex-start; }
.sb-static { font-family: var(--font-mono); font-size: 24px; color: var(--ink-2); line-height: 1; }
.sb-static sup { font-size: 11px; margin-left: 1px; }
.sb-static--live { color: var(--ivory); }
.sb-static--pts { color: var(--gold); }
.sb-name { font-size: 13px; font-weight: 700; color: var(--ivory); display: flex; align-items: center; gap: 5px; }
.sb-name--opp { color: var(--ink-2); }
.sb-name__edit { background: none; border: none; color: inherit; font: inherit; cursor: pointer; padding: 0; text-align: left; }
.sb-serve { background: none; border: none; padding: 0; cursor: pointer; display: inline-flex; align-items: center; }
.sb-divider { height: 1px; background: var(--gold-line); margin: 16px 0 14px; }
.sb-points__note { font-size: 10px; color: var(--ivory); text-align: center; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 12px; }
.sb-name-edit { display: flex; gap: 8px; margin-bottom: 16px; }
.sb-name-edit .input { flex: 1; margin: 0; }

/* ── Live Points panel — outside the scoreboard. Points Won / Break
   Points are informational, not active-play controls, so they sit below
   the scoreboard card in their own panel rather than inside it, reusing
   the original .points-summary / .bp-summary stat-row treatment. ── */
.live-points-panel { background: rgba(0,0,0,0.15); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px 4px; margin-top: 18px; }
.live-points-panel__eyebrow { font-size: 9px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); text-align: center; margin: 0 0 2px; }
.live-points-panel .points-summary { margin-top: 10px; padding-top: 0; border-top: none; }
.live-points-panel .bp-summary { margin-top: 14px; padding-top: 14px; }

/* ── tracked-stats oval pills (live tracking) ── */
/* Grid, not flex-wrap — every pill fills its column equally so labels
   line up in clean rows/columns regardless of acronym length. */
.live-stat-pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 6px; }
.live-stat-pill { display: flex; align-items: stretch; border-radius: var(--radius-pill); border: 1px solid var(--border); overflow: hidden; touch-action: none; }
.live-stat-pill.has-val { border-color: var(--gold-line); }
.live-stat-pill__add { display: flex; align-items: center; justify-content: space-between; flex: 1; min-width: 0; gap: 6px; padding: 9px 11px; background: transparent; border: none; cursor: pointer; font-family: var(--font-body); }
.live-stat-pill--auto .live-stat-pill__add { cursor: default; }
.live-stat-pill__label { font-size: 11px; font-weight: 700; color: var(--ink-3); letter-spacing: 0.03em; }
.live-stat-pill.has-val .live-stat-pill__label { color: var(--ivory); }
.live-stat-pill__val { font-family: var(--font-mono); font-size: 15px; font-weight: 700; color: var(--gold); flex-shrink: 0; }
.live-stat-pill__dec { flex-shrink: 0; padding: 0 12px; background: var(--surface-sunk); border: none; border-left: 1px solid var(--gold-line); color: var(--ink-2); font-size: 15px; font-weight: 700; cursor: pointer; }

/* ── "Choose What to Track" tracked-list pills — full-width, press-hold-
   drag to reorder, tap to remove (mirrors the "+ add" pills below it). ── */
#draftList { display: flex; flex-direction: column; gap: 8px; }
.picker-pill { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--surface); cursor: grab; touch-action: none; }
.picker-pill__text { display: flex; flex-direction: column; gap: 2px; }
.picker-pill__sub { font-size: 10px; color: var(--ink-2); }
.picker-pill__handle { color: var(--ink-3); flex-shrink: 0; }

/* ── shared drag-reorder visuals (makeDragReorder) ── */
.drag-placeholder { border: 1px dashed var(--gold-line); border-radius: var(--radius-pill); background: var(--gold-wash); opacity: 0.4; box-sizing: border-box; }
.dragging { opacity: 0.92; box-shadow: var(--shadow-lift); cursor: grabbing; }
.dragging.pending-remove { border-color: var(--loss); background: var(--loss-wash); opacity: 0.85; }
.dragging.pending-remove .live-stat-pill__label,
.dragging.pending-remove .live-stat-pill__val { color: var(--loss); }

/* review screen */
.review-headline { text-align: center; margin-bottom: 24px; }
.review-result { font-family: var(--font-display); font-size: 40px; font-weight: 800; line-height: 1; }
.review-result.won { color: var(--gold); }
.review-result.lost { color: var(--ink-2); }
.review-score { font-family: var(--font-mono); font-size: 18px; color: var(--ivory); margin-top: 10px; letter-spacing: 0.06em; }
.review-games { font-size: 11px; color: var(--ink-2); margin-top: 6px; font-weight: 500; }
.review-highlight { background: var(--gold-wash); border: 1px solid var(--gold-line); border-radius: 12px; padding: 14px 18px; margin-bottom: 24px; text-align: center; }
.review-highlight p { font-family: var(--font-display); font-size: 14.5px; font-weight: 700; color: var(--ivory); font-style: italic; }
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 24px; }
.review-cell { background: var(--surface-sunk); padding: 14px 16px; }
.review-cell__v { font-family: var(--font-mono); font-size: 20px; color: var(--ivory); }
.review-cell__l { font-size: 9.5px; color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase; margin-top: 4px; }
 
/* reason picker */
.reason-opt { width: 100%; padding: 16px; margin-bottom: 10px; border-radius: 12px; cursor: pointer; font-family: var(--font-body); font-size: 14px; font-weight: 700; background: transparent; color: var(--ivory); border: 1px solid var(--border); text-align: left; }
.reason-opt.selected { border-color: var(--gold); background: var(--gold-wash); color: var(--gold); }

/* ─────────────────────────────────────────────────────────────────────────
   22. MY GAME — Hero section (strength card, action row, grow card)
   ───────────────────────────────────────────────────────────────────────── */

/* ── Keyframes ── */
@keyframes sweep {
  0%   { left: -60%; }
  55%  { left: 130%; }
  100% { left: 130%; }
}
@keyframes dotGlow {
  from { opacity: 0; transform: scale(0.4); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes btnSheen {
  0%   { left: -75%; }
  100% { left: 130%; }
}

/* ── Profile header ── */
.mg-header { text-align: center; margin-bottom: var(--space-lg); }
.mg-compact {
  text-align: center;
  font-size: var(--fs-body); font-weight: 700; color: var(--ivory);
  margin-bottom: var(--space-lg);
}
.mg-compact .text-muted { font-weight: 500; }
.mg-tier { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--gold); margin-top: 10px; letter-spacing: 0.04em; }
.mg-mode-pills { display: flex; justify-content: center; gap: 6px; margin-bottom: 22px; }
.mg-mode-pill { padding: 5px 12px; border-radius: 999px; cursor: pointer; font-size: 9.5px; font-weight: 700; font-family: var(--font-body); letter-spacing: 0.05em; background: transparent; color: var(--ink-3); border: 1px solid var(--border); }
.mg-mode-pill.active { background: var(--gold-wash); color: var(--gold); border-color: var(--gold-line); }

/* ── Strength card ── */
.strength-card {
  position: relative; overflow: hidden;
  background: linear-gradient(170deg, var(--green), var(--green-deep));
  border: 1px solid var(--gold-line);
  border-radius: 50px;
  padding: 28px 26px;
  margin-bottom: 14px;
  text-align: center;
}
/* The animated shimmer sweep */
.strength-card::before {
  content: "";
  position: absolute; top: 0; left: -60%;
  width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent, var(--gold-wash), transparent);
  animation: sweep 4.5s ease-in-out 0.8s infinite;
  pointer-events: none;
}
.strength-card__eyebrow { color: var(--gold); margin-bottom: 18px; }
.strength-card__attr { font-family: var(--font-display); font-size: 30px; font-weight: 700; margin-bottom: 14px; color: var(--ivory); }
.strength-card__pips { display: flex; justify-content: center; gap: 6px; margin-bottom: 12px; }
.strength-card__pip { width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--ink-3); background: transparent; }
.strength-card__pip.on { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 6px var(--gold-wash); }
.strength-card__label { font-family: var(--font-display); font-size: 17px; font-style: italic; color: var(--gold); }
.strength-card__source { font-size: 11px; color: var(--ink-2); margin-top: 6px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.strength-card__source.src-stat  { color: var(--ivory); font-weight: 700; }
.strength-card__source.src-peer  { color: var(--ivory); }
.strength-card__source.src-coach { color: var(--gold); font-weight: 800; }

/* Session dots + count row */
.sessions-row {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  margin-top: 22px;
}
.session-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: transparent;
  border: 1px solid var(--ink-3);
}
.session-dot.on {
  background: var(--gold); border-color: var(--gold);
  box-shadow: 0 0 6px var(--gold);
  opacity: 0;
  animation: dotGlow 0.6s ease both;
}
.session-dot.on:nth-child(1) { animation-delay: 0.40s; }
.session-dot.on:nth-child(2) { animation-delay: 0.52s; }
.session-dot.on:nth-child(3) { animation-delay: 0.64s; }
.session-dot.on:nth-child(4) { animation-delay: 0.76s; }
.sessions-row__label { font-size: 11px; color: var(--ink-2); margin-left: 8px; }

/* ── Action row — big luxury buttons ── */
.action-row { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }

.btn-big {
  position: relative; overflow: hidden;
  width: 100%; min-height: 56px;
  font-family: var(--font-body); font-size: 15px; font-weight: 800;
  letter-spacing: 0.02em; border-radius: 14px;
  padding: 17px 22px; cursor: pointer;
  transition: transform 0.12s cubic-bezier(0.22,1,0.36,1), box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn-big:active { transform: scale(0.975); }

.btn-big--primary {
  background: var(--gold);
  color: var(--noir);
  border: none;
  box-shadow: 0 1px 0 var(--gold-light) inset;
}
/* One-time gold sheen on entrance */
.btn-big--primary::after {
  content: "";
  position: absolute; top: 0; left: -75%;
  width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-18deg);
  animation: btnSheen 1.1s cubic-bezier(0.22,1,0.36,1) 0.5s 1 both;
  pointer-events: none;
}
.btn-big--primary:active { box-shadow: 0 0 22px rgba(201,168,106,0.45); }

.btn-big--green {
  background: linear-gradient(170deg, var(--green), var(--green-deep));
  color: var(--gold);
  border: 1px solid var(--gold-line);
  font-weight: 700;
  font-size: 14.5px;
}

/* ── Most Room to Grow card ── */
.grow-card {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 32px;
}
.grow-card__body { flex: 1; }
.grow-card__eyebrow { color: var(--ink-3); margin-bottom: 6px; }
.grow-card__attr { font-size: 14px; font-weight: 700; color: var(--ivory); }
.grow-card__hint { font-size: 11.5px; color: var(--ink-2); margin-top: 3px; font-weight: 500; }

/* ─────────────────────────────────────────────────────────────────────────
   23. MY GAME — Quick Log (button-tap rebuild)
   (appended — nothing above this line was touched)
   ───────────────────────────────────────────────────────────────────────── */

/* Journal row — two CTAs on a suspended match, not one */
.journal-row__resume-pair { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.journal-row__resume-pair .btn { flex: 1; min-width: 140px; }

/* Opponent search — tap suggestions under the text input */
.ql-suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--space-sm); }
.ql-suggest__chip {
  padding: 7px 12px; border-radius: var(--radius-pill); cursor: pointer;
  font-family: var(--font-body); font-size: 11.5px; font-weight: 700;
  background: var(--surface-sunk); color: var(--ivory); border: 1px solid var(--border);
}
.ql-suggest__chip:hover { border-color: var(--gold-line); color: var(--gold-light); }

/* Format-rules "i" toggle, inline expand drawer */
.ql-info-btn {
  width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--gold-line);
  background: transparent; color: var(--gold); font-size: 11px; font-weight: 700;
  cursor: pointer; line-height: 1; padding: 0; display: grid; place-items: center;
  font-family: var(--font-body); flex-shrink: 0;
}
.ql-rules {
  background: var(--surface-sunk); border: 1px solid var(--border); border-radius: 14px;
  padding: var(--space-md); margin-bottom: var(--space-md);
}
.ql-rules__block { margin-bottom: 16px; }
.ql-rules__block:last-of-type { margin-bottom: 0; }
.ql-rules__title { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.ql-rules__line { font-size: 12px; color: var(--ink-2); line-height: 1.6; }
.ql-rules__example { font-family: var(--font-mono); font-size: 11px; color: var(--ink-2); margin-top: 4px; font-weight: 500; }
.ql-rules__footnote { font-size: 11px; color: var(--ink-2); font-style: italic; line-height: 1.6; padding-top: 14px; border-top: 1px solid var(--border-soft); margin-top: 4px; }

/* Match Time — collapsed strip + inline-expanding tile grid */
.ql-time-strip {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 13px 16px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; cursor: pointer; font-family: var(--font-body); font-size: 13px;
  font-weight: 700; color: var(--ivory); margin-bottom: 4px;
}
.ql-time-panel { margin: 10px 0 0; animation: qlExpand var(--t-fast) var(--ease-soft); }
@keyframes qlExpand { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.ql-time-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.ql-time-tile {
  padding: 16px 10px; border-radius: 12px; cursor: pointer; text-align: center;
  font-family: var(--font-body); font-size: 13px; font-weight: 700; color: var(--ivory);
  background: var(--surface-sunk); border: 1px solid var(--border);
}
.ql-time-tile.active { background: var(--gold-wash); color: var(--gold-light); border-color: var(--gold-line); }
.ql-time-skip { width: 100%; background: none; border: none; cursor: pointer; padding: 6px 0; font-family: var(--font-body); font-size: 11.5px; color: var(--ink-3); text-decoration: underline; text-underline-offset: 3px; }
.ql-time-custom { padding: 14px; background: var(--surface-sunk); border: 1px solid var(--border); border-radius: 12px; }
.ql-time-custom__row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ql-time-custom__row:last-of-type { margin-bottom: 0; }
.ql-time-custom__label { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }

/* Per-set score-entry block */
.ql-set { padding: var(--space-md) 0; border-bottom: 1px solid var(--border); }
.ql-set:last-of-type { border-bottom: none; }
.ql-set__label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.ql-tiebreak { padding: 14px; margin-top: 6px; background: var(--surface-sunk); border: 1px solid var(--gold-line-2); border-radius: 12px; }
.ql-block-msg { font-size: 12px; color: var(--loss); background: rgba(154,74,56,0.10); border: 1px solid var(--clay-line); border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; }

/* Opponent chips — recent-3 + "+ New", one tap instead of typing */
.ql-opp-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.ql-opp-chip {
  display: flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px;
  border-radius: var(--radius-pill); cursor: pointer;
  font-family: var(--font-body); font-size: 12.5px; font-weight: 600; color: var(--ink-2);
  background: var(--surface-sunk); border: 1px solid var(--border);
}
.ql-opp-chip .avatar { width: 26px; height: 26px; font-size: 11px; }
.ql-opp-chip.active { border-color: var(--gold); color: var(--ivory); background: var(--gold-wash); }
.ql-opp-chip.active .avatar { background: var(--gold); color: #1A140A; border-color: var(--gold); }
.ql-opp-chip--add { border-style: dashed; color: var(--ink-3); padding: 9px 14px; }
.ql-opp-chip--add.active { border-style: solid; }

/* One-tap set-score chips — replaces the +/- stepper for the common case.
   Same grid/tile language as .ql-time-grid/.ql-time-tile. */
.ql-score-group__label { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin: 14px 0 8px; }
.ql-score-group__label:first-of-type { margin-top: 4px; }
.ql-score-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.ql-score-chip {
  padding: 11px 4px; border-radius: 10px; cursor: pointer; text-align: center;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600; color: var(--ink-2);
  background: var(--surface-sunk); border: 1px solid var(--border);
}
.ql-score-chip.active { background: var(--gold-wash); color: var(--gold-light); border-color: var(--gold-line); font-weight: 700; }
.ql-score-chip--wide { grid-column: span 4; font-family: var(--font-body); font-size: 11.5px; color: var(--ink-3); }

/* Rare "breaker went past tbTo" fallback — one typed number */
.ql-tb-extend { display: flex; align-items: center; gap: 14px; margin-top: 10px; background: rgba(0,0,0,0.18); border: 1px solid var(--border-soft); border-radius: 12px; padding: 14px; }
.ql-tb-extend input {
  width: 60px; height: 46px; text-align: center; font-family: var(--font-mono); font-size: 20px;
  color: var(--gold-light); background: var(--surface-sunk); border: 1.5px solid var(--gold-line);
  border-radius: 10px;
}
.ql-tb-extend__calc { font-size: 12px; color: var(--ink-2); line-height: 1.5; }
.ql-tb-extend__calc b { color: var(--ivory); }
/* ─────────────────────────────────────────────────────────────────────────
   24. MY GAME — Hero card (single-highlight: PR / milestone / result / blank)
   Action buttons now live INSIDE this card. Reuses the sweep/dotGlow/btnSheen
   keyframes and .btn-big classes already defined above.
   (appended — nothing above this line was touched)
   ───────────────────────────────────────────────────────────────────────── */
.hero-card {
  position: relative; overflow: hidden;
  background: linear-gradient(170deg, var(--green), var(--green-deep));
  border: 1px solid var(--gold-line);
  border-radius: 28px;
  padding: 30px 26px 24px;
  margin-bottom: 28px;
  text-align: center;
}
.hero-card::before {
  content: "";
  position: absolute; top: 0; left: -60%;
  width: 60%; height: 100%;
  background: linear-gradient(105deg, transparent, var(--gold-wash), transparent);
  animation: sweep 4.5s ease-in-out 0.8s infinite;
  pointer-events: none;
}
.hero-card > * { position: relative; z-index: 1; }

.hero-card__eyebrow { color: var(--gold); margin-bottom: 16px; }
/* Big figure (the PR number, milestone total, or score line) */
.hero-card__figure {
  font-family: var(--font-mono);
  font-size: 52px; font-weight: 600; line-height: 1;
  color: var(--ivory);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.hero-card__figure--score { font-size: 34px; letter-spacing: 0.01em; }
.hero-card__unit {
  font-family: var(--font-display); font-size: 17px; font-style: italic;
  color: var(--gold); margin-bottom: 6px;
}
.hero-card__sub { font-size: 12px; color: var(--ink-2); }

/* blank / no-highlight states */
.hero-card__blank-title {
  font-family: var(--font-display); font-size: 22px; font-weight: 700;
  color: var(--ivory); margin-bottom: 8px;
}

/* Action buttons, now seated inside the card */
.hero-card__actions {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
/* Card A / Card B side-by-side row — always 2-up, including mobile */
.hero-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm);
  margin-bottom: 28px;
}
.hero-card--split {
  padding: 20px 14px 18px;
  border-radius: 20px;
  margin-bottom: 0;
}
.hero-card--split .hero-card__eyebrow { font-size: 10px; margin-bottom: 10px; }
.hero-card--split .hero-card__figure { font-size: 30px; margin-bottom: 6px; }
.hero-card--split .hero-card__figure--score { font-size: 19px; line-height: 1.35; }
.hero-card--split .hero-card__unit { font-size: 13px; margin-bottom: 4px; }
.hero-card--split .hero-card__sub { font-size: 10.5px; }
.hero-card--split .hero-card__blank-title { font-size: 16px; }
.hero-card--split .btn-block { font-size: 12px; padding: 10px; }
/* ─────────────────────────────────────────────────────────────────────────
   26. MY GAME — Journal row redesign (clean collapsed row, Edited marker)
   ───────────────────────────────────────────────────────────────────────── */
.journal-row__id { display: flex; align-items: center; gap: 8px; }
.journal-row__edited {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold); background: var(--gold-wash); border: 1px solid var(--gold-line-2);
  border-radius: var(--radius-pill); padding: 2px 8px; flex-shrink: 0;
}
.journal-row__body .journal-row__meta { margin: 0 0 16px; font-size: var(--fs-sm); }