/* lake.world — light outdoor dock log (UDisc / Hevy-inspired) */
:root {
  --bg: #FBFDFF;
  --surface: #FFFFFF;
  --ink: #111111;
  --mute: #707070;
  --accent: #FC5200;
  --chip: #3068AC;
  --landed: #C4FCA0;
  --navy: #28203C;
  --line: #D7DEE6;
  --track: #EEF3F8;
  --gold: #E7C56A;
  --on-accent: #FFFFFF;
  --on-navy: #FFFFFF;
  --radius: 14px;
  --tap: 52px;
  --cta: 56px;
  --shadow: 0 1px 0 rgba(17, 17, 17, 0.04);
  font-size: 17px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
html { color-scheme: light; }

body {
  font-family: ui-rounded, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.35;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}

.app {
  max-width: 430px;
  margin: 0 auto;
  padding: 0 0 2.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---- sticky compact header ---- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: max(0.55rem, env(safe-area-inset-top)) 1rem 0.65rem;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.mast-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.mast-row + .mast-row { margin-top: 0.5rem; }

.brand {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 28px;
}
.mark svg { display: block; }
.wordmark {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--navy);
  line-height: 1;
}

#person-name,
#person-select {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 0.85rem;
  min-height: var(--tap);
}

#person-select {
  cursor: pointer;
  appearance: auto;
}

#person-name::placeholder { color: var(--mute); }
#person-name[hidden],
#person-select[hidden] { display: none; }

.mast-auth {
  justify-content: flex-end;
  gap: 0.55rem;
}
.mast-auth[hidden] { display: none; }
#mast-user-email {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--mute);
  flex: 1;
}
#signout-btn {
  appearance: none;
  flex: 0 0 auto;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  min-height: 36px;
  padding: 0 0.85rem;
  cursor: pointer;
}
#signout-btn:hover { background: #ff6a26; }

.mast-tools { flex-wrap: wrap; }

.units-seg {
  display: inline-flex;
  gap: 0.2rem;
  padding: 3px;
  border-radius: 999px;
  background: var(--track);
  flex: 0 0 auto;
}

.units-seg button {
  appearance: none;
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  min-height: 44px;
  min-width: 52px;
  padding: 0 0.85rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--chip);
  cursor: pointer;
}

.units-seg button.is-on {
  background: var(--chip);
  color: #FFFFFF;
}

.stat-pill {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: var(--cta);
  padding: 0.35rem 0.75rem;
  border-radius: 14px;
  background: var(--navy);
  color: var(--on-navy);
  flex: 1 1 auto;
  min-width: 5.5rem;
}

.stat-main {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--on-navy);
}

.stat-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 0.08rem;
  font-variant-numeric: tabular-nums;
}

.stat-sub[hidden] { display: none; }

/* ---- sport switch: fat pills ---- */
.sport-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.85rem 1rem 0;
}

.tab {
  appearance: none;
  font: inherit;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--chip);
  background: var(--surface);
  border: 2px solid var(--chip);
  border-radius: 999px;
  min-height: var(--tap);
  padding: 0.45rem 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.tab.is-active {
  background: var(--chip);
  color: #FFFFFF;
  border-color: var(--chip);
}

/* ---- panels ---- */
main { padding: 0.75rem 1rem 0; }

.panel { min-height: 40vh; }
.panel[hidden] { display: none; }

.progress-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1rem 1rem;
  margin-bottom: 0.65rem;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
}

.progress-card h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.progress-counts {
  margin: 0;
  font-weight: 800;
  color: var(--chip);
  font-variant-numeric: tabular-nums;
  font-size: 0.88rem;
}

.lake-meter {
  margin-top: 0.7rem;
  height: 8px;
  border-radius: 999px;
  background: var(--track);
  overflow: hidden;
}

.lake-fill {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.2s ease;
}

.legend {
  margin: 0 0 0.75rem;
  color: var(--mute);
  font-size: 0.92rem;
  line-height: 1.35;
}

/* ---- kneeboard rows ---- */
.trick-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.trick-group {
  list-style: none;
  margin: 0.35rem 0 0.05rem;
  padding: 0.35rem 0.15rem 0.1rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}

