:root {
  color-scheme: light;
  --ink: #17211d;
  --muted: #65726d;
  --bg: #f5f8f4;
  --paper: #ffffff;
  --line: #dbe5dc;
  --green: #1f6b4c;
  --green-dark: #174d39;
  --green-soft: #e5f2e9;
  --navy: #223545;
  --sky: #dfeff6;
  --gold: #d9a741;
  --coral: #d8634b;
  --focus: #9b5a17;
  --shadow: 0 20px 58px rgba(23, 34, 29, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--green-dark);
}

button,
input,
select,
textarea {
  font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.8rem);
  letter-spacing: 0;
  line-height: 0.98;
  margin-bottom: 22px;
  max-width: 900px;
}

h2 {
  font-size: clamp(1.8rem, 3.8vw, 3.1rem);
  letter-spacing: 0;
  line-height: 1.08;
  margin-bottom: 12px;
}

h3 {
  font-size: 1.08rem;
  line-height: 1.25;
  margin-bottom: 7px;
}

.site-header {
  align-items: center;
  background: rgba(245, 248, 244, 0.92);
  border-bottom: 1px solid rgba(219, 229, 220, 0.82);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 15px max(22px, calc((100vw - 1180px) / 2));
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}

.brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-weight: 900;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--green);
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 950;
  height: 38px;
  justify-content: center;
  letter-spacing: 0;
  width: 38px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

nav a {
  color: var(--muted);
  font-weight: 820;
  text-decoration: none;
}

nav a:hover {
  color: var(--green-dark);
}

main {
  overflow: hidden;
}

.hero {
  color: #ffffff;
  display: grid;
  min-height: calc(100vh - 69px);
  position: relative;
}

.passport-hero {
  min-height: min(780px, calc(100vh - 69px));
}

.hero::after {
  background: linear-gradient(90deg, rgba(12, 26, 20, 0.82), rgba(12, 26, 20, 0.46) 58%, rgba(12, 26, 20, 0.08));
  content: "";
  inset: 0;
  position: absolute;
}

