
    /* mod2 Group Type selector buttons */
    .mod2-type-btn {
      flex: 1;
      padding: 9px 4px;
      border-radius: 9px;
      border: 2px solid var(--cream-dark);
      background: var(--cream);
      font-size: 11px;
      font-weight: 600;
      color: var(--charcoal);
      cursor: pointer;
      font-family: 'DM Sans', sans-serif;
      transition: border-color 0.15s, background 0.15s;
    }
    .mod2-type-btn.mod2-type-selected {
      border-color: var(--teal);
      background: rgba(6,122,149,0.10);
      color: var(--teal);
    }
    /* mod2 Group card */
    .mod2-group-card {
      background: var(--white);
      border-radius: var(--radius);
      padding: 14px 16px;
      margin-bottom: 10px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.07);
      border-left: 4px solid var(--teal);
    }
    .mod2-group-card-name {
      font-family: 'Playfair Display', serif;
      font-size: 16px;
      font-weight: 700;
      color: var(--green-deep);
      margin-bottom: 3px;
    }
    .mod2-group-card-meta {
      font-size: 11px;
      color: var(--sage);
      margin-bottom: 10px;
    }
    .mod2-group-card-row {
      display: flex;
      gap: 6px;
    }
    .mod2-group-card-btn {
      flex: 1;
      padding: 8px 4px;
      border-radius: 8px;
      border: 1.5px solid var(--cream-dark);
      background: var(--cream);
      font-size: 11px;
      font-weight: 700;
      color: var(--charcoal);
      cursor: pointer;
      font-family: 'DM Sans', sans-serif;
    }
    .mod2-group-card-btn.mod2-btn-open {
      background: linear-gradient(135deg, var(--teal), #067a95);
      color: #fff;
      border-color: transparent;
    }
    .mod2-group-card-btn.mod2-btn-challenge {
      border-color: var(--gold);
      color: #b8870a;
      background: rgba(212,175,55,0.07);
    }
    /* default groups styling */
    .mod2-group-card.mod2-default-card {
      border-left-color: var(--gold);
      opacity: 0.82;
    }
    /* Delete Group button — user-created groups only */
    .mod2-delete-group-btn {
      margin-top: 16px;
      border: 2px solid #b91c1c;
      color: #b91c1c;
      background: #fff5f5;
      font-weight: 800;
    }
    /* Player row in lists */
    .mod2-player-row {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 9px 10px;
      border-radius: 9px;
      border: 1px solid rgba(0,0,0,0.06);
      background: var(--cream);
      margin-bottom: 6px;
      font-family: 'DM Sans', sans-serif;
    }
    .mod2-player-row-info {
      flex: 1;
      min-width: 0;
    }
    .mod2-player-row-name {
      font-size: 13px;
      font-weight: 700;
      color: var(--green-deep);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .mod2-player-row-meta {
      font-size: 11px;
      color: var(--sage);
      margin-top: 1px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .mod2-player-del-btn {
      padding: 4px 9px;
      border-radius: 7px;
      border: 1.5px solid #b91c1c;
      background: #fff5f5;
      color: #b91c1c;
      font-size: 11px;
      font-weight: 700;
      cursor: pointer;
      flex-shrink: 0;
    }
    /* ── v2.2.7 Club Players compact grid ── */
    .cp-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 5px;
      padding: 2px 0 4px;
    }
    .cp-btn {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      justify-content: center;
      padding: 6px 9px 5px;
      border-radius: 8px;
      border: 1.5px solid rgba(6,122,149,0.22);
      background: linear-gradient(135deg, var(--white) 0%, #f4f9fb 100%);
      box-shadow: 0 1px 3px rgba(0,0,0,0.07);
      cursor: pointer;
      min-height: 52px;
      text-align: left;
      -webkit-tap-highlight-color: transparent;
      transition: background 0.12s, box-shadow 0.12s;
      overflow: hidden;
    }
    .cp-btn:active {
      background: linear-gradient(135deg, #e0f3f8 0%, #c8ecf5 100%);
      box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    }
    .cp-btn-name {
      font-size: 12px;
      font-weight: 800;
      color: #0d2a3c;
      line-height: 1.15;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      width: 100%;
      letter-spacing: -0.01em;
    }
    .cp-btn-nick {
      font-size: 10px;
      font-weight: 600;
      color: var(--teal);
      font-style: italic;
      line-height: 1.2;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      width: 100%;
      margin-top: 1px;
    }
    .cp-btn-club {
      font-size: 9.5px;
      font-weight: 700;
      color: var(--sage);
      line-height: 1.2;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      width: 100%;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      margin-top: 2px;
    }
    .cp-sort-btn {
      background: var(--green-deep);
      border: 1.5px solid var(--green-deep);
      cursor: pointer;
      padding: 6px 12px;
      border-radius: 8px;
      font-size: 11px;
      line-height: 1;
      -webkit-tap-highlight-color: transparent;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      gap: 3px;
    }
    .cp-sort-btn:active { opacity: 0.82; }
    .cp-search-btn {
      background: rgba(255,255,255,0.14);
      border: 1.5px solid rgba(255,255,255,0.35);
      cursor: pointer;
      padding: 4px 7px;
      border-radius: 8px;
      font-size: 18px;
      line-height: 1;
      -webkit-tap-highlight-color: transparent;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      gap: 3px;
      margin-right: 2px;
    }
    .cp-search-btn:active { background: rgba(255,255,255,0.28); }
    .cp-sort-label {
      font-size: 10px;
      font-weight: 800;
      color: var(--cream);
      letter-spacing: 0.05em;
      text-transform: uppercase;
      line-height: 1;
    }
    /* ── v2.13.5+0.0.3: 19th Hole share panel audience buttons ── */
    .hole-aud-btn {
      flex: 1;
      padding: 9px 6px;
      border-radius: 8px;
      border: 1.5px solid var(--cream-dark);
      background: var(--white);
      color: var(--charcoal);
      font-size: 13px;
      font-weight: 700;
      font-family: 'DM Sans', sans-serif;
      cursor: pointer;
      transition: background 0.12s, color 0.12s;
      -webkit-tap-highlight-color: transparent;
    }
    .hole-aud-active {
      background: var(--gold) !important;
      color: #fff !important;
      border-color: var(--gold) !important;
    }
    /* ── Directive v+0.0.1: Golf Buddy & Club Player single-line rows ── */
    .gb-row, .cg-row {
      display: flex;
      align-items: center;
      width: 100%;
      padding: 11px 14px;
      border-radius: 10px;
      background: var(--white);
      border: 1.5px solid var(--cream-dark);
      margin-bottom: 6px;
      cursor: pointer;
      box-shadow: 0 1px 4px rgba(0,0,0,0.05);
      text-align: left;
      -webkit-tap-highlight-color: transparent;
      transition: background 0.1s;
      box-sizing: border-box;
    }
    .gb-row:active, .cg-row:active { background: var(--cream-dark); }
    .gb-row-text, .cg-row-text { flex: 1; min-width: 0; }
    .gb-row-name, .cg-row-name {
      font-size: 14px;
      font-weight: 700;
      color: var(--charcoal);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .gb-row-sub, .cg-row-sub {
      font-size: 11px;
      color: var(--sage);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      margin-top: 1px;
    }
    .gb-row-arrow, .cg-row-arrow {
      color: var(--gold);
      font-size: 18px;
      font-weight: 700;
      flex-shrink: 0;
      margin-left: 8px;
    }
    .gb-empty, .cg-empty {
      text-align: center;
      padding: 40px 20px 24px;
      font-size: 14px;
      color: var(--sage);
      font-weight: 600;
    }
    .gb-empty span, .cg-empty span {
      display: block;
      font-size: 12px;
      font-weight: 400;
      font-style: italic;
      color: var(--cream-dark);
      margin-top: 6px;
    }
    /* ── v2.2.7 Player Profile screen ── */
    .cpp-card {
      background: var(--white);
      border-radius: 14px;
      padding: 20px 18px 16px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.08);
      margin-bottom: 14px;
    }
    .cpp-name {
      font-size: 22px;
      font-weight: 800;
      color: #0d2a3c;
      line-height: 1.15;
      margin-bottom: 2px;
    }
    .cpp-nick {
      font-size: 14px;
      font-weight: 600;
      color: var(--teal);
      font-style: italic;
      margin-bottom: 12px;
    }
    .cpp-field {
      display: flex;
      align-items: baseline;
      gap: 8px;
      padding: 7px 0;
      border-bottom: 1px solid rgba(0,0,0,0.06);
    }
    .cpp-field:last-child { border-bottom: none; }
    .cpp-label {
      font-size: 10px;
      font-weight: 700;
      color: var(--sage);
      text-transform: uppercase;
      letter-spacing: 0.07em;
      min-width: 70px;
      flex-shrink: 0;
    }
    .cpp-value {
      font-size: 14px;
      font-weight: 600;
      color: var(--charcoal);
    }
    /* ── v2.3.0 Games, Side Games & Betting — indexed list layout ── */
    .gl-library-body {
      background: #0d1a2a;
      padding: 16px 0 0;
    }
    .gl-library-desc {
      font-size: 12px;
      color: rgba(255,255,255,0.55);
      line-height: 1.55;
      padding: 0 16px 14px;
      border-bottom: 1px solid rgba(255,255,255,0.07);
      margin-bottom: 0;
    }
    .gl-chips-row {
      display: flex;
      gap: 7px;
      padding: 12px 16px;
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      border-bottom: 1px solid rgba(255,255,255,0.07);
      scrollbar-width: none;
    }
    .gl-chips-row::-webkit-scrollbar { display: none; }
    .gl-chip {
      flex-shrink: 0;
      padding: 5px 13px;
      border-radius: 20px;
      border: 1.5px solid rgba(255,255,255,0.18);
      background: rgba(255,255,255,0.06);
      color: rgba(255,255,255,0.7);
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      font-family: 'DM Sans', sans-serif;
      transition: background 0.15s, border-color 0.15s, color 0.15s;
    }
    .gl-chip-active {
      background: rgba(201,77,18,0.18);
      border-color: var(--gold);
      color: var(--gold);
    }
    .gl-list-container {
      padding: 0;
    }
    .gl-list-section-header {
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 10px 16px 7px;
      background: rgba(255,255,255,0.03);
      border-top: 1px solid rgba(255,255,255,0.07);
    }
    .gl-list-section-header:first-child { border-top: none; }
    .gl-section-label-text {
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: var(--gold);
    }
    .gl-section-count-pill {
      font-size: 10px;
      font-weight: 600;
      color: rgba(255,255,255,0.35);
      margin-left: auto;
    }
    .gl-list-row {
      display: flex;
      align-items: center;
      padding: 12px 16px;
      border-bottom: 1px solid rgba(255,255,255,0.06);
      cursor: pointer;
      transition: background 0.12s;
      -webkit-tap-highlight-color: transparent;
    }
    .gl-list-row:active { background: rgba(201,77,18,0.10); }
    .gl-list-name {
      flex: 1;
      font-size: 15px;
      font-weight: 600;
      color: #ffffff;
      min-width: 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      letter-spacing: 0.01em;
    }
    .gl-list-dots {
      flex: 1;
      height: 1px;
      margin: 0 8px;
      border-top: 1px dotted rgba(255,255,255,0.15);
      min-width: 16px;
      flex-shrink: 1;
    }
    .gl-list-cat {
      font-size: 11px;
      font-weight: 600;
      color: rgba(255,255,255,0.40);
      white-space: nowrap;
      flex-shrink: 0;
    }
    .gl-list-arrow {
      color: rgba(255,255,255,0.25);
      font-size: 15px;
      margin-left: 8px;
      flex-shrink: 0;
    }
    /* Detail screen badge */
    .gl-badge {
      display: inline-block;
      padding: 4px 10px;
      border-radius: 12px;
      font-size: 11px;
      font-weight: 700;
      background: rgba(6,122,149,0.10);
      color: #067a95;
    }
    .gl-section-header {
      display: flex;
      align-items: center;
      gap: 10px;
      margin: 18px 0 10px;
      padding: 10px 14px;
      background: linear-gradient(135deg, var(--green-deep), var(--green-mid));
      border-radius: 12px;
      border-left: 4px solid var(--gold);
    }
    .gl-section-header:first-child { margin-top: 0; }
    .gl-section-icon { font-size: 20px; flex-shrink: 0; }
    .gl-section-label {
      font-family: 'Playfair Display', serif;
      font-size: 15px;
      font-weight: 700;
      color: var(--gold);
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }
    .gl-section-count {
      margin-left: auto;
      font-size: 11px;
      font-weight: 600;
      color: rgba(255,255,255,0.55);
      flex-shrink: 0;
    }

    /* ═══════════════════════════════════════════════════════════════
       v6.0.0 — CANARDLY NOIR PREMIUM VISUAL POLISH
       (Commercial Design Directive: "premium automotive interior")
       Additive, CSS-only, token-level pass. No selectors removed, no
       IDs/JS/event handlers/stored data/game logic touched. Works by
       redefining shared --ps-*/--ds-* custom properties already used
       throughout the app (established in the v3.0.0 design-system and
       v5.6.7 Standard Page System passes), so the new finish/spacing/
       depth ripples across every screen that already consumes those
       tokens, plus a small set of new broad-pattern selectors for
       buttons, cards, and micro-motion.
       ─────────────────────────────────────────────────────────────
       1. COLOR SYSTEM — new disciplined palette tokens (--cn-*).
       2. CANARDLY NOIR — replaces the old flat purple (#241a35/#3b1f66/
          #5b4a78) used for primary text, selected outlines and dividers.
          Noir is layered (base + violet-undertone highlight/shadow) so
          it reads near-black in normal light and reveals a violet cast
          under highlight/shadow edges — an automotive multi-coat effect
          — rather than a single flat hex value. Never used full-bleed.
       3. PREMIUM DEPTH — panel/card gradient, border and shadow tokens
          extended with a thin inner top highlight (painted-metal edge
          light) layered into the existing shadow value.
       4. STANDARD CARD SYSTEM — unchanged geometry (radius/padding/gap
          already unified in v5.6.5/v5.6.7); this pass only strengthens
          the shared finish, so no card introduces its own style.
       5. SPLASH — subtle radial illumination behind the logo, refined
          centering; existing gradient/timing/JS position logic untouched.
       6. BUTTON SYSTEM — mechanical properties (radius, timing curve,
          pressed-state compression) unified across every button-pattern
          class via [class*="-btn"]; functional accent colors (burnt
          orange = primary action, green = selected/confirmed) are left
          intact since they carry meaning established by earlier passes
          — recoloring them would reduce clarity, not add polish.
       7. MICRO-ANIMATIONS — one shared easing curve + duration applied
          to cards, panels and buttons so motion feels consistent.
       ═══════════════════════════════════════════════════════════════ */

    :root {
      /* ── 1. Disciplined color system ── */
      --cn-burnt-orange:   var(--gold);              /* #c94d12 — primary */
      --cn-champagne:      #f6ecd8;
      --cn-warm-ivory:     #f5f0e8;
      --cn-soft-sage:      #a9b7ae;
      --cn-slate-blue:     #5c7593;
      --cn-success:        #0f5a24;
      --cn-warning:        #7a4a00;
      --cn-error:          #8a1f1f;

      /* ── 2. Canardly Noir — layered "multi-coat" finish ──
         Base is nearly black; -hi/-lo are the violet undertone that
         only shows at highlight/shadow edges, never as a flat fill. */
      --cn-noir:            #14111c;
      --cn-noir-violet-hi:  #4a3570;
      --cn-noir-violet-lo:  #0a0812;
      --cn-noir-text:       linear-gradient(180deg, #241a35 0%, #14111c 100%);

      /* Redirect the old flat-purple tokens to Canardly Noir */
      --ps-text-primary:    var(--cn-noir);
      --ps-text-secondary:  #3d3550;                 /* noir, lightened — was flat purple #5b4a78 */
      --ps-selected-border: var(--cn-noir);
      --ps-unselected-border: rgba(20,17,28,0.18);
      --ps-divider-section: rgba(20,17,28,0.32);
      --ps-divider-row:     rgba(20,17,28,0.14);
      --ps-panel-border:    rgba(20,17,28,0.16);

      /* ── 3. Premium depth — edge lighting folded into shared shadows ── */
      --ps-panel-shadow:    inset 0 1px 0 rgba(255,255,255,0.55), 0 10px 26px rgba(20,17,28,0.16), 0 2px 8px rgba(20,17,28,0.08);
      --ds-card-shadow:     inset 0 1px 0 rgba(255,255,255,0.55), 0 10px 28px rgba(20,17,28,0.15), 0 2px 8px rgba(20,17,28,0.07);
      --ds-card-shadow-lg:  inset 0 1px 0 rgba(255,255,255,0.55), 0 14px 36px rgba(20,17,28,0.17), 0 3px 10px rgba(20,17,28,0.08);
      --ds-card-border-light: rgba(74,53,112,0.22);  /* faint violet-undertone edge, was gold-tinted */

      /* ── 7. Shared micro-motion timing ── */
      --cn-ease: cubic-bezier(0.4,0,0.2,1);
      --cn-motion-fast: 0.18s;
      --cn-motion-med: 0.32s;
    }

    /* ── 6. Button system — shared mechanical feel, colors untouched ── */
    button, .splash-btn, .splash-btn-secondary, .splash-btn-ghost,
    [class*="-btn"] {
      transition: transform var(--cn-motion-fast) var(--cn-ease),
                  box-shadow var(--cn-motion-fast) var(--cn-ease),
                  filter var(--cn-motion-fast) var(--cn-ease);
    }
    button:active, [class*="-btn"]:active {
      transform: scale(0.97);
    }

    /* ── 3/4. Card / panel micro-motion + noir hairline on premium panels ── */
    .course-item, .content-panel, .ds-nav-panel, .ds-aux-panel,
    [class*="-panel"], [class*="-card"] {
      transition: box-shadow var(--cn-motion-med) var(--cn-ease),
                  transform var(--cn-motion-med) var(--cn-ease);
    }

    /* ── 5. Splash — quiet illumination behind the logo, per directive ── */
    #screen-splash .splash-logo {
      position: relative;
    }
    #screen-splash .splash-logo::before {
      content: '';
      position: absolute;
      left: 50%; top: 50%;
      width: 260px; height: 260px;
      transform: translate(-50%, -50%);
      background: radial-gradient(circle, rgba(246,236,216,0.16) 0%, rgba(246,236,216,0) 70%);
      pointer-events: none;
      z-index: -1;
    }

    /* ── 2. Noir selected-state outline replaces old flat purple ── */
    .chip.selected, .game-selected, .mod2-type-selected, .tees-selected,
    .ctp-selected-list li, .ds-selected {
      border-color: var(--ps-selected-border) !important;
    }
  

/* ═══════════════════════════════════════════════════════════════
   v7.0.8 — CHOOSE TEES PAGE CLEANUP
   1. Split-tee ball fill is generated in round-setup.js.
   2. Bottom Select Tees CTA stays light/readable over navy gradient.
   3. Selected hole-count control keeps a bright exterior edge on navy.
   ═══════════════════════════════════════════════════════════════ */
#screen-tee .choose-tees-btn {
  background: rgba(248, 245, 238, 0.94) !important;
  color: #14111c !important;
  border: 2px solid rgba(246, 236, 216, 0.98) !important;
  box-shadow: 0 5px 16px rgba(5, 15, 28, 0.24), inset 0 1px 0 rgba(255,255,255,0.95) !important;
}
#screen-tee .choose-tees-btn:active {
  background: #ffffff !important;
}

#screen-tee .v3holes-btn.selected {
  border: 2px solid #2e7d32 !important;
  outline: 2px solid rgba(246, 236, 216, 0.98) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 1px rgba(15,30,48,0.30), 0 6px 15px rgba(5,15,28,0.24), inset 0 1px 0 rgba(255,255,255,0.92) !important;
}

#screen-tee .tee-dot-lg {
  border: 1px solid rgba(15, 30, 48, 0.20);
  background-clip: padding-box;
}


    /* ── v7.2.7 Games Library readability / standard light page ── */
    #screen-mod2-game-library .gl-library-body {
      background: var(--cream, #f4f1e8) !important;
      color: var(--charcoal, #231f20) !important;
      padding: 16px 0 0 !important;
    }
    #screen-mod2-game-library .gl-library-desc {
      color: var(--charcoal, #231f20) !important;
      opacity: .82;
      border-bottom: 1px solid rgba(35,31,32,.14) !important;
      font-weight: 500;
    }
    #screen-mod2-game-library .gl-chips-row {
      border-bottom: 1px solid rgba(35,31,32,.14) !important;
      background: rgba(255,255,255,.18);
    }
    #screen-mod2-game-library .gl-chip {
      border: 1.5px solid rgba(35,31,32,.28) !important;
      background: rgba(255,255,255,.55) !important;
      color: var(--charcoal, #231f20) !important;
      font-weight: 700;
    }
    #screen-mod2-game-library .gl-chip-active {
      background: rgba(201,77,18,.08) !important;
      border-color: #c94d12 !important;
      color: #9f3e0e !important;
      box-shadow: inset 0 0 0 1px rgba(201,77,18,.12);
    }
    #screen-mod2-game-library .gl-list-section-header {
      background: rgba(13,27,46,.055) !important;
      border-top: 1px solid rgba(35,31,32,.12) !important;
      border-bottom: 1px solid rgba(35,31,32,.08);
    }
    #screen-mod2-game-library .gl-section-label-text {
      color: #9f3e0e !important;
    }
    #screen-mod2-game-library .gl-section-count-pill {
      color: rgba(35,31,32,.62) !important;
    }
    #screen-mod2-game-library .gl-list-row {
      border-bottom: 1px solid rgba(35,31,32,.10) !important;
      background: transparent;
    }
    #screen-mod2-game-library .gl-list-row:active {
      background: rgba(201,77,18,.08) !important;
    }
    #screen-mod2-game-library .gl-list-name {
      color: var(--charcoal, #231f20) !important;
      font-weight: 700;
    }
    #screen-mod2-game-library .gl-list-dots {
      border-top-color: rgba(35,31,32,.20) !important;
    }
    #screen-mod2-game-library .gl-list-cat {
      color: rgba(35,31,32,.64) !important;
      font-weight: 700;
    }
    #screen-mod2-game-library .gl-list-arrow {
      color: rgba(35,31,32,.46) !important;
    }
    #screen-mod2-game-library .gl-empty {
      text-align:center;
      color:rgba(35,31,32,.62) !important;
      font-size:13px;
      padding:30px 16px;
    }