.trick-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.5rem 0.65rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.45rem 0.65rem;
  min-height: var(--tap);
}

.trick-item.is-done {
  background: var(--landed);
  border-color: var(--landed);
}

.trick-item.is-custom { box-shadow: inset 3px 0 0 var(--gold); }

.trick-main { min-width: 0; }
.trick-side {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
}

.trick-label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  cursor: pointer;
  min-height: var(--tap);
  margin: 0;
  font-weight: 700;
  line-height: 1.25;
  font-size: 1rem;
}

.trick-label input {
  appearance: none;
  width: 1.7rem;
  height: 1.7rem;
  min-width: 1.7rem;
  border: 2px solid var(--ink);
  border-radius: 7px;
  background: var(--surface);
  cursor: pointer;
  display: grid;
  place-content: center;
  margin: 0;
}

.trick-label input:checked {
  background: var(--ink);
  border-color: var(--ink);
}

.trick-label input:checked::after {
  content: "";
  width: 0.38rem;
  height: 0.7rem;
  border: solid #FFFFFF;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.trick-item.is-done .name { color: var(--ink); }

.write-in {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
  vertical-align: middle;
}

.mode-toggle {
  appearance: none;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 0.7rem;
  min-height: 40px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.mode-toggle.is-easy {
  background: var(--surface);
  border: 2px solid var(--chip);
  color: var(--chip);
}

.mode-toggle.is-hard {
  background: var(--navy);
  border: 2px solid var(--navy);
  color: var(--on-navy);
}

.trick-item.is-done .mode-toggle.is-easy {
  background: transparent;
}

.remove {
  appearance: none;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.35rem 0.55rem;
  min-height: 40px;
  border-radius: 10px;
}

.first-date,
.logbook,
.media-slot { margin-top: 0.5rem; }

.first-date label,
.media-add {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--mute);
}

input[type="date"] {
  font: inherit;
  color: var(--ink);
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  min-height: 44px;
  max-width: 12.5rem;
}

.log-count {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.date-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.date-list li {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.drop-date {
  appearance: none;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.35rem 0.55rem;
  border-radius: 10px;
  min-height: 40px;
}

.log-again,
.btn-primary {
  appearance: none;
  display: block;
  width: 100%;
  margin-top: 0.45rem;
  font: inherit;
  font-weight: 800;
  font-size: 1rem;
  padding: 0 1rem;
  min-height: var(--cta);
  border-radius: 14px;
  border: 0;
  background: var(--accent);
  color: var(--on-accent);
  cursor: pointer;
}

.media-preview { margin-bottom: 0.4rem; }

.media-preview img,
.media-preview video {
  display: block;
  max-width: 100%;
  max-height: 180px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--track);
}

.media-file { margin-top: 0.15rem; max-width: 100%; }

.media-remove,
.media-note { font-size: 0.78rem; }

.media-remove {
  appearance: none;
  margin-top: 0.3rem;
  width: 100%;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0.45rem 0.6rem;
  min-height: 44px;
  border-radius: 10px;
}

.media-note {
  margin: 0.25rem 0 0;
  color: var(--mute);
}

.media-error {
  margin: 0.25rem 0 0;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.add-form {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--line);
}

.add-form > label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.add-row {
  display: flex;
  gap: 0.45rem;
  align-items: stretch;
}

.add-row input[type="search"],
.add-row input[type="text"] {
  flex: 1;
  font: inherit;
  color: var(--ink);
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  min-width: 0;
  min-height: var(--tap);
}

.hard-opt {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  padding: 0 0.2rem;
  min-height: var(--tap);
}

.add-form .btn-primary { margin-top: 0.55rem; }

/* ---- slalom chips ---- */
.chip-group { margin-bottom: 1rem; }

.chip-group .chip-label { margin-bottom: 0.45rem; }

.chip-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  appearance: none;
  font: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  color: var(--chip);
  background: var(--surface);
  border: 2px solid var(--chip);
  border-radius: 999px;
  min-height: var(--tap);
  padding: 0 0.95rem;
  cursor: pointer;
}

.chip.is-on {
  background: var(--chip);
  color: #FFFFFF;
  border-color: var(--chip);
}

.best-hero {
  background: var(--navy);
  color: var(--on-navy);
  border-radius: 16px;
  padding: 0.95rem 1rem 1.05rem;
  text-align: center;
  margin: 0 0 1rem;
}

.best-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.best-number {
  margin: 0.15rem 0 0;
  font-size: 3.15rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--landed);
}

