:root {
  color-scheme: dark;
  --bg: #07110d;
  --panel: #101c17;
  --panel-2: #16231d;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f4f7f1;
  --muted: #aab8ad;
  --green: #50a060;
  --green-2: #93d383;
  --gold: #d3aa4d;
  --danger: #d46b6b;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(80, 160, 96, 0.28), transparent 30rem),
    linear-gradient(135deg, #07110d 0%, #0b1711 48%, #11130f 100%);
  color: var(--text);
}

.login-page {
  min-height: 100vh;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}
.login-card {
  width: min(440px, 100%);
  display: grid;
  gap: 1rem;
  padding: clamp(1.3rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  box-shadow: var(--shadow);
}
.login-card h1,
.login-card p {
  margin: 0;
}
.login-card label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-weight: 700;
}
.login-card input {
  width: 100%;
  min-width: 0;
}
.login-card button {
  border: 0;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  color: #07110d;
  background: linear-gradient(90deg, var(--gold), var(--green-2));
  font-weight: 850;
  cursor: pointer;
}
.login-error {
  padding: 0.75rem;
  border: 1px solid rgba(212, 107, 107, 0.5);
  border-radius: 8px;
  color: #ffd7d7;
  background: rgba(212, 107, 107, 0.12);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  background: rgba(7, 17, 13, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar h1 { margin: 0; font-size: clamp(1.2rem, 2.3vw, 2rem); }
.eyebrow {
  margin: 0 0 0.3rem;
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-weight: 800;
}

nav { display: flex; gap: 0.45rem; overflow-x: auto; max-width: 62vw; }
nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.55rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 7px;
  white-space: nowrap;
  font-size: 0.9rem;
}
nav a:hover { border-color: var(--line); color: var(--text); background: rgba(255,255,255,0.04); }
nav a.active {
  border-color: rgba(211, 170, 77, 0.45);
  color: var(--text);
  background: rgba(211, 170, 77, 0.12);
}

.text-link {
  color: var(--green-2);
  text-decoration: none;
  font-weight: 800;
}
.text-link:hover { color: var(--gold); text-decoration: underline; }
.pill-link {
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  background: rgba(255,255,255,0.04);
  white-space: nowrap;
  font: inherit;
  cursor: pointer;
}
.danger-link {
  color: #ffd7d7;
  border-color: rgba(212, 107, 107, 0.5);
  background: rgba(212, 107, 107, 0.12);
}
.danger-link:hover {
  border-color: rgba(212, 107, 107, 0.8);
  background: rgba(212, 107, 107, 0.18);
}

main { padding: 1rem clamp(1rem, 4vw, 3rem) 4rem; }
.hero {
  position: relative;
  min-height: clamp(260px, 42vh, 460px);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: clamp(1rem, 4vw, 3rem);
  overflow: hidden;
  margin: 1rem 0 2rem;
  padding: clamp(1.6rem, 5vw, 4rem);
  border: 0;
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(7, 17, 13, 0.45) 0%, rgba(7, 17, 13, 0.33) 38%, rgba(7, 17, 13, 0.09) 100%),
    linear-gradient(0deg, rgba(7, 17, 13, 0.29), rgba(7, 17, 13, 0.025)),
    var(--hero-image, url("/static/images/golf-hero-banner.png")) center / cover no-repeat;
  box-shadow: none;
}
.hero > div,
.hero > aside,
.hero-course-logo {
  position: relative;
  z-index: 1;
}
.hero-course-logo {
  position: absolute;
  z-index: 2;
  top: clamp(1rem, 3vw, 2rem);
  right: clamp(1rem, 3vw, 2rem);
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,0.34));
}
.hero-course-logo-warnemuende {
  width: clamp(220px, 25vw, 430px);
  max-height: clamp(72px, 9vw, 125px);
}
.hero-course-logo-apeldoer {
  width: clamp(110px, 13vw, 205px);
  max-height: clamp(110px, 13vw, 205px);
}
.hero h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 4.6rem);
  line-height: 1.22;
}
.hero p:not(.eyebrow) { color: var(--muted); max-width: 720px; font-size: 1.05rem; line-height: 1.6; }
.hero-copy {
  min-width: 0;
}
.hero-side-panel {
  width: min(340px, 100%);
  flex: 0 0 min(340px, 34%);
  display: grid;
  align-self: end;
  gap: 0.85rem;
}
.live-panel {
  padding: 1rem;
  border: 1px solid rgba(211, 170, 77, 0.32);
  border-radius: 10px;
  background: rgba(7, 17, 13, 0.72);
  box-shadow: var(--shadow);
}
.hero-hcp-panel {
  display: grid;
  gap: 0.75rem;
}
.hero-player-card {
  width: min(360px, 100%);
  flex: 0 1 360px;
  align-self: end;
  padding: 1rem;
  border: 1px solid rgba(211, 170, 77, 0.32);
  border-radius: 10px;
  background: rgba(7, 17, 13, 0.68);
  box-shadow: var(--shadow);
}
.hero-hcp-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.hero-hcp-display {
  display: grid;
  gap: 0.12rem;
}
.hero-hcp-display span {
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-weight: 900;
}
.hero-hcp-display strong {
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}
.hero-hcp-display small {
  color: var(--green-2);
  font-size: 1rem;
  font-weight: 900;
}
.hero-hcp-rounds {
  display: grid;
  gap: 0.18rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}