/* v7.2.10 — Games Library categories + game detail popup */
#screen-mod2-game-library .gl-chips-row {
  gap: 8px;
  padding-bottom: 8px;
}
#screen-mod2-game-library .gl-chip {
  flex: 0 0 auto;
  white-space: nowrap;
  min-height: 36px;
  padding: 8px 14px;
  font-size: 13px;
}
#screen-mod2-game-library .gl-empty {
  padding: 28px 16px;
  text-align: center;
  color: rgba(21,35,54,.62);
  font-size: 13px;
}
.gl-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(8,24,42,.68);
  padding: max(18px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom));
  align-items: center;
  justify-content: center;
}
.gl-modal.gl-modal-open { display: flex; }
body.gl-modal-lock { overflow: hidden; }
.gl-modal-panel {
  width: min(94vw, 620px);
  max-height: 88vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--cream, #f5f1e8);
  border: 1px solid rgba(21,35,54,.14);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.28);
}
.gl-modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  background: linear-gradient(135deg, #10263e, #294b70);
  border-radius: 18px 18px 0 0;
}
.gl-modal-title {
  font-family: 'Playfair Display', serif;
  font-size: 21px;
  line-height: 1.1;
  font-weight: 700;
  color: #fff;
}
.gl-modal-sub {
  margin-top: 3px;
  font-size: 11px;
  color: rgba(255,255,255,.7);
}
.gl-modal-close {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 30px;
  line-height: 34px;
  cursor: pointer;
}
.gl-modal-body { padding: 14px; }
.gl-detail-hero {
  background: linear-gradient(135deg, #10263e, #294b70);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 12px;
}
.gl-detail-name {
  font-family: 'Playfair Display', serif;
  font-size: 23px;
  color: var(--gold, #c94d12);
  font-weight: 700;
  margin-bottom: 4px;
}
.gl-detail-tagline {
  font-size: 13px;
  color: rgba(255,255,255,.78);
  line-height: 1.5;
}
.gl-detail-badges {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.gl-goal-panel {
  background: var(--white, #fff);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.gl-goal-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--green-deep, #163a31);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 6px;
}
.gl-goal-text {
  font-size: 13px;
  color: var(--charcoal, #1d2732);
  line-height: 1.65;
}

/* Canardly Golf v7.2.10 */


/* ═══════════════════════════════════════════════════════════════
   v7.2.32 — TEE / ROUND SETUP READABILITY PASS
   Visual-only contrast improvements requested for outdoor/iPad use.
   ═══════════════════════════════════════════════════════════════ */

/* Choose Tees: dark, readable tee labels and stats on light cards. */
#screen-tee .tee-option {
  background: #ffffff !important;
  border-color: rgba(15, 30, 48, 0.30) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.10) !important;
}
#screen-tee .tee-option-name {
  color: #172638 !important;
  font-weight: 800 !important;
}
#screen-tee .tee-option-stats {
  color: #34475a !important;
  font-weight: 650 !important;
}
#screen-tee .v3holes-btn {
  background: #ffffff !important;
  color: #172638 !important;
  border: 1.75px solid rgba(15,30,48,0.34) !important;
  box-shadow: 0 2px 7px rgba(0,0,0,0.09) !important;
}
#screen-tee .v3holes-btn.selected {
  background: #e8f5e9 !important;
  color: #102d20 !important;
}