.best-setup {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  font-variant-numeric: tabular-nums;
  min-height: 1.2em;
}

.best-score {
  margin: 0.4rem 0 0;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--gold);
}
.best-score[hidden] { display: none; }

.buoy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
}

.buoy-btn {
  appearance: none;
  font: inherit;
  font-weight: 800;
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: 14px;
  min-height: var(--tap);
  cursor: pointer;
}

.buoy-btn.is-on {
  background: var(--chip);
  color: #FFFFFF;
  border-color: var(--chip);
}

.buoy-btn:focus-visible,
.chip:focus-visible {
  outline: 2px solid var(--chip);
  outline-offset: 2px;
}

#submit-set-btn {
  margin-top: 0.75rem;
}
#submit-set-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ---- Hevy-like set table ---- */
.history-block { margin-top: 0.4rem; }

.sets-head,
.set-cols {
  display: grid;
  grid-template-columns: 1.15fr minmax(0, 1.7fr) 3.1rem;
  gap: 0.25rem;
  align-items: center;
  font-variant-numeric: tabular-nums;
}

.sets-head {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  padding: 0 0.15rem 0.4rem;
}

.sets-head[hidden] { display: none; }

.set-history {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.set-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.65rem 0.7rem 0.7rem;
}

.set-row.is-best {
  background: var(--landed);
  border-color: var(--landed);
}

.set-cols { min-width: 0; }

.set-date,
.set-line,
.set-speed {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.set-buoys {
  font-weight: 800;
  font-size: 1.05rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.set-delete {
  appearance: none;
  width: 100%;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--ink);
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: 12px;
  min-height: 44px;
  padding: 0 0.8rem;
  cursor: pointer;
}

/* ---- trophy shelf (hibala-style coverflow plaques) ---- */
.trophy-shelf {
  padding: 1.25rem 0 0;
}

.shelf-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0 1rem 0.55rem;
}

.shelf-head h2 {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink, #28203C);
}

.shelf-note {
  margin: 0;
  font-size: 0.72rem;
  color: var(--mute);
}