.hero-hcp-rounds span {
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  font-weight: 900;
}
.hero-hcp-rounds strong {
  font-size: 1.75rem;
  line-height: 1;
}
.hero-hcp-rounds small {
  color: var(--muted);
  font-weight: 750;
}
.live-round {
  display: grid;
  gap: 0.25rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}
.live-round:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.live-round strong {
  color: var(--green-2);
}
.live-round span,
.live-round small,
.live-empty {
  color: var(--muted);
}
.live-scorecard-link {
  color: var(--gold);
  font-weight: 900;
  text-decoration: none;
}
.live-scorecard-link:hover {
  text-decoration: underline;
}
.live-empty {
  padding-top: 0.25rem;
}
.hero-quick-actions {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}
.hero-quick-action {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  justify-items: start;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  color: var(--text);
  text-align: left;
  text-decoration: none;
  border: 1px solid rgba(211, 170, 77, 0.28);
  border-radius: 8px;
  background: rgba(255,255,255,0.045);
}
.hero-quick-action:hover {
  border-color: rgba(211, 170, 77, 0.62);
  background: rgba(211, 170, 77, 0.1);
}
.hero-quick-action .landing-icon {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 8px;
}
.hero-quick-action .landing-icon svg {
  width: 1rem;
  height: 1rem;
}
.hero-quick-action span {
  font-size: 0.82rem;
  font-weight: 850;
}
.hero-quick-action-secondary {
  opacity: 0.78;
}
.hero-quick-action-secondary:hover {
  opacity: 1;
}

.app-entry-callout {
  margin: 0;
}
.app-entry-card {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(211, 170, 77, 0.42);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(211, 170, 77, 0.18), rgba(132, 211, 127, 0.08)),
    rgba(7, 17, 13, 0.72);
  box-shadow: var(--shadow);
}
.app-entry-card:hover,
.app-entry-card:focus-visible {
  border-color: rgba(211, 170, 77, 0.78);
  background:
    linear-gradient(135deg, rgba(211, 170, 77, 0.25), rgba(132, 211, 127, 0.12)),
    var(--panel);
}
.app-entry-card strong {
  color: var(--gold);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  font-weight: 900;
}
.app-entry-card span {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 850;
}

.settings-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}
.settings-action-card {
  display: grid;
  align-content: start;
  gap: 0.65rem;
  min-height: 168px;
  padding: 1.15rem;
  color: var(--text);
  text-align: left;
  text-decoration: none;
  border: 1px solid rgba(211, 170, 77, 0.28);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025));
  box-shadow: var(--shadow);
  cursor: pointer;
}
button.settings-action-card {
  width: 100%;
  font: inherit;
}
.settings-action-card:hover,
.settings-action-card:focus-visible {
  border-color: rgba(211, 170, 77, 0.62);
  background: linear-gradient(135deg, rgba(211, 170, 77, 0.14), rgba(80, 160, 96, 0.06));
}
.settings-action-card .landing-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(211, 170, 77, 0.42);
  border-radius: 10px;
  color: var(--gold);
  background: rgba(211, 170, 77, 0.08);
}
.settings-action-card .landing-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}
.settings-action-card strong {
  color: var(--text);
  font-size: 1.18rem;
}
.settings-action-card span:last-child {
  color: var(--muted);
  line-height: 1.45;
}
.settings-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(1, 10, 7, 0.64);
  backdrop-filter: blur(5px);
}
.settings-modal-backdrop[hidden] {
  display: none;
}
.settings-hcp-form {
  width: min(430px, 100%);
  display: grid;
  gap: 1rem;
  padding: 1.25rem;
  border-color: rgba(211, 170, 77, 0.42);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
}
.settings-hcp-form h3,
.settings-hcp-form p {
  margin: 0;
}
.settings-hcp-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-weight: 800;
}
.settings-hcp-form input,
.settings-hcp-form select {
  width: 100%;
  min-width: 0;
}
.settings-visibility-form {
  width: min(780px, 100%);
}
.settings-visibility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.settings-visibility-grid h4 {
  margin: 0 0 0.55rem;
  color: var(--gold);
}
.settings-check-list {
  display: grid;
  gap: 0.45rem;
}
.settings-check-row {
  display: flex !important;
  grid-template-columns: unset !important;
  align-items: center;
  gap: 0.55rem !important;
  padding: 0.62rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text) !important;
}
.settings-check-row input {
  width: 1rem;
  min-width: 1rem;
  accent-color: var(--gold);
}
.settings-hcp-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.settings-hcp-actions button {
  border: 1px solid rgba(211, 170, 77, 0.38);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  color: var(--text);
  background: rgba(211, 170, 77, 0.1);
  font-weight: 850;
  cursor: pointer;
}
.settings-hcp-actions span {
  width: 100%;
  min-height: 1rem;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
}