/* Round Setup: substantially stronger unselected-card separation. */
#screen-solo-play .v3-game-card {
  background: #f2f4f6;
  border-color: rgba(15,30,55,0.34);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.72), 0 1px 4px rgba(0,0,0,0.07) !important;
}
#screen-solo-play .v3-game-card > div > div:first-child {
  color: #153428 !important;
}
#screen-solo-play .v3-game-card > div > div:nth-child(2) {
  color: #34475a !important;
  font-weight: 550 !important;
}
#screen-solo-play .v3-game-card.selected,
#screen-solo-play .v3-game-card.gc-active,
#screen-solo-play .v3-game-card.gc-pending {
  background: #fff3e8 !important;
  border-color: #c94d12 !important;
}

#screen-solo-play .v3-track-card {
  background: #f2f4f6;
  border-color: rgba(15,30,55,0.34);
  color: #153428 !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.72), 0 1px 4px rgba(0,0,0,0.07) !important;
}
#screen-solo-play .v3-track-card > div:first-child {
  color: #153428 !important;
}
#screen-solo-play .v3-track-card > div:nth-child(2) {
  color: #34475a !important;
}
#screen-solo-play .v3-track-card.selected {
  background: #e8f5e9 !important;
  border-color: #2e7d32 !important;
  box-shadow: inset 0 0 0 1px rgba(46,125,50,0.16), 0 2px 6px rgba(0,0,0,0.08) !important;
}