.hero-image {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.hero-overlay {
  align-self: center;
  margin: 0 auto;
  max-width: 1180px;
  padding: clamp(62px, 8vw, 110px) 24px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.hero-copy {
  font-size: clamp(1.12rem, 2vw, 1.42rem);
  font-weight: 720;
  line-height: 1.42;
  margin-bottom: 28px;
  max-width: 690px;
}

.eyebrow {
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 11px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f4d27e;
}

.actions,
.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 48px;
  padding: 9px 17px;
  text-decoration: none;
}

.button.primary {
  background: var(--green);
  border-color: var(--green);
  color: #ffffff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
}

.button:hover {
  border-color: var(--green-dark);
}

.button.primary:hover {
  background: var(--green-dark);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.small-button {
  font-size: 0.86rem;
  min-height: 38px;
  padding: 7px 11px;
}

.danger-button {
  color: #8d2e1f;
}

.danger-button:hover {
  border-color: var(--coral);
  color: #6e2318;
}

.text-link {
  color: var(--green-dark);
  font-weight: 900;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.passport-strip {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.passport-strip div {
  border-right: 1px solid var(--line);
  padding: 22px max(22px, calc((100vw - 1180px) / 2));
}

.passport-strip div:first-child,
.passport-strip div:nth-child(2),
.passport-strip div:nth-child(3) {
  padding-right: 24px;
}

.passport-strip div:nth-child(2),
.passport-strip div:nth-child(3),
.passport-strip div:nth-child(4) {
  padding-left: 24px;
}

.passport-strip strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.passport-strip span {
  color: var(--muted);
  display: block;
  margin-top: 6px;
}

.section,
.dashboard-section,
.profile-section,
.profile-hero,
.dashboard-hero {
  margin: 0 auto;
  max-width: 1180px;
  padding: 82px 24px 0;
}

.two-column {
  align-items: start;
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
}

.section-copy {
  max-width: 720px;
}

.section-copy p:not(.eyebrow),
.section-heading p:not(.eyebrow),
.dashboard-hero p,
.login-panel p {
  color: var(--muted);
  font-size: 1.05rem;
}

.compact-heading {
  max-width: 760px;
}

.feature-grid,
.passport-grid,
.course-card-grid,
.memory-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-grid article,
.course-card-grid article,
.map-notes article,
.timeline article,
.tournament-list article,
.achievement-grid article,
.memory-grid article,
.goal-list article,
.ai-flow-grid article,
.login-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.feature-grid p,
.course-card-grid p,
.map-notes p,
.map-notes span,
.timeline p,
.tournament-list p,
.achievement-grid p,
.profile-summary p,
.profile-meta,
.share-status,
.memory-grid p,
.goal-list span,
.ai-flow-grid p {
  color: var(--muted);
}

.card-kicker {
  color: var(--coral);
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.map-feature {
  min-width: 0;
}

.map-frame {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(23, 34, 29, 0.1);
  height: 560px;
  width: 100%;
}

.map-frame.small {
  height: 430px;
}

.public-map-placeholder {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(31, 107, 76, 0.84), rgba(34, 53, 69, 0.78)),
    url("/assets/junior-golf-hero.png") center / cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #ffffff;
  display: grid;
  min-height: 430px;
  padding: 28px;
}

.public-map-placeholder strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.public-map-placeholder span {
  display: block;
  font-size: 1.06rem;
  font-weight: 760;
  margin-top: 12px;
  max-width: 460px;
}

.quiet-about {
  align-items: center;
  background: var(--navy);
  color: #ffffff;
  display: flex;
  gap: 28px;
  justify-content: space-between;
  margin-top: 82px;
  padding: 44px max(24px, calc((100vw - 1180px) / 2));
}

.quiet-about div {
  max-width: 760px;
}

.quiet-about .eyebrow,
.quiet-about p {
  color: #c9dbe2;
}

.profile-page main {
  overflow: visible;
}

.directory-page,
.profile-page main {
  margin: 0 auto;
  max-width: 1180px;
}

.directory-page {
  padding: 72px 24px 88px;
}

.directory-hero {
  margin-bottom: 28px;
  max-width: 760px;
}

.directory-hero h1 {
  color: var(--ink);
  font-size: clamp(2.7rem, 6vw, 5rem);
}

.directory-hero p {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 680px;
}

.golfer-directory {
  display: grid;
  gap: 14px;
  max-width: 780px;
}

.golfer-card {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 16px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 18px;
  text-decoration: none;
}

.golfer-card:hover {
  border-color: rgba(31, 107, 76, 0.45);
  box-shadow: 0 14px 32px rgba(23, 34, 29, 0.1);
}

.golfer-avatar {
  align-items: center;
  background: linear-gradient(135deg, var(--green), var(--gold));
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 950;
  height: 68px;
  justify-content: center;
  width: 68px;
}

.golfer-card strong,
.golfer-card small,
.golfer-card em {
  display: block;
}

.golfer-card small {
  color: var(--muted);
  font-style: normal;
}

.golfer-card em {
  color: var(--green-dark);
  font-style: normal;
  font-weight: 900;
}

.profile-hero {
  display: grid;
  gap: 16px;
}

.profile-masthead {
  padding: 58px 24px 18px;
}

.profile-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 24px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: clamp(24px, 5vw, 44px);
}

.passport-card {
  background:
    linear-gradient(135deg, rgba(223, 239, 246, 0.7), rgba(229, 242, 233, 0.68)),
    var(--paper);
}

.profile-photo {
  align-items: center;
  background: linear-gradient(135deg, var(--green), var(--gold));
  border: 4px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 4rem;
  font-weight: 950;
  height: 132px;
  justify-content: center;
  width: 132px;
}

.profile-summary h1 {
  color: var(--ink);
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  margin-bottom: 6px;
}

.profile-location {
  color: var(--green-dark);
  font-weight: 900;
  margin-bottom: 10px;
}

.passport-map-band {
  margin: 0 24px 28px;
  position: relative;
}

.profile-map-frame {
  border-radius: 8px;
  box-shadow: none;
  height: 430px;
}

.passport-map-band .profile-stats {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(219, 229, 220, 0.9);
  border-radius: 8px;
  bottom: 18px;
  box-shadow: 0 16px 38px rgba(23, 34, 29, 0.14);
  left: 18px;
  max-width: 620px;
  padding: 10px;
  position: absolute;
  right: 18px;
}

.profile-stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 0;
}

.profile-stats div {
  background: var(--green-dark);
  border-radius: 8px;
  color: #ffffff;
  padding: 16px;
}

.profile-content-layout {
  align-items: start;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) 320px;
  padding: 0 24px;
}

.profile-main-column,
.profile-side-column {
  display: grid;
  gap: 24px;
}

.profile-side-column {
  position: sticky;
  top: 88px;
}

.compact-profile-section {
  margin: 0;
  padding: 0;
}

.course-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}