.section { margin-top: 2rem; scroll-margin-top: 7rem; }
.section-header { display:flex; justify-content:space-between; align-items:end; gap:1rem; margin-bottom:1rem; }
.section h2 { margin: 0; font-size: clamp(1.4rem, 3vw, 2.25rem); }
.section p { color: var(--muted); }

.grid { display:grid; gap:1rem; }
.cards { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.three { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card, .table-wrap, .panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.card { padding: 1rem; min-height: 108px; }
.card .label { color: var(--muted); font-size: 0.86rem; }
.card .value { margin-top: 0.55rem; font-size: clamp(1.65rem, 4vw, 2.55rem); font-weight: 850; }
.card .sub { margin-top: 0.3rem; color: var(--gold); font-size: 0.88rem; }
.profile-metric-group {
  grid-column: span 4;
  padding: 1rem;
  min-height: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.052), rgba(255,255,255,0.024));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.profile-chart-group {
  grid-column: span 3;
  padding: 1rem;
  min-height: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.052), rgba(255,255,255,0.024));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.profile-metric-group h4,
.profile-chart-group h4 {
  margin: 0 0 0.8rem;
  color: var(--gold);
  font-size: 0.95rem;
  letter-spacing: 0;
}
.profile-metric-group-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(145px, 1fr));
  gap: 0.75rem;
}
.profile-metric-tile {
  min-height: 108px;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}
.profile-metric-tile .label {
  color: var(--muted);
  font-size: 0.86rem;
}
.profile-metric-tile .value {
  margin-top: 0.55rem;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 850;
}
.profile-metric-tile .sub {
  margin-top: 0.3rem;
  color: var(--gold);
  font-size: 0.88rem;
}
.player-lochscore-chart-inner {
  min-height: 0;
}
.player-lochscore-chart {
  overflow: hidden;
}
.player-lochscore-chart .mini-chart-card {
  padding: 0.85rem;
}
@media (max-width: 1250px) {
  .profile-metric-group {
    grid-column: 1 / -1;
  }
}
@media (max-width: 900px) {
  .profile-metric-group-grid {
    grid-template-columns: repeat(2, minmax(145px, 1fr));
  }
  .player-lochscore-chart {
    grid-column: 1 / -1;
  }
}
@media (max-width: 560px) {
  .profile-metric-group-grid {
    grid-template-columns: 1fr;
  }
  .player-lochscore-chart {
    padding: 0.75rem;
  }
  .player-lochscore-chart .mini-chart-card {
    padding: 0.65rem;
  }
  .player-lochscore-chart .mini-card-bars {
    gap: 0.38rem;
  }
  .player-lochscore-chart .mini-card-bar,
  .player-lochscore-chart .mini-card-bar-share {
    grid-template-columns: minmax(82px, 0.95fr) 2rem minmax(54px, 1fr) 3rem;
    column-gap: 0.32rem;
    font-size: 0.78rem;
  }
  .player-lochscore-chart .mini-card-bar strong {
    min-width: 0;
    font-size: 0.78rem;
  }
  .player-lochscore-chart .mini-card-track {
    height: 7px;
  }
}
.score-diagram-row {
  margin-top: 1rem;
}
.mini-chart-card {
  display: grid;
  align-content: start;
  gap: 0.65rem;
}
.mini-card-bars {
  display: grid;
  gap: 0.45rem;
}
.mini-card-bar {
  display: grid;
  grid-template-columns: minmax(150px, 0.72fr) 3.6rem minmax(180px, 2.4fr) 5.25rem;
  align-items: center;
  column-gap: 0.55rem;
  row-gap: 0.35rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}
.mini-card-bar-share {
  grid-template-columns: minmax(150px, 0.72fr) 3.6rem minmax(180px, 2.4fr) 5.25rem;
}
.mini-card-bar span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mini-card-bar strong {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}
.mini-card-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.06);
}
.mini-card-fill {
  display: block;
  height: 100%;
  width: var(--bar-width, 0%);
  max-width: 100%;
  min-width: 0;
  flex: 0 0 auto;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--green-2));
}
.mini-card-empty {
  color: var(--muted);
  font-size: 0.86rem;
}

@media (max-width: 720px) {
  .mini-card-bar,
  .mini-card-bar-share {
    grid-template-columns: minmax(112px, 0.85fr) 3rem minmax(90px, 1.8fr) 4rem;
    gap: 0.45rem;
  }
}