/* End v7.2.32 */


/* v7.2.49 — FINAL APP-WIDE SEGMENTED CONTROL STANDARD.
   This file loads after the earlier Challenge styles, so the canonical
   Net/Gross appearance cannot be overridden by legacy Same Round rules. */
.cc2-seg-row {
  display: flex !important;
  gap: 7px !important;
  width: 100% !important;
}
.cc2-seg-btn {
  flex: 1 1 0 !important;
  min-height: 40px !important;
  padding: 9px 6px !important;
  border-radius: 9px !important;
  border: 1.5px solid #e2d8c8 !important;
  background: #f5f0e8 !important;
  color: #8b9ca8 !important;
  box-shadow: none !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  text-align: center !important;
  cursor: pointer !important;
  -webkit-tap-highlight-color: transparent !important;
}
.cc2-seg-btn.active,
.cc2-seg-btn[aria-pressed="true"] {
  background: #1a2d4a !important;
  border-color: #1a2d4a !important;
  color: #ffffff !important;
  box-shadow: none !important;
}
.cc2-seg-btn:active {
  transform: translateY(1px);
}


/* v7.6.86 — final app-surface consistency layer (loaded after legacy navigation gradients). */
#app #screen-clubhouse,
#app #screen-clubhouse-my-golf,
#app #screen-clubhouse-account,
#app #screen-stats,
#app #screen-summary,
#app #screen-summary-hole,
#app #screen-path-select,
#app #screen-players-hub,
#app #screen-club-golfers,
#app #screen-clubs,
#app #screen-golfer,
#app #screen-tunes,
#app #screen-education,
#app #screen-documents-how-to{
  background:#F2E4CF !important;
  background-image:none !important;
}
#app #screen-clubhouse > .screen-body,
#app #screen-clubhouse-my-golf > .screen-body,
#app #screen-clubhouse-account > .screen-body,
#app #screen-stats > .screen-body,
#app #screen-summary > .screen-body,
#app #screen-summary-hole > .screen-body,
#app #screen-path-select > .screen-body,
#app #screen-players-hub > .screen-body,
#app #screen-club-golfers > .screen-body,
#app #screen-clubs > .screen-body,
#app #screen-golfer > .screen-body,
#app #screen-tunes > .screen-body,
#app #screen-education > .screen-body,
#app #screen-documents-how-to > .screen-body{
  background:#F2E4CF !important;
  background-image:none !important;
}
#app #screen-clubhouse .course-item,
#app #screen-clubhouse-my-golf .course-item,
#app #screen-clubhouse-account .course-item,
#app #screen-path-select .course-item,
#app #screen-players-hub .course-item,
#app #screen-club-golfers .course-item,
#app #screen-clubs .course-item,
#app #screen-golfer .course-item,
#app #screen-tunes .course-item,
#app #screen-education .course-item,
#app #screen-documents-how-to .course-item{
  background:linear-gradient(180deg,#4A82B3 0%,#3E73A1 58%,#356A98 100%) !important;
  border:1px solid rgba(255,255,255,.32) !important;
  color:#fff !important;
}
#app #screen-clubhouse .course-item-name,#app #screen-clubhouse .course-item-info,
#app #screen-clubhouse-my-golf .course-item-name,#app #screen-clubhouse-my-golf .course-item-info,
#app #screen-clubhouse-account .course-item-name,#app #screen-clubhouse-account .course-item-info,
#app #screen-path-select .course-item-name,#app #screen-path-select .course-item-info,
#app #screen-players-hub .course-item-name,#app #screen-players-hub .course-item-info,
#app #screen-club-golfers .course-item-name,#app #screen-club-golfers .course-item-info,
#app #screen-clubs .course-item-name,#app #screen-clubs .course-item-info,
#app #screen-golfer .course-item-name,#app #screen-golfer .course-item-info,
#app #screen-tunes .course-item-name,#app #screen-tunes .course-item-info,
#app #screen-education .course-item-name,#app #screen-education .course-item-info,
#app #screen-documents-how-to .course-item-name,#app #screen-documents-how-to .course-item-info{
  color:#fff !important;
}

