:root {
  --ink: #17332a;
  --muted: #66766f;
  --forest: #133c2f;
  --forest-2: #1d5743;
  --lime: #cde66f;
  --sand: #f4efe4;
  --paper: #fffdf8;
  --line: #d9ded8;
  --coral: #e46d4c;
  --shadow: 0 18px 50px rgba(20, 55, 43, 0.12);
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--sand);
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--sand); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; touch-action: manipulation; }

.login-page {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 28px 18px;
  background:
    radial-gradient(circle at 84% 11%, rgba(205,230,111,.24), transparent 24%),
    linear-gradient(145deg, #0c2e24 0%, #1b513e 58%, #2c6a4e 100%);
}
.login-wrap { width: min(100%, 980px); margin: auto; display: grid; gap: 24px; }
.brand { color: white; }
.brand-mark { display: inline-flex; align-items: center; gap: 9px; color: var(--lime); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.brand-mark::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--lime); box-shadow: 7px -7px 0 -3px var(--lime); }
.brand h1 { font: 600 clamp(3rem, 13vw, 6rem)/.88 "Newsreader", serif; letter-spacing: -.04em; margin: 22px 0 14px; }
.brand p { margin: 0; color: rgba(255,255,255,.72); max-width: 470px; font-size: 1.02rem; }
.login-card { background: var(--paper); border-radius: 24px; padding: 24px; box-shadow: 0 28px 80px rgba(0,0,0,.24); }
.login-card h2 { margin: 0 0 6px; font-size: 1.3rem; }
.login-card > p { margin: 0 0 20px; color: var(--muted); font-size: .9rem; }
.role-switch { display: grid; grid-template-columns: 1fr 1fr; background: #e8ece7; padding: 4px; border-radius: 12px; margin-bottom: 18px; }
.role-switch button { border: 0; border-radius: 9px; padding: 10px; background: transparent; color: var(--muted); font-weight: 700; }
.role-switch button.active { background: white; color: var(--forest); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.field { display: grid; gap: 7px; margin: 14px 0; }
.field label { font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); background: white; border-radius: 12px; padding: 13px 14px; color: var(--ink); outline: none; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--forest-2); box-shadow: 0 0 0 3px rgba(29,87,67,.12); }

.primary, .secondary, .quiet { border-radius: 12px; padding: 12px 16px; font-weight: 700; border: 0; }
.primary { background: var(--forest); color: white; }
.primary:hover { background: var(--forest-2); }
.primary:disabled { opacity: .55; cursor: wait; }
.secondary { background: var(--lime); color: var(--forest); }
.quiet { background: transparent; color: var(--forest); border: 1px solid var(--line); }
.full { width: 100%; }