.trophy-stage {
  position: relative;
  padding: 0.35rem 0 0.85rem;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(40, 32, 60, 0.08), transparent 55%),
    linear-gradient(180deg, #F4F7FB 0%, #FBFDFF 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.shelf-list {
  list-style: none;
  margin: 0;
  padding: 0.85rem 18% 1.65rem;
  display: flex;
  align-items: flex-end;
  gap: 0.65rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 18%;
  -webkit-overflow-scrolling: touch;
  perspective: 900px;
  min-height: 9.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.shelf-list::-webkit-scrollbar { display: none; }

.trophy-card {
  flex: 0 0 auto;
  width: 6.6rem;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.28rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform: scale(0.86) rotateY(18deg);
  opacity: 0.55;
  transition: transform 0.28s ease, opacity 0.28s ease, filter 0.28s ease;
  filter: saturate(0.75);
}

.trophy-card.is-center {
  transform: scale(1.08) rotateY(0deg);
  opacity: 1;
  filter: none;
  z-index: 2;
}

.trophy-card.is-earned.is-center {
  filter: drop-shadow(0 10px 18px rgba(252, 82, 0, 0.22));
}

.trophy-plate {
  position: relative;
  width: 5.6rem;
  height: 5.6rem;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #FFFFFF 0%, #F2F5F9 100%);
  border: 2px solid rgba(40, 32, 60, 0.12);
  box-shadow: 0 8px 18px rgba(17, 17, 17, 0.08);
}

.trophy-card.is-earned .trophy-plate {
  border-color: rgba(252, 82, 0, 0.45);
  background: linear-gradient(160deg, #FFFFFF 0%, #FFE8DC 100%);
}

.trophy-card.is-locked .trophy-plate {
  background: linear-gradient(160deg, #F7F9FC 0%, #E8EEF5 100%);
}

.trophy-medal { display: block; line-height: 0; }
.trophy-medal svg { display: block; }

.trophy-badge {
  position: absolute;
  left: 50%;
  bottom: -0.45rem;
  transform: translateX(-50%);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: #FFFFFF;
  white-space: nowrap;
}

.trophy-badge.is-lock {
  background: #9AA3AF;
}

.trophy-title {
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  max-width: 6.4rem;
}

.trophy-card.is-locked .trophy-title { color: #5C6672; }

.trophy-when,
.trophy-how {
  font-size: 0.62rem;
  line-height: 1.25;
  color: var(--mute);
  max-width: 6.4rem;
}
.trophy-how {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.trophy-plank {
  height: 12px;
  margin: -0.35rem 0.75rem 0;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.35), transparent 40%),
    linear-gradient(90deg, #8B5A2B 0%, #C48A4A 18%, #8B5A2B 36%, #A66B35 55%, #7A4A22 78%, #C48A4A 100%);
  box-shadow: 0 6px 14px rgba(40, 32, 60, 0.18);
}

.trophy-caption {
  margin: 0.7rem 1rem 0;
  padding: 0.65rem 0.75rem 0.75rem;
  border-radius: 14px;
  background: var(--navy);
  color: var(--on-navy);
  text-align: center;
}

.trophy-cap-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9EF;
}

.trophy-cap-title {
  margin: 0 0 0.35rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #FBFDFF;
}

.trophy-cap-body {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.4;
  color: rgba(220, 240, 255, 0.78);
}

.shelf-empty {
  margin: 0.35rem 1rem 0;
  font-size: 0.82rem;
  color: var(--mute);
}

.shelf-empty[hidden] { display: none; }

/* ---- toast / footer / a11y ---- */
.app-toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%) translateY(12px);
  max-width: min(22rem, calc(100% - 1.5rem));
  background: var(--navy);
  color: var(--on-navy);
  padding: 0.7rem 0.95rem;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(17, 17, 17, 0.18);
  font-size: 0.88rem;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  z-index: 40;
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.app-toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.app-toast strong {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.15rem;
}

footer {
  margin: 1.4rem 0 0;
  padding: 0 1.2rem;
  color: var(--mute);
  font-size: 0.78rem;
  text-align: center;
}

footer p { margin: 0; }

button, .chip, .tab, .buoy-btn, .units-seg button { touch-action: manipulation; user-select: none; }

button,
.trick-label input,
.tab,
.chip,
.buoy-btn {
  transition: transform 120ms ease, background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

button:active,
.trick-label input:active,
.tab:active,
.chip:active,
.buoy-btn:active {
  transform: scale(0.98);
}

.trick-label input:focus-visible,
.mode-toggle:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--chip);
  outline-offset: 2px;
}

@media (max-width: 430px) {
  .add-row { flex-wrap: wrap; }
  .add-row input[type="search"] { flex: 1 1 100%; }
  .add-row input[type="text"] { flex: 1 1 100%; }
  input[type="date"] { max-width: 100%; width: 100%; }
}

/* ---- club roster ---- */
.roster-block {
  margin: 0 0 1rem;
}

.roster-block .chip-label { margin-bottom: 0.45rem; }

.club-signin-note {
  margin: 0.65rem 1rem 0;
  color: var(--mute);
  font-size: 0.92rem;
  font-weight: 600;
}
.club-signin-note[hidden],
#junior-block[hidden] { display: none; }

.chip.is-skier.is-on {
  background: var(--landed);
  color: var(--ink);
  border-color: var(--landed);
}

.add-skier-form {
  margin-top: 0.55rem;
}

.add-skier-form .add-row {
  display: flex;
  gap: 0.45rem;
  align-items: stretch;
  flex-wrap: nowrap;
}

.add-skier-form input[type="text"] {
  flex: 1;
  min-width: 0;
  font: inherit;
  color: var(--ink);
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  min-height: var(--cta);
}

.add-skier-form .btn-primary {
  width: auto;
  margin-top: 0;
  flex: 0 0 auto;
  padding: 0 1rem;
  min-height: var(--cta);
  white-space: nowrap;
}

/* ---- latest session + club board ---- */
.board-block {
  margin: 1.15rem 0 0;
}

.board-title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mute);
}

