:root {
  --bg: #0c1210;
  --panel: #131c19;
  --panel-alt: #1a2622;
  --border: rgba(255, 255, 255, 0.10);
  --text: #f3f5f4;
  --muted: #8fa199;
  --emerald: #1ea36b;
  --emerald-soft: rgba(30, 163, 107, 0.15);
  --amber: #d99b26;
  --amber-soft: rgba(217, 155, 38, 0.15);
  --sky: #38bdf8;
  --sky-soft: rgba(56, 189, 248, 0.14);
  --red: #e05252;
  --red-soft: rgba(224, 82, 82, 0.15);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

.app-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0c1210;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.app-splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  animation: splashFadeUp 0.4s ease-out both;
}

.splash-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 12px 28px rgba(16, 185, 129, 0.22));
}

.splash-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #f3f5f4;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.splash-title span {
  font-size: 16px;
  font-weight: 800;
  color: #6ee7b7;
  letter-spacing: 0.08em;
}

.splash-sub {
  font-size: 17px;
  font-weight: 600;
  color: #a7bab1;
  letter-spacing: 0.02em;
}

@keyframes splashFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.app-shell {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 14px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-x: hidden;
}

/* Clean Matte Single-Line Top Bar */
.top-nav-bar {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.big-select {
  padding: 10px 11px;
  font-size: 14px;
  font-weight: 800;
}

.brand-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-emblem {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #0d1d17;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-title {
  font-size: 15.5px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-badge {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.7px;
  padding: 2px 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #1c1002;
}

.focus-anchor-text {
  font-size: 11px;
  font-weight: 700;
  color: #a7f3d0;
  margin-top: 1px;
}

.desktop-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(5, 18, 14, 0.75);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: 12px;
  padding: 3px;
}

.dtab-btn {
  border: none;
  background: transparent;
  color: #cbd5e1;
  font-size: 12.5px;
  font-weight: 800;
  padding: 7px 13px;
  border-radius: 9px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.dtab-btn:hover {
  color: #ffffff;
}

.dtab-btn.active {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #03150e;
}

.brand-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.net-status-pill {
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #6ee7b7;
  white-space: nowrap;
}

.net-status-pill.offline {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.55);
  color: #fde68a;
}

/* Tab View Visibility */
.tab-view {
  display: none;
  flex-direction: column;
  gap: 12px;
}

.tab-view.active {
  display: flex;
}

/* Shared Cards & Controls */
.nz-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
}

.card-kicker {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.9px;
  text-transform: uppercase;
  color: #34d399;
}

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

.field-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
}

.full-w {
  width: 100%;
}

.ctrl-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ctrl-select {
  background: var(--panel-alt);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.ctrl-btn {
  background: var(--panel-alt);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.ctrl-btn:hover {
  border-color: var(--emerald);
}

.ctrl-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.ctrl-btn.primary {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #03150e;
  border: none;
}

.ctrl-btn.amber {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #1c1002;
  border: none;
}

.ctrl-btn.active {
  background: var(--sky-soft);
  border-color: var(--sky);
  color: #7dd3fc;
}

.ctrl-btn.muted {
  background: var(--red-soft);
  border-color: var(--red);
  color: #fca5a5;
}

.ctrl-btn.danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff;
  border: none;
}

.ctrl-btn.pin-active {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #1c1002;
  border-color: #fbbf24;
}

.wind-toggle-btn.wind-live-on {
  background: rgba(16, 185, 129, 0.22);
  border-color: #34d399;
  color: #6ee7b7;
}

.wind-toggle-btn.wind-offline {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.45);
  color: #fde68a;
}

/* ============================================================================
   TAB 1: HOME — Golf NZ Scenic Hero Backdrop
   ============================================================================ */
.hero-card {
  position: relative;
  height: 270px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(52, 211, 153, 0.35);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  display: block;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 18, 14, 0.42) 0%, rgba(6, 18, 14, 0.18) 40%, rgba(6, 13, 11, 0.92) 100%);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-chip {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.9px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(6, 40, 30, 0.82);
  border: 1px solid rgba(52, 211, 153, 0.5);
  color: #a7f3d0;
  backdrop-filter: blur(6px);
}

.hero-wind-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(6, 20, 16, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #7dd3fc;
  backdrop-filter: blur(6px);
}

.hero-sub {
  font-size: 11.5px;
  font-weight: 800;
  color: #6ee7b7;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.hero-title {
  margin: 2px 0 4px;
  font-size: 28px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

.hero-meta {
  font-size: 13px;
  font-weight: 700;
  color: #e2e8f0;
}

.home-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 12px;
  align-items: start;
}

.home-select-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.home-install-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(34, 160, 107, 0.14);
  color: #d1fae5;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.home-install-btn:hover {
  background: rgba(34, 160, 107, 0.24);
  border-color: rgba(52, 211, 153, 0.55);
}

.nav-golf-ico,
.golf-bag-ico {
  display: inline-block;
  vertical-align: -3px;
  flex-shrink: 0;
}

.dock-svg-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 25px;
}

.cf-autofill-bar {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 6px;
  margin-top: 6px;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.cf-autofill-bar::-webkit-scrollbar {
  display: none;
}

.cf-auto-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.34);
  background: rgba(34, 160, 107, 0.14);
  color: #d1fae5;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.cf-auto-chip:hover {
  background: rgba(34, 160, 107, 0.28);
  border-color: rgba(52, 211, 153, 0.6);
}

.cf-auto-chip.is-club {
  border-color: rgba(251, 191, 36, 0.32);
  background: rgba(251, 191, 36, 0.10);
  color: #fef3c7;
}

.atlas-header-stack {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 10px;
}

.atlas-course-heading {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  color: #f3f5f4;
  word-break: break-word;
}

.atlas-hole-subline {
  font-size: 12.5px;
  font-weight: 600;
  color: #6ee7b7;
}

.atlas-nav-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 6px;
  align-items: center;
}

.atlas-nav-btn {
  padding: 8px 12px;
  white-space: nowrap;
}

.atlas-hole-sel {
  width: 100%;
  min-width: 0;
  text-align: center;
  padding: 8px 10px;
}

.atlas-action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.atlas-act-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 6px;
  font-size: 12px;
  white-space: nowrap;
  text-decoration: none;
}

.atlas-pin-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.atlas-pin-lbl {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  flex-shrink: 0;
}

.atlas-pin-btns {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.atlas-pin-btns .ctrl-btn {
  padding: 6px 8px;
  text-align: center;
}

.bag-preset-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.bag-preset-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.bag-preset-btn:hover {
  background: rgba(34, 160, 107, 0.14);
  border-color: rgba(52, 211, 153, 0.45);
}

.bag-preset-btn b {
  font-size: 12px;
  font-weight: 700;
  color: #f3f5f4;
}

.bag-preset-btn small {
  font-size: 10.5px;
  color: var(--muted);
}

.settings-section-lbl {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 4px 0 6px;
}

.setting-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
  line-height: 1.3;
}

.game-setup-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  margin-bottom: 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.game-setup-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.game-setup-sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

.home-select-row.home-select-3 {
  grid-template-columns: 1.25fr 0.9fr 0.85fr;
}

.sr-only-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  pointer-events: none !important;
}

.launch-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.launch-course-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  position: relative;
}

.launch-course-btn {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.launch-course-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}

