:root {
  --forest: #163f35;
  --forest-2: #205447;
  --forest-3: #2e6a57;
  --lime: #d9f28a;
  --lime-strong: #c7eb62;
  --ink: #18312b;
  --muted: #71817b;
  --soft: #97a49f;
  --line: #e1e7df;
  --surface: #ffffff;
  --canvas: #f3f5f0;
  --warm: #f7f8f4;
  --orange: #c97941;
  --red: #bc5c57;
  --blue: #668ba5;
  --shadow: 0 8px 30px rgba(22, 63, 53, .055);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, [role="button"] { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid rgba(115, 155, 62, .35);
  outline-offset: 2px;
}
button:disabled { opacity: .45; cursor: not-allowed; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { letter-spacing: -.025em; }
svg { display: block; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon.sm { width: 16px; height: 16px; }
.icon.lg { width: 25px; height: 25px; }
.muted { color: var(--muted); }
.soft { color: var(--soft); }
.positive { color: #32765b !important; }
.negative { color: var(--red) !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: 236px;
  display: flex;
  flex-direction: column;
  padding: 30px 20px 22px;
  color: rgba(255, 255, 255, .72);
  background: var(--forest);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 10px;
  color: white;
}
.brand-mark {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  color: var(--forest);
  background: var(--lime);
  border-radius: 12px;
}
.brand-mark .icon { width: 24px; height: 24px; stroke-width: 1.9; }
.brand-name { font-size: 23px; font-weight: 760; letter-spacing: -.8px; }
.brand-beta { margin-left: auto; padding: 2px 6px; color: var(--lime); border: 1px solid rgba(217, 242, 138, .28); border-radius: 5px; font-size: 8px; font-weight: 800; letter-spacing: .7px; }
.sidebar-label { margin: 37px 13px 11px; color: rgba(255,255,255,.38); font-size: 10px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; }
.nav-list { display: grid; gap: 6px; }
.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 13px;
  color: rgba(255, 255, 255, .66);
  background: transparent;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  font-weight: 550;
  transition: background .18s, color .18s;
}
.nav-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-item.active { color: var(--forest); background: var(--lime); font-weight: 700; }
.nav-item .nav-badge { margin-left: auto; min-width: 22px; padding: 2px 6px; text-align: center; color: var(--forest); background: var(--lime); border-radius: 20px; font-size: 10px; font-weight: 800; }
.nav-item.active .nav-badge { background: rgba(22,63,53,.12); }
.sidebar-spacer { flex: 1; }
.side-round {
  margin: 22px 2px 16px;
  padding: 16px;
  color: white;
  background: rgba(255,255,255,.065);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 15px;
}
.side-round-top { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; color: var(--lime); font-size: 11px; font-weight: 700; }
.live-dot { width: 6px; height: 6px; background: var(--lime); border-radius: 50%; box-shadow: 0 0 0 4px rgba(217,242,138,.1); }
.side-round-name { margin-bottom: 3px; font-size: 13px; font-weight: 650; }
.side-round-meta { color: rgba(255,255,255,.5); font-size: 11px; }
.side-progress { height: 4px; margin-top: 13px; overflow: hidden; background: rgba(255,255,255,.12); border-radius: 5px; }
.side-progress > span { display: block; height: 100%; background: var(--lime); border-radius: 5px; }
.connection-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 11px;
  color: rgba(255,255,255,.6);
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  font-size: 11px;
}
.connection-button:hover { background: rgba(255,255,255,.05); }
.connection-button .connection-text { flex: 1; }
.connection-button strong { display: block; color: rgba(255,255,255,.85); font-size: 11px; font-weight: 600; }
.connection-button small { display: block; margin-top: 1px; color: rgba(255,255,255,.38); font-size: 9px; }
.connection-button.offline { color: #f1c699; }

.main-shell { min-height: 100vh; margin-left: 236px; }
.topbar {
  height: 82px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 34px;
  background: rgba(243,245,240,.92);
  border-bottom: 1px solid rgba(216,225,215,.65);
}
.mobile-brand { display: none; }
.course-crumb { display: flex; align-items: center; gap: 9px; min-width: 0; color: var(--muted); font-size: 12px; }
.course-crumb .icon { color: var(--forest-3); }
.course-crumb strong { overflow: hidden; color: var(--ink); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.topbar-spacer { flex: 1; }
.weather { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.weather .icon { color: #a47c39; }
.top-icon-button { position: relative; width: 38px; height: 38px; display: grid; place-items: center; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 11px; cursor: pointer; }
.top-icon-button:hover { color: var(--forest); background: white; border-color: var(--line); }
.top-sync-dot { position: absolute; top: 7px; right: 7px; width: 6px; height: 6px; background: #75a765; border: 1px solid var(--canvas); border-radius: 50%; }
.profile-button { display: flex; align-items: center; gap: 10px; padding: 4px 0 4px 6px; background: transparent; border: 0; cursor: pointer; text-align: left; }
.profile-button strong { display: block; font-size: 12px; font-weight: 700; }
.profile-button small { display: block; color: var(--muted); font-size: 10px; }
.avatar { width: 38px; height: 38px; display: inline-grid; flex: 0 0 auto; place-items: center; color: var(--forest); background: #dfe9d8; border-radius: 50%; font-size: 11px; font-weight: 750; }
.avatar.lime { background: var(--lime); }
.avatar.blue { color: #355b70; background: #d8e7ee; }
.avatar.peach { color: #865738; background: #f3dfd0; }
.avatar.lavender { color: #655579; background: #e5deee; }
.avatar.sm { width: 32px; height: 32px; font-size: 9px; }
.avatar.lg { width: 48px; height: 48px; font-size: 13px; }

.content { width: 100%; max-width: 1510px; margin: 0 auto; padding: 28px 34px 48px; }
.page-heading { display: flex; align-items: flex-end; gap: 20px; margin-bottom: 24px; }
.page-heading-copy { flex: 1; }
.eyebrow { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; color: var(--forest-3); font-size: 10px; font-weight: 750; letter-spacing: 1.25px; text-transform: uppercase; }
.page-heading h1 { font-size: clamp(25px, 2.4vw, 34px); font-weight: 730; line-height: 1.18; }
.page-heading p { margin-top: 7px; color: var(--muted); font-size: 13px; }
.heading-actions { display: flex; align-items: center; gap: 10px; }

.btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  text-decoration: none;
  transition: transform .12s, background .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { color: white; background: var(--forest); }
.btn-primary:hover { background: #0e342b; }
.btn-lime { color: var(--forest); background: var(--lime); }
.btn-lime:hover { background: var(--lime-strong); }
.btn-secondary { color: var(--ink); background: white; border-color: var(--line); }
.btn-secondary:hover { border-color: #bdcbbf; background: #fbfcfa; }
.btn-ghost { color: var(--forest-2); background: transparent; }
.btn-ghost:hover { background: rgba(22,63,53,.05); }
.btn-danger { color: var(--red); background: #fff7f6; border-color: #eed6d2; }
.btn-block { width: 100%; }
.btn-lg { min-height: 49px; padding: 13px 19px; font-size: 13px; }
.btn-sm { min-height: 34px; padding: 7px 11px; font-size: 11px; border-radius: 9px; }
.text-button { display: inline-flex; align-items: center; gap: 5px; padding: 0; color: var(--forest-3); background: none; border: 0; cursor: pointer; font-size: 11px; font-weight: 700; }
.text-button:hover { color: var(--forest); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; color: var(--forest-2); background: #e9efe5; border-radius: 20px; font-size: 10px; font-weight: 650; white-space: nowrap; }
.badge.lime { background: #ecf5d8; }
.badge.orange { color: #946039; background: #f8ebdf; }
.badge.white { color: rgba(255,255,255,.86); background: rgba(255,255,255,.12); }
.badge.outline { background: white; border: 1px solid var(--line); }
.demo-label { display: inline-flex; align-items: center; gap: 5px; color: #7a867c; font-size: 10px; }

.card { background: var(--surface); border: 1px solid rgba(218,226,216,.85); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-header { display: flex; align-items: center; gap: 12px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.card-header h2, .card-header h3 { flex: 1; font-size: 15px; font-weight: 700; }
.card-body { padding: 22px; }
.section-title { display: flex; align-items: center; gap: 12px; margin: 27px 0 13px; }
.section-title h2 { flex: 1; font-size: 17px; font-weight: 720; }
.section-title p { color: var(--muted); font-size: 11px; }

.round-overview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin-bottom: 17px; }
.overview-item { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 13px 16px; background: rgba(255,255,255,.66); border: 1px solid var(--line); border-radius: 13px; }
.overview-icon { width: 34px; height: 34px; display: grid; flex: 0 0 auto; place-items: center; color: var(--forest-2); background: #e9efe5; border-radius: 10px; }
.overview-icon .icon { width: 17px; height: 17px; }
.overview-item small { display: block; margin-bottom: 1px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .6px; }
.overview-item strong { display: block; overflow: hidden; font-size: 14px; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }
.overview-item strong em { margin-left: 3px; color: var(--muted); font-size: 10px; font-style: normal; font-weight: 500; }

.round-layout { display: grid; grid-template-columns: minmax(0, 1.72fr) minmax(290px, .8fr); gap: 17px; align-items: stretch; }
.map-card { min-width: 0; overflow: hidden; background: white; border: 1px solid rgba(218,226,216,.9); border-radius: var(--radius); box-shadow: var(--shadow); }
.map-header { display: flex; align-items: center; gap: 15px; min-height: 69px; padding: 13px 18px; }
.hole-arrow { width: 33px; height: 33px; display: grid; flex: 0 0 auto; place-items: center; color: var(--muted); background: var(--warm); border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.hole-arrow:hover { color: var(--forest); border-color: #b9c8ba; }
.hole-title { flex: 1; min-width: 0; }
.hole-title-line { display: flex; align-items: baseline; gap: 9px; }
.hole-title h2 { font-size: 20px; font-weight: 750; }
.hole-title .par-label { color: var(--muted); font-size: 11px; }
.hole-title p { margin-top: 2px; color: var(--muted); font-size: 10px; }
.map-header-actions { display: flex; align-items: center; gap: 8px; }
.tee-select { padding: 7px 26px 7px 10px; color: var(--forest-2); background: var(--warm); border: 1px solid var(--line); border-radius: 9px; cursor: pointer; font-size: 10px; font-weight: 650; }
.map-stage { position: relative; height: 424px; overflow: hidden; background: #b9cda6; }
.hole-svg { width: 100%; height: 100%; cursor: crosshair; touch-action: manipulation; }
.map-shade { position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 80px rgba(30,65,35,.08); }
.distance-card { position: absolute; top: 16px; right: 16px; width: 142px; padding: 13px 14px 10px; background: rgba(255,255,255,.94); border: 1px solid rgba(255,255,255,.7); border-radius: 14px; box-shadow: 0 5px 18px rgba(26,62,42,.12); backdrop-filter: blur(8px); }
.distance-card-title { margin-bottom: 7px; color: var(--muted); font-size: 8px; font-weight: 750; letter-spacing: .8px; text-transform: uppercase; }
.distance-row { display: flex; align-items: baseline; justify-content: space-between; padding: 3px 0; color: var(--muted); font-size: 10px; }
.distance-row strong { color: var(--ink); font-size: 15px; font-weight: 700; }
.distance-row strong small { margin-left: 2px; color: var(--muted); font-size: 8px; font-weight: 500; }
.distance-row.center { margin: 3px -5px; padding: 6px 5px; color: var(--forest); background: #edf3e6; border-radius: 7px; }
.distance-row.center strong { color: var(--forest); font-size: 22px; }
.map-demo { position: absolute; top: 16px; left: 16px; display: flex; align-items: center; gap: 5px; padding: 6px 9px; color: rgba(255,255,255,.85); background: rgba(22,63,53,.68); border-radius: 8px; font-size: 9px; backdrop-filter: blur(6px); }
.map-controls { position: absolute; left: 16px; bottom: 17px; display: flex; gap: 7px; }
.map-control { width: 35px; height: 35px; display: grid; place-items: center; color: var(--forest); background: rgba(255,255,255,.94); border: 0; border-radius: 9px; box-shadow: 0 3px 10px rgba(30,65,35,.12); cursor: pointer; }
.map-control:hover { background: var(--lime); }
.map-control .icon { width: 17px; height: 17px; }
.map-scale { position: absolute; right: 18px; bottom: 19px; display: flex; align-items: center; gap: 6px; color: rgba(22,63,53,.65); font-size: 8px; }
.map-scale-line { width: 39px; height: 5px; border: solid rgba(22,63,53,.55); border-width: 0 1px 1px; }
.target-banner { position: absolute; right: 16px; bottom: 53px; left: 16px; display: flex; align-items: center; gap: 12px; padding: 10px 12px; color: white; background: rgba(22,63,53,.93); border-radius: 11px; box-shadow: 0 5px 20px rgba(22,63,53,.2); font-size: 10px; }
.target-banner strong { font-size: 12px; }
.target-banner .target-values { flex: 1; display: flex; gap: 15px; }
.target-banner button { color: white; background: transparent; border: 0; cursor: pointer; }
.map-footer { display: flex; align-items: center; gap: 13px; min-height: 46px; padding: 10px 18px; color: var(--muted); font-size: 9px; }
.map-footer > span { display: flex; align-items: center; gap: 5px; }
.map-footer .map-tip { flex: 1; justify-content: flex-end; text-align: right; }
.legend-dot { width: 7px; height: 7px; background: var(--forest); border-radius: 50%; }
.legend-dot.target { background: #c48146; }
.legend-dot.ball { background: white; border: 2px solid var(--forest); }

.round-side { display: flex; flex-direction: column; gap: 13px; min-width: 0; }
.score-panel { padding: 20px; }
.score-panel-top { display: flex; align-items: center; gap: 8px; }
.score-panel-top h3 { flex: 1; font-size: 14px; }
.live-badge { display: flex; align-items: center; gap: 5px; color: #4d7c5b; font-size: 9px; font-weight: 650; }
.live-badge::before { content: ''; width: 5px; height: 5px; background: #6a9c68; border-radius: 50%; }
.score-main { display: flex; align-items: center; justify-content: center; gap: 24px; padding: 19px 0 15px; }
.score-step { width: 43px; height: 43px; display: grid; place-items: center; color: var(--forest); background: var(--warm); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
.score-step:hover { background: #eaf0e3; border-color: #b8c7b4; }
.score-step.minus { color: var(--muted); }
.score-value { min-width: 77px; text-align: center; }
.score-value strong { display: block; font-size: 49px; font-weight: 650; line-height: 1; letter-spacing: -2px; }
.score-value span { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .8px; }
.score-relative { padding: 10px 12px; text-align: center; color: var(--muted); background: var(--warm); border-radius: 10px; font-size: 10px; }
.score-relative strong { margin-left: 5px; color: var(--ink); font-size: 12px; }
.score-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 14px 0; }
.score-detail { padding: 9px 4px; text-align: center; border: 1px solid var(--line); border-radius: 9px; }
.score-detail strong { display: block; font-size: 14px; }
.score-detail span { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; }
.score-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
.shot-button { position: relative; overflow: hidden; }
.shot-button::after { content: ''; position: absolute; width: 45px; height: 45px; right: -15px; top: -20px; background: rgba(255,255,255,.15); border-radius: 50%; }
.ghost-panel { padding: 16px 18px; }
.ghost-top { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.ghost-top .icon { color: var(--forest-3); }
.ghost-top h3 { flex: 1; font-size: 12px; }
.ghost-top select { max-width: 112px; padding: 4px 5px; color: var(--muted); background: transparent; border: 0; font-size: 9px; cursor: pointer; }
.ghost-content { display: flex; align-items: center; gap: 13px; }
.ghost-score { min-width: 55px; padding-right: 13px; border-right: 1px solid var(--line); }
.ghost-score strong { display: block; font-size: 24px; line-height: 1.1; }
.ghost-score span { color: var(--muted); font-size: 8px; }
.ghost-copy strong { display: block; margin-bottom: 2px; font-size: 11px; }
.ghost-copy p { color: var(--muted); font-size: 9px; }
.next-hole { display: flex; align-items: center; gap: 11px; padding: 14px 17px; color: rgba(255,255,255,.7); background: var(--forest); border: 0; border-radius: 14px; cursor: pointer; text-align: left; }
.next-hole .next-icon { width: 34px; height: 34px; display: grid; place-items: center; color: var(--forest); background: var(--lime); border-radius: 10px; }
.next-hole > span:nth-child(2) { flex: 1; }
.next-hole small { display: block; margin-bottom: 2px; color: rgba(255,255,255,.5); font-size: 8px; text-transform: uppercase; letter-spacing: .8px; }
.next-hole strong { display: block; color: white; font-size: 11px; font-weight: 600; }

.mini-card { margin-top: 17px; overflow: hidden; }
.mini-card-header { display: flex; align-items: center; gap: 12px; padding: 17px 20px 12px; }
.mini-card-header h2 { flex: 1; font-size: 14px; }
.hole-strip { display: grid; grid-template-columns: repeat(10, minmax(52px, 1fr)); gap: 0; padding: 0 12px 15px; overflow-x: auto; }
.hole-strip-cell { min-width: 52px; padding: 8px 5px; text-align: center; background: transparent; border: 0; border-right: 1px solid var(--line); cursor: pointer; }
.hole-strip-cell:nth-child(9) { border-right: 0; }
.hole-strip-cell.total { min-width: 66px; border-right: 0; }
.hole-strip-cell:hover:not(.total), .hole-strip-cell.current { background: #f1f5eb; border-radius: 9px; }
.hole-strip-cell.current { box-shadow: inset 0 0 0 1px #c5d5b7; }
.hole-strip-cell small { display: block; margin-bottom: 5px; color: var(--muted); font-size: 8px; }
.hole-strip-cell strong { display: inline-grid; min-width: 26px; height: 26px; place-items: center; font-size: 12px; border-radius: 50%; }
.hole-strip-cell strong.under { color: white; background: var(--forest-3); }
.hole-strip-cell strong.over { color: #875743; background: #f5e4d8; }
.hole-strip-cell em { display: block; margin-top: 3px; color: var(--soft); font-size: 8px; font-style: normal; }
.shots-list { display: grid; gap: 9px; }
.shot-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.shot-row:last-child { border-bottom: 0; }
.shot-number { width: 30px; height: 30px; display: grid; place-items: center; color: var(--forest); background: #edf2e8; border-radius: 9px; font-size: 10px; font-weight: 700; }
.shot-copy { flex: 1; }
.shot-copy strong { display: block; font-size: 11px; }
.shot-copy small { color: var(--muted); font-size: 9px; }
.shot-distance { font-size: 13px; font-weight: 700; }
.shot-distance small { margin-left: 2px; color: var(--muted); font-size: 9px; font-weight: 500; }
.empty-state { padding: 26px 18px; text-align: center; color: var(--muted); }
.empty-state .icon { width: 30px; height: 30px; margin: 0 auto 10px; color: #9bac9b; }
.empty-state strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 13px; }
.empty-state p { max-width: 310px; margin: auto; font-size: 11px; }

.segmented { display: inline-flex; gap: 3px; padding: 4px; background: #e9ede6; border-radius: 11px; }
.segmented button { min-height: 33px; padding: 7px 13px; color: var(--muted); background: transparent; border: 0; border-radius: 8px; cursor: pointer; font-size: 11px; font-weight: 600; }
.segmented button.active { color: var(--forest); background: white; box-shadow: 0 2px 6px rgba(22,63,53,.08); }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 18px; }
.summary-card { position: relative; padding: 18px 19px; overflow: hidden; }
.summary-card-label { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; color: var(--muted); font-size: 10px; }
.summary-card-label .icon { width: 15px; height: 15px; }
.summary-card-value { display: flex; align-items: baseline; gap: 7px; }
.summary-card-value strong { font-size: 28px; line-height: 1; letter-spacing: -1px; }
.summary-card-value span { color: var(--muted); font-size: 10px; }
.summary-card-foot { margin-top: 8px; color: var(--muted); font-size: 9px; }
.summary-card.accent { color: white; background: var(--forest); border-color: var(--forest); }
.summary-card.accent .summary-card-label, .summary-card.accent .summary-card-value span, .summary-card.accent .summary-card-foot { color: rgba(255,255,255,.58); }
.summary-card.accent::after { content: ''; position: absolute; right: -24px; bottom: -42px; width: 110px; height: 110px; border: 20px solid rgba(217,242,138,.08); border-radius: 50%; }
.scorecard-wrap { overflow: hidden; }
.scorecard-toolbar { display: flex; align-items: center; gap: 12px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.scorecard-toolbar h2 { flex: 1; font-size: 15px; }
.scorecard-note { display: flex; align-items: center; gap: 7px; padding: 12px 20px; color: var(--muted); background: #fafbf8; border-bottom: 1px solid var(--line); font-size: 10px; }
.table-scroll { overflow-x: auto; }
.score-table { width: 100%; min-width: 790px; border-collapse: collapse; text-align: center; }
.score-table th, .score-table td { height: 44px; padding: 7px 8px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 11px; }
.score-table th:last-child, .score-table td:last-child { border-right: 0; }
.score-table tr:last-child td { border-bottom: 0; }
.score-table th { color: var(--muted); background: #fafbf8; font-size: 9px; font-weight: 650; }
.score-table th:first-child, .score-table td:first-child { width: 112px; text-align: left; padding-left: 20px; font-weight: 650; }
.score-table th:nth-last-child(-n+2), .score-table td:nth-last-child(-n+2) { background: #f6f8f3; font-weight: 700; }
.score-table .hole-head.current { color: var(--forest); background: #eaf2df; }
.score-cell-button { width: 28px; height: 28px; display: inline-grid; place-items: center; background: transparent; border: 0; border-radius: 50%; cursor: pointer; font-size: 11px; font-weight: 650; }
.score-cell-button:hover { box-shadow: 0 0 0 1px #aabcaa; }
.score-cell-button.under { color: white; background: var(--forest-3); }
.score-cell-button.over { color: #875743; background: #f5e4d8; }
.score-cell-button.current { box-shadow: 0 0 0 2px #b4cba4; }
.scorecard-bottom { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: #fafbf8; border-top: 1px solid var(--line); }
.scorecard-bottom > div { flex: 1; color: var(--muted); font-size: 9px; }
.attest-status { display: flex; align-items: center; gap: 6px; color: var(--forest-3); font-size: 10px; font-weight: 650; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-card { padding: 18px; }
.stat-card-top { display: flex; align-items: center; margin-bottom: 13px; }
.stat-card-top h3 { flex: 1; font-size: 12px; }
.stat-card-top strong { font-size: 20px; }
.progress-track { height: 6px; overflow: hidden; background: #e8ede4; border-radius: 8px; }
.progress-track span { display: block; height: 100%; background: var(--forest-3); border-radius: 8px; }
.stat-card p { margin-top: 8px; color: var(--muted); font-size: 9px; }

.history-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(270px, .7fr); gap: 17px; }
.performance-card { padding: 22px; }
.performance-top { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 17px; }
.performance-top h2 { flex: 1; font-size: 15px; }
.performance-top p { margin-top: 4px; color: var(--muted); font-size: 10px; }
.trend-badge { display: flex; align-items: center; gap: 4px; padding: 5px 8px; color: #397151; background: #e7f1df; border-radius: 8px; font-size: 9px; font-weight: 700; }
.chart-wrap { position: relative; height: 215px; }
.performance-chart { width: 100%; height: 100%; overflow: visible; }
.chart-legend { display: flex; gap: 20px; margin-top: 12px; color: var(--muted); font-size: 9px; }
.chart-legend span { display: flex; align-items: center; gap: 6px; }
.legend-line { width: 16px; height: 2px; background: var(--forest-3); }
.legend-line.dashed { height: 0; background: none; border-top: 2px dashed #a7b3a6; }
.handicap-card { padding: 22px; color: white; background: var(--forest); border-color: var(--forest); }
.handicap-card .eyebrow { color: var(--lime); }
.handicap-value { display: flex; align-items: baseline; gap: 8px; margin: 15px 0 5px; }
.handicap-value strong { font-size: 48px; font-weight: 600; line-height: 1; letter-spacing: -2px; }
.handicap-value span { color: rgba(255,255,255,.5); font-size: 11px; }
.handicap-card > p { color: rgba(255,255,255,.55); font-size: 10px; }
.handicap-details { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.13); }
.handicap-details small { display: block; color: rgba(255,255,255,.45); font-size: 8px; }
.handicap-details strong { display: block; margin-top: 3px; font-size: 15px; }
.round-list { display: grid; gap: 10px; }
.round-item { display: flex; align-items: center; gap: 15px; width: 100%; padding: 16px 18px; text-align: left; cursor: pointer; }
.round-item:hover, .round-item.selected { border-color: #a9bda5; }
.round-item.selected { background: #fbfdf8; box-shadow: inset 3px 0 var(--forest-3); }
.round-date { width: 46px; height: 46px; display: grid; flex: 0 0 auto; place-items: center; align-content: center; color: var(--forest); background: #eaf0e4; border-radius: 12px; }
.round-date strong { font-size: 17px; line-height: 1; }
.round-date small { margin-top: 3px; font-size: 8px; text-transform: uppercase; }
.round-item-copy { flex: 1; min-width: 0; }
.round-item-copy strong { display: block; font-size: 12px; }
.round-item-copy small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.round-item-stats { display: flex; gap: 20px; }
.round-item-stat { text-align: center; }
.round-item-stat strong { display: block; font-size: 17px; }
.round-item-stat small { display: block; color: var(--muted); font-size: 8px; }
.round-item > .icon { color: var(--soft); }
.comparison-card { margin-top: 17px; }
.comparison-head { display: flex; align-items: center; gap: 12px; padding: 19px 22px; border-bottom: 1px solid var(--line); }
.comparison-head h2 { flex: 1; font-size: 15px; }
.comparison-head p { color: var(--muted); font-size: 10px; }
.comparison-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.comparison-item { padding: 20px 22px; border-right: 1px solid var(--line); }
.comparison-item:last-child { border-right: 0; }
.comparison-item small { display: block; margin-bottom: 8px; color: var(--muted); font-size: 9px; }
.comparison-values { display: flex; align-items: baseline; gap: 9px; }
.comparison-values strong { font-size: 23px; }
.comparison-values span { color: var(--muted); font-size: 11px; }
.comparison-delta { margin-top: 5px; font-size: 9px; }

.flight-hero { display: flex; align-items: center; gap: 22px; padding: 23px; margin-bottom: 17px; color: white; background: var(--forest); border: 0; }
.flight-hero-copy { flex: 1; }
.flight-hero .eyebrow { color: var(--lime); }
.flight-hero h2 { font-size: 22px; }
.flight-hero p { margin-top: 6px; color: rgba(255,255,255,.55); font-size: 11px; }
.flight-hero-meta { display: flex; gap: 30px; }
.flight-hero-meta small { display: block; color: rgba(255,255,255,.45); font-size: 8px; text-transform: uppercase; letter-spacing: .7px; }
.flight-hero-meta strong { display: block; margin-top: 3px; font-size: 18px; }
.flight-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .65fr); gap: 17px; }
.player-list { padding: 6px 20px; }
.player-row { display: flex; align-items: center; gap: 13px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.player-row:last-child { border-bottom: 0; }
.player-copy { flex: 1; min-width: 0; }
.player-copy strong { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.player-copy small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.marker-badge { padding: 2px 5px; color: var(--forest-3); background: #e9f0e4; border-radius: 4px; font-size: 7px; font-weight: 700; text-transform: uppercase; }
.player-thru { min-width: 45px; text-align: center; color: var(--muted); font-size: 9px; }
.player-thru strong { display: block; color: var(--ink); font-size: 12px; }
.player-score { min-width: 44px; text-align: right; font-size: 20px; font-weight: 700; }
.flight-side-card { padding: 20px; }
.flight-side-card h3 { margin-bottom: 14px; font-size: 13px; }
.flight-info-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; color: var(--muted); font-size: 10px; }
.flight-info-row .icon { color: var(--forest-3); }
.flight-info-row strong { margin-left: auto; color: var(--ink); font-weight: 650; }
.flight-side-card .btn { margin-top: 15px; }
.open-flights-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.open-flight { padding: 20px; }
.open-flight-top { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.open-flight-date { flex: 1; }
.open-flight-date strong { display: block; font-size: 11px; }
.open-flight-date small { color: var(--muted); font-size: 9px; }
.open-flight-host { display: flex; align-items: center; gap: 9px; padding: 11px 0; border-top: 1px solid var(--line); }
.open-flight-host > span:nth-child(2) { flex: 1; font-size: 10px; }
.open-flight-tags { display: flex; gap: 6px; margin-bottom: 15px; flex-wrap: wrap; }

.tournament-banner { position: relative; display: flex; align-items: center; gap: 22px; padding: 25px 27px; overflow: hidden; color: white; background: var(--forest); border-radius: var(--radius); }
.tournament-banner::after { content: ''; position: absolute; right: -55px; top: -95px; width: 280px; height: 280px; border: 45px solid rgba(217,242,138,.06); border-radius: 50%; }
.tournament-emblem { width: 62px; height: 62px; display: grid; flex: 0 0 auto; place-items: center; color: var(--forest); background: var(--lime); border-radius: 18px; transform: rotate(-4deg); }
.tournament-emblem .icon { width: 31px; height: 31px; }
.tournament-banner-copy { flex: 1; position: relative; z-index: 1; }
.tournament-banner-copy .eyebrow { color: var(--lime); }
.tournament-banner-copy h2 { font-size: 24px; }
.tournament-banner-copy p { margin-top: 6px; color: rgba(255,255,255,.56); font-size: 10px; }
.tournament-banner-meta { position: relative; z-index: 1; display: flex; gap: 26px; padding-right: 20px; }
.tournament-banner-meta small { display: block; color: rgba(255,255,255,.45); font-size: 8px; }
.tournament-banner-meta strong { display: block; margin-top: 3px; font-size: 17px; }
.tournament-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(250px, .55fr); gap: 17px; margin-top: 17px; }
.leaderboard-card { overflow: hidden; }
.leaderboard-toolbar { display: flex; align-items: center; gap: 10px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.leaderboard-toolbar h2 { flex: 1; font-size: 15px; }
.leaderboard-head, .leaderboard-row { display: grid; grid-template-columns: 34px minmax(145px, 1.5fr) 52px 58px 58px 48px 67px; align-items: center; gap: 6px; padding: 0 19px; }
.leaderboard-head { height: 37px; color: var(--muted); background: #fafbf8; border-bottom: 1px solid var(--line); font-size: 8px; text-transform: uppercase; letter-spacing: .4px; }
.leaderboard-head span:nth-child(n+3) { text-align: center; }
.leaderboard-row { min-height: 59px; border-bottom: 1px solid var(--line); }
.leaderboard-row:last-child { border-bottom: 0; }
.leaderboard-row.me { background: #f1f6e9; box-shadow: inset 3px 0 var(--forest-3); }
.rank { color: var(--muted); font-size: 12px; font-weight: 650; text-align: center; }
.leaderboard-player { display: flex; align-items: center; gap: 9px; min-width: 0; }
.leaderboard-player > span:last-child { min-width: 0; }
.leaderboard-player strong { display: block; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.leaderboard-player small { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; }
.leaderboard-stat { text-align: center; font-size: 12px; font-weight: 650; }
.leaderboard-stat small { display: block; color: var(--muted); font-size: 8px; font-weight: 400; }
.updated-time { display: flex; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 8px; }
.live-update { display: flex; align-items: center; gap: 6px; padding: 11px 19px; color: var(--muted); background: #fafbf8; border-top: 1px solid var(--line); font-size: 8px; }
.my-position { padding: 21px; }
.my-position h3 { margin-bottom: 17px; font-size: 13px; }
.my-rank { display: flex; align-items: center; gap: 15px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.my-rank-number { font-size: 44px; font-weight: 650; line-height: 1; letter-spacing: -2px; }
.my-rank span { color: var(--muted); font-size: 10px; }
.my-position-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 17px 0; }
.my-position-stats small { display: block; color: var(--muted); font-size: 8px; }
.my-position-stats strong { display: block; margin-top: 3px; font-size: 17px; }
.offline-note { display: flex; gap: 9px; margin-top: 14px; padding: 12px; color: #7a664d; background: #f8f2e8; border-radius: 10px; font-size: 9px; }
.offline-note .icon { width: 16px; height: 16px; flex: 0 0 auto; }
.organizer-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.organizer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin: 18px 0; }
.organizer-stat { padding: 18px; }
.organizer-stat small { color: var(--muted); font-size: 9px; }
.organizer-stat strong { display: block; margin-top: 7px; font-size: 25px; }
.organizer-stat span { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.custom-tournaments { display: grid; gap: 10px; margin-top: 16px; }
.custom-tournament { display: flex; align-items: center; gap: 13px; padding: 16px 18px; }
.custom-tournament > div { flex: 1; }
.custom-tournament strong { display: block; font-size: 12px; }
.custom-tournament small { color: var(--muted); font-size: 9px; }

.bottom-nav { display: none; }
.toast-region { position: fixed; right: 24px; bottom: 24px; z-index: 100; display: grid; gap: 9px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; max-width: 370px; padding: 13px 16px; color: white; background: #173c33; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; box-shadow: 0 12px 40px rgba(16,45,37,.25); font-size: 11px; animation: toast-in .2s ease-out; }
.toast .icon { color: var(--lime); }
.toast.error .icon { color: #f1b4a9; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.dialog { width: min(500px, calc(100vw - 30px)); max-height: calc(100vh - 40px); padding: 0; color: var(--ink); background: white; border: 0; border-radius: 20px; box-shadow: 0 30px 90px rgba(11,40,32,.3); }
.dialog::backdrop { background: rgba(11,35,29,.55); backdrop-filter: blur(3px); }
.dialog-header { display: flex; align-items: flex-start; gap: 14px; padding: 22px 23px 17px; border-bottom: 1px solid var(--line); }
.dialog-header-copy { flex: 1; }
.dialog-header h2 { font-size: 19px; }
.dialog-header p { margin-top: 4px; color: var(--muted); font-size: 10px; }
.dialog-close { width: 31px; height: 31px; display: grid; place-items: center; color: var(--muted); background: var(--warm); border: 0; border-radius: 9px; cursor: pointer; }
.dialog-body { padding: 21px 23px; overflow-y: auto; }
.dialog-footer { display: flex; justify-content: flex-end; gap: 9px; padding: 16px 23px 21px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { display: grid; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { color: var(--muted); font-size: 10px; font-weight: 600; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 43px; padding: 10px 12px; color: var(--ink); background: #fafbf8; border: 1px solid var(--line); border-radius: 10px; }
.form-field textarea { min-height: 75px; resize: vertical; }
.form-hint { color: var(--muted); font-size: 9px; }
.club-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.club-option { padding: 12px 7px; text-align: center; background: #fafbf8; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.club-option:hover, .club-option.selected { background: #eff5e5; border-color: #9eb78f; }
.club-option strong { display: block; font-size: 10px; }
.club-option small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; }
.invite-link { display: flex; align-items: center; gap: 8px; margin: 14px 0; padding: 7px 7px 7px 12px; background: var(--warm); border: 1px solid var(--line); border-radius: 10px; }
.invite-link code { flex: 1; overflow: hidden; color: var(--forest-2); font-family: inherit; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.qr-placeholder { width: 128px; height: 128px; display: grid; place-items: center; margin: 5px auto 18px; color: var(--forest); background: repeating-conic-gradient(var(--forest) 0% 25%, #fff 0% 50%) 50% / 18px 18px; border: 10px solid white; box-shadow: 0 0 0 1px var(--line); }
.qr-placeholder::after { content: 'GN'; width: 42px; height: 42px; display: grid; place-items: center; color: var(--forest); background: var(--lime); border: 5px solid white; font-weight: 800; }
.offline-package { display: flex; align-items: center; gap: 13px; padding: 14px; background: #f3f7ed; border: 1px solid #dce8d1; border-radius: 12px; }
.offline-package .package-icon { width: 40px; height: 40px; display: grid; place-items: center; color: var(--forest); background: var(--lime); border-radius: 11px; }
.offline-package > div:nth-child(2) { flex: 1; }
.offline-package strong { display: block; font-size: 11px; }
.offline-package small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; }
.offline-check { color: var(--forest-3); }
.offline-event-list { margin-top: 17px; }
.offline-event-list h3 { margin-bottom: 9px; font-size: 12px; }
.offline-event { display: flex; align-items: center; gap: 9px; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.offline-event strong { flex: 1; color: var(--ink); font-size: 10px; font-weight: 600; }
.profile-summary { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
.profile-summary h3 { font-size: 16px; }
.profile-summary p { margin-top: 3px; color: var(--muted); font-size: 10px; }
.profile-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.profile-metric { padding: 13px 7px; text-align: center; background: var(--warm); border-radius: 10px; }
.profile-metric strong { display: block; font-size: 18px; }
.profile-metric small { color: var(--muted); font-size: 8px; }
.round-complete { text-align: center; }
.complete-icon { width: 68px; height: 68px; display: grid; place-items: center; margin: 0 auto 15px; color: var(--forest); background: var(--lime); border-radius: 50%; }
.complete-icon .icon { width: 32px; height: 32px; }
.round-complete h3 { font-size: 22px; }
.round-complete > p { margin-top: 6px; color: var(--muted); font-size: 11px; }
.complete-score { display: flex; justify-content: center; gap: 30px; margin: 24px 0; }
.complete-score strong { display: block; font-size: 30px; }
.complete-score small { display: block; color: var(--muted); font-size: 9px; }

@media (min-width: 1450px) {
  .map-stage { height: 465px; }
  .round-layout { grid-template-columns: minmax(0, 1.8fr) minmax(320px, .72fr); }
}

@media (max-width: 1150px) {
  .sidebar { width: 205px; padding-inline: 14px; }
  .main-shell { margin-left: 205px; }
  .content, .topbar { padding-left: 24px; padding-right: 24px; }
  .round-layout { grid-template-columns: minmax(0, 1.4fr) minmax(270px, .8fr); }
  .round-overview { grid-template-columns: repeat(2, 1fr); }
  .map-stage { height: 405px; }
  .score-main { gap: 17px; }
  .history-layout, .flight-grid, .tournament-layout { grid-template-columns: 1fr; }
  .handicap-card { display: grid; grid-template-columns: 1fr 1fr; column-gap: 25px; }
  .handicap-card .eyebrow, .handicap-card > p { grid-column: 1; }
  .handicap-value { grid-column: 1; margin: 7px 0; }
  .handicap-details { grid-column: 2; grid-row: 1 / 4; margin: 0; padding: 0 0 0 20px; border-top: 0; border-left: 1px solid rgba(255,255,255,.13); align-content: center; }
  .leaderboard-head, .leaderboard-row { grid-template-columns: 32px minmax(135px, 1.5fr) 50px 55px 55px 45px 62px; }
  .tournament-banner-meta { gap: 16px; }
}

@media (max-width: 900px) {
  .sidebar { width: 78px; padding: 26px 12px 18px; }
  .main-shell { margin-left: 78px; }
  .brand { justify-content: center; padding: 0; }
  .brand-name, .brand-beta, .sidebar-label, .nav-item span:not(.nav-badge), .side-round, .connection-text { display: none; }
  .nav-list { margin-top: 38px; }
  .nav-item { justify-content: center; padding: 13px; }
  .nav-item .icon { width: 22px; height: 22px; }
  .nav-item .nav-badge { position: absolute; margin: -23px 0 0 25px; min-width: 16px; padding: 1px 4px; font-size: 8px; }
  .connection-button { justify-content: center; padding: 12px; }
  .round-layout { grid-template-columns: 1fr; }
  .round-side { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .score-panel { grid-row: span 2; }
  .next-hole { grid-column: 2; }
  .map-stage { height: 420px; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .flight-hero-meta { gap: 18px; }
  .tournament-banner { flex-wrap: wrap; }
  .tournament-banner-meta { width: 100%; padding-left: 84px; }
  .open-flights-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  body { background: #f4f6f1; }
  .sidebar { display: none; }
  .main-shell { margin-left: 0; }
  .topbar { height: 64px; padding: 0 17px; background: var(--forest); border: 0; }
  .mobile-brand { display: flex; align-items: center; gap: 8px; color: white; }
  .mobile-brand .brand-mark { width: 31px; height: 31px; border-radius: 9px; }
  .mobile-brand .brand-mark .icon { width: 20px; height: 20px; }
  .mobile-brand strong { font-size: 18px; letter-spacing: -.5px; }
  .course-crumb, .weather, .profile-button > span:not(.avatar), .profile-button > .icon { display: none; }
  .top-icon-button { color: rgba(255,255,255,.75); }
  .top-icon-button:hover { color: white; background: rgba(255,255,255,.08); border-color: transparent; }
  .top-sync-dot { border-color: var(--forest); }
  .profile-button { padding: 0; }
  .profile-button .avatar { width: 33px; height: 33px; color: var(--forest); background: var(--lime); }
  .content { padding: 20px 14px 96px; }
  .page-heading { align-items: flex-start; margin-bottom: 18px; }
  .page-heading h1 { font-size: 25px; }
  .page-heading p { max-width: 290px; font-size: 11px; }
  .eyebrow { font-size: 8px; }
  .heading-actions .btn .button-label-mobile-hide { display: none; }
  .heading-actions .btn { width: 40px; min-height: 40px; padding: 9px; }
  .round-overview { grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 12px; }
  .overview-item { gap: 9px; padding: 10px 11px; }
  .overview-icon { width: 29px; height: 29px; }
  .overview-item small { font-size: 7px; }
  .overview-item strong { font-size: 12px; }
  .map-card, .card { border-radius: 16px; }
  .map-header { min-height: 62px; padding: 11px 12px; gap: 9px; }
  .hole-arrow { width: 30px; height: 30px; }
  .hole-title h2 { font-size: 17px; }
  .hole-title-line { gap: 6px; }
  .hole-title .par-label { font-size: 9px; }
  .hole-title p { font-size: 8px; }
  .map-header-actions .badge { display: none; }
  .tee-select { max-width: 82px; padding: 6px; font-size: 8px; }
  .map-stage { height: 355px; }
  .distance-card { top: 12px; right: 12px; width: 124px; padding: 10px 11px 8px; }
  .distance-row { font-size: 9px; }
  .distance-row strong { font-size: 13px; }
  .distance-row.center strong { font-size: 19px; }
  .map-demo { top: 12px; left: 12px; font-size: 8px; }
  .map-controls { left: 12px; bottom: 13px; }
  .map-control { width: 32px; height: 32px; }
  .map-scale { right: 13px; bottom: 15px; }
  .map-footer { padding: 9px 12px; gap: 9px; }
  .map-footer .map-tip { display: none; }
  .target-banner { right: 12px; bottom: 51px; left: 12px; }
  .target-banner .target-values { gap: 9px; }
  .round-side { display: flex; }
  .score-panel { padding: 17px; }
  .score-main { padding: 15px 0 13px; }
  .score-value strong { font-size: 44px; }
  .score-actions { grid-template-columns: 1fr 1.5fr; }
  .ghost-panel { padding: 15px 17px; }
  .next-hole { width: 100%; }
  .mini-card-header { padding: 15px 15px 10px; }
  .hole-strip { grid-template-columns: repeat(10, 53px); padding-inline: 9px; }
  .section-title { margin-top: 23px; }
  .section-title h2 { font-size: 15px; }
  .summary-grid { gap: 9px; }
  .summary-card { padding: 15px; }
  .summary-card-value strong { font-size: 25px; }
  .summary-card-label { font-size: 8px; }
  .summary-card-foot { font-size: 8px; }
  .scorecard-toolbar { flex-wrap: wrap; padding: 14px; }
  .scorecard-toolbar h2 { width: 100%; flex: auto; }
  .scorecard-note { padding: 10px 14px; }
  .scorecard-bottom { flex-wrap: wrap; padding: 14px; }
  .scorecard-bottom > div { width: 100%; flex: auto; }
  .stat-grid { grid-template-columns: 1fr; }
  .history-layout { gap: 12px; }
  .performance-card { padding: 17px; }
  .chart-wrap { height: 180px; }
  .handicap-card { display: block; padding: 19px; }
  .handicap-details { margin-top: 18px; padding: 16px 0 0; border-top: 1px solid rgba(255,255,255,.13); border-left: 0; }
  .round-item { gap: 10px; padding: 13px; }
  .round-item-stats { gap: 11px; }
  .round-item-stat:nth-child(n+2) { display: none; }
  .comparison-head { align-items: flex-start; flex-wrap: wrap; padding: 16px; }
  .comparison-grid { grid-template-columns: repeat(2, 1fr); }
  .comparison-item { padding: 16px; border-bottom: 1px solid var(--line); }
  .comparison-item:nth-child(2) { border-right: 0; }
  .comparison-item:nth-child(n+3) { border-bottom: 0; }
  .flight-hero { align-items: flex-start; flex-wrap: wrap; gap: 16px; padding: 19px; }
  .flight-hero h2 { font-size: 19px; }
  .flight-hero-meta { width: 100%; justify-content: space-between; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); }
  .flight-hero .btn { position: absolute; right: 30px; width: 38px; min-height: 38px; padding: 8px; }
  .flight-hero .btn span { display: none; }
  .flight-grid { gap: 12px; }
  .player-list { padding-inline: 15px; }
  .open-flight { padding: 16px; }
  .tournament-banner { gap: 14px; padding: 20px; }
  .tournament-emblem { width: 49px; height: 49px; border-radius: 14px; }
  .tournament-emblem .icon { width: 25px; height: 25px; }
  .tournament-banner-copy h2 { font-size: 20px; }
  .tournament-banner-meta { padding-left: 0; justify-content: space-between; }
  .leaderboard-toolbar { flex-wrap: wrap; padding: 14px; }
  .leaderboard-toolbar h2 { width: 100%; flex: auto; }
  .leaderboard-head, .leaderboard-row { grid-template-columns: 27px minmax(115px, 1.5fr) 42px 49px 49px 40px; gap: 4px; padding: 0 11px; }
  .leaderboard-head span:last-child, .leaderboard-row > span:last-child { display: none; }
  .leaderboard-player .avatar { width: 29px; height: 29px; }
  .leaderboard-player strong { font-size: 9px; }
  .leaderboard-row { min-height: 55px; }
  .organizer-grid { grid-template-columns: 1fr 1fr; }
  .organizer-stat:last-child { grid-column: 1 / -1; }
  .bottom-nav { position: fixed; inset: auto 0 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr); padding: 7px 5px calc(7px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line); box-shadow: 0 -5px 22px rgba(22,63,53,.05); backdrop-filter: blur(15px); }
  .bottom-nav-item { display: grid; place-items: center; gap: 3px; padding: 4px 0; color: #87958e; background: transparent; border: 0; cursor: pointer; font-size: 8px; }
  .bottom-nav-item .icon { width: 20px; height: 20px; }
  .bottom-nav-item.active { color: var(--forest); font-weight: 700; }
  .bottom-nav-item.active .icon { stroke-width: 2.3; }
  .toast-region { right: 13px; bottom: 85px; left: 13px; }
  .toast { max-width: none; }
  .dialog { max-height: calc(100vh - 24px); border-radius: 17px; }
  .dialog-header { padding: 19px 18px 15px; }
  .dialog-body { padding: 18px; }
  .dialog-footer { padding: 13px 18px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .club-grid { grid-template-columns: repeat(3, 1fr); }
}

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

.hole-artwork {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: crosshair;
  background: radial-gradient(circle at 50% 42%, #f4f5ed 0, #e5ebdc 68%, #d7e2ce 100%);
  touch-action: manipulation;
}
.hole-artwork-transform { position: absolute; inset: 0; transform-origin: center; transition: transform .2s ease; }
.hole-artwork-image { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; filter: saturate(.82) contrast(1.03); user-select: none; }
.hole-vector-layer, .hole-shot-lines, .hole-target-line { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hole-shot-lines polyline { fill: none; stroke: rgba(255,255,255,.9); stroke-width: 2; stroke-dasharray: 5 6; filter: drop-shadow(0 1px 1px rgba(22,63,53,.35)); }
.hole-target-line line { stroke: #ad6b35; stroke-width: 2; stroke-dasharray: 5 5; }
.course-tee-marker, .course-shot-marker, .course-pin-marker, .course-player-marker, .course-target-marker {
  position: absolute;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}
.course-tee-marker { width: 22px; height: 22px; color: white; background: #4e79ad; border: 2px solid white; font-size: 9px; font-weight: 800; box-shadow: 0 2px 6px rgba(22,63,53,.2); }
.course-shot-marker { width: 20px; height: 20px; color: white; background: var(--forest); border: 2px solid white; font-size: 8px; font-weight: 750; box-shadow: 0 2px 6px rgba(22,63,53,.25); }
.course-pin-marker { width: 32px; height: 32px; color: var(--forest); background: var(--lime); border: 2px solid white; box-shadow: 0 3px 10px rgba(22,63,53,.22); }
.course-pin-marker svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.course-player-marker { width: 20px; height: 20px; background: white; border: 4px solid var(--forest); box-shadow: 0 0 0 7px rgba(255,255,255,.3), 0 2px 8px rgba(22,63,53,.25); }
.course-player-marker i { width: 3px; height: 3px; background: var(--forest); border-radius: 50%; }
.course-target-marker { width: 25px; height: 25px; border: 2px solid #a96836; background: rgba(190,124,67,.18); }
.course-target-marker i { width: 5px; height: 5px; background: #a96836; border-radius: 50%; }

.map-view-switch { position: absolute; top: 16px; left: 16px; z-index: 600; display: flex; gap: 3px; padding: 4px; background: rgba(22,63,53,.88); border-radius: 10px; box-shadow: 0 3px 12px rgba(22,63,53,.15); backdrop-filter: blur(8px); }
.map-view-switch button { min-height: 28px; padding: 5px 10px; color: rgba(255,255,255,.72); background: transparent; border: 0; border-radius: 7px; cursor: pointer; font-size: 9px; font-weight: 650; }
.map-view-switch button.active { color: var(--forest); background: var(--lime); }
.gps-course-map { position: absolute; inset: 0; z-index: 1; background: #dfe8d7; }
.gps-map-disclaimer { position: absolute; top: 61px; left: 16px; z-index: 600; max-width: 235px; padding: 7px 10px; color: #6f654e; background: rgba(255,250,238,.92); border: 1px solid rgba(221,205,164,.65); border-radius: 8px; font-size: 8px; backdrop-filter: blur(8px); }
.gps-map-demo { position: absolute; left: 16px; bottom: 58px; z-index: 600; }
.gps-hole-marker { display: grid !important; place-items: center; background: transparent !important; border: 0 !important; }
.gps-hole-marker span { width: 26px; height: 26px; display: grid; place-items: center; color: white; background: var(--forest); border: 2px solid white; border-radius: 50%; box-shadow: 0 2px 8px rgba(22,63,53,.35); font-size: 9px; font-weight: 750; }
.gps-hole-marker.current span { width: 30px; height: 30px; color: var(--forest); background: var(--lime); border: 3px solid var(--forest); font-size: 11px; }
.gps-player-marker { background: transparent !important; border: 0 !important; }
.gps-player-marker i { width: 22px; height: 22px; display: block; background: white; border: 5px solid #3479ba; border-radius: 50%; box-shadow: 0 0 0 9px rgba(52,121,186,.2), 0 2px 8px rgba(22,63,53,.3); }
.course-image-overlay { mix-blend-mode: multiply; filter: saturate(.85); }
.leaflet-container { font-family: inherit; }
.leaflet-control-zoom { margin-left: 16px !important; margin-bottom: 16px !important; border: 0 !important; box-shadow: 0 3px 12px rgba(22,63,53,.16) !important; border-radius: 9px !important; overflow: hidden; }
.leaflet-control-zoom a { color: var(--forest) !important; background: rgba(255,255,255,.94) !important; border: 0 !important; }
.leaflet-control-attribution { padding: 2px 5px !important; color: #66776c; background: rgba(255,255,255,.75) !important; font-size: 7px !important; }
.leaflet-control-attribution a { color: #385f51; }
.distance-empty { padding: 9px 0 3px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.distance-empty strong { display: block; margin-bottom: 3px; color: var(--ink); font-size: 11px; }

@media (max-width: 700px) {
  .map-view-switch { top: 12px; left: 12px; }
  .gps-map-disclaimer { top: 57px; left: 12px; max-width: 205px; }
  .gps-map-demo { left: 12px; bottom: 53px; }
  .leaflet-control-zoom { margin-left: 12px !important; margin-bottom: 13px !important; }
  .leaflet-control-attribution { max-width: 180px; white-space: normal; }
}

.map-stage:has(.gps-course-map) .map-controls { left: 60px; bottom: 16px; }
.gps-map-demo { bottom: 62px; }
@media (max-width: 700px) {
  .map-stage:has(.gps-course-map) .map-controls { left: 55px; bottom: 13px; }
  .gps-map-demo { bottom: 58px; }
}

.distance-card, .map-controls, .map-scale, .target-banner { z-index: 600; }
.course-image-overlay { opacity: .3 !important; }

.auth-loading { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 18px; color: var(--muted); background: var(--canvas); }
.auth-loading .auth-brand { color: var(--forest); }
.auth-spinner { width: 30px; height: 30px; border: 3px solid #dce5d7; border-top-color: var(--forest); border-radius: 50%; animation: auth-spin .8s linear infinite; }
@keyframes auth-spin { to { transform: rotate(360deg); } }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, 1.06fr) minmax(440px, .94fr); background: white; }
.auth-visual { position: relative; min-height: 100vh; display: flex; flex-direction: column; padding: 34px 44px; overflow: hidden; color: white; background: var(--forest); }
.auth-visual::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(217,242,138,.09), transparent 40%), linear-gradient(145deg, transparent 45%, rgba(7,37,30,.3)); pointer-events: none; }
.auth-visual-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.auth-brand { display: flex; align-items: center; gap: 10px; }
.auth-brand strong { font-size: 24px; font-weight: 760; letter-spacing: -.7px; }
.auth-visual-label { color: rgba(255,255,255,.38); font-size: 9px; font-weight: 700; letter-spacing: 1.4px; }
.auth-visual-copy { position: relative; z-index: 1; max-width: 510px; margin: auto 0 22px; padding-top: 50px; }
.auth-visual-copy .eyebrow { color: var(--lime); }
.auth-visual-copy h1 { font-size: clamp(35px, 4vw, 56px); font-weight: 650; line-height: 1.08; letter-spacing: -2px; }
.auth-visual-copy > p { max-width: 450px; margin-top: 20px; color: rgba(255,255,255,.6); font-size: 14px; line-height: 1.65; }
.auth-features { display: flex; gap: 27px; margin-top: 30px; }
.auth-features span { display: grid; gap: 6px; color: var(--lime); font-size: 9px; }
.auth-features strong { color: rgba(255,255,255,.8); font-size: 10px; font-weight: 550; }
.auth-course-image { position: relative; z-index: 1; height: 30vh; min-height: 190px; margin: 0 -44px -34px; overflow: hidden; background: #e7eddc; }
.auth-course-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 54%; mix-blend-mode: multiply; opacity: .82; }
.auth-course-image span { position: absolute; right: 24px; bottom: 18px; padding: 6px 9px; color: rgba(255,255,255,.8); background: rgba(22,63,53,.75); border-radius: 7px; font-size: 9px; }
.auth-form-section { display: grid; place-items: center; min-height: 100vh; padding: 35px 45px; background: #fbfcf9; }
.auth-form-wrap { width: 100%; max-width: 390px; }
.auth-mobile-brand { display: none; }
.auth-form-heading { margin-bottom: 23px; }
.auth-form-heading h2 { font-size: 30px; font-weight: 720; }
.auth-form-heading p { margin-top: 7px; color: var(--muted); font-size: 12px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 18px; padding: 4px; background: #e9eee5; border-radius: 11px; }
.auth-tabs button { min-height: 38px; color: var(--muted); background: transparent; border: 0; border-radius: 8px; cursor: pointer; font-size: 11px; font-weight: 650; }
.auth-tabs button.active { color: var(--forest); background: white; box-shadow: 0 2px 7px rgba(22,63,53,.08); }
.auth-vk-button { width: 100%; min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 10px; color: white; background: #0077ff; border: 0; border-radius: 11px; cursor: pointer; font-size: 12px; font-weight: 650; }
.auth-vk-button:hover { background: #096de0; }
.auth-vk-button:disabled { color: #e3e9ec; background: #8aa6b8; cursor: not-allowed; opacity: 1; }
.vk-logo { font-size: 16px; font-weight: 850; letter-spacing: -1px; }
.auth-provider-note { margin-top: 6px; color: var(--muted); text-align: center; font-size: 9px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--soft); font-size: 9px; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-form { display: grid; gap: 14px; }
.auth-form .form-field { gap: 6px; }
.auth-form .form-field label { color: var(--ink); font-size: 10px; }
.auth-form .form-field input { min-height: 45px; background: white; }
.auth-password { position: relative; }
.auth-password input { padding-right: 75px !important; }
.auth-password button { position: absolute; top: 50%; right: 10px; padding: 4px; color: var(--forest-3); background: transparent; border: 0; transform: translateY(-50%); cursor: pointer; font-size: 9px; font-weight: 650; }
.auth-consent { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.auth-consent input { margin: 2px 0 0; accent-color: var(--forest); }
.auth-switch { margin-top: 19px; color: var(--muted); text-align: center; font-size: 10px; }
.auth-switch button { padding: 0; color: var(--forest-3); background: transparent; border: 0; cursor: pointer; font-weight: 700; }
.auth-security { margin-top: 23px; padding-top: 17px; color: var(--soft); border-top: 1px solid var(--line); text-align: center; font-size: 8px; }
.auth-error { min-height: 16px; margin: -8px 0 9px; color: var(--red); font-size: 10px; }

@media (max-width: 950px) {
  .auth-shell { grid-template-columns: minmax(340px, .8fr) minmax(390px, 1fr); }
  .auth-visual { padding-inline: 28px; }
  .auth-course-image { margin-inline: -28px; }
  .auth-features { flex-direction: column; gap: 12px; }
  .auth-form-section { padding-inline: 28px; }
}
@media (max-width: 700px) {
  .auth-shell { display: block; background: #fbfcf9; }
  .auth-visual { display: none; }
  .auth-form-section { display: block; min-height: 100vh; padding: 22px 20px 35px; }
  .auth-mobile-brand { display: block; margin-bottom: 42px; color: var(--forest); }
  .auth-mobile-brand .brand-beta { margin-left: auto; }
  .auth-form-wrap { margin: 0 auto; }
  .auth-form-heading h2 { font-size: 27px; }
}

.brand-logo { width: 142px; max-width: 100%; height: auto; display: block; }
.brand-logo-light { display: none; }
.auth-brand .brand-logo { width: 165px; }
.auth-loading .brand-logo-dark, .auth-mobile-brand .brand-logo-dark { display: none; }
.auth-loading .brand-logo-light, .auth-mobile-brand .brand-logo-light { display: block; }
.mobile-brand .brand-logo { width: 118px; }
@media (max-width: 900px) and (min-width: 701px) {
  .sidebar .brand-logo { width: 43px; height: 43px; object-fit: cover; object-position: left center; }
}
@media (max-width: 700px) {
  .auth-mobile-brand .brand-logo { width: 145px; }
}

.hole-artwork-empty { display: grid; place-items: center; padding: 35px; text-align: center; }
.hole-artwork-empty > div { max-width: 300px; padding: 22px; color: var(--muted); background: rgba(255,255,255,.85); border: 1px solid var(--line); border-radius: 14px; }
.hole-artwork-empty strong { display: block; margin-bottom: 8px; color: var(--forest); font-size: 15px; }
.hole-artwork-empty span { display: block; font-size: 11px; line-height: 1.55; }
.course-select { max-width: 225px; padding: 7px 28px 7px 10px; color: var(--forest-2); background: var(--warm); border: 1px solid var(--line); border-radius: 9px; cursor: pointer; font-size: 10px; font-weight: 650; }
.course-location-text { color: var(--muted); font-size: 11px; }
@media (max-width: 700px) {
  .course-crumb { display: flex; max-width: 132px; }
  .course-select { width: 132px; max-width: 132px; padding: 6px 5px; font-size: 8px; }
  .course-location-text { display: none; }
}

.auth-success { margin: 0 0 12px; color: #28634f; font-size: 12px; line-height: 1.5; }
.auth-success:empty, .auth-error:empty { display: none; }
.agr-profile { margin: 20px 0; padding: 16px; background: var(--warm); border: 1px solid var(--line); border-radius: 13px; }
.agr-current { display: grid; gap: 4px; margin: 12px 0; }
.agr-current strong { color: var(--forest); font-size: 15px; }
.agr-current span { font-size: 12px; }
.agr-current small { color: var(--muted); font-size: 10px; line-height: 1.5; }
.agr-search { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 14px; }
.agr-search input, .agr-link select { min-width: 0; padding: 10px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 11px; }
.agr-link { display: grid; gap: 9px; margin-top: 12px; }
.agr-source { display: inline-block; margin-top: 12px; color: var(--forest-2); font-size: 10px; }
@media (max-width: 480px) {
  .agr-search { grid-template-columns: 1fr; }
}

.course-conditions { display: flex; align-items: center; gap: 20px; margin: -6px 0 18px; padding: 11px 14px; color: var(--muted); background: rgba(255,255,255,.7); border: 1px solid var(--line); border-radius: 12px; font-size: 10px; }
.course-conditions > div { display: grid; grid-template-columns: auto 1fr; column-gap: 7px; align-items: center; }
.course-conditions > div .icon { grid-row: 1 / 3; color: var(--forest-2); }
.course-conditions strong { color: var(--ink); font-size: 11px; font-weight: 650; }
.course-conditions a { margin-left: auto; font-size: 9px; }
.conditions-error { display: flex; align-items: center; gap: 7px; }
@media (max-width: 700px) {
  .course-conditions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
  .course-conditions > div:first-child { grid-column: 1 / -1; }
  .course-conditions a { display: none; }
}