/* v7.6.87 — three-surface Canardly hierarchy: cream page, navy section, medium-blue sub-card. */
:root{
  --c87-page:#F2E4CF;
  --c87-section:#14213D;
  --c87-sub:#3E73A1;
  --c87-lighttext:#FFFFFF;
  --c87-darktext:#14213D;
}

/* One page surface across card/list workflows. Hole/map/scorecard screens keep their specialized canvases. */
#app #screen-clubhouse,#app #screen-clubhouse-my-golf,#app #screen-clubhouse-account,
#app #screen-stats,#app #screen-summary,#app #screen-summary-hole,#app #screen-path-select,
#app #screen-players-hub,#app #screen-club-golfers,#app #screen-clubs,#app #screen-golfer,
#app #screen-tunes,#app #screen-education,#app #screen-documents-how-to,#app #screen-courses,
#app #screen-tee,#app #screen-play-setup,#app #screen-solo-play,#app #screen-solo-games,
#app #screen-solo-game-setup,#app #screen-mod2-game-library,#app #screen-mod2-groups,
#app #screen-mod2-challenges,#app #screen-19th-hole,#app #screen-review-game{
  background-color:var(--c87-page) !important;
}
#app #screen-clubhouse > .screen-body,#app #screen-clubhouse-my-golf > .screen-body,#app #screen-clubhouse-account > .screen-body,
#app #screen-stats > .screen-body,#app #screen-summary > .screen-body,#app #screen-summary-hole > .screen-body,#app #screen-path-select > .screen-body,
#app #screen-players-hub > .screen-body,#app #screen-club-golfers > .screen-body,#app #screen-clubs > .screen-body,#app #screen-golfer > .screen-body,
#app #screen-tunes > .screen-body,#app #screen-education > .screen-body,#app #screen-documents-how-to > .screen-body,#app #screen-courses > .screen-body,
#app #screen-tee > .screen-body,#app #screen-play-setup > .screen-body,#app #screen-solo-play > .screen-body,#app #screen-solo-games > .screen-body,
#app #screen-solo-game-setup > .screen-body,#app #screen-mod2-game-library > .screen-body,#app #screen-mod2-groups > .screen-body,
#app #screen-mod2-challenges > .screen-body,#app #screen-19th-hole > .screen-body,#app #screen-review-game > .screen-body{
  background-color:var(--c87-page) !important;
  background-image:none !important;
}