.launch-course-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.launch-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.launch-course-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.launch-course-sub {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.launch-change-pill {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: #d1fae5;
  background: rgba(34, 160, 107, 0.16);
  border: 1px solid rgba(34, 160, 107, 0.35);
  border-radius: 8px;
  padding: 5px 10px;
}

.launch-edit-btn {
  width: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  font-size: 15px;
}

.launch-controls-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 10px;
}

.launch-control-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
}

.seg-pill-row {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 3px;
}

.seg-pill {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 4px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.seg-pill:hover {
  color: var(--text);
}

.seg-pill.active {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.16);
  color: #f3f5f4;
}

.tee-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex-shrink: 0;
}
.tee-dot.dot-blue { background: #3b82f6; }
.tee-dot.dot-white { background: #f8fafc; }
.tee-dot.dot-yellow { background: #eab308; }
.tee-dot.dot-red { background: #ef4444; }

@media (max-width: 640px) {
  .launch-controls-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .seg-pill {
    font-size: 11.5px;
    padding: 7px 4px;
  }
}

.tee-pill {
  font-size: 11px;
  font-weight: 900;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
}
.tee-pill.tee-blue { background: rgba(37, 99, 235, 0.25); border-color: #60a5fa; color: #bfdbfe; }
.tee-pill.tee-white { background: rgba(248, 250, 252, 0.14); border-color: #cbd5e1; color: #f8fafc; }
.tee-pill.tee-yellow { background: rgba(234, 179, 8, 0.22); border-color: #facc15; color: #fef08a; }
.tee-pill.tee-red { background: rgba(239, 68, 68, 0.22); border-color: #f87171; color: #fecaca; }

.inline-aim-cue {
  font-size: 11.5px;
  font-weight: 700;
  color: #a7f3d0;
  margin-top: 2px;
  max-width: 195px;
  line-height: 1.25;
}

.home-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.btn-hero-start {
  flex: 1;
  border: none;
  border-radius: 13px;
  padding: 14px 16px;
  font-size: 14.5px;
  font-weight: 900;
  letter-spacing: 0.3px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #03150e;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.30);
}

.quick-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.quick-tile {
  background: var(--panel-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
}

.quick-tile:hover {
  border-color: var(--emerald);
}

.qt-icon {
  font-size: 17px;
}

.qt-title {
  font-size: 12px;
  font-weight: 900;
  color: #ffffff;
}

.qt-sub {
  font-size: 10.5px;
  color: var(--muted);
}

.home-bag-strip {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

/* Hourly Weather & Wind Forecast Grid */
.wind-timeline-bar {
  display: none;
  margin-top: 8px;
}

.wind-timeline-bar.visible {
  display: block;
}

.wind-tl-chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.wind-tl-chip {
  background: rgba(8, 28, 22, 0.85);
  color: #e2e8f0;
  border: 1px solid rgba(52, 211, 153, 0.16);
  border-radius: 11px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
  text-align: center;
}

.wind-tl-chip:hover {
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(12, 42, 33, 0.92);
}

.wind-tl-chip.active {
  background: linear-gradient(155deg, rgba(2, 132, 199, 0.34), rgba(16, 185, 129, 0.24));
  color: #ffffff;
  border-color: #38bdf8;
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.28), 0 4px 14px rgba(2, 132, 199, 0.22);
}

.wx-hr-time {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}

.wind-tl-chip.active .wx-hr-time {
  color: #bae6fd;
}

.wx-hr-temp {
  font-size: 14px;
  font-weight: 900;
  color: #f8fafc;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  line-height: 1.1;
}

.wx-hr-wind {
  font-size: 11px;
  font-weight: 800;
  color: #6ee7b7;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.wind-tl-chip.active .wx-hr-wind {
  color: #7dd3fc;
}

.wx-hr-arrow {
  display: inline-block;
  font-size: 11px;
  line-height: 1;
}

.wx-hr-meta {
  font-size: 9.5px;
  font-weight: 700;
  color: #94a3b8;
  line-height: 1.1;
}

.wx-hr-meta.rain {
  color: #7dd3fc;
}

/* ============================================================================
   TAB 2: PLAY — Pure Runner 160 bpm Mode (ZERO Buttons Over Map!)
   ============================================================================ */
.runner-top-bar {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "nav stats act";
  align-items: center;
  gap: 8px 12px;
}

.runner-nav-group {
  grid-area: nav;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.runner-act-group {
  grid-area: act;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.nav-arrow-btn {
  padding: 6px 10px;
  font-size: 15px;
  line-height: 1;
}

.gear-icon-btn {
  padding: 6px 9px;
  font-size: 14px;
}

.view-seg-switch {
  display: inline-flex;
  align-items: center;
  background: #07130f;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 2px;
  gap: 2px;
}

.vseg-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 800;
  padding: 5px 8px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.vseg-btn.active {
  background: var(--emerald);
  color: #041610;
  font-weight: 900;
}

.vseg-btn:hover:not(.active) {
  color: #ffffff;
}

.hole-jump-select {
  padding: 5px 7px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.runner-mini-stats {
  grid-area: stats;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.mini-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.15;
}

.mini-stat small {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.7px;
}

.mini-stat b {
  font-size: 18px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.mini-stat b.clock { color: #34d399; }
.mini-stat b.sgs { color: #38bdf8; }
.mini-stat b.drop { color: #fbbf24; }

@media (max-width: 860px) {
  .runner-top-bar {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "nav act"
      "stats stats";
    gap: 8px;
    padding: 8px 9px 7px;
  }

  .runner-mini-stats {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 0;
    padding-top: 8px;
    border-top: 1px solid rgba(52, 211, 153, 0.18);
  }

  .runner-mini-stats .mini-stat {
    position: relative;
    padding: 2px 4px;
  }

  .runner-mini-stats .mini-stat b {
    font-size: 19px;
  }

  .runner-mini-stats .mini-stat.bpm-chip {
    border-radius: 8px;
  }

  .runner-mini-stats .mini-stat:not(:first-child)::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 1px;
    background: rgba(148, 163, 184, 0.22);
  }
}

.gear-drawer {
  display: none;
  background: var(--panel);
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: 13px;
  padding: 10px;
  flex-direction: column;
  gap: 8px;
}

.gear-drawer.open {
  display: flex;
}

.gear-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.play-workspace {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  grid-template-areas:
    "map hero"
    "map side";
  gap: 12px;
  align-items: start;
}

.clean-map-card {
  grid-area: map;
  position: relative;
  background: #071410;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  min-height: 540px;
  display: flex;
}

#courseCanvas {
  width: 100%;
  height: 540px;
  display: block;
  touch-action: pan-y;
  cursor: crosshair;
}

.map-overlay-top {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  gap: 6px;
}

.map-chip {
  background: rgba(6, 18, 14, 0.84);
  border: 1px solid rgba(52, 211, 153, 0.30);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 10.5px;
  font-weight: 800;
  color: #e2e8f0;
  backdrop-filter: blur(4px);
}

/* Pure Runner Hero Distance & Club Card */
.runner-hero-card {
  grid-area: hero;
  background: linear-gradient(135deg, #07291f 0%, #0e241d 100%);
  border: 1px solid rgba(52, 211, 153, 0.45);
  border-radius: 16px;
  padding: 11px 15px 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.runner-par-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 7px;
  border-bottom: 1px solid rgba(52, 211, 153, 0.22);
}

.runner-par-badge {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.6px;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: 999px;
  padding: 3px 10px;
}

.runner-hero-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.metric-k {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  color: var(--muted);
  font-weight: 800;
  display: block;
}

.runner-dist-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.dist-main {
  font-size: 46px;
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -1.5px;
  color: #ffffff;
}

.dist-plays {
  font-size: 13px;
  font-weight: 800;
  color: var(--sky);
}

.dist-fcb {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  margin-top: 3px;
}

.runner-hero-right {
  text-align: right;
}

.club-rec {
  font-size: 30px;
  font-weight: 900;
  color: #fbbf24;
  line-height: 1.05;
}

.shape-rec {
  font-size: 13px;
  font-weight: 800;
  color: #6ee7b7;
  margin-top: 2px;
}

.lie-tag {
  display: inline-block;
  margin-top: 4px;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(6, 18, 14, 0.75);
  border: 1px solid var(--border);
  color: #cbd5e1;
}

.runner-side-col {
  grid-area: side;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.self2-target-box {
  background: var(--emerald-soft);
  border: 1px solid rgba(16, 185, 129, 0.42);
  border-radius: 12px;
  padding: 9px 12px;
}

.self2-k {
  font-size: 9.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #6ee7b7;
}

.self2-v {
  font-size: 14px;
  font-weight: 900;
  color: #ffffff;
  margin-top: 2px;
}

/* Big 160-bpm Thumb-Friendly Score, Putts & Next Controls */
.onthefly-score-card.stepper-card-v2 {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stepper-row-big {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.stepper-group-big {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: rgba(6, 18, 14, 0.72);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 6px 6px 8px;
}

.stepper-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
}

.step-btn-big {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  border: 1px solid #2b4c42;
  background: var(--panel-alt);
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-btn-big:hover {
  border-color: var(--emerald);
  background: rgba(16, 185, 129, 0.18);
}

.step-btn-big:active {
  transform: scale(0.94);
}

.step-val-big {
  flex: 1;
  min-width: 52px;
  height: 44px;
  padding: 0 5px;
  border-radius: 11px;
  background: #06100d;
  border: 1.5px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 20px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.step-val-big small {
  font-size: 12.5px;
  font-weight: 900;
  opacity: 0.92;
}

.step-val-big.sc-eagle { color: #fde68a; border-color: #f59e0b; background: rgba(245, 158, 11, 0.18); }
.step-val-big.sc-birdie { color: #6ee7b7; border-color: #10b981; background: rgba(16, 185, 129, 0.18); }
.step-val-big.sc-par { color: #ffffff; border-color: #335c4f; }
.step-val-big.sc-bogey { color: #fbbf24; border-color: rgba(245, 158, 11, 0.65); }
.step-val-big.sc-double { color: #fca5a5; border-color: rgba(239, 68, 68, 0.72); background: rgba(239, 68, 68, 0.14); }
.step-val-big.step-putt { color: #7dd3fc; border-color: rgba(56, 189, 248, 0.48); }

.action-bar-big {
  display: grid;
  grid-template-columns: 1.45fr 0.55fr;
  gap: 8px;
}

.btn-big-next, .btn-big-cue {
  height: 48px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  letter-spacing: 0.2px;
}

.btn-big-next {
  border: none;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #03150e;
}

.btn-big-cue {
  border: 1.5px solid rgba(52, 211, 153, 0.55);
  background: #0d261e;
  color: #a7f3d0;
}

/* Fine-Tune Round Metadata Bar inside Scorecard Editor */
.round-edit-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: var(--panel-alt);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 9px 10px;
}

.round-edit-meta label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
}

.meta-edit-input {
  background: #06100d;
  color: #ffffff;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 5px 7px;
  font-size: 12px;
  font-weight: 800;
  width: 100%;
}

.split-input-time {
  width: 54px;
  background: #06100d;
  color: #34d399;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 4px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 800;
}

@media (max-width: 620px) {
  .round-edit-meta {
    grid-template-columns: 1fr 1fr;
  }
  .home-install-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(34, 160, 107, 0.14);
  color: #d1fae5;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.home-install-btn:hover {
  background: rgba(34, 160, 107, 0.24);
  border-color: rgba(52, 211, 153, 0.55);
}

.nav-golf-ico,
.golf-bag-ico {
  display: inline-block;
  vertical-align: -3px;
  flex-shrink: 0;
}

.dock-svg-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 25px;
}

.cf-autofill-bar {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 6px;
  margin-top: 6px;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.cf-autofill-bar::-webkit-scrollbar {
  display: none;
}

.cf-auto-chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.34);
  background: rgba(34, 160, 107, 0.14);
  color: #d1fae5;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.cf-auto-chip:hover {
  background: rgba(34, 160, 107, 0.28);
  border-color: rgba(52, 211, 153, 0.6);
}

.cf-auto-chip.is-club {
  border-color: rgba(251, 191, 36, 0.32);
  background: rgba(251, 191, 36, 0.10);
  color: #fef3c7;
}

.atlas-header-stack {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 10px;
}

.atlas-course-heading {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  color: #f3f5f4;
  word-break: break-word;
}

.atlas-hole-subline {
  font-size: 12.5px;
  font-weight: 600;
  color: #6ee7b7;
}

.atlas-nav-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 6px;
  align-items: center;
}

.atlas-nav-btn {
  padding: 8px 12px;
  white-space: nowrap;
}

.atlas-hole-sel {
  width: 100%;
  min-width: 0;
  text-align: center;
  padding: 8px 10px;
}

.atlas-action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 8px;
}

.atlas-act-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px 6px;
  font-size: 12px;
  white-space: nowrap;
  text-decoration: none;
}

.atlas-pin-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.atlas-pin-lbl {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  flex-shrink: 0;
}

.atlas-pin-btns {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.atlas-pin-btns .ctrl-btn {
  padding: 6px 8px;
  text-align: center;
}

.bag-preset-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.bag-preset-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.bag-preset-btn:hover {
  background: rgba(34, 160, 107, 0.14);
  border-color: rgba(52, 211, 153, 0.45);
}

.bag-preset-btn b {
  font-size: 12px;
  font-weight: 700;
  color: #f3f5f4;
}

.bag-preset-btn small {
  font-size: 10.5px;
  color: var(--muted);
}

.settings-section-lbl {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 4px 0 6px;
}

.setting-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
  line-height: 1.3;
}

.game-setup-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  margin-bottom: 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.game-setup-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.game-setup-sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

.home-select-row.home-select-3 {
    grid-template-columns: 1fr;
  }
}

.action-bar {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 8px;
}

.btn-big-speak, .btn-big-mark {
  border: none;
  border-radius: 13px;
  padding: 13px 12px;
  font-size: 13.5px;
  font-weight: 900;
  cursor: pointer;
}

.btn-big-speak {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #03150e;
}

.btn-big-mark {
  background: var(--panel-alt);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #fde68a;
}

.caption-card.compact-caption {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 8px 11px;
}

.caption-label {
  font-size: 9.5px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--sky);
}

.caption-text {
  font-size: 12px;
  color: #cbd5e1;
  margin-top: 2px;
  line-height: 1.35;
}

.putt-read-box {
  display: none;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.42);
  border-radius: 11px;
  padding: 8px 10px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.putt-read-box.visible {
  display: flex;
}

/* Self 1 Analyst Panel (Only shown when Self 1 enabled) */
.self1-panel {
  display: none;
  flex-direction: column;
  gap: 7px;
  background: var(--panel);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 12px;
  padding: 10px;
}

.self1-panel.visible {
  display: flex;
}

.dsm-banner {
  border-radius: 9px;
  padding: 7px 9px;
  font-size: 11.5px;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  gap: 6px;
}

.dsm-clear { background: var(--emerald-soft); border: 1px solid var(--emerald); color: #a7f3d0; }
.dsm-warn { background: var(--amber-soft); border: 1px solid var(--amber); color: #fde68a; }
.dsm-block { background: var(--red-soft); border: 1px solid var(--red); color: #fecaca; }

.cues-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.cue-box {
  background: var(--panel-alt);
  border-radius: 9px;
  padding: 7px 9px;
  font-size: 11.5px;
}

.cue-safe { border-left: 3px solid var(--emerald); }
.cue-dead { border-left: 3px solid var(--red); }

/* Stage 2 & 3 Airlock Overlays (Docked Left of Shot Flight Path — Zero Obstruction!) */
.breath-overlay, .tempo-overlay {
  position: absolute;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 6;
}

.breath-overlay.visible, .tempo-overlay.visible {
  display: flex;
}

.breath-overlay {
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
}

.breath-ring {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  border: 2.5px solid var(--emerald);
  background: rgba(6, 28, 22, 0.72);
  backdrop-filter: blur(4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  line-height: 1.25;
  color: #ecfdf5;
  font-weight: 900;
  font-size: 11.5px;
  animation: breathPulse 1.5s ease-in-out infinite;
}

@keyframes breathPulse {
  0%, 100% { transform: scale(0.93); opacity: 0.82; }
  50% { transform: scale(1.06); opacity: 1; }
}

.tempo-overlay {
  top: auto;
  bottom: 16px;
  left: 14px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.2px;
  color: #fde68a;
  background: rgba(6, 18, 14, 0.88);
  border: 1px solid rgba(251, 191, 36, 0.38);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  padding: 6px 12px;
  border-radius: 999px;
  width: fit-content;
}

/* PaceCaddie NZ Brand Icon & Install Pill */
.brand-icon-img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(52, 211, 153, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.brand-nz-tag {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.36);
  border-radius: 999px;
  padding: 1px 6px;
  vertical-align: middle;
  margin-left: 3px;
}

.install-pwa-pill {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(245, 158, 11, 0.2));
  border: 1px solid rgba(52, 211, 153, 0.5);
  color: #ecfdf5;
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
  white-space: nowrap;
}

.install-pwa-pill:hover {
  background: rgba(16, 185, 129, 0.36);
}

.install-banner {
  margin-top: 10px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 11px;
}

.install-banner-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(52, 211, 153, 0.45);
  flex-shrink: 0;
}

.install-banner-copy {
  min-width: 0;
  flex: 1;
}

.install-banner-title {
  font-size: 13.5px;
  font-weight: 900;
  color: #ecfdf5;
  line-height: 1.2;
}

.install-banner-sub {
  font-size: 11.5px;
  font-weight: 600;
  color: #94a3b8;
  margin-top: 2px;
  line-height: 1.3;
}

.install-banner-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Account Plan Pill & Pro ($15/yr) Gate Modal */
.plan-pill {
  background: rgba(14, 165, 233, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.42);
  color: #bae6fd;
  font-size: 11px;
  font-weight: 900;
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
  white-space: nowrap;
}

.plan-pill.is-pro {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(251, 191, 36, 0.52);
  color: #fde68a;
}

.plan-pill.is-expired {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(248, 113, 113, 0.5);
  color: #fecaca;
}

.acc-lock-banner {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: 11px;
  padding: 9px 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: #fde68a;
  line-height: 1.4;
}

.acc-plan-box {
  background: rgba(7, 27, 21, 0.9);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 13px;
}

.acc-section {
  background: rgba(6, 22, 17, 0.85);
  border: 1px solid rgba(52, 211, 153, 0.22);
  border-radius: 12px;
  padding: 11px 13px;
}

.acc-pro-box {
  background: var(--panel-alt);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 13px 14px;
}

.pro-lock-tag {
  font-size: 9.5px;
  font-weight: 900;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: 999px;
  padding: 1px 6px;
  margin-left: 4px;
  vertical-align: middle;
}

.acc-oauth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.acc-btn-google {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
  font-weight: 900 !important;
}

.acc-btn-apple {
  background: #090d12 !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  font-weight: 900 !important;
}

/* First-Time Golfer Setup Modal */
.ob-tee-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.ob-tee-btn {
  padding: 8px 6px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

.ob-tee-btn.active {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #05140e;
}

.ob-field-lbl {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 5px;
}

@media (max-width: 520px) {
  .breath-overlay {
    left: 10px;
  }
  .breath-ring {
    width: 94px;
    height: 94px;
    font-size: 10.5px;
  }
  .tempo-overlay {
    left: 10px;
    bottom: 12px;
    font-size: 11px;
    padding: 5px 10px;
  }
}

/* ============================================================================
   TAB 3: GREENS — Full-Screen Tour Micro-Contour Atlas
   ============================================================================ */
.atlas-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.atlas-body {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 12px;
  align-items: start;
}

.atlas-canvas-wrap {
  background: #f8fafc;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#atlasGreenCanvas {
  width: 100%;
  height: 410px;
  display: block;
  border-radius: 8px;
}

.atlas-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
}

.atlas-legend i {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 3px;
  margin-right: 4px;
  vertical-align: -1px;
  border: 1px solid #475569;
}

.atlas-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.atlas-meta-box {
  background: var(--panel-alt);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.45;
  color: #e2e8f0;
}

.atlas-notes-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 11px;
  padding: 10px 12px;
}

.atlas-note-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 11px;
  color: #cbd5e1;
}

.atlas-input, .atlas-textarea {
  background: #06100d;
  color: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 12px;
  font-family: inherit;
  width: 100%;
  margin-top: 2px;
}

/* ============================================================================
   TAB 4: SCORES — Golf NZ-Style Rounds History & Stats
   ============================================================================ */
.scores-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.metric-box {
  background: var(--panel-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-v {
  font-size: 19px;
  font-weight: 900;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.metric-v.clock { color: #34d399; }
.metric-v.sgs { color: #38bdf8; }
.metric-v.drop { color: #fbbf24; }

.scores-filter-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-pill {
  background: var(--panel-alt);
  color: #cbd5e1;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
}

.filter-pill.active {
  background: var(--emerald);
  color: #03150e;
  border-color: var(--emerald);
}

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

.round-history-card {
  background: var(--panel-alt);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  flex-wrap: wrap;
  transition: border-color 0.15s;
}

.round-history-card:hover {
  border-color: var(--emerald);
}

.rh-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rh-course {
  font-size: 14.5px;
  font-weight: 900;
  color: #ffffff;
}

.rh-meta {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 700;
}

.rh-stats {
  display: flex;
  align-items: center;
  gap: 14px;
}

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

.rh-stat small {
  display: block;
  font-size: 9.5px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
}

.rh-stat b {
  font-size: 16px;
  font-weight: 900;
  color: #ffffff;
}

.rh-stat b.sgs-val { color: #38bdf8; }
.rh-stat b.putt-val { color: #fde68a; }
.rh-stat b.time-val { color: #34d399; }

.empty-rounds {
  text-align: center;
  padding: 28px 16px;
  border: 1px dashed var(--border);
  border-radius: 13px;
  color: var(--muted);
  font-size: 13px;
}

/* ============================================================================
   TAB 5: BAG & SETUP — Club Editor, Calibration & Voice Preferences
   ============================================================================ */
.bag-setup-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
}
.bag-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}
.bag-meta-summary {
  font-size: 12px;
  color: #a7f3d0;
  font-weight: 600;
}
.bag-weight-field {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}
.club-table-head {
  display: grid;
  grid-template-columns: 1fr 72px 72px 28px;
  gap: 6px;
  padding: 2px 8px 5px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.club-row-item {
  display: grid;
  grid-template-columns: 1fr 72px 72px 28px;
  gap: 6px;
  align-items: center;
  background: var(--panel-alt);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 6px 8px;
}
.club-row-name {
  font-size: 13px;
  font-weight: 700;
  color: #f3f5f4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bag-clubs-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.bag-meta-tag {
  font-size: 11.5px;
  font-weight: 900;
  color: #fbbf24;
  margin-right: 4px;
}

.club-chip {
  background: var(--panel-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px 8px;
  font-size: 11.5px;
  font-weight: 800;
  color: #f8fafc;
}

.club-chip span {
  color: #38bdf8;
  margin-left: 3px;
}

.bag-editor-drawer {
  background: rgba(6, 20, 16, 0.85);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bag-editor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.club-edit-card {
  background: var(--panel-alt);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.club-edit-card.checked {
  border-color: var(--emerald);
  background: rgba(16, 185, 129, 0.14);
}

.add-club-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(52, 211, 153, 0.22);
}

.club-del-btn {
  background: transparent;
  border: none;
  color: #fca5a5;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  padding: 0 3px;
  line-height: 1;
}

/* Course Conditions & Expandable Hourly Forecast Card */
.wind-compact-card {
  padding: 13px 15px;
  background: var(--panel);
  border: 1px solid var(--border);
}

.wind-popout-trigger {
  width: 100%;
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  color: var(--ink);
  text-align: left;
}

.wx-trigger-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  flex: 1;
}

.wx-top-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.wx-top-left {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.wx-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #34d399;
  text-transform: uppercase;
}

.wx-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.8);
  display: inline-block;
}

.wx-live-dot.offline {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.7);
}

.wx-live-dot.manual {
  background: #38bdf8;
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.7);
}

.wx-time-badge {
  font-size: 10px;
  font-weight: 800;
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 999px;
  padding: 1px 7px;
}

.wx-headline-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 6px 0 4px;
}

.wx-temp-block {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.wx-cond-icon {
  font-size: 22px;
  line-height: 1;
}

.wx-temp-val {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #f8fafc;
  line-height: 1;
}

.wx-vsep {
  width: 1px;
  height: 22px;
  background: rgba(148, 163, 184, 0.24);
}

.wx-wind-block {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.wx-wind-arrow {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #6ee7b7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  transition: transform 0.25s ease;
}

.wind-summary-val {
  font-size: 15px;
  font-weight: 900;
  color: #6ee7b7;
  line-height: 1.15;
}

.wx-sub-line {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  line-height: 1.35;
  text-align: center;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.wind-chevron {
  font-size: 11px;
  font-weight: 800;
  color: #cbd5e1;
  background: rgba(11, 46, 36, 0.85);
  border: 1px solid rgba(52, 211, 153, 0.28);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.wind-popout-trigger:hover .wind-chevron {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(52, 211, 153, 0.55);
  color: #f8fafc;
}

.wind-popout-body {
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.wind-popout-body.open {
  display: block;
}

.wx-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.wx-metric-tile {
  background: rgba(6, 20, 16, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 10px;
  padding: 7px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wx-m-lbl {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

.wx-m-val {
  font-size: 13px;
  font-weight: 900;
  color: #f1f5f9;
  white-space: nowrap;
}

.wx-drawer-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}

.wx-drawer-title {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #7dd3fc;
  text-transform: uppercase;
}

.wx-drawer-title small {
  font-weight: 600;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
}

.wx-mode-pill {
  padding: 4px 10px !important;
  font-size: 11px !important;
  border-radius: 999px !important;
  min-height: 26px;
}

@media (max-width: 480px) {
  .wx-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wind-tl-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Desktop-Only Course & Scorecard Editor (>= 960px ONLY; 100% hidden on mobile!) */
.editor-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 12px;
  align-items: start;
}

.editor-tool-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ed-tool-btn.active {
  background: var(--emerald);
  color: #041610;
  border-color: var(--emerald);
}

.ed-ratings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.ed-rating-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background: var(--panel-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px 8px;
  font-size: 11px;
  color: var(--muted);
}

.ed-rating-box label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
}

.ed-num-inp {
  width: 58px;
  background: #06100d;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 4px;
  text-align: center;
}

.ed-row-active {
  background: rgba(16, 185, 129, 0.16) !important;
}

@media (max-width: 959px) {
  .desktop-only-tab,
  .desktop-only-view {
    display: none !important;
  }
}

.club-edit-left {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
}

.carry-input {
  width: 48px;
  background: #06100d;
  color: #38bdf8;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 4px;
  text-align: right;
  font-size: 11.5px;
  font-weight: 800;
}

.gap-diagnostics {
  font-size: 11.5px;
  font-weight: 700;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.10);
  border: 1px solid rgba(56, 189, 248, 0.30);
  color: #e2e8f0;
}

.gap-warn {
  color: #fde68a;
}

.logger-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  background: var(--panel-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 9px 11px;
  font-size: 12px;
}

.settings-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.setting-row {
  background: var(--panel-alt);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.setting-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #ffffff;
}

.setting-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
}

.mode-switch {
  display: inline-flex;
  background: #05120e;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
}

.mode-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.mode-btn.active-self2 { background: var(--emerald); color: #03150e; }
.mode-btn.active-self1 { background: var(--amber); color: #1c1002; }

/* Tables & Editable Debrief Modal */
.split-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
}

.split-table th, .split-table td {
  border: 1px solid var(--border);
  padding: 5px 6px;
  text-align: center;
}

.split-table th {
  background: #0a1f19;
  color: #f8fafc;
}

.bag-row-btn {
  cursor: pointer;
}

.bag-row-btn:hover {
  background: rgba(16, 185, 129, 0.10);
}

.bag-row-active {
  background: rgba(16, 185, 129, 0.18);
  outline: 1px solid var(--emerald);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 10, 8, 0.84);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
  z-index: 120;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  background: #0a1814;
  border: 1.5px solid #34d399;
  border-radius: 18px;
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.debrief-kpis {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}

.debrief-insights {
  background: rgba(16, 185, 129, 0.10);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 12px;
  line-height: 1.45;
  color: #d1fae5;
}

.debrief-input {
  width: 42px;
  background: #06100d;
  color: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 4px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}

/* Mobile Sticky 5-Tab Bottom Navigation (Golf NZ Style!) */
.mobile-bottom-dock {
  display: none;
}

/* ============================================================================
   RESPONSIVE BREAKPOINTS (Mobile Phone First Ergonomics)
   ============================================================================ */
@media (max-width: 860px) {
  .app-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0c1210;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.app-splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  animation: splashFadeUp 0.4s ease-out both;
}

.splash-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 12px 28px rgba(16, 185, 129, 0.22));
}

.splash-title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #f3f5f4;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.splash-title span {
  font-size: 16px;
  font-weight: 800;
  color: #6ee7b7;
  letter-spacing: 0.08em;
}

.splash-sub {
  font-size: 17px;
  font-weight: 600;
  color: #a7bab1;
  letter-spacing: 0.02em;
}

@keyframes splashFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.app-shell {
    padding: 8px 10px 80px;
    gap: 9px;
  }
  .desktop-tabs {
    display: none;
  }
  .home-grid,
  .atlas-body,
  .bag-setup-grid {
    grid-template-columns: 1fr;
  }
  .play-workspace {
    grid-template-columns: 1fr;
    grid-template-areas:
      "hero"
      "map"
      "side";
    gap: 8px;
  }
  .clean-map-card,
  #courseCanvas {
    min-height: 270px;
    height: clamp(270px, 44dvh, 380px);
  }
  .hero-card {
    height: clamp(165px, 24dvh, 215px);
  }
  .top-nav-bar {
    padding: 6px 9px;
    gap: 6px;
  }
  .brand-title {
    font-size: 14px;
  }
  .brand-right {
    gap: 5px;
    min-width: 0;
  }
  .net-status-pill {
    font-size: 10px;
    padding: 3px 7px;
    max-width: 132px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .plan-pill,
  .install-pwa-pill {
    font-size: 10px;
    padding: 3px 7px;
  }
  .hero-title {
    font-size: 22px;
  }
  .quick-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
  .scores-kpi-grid,
  .debrief-kpis {
    grid-template-columns: repeat(2, 1fr);
  }
  .mobile-bottom-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    background: rgba(5, 19, 15, 0.97);
    border-top: 1px solid rgba(52, 211, 153, 0.35);
    backdrop-filter: blur(12px);
  }
  .dock-tab {
    border: none;
    background: transparent;
    color: #94b4a8;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 4px 2px 5px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 800;
  }
  .dock-tab span {
    font-size: 17px;
    line-height: 1.1;
  }
  .dock-tab small {
    font-size: 10.5px;
  }
  .dock-tab.active {
    color: #34d399;
    background: rgba(16, 185, 129, 0.14);
  }
}

/* NZ Course Finder & Offline Downloader */
.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
}

.mini-finder-btn {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.36);
  color: #6ee7b7;
  font-size: 10px;
  font-weight: 800;
  border-radius: 999px;
  padding: 2px 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.mini-finder-btn:hover {
  background: rgba(16, 185, 129, 0.28);
  border-color: #34d399;
  color: #ecfdf5;
}

.cf-compact-hdr {
  margin-bottom: 8px;
  padding-bottom: 8px;
}

.cf-hdr-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cf-count-chip {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 8px;
}

.cf-search-full {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 11px;
}

.cf-action-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.cf-view-seg {
  width: 104px;
  flex-shrink: 0;
}

.cf-view-seg .seg-pill {
  padding: 5px 4px;
  font-size: 12px;
}

.cf-region-sel {
  flex: 1;
  min-width: 0;
  max-width: 155px;
  padding: 6px 8px;
  font-size: 12px;
}

.cf-near-btn {
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
  padding: 6px 10px;
  font-size: 12px;
}

.cf-map-wrap {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cf-canvas-box {
  position: relative;
}

.cf-nz-canvas {
  width: 100%;
  height: clamp(270px, 44dvh, 380px);
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #0a1210;
  display: block;
  cursor: grab;
  touch-action: none;
}

.cf-nz-canvas:active {
  cursor: grabbing;
}

.cf-map-zoom-ctrls {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}

.cf-zoom-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(12, 18, 16, 0.88);
  color: #f3f5f4;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cf-zoom-btn:hover {
  background: rgba(34, 160, 107, 0.25);
  border-color: rgba(52, 211, 153, 0.5);
}

.cf-map-selected {
  padding: 10px 12px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cf-modal-card {
  max-width: 640px;
}

.cf-toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
}

.cf-search-inp {
  flex: 1;
  min-width: 0;
  background: rgba(6, 22, 17, 0.92);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #f8fafc;
  padding: 9px 12px;
  font-size: 13.5px;
  font-weight: 600;
  outline: none;
}

.cf-search-inp:focus {
  border-color: #34d399;
}

.cf-pills {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.cf-pill {
  flex-shrink: 0;
  white-space: nowrap;
  background: rgba(10, 34, 26, 0.85);
  border: 1px solid var(--border);
  color: #cbd5e1;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
}

.cf-pill.active {
  background: linear-gradient(135deg, #059669, #10b981);
  border-color: #34d399;
  color: #03150f;
}

.cf-course-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 410px;
  overflow-y: auto;
  padding-right: 2px;
}

.cf-card {
  background: rgba(7, 26, 20, 0.9);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 12px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.cf-card.is-active {
  border-color: #34d399;
  background: rgba(12, 46, 35, 0.88);
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.25);
}

.cf-card-info {
  min-width: 180px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cf-card-title {
  font-size: 14.5px;
  font-weight: 900;
  color: #f8fafc;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.cf-card-meta {
  font-size: 11.5px;
  color: #94a3b8;
  font-weight: 600;
}

.cf-badge {
  font-size: 10px;
  font-weight: 900;
  border-radius: 999px;
  padding: 2px 7px;
  letter-spacing: 0.03em;
}

.cf-badge-offline {
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #6ee7b7;
}

.cf-badge-update {
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(251, 191, 36, 0.5);
  color: #fde68a;
}

.cf-badge-dist {
  background: rgba(14, 165, 233, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #7dd3fc;
}

.cf-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cf-request-box {
  background: var(--panel-alt);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 11px 13px;
}

.cf-req-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.32);
  color: #a7f3d0;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 10.5px;
  font-weight: 800;
  margin: 4px 5px 0 0;
}

/* Strava-Style Share Card Studio */
.sc-modal-card {
  max-width: 560px;
}

.sc-mode-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.sc-preview-stage {
  background: radial-gradient(circle at 50% 30%, #0d2b22, #04110d);
  border: 1px solid rgba(52, 211, 153, 0.24);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 440px;
  overflow: hidden;
}

.sc-preview-stage.checkerboard {
  background-color: #132520;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.08) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.08) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
}

.sc-preview-canvas {
  max-width: 100%;
  max-height: 410px;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

.sc-actions-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* PaceCaddie NZ Brand Icon & Install Pill */
.brand-icon-img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(52, 211, 153, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.brand-nz-tag {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.36);
  border-radius: 999px;
  padding: 1px 6px;
  vertical-align: middle;
  margin-left: 3px;
}

.install-pwa-pill {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(245, 158, 11, 0.2));
  border: 1px solid rgba(52, 211, 153, 0.5);
  color: #ecfdf5;
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
  white-space: nowrap;
}

.install-pwa-pill:hover {
  background: rgba(16, 185, 129, 0.36);
}

.install-banner {
  margin-top: 10px;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 11px;
}

.install-banner-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(52, 211, 153, 0.45);
  flex-shrink: 0;
}

.install-banner-copy {
  min-width: 0;
  flex: 1;
}

.install-banner-title {
  font-size: 13.5px;
  font-weight: 900;
  color: #ecfdf5;
  line-height: 1.2;
}

.install-banner-sub {
  font-size: 11.5px;
  font-weight: 600;
  color: #94a3b8;
  margin-top: 2px;
  line-height: 1.3;
}

.install-banner-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Account Plan Pill & Pro ($15/yr) Gate Modal */
.plan-pill {
  background: rgba(14, 165, 233, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.42);
  color: #bae6fd;
  font-size: 11px;
  font-weight: 900;
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
  white-space: nowrap;
}

.plan-pill.is-pro {
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(251, 191, 36, 0.52);
  color: #fde68a;
}

.plan-pill.is-expired {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(248, 113, 113, 0.5);
  color: #fecaca;
}

.acc-lock-banner {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: 11px;
  padding: 9px 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: #fde68a;
  line-height: 1.4;
}

.acc-plan-box {
  background: rgba(7, 27, 21, 0.9);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 13px;
}

.acc-section {
  background: rgba(6, 22, 17, 0.85);
  border: 1px solid rgba(52, 211, 153, 0.22);
  border-radius: 12px;
  padding: 11px 13px;
}

.acc-pro-box {
  background: var(--panel-alt);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 13px 14px;
}

.pro-lock-tag {
  font-size: 9.5px;
  font-weight: 900;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-radius: 999px;
  padding: 1px 6px;
  margin-left: 4px;
  vertical-align: middle;
}

.acc-oauth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.acc-btn-google {
  background: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
  font-weight: 900 !important;
}

.acc-btn-apple {
  background: #090d12 !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  font-weight: 900 !important;
}

/* First-Time Golfer Setup Modal */
.ob-tee-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.ob-tee-btn {
  padding: 8px 6px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

.ob-tee-btn.active {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #05140e;
}

.ob-field-lbl {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 5px;
}

@media (max-width: 520px) {
  .hide-xs {
    display: none;
  }
  .dist-main {
    font-size: 38px;
  }
  .club-rec {
    font-size: 26px;
  }
  .home-select-row {
    grid-template-columns: 1fr;
  }
}


/* ========================================================================== */
/* MODULES 1, 2 & 3: BLE Telemetry, Short-Iron Approach Bar & OLED Pocket Mode */
/* ========================================================================== */
.mini-stat.bpm-chip b {
  color: #fb7185;
}
.mini-stat.bpm-chip.is-high {
  border-color: rgba(251, 191, 36, 0.7);
  background: rgba(251, 191, 36, 0.14);
}
.mini-stat.bpm-chip.is-high b {
  color: #fbbf24;
}

.ble-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #cbd5e1;
}
.ble-status-badge.connected {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(52, 211, 153, 0.45);
  color: #6ee7b7;
}
.ble-status-badge.disconnected {
  background: rgba(251, 191, 36, 0.14);
  border-color: rgba(251, 191, 36, 0.4);
  color: #fde68a;
}
.ble-sensor-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.16);
}
.ble-sensor-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.ble-sensor-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
}
.ble-bpm-readout {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(248, 113, 113, 0.45);
  font-size: 26px;
  line-height: 1.1;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: #f87171;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}
.ble-bpm-readout small {
  font-size: 12px;
  font-weight: 800;
  color: #fca5a5;
  letter-spacing: 0.04em;
}
.ble-bpm-readout.is-idle {
  background: rgba(148, 163, 184, 0.08);
  border-color: rgba(148, 163, 184, 0.22);
  color: rgba(248, 113, 113, 0.5);
}
.ble-bpm-readout.is-idle small {
  color: rgba(252, 165, 165, 0.45);
}
.ble-bpm-readout.is-high {
  background: rgba(239, 68, 68, 0.28);
  border-color: rgba(239, 68, 68, 0.78);
  color: #ef4444;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.28);
}
.ble-reconnect-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  font-size: 12px;
  color: #fde68a;
}
.hr-slider {
  width: 100%;
  accent-color: #34d399;
  cursor: pointer;
}

/* Module 2: Short-Iron Approach Engine Strip (30m - 110m) */
.approach-engine-bar {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(6, 20, 15, 0.72);
  border: 1px solid rgba(52, 211, 153, 0.26);
}

/* 3D LiDAR Shot & Wind WebGL View Overlay */
.course-canvas-3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 4;
  touch-action: none;
  cursor: grab;
  border-radius: inherit;
}
.course-canvas-3d:active {
  cursor: grabbing;
}
.view-3d-btn {
  padding: 6px 10px !important;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.03em;
  min-width: 38px;
}
.view-3d-btn.active {
  background: rgba(16, 185, 129, 0.24) !important;
  border-color: rgba(52, 211, 153, 0.75) !important;
  color: #6ee7b7 !important;
}
.hud-3d-pill {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 6;
  display: flex;
  align-items: center;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  border: none;
  pointer-events: auto;
}
.hud3d-reset {
  background: rgba(6, 18, 14, 0.78);
  border: 1px solid rgba(52, 211, 153, 0.42);
  backdrop-filter: blur(6px);
  color: #eef3f0;
  border-radius: 999px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
}
/* ============================================================================
   ZERO-SCROLL FULL-VIEWPORT PLAY TAB (100dvh Lock on Phone & Desktop!)
   Inspired by Hole19 / 18Birdies / Golf Pad — Clean Self-2 Visual Focus
   ============================================================================ */
body.on-play-tab {
  overflow: hidden;
  height: 100dvh;
}

body.on-play-tab .app-shell {
  height: 100dvh;
  overflow: hidden;
  padding: 6px 12px 10px;
  gap: 7px;
}

body.on-play-tab #tab-play.active {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow: hidden;
}

body.on-play-tab .play-workspace {
  flex: 1;
  min-height: 0;
  height: 100%;
  grid-template-rows: auto 1fr;
  align-items: stretch;
  gap: 9px;
}

body.on-play-tab .clean-map-card {
  min-height: 0;
  height: 100%;
}

body.on-play-tab #courseCanvas {
  height: 100%;
}

body.on-play-tab .runner-side-col {
  min-height: 0;
  overflow-y: auto;
  justify-content: flex-start;
  gap: 8px;
}

/* Compact Telemetry Strip: hidden until round/sim starts so map gets max viewport! */
.runner-mini-stats {
  display: none;
}
.runner-mini-stats.live-active {
  display: flex;
}

/* Upgraded Big Sunlit Hero Bar + 1-Tap Flight Trajectory Control */
.runner-hero-card {
  padding: 9px 13px 8px;
  gap: 6px;
  border-radius: 14px;
}

.runner-hero-main {
  gap: 10px;
  align-items: center;
}

.runner-dist-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.runner-dist-sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.dist-main {
  font-size: clamp(36px, 9.2vw, 48px);
  letter-spacing: -1.4px;
}

.dist-plays {
  font-size: 15.5px;
  font-weight: 800;
  color: #38bdf8;
  line-height: 1.15;
  white-space: nowrap;
}

.dist-fcb {
  font-size: 13px;
  font-weight: 700;
  color: #cbd5e1;
  margin-top: 0;
  white-space: nowrap;
}

.runner-hero-right {
  text-align: right;
  min-width: 0;
  flex: 1;
}

.club-rec {
  font-size: clamp(24px, 6.6vw, 33px);
  line-height: 1.05;
}

.inline-aim-cue {
  font-size: 13.5px;
  font-weight: 700;
  color: #a7f3d0;
  margin-top: 2px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Sleek 1-Tap Flight Trajectory Row (Low | Stock | High) */
.flight-bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 5px;
  border-top: 1px solid rgba(52, 211, 153, 0.16);
}

.flight-seg-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(5, 16, 12, 0.86);
  border: 1px solid rgba(52, 211, 153, 0.24);
  border-radius: 8px;
  padding: 2px;
  gap: 2px;
}

.fseg-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
}

.fseg-btn.active {
  background: rgba(16, 185, 129, 0.26);
  color: #6ee7b7;
}

.flight-wind-meta {
  font-size: 12.5px;
  font-weight: 700;
  color: #9eb3aa;
  margin-left: auto;
  white-space: nowrap;
}

.detail-pill-btn {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.42);
  color: #fde68a;
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

/* Floating Live Pin & Break Toast inside top edge of Map (takes 0 vertical scroll!) */
.putt-read-box.map-putt-toast {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  z-index: 6;
  background: rgba(7, 22, 18, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.45);
  backdrop-filter: blur(8px);
  padding: 6px 10px;
  border-radius: 10px;
  gap: 8px;
  pointer-events: auto;
}

.putt-toast-val {
  font-size: 12.5px;
  font-weight: 800;
  color: #e0f2fe;
  line-height: 1.25;
}

/* Sleek Single-Row Score / Putts / Next / Cue Bar */
.onthefly-score-card.stepper-card-v2 {
  flex-direction: row;
  align-items: center;
  padding: 6px 8px;
  gap: 6px;
  border-radius: 13px;
}

.stepper-card-v2 .stepper-row-big {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.stepper-card-v2 .stepper-group-big {
  flex-direction: row;
  align-items: center;
  gap: 4px;
  padding: 3px 5px;
  border-radius: 10px;
  flex: 1;
  min-width: 0;
}

.stepper-card-v2 .otf-lbl {
  font-size: 9.5px;
  font-weight: 900;
  color: var(--muted);
  letter-spacing: 0.4px;
}

.stepper-card-v2 .stepper-controls {
  gap: 3px;
}

.stepper-card-v2 .step-btn-big {
  width: 34px;
  height: 36px;
  font-size: 20px;
  border-radius: 8px;
}

.stepper-card-v2 .step-val-big {
  min-width: 38px;
  height: 36px;
  font-size: 16.5px;
  border-radius: 8px;
  padding: 0 3px;
  gap: 2px;
}

.stepper-card-v2 .step-val-big small {
  font-size: 10.5px;
}

.stepper-card-v2 .action-bar-big {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.stepper-card-v2 .btn-big-next {
  height: 42px;
  padding: 0 12px;
  font-size: 13px;
  border-radius: 10px;
  white-space: nowrap;
}

.stepper-card-v2 .btn-big-cue {
  height: 42px;
  width: 42px;
  padding: 0;
  font-size: 16px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Detailed Analyst Panel — readable 13px typography, zero duplication */
.detail-panel-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.detail-chip {
  font-size: 12px;
  font-weight: 800;
  color: #7dd3fc;
}

.self1-panel .dsm-banner {
  font-size: 12.5px;
  padding: 7px 10px;
}

@media (max-width: 860px) {
  body.on-play-tab .app-shell {
    padding: 4px 7px calc(62px + env(safe-area-inset-bottom, 0px));
    gap: 5px;
  }

  body.on-play-tab .top-nav-bar {
    padding: 4px 8px;
    border-radius: 10px;
  }

  body.on-play-tab #tab-play.active {
    gap: 5px;
  }

  body.on-play-tab .runner-top-bar {
    padding: 5px 7px;
    gap: 4px 6px;
    border-radius: 11px;
  }

  body.on-play-tab .runner-mini-stats {
    display: none;
  }

  body.on-play-tab .runner-mini-stats.live-active {
    display: grid;
    padding-top: 4px;
  }

  body.on-play-tab .runner-mini-stats .mini-stat b {
    font-size: 15px;
  }

  body.on-play-tab .play-workspace {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-height: 0;
    position: relative;
  }

  body.on-play-tab .runner-hero-card {
    flex: 0 0 auto;
    padding: 7px 10px 6px;
    gap: 5px;
  }

  body.on-play-tab .clean-map-card {
    flex: 1 1 auto;
    min-height: 180px;
    height: auto;
    border-radius: 13px;
  }

  body.on-play-tab #courseCanvas {
    height: 100%;
    min-height: 180px;
  }

  body.on-play-tab .runner-side-col {
    flex: 0 0 auto;
    overflow: visible;
    gap: 0;
  }

  /* On mobile Detailed Mode, float Detailed Panel neatly over bottom of map on tap — ZERO page scroll! */
  body.on-play-tab .self1-panel {
    display: none;
  }

  body.on-play-tab .self1-panel.visible.drawer-open {
    display: flex;
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: 62px;
    z-index: 20;
    background: rgba(11, 20, 17, 0.96);
    border: 1px solid rgba(251, 191, 36, 0.55);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
  }

  .stepper-card-v2 .otf-lbl {
    display: none;
  }

  .stepper-card-v2 .step-btn-big {
    width: 32px;
    height: 36px;
  }

  .stepper-card-v2 .step-val-big {
    min-width: 36px;
    height: 36px;
    font-size: 15.5px;
  }

  .stepper-card-v2 .btn-big-next {
    padding: 0 10px;
    font-size: 12.5px;
  }
}

.hud3d-reset:hover {
  background: rgba(16, 185, 129, 0.28);
}
.approach-bar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.approach-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}
.approach-badge.low-punch {
  background: rgba(251, 191, 36, 0.18);
  border: 1px solid rgba(251, 191, 36, 0.5);
  color: #fde68a;
}
.approach-badge.high-soft {
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #bae6fd;
}
.approach-zone-meta {
  font-size: 11.5px;
  font-weight: 700;
  color: #a7f3d0;
}
.approach-mech-cue {
  margin-top: 4px;
  font-size: 12px;
  color: #d1fae5;
  line-height: 1.38;
}

/* Module 1: Post-Round Heart Rate Summary & Hole Breakdown */
.debrief-hr-section {
  background: rgba(15, 23, 20, 0.85);
  border: 1px solid rgba(251, 113, 133, 0.25);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 10px;
}
.debrief-hr-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.debrief-hr-title {
  font-size: 12.5px;
  font-weight: 800;
  color: #fda4af;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.debrief-hr-kpis {
  display: inline-flex;
  gap: 12px;
  font-size: 12.5px;
  color: #e2e8f0;
}
.debrief-hr-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 64px;
  padding-top: 6px;
}
.debrief-hr-col {
  flex: 1;
  min-width: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.debrief-hr-bar {
  width: 100%;
  max-width: 18px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, #fb7185, #be123c);
}
.debrief-hr-bar.is-high {
  background: linear-gradient(180deg, #fbbf24, #d97706);
}
.debrief-hr-hlbl {
  font-size: 9.5px;
  color: #94a3b8;
}

/* Module 1: OLED Pure-Black Pocket Mode Overlay */
.pocket-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #000000;
  color: #9ca3af;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: calc(28px + env(safe-area-inset-top, 0px)) 24px calc(32px + env(safe-area-inset-bottom, 0px));
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.pocket-overlay.open {
  display: flex;
}
.pocket-top-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #374151;
  font-weight: 700;
}
.pocket-metrics {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  text-align: center;
}
.pocket-big-num {
  font-size: 64px;
  font-weight: 800;
  line-height: 1;
  color: #a7f3d0;
  opacity: 0.72;
  letter-spacing: -0.02em;
}
.pocket-bpm-num {
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
  color: #fda4af;
  opacity: 0.72;
}
.pocket-bpm-num.is-high {
  color: #fcd34d;
  opacity: 0.85;
}
.pocket-sub-lbl {
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #4b5563;
  font-weight: 700;
}
.pocket-cue-line {
  font-size: 14px;
  color: #6b7280;
  max-width: 300px;
  line-height: 1.4;
}
.pocket-unlock-wrap {
  width: 100%;
  max-width: 320px;
}
.pocket-unlock-track {
  position: relative;
  height: 54px;
  border-radius: 999px;
  background: #0d0d0d;
  border: 1px solid #1f2937;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.pocket-unlock-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #4b5563;
  pointer-events: none;
}
.pocket-unlock-slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0.9;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.pocket-unlock-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 52px;
  height: 46px;
  border-radius: 999px;
  background: #14532d;
  border: 1px solid #34d399;
}
.pocket-unlock-slider::-moz-range-thumb {
  width: 52px;
  height: 46px;
  border-radius: 999px;
  background: #14532d;
  border: 1px solid #34d399;
}