.dashboard-layout {
  display: grid;
  gap: 1rem;
}
.dashboard-main-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.35fr);
  gap: 1rem;
  align-items: start;
}
.dashboard-stats-column {
  display: grid;
  gap: 1rem;
}
.dashboard-top-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.dashboard-box {
  padding: clamp(1rem, 2vw, 1.35rem);
}
.dashboard-box h3 {
  margin: 0 0 1rem;
  color: var(--text);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}
.dashboard-split-grid {
  display: grid;
  gap: 1rem;
}
.dashboard-split-group {
  display: grid;
  gap: 0.8rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.02);
}
.dashboard-split-group h4 {
  margin: 0;
  color: var(--gold);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.dashboard-metric-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.85rem;
}
.dashboard-form-box .dashboard-metric-list {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.dashboard-compact-box .dashboard-metric-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.dashboard-trend-panel {
  align-self: stretch;
}
.dashboard-trend-panel .dashboard-trend-grid {
  grid-template-columns: 1fr;
}
.dashboard-trend-panel .dashboard-trend-block {
  min-height: 165px;
}
.dashboard-trend-panel .mini-trend-bars {
  height: 4.25rem;
}
.dashboard-overview-box {
  padding: clamp(1rem, 2vw, 1.25rem);
}
.dashboard-overview-content {
  display: grid;
  grid-template-columns: minmax(260px, 0.55fr) minmax(0, 1.45fr);
  gap: 1rem;
  align-items: stretch;
}
.dashboard-overview-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.dashboard-overview-trends {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
}
.dashboard-overview-trends .dashboard-trend-block {
  min-height: 150px;
}
.dashboard-overview-trends .mini-trend-bars {
  height: 3.6rem;
}
.dashboard-metric {
  min-height: 90px;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.035);
}
.dashboard-metric span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}
.dashboard-metric strong {
  display: block;
  margin-top: 0.35rem;
  color: var(--text);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.1;
}
.dashboard-metric small {
  display: block;
  margin-top: 0.35rem;
  color: var(--green-2);
  font-weight: 800;
}
.dashboard-wide-content {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.6fr);
  gap: 1rem;
  align-items: stretch;
}
.dashboard-score-metrics {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  align-content: start;
}
.dashboard-trend-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.dashboard-trend-block {
  min-height: 210px;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.025);
}
.dashboard-trend-block .label {
  color: var(--muted);
  font-size: 0.86rem;
}
.trend-arrow {
  display: inline-block;
  margin-right: 0.35rem;
  color: var(--gold);
  font-size: 1.05em;
}

.entry-panel p {
  color: var(--muted);
  line-height: 1.55;
}
.entry-panel {
  padding: clamp(1.2rem, 3vw, 2rem);
}
.entry-panel h3 {
  margin: 0.25rem 0 0.75rem;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
}
.editor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.9rem;
  margin: 1rem 0;
}
.editor-grid label {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  font-weight: 800;
}
.editor-scorecard {
  margin-top: 1rem;
}
.counter-field {
  display: grid;
  grid-template-columns: 34px minmax(54px, 1fr) 34px;
  gap: 0.35rem;
  align-items: center;
  max-width: 150px;
}
.counter-field button,
.editor-actions button {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255,255,255,0.06);
  font-weight: 850;
  cursor: pointer;
}
.counter-field button {
  width: 34px;
  height: 34px;
}
.counter-field input {
  text-align: center;
  min-width: 0;
}
.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  white-space: nowrap;
}
.detail-row td {
  padding-top: 0;
  background: rgba(255,255,255,0.018);
}
.hole-detail-editor {
  border: 1px solid rgba(211, 170, 77, 0.2);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
}
.hole-detail-editor summary {
  cursor: pointer;
  color: var(--gold);
  font-weight: 900;
}
.detail-editor-hint {
  margin: 0.7rem 0 0;
  color: var(--muted);
}
.detail-add-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem;
  margin-top: 0.8rem;
}
.detail-add-group {
  display: grid;
  gap: 0.55rem;
}
.detail-add-group h4 {
  margin: 0;
  color: var(--text);
}
.detail-add-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.detail-add-buttons button,
.detail-sequence-actions button {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255,255,255,0.06);
  font-weight: 850;
  cursor: pointer;
}
.detail-add-buttons button {
  padding: 0.45rem 0.65rem;
}
.detail-sequence-list {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.9rem;
}
.detail-sequence-list:empty::before {
  content: "Noch keine Schlagdetails erfasst.";
  color: var(--muted);
  border: 1px dashed rgba(211, 170, 77, 0.26);
  border-radius: 8px;
  padding: 0.65rem;
}
.detail-sequence-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-weight: 800;
}
.detail-sequence-item span {
  color: var(--text);
}
.detail-sequence-label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.detail-sequence-label small {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
}
.detail-sequence-actions {
  display: flex;
  gap: 0.35rem;
}
.detail-sequence-actions button {
  width: 30px;
  height: 30px;
}
.editor-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1rem;
}
.editor-actions button {
  padding: 0.75rem 1rem;
  color: #07110d;
  border-color: transparent;
  background: linear-gradient(90deg, var(--gold), var(--green-2));
}
#editor-message {
  color: var(--gold);
  font-weight: 800;
}
.editor-list {
  padding: 1rem;
  margin-bottom: 1rem;
}
.editor-list-message {
  min-height: 1.2rem;
  margin: 0.8rem 0;
  color: var(--gold);
  font-weight: 800;
}
.round-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.trash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}
.entry-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin-top: 1.2rem;
}
.entry-steps span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem;
  color: var(--gold);
  background: rgba(255,255,255,0.04);
  font-weight: 800;
}