/* Round Summary: navy outer sections, medium-blue rows inside. */
#app #screen-summary .totals-card.summary-card-blue,
#app #screen-summary > .screen-body > .summary-card-blue,
#app #screen-summary #sum-stig-block.summary-card-blue,
#app #screen-summary #sum-challenge-block.summary-card-blue,
#app #screen-summary #sum-focus-block.summary-card-blue,
#app #screen-summary #sum-decision-block,
#app #screen-summary #sum-strat-content.stat-card,
#app #screen-summary #sum-bdb-content.stat-card,
#app #screen-summary #sum-gnf-content.stat-card,
#app #screen-summary #sum-closing-content.stat-card{
  background:var(--c87-section) !important;
  background-image:none !important;
  color:var(--c87-lighttext) !important;
  border:1px solid rgba(255,255,255,.22) !important;
  box-shadow:0 5px 14px rgba(20,33,61,.12) !important;
}
#app #screen-summary .stat-row,
#app #screen-summary .sum-hole-score-grid>div,
#app #screen-summary .sum-hole-practice{
  background:var(--c87-sub) !important;
  color:var(--c87-lighttext) !important;
  border:1px solid rgba(255,255,255,.34) !important;
}
#app #screen-summary .stat-row *,
#app #screen-summary .summary-card-blue *,
#app #screen-summary .stat-card *{
  color:var(--c87-lighttext) !important;
}