.course-chip-row a,
.course-chip-row button {
  background: var(--green);
  border: 1px solid transparent;
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 900;
  padding: 7px 12px;
  text-decoration: none;
}

.course-chip-row button.is-active {
  background: var(--ink);
}

.profile-stats strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.profile-stats span {
  opacity: 0.82;
}

.course-map-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 340px;
}

.map-notes,
.timeline,
.tournament-list,
.achievement-grid,
.goal-list,
.ai-flow-grid {
  display: grid;
  gap: 14px;
}

.map-notes article span {
  display: block;
  margin-bottom: 8px;
}

.course-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.course-history-grid {
  grid-template-columns: 1fr;
}

.course-card-grid article {
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr);
}

.course-card-grid article.is-selected {
  border-color: rgba(47, 109, 60, 0.52);
  box-shadow: 0 12px 28px rgba(47, 109, 60, 0.12);
}

.course-card-grid article span {
  align-items: center;
  background: var(--green-soft);
  border-radius: 8px;
  color: var(--green-dark);
  display: inline-flex;
  font-weight: 950;
  height: 42px;
  justify-content: center;
  width: 48px;
}

.course-card-grid h3,
.course-card-grid p {
  grid-column: 2;
}

.course-card-grid h3 {
  margin-bottom: 0;
}

.course-card-grid p {
  margin-bottom: 0;
}

.course-verification {
  color: var(--green-dark);
  font-size: 0.86rem;
  font-weight: 850;
  text-transform: capitalize;
}

.course-select-button {
  background: transparent;
  border: 0;
  color: var(--green-dark);
  cursor: pointer;
  font-weight: 900;
  margin-top: 4px;
  padding: 0;
  text-align: left;
}

.selected-course-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  margin-top: 16px;
  padding: 18px;
}

.selected-course-heading {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: 52px minmax(0, 1fr);
}

.selected-course-heading > span {
  align-items: center;
  background: var(--green);
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  font-weight: 950;
  height: 46px;
  justify-content: center;
}

.selected-course-heading h3,
.selected-course-heading p {
  margin-bottom: 0;
}

.course-story-list {
  display: grid;
  gap: 10px;
}

.course-story-list article {
  border-left: 4px solid var(--green);
  border-radius: 8px;
  padding: 12px 14px;
}

.course-story-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.course-entry-edit {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green-dark);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 6px 10px;
}

.course-entry-edit:hover {
  border-color: rgba(47, 109, 60, 0.45);
}

.course-story-list h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.course-story-list p {
  margin-bottom: 0;
}