.leader { padding: 1rem; }
.leader h3, .panel h3 { margin:0 0 0.75rem; }
.rank-list { display:grid; gap:0.55rem; }
.rank {
  display:grid;
  grid-template-columns: 2rem 1fr auto;
  gap:0.75rem;
  align-items:center;
  padding:0.65rem;
  background: rgba(255,255,255,0.035);
  border:1px solid var(--line);
  border-radius:7px;
}
.rank .pos { color:var(--gold); font-weight:800; }
.rank .name { font-weight:750; }
.rank .meta { color:var(--muted); font-size:0.85rem; }
.rank .score { font-weight:850; color:var(--green-2); }

.table-wrap { overflow:auto; }
table { width:100%; border-collapse:collapse; min-width:720px; }
th, td { padding:0.8rem; border-bottom:1px solid var(--line); text-align:left; }
th { color:var(--gold); font-size:0.8rem; text-transform:uppercase; letter-spacing:0.06em; background:rgba(255,255,255,0.025); }
td { color:var(--text); }
.filters { display:flex; gap:0.7rem; flex-wrap:wrap; margin-bottom:1rem; }
.player-round-filter {
  margin-top: 1.35rem;
  margin-bottom: 1.35rem;
}
.player-rounds-table {
  margin-top: 0.25rem;
}
input, select {
  background:#0c1813;
  color:var(--text);
  border:1px solid var(--line);
  border-radius:7px;
  padding:0.7rem 0.8rem;
  min-width:180px;
}

.chart { height:240px; padding:1.9rem 1rem 1rem; display:flex; align-items:end; gap:0.45rem; border-top:1px solid var(--line); }
.bar { flex:1; min-width:18px; background:linear-gradient(180deg, var(--green-2), var(--green)); border-radius:5px 5px 0 0; position:relative; overflow:visible; }
.bar span {
  position:absolute;
  bottom:100%;
  left:50%;
  transform:translateX(-50%);
  font-size:0.72rem;
  color:var(--muted);
  font-weight:900;
  line-height:1;
  padding-bottom:0.45rem;
}

