:root {
  color-scheme: dark;
  --background: #101314; --surface: #1a1e20; --surface-raised: #23282b;
  --text: #edf4ee; --muted: #9ba6a8; --line: #303638;
  --accent: #d0ec87; --accent-ink: #17220d; --secondary-accent: #df9670; --danger: #f28b84;
  --safe-top: 0px; --safe-right: 0px; --safe-bottom: 0px; --safe-left: 0px;
  --content-safe-top: 0px; --content-safe-right: 0px; --content-safe-bottom: 0px; --content-safe-left: 0px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--background); }
body { margin: 0; color: var(--text); background: var(--background); font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; color: inherit; }
button, summary, a { outline-offset: 4px; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); }
button { transition: transform 160ms ease, background 160ms ease, color 160ms ease; }
button:active:not(:disabled) { transform: scale(.975); }
button:disabled { opacity: .5; cursor: default; }
a { color: inherit; text-decoration: none; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.035em; }
h1 { font-size: clamp(32px, 8.8vw, 42px); font-weight: 750; margin-bottom: 9px; overflow-wrap: anywhere; }
h2 { font-size: 30px; font-weight: 750; margin-bottom: 8px; }
h3 { font-size: 19px; font-weight: 650; margin-bottom: 8px; }
p { margin-bottom: 12px; }
.app-shell { width: min(100%, 560px); margin: 0 auto; min-height: var(--app-height, 100dvh); padding: calc(max(env(safe-area-inset-top, 0px), var(--safe-top)) + var(--content-safe-top) + 14px) max(20px, calc(var(--safe-right) + var(--content-safe-right) + 16px)) calc(120px + max(env(safe-area-inset-bottom, 0px), var(--safe-bottom)) + var(--content-safe-bottom)) max(20px, calc(var(--safe-left) + var(--content-safe-left) + 16px)); }
.topbar { display: flex; align-items: center; justify-content: space-between; height: 44px; margin-bottom: 23px; }
.wordmark { display: flex; align-items: center; gap: 9px; font-size: 23px; font-weight: 750; letter-spacing: -.05em; }
.wordmark-mark { width: 30px; height: 30px; display: grid; place-items: center; color: var(--accent); }
.wordmark-mark svg { width: 28px; height: 28px; }
.avatar-button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); font-size: 14px; font-weight: 700; }
.page { animation: screen-in 220ms ease both; }
.hero-copy { padding: 5px 0 23px; }
.home-location { display: flex; align-items: center; gap: 7px; margin-bottom: 14px; color: var(--muted); font-size: 12px; }
.location-dot { height: 6px; width: 6px; border-radius: 50%; background: var(--accent); }
.accent-dot, .accent-text { color: var(--accent); }
.hero-subtitle, .page-lead { color: var(--muted); font-size: 14px; margin: 0; }
.hero-cta { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 78px; padding: 17px 21px; border: 0; border-radius: 15px; background: var(--accent); color: var(--accent-ink); text-align: left; box-shadow: 0 6px 24px #0002; }
.hero-cta b { display: block; font-size: 20px; font-weight: 750; letter-spacing: -.02em; }
.hero-cta small { display: block; margin-top: 2px; font-size: 12px; opacity: .75; }
.hero-cta svg { width: 29px; height: 29px; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-title h2 { font-size: 19px; letter-spacing: -.025em; margin: 0; }
.section-title > span { font-size: 11px; color: var(--muted); text-align: right; }
.next-game, .empty-game, .club-section { margin-top: 29px; }
.home-empty-content { display: flex; gap: 17px; align-items: center; padding: 10px 0 3px; }
.home-empty-content h3 { font-size: 16px; letter-spacing: -.02em; margin-bottom: 6px; }
.home-empty-content p { font-size: 13px; line-height: 1.5; color: var(--muted); margin-bottom: 4px; }
.empty-court { position: relative; width: 58px; height: 74px; border: 1px solid #a7b78d5c; border-radius: 2px; flex-shrink: 0; transform: rotate(-8deg); }
.empty-court::before, .empty-court::after, .empty-court span::before, .empty-court span::after { content: ""; position: absolute; background: #a7b78d5c; }
.empty-court::before { inset: 50% 0 auto; height: 1px; }
.empty-court::after { inset: 0 auto 0 50%; width: 1px; }
.empty-court span::before { inset: 0 auto 0 25%; width: 1px; }
.empty-court span::after { inset: 0 25% 0 auto; width: 1px; }
.club-event { display: flex; align-items: center; gap: 15px; width: 100%; padding: 17px 0; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; }
.club-event:last-child { border-bottom: 1px solid var(--line); }
.club-event-date { width: 70px; font-size: 11px; color: var(--muted); flex-shrink: 0; }
.club-event-date b { display: block; margin-top: 4px; color: var(--text); font-size: 21px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.club-event-copy { min-width: 0; flex: 1; }
.club-event-copy strong, .club-event-copy small, .club-event-copy > span { display: block; }
.club-event-copy strong { font-size: 14px; line-height: 1.3; }
.club-event-copy small { margin: 4px 0; font-size: 11px; line-height: 1.4; color: var(--muted); }
.club-event-copy > span { color: var(--accent); font-size: 11px; }
.club-event > svg { width: 18px; color: var(--muted); }
.club-events-empty { border-top: 1px solid var(--line); padding-top: 15px; }
.club-events-empty p { font-size: 14px; margin-bottom: 5px; }
.club-events-empty span { color: var(--muted); font-size: 12px; line-height: 1.5; display: block; }
.level-survey-card { display: grid; grid-template-columns: 60px 1fr; align-items: center; gap: 0 14px; margin-top: 26px; padding: 18px 0; border-top: 1px solid var(--line); }
.level-survey-card h2 { font-size: 15px; letter-spacing: -.015em; margin-bottom: 5px; }
.level-survey-card p { color: var(--muted); font-size: 12px; margin-bottom: 0; }
.level-survey-card .details-button { grid-column: 2; justify-self: start; }
.survey-decoration { color: var(--secondary-accent); font-size: 13px; font-weight: 700; grid-row: span 2; }
.page-heading { padding: 7px 0 23px; }
.page-heading .back-button { margin: -8px 0 12px -9px; }
.back-button { display: inline-flex; align-items: center; gap: 3px; min-height: 44px; padding: 10px 9px; border: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 550; }
.back-button svg { width: 18px; height: 18px; }
.eyebrow { font-size: 10px; letter-spacing: .12em; font-weight: 700; color: var(--muted); margin-bottom: 12px; }
.flow-progress { display: flex; list-style: none; gap: 16px; padding: 0; margin: -4px 0 21px; }
.flow-step { flex: 1; padding-bottom: 8px; border-bottom: 2px solid var(--line); font-size: 11px; color: var(--muted); }
.flow-step.is-current { color: var(--accent); border-color: var(--accent); }
.flow-step.is-done { border-color: #d0ec8766; }
.booking-context { display: flex; flex-wrap: wrap; gap: 0 14px; margin: -5px 0 12px; }
.booking-context button { display: flex; align-items: center; min-height: 44px; padding: 8px 0; border: 0; background: transparent; font-size: 12px; }
.context-city { gap: 5px; color: var(--accent); }
.context-city svg { width: 16px; height: 16px; }
.context-club { color: var(--muted); text-align: left; }
.flow-intro, .availability-hint { font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 16px; }
.format-list { display: grid; gap: 0; }
.format-choice { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 97px; padding: 18px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.format-choice.court_rental { padding: 20px 15px; border: 1px solid #d0ec872e; border-radius: 15px; background: #d0ec8709; margin-bottom: 5px; }
.format-icon { width: 44px; height: 44px; display: grid; place-items: center; background: var(--surface); border-radius: 12px; color: var(--accent); flex-shrink: 0; }
.court_rental .format-icon { color: var(--accent); background: transparent; }
.individual_training .format-icon, .coach_game .format-icon { color: var(--secondary-accent); }
.group_training .format-icon { color: #aac8ce; }
.format-copy { flex: 1; min-width: 0; }
.format-copy strong { display: block; font-size: 17px; line-height: 1.25; font-weight: 650; letter-spacing: -.025em; }
.format-copy small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.format-arrow svg { color: var(--muted); width: 18px; }
.location-list { display: grid; gap: 0; }
.location-choice { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 20px 0; min-height: 64px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.location-choice strong, .location-choice small { display: block; }
.location-choice strong { font-weight: 650; }
.location-choice small { color: var(--muted); font-size: 12px; margin-top: 5px; }
.location-choice svg { width: 18px; color: var(--accent); }
.selection-heading { font-size: 16px; letter-spacing: -.015em; margin-bottom: 13px; }
.date-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 6px 0 10px; }
.date-heading h3 { margin: 0; }
.calendar-picker { position: relative; display: flex; align-items: center; gap: 5px; min-height: 44px; font-size: 12px; color: var(--muted); overflow: hidden; }
.calendar-picker svg { width: 16px; }
.calendar-picker input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; color-scheme: dark; }
.calendar-picker:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.date-strip { display: flex; gap: 7px; overflow-x: auto; padding: 3px 2px 8px; margin: 0 -2px 12px; scrollbar-width: none; }
.date-strip::-webkit-scrollbar, .duration-strip::-webkit-scrollbar { display: none; }
.date-chip { flex-shrink: 0; width: 57px; min-height: 65px; padding: 8px 4px; border: 1px solid var(--line); border-radius: 12px; background: transparent; text-align: center; }
.date-chip small { display: block; font-size: 10px; color: var(--muted); }
.date-chip b { display: block; margin-top: 4px; font-size: 20px; font-weight: 650; line-height: 1.15; font-variant-numeric: tabular-nums; }
.date-chip[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.date-chip[aria-pressed="true"] small { color: var(--accent-ink); }
.selected-date { color: var(--accent); font-size: 12px; }
.selection-block { margin-top: 25px; }
.time-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.time-chip { min-height: 48px; padding: 10px 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 17px; font-weight: 550; font-variant-numeric: tabular-nums; }
.time-chip[aria-pressed="true"], .duration-chip[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: #d0ec870d; animation: select-in 180ms ease; }
.duration-strip { display: flex; gap: 9px; overflow-x: auto; padding: 2px 1px 8px; scrollbar-width: none; }
.duration-chip { flex-shrink: 0; min-width: 90px; min-height: 46px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 9px 13px; font-size: 14px; }
.selection-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.selection-summary strong { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.selection-summary span { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.selection-summary > b { font-size: 20px; font-weight: 700; text-align: right; max-width: 48%; }
.primary-button { width: 100%; min-height: 52px; padding: 14px 18px; border: 0; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 15px; }
.secondary-button { min-height: 46px; padding: 11px 16px; border: 1px solid var(--line); border-radius: 10px; background: transparent; font-size: 13px; font-weight: 600; }
.details-button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 0; border: 0; background: transparent; color: var(--accent); font-size: 13px; font-weight: 600; }
.details-button svg { width: 16px; }
.cancel-button { min-height: 44px; padding: 9px 0; border: 0; background: transparent; color: var(--muted); font-size: 12px; }
.slot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.slot-card { text-align: left; background: var(--surface); padding: 18px 15px; border: 1px solid var(--line); border-radius: 13px; }
.slot-card strong { display: block; font-size: 22px; font-variant-numeric: tabular-nums; line-height: 1.2; }
.individual-slot strong { font-size: 18px; white-space: nowrap; }
.slot-card strong > span { font-size: 14px; color: var(--muted); font-weight: 500; }
.individual-slot > span, .individual-slot > p { font-size: 11px; color: var(--muted); }
.individual-slot > span { display: block; margin-top: 8px; }
.individual-slot > p { margin: 5px 0 17px; }
.individual-slot > b { font-size: 15px; }
.event-list { display: grid; gap: 14px; }
.event-card { border: 0; border-radius: 15px; padding: 20px; }
.event-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.event-card-top strong { font-size: 28px; }
.event-card-top strong span { font-size: 14px; }
.places-badge { color: var(--accent); font-size: 10px; text-align: right; max-width: 85px; line-height: 1.5; }
.event-card h3 { font-size: 17px; margin-bottom: 6px; letter-spacing: -.02em; }
.game-meta { color: var(--muted); font-size: 12px; line-height: 1.5; margin-bottom: 6px; }
.event-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; margin-top: 17px; }
.event-card-bottom > span { display: flex; align-items: center; gap: 6px; color: var(--accent); font-size: 12px; }
.event-card-bottom svg { width: 16px; }
.event-card-bottom b { font-size: 16px; }
.group-lineup { margin-top: 17px; }
.lineup-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; }
.lineup-label strong { font-size: 12px; font-weight: 650; }
.lineup-label > span { color: var(--muted); font-size: 10px; }
.lineup-track { height: 3px; margin-top: 9px; border-radius: 2px; background: var(--line); overflow: hidden; }
.lineup-track i { display: block; height: 100%; background: var(--accent); border-radius: 2px; transition: width 220ms ease; }
.group-explanation { color: var(--muted); font-size: 11px; line-height: 1.5; margin: 10px 0 0; }
.group-explanation.ready { color: var(--accent); }
.coach-time { font-size: 14px; color: var(--muted); margin: 9px 0 22px; }
.coach-list { display: grid; gap: 0; }
.coach-choice { display: flex; align-items: center; gap: 13px; min-height: 87px; padding: 15px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.coach-avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--surface-raised); color: var(--secondary-accent); font-size: 20px; flex-shrink: 0; }
.coach-choice > span:nth-child(2) { flex: 1; min-width: 0; }
.coach-choice strong { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; }
.coach-choice small { display: block; color: var(--muted); font-size: 11px; line-height: 1.5; margin-top: 5px; }
.coach-choice > svg { width: 18px; color: var(--muted); }
.any-coach { margin-top: 14px; border-bottom: 0; }
.any-coach .coach-avatar { color: var(--accent); }
.reservation-summary { padding: 23px; border-radius: 16px; background: var(--surface); position: relative; overflow: hidden; }
.reservation-summary::before { content: ""; position: absolute; top: 0; left: 23px; right: 23px; height: 2px; background: var(--accent); opacity: .7; }
.summary-format { display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: 12px; margin-bottom: 18px; }
.summary-format svg { width: 18px; }
.reservation-summary > h3 { font-size: 24px; line-height: 1.2; margin: 0 0 6px; }
.summary-address { color: var(--muted); font-size: 12px; margin-bottom: 27px; }
.summary-date { font-size: 15px; margin-bottom: 9px; }
.summary-time { font-size: clamp(27px, 7.5vw, 35px); font-weight: 650; letter-spacing: -.035em; font-variant-numeric: tabular-nums; line-height: 1.15; white-space: nowrap; }
.summary-time span { color: var(--muted); font-weight: 450; }
.summary-duration { font-size: 12px; color: var(--muted); margin: 9px 0 18px; }
.summary-coach { display: flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 13px; }
.summary-coach svg { width: 18px; color: var(--secondary-accent); }
.summary-price { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 20px; margin-top: 23px; border-top: 1px solid var(--line); }
.summary-price span { color: var(--muted); font-size: 12px; }
.summary-price strong { font-size: 25px; letter-spacing: -.03em; text-align: right; }
.confirmation-note, .booking-status-copy { color: var(--muted); font-size: 12px; line-height: 1.6; }
.confirmation-note { margin: 17px 7px 20px; }
.success-card { padding: 25px 0 10px; text-align: center; }
.success-mark { display: grid; place-items: center; width: 78px; height: 78px; margin: 0 auto 27px; border: 1px solid #d0ec8755; border-radius: 50%; background: #d0ec8712; color: var(--accent); animation: success-in 280ms ease both; }
.success-mark svg { width: 35px; height: 35px; stroke-width: 2; }
.success-card h2 { font-size: 32px; margin: 0 auto 25px; max-width: 300px; }
.success-card > p { font-size: 13px; color: var(--muted); }
.success-card .success-club { font-size: 17px; color: var(--text); margin-bottom: 8px; }
.success-card .success-date { margin-bottom: 22px; }
.success-card > .status { display: inline-flex; margin-bottom: 16px; }
.success-card .group-lineup { padding: 0 18px; text-align: left; }
.success-actions { display: grid; gap: 10px; margin-top: 30px; }
.game-card { background: var(--surface); border-radius: 15px; padding: 20px; }
.game-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.game-day { font-size: 13px; }
.game-time { font-size: 31px; font-weight: 650; font-variant-numeric: tabular-nums; margin-bottom: 14px; white-space: nowrap; }
.game-time > span { font-size: 22px; font-weight: 450; color: var(--muted); }
.game-club { font-size: 16px; font-weight: 550; margin-bottom: 4px; line-height: 1.3; }
.game-card .booking-status-copy { font-size: 11px; margin: 13px 0 0; }
.status { display: inline-flex; padding: 5px 8px; border-radius: 6px; background: #df967012; color: var(--secondary-accent); font-size: 10px; font-weight: 550; line-height: 1.4; max-width: 115px; text-align: center; }
.status.confirmed { color: var(--accent); background: #d0ec870d; }
.status.cancelled, .status.completed { color: var(--muted); background: var(--surface-raised); }
.booking-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 14px 0 -8px; }
.games-tabs { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.games-tabs button { min-height: 49px; flex: 1; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); padding: 12px 5px; font-size: 14px; }
.games-tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--accent); }
.games-tabs button span { margin-left: 5px; color: var(--accent); font-size: 11px; }
.games-list { display: grid; gap: 14px; }
.games-empty, .availability-empty { text-align: center; padding: 35px 9px; }
.games-empty > svg, .availability-empty > svg { color: var(--muted); width: 39px; height: 39px; margin-bottom: 18px; }
.games-empty h3, .availability-empty h3 { font-size: 21px; max-width: 270px; margin: 0 auto 12px; }
.games-empty p, .availability-empty p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.games-empty .primary-button { margin-top: 17px; }
.profile-card { display: flex; align-items: center; gap: 17px; padding: 5px 0 28px; }
.profile-avatar-large { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: var(--surface-raised); color: var(--accent); font-size: 24px; font-weight: 600; flex-shrink: 0; }
.profile-identity { min-width: 0; }
.profile-card h3 { font-size: 22px; line-height: 1.3; margin: 0 0 5px; }
.profile-card p { color: var(--muted); font-size: 12px; margin: 0 0 9px; overflow-wrap: anywhere; }
.profile-level { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 5px; background: #d0ec870d; color: var(--muted); font-size: 10px; }
.profile-level b { color: var(--accent); }
.profile-list { border-top: 1px solid var(--line); }
.profile-list > div, .profile-support, .profile-notifications summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; border-bottom: 1px solid var(--line); padding: 16px 0; font-size: 13px; }
.profile-list > div > span { color: var(--muted); }
.profile-list b { font-weight: 550; text-align: right; overflow-wrap: anywhere; }
.profile-notifications summary { cursor: pointer; list-style: none; }
.profile-notifications summary::-webkit-details-marker { display: none; }
.profile-notifications summary > span:last-child { color: var(--muted); font-size: 12px; }
.profile-notifications i, .profile-support i { font-style: normal; display: inline-block; margin-left: 6px; }
.profile-notifications p { padding-top: 15px; color: var(--muted); font-size: 12px; }
.profile-notifications[open] { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.profile-notifications[open] summary { border-bottom: 0; padding-bottom: 6px; }
#notification-write-access { width: 100%; }
.profile-support > span:last-child { color: var(--accent); font-size: 12px; }
#staff-entry { width: 100%; margin-top: 24px; color: var(--muted); }
.venue-details { padding: 25px 0; }
.venue-details h3 { font-size: 16px; }
.venue-details p { color: var(--muted); font-size: 13px; }
.venue-phone { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-size: 12px; }
.cancel-detail-button { width: 100%; color: var(--danger); }
.details-summary .summary-date { margin-top: 23px; }
.details-summary .booking-status-copy { margin-top: 13px; }
.bottom-nav { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; z-index: 4; bottom: 0; left: 50%; width: min(100%, 560px); transform: translateX(-50%); padding: 8px max(16px, calc(var(--safe-left) + var(--content-safe-left))) max(10px, env(safe-area-inset-bottom, 0px), calc(var(--safe-bottom) + var(--content-safe-bottom))); background: #101314ed; backdrop-filter: blur(18px); border-top: 1px solid var(--line); }
.nav-item { min-height: 54px; display: grid; place-content: center; justify-items: center; gap: 5px; border: 0; background: transparent; color: var(--muted); position: relative; }
.nav-item svg { width: 21px; height: 21px; }
.nav-item small { font-size: 10px; font-weight: 550; }
.nav-item.is-active { color: var(--accent); }
.nav-item.is-active::before { content: ""; position: absolute; inset: -9px 35% auto; height: 2px; background: var(--accent); border-radius: 2px; animation: nav-in 180ms ease; }
.error-banner, .notice { padding: 15px; margin: 0 0 18px; border-radius: 10px; background: #f28b8410; color: var(--danger); font-size: 13px; line-height: 1.5; }
.retry-button { display: block; min-height: 44px; margin-top: 8px; padding: 9px 12px; border: 1px solid currentColor; border-radius: 8px; background: transparent; }
.inline-loading { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 140px; color: var(--muted); font-size: 13px; }
.inline-loading > span { height: 18px; width: 18px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: spin 700ms linear infinite; }
.loader { position: fixed; z-index: 10; inset: 0; display: grid; place-content: center; gap: 12px; background: var(--background); color: var(--muted); text-align: center; font-size: 13px; }
.loader-court { width: 34px; height: 34px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; margin: auto; animation: spin 700ms linear infinite; }
.toast { position: fixed; z-index: 11; left: 50%; bottom: calc(90px + var(--safe-bottom) + var(--content-safe-bottom)); transform: translate(-50%, 8px); width: max-content; max-width: calc(100% - 40px); padding: 12px 16px; background: var(--surface-raised); box-shadow: 0 10px 35px #0007; border: 1px solid var(--line); border-radius: 11px; font-size: 12px; opacity: 0; transition: transform 180ms ease, opacity 180ms ease; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
#cancel-dialog { width: min(calc(100% - 24px), 536px); max-width: 536px; margin: auto auto max(12px, calc(var(--safe-bottom) + var(--content-safe-bottom))) auto; padding: 0; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); color: var(--text); }
#cancel-dialog::backdrop { background: #0009; backdrop-filter: blur(3px); }
.cancel-sheet { padding: 13px 23px 23px; animation: screen-in 200ms ease; }
.cancel-sheet-handle { display: block; width: 32px; height: 3px; border-radius: 2px; background: var(--line); margin: 0 auto 23px; }
.cancel-sheet h2 { font-size: 26px; margin-bottom: 15px; }
.cancel-sheet > p { font-size: 13px; }
.cancel-sheet .primary-button { margin: 16px 0 10px; }
.onboarding .bottom-nav, .onboarding .avatar-button { display: none; }
.onboarding .app-shell { padding-bottom: 35px; }
.registration-form { padding-top: 7px; }
.registration-form > label { display: grid; gap: 8px; margin-bottom: 20px; color: var(--muted); font-size: 13px; }
input:not([type=radio]):not([type=checkbox]), select { min-height: 47px; min-width: 0; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--text); }
.registration-form .consent-option { display: flex; gap: 11px; align-items: flex-start; font-size: 12px; line-height: 1.55; }
.consent-option input { margin: 4px 0; accent-color: var(--accent); flex-shrink: 0; }
.form-error { color: var(--danger); font-size: 13px; }
.survey-options { display: grid; gap: 10px; margin-bottom: 22px; }
.survey-option { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 14px; line-height: 1.5; cursor: pointer; }
.survey-option:has(input:checked) { border-color: var(--accent); background: #d0ec8708; }
.survey-option input { accent-color: var(--accent); flex-shrink: 0; }
.level-badge { display: grid; place-items: center; width: 110px; height: 110px; border-radius: 30px; margin: 0 auto 25px; background: var(--accent); color: var(--accent-ink); font-size: 52px; font-weight: 700; }
#staff-page label { display: grid; gap: 7px; margin: 14px 0; color: var(--muted); font-size: 13px; }
#staff-page .confirm-card { padding: 19px; margin-top: 20px; background: var(--surface); border-radius: 13px; }
#staff-page .game-card { margin-top: 14px; }
#staff-page .secondary-button { margin: 8px 7px 0 0; }
#staff-notice { color: var(--accent); font-size: 13px; }
.staff-pagination { display: flex; gap: 10px; margin: 15px 0; }
.booking-coach-select { margin-top: 12px; }
.group-count { font-size: 13px; color: var(--accent); }
.empty-state { padding: 35px 10px; color: var(--muted); font-size: 13px; text-align: center; }
.is-hidden { display: none !important; }
@keyframes screen-in { from { opacity: .4; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes select-in { from { transform: scale(.96); } to { transform: none; } }
@keyframes success-in { from { transform: scale(.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes nav-in { from { transform: scaleX(.4); } to { transform: scaleX(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 350px) {
  .app-shell { padding-left: max(16px, calc(var(--safe-left) + var(--content-safe-left) + 12px)); padding-right: max(16px, calc(var(--safe-right) + var(--content-safe-right) + 12px)); }
  .format-choice { gap: 10px; }
  .format-choice.court_rental { padding-left: 10px; padding-right: 10px; }
  .format-copy strong { font-size: 15px; }
  .format-copy small { font-size: 11px; }
  .slot-grid { grid-template-columns: 1fr; }
  .event-card, .game-card { padding: 17px; }
  .summary-time { font-size: 27px; }
  .reservation-summary { padding: 20px; }
  .summary-price strong { font-size: 22px; }
  .game-time { font-size: 29px; }
  .game-time span { font-size: 20px; }
  .club-event { gap: 10px; }
  .club-event-date { width: 62px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* Keep the booking decision and its price together in a standard Telegram viewport. */
#booking-page .page-heading { padding-bottom: 14px; }
#booking-page .page-heading .back-button { margin-bottom: 2px; }
#booking-page .flow-progress { margin-bottom: 14px; }
#booking-page .booking-context { margin-bottom: 4px; }
#booking-page .date-heading { margin-top: 0; }
#booking-page .date-strip { margin-bottom: 8px; }
#booking-page .availability-hint { margin-bottom: 8px; }
#booking-page .selection-block { margin-top: 16px; }
#booking-page .selection-heading { margin-bottom: 10px; }
#booking-page .selection-summary { margin-top: 20px; margin-bottom: 10px; padding: 14px 0; }
/* Catalog names and unquoted prices must remain readable on narrow screens. */
.app-shell { overflow-wrap: anywhere; }
.event-card-bottom > b { min-width: 0; max-width: 50%; }
.summary-price strong { min-width: 0; max-width: 65%; }
.location-choice > span { min-width: 0; }
.location-choice > b { max-width: 43%; text-align: right; }
.event-card-bottom > span { flex: 1; min-width: 0; justify-content: flex-end; text-align: right; }
/* The club cabinet separates the daily queue from occasional setup. */
.staff-tabs { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin:14px 0 24px;padding:4px;background:var(--surface,#14201c);border-radius:12px; }
.staff-tabs button { min-height:44px;padding:8px 2px;background:transparent;border:0;color:var(--muted,#899c96);font:inherit;font-size:12px;border-radius:8px; }
.staff-tabs button.is-active { background:var(--accent,#cdea78);color:#102017;font-weight:700; }
.staff-metrics { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0 12px; }
.staff-metric { min-height:96px;text-align:left;border:1px solid #34423b;border-radius:14px;padding:14px;background:#152019;color:inherit; }
.staff-metric strong { display:block;font-size:30px;line-height:1.15;margin-bottom:8px;color:#d4ed8b; }
.staff-metric span { display:block;font-size:13px;line-height:1.3; }
.staff-quick-actions { display:grid;gap:8px;margin:18px 0 28px; }
.staff-section-heading { margin-top:24px; }
#staff-notice:empty { display:none; }
#staff-notice { color:#d4ed8b;padding:12px 0;overflow-wrap:anywhere; }
#staff-page details.confirm-card { margin:14px 0;padding:18px; }
#staff-page details > summary { min-height:44px;display:flex;align-items:center;justify-content:space-between;cursor:pointer;font-weight:700;gap:10px;list-style:none; }
#staff-page details > summary::after { content:"+";font-size:22px; }
#staff-page details[open] > summary::after { content:"−"; }
#staff-page details[open] > summary { margin-bottom:14px; }
#staff-page details form.confirm-card { padding:0;border:0;background:transparent; }
.staff-session { padding:18px 0;border:0;border-bottom:1px solid #34423b;border-radius:0;background:transparent; }
.staff-session-name { font-size:13px;color:#a7b3ad;margin:0 0 8px; }
.staff-chips { display:flex;gap:6px;flex-wrap:wrap;margin:12px 0; }
.staff-chip { display:inline-flex;align-items:center;font-size:11px;line-height:1.3;border-radius:6px;padding:5px 7px;background:#26312b;color:#bfcbc4; }
.staff-chip.published,.staff-chip.confirmed { background:#273924;color:#d4ed8b; }
.staff-chip.pending { background:#3a3121;color:#f5d59a; }
.staff-chip.full { background:#2b3546;color:#c0d5f4; }
.staff-chip.unpublished,.staff-chip.cancelled { background:#342829;color:#dbacaf; }
.staff-card-actions { display:grid;gap:8px;margin-top:14px; }
.staff-danger { color:#f2a59a; }
.staff-inline-settings { padding:10px 0; }
.staff-participants { padding:14px 0; }
.staff-person { padding:12px 0;border-bottom:1px solid #34423b;overflow-wrap:anywhere; }
.staff-person strong { display:block;margin-bottom:6px; }
.staff-pagination { display:flex;align-items:center;gap:8px;justify-content:space-between;margin:18px 0; }
.staff-pagination button { flex:1; }
.staff-mode .bottom-nav { display:none; }
.staff-page-heading { display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;margin-bottom:24px; }
.staff-page-heading h2 { grid-column:1/-1; }
.staff-page-heading .eyebrow { margin:0; }
#staff-exit { margin:0;font-size:12px;min-height:44px;padding:8px 12px; }

.staff-row { width:100%;text-align:left;color:inherit;cursor:pointer;min-height:72px; }
.staff-filters { display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:16px 0; }
.staff-filters button[aria-pressed=true],.slot-choice[aria-pressed=true] { border-color:var(--accent);background:#223426; }
.staff-day-nav { display:grid;grid-template-columns:48px minmax(0,1fr) 48px;align-items:end;gap:8px; }
.staff-day-nav button { padding:10px; }
.court-check { display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);border-radius:12px;min-height:48px; }
.court-check input { width:22px;height:22px;flex:none; }
#staff-detail-content .location-choice { width:100%;margin:8px 0; }
#staff-detail-content > button { margin:12px 0; }
#staff-detail-content > label { margin:16px 0; }
/* New controls keep times/prices legible and meet mobile touch sizes. */
.slot-choice { min-height:56px;padding:14px 12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--text);text-align:center; }
.slot-choice strong,.slot-choice span,.slot-choice b { display:block; }
.slot-choice span { margin:7px 0;font-size:13px;color:var(--muted); }
#availability-content .selection-heading { margin-top:18px; }
#availability-content > .primary-button { margin-top:14px; }
.staff-row { border:1px solid var(--line); }
.staff-page-heading { padding-bottom:8px;margin-bottom:8px; }
.staff-page-heading h2 { margin-bottom:0; }
.staff-metric { min-height:84px;padding:12px; }
.staff-metric strong { font-size:26px; }
.staff-tabs { margin-bottom:16px; }
#staff-panel-schedule .staff-section-heading { display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:12px;margin-bottom:16px; }
#staff-panel-schedule .staff-section-heading h3 { margin:0; }
#staff-panel-schedule .staff-section-heading .primary-button { width:auto;flex:none;min-height:46px;padding:11px 16px;font-size:13px; }
.staff-day-filters { margin:12px 0 18px; }
.staff-day-filters summary { min-height:44px;display:flex;align-items:center;color:var(--muted);cursor:pointer; }

.selected-start { display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0; }
.selected-start strong { font-size:15px; }
/* Staff refinement: fewer decisions on each screen, using the existing palette. */
#staff-page .staff-filters .secondary-button { margin:0; }
#staff-page .staff-day-nav { grid-template-columns:48px minmax(0,1fr) 48px;align-items:center; }
#staff-page .staff-day-nav button { margin:0;min-height:44px; }
#staff-page .staff-date-label { margin:0;flex:1;min-width:0;font-size:12px; }
#staff-page .staff-date-label input { margin-top:6px;min-height:44px; }
#staff-page .staff-row { padding:14px;margin-top:10px; }
#staff-page .staff-row h3 { font-size:17px;margin:0 0 7px; }
#staff-page .staff-row .game-meta { margin:5px 0;font-size:12px;line-height:1.5; }
#staff-page .staff-chip { margin-top:6px; }
.staff-timeline-time { display:block;color:var(--muted);font-size:13px;margin-bottom:8px; }
#staff-schedule-filter { display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px;padding:8px 0; }
#staff-schedule-filter button { min-width:44px;margin:0; }
#staff-page.staff-detail-open .staff-page-heading h2,
#staff-page.staff-detail-open #staff-club-field { display:none; }
#staff-detail-back { min-height:44px;margin:0 0 12px; }
#staff-detail-content h3 { margin:14px 0; }
#staff-detail-content form > label { display:block;margin:14px 0; }
#staff-detail-content input:not([type=checkbox]):not([type=radio]),
#staff-detail-content select { min-height:48px;scroll-margin-bottom:90px; }
.staff-form-footer { position:sticky;bottom:0;padding:12px 0 calc(12px + env(safe-area-inset-bottom));background:var(--background);z-index:2; }
#staff-detail-content .staff-form-footer .primary-button { margin:0;min-height:48px; }
#staff-configuration .location-choice { width:100%;min-height:56px;margin:10px 0; }
.staff-config-list p { padding:14px 0;margin:0;border-bottom:1px solid var(--line); }
.staff-detail-open #staff-notice { padding:8px 0; }

.payment-card{border:1px solid var(--line);border-radius:18px;padding:20px;margin:16px 0;background:var(--surface);}.payment-amount{font-size:24px}.payment-state{font-weight:650}.payment-card .primary-button{width:100%;min-height:48px;margin-top:12px}.payment-refund{color:var(--accent)}#test-payment-page{padding-bottom:110px}#test-payment-page button{min-height:48px;width:100%;margin:8px 0}.payment-test-note{padding:12px;border:1px solid var(--line);border-radius:12px}

#test-payment-page #test-payment-back{width:auto;text-align:left}.payment-card{scroll-margin-bottom:100px}