.selected-course-photos {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.selected-course-photos figure {
  margin: 0;
}

.selected-course-photos img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

.selected-course-photos figcaption {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
  margin-top: 6px;
}

.timeline article {
  border-left: 6px solid var(--green);
}

.timeline-date {
  color: var(--green-dark);
  display: block;
  font-weight: 900;
  margin-bottom: 8px;
}

.achievement-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.achievement-ribbon-grid {
  grid-template-columns: 1fr;
}

.achievement-grid span {
  align-items: center;
  background: var(--sky);
  border-radius: 8px;
  color: var(--navy);
  display: inline-flex;
  font-weight: 950;
  height: 44px;
  justify-content: center;
  margin-bottom: 14px;
  width: 48px;
}

.achievement-grid strong {
  display: block;
}

.tournament-list article {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.result {
  background: var(--navy);
  border-radius: 8px;
  color: #ffffff;
  flex: 0 0 auto;
  font-weight: 950;
  padding: 12px 14px;
}

.memory-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.memory-grid article {
  display: grid;
  gap: 16px;
  padding: 0;
  overflow: hidden;
}

.memory-grid img,
.memory-placeholder {
  aspect-ratio: 4 / 3;
  background: var(--sky);
  min-height: 190px;
  object-fit: cover;
  width: 100%;
}

.memory-placeholder {
  align-items: center;
  color: var(--navy);
  display: flex;
  font-size: 1.35rem;
  font-weight: 950;
  justify-content: center;
}

.memory-placeholder.accent {
  background: var(--green-soft);
  color: var(--green-dark);
}

.memory-grid article div:last-child {
  padding: 0 20px 20px;
}

.goal-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compact-goal-list {
  grid-template-columns: 1fr;
}

.profile-edit-action[hidden],
.quick-add-backdrop[hidden],
.quick-add-body[hidden] {
  display: none;
}

.quick-add-backdrop {
  align-items: center;
  background: rgba(18, 24, 21, 0.64);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 40;
}

.quick-add-modal {
  background: var(--paper);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(9, 16, 13, 0.34);
  max-height: min(760px, calc(100vh - 40px));
  max-width: 680px;
  overflow: auto;
  width: min(100%, 680px);
}

.quick-add-header {
  align-items: center;
  background: var(--green-dark);
  color: #ffffff;
  display: grid;
  gap: 12px;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  padding: 14px 16px;
}

.quick-add-header h2 {
  color: #ffffff;
  font-size: 1.18rem;
  margin-bottom: 0;
  text-align: center;
}

.icon-button {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font-size: 1.25rem;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.quick-add-header-spacer {
  width: 38px;
}

.quick-add-body {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.quick-add-body label {
  display: grid;
  gap: 7px;
  font-weight: 850;
}

.quick-add-body input,
.quick-add-body textarea,
.quick-add-body select {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 48px;
  padding: 10px 12px;
  width: 100%;
}

.quick-add-body textarea {
  resize: vertical;
}

.quick-add-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-photo-drop {
  border: 1px dashed #b6c8ba;
  border-radius: 8px;
  padding: 14px;
}

.quick-photo-drop input {
  border: 0;
  min-height: 0;
  padding: 0;
}

.quick-photo-preview {
  align-items: center;
  background: var(--green-soft);
  border-radius: 8px;
  color: var(--green-dark);
  display: flex;
  font-weight: 850;
  justify-content: center;
  min-height: 84px;
  padding: 12px;
  text-align: center;
}

.quick-photo-preview.has-image {
  background-position: center;
  background-size: cover;
  color: #ffffff;
  min-height: 130px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.48);
}

.quick-add-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quick-review-card {
  display: grid;
  gap: 14px;
}

.quick-review-card h3 {
  font-size: 1.45rem;
}

.quick-check {
  align-content: center;
  color: var(--muted);
  display: flex;
  font-weight: 760;
  gap: 10px;
  min-height: 48px;
}

.quick-check input {
  min-height: auto;
  width: auto;
}

.quick-add-status {
  color: var(--muted);
  margin-bottom: 0;
}

.goal-list strong,
.goal-list span {
  display: block;
}

.goal-list span {
  margin-top: 8px;
}

.dashboard-hero {
  align-items: center;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1fr) 380px;
}

.dashboard-workspace {
  overflow: visible;
}

.compact-dashboard-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.6rem);
}

.dashboard-hero h1 {
  font-size: clamp(2.8rem, 5vw, 4.8rem);
}

.login-panel {
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}

.login-panel label {
  display: grid;
  gap: 7px;
  font-weight: 850;
}

.login-panel input {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 48px;
  padding: 10px 12px;
  width: 100%;
}

.login-panel textarea,
.editor-panel textarea,
.editor-panel input,
.editor-panel select,
.notice-panel input,
.account-settings-panel input {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 48px;
  padding: 10px 12px;
  width: 100%;
}

.editor-panel textarea {
  resize: vertical;
}

.login-panel p {
  font-size: 0.92rem;
  margin-bottom: 0;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-toolbar,
.notice-panel,
.passport-utility-panel,
.account-settings-panel {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 18px;
  padding: 20px;
}

.passport-utility-panel {
  align-items: start;
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr);
}

.passport-utility-panel h2 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.passport-utility-links {
  display: grid;
  gap: 12px;
}

.passport-utility-card {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 16px;
}

.passport-utility-card h3 {
  font-size: 1.18rem;
}