.chart-test-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.icon-test-panel {
  grid-column: 1 / -1;
  padding: 1rem;
  margin-bottom: 1rem;
}
.icon-test-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}
.icon-test-nav span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255,255,255,0.04);
  font-weight: 800;
}
.test-nav-icon,
.test-card-icon {
  display: inline-grid;
  place-items: center;
  color: var(--gold);
}
.test-nav-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}
.icon-test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.8rem;
}
.icon-test-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 92px;
}
.test-card-icon {
  flex: 0 0 3.15rem;
  width: 3.15rem;
  height: 3.15rem;
  border: 1px solid rgba(211, 170, 77, 0.32);
  border-radius: 10px;
  background: rgba(211, 170, 77, 0.08);
}
.test-card-icon svg {
  width: 2.05rem;
  height: 2.05rem;
}
.icon-test-card strong,
.icon-test-card small {
  display: block;
}
.icon-test-card strong {
  color: var(--text);
}
.icon-test-card small {
  margin-top: 0.25rem;
  color: var(--muted);
}
.score-symbol-test {
  margin-top: 1.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.score-symbol-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.8rem;
}
.score-symbol-card {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding: 1rem 0.85rem;
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,0.035);
  text-align: center;
}
.score-symbol-card strong {
  color: var(--text);
}
.score-symbol-card small {
  color: var(--muted);
}
.score-symbol {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  color: var(--text);
  font-weight: 950;
  font-size: 1.05rem;
  line-height: 1;
}
.score-symbol b {
  position: relative;
  z-index: 2;
}
.score-symbol-hio b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform: translateY(0.16rem);
}
.score-symbol-hio::before {
  content: "★";
  position: absolute;
  inset: -0.35rem;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 4.2rem;
  line-height: 1;
  text-shadow: 0 0 18px rgba(211,170,77,0.22);
  z-index: 1;
}
.score-symbol-hio b {
  color: #07110d;
  text-shadow: 0 1px 0 rgba(255,255,255,0.45);
}
.score-symbol-eagle-shape {
  position: absolute;
  width: 3.7rem;
  height: 3.35rem;
  color: var(--gold);
  stroke: currentColor;
  stroke-width: 4;
  stroke-linejoin: round;
  overflow: visible;
  z-index: 1;
}
.score-symbol-eagle b {
  transform: translateY(0.22rem);
}
.score-symbol-birdie {
  border: 2px solid #72d0ff;
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(114,208,255,0.13);
}
.score-symbol-par {
  color: var(--muted);
  font-size: 1.4rem;
}
.score-symbol-boxes {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
}
.score-symbol-boxes i {
  position: absolute;
  display: block;
  width: 2.8rem;
  height: 2.8rem;
  border: 1.55px solid var(--gold);
  border-radius: 6px;
}
.score-symbol-double .score-symbol-boxes i {
  border-color: #f08b4f;
  border-width: 1.45px;
}
.score-symbol-triple .score-symbol-boxes i {
  border-color: #f05f5f;
  border-width: 1.35px;
}
.score-symbol-double .score-symbol-boxes i:nth-child(1) {
  transform: translate(-0.2rem, 0.2rem);
}
.score-symbol-double .score-symbol-boxes i:nth-child(2) {
  width: 2.8rem;
  height: 2.8rem;
  transform: translate(0.2rem, -0.2rem);
}
.score-symbol-triple .score-symbol-boxes i {
  width: 2.72rem;
  height: 2.72rem;
}
.score-symbol-triple .score-symbol-boxes i:nth-child(1) {
  transform: translate(-0.34rem, 0.34rem);
}
.score-symbol-triple .score-symbol-boxes i:nth-child(2) {
  transform: translate(0, 0);
}
.score-symbol-triple .score-symbol-boxes i:nth-child(3) {
  width: 2.72rem;
  height: 2.72rem;
  transform: translate(0.34rem, -0.34rem);
}
.score-symbol-scratch {
  border: 2px dashed var(--muted);
  border-radius: 8px;
  color: var(--muted);
}
.score-symbol-preview {
  margin-top: 1.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.symbol-scorecard-table td:nth-child(3),
.symbol-scorecard-table th:nth-child(3) {
  text-align: center;
}
.scorecard-panel table td:nth-child(6),
.scorecard-panel table th:nth-child(6) {
  text-align: center;
}
.score-cell-symbol,
.score-cell-plain {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  font-weight: 950;
}
.score-cell-symbol b {
  position: relative;
  z-index: 2;
}
.score-cell-hio::before {
  content: "★";
  position: absolute;
  inset: -0.18rem;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 3rem;
  line-height: 1;
  z-index: 1;
}
.score-cell-hio b {
  color: #07110d;
  transform: translateY(0.11rem);
}
.score-cell-hio::before {
  content: "\2605";
}
.score-cell-eagle-shape {
  position: absolute;
  width: 2.65rem;
  height: 2.35rem;
  color: var(--gold);
  stroke: currentColor;
  stroke-width: 4;
  stroke-linejoin: round;
  overflow: visible;
  z-index: 1;
}
.score-cell-eagle b {
  transform: translateY(0.15rem);
}
.score-cell-birdie {
  border: 2px solid #72d0ff;
  border-radius: 999px;
}
.score-cell-boxes {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 1;
}
.score-cell-boxes i {
  position: absolute;
  display: block;
  width: 2.05rem;
  height: 2.05rem;
  border: 1.45px solid var(--gold);
  border-radius: 5px;
}
.score-cell-double .score-cell-boxes i {
  border-color: #f08b4f;
  border-width: 1.35px;
}
.score-cell-triple .score-cell-boxes i {
  border-color: #f05f5f;
  border-width: 1.25px;
}
.score-cell-double .score-cell-boxes i:nth-child(1) {
  transform: translate(-0.13rem, 0.13rem);
}
.score-cell-double .score-cell-boxes i:nth-child(2) {
  width: 2.05rem;
  height: 2.05rem;
  transform: translate(0.13rem, -0.13rem);
}
.score-cell-triple .score-cell-boxes i {
  width: 1.95rem;
  height: 1.95rem;
}
.score-cell-triple .score-cell-boxes i:nth-child(1) {
  transform: translate(-0.22rem, 0.22rem);
}
.score-cell-triple .score-cell-boxes i:nth-child(2) {
  transform: translate(0, 0);
}
.score-cell-triple .score-cell-boxes i:nth-child(3) {
  width: 1.95rem;
  height: 1.95rem;
  transform: translate(0.22rem, -0.22rem);
}
.score-cell-scratch {
  border: 2px dashed var(--muted);
  border-radius: 6px;
  color: var(--muted);
}
.chart-panel {
  min-height: 360px;
  padding: 1rem;
}
.chart-panel h3 {
  margin: 0 0 0.85rem;
}
.chart-canvas-wrap {
  position: relative;
  height: 280px;
}
.chart-panel:first-child,
.chart-panel:last-child {
  grid-column: 1 / -1;
}

.trend-filter-panel {
  margin-bottom: 1rem;
}
.trend-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.trend-par-score-panel {
  margin-bottom: 1rem;
}
.trend-par-score-panel h3 {
  margin: 0 0 0.85rem;
  color: var(--gold);
}
.trend-par-score-chart {
  max-width: 760px;
}
.trend-metric-card .value {
  font-size: clamp(1.75rem, 3vw, 2.7rem);
}
.trend-metric-card {
  border-width: 3px;
}
.trend-metric-card.trend-improved {
  border-color: rgba(147, 211, 131, 0.86);
  box-shadow: 0 0 0 1px rgba(147, 211, 131, 0.18), 0 0 22px rgba(147, 211, 131, 0.12), var(--shadow);
}
.trend-metric-card.trend-worse {
  border-color: rgba(212, 107, 107, 0.88);
  box-shadow: 0 0 0 1px rgba(212, 107, 107, 0.18), 0 0 22px rgba(212, 107, 107, 0.12), var(--shadow);
}
.trend-metric-card.trend-stable {
  border-color: rgba(211, 170, 77, 0.9);
  box-shadow: 0 0 0 1px rgba(211, 170, 77, 0.2), 0 0 22px rgba(211, 170, 77, 0.12), var(--shadow);
}
.trend-metric-card.trend-empty {
  border-color: rgba(170, 184, 173, 0.34);
}
.trend-chart-grid .chart-panel,
.trend-chart-grid .chart-panel:first-child,
.trend-chart-grid .chart-panel:last-child {
  grid-column: auto;
}
.trend-chart-panel {
  min-height: 330px;
}
.trend-round-table {
  margin-top: 1rem;
}
.trend-round-table .table-wrap {
  margin-top: 0.8rem;
}

.dashboard-mini-trend {
  display: grid;
  gap: 0.45rem;
}
.dashboard-mini-trend-card {
  min-height: 0;
}
.mini-trend-head {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  align-items: center;
  color: var(--text);
}
.mini-trend-head span {
  color: var(--gold);
  font-weight: 900;
}
.mini-trend-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  height: 4.2rem;
  padding-top: 0.35rem;
}
.mini-trend-bar {
  position: relative;
  flex: 1;
  min-width: 0.9rem;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, var(--green-2), var(--green));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.16);
}
.mini-trend-bar b {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.15rem);
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1;
}
.dashboard-mini-trend small {
  color: var(--muted);
  line-height: 1.25;
}