.app-shell { min-height: 100vh; padding-bottom: 40px; }
.topbar { background: var(--forest); color: white; padding: calc(18px + env(safe-area-inset-top)) 18px 24px; }
.topbar-inner { width: min(100%, 1120px); margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.eyebrow { margin: 0 0 4px; color: var(--lime); text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; font-weight: 700; }
.topbar h1 { margin: 0; font: 600 1.8rem/1 "Newsreader", serif; }
.avatar { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.1); color: white; font-weight: 700; }
.main { width: min(calc(100% - 28px), 1120px); margin: 18px auto 0; }
.hero-card { border-radius: 20px; padding: 22px; background: var(--paper); box-shadow: var(--shadow); display: grid; gap: 18px; }
.hero-label { margin: 0 0 4px; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.hero-score { display: flex; align-items: baseline; gap: 8px; }
.hero-score strong { font: 600 3.6rem/1 "Newsreader", serif; }
.hero-score span { color: var(--muted); }
.progress { height: 7px; background: #e7eae5; border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--lime); border-radius: inherit; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.pill { display: inline-flex; align-items: center; gap: 5px; background: #edf1ec; color: var(--forest); border-radius: 99px; padding: 6px 9px; font-size: .74rem; font-weight: 700; }
.pill.alert { background: #fff0e9; color: #a64328; }
.pill.locked { background: #e2eadf; color: var(--forest); }

.section { margin-top: 26px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head h2 { margin: 0; font: 600 1.65rem "Newsreader", serif; }
.section-head p { margin: 3px 0 0; color: var(--muted); font-size: .82rem; }
.round-grid { display: grid; gap: 12px; }
.round-card { background: var(--paper); border: 1px solid rgba(19,60,47,.08); border-radius: 17px; padding: 17px; box-shadow: 0 7px 24px rgba(20,55,43,.06); }
.round-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.day { color: var(--coral); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.round-card h3 { margin: 3px 0; font-size: 1.06rem; }
.round-card p { margin: 0; color: var(--muted); font-size: .78rem; }
.score-badge { text-align: right; }
.score-badge strong { display: block; font: 600 2rem/1 "Newsreader", serif; }
.score-badge span { color: var(--muted); font-size: .7rem; }
.round-actions { display: flex; gap: 8px; margin-top: 15px; }
.round-actions button { flex: 1; padding: 10px; font-size: .82rem; }
.round-contests { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.contest-badges { display: inline-flex; flex-wrap: wrap; gap: 5px; }
.contest-badge { display: inline-flex; align-items: center; border-radius: 99px; padding: 4px 8px; font-size: .66rem; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.contest-badge.nearest { background: #e4f0bd; color: #29451d; }
.contest-badge.longest { background: #ffe4d4; color: #813b22; }
@media (max-width: 520px) { .round-actions { flex-direction: column; } }

.tabs { position: relative; z-index: 20; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: min(calc(100% - 28px), 1120px); margin: 14px auto 0; background: var(--paper); border-radius: 14px; box-shadow: 0 7px 25px rgba(20,55,43,.08); padding: 5px; }
.tabs button { min-width: 0; min-height: 48px; border: 0; background: transparent; color: var(--muted); padding: 7px 4px; font-size: .68rem; font-weight: 600; }
.tabs button::before { display: block; margin: 0 auto 3px; font-size: 1.15rem; }
.tabs button.active { color: var(--forest); }
.tabs button.active::after { content: ""; display: block; width: 18px; height: 3px; margin: 5px auto -5px; border-radius: 3px; background: var(--lime); }

.group-day { margin-bottom: 22px; }
.group-day h3 { margin: 0 0 10px; font-size: .85rem; text-transform: uppercase; color: var(--muted); letter-spacing: .07em; }
.group-list { display: grid; gap: 10px; }
.group-card { background: var(--paper); border-radius: 16px; padding: 16px; }
.group-number { display: flex; justify-content: space-between; margin-bottom: 9px; font-size: .73rem; color: var(--muted); font-weight: 700; }
.member { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 9px; padding: 8px 0; border-top: 1px solid #edf0ec; }
.member:first-of-type { border-top: 0; }
.member-index { width: 25px; height: 25px; border-radius: 50%; display: grid; place-items: center; background: #edf1ec; font-size: .72rem; font-weight: 700; }
.member small { color: var(--muted); }
.marker { color: var(--coral); font-size: .68rem; font-weight: 700; }

.table-wrap { overflow-x: auto; background: var(--paper); border-radius: 17px; box-shadow: 0 7px 24px rgba(20,55,43,.06); }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
th, td { padding: 13px 12px; text-align: center; border-bottom: 1px solid #ecefeb; font-size: .8rem; }
th { color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; }
th:nth-child(2), td:nth-child(2) { text-align: left; }
.rank { color: var(--coral); font-weight: 700; }
.leader-name { font-weight: 700; }
.table-button { border: 0; background: #eef2ed; border-radius: 8px; padding: 6px 9px; color: var(--forest); }
.table-button.has-conflict { background: #fff0e9; color: #a64328; }
.winner-row { background: linear-gradient(90deg, rgba(205,230,111,.19), transparent); }
.day-selector { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.day-selector button { min-height: 44px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--forest); font-weight: 700; }
.day-selector button[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: white; }
.day-standings-note { color: var(--muted); font-size: .82rem; }

.settings-list, .prize-list { display: grid; gap: 10px; }
.settings-card, .prize-card { background: var(--paper); border-radius: 16px; padding: 16px; }
.settings-head { display: flex; justify-content: space-between; align-items: center; }
.settings-head strong { font-size: .95rem; }
.settings-form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 9px; margin-top: 10px; }
.settings-form .field { margin: 0; }
.settings-form input { padding: 10px; }
.prize-card { display: grid; grid-template-columns: 48px 1fr; gap: 12px; align-items: center; }
.prize-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: #edf2e8; font-size: 1.4rem; }
.prize-card h3 { margin: 0 0 3px; font-size: .95rem; }
.prize-card p { margin: 0; color: var(--muted); font-size: .78rem; }
.prize-form { grid-column: 1 / -1; display: grid; grid-template-columns: .65fr 1fr 1fr auto; gap: 8px; align-items: end; }
.prize-form .field { margin: 0; }

.group-add { margin-top: 12px; padding: 16px; background: var(--paper); border-radius: 16px; display: grid; gap: 12px; }
.group-add p, .group-add h4 { margin: 0; }
.group-pickers { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.group-pickers select, .group-pickers input { min-width: 145px; flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 11px; background: white; color: var(--ink); }
.group-pickers .player-picker { position: relative; flex: 1; min-width: 145px; }
.player-picker[open] { z-index: 20; }
.player-picker summary { display: flex; justify-content: space-between; align-items: center; min-height: 47px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); cursor: pointer; list-style: none; }
.player-picker summary::-webkit-details-marker { display: none; }
.player-picker summary::after { content: "⌄"; font-size: 1.15rem; line-height: 1; }
.player-picker[open] summary { border-color: var(--forest-2); box-shadow: 0 0 0 3px rgba(29,87,67,.12); }
.player-picker[open] summary::after { transform: rotate(180deg); }
.player-picker-options { position: absolute; top: calc(100% + 4px); left: 0; right: 0; max-height: 240px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: var(--shadow); }
.player-picker-options button { display: block; width: 100%; padding: 10px 12px; border: 0; background: white; color: var(--ink); text-align: left; }
.player-picker-options button:hover, .player-picker-options button:focus-visible { background: #edf2e8; outline: none; }
.native-select-backend { display: none !important; }
.select-picker { position: relative; width: 100%; min-width: 145px; }
.select-picker[open] { z-index: 20; }
.select-picker summary { display: flex; justify-content: space-between; align-items: center; min-height: 47px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); cursor: pointer; list-style: none; }
.select-picker summary::-webkit-details-marker { display: none; }
.select-picker summary::after { content: "⌄"; font-size: 1.15rem; line-height: 1; }
.select-picker[open] summary { border-color: var(--forest-2); box-shadow: 0 0 0 3px rgba(29,87,67,.12); }
.select-picker[open] summary::after { transform: rotate(180deg); }
.select-picker-options { position: absolute; top: calc(100% + 4px); left: 0; right: 0; max-height: 240px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: var(--shadow); }
.select-picker-options button { display: block; width: 100%; padding: 10px 12px; border: 0; background: white; color: var(--ink); text-align: left; }
.select-picker-options button:hover, .select-picker-options button:focus-visible { background: #edf2e8; outline: none; }
.group-add .primary { justify-self: start; }
.score-columns { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); }
.daily-ranks { margin: 12px 0 0; padding: 0; list-style: none; }
.daily-ranks li { padding: 5px 0; }
.daily-ranks li strong { float: right; }
.team-daily-list { margin: 8px 0 0; padding: 0; list-style: none; }
.team-daily-list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); }
.team-daily-list small { display: block; color: var(--muted); font-size: .72rem; }
.card-column { min-width: 0; }
.card-column h3 { margin: 16px 0 4px; }
.card-column > p { margin: 0 0 10px; color: var(--muted); font-size: .82rem; }
.card-column .hole { display: grid; grid-template-columns: 25px minmax(65px,1fr) auto 40px; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); }
.card-column .score-stepper { display: flex; align-items: center; }
.card-column .score-stepper button { width: 34px; height: 34px; border: 0; background: var(--lime); color: var(--forest); border-radius: 8px; font-weight: 700; }
.card-column .score-stepper button:disabled { opacity: .4; }
.card-column .score-stepper input { width: 36px; border: 0; text-align: center; background: transparent; }
.card-column .hole-points { text-align: center; }
.card-column .hole-points span { display: block; font-size: .65rem; color: var(--muted); }
.card-column .hole-meta span { display: block; font-size: .7rem; color: var(--muted); }
.settings-form { grid-template-columns: repeat(auto-fit,minmax(130px,1fr)); }
.settings-form .primary { align-self: end; }
.modal-actions { display: grid; gap: 8px; padding-top: 16px; }
@media (max-width: 620px) { .tabs { overflow-x: auto; display: flex; } .tabs button { flex: 0 0 70px; } .prize-form { grid-template-columns: 1fr 1fr; } .card-column .hole { grid-template-columns: 25px minmax(54px,1fr) auto 32px; } }

.modal-backdrop { position: fixed; z-index: 50; inset: 0; background: rgba(7,26,20,.72); padding: 12px; display: grid; align-items: end; }
.modal { background: var(--paper); border-radius: 24px 24px 12px 12px; max-height: 93vh; overflow: auto; padding: 20px; width: min(100%, 760px); margin: auto; box-shadow: 0 30px 100px rgba(0,0,0,.35); }
.modal-head { position: sticky; top: -20px; z-index: 3; background: var(--paper); padding: 0 0 14px; display: flex; justify-content: space-between; align-items: start; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0; font: 600 1.6rem "Newsreader", serif; }
.modal-head p { margin: 2px 0 0; color: var(--muted); font-size: .78rem; }
.close { border: 0; background: #edf0ec; width: 36px; height: 36px; border-radius: 50%; color: var(--ink); font-size: 1.3rem; }
.handicap-summary { padding-top: 14px; }
.handicap-summary h3 { margin: 0 0 8px; color: var(--ink); font-size: .9rem; }
.handicap-players { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.handicap-player { min-width: 0; display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 1px 7px; padding: 10px 12px; border-radius: 12px; background: #e7f0df; }
.handicap-player span { grid-column: 1 / -1; overflow-wrap: anywhere; font-weight: 700; }
.handicap-player strong { color: var(--forest); font-size: 1.65rem; line-height: 1.1; }
.handicap-player small { color: var(--forest); font-size: .82rem; font-weight: 700; }
.card-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px 0; }
.summary-cell { background: #eef2ed; border-radius: 12px; padding: 10px; text-align: center; }
.summary-cell strong { display: block; font-size: 1.1rem; }
.summary-cell span { color: var(--muted); font-size: .65rem; text-transform: uppercase; }
.holes { display: grid; gap: 7px; }
.hole { display: grid; grid-template-columns: 42px 1fr 92px 52px; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 13px; padding: 8px; }
.hole.contest-hole, .day-hole.contest-hole { border: 2px solid #93b64f; background: #f8fbe9; }
.contest-hole .hole-no { background: #356c43; }
.hole-no { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--forest); color: white; font-weight: 700; }
.hole-meta strong { display: block; font-size: .82rem; }
.hole-meta span { color: var(--muted); font-size: .68rem; }
.hole input { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 9px; padding: 9px; text-align: center; font-weight: 700; }
.score-stepper { display: grid; grid-template-columns: 29px minmax(24px, 1fr) 29px; gap: 3px; align-items: stretch; }
.score-stepper button { min-width: 0; border: 0; border-radius: 8px; background: var(--forest); color: white; font-size: 1.15rem; font-weight: 700; line-height: 1; }
.score-stepper button:active { background: var(--forest-2); }
.score-stepper button:disabled { cursor: default; opacity: .4; }
.score-stepper input { appearance: textfield; padding: 9px 2px; }
.score-stepper input::-webkit-inner-spin-button, .score-stepper input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.hole-points { text-align: center; }
.hole-points strong { display: block; font-size: 1rem; }
.hole-points span { color: var(--muted); font-size: .6rem; }
.modal-actions { position: sticky; bottom: -20px; background: var(--paper); padding: 14px 0 0; margin-top: 12px; }
.modal-actions .finalize-button { margin-top: 8px; width: 100%; }
.primary.finalize-button:disabled { background: #e2e9e3; color: #637a6d; opacity: 1; cursor: not-allowed; }
.pending-list { display: grid; gap: 8px; }
.pending-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.pending-card strong, .pending-card small { display: block; }
.pending-card small { margin-top: 3px; color: var(--muted); }
.pending-actions { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 520px) { .pending-card { align-items: stretch; flex-direction: column; } }
.confirmation-note { margin: 0 0 12px; padding: 10px 12px; border-radius: 11px; background: #eef2ed; color: var(--muted); font-size: .75rem; }
.confirmation-note.has-conflict { background: #fff0e9; color: #a64328; }
.confirmation-note.is-locked { background: #e2eadf; color: var(--forest); font-weight: 700; }
.score-help { text-align: center; color: var(--muted); font-size: .7rem; }
.day-holes { gap: 9px; }
.day-hole { display: grid; grid-template-columns: 42px minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: start; padding: 9px; border: 1px solid var(--line); border-radius: 13px; }
.day-hole .hole-no { grid-row: 1 / 3; }
.day-hole .hole-meta { grid-column: 2 / 4; display: flex; align-items: baseline; gap: 8px; }
.day-hole .hole-meta { flex-wrap: wrap; }
.score-column { min-width: 0; display: grid; gap: 5px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.score-column > span { overflow: hidden; color: var(--muted); font-size: .65rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; text-transform: uppercase; }
.score-column > span.score-player { overflow: visible; white-space: normal; overflow-wrap: anywhere; }
.score-column input { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 9px; padding: 10px 2px; text-align: center; font-size: 1rem; font-weight: 700; }
.score-column small { min-height: 2.2em; color: var(--muted); font-size: .62rem; line-height: 1.1; }
.score-column em { color: var(--forest); font-size: .66rem; font-style: normal; font-weight: 700; }
.score-column.matched { border-color: #8aad52; background: #f6faea; }
.score-column.matched small { color: #4f712d; }
.score-column.conflict { border-color: #e68a6d; background: #fff5f0; }
.score-column.conflict small { color: #a64328; font-weight: 700; }
.score-column.conflict .score-stepper input { border: 2px solid var(--coral); background: #ffe6dc; color: #8f321d; }
.score-column.locked { box-shadow: inset 0 0 0 1px rgba(19,60,47,.12); }
.score-column.locked .score-stepper input { background: #edf1ec; }

.empty { padding: 30px 20px; background: var(--paper); border-radius: 16px; text-align: center; color: var(--muted); }
.toast { position: fixed; z-index: 100; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: #11271f; color: white; padding: 11px 16px; border-radius: 11px; opacity: 0; pointer-events: none; transition: .2s; font-size: .82rem; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.error-text { color: #a9432c; font-size: .8rem; min-height: 1.1em; }
.loading { min-height: 100vh; display: grid; place-items: center; color: var(--forest); }
.spinner { width: 34px; height: 34px; border: 3px solid rgba(19,60,47,.15); border-top-color: var(--forest); border-radius: 50%; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 720px) {
  .login-wrap { grid-template-columns: 1.15fr .85fr; align-items: center; }
  .login-card { padding: 30px; }
  .round-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-card { grid-template-columns: 1.3fr .7fr; align-items: center; }
  .group-list { grid-template-columns: repeat(3, 1fr); }
  .tabs button { padding: 10px; font-size: .78rem; }
  .tabs button::before { display: inline; margin-right: 6px; }
  .main { margin-top: 20px; }
  .modal-backdrop { align-items: center; }
  .modal { border-radius: 24px; }
}

@media (max-width: 520px) {
  .settings-form { grid-template-columns: 1fr 1fr; }
  .settings-form button { grid-column: 1 / -1; }
  .prize-form { grid-template-columns: 1fr 1fr; }
  .prize-form button { grid-column: 1 / -1; }
  .hole { grid-template-columns: 38px 1fr 96px 42px; }
}

@media (max-width: 600px) {
  .field label, .hero-label, .day { font-size: .95rem; }
  .field input, .field select, .field textarea { font-size: 1.1rem; }
  .section-head p, .round-card p, .score-badge span { font-size: 1rem; line-height: 1.4; }
  .round-card h3 { font-size: 1.25rem; }
  .pill { font-size: .9rem; line-height: 1.3; }
  .round-actions button { min-height: 52px; font-size: 1.05rem; }
  .tabs button { min-height: 62px; font-size: 1rem; line-height: 1.2; overflow-wrap: anywhere; }

  .modal-backdrop { padding: 6px; }
  .modal { padding: 14px; max-height: 100dvh; }
  .modal-head { top: -14px; }
  .modal-head p { font-size: 1rem; line-height: 1.35; }
  .close { width: 48px; height: 48px; flex: 0 0 48px; font-size: 1.7rem; }
  .handicap-summary h3 { font-size: 1.1rem; }
  .handicap-player { padding: 12px; }
  .handicap-player span, .handicap-player small { font-size: 1rem; line-height: 1.25; }
  .handicap-player strong { font-size: 2rem; }
  .card-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .summary-cell { padding: 9px 5px; }
  .summary-cell strong { font-size: 1.4rem; }
  .summary-cell span { font-size: .95rem; line-height: 1.3; text-transform: none; }
  .confirmation-note { font-size: 1rem; line-height: 1.4; }
  .score-help { font-size: .95rem; line-height: 1.4; }
  .modal-actions { bottom: -14px; }
  .modal-actions button { min-height: 54px; font-size: 1.1rem; }

  .hole, .day-hole { grid-template-columns: 48px minmax(0, 1fr); gap: 10px; padding: 12px; }
  .hole-no { width: 44px; height: 44px; font-size: 1.25rem; }
  .hole-meta strong { font-size: 1.1rem; }
  .hole-meta span { font-size: .95rem; }
  .day-hole .hole-no { grid-row: 1; }
  .day-hole .hole-meta { grid-column: 2; align-self: center; }
  .day-hole .score-column { grid-column: 1 / -1; }
  .score-column { grid-template-columns: minmax(0, 1fr) 148px; gap: 8px; padding: 10px; align-items: center; }
  .score-column > span { grid-column: 1; grid-row: 1; overflow: visible; white-space: normal; overflow-wrap: anywhere; font-size: 1rem; line-height: 1.25; }
  .score-column .score-stepper { grid-column: 2; grid-row: 1; }
  .score-column small { grid-column: 1 / -1; grid-row: 2; min-height: 0; font-size: 1rem; line-height: 1.35; }
  .score-column em { grid-column: 1 / -1; grid-row: 3; font-size: .95rem; }
  .score-stepper { grid-template-columns: 44px minmax(52px, 1fr) 44px; gap: 4px; min-height: 52px; }
  .score-stepper button { font-size: 1.7rem; }
  .score-column input, .hole input { font-size: 1.5rem; }
  .hole .score-stepper, .hole-points { grid-column: 1 / -1; }
  .hole-points { display: flex; align-items: baseline; justify-content: center; gap: 6px; }
  .hole-points strong { font-size: 1.25rem; }
  .hole-points span { font-size: .95rem; }
}