.board-kicker {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}

.board-table { margin-top: 0.45rem; }

.board-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.board-head,
.session-cols,
.club-cols,
.beat-cols {
  display: grid;
  gap: 0.25rem;
  align-items: center;
  font-variant-numeric: tabular-nums;
}

.session-head,
.session-cols {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.5fr) 3.1rem 3.4rem;
}

.club-head,
.club-cols {
  grid-template-columns: 1.5rem minmax(0, 1.05fr) 3.2rem minmax(0, 1.45fr) 3.1rem;
}

.beat-head,
.beat-cols {
  grid-template-columns: 1.5rem minmax(0, 1.1fr) 3.2rem 3.1rem minmax(3.6rem, 0.9fr);
}

.board-head {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mute);
  padding: 0 0.15rem 0.4rem;
}

.board-head[hidden] { display: none; }

.board-row {
  min-height: var(--tap);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.55rem 0.7rem;
  display: flex;
  align-items: center;
}

.board-row.is-you {
  background: var(--landed);
  border-color: var(--landed);
}

.board-row.is-first:not(.is-you) {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--on-navy);
}

.board-row.is-first:not(.is-you) .board-name,
.board-row.is-first:not(.is-you) .board-date,
.board-row.is-first:not(.is-you) .board-line,
.board-row.is-first:not(.is-you) .board-speed,
.board-row.is-first:not(.is-you) .board-rank,
.board-row.is-first:not(.is-you) .board-score,
.board-row.is-first:not(.is-you) .board-pass,
.board-row.is-first:not(.is-you) .board-delta,
.board-row.is-first:not(.is-you) .board-need {
  color: var(--on-navy);
}

.board-rank {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.board-name,
.board-date,
.board-line,
.board-speed {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-date {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--mute);
}

.board-name { font-weight: 800; }

.board-buoys,
.board-score {
  font-weight: 800;
  font-size: 1.05rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.board-delta {
  font-weight: 800;
  font-size: 0.92rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.board-delta.is-up {
  color: var(--accent);
}

.board-need {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--mute);
  text-align: right;
  white-space: nowrap;
}

.board-pass {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-cols,
.club-cols,
.beat-cols { width: 100%; min-width: 0; }

.recency-row {
  flex-direction: column;
  align-items: stretch;
  gap: 0.02rem;
  min-height: 0;
  padding: 0.22rem 0.5rem;
}
.recency-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
}
.recency-name-wrap {
  flex: 1;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}
.recency-name-wrap .board-name {
  flex: 0 1 auto;
  min-width: 0;
}
.recency-sport-icon {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  color: #9AA3AF;
  display: block;
}
.recency-top .board-date { flex: 0 0 auto; text-align: right; }
.recency-detail {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  min-width: 0;
}
.recency-facts {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0.4rem;
  min-width: 0;
  overflow: hidden;
}
.recency-facts > * { flex: 0 0 auto; }
.recency-facts .recency-trick,
.recency-facts .board-pass { flex: 0 1 auto; }
.recency-acts {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.05rem;
  margin-left: auto;
}
.recency-kind {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--chip);
}
.recency-trick {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--mute);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recency-row.is-you .recency-kind { color: var(--navy); }
.recency-row .board-buoys,
.recency-row .board-score {
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--mute);
}
.recency-row .board-pass {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--mute);
}

.recency-social {
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
  margin-top: 0.02rem;
  padding-top: 0.2rem;
  border-top: 1px solid var(--line);
}
.highfive-btn,
.comment-btn,
.recency-photo-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.24rem;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy);
  background: transparent;
  border: 0;
  border-radius: 0;
  min-height: 40px;
  min-width: 30px;
  padding: 0.05rem 0.15rem;
  cursor: pointer;
}