.empty {
  padding:1rem;
  border:1px dashed rgba(211,170,77,0.35);
  color:var(--muted);
  border-radius:8px;
  background:rgba(211,170,77,0.06);
}
.status-ok { color: var(--green-2); }
.status-missing { color: var(--gold); }
.badge { display:inline-block; padding:0.25rem 0.5rem; border-radius:999px; background:rgba(80,160,96,0.16); color:var(--green-2); font-size:0.78rem; }
.panel { padding:1rem; }
.player-card:target,
.scorecard-panel:target {
  outline: 2px solid var(--gold);
  box-shadow: 0 0 0 6px rgba(211,170,77,0.12), var(--shadow);
}
.scorecard-panel {
  grid-column: 1 / -1;
}
.scorecard-title {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:1rem;
  margin-bottom:0.8rem;
}
.scorecard-title h3 { margin:0; }
.scorecard-meta {
  display:flex;
  flex-wrap:wrap;
  gap:0.5rem;
  margin:0.7rem 0 1rem;
}
.scorecard-meta span {
  border:1px solid var(--line);
  border-radius:999px;
  padding:0.35rem 0.6rem;
  color:var(--muted);
  background:rgba(255,255,255,0.03);
  font-size:0.86rem;
}
.scorecard-panel .scorecard-summary-cards {
  margin-bottom: 2.25rem;
}
.scorecard-hcp-note {
  color: var(--muted);
  font-size: 0.86rem;
  margin: -1.3rem 0 1.25rem;
}
.scorecard-panel .scorecard-summary-cards + .table-wrap {
  margin-top: 2.25rem;
}
.scorecard-hcp-note + .table-wrap {
  margin-top: 1.25rem;
}
.scorecard-section-row td {
  color: var(--gold);
  font-weight: 950;
  background: rgba(211, 170, 77, 0.1);
  letter-spacing: 0;
}
.participant-list {
  margin:0.4rem 0 0;
  padding-left:1.2rem;
  color:var(--muted);
}
.score-rates {
  margin-top:1rem;
}
.shot-overview {
  margin-bottom: 1rem;
}
.analysis-stack {
  display: grid;
  gap: 1rem;
}
.analysis-block {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.022));
  box-shadow: var(--shadow);
}
.analysis-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.analysis-head h3 {
  margin: 0;
}
.analysis-head p {
  margin: 0;
  max-width: 460px;
  font-size: 0.92rem;
  text-align: right;
}
.metric-row {
  margin-bottom: 1rem;
}
.stat-bars {
  display: grid;
  gap: 0.85rem;
}
.stat-bar {
  display: grid;
  gap: 0.35rem;
}
.stat-label {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.stat-label strong {
  color: var(--text);
}
.stat-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
}
.stat-track > div {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--green-2));
}
.compact-table table {
  min-width: 560px;
}
.detail-boards {
  margin-top: 1rem;
}
.course-hole-accordion {
  display: grid;
  gap: 0.85rem;
}
.course-hole-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
}
.course-hole-panel summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  color: var(--text);
  list-style-position: inside;
}
.course-hole-panel summary strong {
  color: var(--green-2);
}
.course-hole-panel summary small {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
}
.course-hole-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}
.course-hole-summary span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  color: var(--muted);
  background: rgba(255,255,255,0.035);
  font-size: 0.82rem;
  white-space: nowrap;
}
.course-hole-actions {
  display: flex;
  justify-content: flex-end;
  padding: 0 1rem 0.8rem;
}
.course-hole-insights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  padding: 0 1rem 1rem;
}
.mini-insight {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.7rem;
  background: rgba(0,0,0,0.12);
}
.mini-insight span,
.mini-insight small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}
.mini-insight strong {
  display: block;
  margin: 0.2rem 0;
  color: var(--text);
  font-size: 1.05rem;
}
.course-hole-panel .table-wrap {
  margin: 0 1rem 1rem;
}
.muted-row {
  color: var(--muted);
  opacity: 0.72;
}
.section h3 {
  margin: 1.4rem 0 0.8rem;
}
.scorecard-detail {
  margin:1rem 0 1.6rem;
}
.scorecard-compare-table td {
  vertical-align: top;
  line-height: 1.45;
  min-width: 180px;
}
.scorecard-compare-table td:first-child {
  min-width: 70px;
  color: var(--gold);
  font-weight: 800;
}
.scorecard-compare-table .compare-total td {
  border-top: 2px solid var(--line);
  color: var(--green-2);
  font-weight: 850;
}
.scorecard-compare-table .compare-different {
  background: rgba(211, 170, 77, 0.14);
  box-shadow: inset 3px 0 0 var(--gold);
}
.shot-detail-toggle {
  margin-top: 1rem;
}
.shot-detail-toggle summary {
  cursor: pointer;
  color: var(--gold);
  font-weight: 800;
  padding: 0.8rem 0;
}
.scorecard-shot-quote-grid {
  grid-template-columns: repeat(2, minmax(420px, 1fr));
  align-items: start;
}
.scorecard-shot-quote-grid .mini-chart-card {
  min-width: 0;
}
@media (max-width: 1100px) {
  .scorecard-shot-quote-grid {
    grid-template-columns: 1fr;
  }
}
.hole-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}
.hole-detail {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(255,255,255,0.035);
}
.hole-detail h4 {
  margin: 0 0 0.6rem;
  color: var(--green-2);
}
.hole-detail ul {
  margin: 0 0 0.8rem;
  padding-left: 1.1rem;
  color: var(--muted);
}
.hole-detail strong {
  color: var(--text);
}
.loading { padding: 2rem; color: var(--muted); }