.passport-utility-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.account-settings-panel {
  align-items: end;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(200px, 0.7fr) minmax(240px, 0.9fr) minmax(180px, auto);
}

.account-settings-panel h2 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.account-settings-panel label {
  display: grid;
  gap: 7px;
  font-weight: 850;
}

.account-settings-actions {
  display: grid;
  gap: 8px;
}

.dashboard-snapshot {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.dashboard-snapshot div {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.dashboard-snapshot strong {
  display: block;
  font-size: 1.7rem;
  line-height: 1;
}

.dashboard-snapshot span {
  color: var(--muted);
  display: block;
  margin-top: 7px;
}

.workflow-strip {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
  overflow: hidden;
}

.workflow-strip div {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 14px;
}

.workflow-strip div + div {
  border-left: 1px solid var(--line);
}

.workflow-strip strong {
  align-items: center;
  background: var(--green-soft);
  border-radius: 999px;
  color: var(--green-dark);
  display: inline-flex;
  font-size: 0.82rem;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.workflow-strip span {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 760;
  line-height: 1.35;
}

.setup-checklist {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 18px;
  padding: 20px;
}

.setup-checklist-heading {
  align-items: end;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 0.75fr) minmax(260px, 1fr);
  margin-bottom: 16px;
}

.setup-checklist-heading h2 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.setup-checklist-items {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.setup-checklist-item {
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 116px minmax(0, 1fr);
  padding: 12px;
}

.setup-checklist-item h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.setup-checklist-item p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.setup-status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 900;
  justify-content: center;
  line-height: 1;
  padding: 8px 10px;
  text-align: center;
  text-transform: uppercase;
}

.setup-status-ready {
  background: var(--green-soft);
  color: var(--green-dark);
}

.setup-status-needs {
  background: #fff3d8;
  color: #7a4a00;
}

.setup-status-waiting {
  background: var(--sky);
  color: #234663;
}

.notice-panel {
  align-items: end;
  background: var(--sky);
  grid-template-columns: minmax(0, 1fr) 280px auto;
}

.password-reset-modal:not([hidden]) {
  align-items: end;
  background: var(--paper);
  box-shadow: 0 28px 80px rgba(9, 16, 13, 0.28);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  left: 50%;
  margin: 0;
  max-width: 520px;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 32px);
  z-index: 60;
}

.password-reset-modal:not([hidden])::before {
  background: rgba(18, 24, 21, 0.64);
  content: "";
  inset: -100vh;
  position: fixed;
  z-index: -1;
}

.notice-panel h2,
.dashboard-toolbar h2 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.tiny-status {
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.course-lookup-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.course-lookup-results {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.course-lookup-results article {
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px;
}

.course-lookup-results h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.course-lookup-results p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.editor-grid {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(280px, 0.88fr) minmax(280px, 1fr) minmax(320px, 1.12fr);
}

.editor-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 20px;
}

.editor-panel label,
.notice-panel label {
  display: grid;
  gap: 7px;
  font-weight: 850;
}

.stacked-fields {
  background: var(--green-soft);
  border: 1px solid #bfdac8;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.stacked-fields h3 {
  margin-bottom: 0;
}

.public-link-panel {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.public-link-panel .tiny-status {
  flex-basis: 100%;
}

.form-row {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.entry-field-group {
  display: grid;
  gap: 12px;
}

.check-field {
  align-items: start;
  display: flex;
  gap: 10px;
}

.check-field input {
  flex: 0 0 auto;
  margin-top: 5px;
  min-height: auto;
  width: auto;
}

.compact-check {
  color: var(--muted);
  font-weight: 760;
}

#dashboard-status,
#auth-status {
  color: var(--muted);
  margin-bottom: 0;
}

.entries-section {
  padding-top: 28px;
}

.photo-upload-section {
  padding-top: 28px;
}

.photo-upload-panel {
  align-items: end;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.8fr) minmax(220px, 1fr) minmax(220px, 1fr) auto;
  padding: 20px;
}

.photo-upload-panel h2 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.photo-upload-panel p {
  color: var(--muted);
  margin-bottom: 0;
}

.photo-upload-panel label {
  display: grid;
  gap: 7px;
  font-weight: 850;
}

.photo-upload-panel input,
.photo-upload-panel select {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 48px;
  padding: 10px 12px;
  width: 100%;
}

.entry-list {
  display: grid;
  gap: 12px;
}

.entry-list-item {
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 18px;
}

.entry-list-item h3,
.entry-list-item p {
  margin-bottom: 6px;
}

.entry-thumb {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  margin-bottom: 10px;
  object-fit: cover;
  width: min(180px, 100%);
}

.entry-list-item strong {
  background: var(--green-soft);
  border-radius: 8px;
  color: var(--green-dark);
  font-size: 0.84rem;
  padding: 8px 10px;
}

.entry-actions {
  align-items: end;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 8px;
}

.empty-state {
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  grid-column: 1 / -1;
  margin-bottom: 0;
  padding: 18px;
}

.dashboard-shell {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  overflow: hidden;
}

.dashboard-nav {
  background: var(--navy);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
}

.dashboard-nav .brand-mark {
  margin-bottom: 18px;
}

.dashboard-nav button {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font-weight: 850;
  padding: 10px 12px;
  text-align: left;
}

.dashboard-nav button.active,
.dashboard-nav button:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.dashboard-main {
  padding: clamp(22px, 4vw, 34px);
}

.dashboard-top {
  align-items: start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 22px;
}

.ai-flow-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  margin-top: 82px;
  padding: 24px;
  text-align: center;
}

footer p {
  margin-bottom: 8px;
}

footer nav {
  justify-content: center;
}

@media (max-width: 960px) {
  .passport-strip,
  .two-column,
  .feature-grid,
  .passport-grid,
  .course-map-layout,
  .course-card-grid,
  .achievement-grid,
  .memory-grid,
  .goal-list,
  .profile-content-layout,
  .dashboard-hero,
  .dashboard-snapshot,
  .workflow-strip,
  .setup-checklist-heading,
  .setup-checklist-items,
  .dashboard-shell,
  .ai-flow-grid,
  .editor-grid,
  .photo-upload-panel,
  .notice-panel,
  .passport-utility-panel,
  .selected-course-photos,
  .account-settings-panel {
    grid-template-columns: 1fr;
  }

  .passport-strip div {
    border-right: 0;
    padding: 18px 24px;
  }

  .workflow-strip div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .dashboard-nav {
    flex-direction: row;
    overflow-x: auto;
  }

  .dashboard-nav .brand-mark {
    margin-bottom: 0;
  }

  .profile-side-column {
    position: static;
  }

  .passport-map-band .profile-stats {
    margin-top: 12px;
    max-width: none;
    position: static;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    position: static;
  }

  .hero,
  .passport-hero {
    min-height: 720px;
  }

  .hero::after {
    background: linear-gradient(0deg, rgba(12, 26, 20, 0.86), rgba(12, 26, 20, 0.48));
  }

  .hero-overlay {
    align-self: end;
    padding-top: 250px;
  }

  .section,
  .dashboard-section,
  .profile-section,
  .profile-hero,
  .dashboard-hero {
    padding-top: 62px;
  }

  .profile-card,
  .passport-utility-card,
  .tournament-list article,
  .entry-list-item,
  .entry-actions,
  .dashboard-top,
  .dashboard-toolbar,
  .notice-panel,
  .account-settings-panel,
  .quiet-about {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-card {
    grid-template-columns: 1fr;
  }

  .profile-photo {
    font-size: 3.2rem;
    height: 104px;
    width: 104px;
  }

  .profile-masthead {
    padding: 28px 16px 14px;
  }

  .passport-map-band,
  .profile-content-layout {
    margin-left: 16px;
    margin-right: 16px;
    padding-left: 0;
    padding-right: 0;
  }

  .profile-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-map-frame,
  .map-frame.small {
    height: 360px;
  }

  .map-frame:not(.profile-map-frame) {
    height: 480px;
  }

  .golfer-card {
    grid-template-columns: 1fr;
  }

  .quick-add-modal {
    max-height: calc(100vh - 24px);
  }

  .quick-add-body {
    padding: 18px;
  }

  .quick-add-row,
  .quick-add-actions {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .setup-checklist-item {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 440px) {
  .actions,
  .profile-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .profile-stats {
    grid-template-columns: 1fr;
  }
}