.recency-photo-btn.is-filled {
  color: #FFFFFF;
  background: var(--accent);
  border-radius: 8px;
  min-width: 34px;
  padding: 0.1rem 0.25rem;
}
.recency-photo-btn .trick-photo-icon {
  display: grid;
  place-content: center;
  line-height: 0;
}
.highfive-btn.is-on {
  background: transparent;
  border: 0;
  color: #FC5200;
}
.comment-btn.is-on {
  background: transparent;
  border: 0;
  color: #FC5200;
}
.highfive-icon,
.comment-icon {
  display: block;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.highfive-btn.is-on .highfive-icon {
  fill: currentColor;
  stroke: none;
}
.highfive-count,
.comment-count {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 0.78rem;
  line-height: 1;
}
.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.comment-item {
  display: block;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--ink);
}
.comment-author {
  font-weight: 800;
  color: var(--navy);
  margin-right: 0.35rem;
}
.comment-body {
  font-weight: 400;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.comment-delete {
  appearance: none;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--mute);
  background: transparent;
  border: 0;
  cursor: pointer;
  min-height: 0;
  padding: 0;
  margin-left: 0.4rem;
}
.comment-form {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.comment-form input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 0.8rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 0.35rem 0;
  min-height: 36px;
  background: transparent;
  color: var(--ink);
}
.comment-form input:focus {
  outline: none;
  border-bottom-color: var(--navy);
}
.comment-form input::placeholder {
  color: var(--mute);
}
.comment-form button {
  appearance: none;
  flex: 0 0 auto;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  background: transparent;
  border: 0;
  border-radius: 0;
  min-height: 36px;
  padding: 0.1rem 0.2rem;
  cursor: pointer;
}

@media (max-width: 430px) {
  .add-skier-form .add-row { flex-wrap: wrap; }
  .add-skier-form input[type="text"] { flex: 1 1 100%; }
  .add-skier-form .btn-primary { width: 100%; }
}


/* ---- club invite / admin / gates ---- */
.mast-admin-link,
.preview-nav {
  flex: 0 0 auto;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--chip);
  text-decoration: none;
  border: 2px solid var(--chip);
  border-radius: 8px;
  min-height: 36px;
  padding: 0.35rem 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mast-admin-link[hidden] { display: none; }
.mast-admin-link:hover,
.preview-nav:hover { background: var(--track); }

.mast-you-link {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  color: var(--navy);
  background: transparent;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}
.mast-you-link:hover {
  background: var(--track);
  border-color: var(--accent);
  color: var(--accent);
}
.mast-you-link svg { display: block; }

.gate-card {
  margin: 0.85rem 1rem 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.95rem 1rem 1.05rem;
}
.gate-title {
  margin: 0.15rem 0 0.45rem;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}
.gate-card .btn-primary { margin-top: 0.65rem; }
.gate-card .btn-ghost { margin-top: 0.45rem; }
.gate-card input[type="email"],
.gate-card input[type="password"],
.gate-card input[type="text"],
.gate-card select,
.invite-link-box input[type="text"] {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  min-height: var(--tap);
  margin: 0.25rem 0 0.55rem;
}

.club-error {
  margin: 0.65rem 1rem 0;
  color: #b42318;
  font-size: 0.92rem;
  font-weight: 700;
}
.club-error[hidden],
#pending-gate[hidden],
#denied-gate[hidden],
#join-gate[hidden],
#invite-only-note[hidden],
#join-error[hidden],
#club-tools[hidden],
#admin-app[hidden],
#admin-gate[hidden],
#pending-section[hidden],
#admins-section[hidden] { display: none; }

.btn-ghost {
  appearance: none;
  display: block;
  width: 100%;
  font: inherit;
  font-weight: 800;
  font-size: 1rem;
  padding: 0 1rem;
  min-height: var(--cta);
  border-radius: 14px;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.invite-kind {
  display: flex;
  gap: 1rem;
  margin-top: 0.55rem;
  font-size: 0.92rem;
  font-weight: 700;
}
.invite-kind label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
}

.invite-link-box {
  margin-top: 0.75rem;
}
.invite-link-box[hidden] { display: none; }

.club-tools { margin-bottom: 1rem; }