@media (max-width: 760px) {
  .topbar { display:block; }
  nav { max-width: 100%; margin-top: 0.8rem; }
  table { min-width: 620px; }
  .dashboard-main-grid,
  .dashboard-top-grid,
  .dashboard-overview-content,
  .dashboard-wide-content,
  .dashboard-trend-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-metric-list,
  .dashboard-form-box .dashboard-metric-list,
  .dashboard-compact-box .dashboard-metric-list,
  .dashboard-score-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .analysis-head {
    display: block;
  }
  .analysis-head p {
    margin-top: 0.35rem;
    text-align: left;
  }
  .course-hole-panel summary {
    display: block;
  }
  .course-hole-summary {
    justify-content: flex-start;
    margin-top: 0.6rem;
  }
  .course-hole-insights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .chart-test-grid {
    grid-template-columns: 1fr;
  }
  .chart-panel:first-child,
  .chart-panel:last-child {
    grid-column: auto;
  }
}

@media (max-width: 900px) {
  .hero {
    align-items: stretch;
    flex-direction: column;
    justify-content: flex-end;
  }
  .hero-player-card {
    width: 100%;
    flex-basis: auto;
  }
  .hero-course-logo {
    top: 0.9rem;
    right: 0.9rem;
  }
  .hero-course-logo-warnemuende {
    width: clamp(155px, 48vw, 260px);
    max-height: 76px;
  }
  .hero-course-logo-apeldoer {
    width: clamp(86px, 27vw, 138px);
    max-height: 138px;
  }
  .live-panel {
    width: 100%;
    flex-basis: auto;
  }
  .hero-side-panel {
    width: 100%;
    flex-basis: auto;
  }
  .settings-hcp-form {
    grid-template-columns: 1fr;
  }
  .dashboard-wide-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .dashboard-metric-list,
  .dashboard-form-box .dashboard-metric-list,
  .dashboard-compact-box .dashboard-metric-list,
  .dashboard-score-metrics {
    grid-template-columns: 1fr;
  }
}
