    :root {
      /* One accent: emerald. Dark shades carry text for AA contrast. */
      --accent:        #059669;   /* primary surfaces */
      --accent-strong: #047857;   /* hover / pressed */
      --accent-ink:    #065f46;   /* accent text on light (≥7:1) */
      --accent-tint:   #ecfdf5;   /* faint accent background */
      --accent-tint-2: #d1fae5;

      --ink:      #0f172a;        /* primary text */
      --ink-2:    #475569;        /* secondary text */
      --ink-3:    #64748b;        /* muted text (≥4.5:1 on white) */
      --line:     #e2e8f0;
      --line-2:   #eef2f6;
      --surface:  #ffffff;
      --bg:       #f6f8fa;

      --danger:   #dc2626;
      --danger-bg:#fef2f2;
      --warn:     #b45309;
      --warn-bg:  #fffbeb;
      --info:     #1d4ed8;
      --info-bg:  #eff6ff;

      --r-lg: 16px;
      --r:    12px;
      --r-sm: 9px;
      --shadow:    0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.08);
      --shadow-md: 0 4px 12px -2px rgba(15,23,42,.10), 0 2px 6px -2px rgba(15,23,42,.06);
      --shadow-lg: 0 12px 32px -8px rgba(15,23,42,.18);
      --ring: 0 0 0 3px rgba(5,150,105,.30);
    }

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

    html { -webkit-text-size-adjust: 100%; }
    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
      background: var(--bg);
      color: var(--ink);
      min-height: 100dvh;
      display: flex;
      flex-direction: column;
      line-height: 1.5;
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
    }

    /* Visible, consistent keyboard focus everywhere. */
    :focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; border-radius: 4px; }
    .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;
    }
    .skip-link:focus { width: auto; height: auto; clip: auto; overflow: visible; padding: 8px 16px; background: var(--surface); color: var(--accent-ink); font-weight: 700; z-index: 100; border-radius: var(--r-sm); box-shadow: var(--shadow-lg); white-space: nowrap; text-decoration: none; }
    [hidden] { display: none !important; }

    /* ── Header ── */
    .app-header {
      background: rgba(255,255,255,.85);
      backdrop-filter: saturate(180%) blur(12px);
      -webkit-backdrop-filter: saturate(180%) blur(12px);
      border-bottom: 1px solid var(--line);
      padding: 0 16px;
      height: 56px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      position: sticky;
      top: 0;
      z-index: 30;
    }
    .brand { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
    .brand .dot { font-size: 1.2rem; }
    .header-right { display: flex; align-items: center; gap: 8px; }
    .user-badge {
      font-size: .8rem;
      font-weight: 600;
      color: var(--accent-ink);
      background: var(--accent-tint);
      padding: 6px 12px;
      border-radius: 999px;
      max-width: 130px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    /* ── Content area ── */
    .app-content {
      flex: 1;
      width: 100%;
      max-width: 680px;
      margin: 0 auto;
      padding: 20px 16px 40px;
    }

    /* ── Views ── */
    .view { display: none; }
    .view.active { display: block; animation: fade .25s ease; }
    @keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

    /* ── Auth ── */
    .auth-wrap {
      display: flex;
      align-items: center;
      justify-content: center;
      min-height: calc(100dvh - 56px);
      padding: 24px 16px;
    }
    .auth-card {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--r-lg);
      padding: 32px 24px;
      width: 100%;
      max-width: 400px;
      box-shadow: var(--shadow-lg);
    }
    .auth-card h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; text-align: center; }
    .auth-card .sub { font-size: .9rem; color: var(--ink-3); margin-bottom: 24px; text-align: center; }
    .tab-row {
      display: flex;
      background: var(--bg);
      border: 1px solid var(--line);
      border-radius: var(--r-sm);
      padding: 4px;
      margin-bottom: 24px;
      gap: 4px;
    }
    .tab-btn {
      flex: 1;
      padding: 9px;
      border: none;
      background: none;
      border-radius: 6px;
      cursor: pointer;
      font-size: .9rem;
      font-weight: 600;
      color: var(--ink-2);
      transition: all .15s;
    }
    .tab-btn.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

    /* ── Forms ── */
    .fg { margin-bottom: 16px; }
    label { display: block; font-size: .84rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
    label .opt { color: var(--ink-3); font-weight: 400; }
    input:not([type=checkbox]):not([type=range]), select, textarea {
      width: 100%;
      padding: 12px 14px;
      border: 1.5px solid var(--line);
      border-radius: var(--r-sm);
      font-size: 1rem;
      color: var(--ink);
      background: var(--surface);
      transition: border-color .15s, box-shadow .15s;
      -webkit-appearance: none;
      appearance: none;
    }
    textarea { font-family: inherit; line-height: 1.45; resize: vertical; min-height: 88px; }
    input::placeholder, textarea::placeholder { color: var(--ink-3); opacity: .8; }
    input:not([type=checkbox]):not([type=range]):focus, select:focus, textarea:focus {
      outline: none;
      border-color: var(--accent);
      box-shadow: var(--ring);
    }
    .check-row {
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: .9rem;
      color: var(--ink-2);
      cursor: pointer;
    }
    .check-row input[type=checkbox] {
      width: 18px; height: 18px;
      accent-color: var(--accent);
      cursor: pointer;
      flex-shrink: 0;
    }

    /* ── Buttons ── */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      padding: 12px 18px;
      border: 1.5px solid transparent;
      border-radius: var(--r-sm);
      font-size: .92rem;
      font-weight: 700;
      cursor: pointer;
      transition: transform .08s, background .15s, border-color .15s, color .15s;
      white-space: nowrap;
      min-height: 44px;
      font-family: inherit;
      text-decoration: none;
    }
    .btn:active:not(:disabled) { transform: scale(.985); }
    .btn:disabled { opacity: .55; cursor: not-allowed; }
    .btn svg { width: 18px; height: 18px; flex-shrink: 0; }
    .btn-primary { background: var(--accent-strong); color: #fff; width: 100%; box-shadow: var(--shadow); }
    .btn-primary:hover:not(:disabled) { background: var(--accent-ink); }
    .btn-outline { background: var(--surface); border-color: var(--line); color: var(--ink-2); }
    .btn-outline:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-ink); }
    .btn-sm { padding: 8px 13px; font-size: .82rem; min-height: 36px; gap: 5px; }
    .btn-sm svg { width: 15px; height: 15px; }
    .btn-ghost-green {
      background: var(--accent-tint);
      color: var(--accent-ink);
      border-color: var(--accent-tint-2);
    }
    .btn-ghost-green:hover:not(:disabled) { background: var(--accent-tint-2); }

    /* ── Alerts ── */
    .alert {
      padding: 12px 14px;
      border-radius: var(--r-sm);
      font-size: .88rem;
      margin-bottom: 16px;
      display: flex;
      gap: 9px;
      align-items: flex-start;
      line-height: 1.45;
    }
    .alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
    .alert-error { background: var(--danger-bg); color: #991b1b; }
    .alert-success { background: var(--accent-tint); color: var(--accent-ink); }
    .alert-info { background: var(--info-bg); color: var(--info); }

    /* ── Section header ── */
    .sec-hdr {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      margin-bottom: 16px;
    }
    .sec-title { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
    .sec-sub { font-size: .85rem; color: var(--ink-3); margin-top: 2px; }

    /* ── Cards & panels ── */
    .card {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--r);
      padding: 16px;
      margin-bottom: 12px;
      box-shadow: var(--shadow);
    }
    .panel {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--r-lg);
      padding: 18px 16px;
      margin-bottom: 20px;
      box-shadow: var(--shadow);
    }
    .card-title { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; }
    .card-meta {
      font-size: .82rem;
      color: var(--ink-3);
      display: flex;
      align-items: flex-start;
      gap: 7px;
      margin-top: 6px;
      line-height: 1.4;
    }
    .card-meta svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; }

    /* ── Badges ── */
    .badge {
      display: inline-flex;
      align-items: center;
      padding: 3px 9px;
      border-radius: 999px;
      font-size: .72rem;
      font-weight: 700;
      letter-spacing: .01em;
    }
    .badge-green { background: var(--accent-tint); color: var(--accent-ink); }
    .badge-gray { background: #f1f5f9; color: var(--ink-2); }
    .badge-blue { background: var(--info-bg); color: var(--info); }
    .badge-yellow { background: var(--warn-bg); color: var(--warn); }
    .badge-red { background: var(--danger-bg); color: #991b1b; }

    /* ── Spinner & skeletons ── */
    .spinner {
      display: inline-block;
      width: 18px; height: 18px;
      border: 2.5px solid rgba(255,255,255,.4);
      border-top-color: #fff;
      border-radius: 50%;
      animation: spin .7s linear infinite;
    }
    .spinner-dark { border-color: rgba(5,150,105,.2); border-top-color: var(--accent); }
    @keyframes spin { to { transform: rotate(360deg); } }
    .skel-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin-bottom: 12px; }
    .skel { background: linear-gradient(100deg, #eef2f6 30%, #f8fafc 50%, #eef2f6 70%); background-size: 200% 100%; border-radius: 6px; animation: shimmer 1.3s infinite; }
    @keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
    .skel-line { height: 12px; margin-bottom: 10px; }

    /* ── Empty state ── */
    .empty {
      text-align: center;
      padding: 48px 20px;
      color: var(--ink-3);
    }
    .empty .ico { font-size: 2.6rem; margin-bottom: 10px; }
    .empty h3 { font-size: 1rem; color: var(--ink-2); font-weight: 700; margin-bottom: 4px; }
    .empty p { font-size: .88rem; max-width: 300px; margin: 0 auto; }

    /* ── Location picker ── */
    .loc-or { display: flex; align-items: center; gap: 12px; margin: 14px 0; color: var(--ink-3); font-size: .78rem; font-weight: 600; }
    .loc-or::before, .loc-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
    .search-row { display: flex; gap: 8px; }
    .search-row .fg { flex: 1; margin: 0; }
    .loc-banner {
      display: flex; align-items: center; gap: 8px;
      background: var(--accent-tint); color: var(--accent-ink);
      border-radius: var(--r-sm); padding: 11px 13px; margin-bottom: 4px;
      font-size: .85rem; font-weight: 600; line-height: 1.4;
    }
    .loc-banner svg { width: 17px; height: 17px; flex-shrink: 0; }
    .loc-hint { font-size: .8rem; color: var(--ink-3); margin: 8px 0 4px; }

    /* ── Register venue toggle ── */
    .add-venue-toggle {
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: var(--r-lg);
      padding: 15px 16px;
      margin-bottom: 20px;
      box-shadow: var(--shadow);
      cursor: pointer;
      width: 100%;
      text-align: left;
      transition: box-shadow .15s, border-color .15s;
      font-family: inherit;
    }
    .add-venue-toggle:hover { box-shadow: var(--shadow-md); border-color: var(--accent-tint-2); }
    .add-venue-toggle .tt { font-weight: 700; font-size: .98rem; color: var(--ink); }
    .add-venue-toggle .ts { font-size: .8rem; color: var(--ink-3); margin-top: 1px; }
    .expand-icon { display: inline-block; transition: transform .2s; color: var(--ink-3); font-size: 1rem; }
    .expand-icon.open { transform: rotate(180deg); }

    /* ── Venue cards ── */
    .venue-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
    .venue-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
    .court-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 10px 0;
      border-top: 1px solid var(--line-2);
    }
    .court-row .cn { font-size: .9rem; font-weight: 600; }
    .expand-btn {
      background: none; border: none; cursor: pointer;
      color: var(--accent-ink); font-size: .82rem; font-weight: 700;
      display: flex; align-items: center; gap: 4px; padding: 6px 2px; min-height: 32px;
    }
    .add-court-section { margin-top: 12px; padding-top: 4px; }
    .add-court-form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); }
    .inline-row { display: flex; gap: 8px; }
    .inline-row .fg { flex: 1; margin-bottom: 0; }
    .courts-head { font-size: .72rem; font-weight: 800; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
    .venue-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }

    /* ── Venue leaderboard ── */
    .board-wrap { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); }
    .board-head {
      display: flex; align-items: center; gap: 7px;
      font-size: .8rem; color: var(--ink-2); font-weight: 600;
      background: var(--accent-tint); border-radius: var(--r-sm);
      padding: 9px 11px; margin-bottom: 14px;
    }
    .board-head svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--accent-ink); }
    .board-section-title { font-size: .8rem; font-weight: 800; color: var(--ink-2); letter-spacing: -.01em; margin-bottom: 10px; }

    .rank-chip {
      display: inline-flex; align-items: center; justify-content: center;
      min-width: 38px; height: 38px; padding: 0 9px;
      border-radius: 12px; flex-shrink: 0;
      font-size: .95rem; font-weight: 800; letter-spacing: -.02em;
      background: #f1f5f9; color: var(--ink-2);
    }
    .rank-chip .medal { font-size: 1.25rem; line-height: 1; }
    .rank-chip.gold   { background: linear-gradient(135deg, #fde68a, #f59e0b); color: #7c2d12; box-shadow: 0 3px 10px -3px rgba(245,158,11,.6); }
    .rank-chip.silver { background: linear-gradient(135deg, #f1f5f9, #cbd5e1); color: #334155; }
    .rank-chip.bronze { background: linear-gradient(135deg, #fed7aa, #d97706); color: #fff; }

    .spotlight { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
    @media (max-width: 360px) { .spotlight { grid-template-columns: 1fr; } }
    .spot {
      background: var(--surface); border: 1px solid var(--line);
      border-radius: var(--r); padding: 13px; box-shadow: var(--shadow);
      min-width: 0;
    }
    .spot.hero {
      grid-column: 1 / -1;
      background: linear-gradient(135deg, #fffbeb 0%, #fefce8 100%);
      border-color: #fde68a;
    }
    .spot-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
    .spot-pct { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
    .spot-pct .pu { font-size: .85rem; font-weight: 700; }
    .spot.hero .spot-pct { font-size: 1.9rem; }
    .spot-name { font-size: 1rem; font-weight: 800; letter-spacing: -.01em; margin-top: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .spot.hero .spot-name { font-size: 1.2rem; }
    .spot-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
    .spot-sub { font-size: .82rem; color: var(--ink-2); font-weight: 600; margin-top: 9px; }

    .lb-list { display: flex; flex-direction: column; }
    .lb-row {
      display: flex; align-items: center; gap: 11px;
      padding: 11px 0; border-top: 1px solid var(--line-2);
    }
    .lb-row:first-child { border-top: none; }
    .lb-main { flex: 1; min-width: 0; }
    .lb-name { font-size: .92rem; font-weight: 700; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .lb-stats { font-size: .78rem; color: var(--ink-3); margin-top: 3px; display: flex; gap: 6px; flex-wrap: wrap; }
    .lb-dot { color: var(--line); }
    .lb-score { width: 64px; flex-shrink: 0; text-align: right; }
    .lb-pct { font-size: 1rem; font-weight: 800; letter-spacing: -.02em; }
    .lb-bar { background: var(--line-2); border-radius: 999px; height: 5px; overflow: hidden; margin-top: 5px; }
    .lb-bar-fill { height: 100%; border-radius: 999px; background: var(--accent); transition: width .6s ease; }

    /* ── Claim a venue ── */
    .claim-search-list { margin-top: 6px; }
    .claim-vrow {
      display: flex; align-items: center; justify-content: space-between; gap: 12px;
      width: 100%; text-align: left; background: var(--surface);
      border: 1px solid var(--line); border-radius: var(--r);
      padding: 12px 14px; margin-bottom: 8px; cursor: pointer; font-family: inherit;
      transition: border-color .15s, box-shadow .15s, background .15s;
    }
    .claim-vrow:hover { border-color: var(--accent-tint-2); box-shadow: var(--shadow); }
    .claim-vrow .vn { font-weight: 700; font-size: .95rem; color: var(--ink); }
    .claim-vrow .va { font-size: .8rem; color: var(--ink-3); margin-top: 2px; line-height: 1.35; }
    .claim-vrow .vchev { color: var(--ink-3); flex-shrink: 0; }
    .claim-vrow svg { width: 18px; height: 18px; }

    .claim-back {
      background: none; border: none; cursor: pointer; font-family: inherit;
      color: var(--accent-ink); font-size: .84rem; font-weight: 700;
      display: inline-flex; align-items: center; gap: 4px; padding: 4px 2px; margin-bottom: 12px;
    }
    .claim-back svg { width: 15px; height: 15px; }

    .selected-venue {
      display: flex; align-items: flex-start; gap: 10px;
      padding: 14px 16px; border-radius: var(--r);
      background: var(--accent-tint); border: 1px solid var(--accent-tint-2); margin-bottom: 16px;
    }
    .selected-venue svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; color: var(--accent-ink); }
    .selected-venue .vn { font-weight: 800; font-size: 1.02rem; color: var(--ink); letter-spacing: -.01em; }
    .selected-venue .va { font-size: .82rem; color: var(--ink-2); margin-top: 2px; line-height: 1.4; }

    /* ── Verification stepper ── */
    .steps { display: flex; align-items: center; gap: 6px; margin-bottom: 18px; }
    .step { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
    .step .dot {
      width: 26px; height: 26px; border-radius: 999px; flex-shrink: 0;
      display: flex; align-items: center; justify-content: center;
      font-size: .78rem; font-weight: 800;
      background: #f1f5f9; color: var(--ink-3); border: 1.5px solid var(--line);
    }
    .step .dot svg { width: 15px; height: 15px; }
    .step .lbl { font-size: .76rem; font-weight: 700; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .step.done .dot { background: var(--accent); border-color: var(--accent); color: #fff; }
    .step.done .lbl { color: var(--accent-ink); }
    .step.current .dot { background: var(--surface); border-color: var(--accent); color: var(--accent-ink); box-shadow: var(--ring); }
    .step.current .lbl { color: var(--ink); }
    .step-sep { flex: 1; height: 2px; background: var(--line); border-radius: 2px; min-width: 8px; }
    .step-sep.done { background: var(--accent); }

    /* ── Status note ── */
    .status-note {
      display: flex; gap: 10px; align-items: flex-start;
      padding: 14px; border-radius: var(--r); font-size: .86rem; line-height: 1.5; margin-bottom: 16px;
    }
    .status-note svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
    .status-note.pending { background: var(--warn-bg); color: var(--warn); }
    .status-note.verified { background: var(--accent-tint); color: var(--accent-ink); }
    .status-note .t { font-weight: 800; }
    .evidence-recap { font-size: .82rem; color: var(--ink-2); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 13px; margin-bottom: 16px; }
    .evidence-recap .k { color: var(--ink-3); font-weight: 700; text-transform: uppercase; font-size: .66rem; letter-spacing: .05em; }

    /* ── Checkout / pricing ── */
    .checkout-card {
      border: 1.5px solid var(--accent-tint-2); border-radius: var(--r-lg);
      overflow: hidden; margin-bottom: 16px; box-shadow: var(--shadow);
    }
    .checkout-top {
      background: linear-gradient(135deg, var(--accent-strong) 0%, var(--accent-ink) 100%);
      color: #fff; padding: 22px;
    }
    /* Full-opacity white on the emerald gradient keeps small labels ≥4.5:1 (WCAG AA). */
    .checkout-top .eyebrow { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #fff; }
    .price-row { display: flex; align-items: baseline; gap: 6px; margin-top: 8px; }
    .price-amt { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
    .price-int { font-size: .95rem; font-weight: 700; color: #fff; }
    .checkout-body { padding: 18px; background: var(--surface); }
    .perk { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--ink-2); margin-bottom: 10px; }
    .perk svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; color: var(--accent); }
    .pay-note { font-size: .78rem; color: var(--ink-3); margin-top: 12px; display: flex; gap: 7px; align-items: flex-start; line-height: 1.45; }
    .pay-note svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 2px; }

    /* ── Owner success ── */
    .owner-hero {
      background: linear-gradient(135deg, var(--accent-strong) 0%, var(--accent-ink) 100%);
      color: #fff; border-radius: var(--r-lg); padding: 24px 22px; margin-bottom: 14px; box-shadow: var(--shadow-md);
    }
    .owner-hero h3 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; margin: 8px 0 4px; }
    .owner-hero p { font-size: .9rem; opacity: .92; line-height: 1.45; }
    .owner-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
    .owner-meta .cell { background: rgba(255,255,255,.16); border-radius: var(--r); padding: 12px 13px; }
    .owner-meta .cell .l { font-size: .68rem; opacity: .9; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
    .owner-meta .cell .vv { font-size: .98rem; font-weight: 800; margin-top: 3px; }

    .ownership-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    }

    /* Brand & bespoke-SVG icon sizing (replaces former emoji glyphs) */
    .brand .dot { display: inline-flex; align-items: center; color: var(--accent); }
    .brand .dot svg { width: 22px; height: 22px; }
    .auth-logo { display: flex; justify-content: center; color: var(--accent); margin-bottom: 8px; }
    .auth-logo svg { width: 44px; height: 44px; }
    .empty .ico { display: inline-flex; align-items: center; justify-content: center; color: var(--accent-ink); }
    .empty .ico svg { width: 40px; height: 40px; }
    .owner-hero .crown { display: inline-flex; }
    .owner-hero .crown svg { width: 30px; height: 30px; }
    .rank-chip .medal { display: inline-flex; }
    .rank-chip .medal svg { width: 22px; height: 22px; }
    .board-section-title svg { width: 15px; height: 15px; vertical-align: -2px; margin-right: 4px; color: var(--accent-ink); }

    @media (prefers-color-scheme: dark) {
      :root {
        --accent:        #10b981;
        --accent-strong: #059669;
        --accent-ink:    #6ee7b7;
        --accent-tint:   #064e3b;
        --accent-tint-2: #065f46;

        --ink:      #f1f5f9;
        --ink-2:    #cbd5e1;
        --ink-3:    #94a3b8;
        --line:     #334155;
        --line-2:   #1e293b;
        --surface:  #1e293b;
        --bg:       #0f172a;

        --danger:   #f87171;
        --danger-bg:#450a0a;
        --warn:     #fbbf24;
        --warn-bg:  #451a03;
        --info:     #60a5fa;
        --info-bg:  #172554;

        --shadow:    0 1px 2px rgba(0,0,0,.4), 0 1px 3px rgba(0,0,0,.4);
        --shadow-md: 0 4px 12px -2px rgba(0,0,0,.5), 0 2px 6px -2px rgba(0,0,0,.35);
        --shadow-lg: 0 12px 32px -8px rgba(0,0,0,.6);
        --ring: 0 0 0 3px rgba(16,185,129,.40);
      }
      /* --accent-ink is light green in dark mode — not suitable as a button bg */
      .btn-primary:hover:not(:disabled) { background: #047857; }
      .app-header { background: rgba(15,23,42,.88); }
    }

    /* ── Inline-style utilities — replace all style="" attrs in venue.html/venue-app.js ── */
    .u-toggle-row { display: flex; align-items: center; gap: 12px; }
    .u-icon-sm { width: 22px; height: 22px; flex-shrink: 0; color: var(--accent-strong); }
    .u-flex-1 { flex: 1; }
    .u-flex-1-min0 { flex: 1; min-width: 0; }
    .u-min-w-0 { min-width: 0; }
    .u-mb-4 { margin-bottom: 4px; }
    .u-mb-6 { margin-bottom: 6px; }
    .u-mb-8 { margin-bottom: 8px; }
    .u-mb-10 { margin-bottom: 10px; }
    .u-mb-12 { margin-bottom: 12px; }
    .u-mb-16 { margin-bottom: 16px; }
    .u-mb-18 { margin-bottom: 18px; }
    .u-mt-4 { margin-top: 4px; }
    .u-mt-6 { margin-top: 6px; }
    .u-mt-8 { margin-top: 8px; }
    .u-mt-12 { margin-top: 12px; }
    .u-mt-18 { margin-top: 18px; }
    .u-muted-link { color: inherit; opacity: .7; }
    .u-f-sm { font-size: .72rem; opacity: .8; }
    .u-osm-link { color: inherit; }
    .u-f-legal { font-size: .70rem; color: var(--ink-2, #475569); }
    .site-footer { padding: 16px 20px; text-align: center; font-size: .75rem; color: var(--ink-2, #475569); border-top: 1px solid var(--line, #e5e7eb); margin-top: 32px; }
    .site-footer .u-muted-link { opacity: 1; color: var(--ink-2, #475569); }
    .u-claim-hint { font-size: .9rem; color: var(--ink-2); margin-bottom: 16px; line-height: 1.5; }
    .u-verified-margin { margin-bottom: 16px; }
    .u-verify-method { margin-top: 6px; }
    .u-verify-evidence { margin-top: 4px; color: var(--ink-3); }
    .u-run-venue-txt { font-size: .86rem; font-weight: 500; margin-top: 8px; }
    .u-sub-btn-mt { margin-top: 6px; }
    .u-unlock-txt { font-size: .78rem; color: var(--ink-3); }
    .u-loading-wrap { display: flex; justify-content: center; padding: 24px; }
    .u-courts-head { margin-top: 12px; }
    .u-add-court-title { font-size: .84rem; font-weight: 700; color: var(--ink-2); margin-bottom: 10px; }
    .u-flex-end-wrap { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
    .u-inline-row-ctrl { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .u-check-label-sm { font-size: .85rem; }
    .u-board-section-title { margin-top: 18px; }
    .u-hint-text { font-size: .85rem; color: var(--ink-3); margin-top: 12px; }
    .u-skel-55 { width: 55%; height: 16px; }
    .u-skel-35 { width: 35%; }
    .u-skel-80 { width: 80%; margin-bottom: 0; }
    .u-no-courts-hint { font-size: .85rem; color: var(--ink-3); margin-top: 12px; }

    /* ── Member approval panel ── */
    .members-wrap { padding: 12px 16px 16px; }
    .members-section-title { display: flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
    .members-section-title svg { width: 15px; height: 15px; }
    .member-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
    .member-row:last-child { border-bottom: none; }
    .member-info { flex: 1; min-width: 0; }
    .member-name { font-size: .92rem; font-weight: 700; display: block; }
    .member-meta { font-size: .78rem; color: var(--ink-3); margin-top: 2px; }
    .member-actions { display: flex; gap: 6px; flex-shrink: 0; }
    .u-ml-4 { margin-left: 4px; }
    .u-mt-4 { margin-top: 4px; }
    .u-mt-18 { margin-top: 18px; }

    /* ── Analytics / yield panel ── */
    .analytics-wrap { padding: 12px 16px 16px; }
    .stat-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 20px; }
    .stat-tile { background: var(--accent-tint); border-radius: var(--r-sm); padding: 12px 14px; }
    .stat-val { font-size: 1.35rem; font-weight: 800; letter-spacing: -.03em; color: var(--accent-ink); }
    .stat-label { font-size: .82rem; font-weight: 700; color: var(--ink-2); margin-top: 4px; }
    .stat-sub { font-size: .75rem; color: var(--ink-3); margin-top: 2px; }
    .demand-section { margin-bottom: 18px; }
    .demand-title { display: flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 700; color: var(--ink-2); margin-bottom: 10px; text-transform: uppercase; letter-spacing: .04em; }
    .demand-title svg { width: 15px; height: 15px; }
    .demand-bars { display: flex; align-items: flex-end; gap: 3px; height: 60px; overflow-x: auto; padding-bottom: 4px; }
    .demand-col { display: flex; flex-direction: column; align-items: center; flex: 1; min-width: 22px; }
    .demand-fill { width: 100%; border-radius: 3px 3px 0 0; min-height: 2px; transition: height .3s ease; }
    .bar-high { background: var(--accent); }
    .bar-mid  { background: var(--warn); }
    .bar-low  { background: var(--line); }
    .demand-lbl { font-size: .62rem; color: var(--ink-3); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; text-align: center; }
    .offpeak-list { display: flex; flex-direction: column; gap: 8px; }
    .offpeak-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
    .offpeak-hour { font-size: .88rem; font-weight: 700; min-width: 52px; }
    .offpeak-hint { font-size: .82rem; color: var(--ink-3); flex: 1; }

    /* ── Connect KYC bar ── */
    .connect-bar { margin-top: 10px; }
    .connect-status { display: flex; align-items: flex-start; gap: 9px; padding: 10px 12px; border-radius: var(--r-sm); font-size: .85rem; }
    .connect-status svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
    .connect-status.ok { background: var(--accent-tint); color: var(--accent-ink); }
    .connect-status.ok svg { color: var(--accent); }
    .connect-status.cta { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
    .connect-status.cta svg { color: #d97706; }
    .connect-status.pending { background: var(--info-bg); color: var(--info); }
    .connect-status.pending svg { color: var(--info); }
    .cs-title { font-weight: 700; }

    .u-loading-wrap-sm { display: flex; justify-content: center; padding: 16px; }

    /* Growth banner — Constitution rule 11 */
    .growth-banner { text-align: center; padding: 6px 16px; background: #f0fdf4; border-top: 1px solid #bbf7d0; font-size: .75rem; color: #166534; }
    .growth-banner a { color: #166534; text-decoration: none; font-weight: 500; }
