:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #153b2f;
  background: #f4f0e4;
  --ink: #153b2f;
  --muted: #817d72;
  --soft: #ece9dd;
  --line: #dedbcf;
  --card: #ffffff;
  --accent: #31694f;
  --accent-dark: #31694f;
  --shadow: 0 14px 36px rgba(21, 59, 47, .07);
}
* { box-sizing: border-box; }
html { background: #f4f0e4; min-width: 320px; }
body { margin: 0; min-width: 320px; min-height: 100%; overflow-x: hidden; background: #f4f0e4; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #b8d28d; outline-offset: 3px; }
.app { width: min(100%, 620px); min-height: 100vh; min-height: 100dvh; margin: auto; padding: calc(22px + env(safe-area-inset-top)) calc(18px + env(safe-area-inset-right)) calc(108px + env(safe-area-inset-bottom)) calc(18px + env(safe-area-inset-left)); }
header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 9px; border: 0; background: transparent; color: var(--ink); font-weight: 900; letter-spacing: -.025em; font-size: 22px; padding: 6px 0; }
.brand-logo { display: block; width: 30px; height: 30px; border-radius: 8px; object-fit: cover; }
.brand.large { font-size: 25px; margin-bottom: 34px; }
.brand.large .brand-logo { width: 34px; height: 34px; border-radius: 9px; }
.page-title { margin: 30px 0 20px; }
.page-title .eyebrow { display: none; }
.page-title h1, .auth-screen h1 { margin: 5px 0 0; font-size: clamp(30px, 8vw, 44px); line-height: 1.02; letter-spacing: -.04em; }
.eyebrow, small { color: var(--accent-dark); font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.muted, .hero p, .history span, .choice span, .hole-meta span { color: var(--muted); line-height: 1.5; }
.player-chip { background: var(--soft); border-radius: 999px; color: var(--ink); font-size: 13px; font-weight: 750; padding: 9px 13px; }
.hero { background: #31694f; border: 1px solid #31694f; border-radius: 24px; padding: 26px 22px; box-shadow: none; color: #fff; }
.hero .eyebrow, .hero p, .hero strong { color: #fff; }
.hero .eyebrow { color: #d8c7a3; }
.hero h2 { font-size: 31px; letter-spacing: -.04em; margin: 9px 0 10px; }
.hero p:last-child { margin: 0; }
.hero strong { color: #d8c7a3; font-size: 20px; }
.primary, .secondary, .link-button { min-height: 52px; border-radius: 16px; font-weight: 800; transition: transform .18s ease, background .18s ease; }
.primary { width: 100%; border: 0; background: var(--ink); color: white; padding: 14px 18px; margin: 16px 0; box-shadow: 0 8px 18px rgba(23,53,45,.16); }
.primary:hover { background: #244c3d; transform: translateY(-1px); }
.secondary { border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 12px 16px; }
.link-button { border: 0; background: transparent; color: var(--accent-dark); padding: 10px; }
.grid, .summary-card { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.grid article, .summary-card, .form-card, .history, .review-row, .empty, .choice { background: var(--card); border: 1px solid rgba(220,230,218,.8); border-radius: 20px; box-shadow: var(--shadow); }
.grid article { padding: 17px; }
.grid strong { display: block; font-size: 30px; letter-spacing: -.04em; margin: 12px 0 3px; }
.grid span { color: var(--muted); font-size: 12px; }
.quick-links { display: grid; gap: 10px; margin-top: 18px; }
.quick-links button { display: flex; justify-content: space-between; align-items: center; min-height: 54px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--ink); padding: 12px 16px; font-weight: 750; text-align: left; }
.quick-links span { color: var(--muted); font-size: 12px; font-weight: 600; }
.auth-screen { max-width: 460px; margin: 12vh auto 0; padding: 0 4px; }
.auth-screen h1 { font-size: 36px; }
.player-list, .stack { display: grid; gap: 12px; }
.choice { width: 100%; min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border: 1px solid var(--line); color: var(--ink); padding: 16px 18px; text-align: left; }
.choice:hover { border-color: var(--accent); transform: translateY(-1px); }
.choice b { font-size: 17px; }
.choice span { font-size: 13px; }
.form-card { padding: 20px; }
label, legend { display: grid; gap: 8px; color: var(--ink); font-size: 14px; font-weight: 750; margin-bottom: 18px; }
.inline-check { display: flex; align-items: center; gap: 10px; }
.inline-check input { flex: 0 0 auto; width: 22px; height: 22px; margin: 0; accent-color: var(--ink); }
select, input:not([type=checkbox]):not([type=radio]) { width: 100%; min-height: 50px; border: 1px solid var(--line); border-radius: 13px; background: #f4f0e4; color: var(--ink); padding: 12px 14px; }
.tee-choice { min-height: 64px; box-shadow: none; }
.tee-choice input { accent-color: var(--ink); }
.tee-choice:has(input:checked) { border-color: #31694f; background: #31694f; color: #fff; }
.tee-choice:has(input:checked) span { color: #fff; }
fieldset { border: 0; margin: 0 0 18px; padding: 0; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg button { min-height: 48px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); color: var(--ink); font-weight: 750; }
.stepper { display: grid; grid-template-columns: 54px 1fr 54px; align-items: center; gap: 10px; }
.stepper button { min-width: 54px; min-height: 54px; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); color: var(--ink); font-size: 25px; }
.stepper output { font-size: 42px; font-weight: 850; letter-spacing: -.05em; text-align: center; }
.hole-meta { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); padding: 0 0 15px; }
.hole-progress { height: 6px; overflow: hidden; border-radius: 99px; background: var(--line); margin: 2px 0 20px; }
.hole-progress span { display: block; height: 100%; border-radius: inherit; background: var(--accent-dark); }
.score-panel { display: grid; gap: 7px; justify-items: center; padding: 22px 16px 20px; border: 1px solid var(--line); border-radius: 24px; background: var(--card); box-shadow: var(--shadow); }
.score-panel .stepper { width: min(100%, 300px); }
.score-panel small { letter-spacing: .1em; }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.touch-choice { min-height: 52px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); font-weight: 750; padding: 10px; }
.touch-choice.selected { border-color: var(--ink); background: var(--ink); color: #fff; box-shadow: 0 5px 12px rgba(23,53,45,.15); }
.field-block { display: grid; gap: 9px; margin: 20px 0; }
.field-block > legend, .field-block > .field-label { margin: 0; }
.field-block .stepper { width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 24px; background: var(--card); box-shadow: var(--shadow); }
.field-block .stepper output { min-width: 3ch; }
.sticky-actions { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 3; display: grid; gap: 8px; padding: 12px 0 5px; background: #f4f0e4; }
.sticky-actions .primary { margin: 0; }
.save-status { min-height: 24px; color: var(--accent-dark); font-size: 13px; font-weight: 750; padding: 13px 0 5px; }
.action-row { display: grid; grid-template-columns: .7fr 1.3fr; gap: 10px; align-items: center; }
.review-row { display: grid; grid-template-columns: 1fr 1.1fr .6fr; align-items: center; min-height: 60px; border: 0; padding: 12px 14px; text-align: left; }
.review-row span:last-child { color: var(--accent-dark); font-weight: 750; text-align: right; }
.summary-line { background: var(--soft); border-radius: 16px; margin: 16px 0; padding: 16px; }
.summary-line b { font-size: 25px; }
.summary-card { padding: 6px; }
.summary-card div { padding: 15px 12px; }
.summary-card span { display: block; color: var(--muted); font-size: 12px; }
.summary-card strong { display: block; font-size: 25px; margin-top: 5px; }
.history { padding: 17px; }
.history b, .history strong, .history span { display: block; }
.history strong { margin: 5px 0; }
.history button { min-height: 44px; border: 0; border-radius: 12px; background: var(--soft); color: var(--ink); font-weight: 750; margin-top: 12px; padding: 9px 13px; }
.empty { padding: 28px 20px; text-align: center; }
.empty .primary { margin-bottom: 0; }
.state { min-height: 55vh; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; }
.state h1 { margin-bottom: 0; }
.error-state { color: #8b4437; }
.spinner { width: 30px; height: 30px; border: 3px solid var(--line); border-top-color: var(--accent-dark); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-error { color: #9a4a3b; font-size: 13px; line-height: 1.45; }
.bottom-nav { position: fixed; z-index: 5; bottom: calc(12px + env(safe-area-inset-bottom)); left: calc(50% + (env(safe-area-inset-left) - env(safe-area-inset-right)) / 2); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); width: min(calc(100% - 24px - env(safe-area-inset-left) - env(safe-area-inset-right)), 580px); transform: translateX(-50%); padding: 8px; border: 1px solid rgba(220,230,218,.9); border-radius: 22px; background: rgba(255,255,255,.94); box-shadow: 0 12px 32px rgba(23,53,45,.15); backdrop-filter: blur(12px); }
.bottom-nav button { min-height: 48px; border: 0; border-radius: 15px; background: transparent; color: #87958b; font-size: 20px; }
.bottom-nav button span { display: block; font-size: 10px; font-weight: 700; margin-top: 2px; }
.bottom-nav button.active { background: var(--soft); color: var(--ink); }
.bag-intro { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--soft); }
.bag-intro p { margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.bag-count { flex: 0 0 auto; color: var(--ink); font-size: 23px; font-weight: 850; }
.bag-list { display: grid; gap: 12px; margin-top: 16px; }
.club-card { position: relative; display: grid; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.club-card.inactive { opacity: .72; }
.club-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.club-heading h2 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
.club-category { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.club-status { border-radius: 999px; background: var(--soft); color: var(--accent-dark); font-size: 11px; font-weight: 800; padding: 6px 9px; }
.distance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.distance-cell { border-radius: 14px; background: #f5f8f3; padding: 12px; }
.distance-cell span { display: block; color: var(--muted); font-size: 12px; }
.distance-cell strong { display: block; margin-top: 4px; font-size: 22px; }
.club-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.club-actions button, .bag-secondary { min-height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); font-size: 12px; font-weight: 750; padding: 8px 11px; }
.club-actions button:hover, .bag-secondary:hover { border-color: var(--accent-dark); }
.bag-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; }
.bag-toolbar .primary { width: auto; margin: 0; padding-inline: 16px; }
.bag-form { margin-top: 16px; }
.bag-form .form-card { display: grid; gap: 2px; }
.bag-form h2 { margin: 0 0 4px; }
.distance-help { margin: -11px 0 14px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.bag-form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bag-form-actions .primary { margin: 0; }
.inactive-heading { margin: 26px 0 0; font-size: 16px; }
details { border-top: 1px solid var(--line); padding-top: 15px; }
summary { cursor: pointer; color: var(--accent-dark); font-weight: 750; margin-bottom: 16px; }
.admin-screen { padding-bottom: 40px; }
.admin-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 18px; }
.admin-header h1 { margin: 6px 0; font-size: 38px; letter-spacing: -.04em; }
.admin-header .secondary { flex: 0 0 auto; }
.admin-toolbar { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; margin: 24px 0 12px; }
.admin-toolbar .primary { width: auto; margin: 0; min-height: 50px; }
.admin-list { display: grid; gap: 12px; margin-top: 18px; }
.admin-card { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.admin-card.inactive { opacity: .72; }
.admin-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.admin-metrics span { display: grid; gap: 4px; padding: 10px; border-radius: 13px; background: #f5f8f3; color: var(--muted); font-size: 11px; }
.admin-metrics strong { color: var(--ink); font-size: 20px; }
#admin-player-form { margin-top: 16px; }
.account-card { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.account-card.inactive, .account-card.locked { opacity: .72; }
.account-statuses { display: flex; flex-wrap: wrap; gap: 7px; }
.account-statuses span { border-radius: 999px; background: var(--soft); color: var(--accent-dark); font-size: 11px; font-weight: 800; padding: 6px 9px; }
.password-checklist { display: grid; gap: 5px; margin: -8px 0 14px; padding: 0; list-style: none; color: var(--muted); font-size: 12px; }
.password-checklist .valid { color: var(--accent-dark); font-weight: 750; }
.temporary-password { margin: 14px 0; border: 1px solid #d2e1c9; border-radius: 16px; background: var(--soft); padding: 14px; }
.temporary-password code { display: block; margin-top: 7px; color: var(--ink); font-size: 18px; font-weight: 850; letter-spacing: .04em; word-break: break-all; }
@media (max-width: 520px) { .admin-toolbar { grid-template-columns: 1fr 1fr; } .admin-toolbar input { grid-column: 1 / -1; } .admin-toolbar .primary { grid-column: 1 / -1; } }
@media (min-width: 700px) { .app { padding-top: 34px; } .auth-screen { margin-top: 16vh; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
.admin-nav { display:flex; gap:.6rem; flex-wrap:wrap; margin:1rem 0; }
.course-card, .tee-card { background:var(--surface,#fff); border:1px solid var(--line,#dfe5df); border-radius:1.1rem; padding:1rem; box-shadow:0 8px 24px rgb(32 57 43 / 7%); }
.tee-card { display:grid; grid-template-columns:1fr auto; gap:.5rem; align-items:center; }
.course-card.inactive, .tee-card.inactive { opacity:.72; }
.status-pill { border-radius:999px; background:var(--soft,#e8f0e8); padding:.35rem .65rem; font-size:.78rem; font-weight:700; }
.hole-editor { display:grid; gap:.7rem; }
.hole-row { display:grid; grid-template-columns:3.5rem repeat(3,minmax(3.5rem,1fr)) auto auto; gap:.5rem; align-items:end; min-width:0; padding:.75rem; border:1px solid var(--line,#dfe5df); border-radius:.8rem; background:var(--surface,#fff); }
.hole-row label { font-size:.75rem; }
.hole-row input { min-height:44px; width:100%; }
.hole-row .save-status { font-size:.75rem; color:var(--accent,#34634a); }
.page-title:has(h1:empty) { display: none; }
.guided-hole-form { display: grid; gap: 16px; }
.guided-header { display: grid; gap: 12px; }
.guided-header .hole-meta { padding-bottom: 12px; }
.guided-round-score { overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--soft); color: var(--muted); font-size: 12px; }
.guided-round-score summary { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: baseline; margin: 0; padding: 12px 15px; list-style: none; }
.guided-round-score summary::-webkit-details-marker { display: none; }
.guided-round-score summary strong { color: var(--ink); font-size: 18px; text-align: left; }
.guided-round-score summary span:last-child { text-align: right; }
.live-score-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1px; border-top: 1px solid var(--line); background: var(--line); }
.live-score-grid span { display: grid; gap: 3px; padding: 10px 8px; background: var(--card); color: var(--muted); text-align: center; }
.live-score-grid strong { color: var(--ink); font-size: 17px; }
.guided-round-score > small { display: block; padding: 7px 12px; color: var(--muted); text-align: center; }
.guided-step { display: grid; gap: 12px; padding: 6px 0; }
.guided-step h1 { margin: 0; font-size: clamp(29px, 8vw, 40px); letter-spacing: -.04em; line-height: 1.05; }
.guided-step > .muted { margin: -3px 0 3px; }
.guided-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.guided-choice { min-width: 0; min-height: 62px; border: 1px solid var(--line); border-radius: 17px; background: var(--card); color: var(--ink); padding: 12px 10px; font-weight: 800; text-align: center; box-shadow: var(--shadow); transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.guided-choice:hover { transform: translateY(-1px); border-color: var(--accent-dark); }
.guided-choice.selected { border-color: var(--ink); background: var(--ink); color: #fff; box-shadow: 0 8px 18px rgba(23,53,45,.2); }
.score-options .guided-choice:last-child, .directional-options .guided-choice:nth-child(5), .approach-options .guided-choice:last-child { grid-column: 1 / -1; }
.guided-exact { display: grid; gap: 4px; margin-top: 4px; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: var(--soft); }
.guided-exact .primary { margin: 4px 0 0; }
.guided-details { display: grid; gap: 3px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.guided-details label { margin-bottom: 13px; }
.guided-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.guided-summary div { display: grid; gap: 4px; min-width: 0; padding: 14px; border-radius: 16px; background: var(--soft); }
.guided-summary span { color: var(--muted); font-size: 12px; }
.guided-summary strong { overflow-wrap: anywhere; color: var(--ink); font-size: 21px; }
.guided-actions { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 3; display: grid; grid-template-columns: .7fr 1.3fr; gap: 10px; padding: 12px 0 calc(5px + env(safe-area-inset-bottom)); background: #f4f0e4; }
.guided-actions .primary { margin: 0; }
@media (min-width: 700px) { .guided-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .score-options .guided-choice:last-child, .directional-options .guided-choice:nth-child(5), .approach-options .guided-choice:last-child { grid-column: auto; } }
@media (max-width: 380px) { .guided-round-score { grid-template-columns: 1fr auto; } .guided-round-score span:last-child { grid-column: 1 / -1; } .guided-actions { grid-template-columns: 1fr; } .guided-actions .primary { order: -1; } }
@media (max-width: 700px) {
  .hole-row { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .hole-row > strong { grid-column: 1 / -1; }
  .hole-row > button, .hole-row > .save-status { align-self: center; }
}
@media (max-width: 380px) {
  .app { padding-inline: calc(12px + env(safe-area-inset-left)) calc(12px + env(safe-area-inset-right)); }
  .form-card { padding: 16px; }
  .admin-header .secondary { width: 100%; }
  .action-row { grid-template-columns: 1fr; }
  .action-row .primary { order: -1; }
}

/* Premium guided capture controls */
.guided-hole-form { width: 100%; max-width: 760px; margin-inline: auto; gap: 20px; }
.guided-step { min-width: 0; gap: 16px; }
.premium-score-card, .premium-counter-card { width: 100%; box-sizing: border-box; display: grid; align-items: center; justify-items: center; border: 1px solid var(--line); border-radius: 24px; background: var(--card); box-shadow: 0 12px 30px rgb(23 53 45 / 10%); }
.premium-score-card { grid-template-columns: 64px 1fr 64px; min-height: 180px; padding: 20px 12px; }
.score-reading { display: grid; justify-items: center; gap: 4px; min-width: 0; text-align: center; }
.score-reading output { color: var(--ink); font-size: clamp(72px, 22vw, 120px); font-weight: 900; letter-spacing: -.08em; line-height: .9; }
.score-reading strong { color: var(--accent-dark); font-size: clamp(20px, 5vw, 28px); line-height: 1.1; }
.score-reading span { color: var(--muted); font-size: 13px; }
.score-adjust { display: grid; place-items: center; width: 60px; height: 60px; border: 1px solid var(--line); border-radius: 18px; background: var(--soft); color: var(--ink); font-size: 32px; font-weight: 700; line-height: 1; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
.score-adjust:hover { border-color: var(--accent-dark); }
.score-adjust:active { transform: scale(.94); background: var(--line); }
.premium-counter-card { grid-template-columns: 76px 1fr 76px; min-height: 180px; padding: 16px; }
.premium-counter-card output { color: var(--ink); font-size: 76px; font-weight: 900; letter-spacing: -.08em; line-height: .9; }
.guided-link { justify-self: center; min-height: 44px; border: 0; background: transparent; color: var(--accent-dark); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.guided-next-inline { width: 100%; margin-top: 4px; }
.fairway-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fairway-choices .guided-choice { min-height: 84px; padding-inline: 8px; }
.approach-diamond { width: min(100%, 430px); margin-inline: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, 50px); gap: 4px; align-items: stretch; }
.approach-diamond .guided-choice { min-width: 0; min-height: 50px; display: grid; place-items: center; align-content: center; gap: 2px; padding: 5px 6px; font-size: clamp(14px, 3.8vw, 18px); line-height: 1.05; }
.approach-diamond .approach-arrow { display: block; font-size: clamp(22px, 6vw, 32px); font-weight: 900; line-height: .75; }
.approach-diamond .guided-choice > span:not(.approach-arrow) { font-size: clamp(13px, 3.5vw, 16px); }
.approach-diamond .guided-choice:nth-child(1) { grid-column: 2; grid-row: 1; }
.approach-diamond .guided-choice:nth-child(2) { grid-column: 1; grid-row: 2; }
.approach-diamond .guided-choice:nth-child(3) { grid-column: 2; grid-row: 2; }
.approach-diamond .guided-choice:nth-child(4) { grid-column: 3; grid-row: 2; }
.approach-diamond .guided-choice:nth-child(5) { grid-column: 2; grid-row: 3; }
.approach-diamond + .guided-choice { width: min(100%, 430px); min-height: 52px; justify-self: center; }
.approach-diamond [data-value="green"] { width: 100%; min-height: 50px; justify-self: center; border-width: 2px; border-color: var(--accent-dark); background: var(--soft); font-size: clamp(16px, 4vw, 20px); }
.approach-diamond [data-value="green"].selected { background: var(--ink); color: #fff; }
.premium-review-card { display: grid; gap: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 24px; background: var(--card); box-shadow: 0 12px 30px rgb(23 53 45 / 10%); }
.review-score { display: grid; justify-items: center; gap: 4px; padding: 8px 8px 18px; border-bottom: 1px solid var(--line); text-align: center; }
.review-score span { color: var(--muted); font-size: 13px; font-weight: 700; }
.review-score strong { color: var(--ink); font-size: 64px; letter-spacing: -.07em; line-height: .9; }
.review-score b { color: var(--accent-dark); font-size: 20px; }
.premium-review-card dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.premium-review-card dl div { display: grid; gap: 4px; min-width: 0; padding: 12px; border-radius: 14px; background: var(--soft); }
.premium-review-card dt { color: var(--muted); font-size: 12px; }
.premium-review-card dd { margin: 0; color: var(--ink); font-size: 16px; font-weight: 800; overflow-wrap: anywhere; }
.premium-review-card .review-wide { grid-column: 1 / -1; }
.edit-answers { width: 100%; }
.guided-choice:focus-visible, .score-adjust:focus-visible, .guided-link:focus-visible { outline: 3px solid #d28b2c; outline-offset: 3px; }
@media (orientation: landscape) and (max-height: 560px) { .premium-score-card { min-height: 170px; } .score-reading output { font-size: 70px; } .premium-counter-card { min-height: 110px; } .approach-diamond { gap: 8px; } }
@media (max-width: 380px) { .premium-score-card { grid-template-columns: 52px 1fr 52px; min-height: 205px; padding-inline: 4px; } .premium-counter-card { grid-template-columns: 62px 1fr 62px; } .score-adjust { width: 52px; height: 52px; } .fairway-choices { gap: 6px; } .fairway-choices .guided-choice { min-height: 76px; font-size: 12px; } .approach-diamond { gap: 6px; } .approach-diamond + .guided-choice { min-height: 52px; } }
@media (min-width: 700px) { .guided-hole-form { padding-inline: 20px; } .premium-score-card { min-height: 260px; } }
@media (min-width: 700px) and (max-height: 760px) { .approach-diamond { grid-template-rows: repeat(3, minmax(72px, auto)); gap: 8px !important; } }

/* Stable guided round shell: the question changes, the frame does not. */
.content:has(.guided-round-shell) { padding-bottom: calc(132px + env(safe-area-inset-bottom)); }
.guided-round-shell { display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; min-height: calc(100vh - 150px); min-height: calc(100dvh - 150px); gap: 16px; }
.guided-round-header { min-height: 0; }
.guided-step-frame { min-height: 0; height: 100%; display: grid; align-content: start; min-width: 0; overflow: auto; overscroll-behavior: contain; }
.guided-round-shell.step-approach .guided-step-frame { overflow: visible; }
.guided-round-shell.step-approach { min-height: calc(100dvh - 180px); height: auto; grid-template-rows: auto auto auto auto; gap: 10px; }
.step-approach .guided-step-content { gap: 8px; }
.step-approach .guided-step-content h1 { font-size: clamp(27px,7vw,34px); }
.step-approach .guided-step-actions { min-height: 64px; padding-top: 6px; }
.guided-step-content { display: grid; align-content: start; gap: 16px; min-width: 0; padding: 4px 0; }
.guided-step-content h1 { margin: 0; font-size: clamp(29px, 8vw, 40px); letter-spacing: -.04em; line-height: 1.05; }
.guided-step-content > .muted { margin: -3px 0 3px; }
.guided-step-actions { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 76px; align-items: end; margin: 0; padding: 12px 0 calc(5px + env(safe-area-inset-bottom)); }
.guided-step-actions .guided-back, .guided-step-actions .guided-primary { width: 100%; min-height: 52px; margin: 0; }
.guided-step-actions.auto-advance .guided-back { grid-column: 1 / -1; }
.guided-step-actions .guided-back:disabled { visibility: visible; }
.detail-toggle { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 72px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); color: var(--ink); padding: 12px 14px; text-align: left; box-shadow: var(--shadow); }
.detail-toggle:hover { border-color: var(--accent-dark); }
.detail-toggle.selected { border: 2px solid var(--ink); background: var(--soft); }
.detail-toggle-icon { display: grid; flex: 0 0 32px; place-items: center; width: 32px; height: 32px; border: 2px solid var(--muted); border-radius: 50%; color: transparent; font-size: 20px; font-weight: 900; }
.detail-toggle.selected .detail-toggle-icon { border-color: var(--ink); background: var(--ink); color: #fff; }
.detail-toggle-copy { display: grid; gap: 4px; min-width: 0; }
.detail-toggle-copy strong { font-size: 15px; }
.detail-toggle-copy small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.guided-details textarea { min-height: 84px; resize: vertical; resize: none; }
.detail-toggle:focus-visible, .guided-step-actions button:focus-visible, .guided-details textarea:focus-visible { outline: 3px solid #d28b2c; outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 380px) { .content:has(.guided-round-shell) { padding-bottom: calc(132px + env(safe-area-inset-bottom)); } .guided-round-shell { min-height: calc(100vh - 132px); min-height: calc(100dvh - 132px); gap: 12px; } .guided-step-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .guided-step-actions .guided-back, .guided-step-actions .guided-primary { font-size: 13px; padding-inline: 8px; } }
@media (orientation: landscape) and (max-height: 560px) { .guided-round-shell { min-height: calc(100vh - 116px); min-height: calc(100dvh - 116px); } .guided-step-actions { min-height: 70px; } }