/* Hole-by-hole is intentionally page-level, not another blue box. */
#app #screen-summary .summary-hole-by-hole,
#app #screen-summary .sum-hole-by-hole,
#app #screen-summary [id$="hole-breakdown"]{
  background:transparent !important;
}
#app #screen-summary .sum-game-hole{
  background:var(--c87-sub) !important;
  border:1px solid rgba(20,33,61,.16) !important;
  color:#fff !important;
  box-shadow:0 2px 6px rgba(20,33,61,.10) !important;
}
#app #screen-summary .sum-game-hole *,
#app #screen-summary .sum-game-hole-label{color:#fff !important;}

/* Read-only hole detail follows the same section/sub-card hierarchy. */
#app #screen-summary-hole .sum-hole-detail-card{
  background:var(--c87-section) !important;
  background-image:none !important;
}
#app #screen-summary-hole .sum-hole-score-grid>div,
#app #screen-summary-hole .sum-hole-practice{
  background:var(--c87-sub) !important;
}

/* My Games: keep page cream; informational cards use the same hierarchy. */
#app #screen-stats .mg-tab{font-size:16px !important;color:var(--c87-darktext) !important;}
#app #screen-stats .mg-tab-active{background:var(--c87-section) !important;color:#fff !important;}
#app #screen-stats #mg-stats-content .stat-card,
#app #screen-stats #mg-mygame-content > div,
#app #screen-stats #mg-profile-area > div,
#app #screen-stats #mg-trends-content > div{
  color:var(--c87-darktext);
}
#app #screen-stats .stat-row{padding-left:14px !important;padding-right:14px !important;}
#app #screen-stats .stat-label{font-size:16px !important;color:var(--c87-darktext) !important;font-weight:750 !important;}
#app #screen-stats .stat-value{font-size:18px !important;color:var(--c87-darktext) !important;font-weight:800 !important;}
#app #screen-stats .stat-sub{font-size:13px !important;color:var(--c87-darktext) !important;opacity:.9 !important;}