.roster-names {
  list-style: none;
  margin: 0.45rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.roster-name {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  font-weight: 700;
}

.admin-list {
  list-style: none;
  margin: 0.45rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.admin-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.65rem 0.7rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.admin-row-main { min-width: 0; }
.admin-row .btn-primary,
.admin-row .btn-ghost { width: 100%; min-height: 44px; margin-top: 0; }
.admin-meta {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mute);
}

#login-form .chip-label { margin-top: 0.35rem; }


/* ---- settings sheet ---- */
.settings-btn {
  appearance: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--navy);
  cursor: pointer;
}
.settings-btn[aria-expanded="true"] {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.settings-scrim {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(17, 17, 17, 0.38);
}
.settings-scrim[hidden],
.settings-panel[hidden] { display: none; }
.settings-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 41;
  max-width: 430px;
  margin: 0 auto;
  max-height: 88vh;
  overflow: auto;
  background: var(--bg);
  border-radius: 18px 18px 0 0;
  padding: 1rem 1rem calc(1.25rem + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 32px rgba(17, 17, 17, 0.14);
}
.settings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.settings-head h2 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.settings-close {
  appearance: none;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--chip);
  background: transparent;
  border: 2px solid var(--chip);
  border-radius: 8px;
  min-height: 36px;
  padding: 0 0.85rem;
  cursor: pointer;
}
.settings-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1rem 1rem;
  margin-bottom: 0.85rem;
}
.settings-section .units-seg { margin-top: 0.35rem; }
.settings-section .chip-label { margin-top: 0; }
.settings-section.club-tools { margin-bottom: 0; }
body.settings-open { overflow: hidden; }

.faq-q {
  margin: 0.7rem 0 0.25rem;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--navy);
}
.faq-q:first-of-type { margin-top: 0.45rem; }
.faq-a {
  margin: 0;
  font-size: 0.92rem;
  color: var(--mute);
  line-height: 1.4;
}

.kb-feed-title {
  margin: 1rem 1rem 0.35rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mute);
}
.kb-diff {
  display: inline-block;
  margin-left: 0.4rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--chip);
}
.trick-item.is-try .trick-label { color: var(--ink); }
.kb-search { margin: 0.85rem 0 0; }
.kb-search-hint {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  color: var(--mute);
}
.kb-search .add-row {
  margin-top: 0.35rem;
  flex-direction: column;
  align-items: stretch;
}
.kb-search .btn-primary { width: 100%; margin-top: 0; }
.kb-search.is-emphasize {
  padding: 0.65rem 0.7rem 0.75rem;
  border-radius: 16px;
  background: #FFF4EC;
  border: 2px solid rgba(252, 82, 0, 0.45);
  box-shadow: 0 0 0 3px rgba(252, 82, 0, 0.12);
}
.kb-search.is-emphasize .kb-search-hint {
  color: var(--accent);
  font-weight: 700;
}
.kb-search.is-emphasize input[name="name"] {
  border-color: rgba(252, 82, 0, 0.55);
  box-shadow: 0 0 0 3px rgba(252, 82, 0, 0.12);
}


#join-error {
  margin: 0.55rem 0 0;
}

#club-select {
  max-width: 11.5rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 36px;
  padding: 0 0.55rem;
  cursor: pointer;
}
#club-select[hidden] { display: none; }

/* ---- kneeboard trick photo icon (club-shared, private storage) ---- */
.trick-photo-wrap {
  display: flex;
}

.trick-photo-btn {
  appearance: none;
  display: grid;
  place-content: center;
  width: 2.6rem;
  min-width: 2.6rem;
  height: 2.6rem;
  min-height: 40px;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--mute);
  cursor: pointer;
}

.trick-item.is-done .trick-photo-btn {
  border-color: rgba(17, 17, 17, 0.18);
  background: var(--surface);
}

.trick-photo-btn.is-filled {
  border-color: var(--accent);
  background: var(--accent);
  color: #FFFFFF;
}

.trick-photo-icon {
  display: grid;
  place-content: center;
  line-height: 0;
}

/* ---- trick photo lightbox ---- */
.photo-lightbox-scrim {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.72);
  z-index: 60;
}

.photo-lightbox-scrim[hidden] { display: none; }

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 61;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.photo-lightbox[hidden] { display: none; }

.photo-lightbox-inner {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
  max-width: 30rem;
  max-height: calc(100vh - 2rem);
  overflow: auto;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 0.75rem;
  box-shadow: 0 20px 48px rgba(17, 17, 17, 0.35);
}