/* Important text never defaults to low-contrast gray on cream/light surfaces. */
#app #screen-stats .screen-body,
#app #screen-summary .screen-body,
#app #screen-summary-hole .screen-body{color:var(--c87-darktext) !important;}

/* v7.6.87 — My Games generated profile cards use the same surface hierarchy. */
#app #screen-stats .c87-section-card{
  background:var(--c87-section) !important;
  color:#fff !important;
  border-radius:16px !important;
  padding:14px !important;
  margin-bottom:10px !important;
  box-shadow:0 4px 12px rgba(20,33,61,.12) !important;
}
#app #screen-stats .c87-section-card-title{
  font-size:15px !important;
  font-weight:800 !important;
  color:#fff !important;
  text-transform:uppercase;
  letter-spacing:.045em;
  margin-bottom:10px !important;
}
#app #screen-stats .c87-sub-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  background:var(--c87-sub) !important;
  border:1px solid rgba(255,255,255,.30);
  border-radius:11px;
  padding:9px 12px;
  margin-bottom:5px;
}
#app #screen-stats .c87-sub-label{
  font-size:15px !important;
  line-height:1.2 !important;
  font-weight:650 !important;
  color:#fff !important;
}
#app #screen-stats .c87-sub-value{
  font-size:17px !important;
  line-height:1.15 !important;
  font-weight:800 !important;
  color:#fff !important;
  white-space:nowrap;
}

/* v7.6.87 — Hole-by-Hole uses the page surface, with blue tap targets. */
#app #screen-summary .sum-holebyhole-panel{
  background:var(--c87-page) !important;
  margin:14px -14px -14px !important;
  padding:14px !important;
  border-radius:0 0 15px 15px;
}
#app #screen-summary .sum-holebyhole-title{
  color:var(--c87-darktext) !important;
  font-size:17px !important;
  font-weight:800 !important;
  margin:0 0 10px !important;
  letter-spacing:0 !important;
}
#app #screen-summary .sum-holebyhole-grid,
#app #screen-summary #strat-hole-breakdown{
  display:flex !important;
  flex-wrap:wrap !important;
  gap:9px !important;
}


/* v7.6.88 — corrected unified surface system after browser acceptance. */
:root{
  --c88-page:#F2E4CF;
  --c88-section:#14213D;
  --c88-sub:#4A82B3;
  --c88-ink:#14213D;
}
/* One cream canvas, including Scorecard. */
#app #screen-scorecard,
#app #screen-scorecard > .screen-body,
#app #screen-summary,
#app #screen-summary > .screen-body,
#app #screen-stats,
#app #screen-stats > .screen-body{
  background:#F2E4CF !important;
  background-image:none !important;
}
/* Round Summary outer sections are navy. */
#app #screen-summary .summary-card-blue,
#app #screen-summary .stat-card,
#app #screen-summary #sum-decision-block{
  background:#14213D !important;
  background-image:none !important;
  color:#fff !important;
}
/* Every nested summary information row is the medium blue sub-surface. */
#app #screen-summary .summary-card-blue .stat-row,
#app #screen-summary .stat-card .stat-row,
#app #screen-summary #sum-decision-block .stat-row{
  background:#4A82B3 !important;
  border:1px solid rgba(255,255,255,.38) !important;
  color:#fff !important;
}
#app #screen-summary .summary-card-blue .stat-row *,
#app #screen-summary .stat-card .stat-row *,
#app #screen-summary #sum-decision-block .stat-row *{color:#fff !important;}
/* Hole by Hole belongs on the cream page, not inside a navy field. */
#app #screen-summary .sum-holebyhole-panel{
  background:#F2E4CF !important;
  color:#14213D !important;
  border:0 !important;
  box-shadow:none !important;
}
#app #screen-summary .sum-holebyhole-title{color:#14213D !important;}
#app #screen-summary .sum-game-hole{
  min-width:60px !important;
  min-height:60px !important;
  padding:8px 10px !important;
  border-radius:13px !important;
  background:#4A82B3 !important;
  border:1px solid rgba(20,33,61,.18) !important;
  color:#fff !important;
  font-size:17px !important;
  font-weight:800 !important;
}
#app #screen-summary .sum-game-hole *{color:#fff !important;}
/* My Games: same hierarchy — navy section container, medium-blue rows. */
#app #screen-stats .c87-section-card{background:#14213D !important;color:#fff !important;}
#app #screen-stats .c87-sub-row{background:#4A82B3 !important;color:#fff !important;}
#app #screen-stats .c87-sub-row *{color:#fff !important;}
/* Phone readability on light surfaces: no washed-out gray. */
#app #screen-stats .stat-label,#app #screen-stats .stat-value,#app #screen-stats .stat-sub,
#app #screen-scorecard .screen-body{color:#14213D !important;}
#app #screen-stats .stat-sub{opacity:1 !important;}
/* v7.6.88 browser-correction fallback: do not depend on #app ancestry. */
#screen-summary,#screen-summary>.screen-body,
#screen-stats,#screen-stats>.screen-body,
#screen-scorecard,#screen-scorecard>.screen-body{
  background-color:#F2E4CF !important;
  background-image:none !important;
}