.photo-lightbox-close {
  align-self: flex-end;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--mute);
  font: inherit;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.35rem 0.5rem;
  cursor: pointer;
}

.photo-lightbox-img {
  display: block;
  margin: 0 auto;
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 9rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  background: var(--track);
}

.photo-lightbox-actions {
  display: flex;
  gap: 0.5rem;
}

.photo-lightbox-actions[hidden] { display: none; }

.photo-lightbox-replace,
.photo-lightbox-remove {
  flex: 1;
  appearance: none;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.5rem 0.6rem;
  min-height: 44px;
  border-radius: 10px;
  cursor: pointer;
}

.photo-lightbox-remove {
  border-color: #B3261E;
  color: #B3261E;
}

.photo-lightbox-confirm {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.photo-lightbox-confirm[hidden] { display: none; }

.photo-lightbox-confirm p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink);
}

.photo-lightbox-confirm-row {
  display: flex;
  gap: 0.5rem;
}

.photo-lightbox-confirm-cancel,
.photo-lightbox-confirm-remove {
  flex: 1;
  appearance: none;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.5rem 0.6rem;
  min-height: 44px;
  border-radius: 10px;
  cursor: pointer;
}

.photo-lightbox-confirm-remove {
  border-color: #B3261E;
  background: #B3261E;
  color: #FFFFFF;
}

body.photo-lightbox-open { overflow: hidden; }


/* ---- Club page category + dense activity ---- */
.club-cats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  margin: 0.65rem 0 0;
}
.club-cat {
  appearance: none;
  font: inherit;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--chip);
  background: var(--surface);
  border: 2px solid var(--chip);
  border-radius: 999px;
  min-height: var(--tap);
  padding: 0.35rem 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  user-select: none;
}
.club-cat.is-active {
  background: var(--chip);
  color: #FFFFFF;
  border-color: var(--chip);
}
.club-dense-list {
  gap: 0.18rem;
  margin-top: 0.3rem;
}
.club-lb-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-height: 0;
  padding: 0.26rem 0.5rem;
}
.club-lb-main {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1.1fr) minmax(0, 1.4fr) auto;
  gap: 0.35rem;
  align-items: center;
  width: 100%;
}
.club-lb-row.is-kneeboard .club-lb-main {
  grid-template-columns: 1.6rem minmax(0, 1fr) auto;
}
.club-lb-row .board-name,
.club-lb-row .board-name-btn {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.board-name-btn {
  appearance: none;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--navy);
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}
.board-name-btn:hover {
  color: var(--accent);
  text-decoration: underline;
}
.club-lb-row .board-pass {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.club-lb-row .board-metric {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  justify-self: end;
}
.club-lb-row .board-score {
  justify-self: end;
  white-space: nowrap;
}
.club-lb-expand {
  margin-top: 0.28rem;
  padding: 0.28rem 0 0.1rem 1.95rem;
  border-top: 1px solid var(--line);
}
.club-lb-expand-empty {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mute);
}
.club-lb-runs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}
.club-lb-run {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.2rem 0.45rem;
  align-items: baseline;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
}
.club-lb-row.is-slalom .club-lb-run {
  grid-template-columns: minmax(0, 1.2fr) auto auto;
}
.club-lb-run-fact {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.club-lb-run-score {
  font-variant-numeric: tabular-nums;
  color: var(--mute);
  white-space: nowrap;
}
.club-lb-run-date {
  color: var(--mute);
  font-weight: 600;
  white-space: nowrap;
  justify-self: end;
}
.club-lb-member-more {
  min-height: 40px;
  margin-top: 0.05rem;
  font-size: 0.82rem;
}
.see-more-btn {
  appearance: none;
  font: inherit;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--navy);
  background: transparent;
  border: 0;
  border-radius: 0;
  min-height: var(--tap);
  padding: 0.2rem 0.1rem;
  margin-top: 0.15rem;
  cursor: pointer;
  text-align: left;
  touch-action: manipulation;
}
.see-more-btn[hidden] { display: none; }
#club-leaderboard-section .board-kicker {
  margin: 0.12rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--mute);
}
