/* Cort visual experience. Real court imagery, restrained motion, readable data. */
:root {
  --paper: #f4f4ee;
  --ink: #203d32;
  --dark: #193a2f;
  --muted: #626f65;
  --line: #dce2d7;
  --soft: #edf1e6;
  --lime: #d7eaa1;
  --shadow: 0 10px 36px #183a2e07;
}
body { -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid #779546;
  outline-offset: 4px;
}
.main-shell, .content, .profile-grid > *, .owner-grid > * { min-width: 0; }
.content { max-width: 1420px; padding: 36px 38px 44px; }
.sidebar { background: #fafbf5; }
.topbar { background: #fafbf5e8; }
.nav a.active { box-shadow: 0 5px 15px #1b3a2f13; }
.page-heading { margin-bottom: 30px; }
.page-heading h1 { font-size: clamp(28px, 3vw, 36px); font-weight: 550; letter-spacing: -1.3px; }
.page-heading p { max-width: 680px; }
.page-heading .eyebrow, .intro-copy .eyebrow { color: #6d7b57; }
.btn { border-radius: 11px; min-height: 46px; }
.btn:not(.secondary):not(.ghost):not(.danger):not(.lime) { box-shadow: 0 3px 7px #193a2f10; }
.btn:disabled { box-shadow: none; }
.card, .soft-card, .assistant-panel, .booking-workspace, .match-card { border-color: var(--line); border-radius: 18px; }
.section-heading { margin-bottom: 20px; }
.section-heading h2 { font-size: 23px; }
.info-banner { border: 1px solid #dce4d2; border-radius: 12px; padding: 16px 18px; }
.empty-state { border-radius: 16px; padding: 34px 24px; }
.pill { letter-spacing: .05px; }
.pill.orange { color: #855026; background: #f8ecdc; }

/* Editorial welcome: copy and a real visual, followed by live club availability. */
.home-intro.club-hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fbfcf6;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}
.club-hero .intro-copy { padding: 32px; align-self: center; }
.club-hero .intro-copy h1 { font-size: clamp(30px, 3.25vw, 44px); line-height: 1.1; letter-spacing: -1.7px; }
.club-hero .intro-copy > p { margin-top: 18px; font-size: 14px; line-height: 1.75; }
.club-hero .intro-actions { margin-top: 24px; gap: 10px; }
.club-hero .intro-actions .btn { width: 100%; justify-content: space-between; }
.club-hero-visual { position: relative; min-width: 0; min-height: 360px; overflow: hidden; background: #e6dfd0; }
.club-hero-visual > img { display: block; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; }
.visual-caption { position: absolute; bottom: 13px; right: 13px; background: #17382de8; color: #fff; border-radius: 6px; font-size: 10px; padding: 5px 8px; letter-spacing: .15px; }
.club-hero > .club-live-card { grid-column: 1 / -1; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: #f7f9f1; padding: 17px 24px; display: grid; grid-template-columns: 1.15fr repeat(3, 1fr); gap: 10px 22px; align-items: center; }
.club-hero .club-live-card .section-heading { display: block; margin: 0; }
.club-hero .club-live-card h3 { margin: 0 0 4px; }
.club-hero .club-live-card .section-heading .pill { font-size: 10px; padding: 2px 0; border: 0; }
.club-hero .live-court { border: 0; border-left: 1px solid var(--line); padding: 4px 0 4px 18px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 64px; gap: 7px; border-radius: 0; }
.club-hero .live-court > span { font-size: 12px; font-weight: 600; }
.club-hero .live-court strong { font-size: 11px; color: #55723f; }
.club-hero .club-live-card > .small-note { grid-column: 1 / -1; font-size: 10px; margin: 0; }
.next-game-strip { border-left: 4px solid #88a653; background: #f5f8ed; border-radius: 12px; }

/* Booking reads as a visit to the club, with tangible court previews. */
.booking-progress { border: 0; background: #e9eee2; padding: 15px 20px; border-radius: 13px; gap: 28px; }
.booking-workspace { padding: 28px; }
.booking-toolbar { max-width: 700px; margin-bottom: 20px; }
.booking-workspace .days { margin-bottom: 20px; }
.day { min-width: 64px; border-radius: 12px; padding: 11px 12px; }
.day.active { box-shadow: 0 4px 10px #193a2f12; }
.court-choice-grid { gap: 18px; }
.court-choice { border-radius: 16px; background: #fcfdf9; box-shadow: 0 3px 10px #1b3a2f03; }
.court-choice.selected { border-color: #4e7246; box-shadow: 0 0 0 2px #4e7246, 0 8px 22px #2843330c; background: #f8fbf0; }
.court-select { min-height: 300px; border-radius: 15px; }
.court-mini { height: 186px; background: #e3e7db; }
.court-mini .court-thumbnail { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform 280ms ease, filter 180ms ease; }
.court-mini:has(.court-thumbnail) { position: relative; }
.court-choice.unavailable .court-thumbnail { filter: saturate(.4); }
.court-choice-copy { padding: 19px 20px 20px; }
.court-choice-copy h3 { font-size: 17px; }
.court-choice-check { right: 16px; bottom: 21px; }
.favorite-toggle { top: 12px; right: 12px; width: 44px; height: 44px; background: #fffffff2; box-shadow: 0 3px 12px #1a392e12; font-size: 22px; }
.favorite-toggle[aria-pressed="true"], .favorite .favorite-toggle { color: #6c581c; background: #fcf3cf; }
.availability-label { font-size: 12px; padding-right: 22px; }
.availability-label.free { color: #426432; }
.court-next-time { font-size: 12px; background: #f2f4eb; }
.booking-selection-summary { margin-top: 26px; background: #eaf1dd; border: 1px solid #d7e2c6; padding: 21px 23px; border-radius: 14px; }
.booking-selection-summary h3 { font-size: 19px; }
.time-choice { min-height: 47px; border-radius: 10px; }
.time-choice.active { box-shadow: 0 3px 9px #203d3217; }
.slot-section { margin-top: 26px; }

/* Matches show the actual teams visually; component geometry lives in court-experience.css. */
.cards-grid { gap: 20px; }
.match-card, .suggestion-card { overflow: hidden; }
.match-card { padding: 23px; }
.match-card > h3 { font-size: 20px; margin-top: 18px; }
.match-visual { margin: 16px 0; border-radius: 14px; overflow: hidden; background: #f1f3eb; }
.match-card .match-visual { margin-left: -7px; margin-right: -7px; }
.suggestion-card .match-visual { margin-left: -3px; margin-right: -3px; }
.match-card .people-row { margin-top: 0; }
.match-card .why { font-size: 12px; line-height: 1.75; }
.match-card .date-row { margin-top: 14px; }
.match-card .card-bottom { padding-top: 17px; gap: 12px; }
.assistant-panel { background: #fbfcf6; padding: 28px; }
.assistant-head { padding-bottom: 17px; border-bottom: 1px solid var(--line); margin-bottom: 17px; }
.assistant-head > .row > .icon { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: #e7eedb; }
.assistant-head h2 { font-size: 25px; }
.assistant-status { background: #e5edd8; color: #466333; }
.assistant-summary { max-width: 760px; }
.suggestion-card { background: #fff; border-radius: 15px; padding: 19px; }
.suggestion-time h3 { font-size: 20px; }
.suggestion-reasons { color: #53634f; }
.suggestion-footer { margin-top: auto; }
.request-resolution { background: #fdfaf2; border-color: #e3d8bf; border-radius: 17px; padding: 25px; }
.request-resolution .suggestion-card { border-color: #e5decc; }

/* Earned progress has a calm club-pass treatment, without invented points. */
.club-pass { padding: 26px; background: #edf2e3; border: 1px solid #d6e1c6; border-radius: 18px; }
.pass-intro { align-items: center; gap: 17px; margin-bottom: 23px; }
.pass-intro h2 { font-size: 25px; }
.pass-emblem { width: 52px; height: 52px; border-radius: 15px; background: var(--dark); color: var(--lime); }
.pass-progress-ring { --progress: 0; width: 74px; height: 74px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; margin-left: auto; color: var(--dark); font-size: 17px; font-weight: 650; background: conic-gradient(#668a42 calc(var(--progress) * 1%), #d7e2c8 0); position: relative; isolation: isolate; }
.pass-progress-ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #edf2e3; z-index: -1; }
.mission { background: #f9fbf3; border: 1px solid #dbe3ce; border-radius: 12px; padding: 16px; align-items: flex-start; }
.mission.done { background: #fff; border-color: #cbd8b9; }
.mission-symbol { width: 31px; height: 31px; }
.mission h3 { font-size: 14px; }
.mission p { font-size: 12px; }
.mission-state { color: #626f57; font-size: 11px; }
.pass-footnote { color: #606e56; }

/* Personal settings and a concrete profile preview. */
.profile-form { padding: 28px; }
.profile-header { border-bottom: 1px solid var(--line); padding-bottom: 24px; }
.profile-form > h3 { font-size: 18px; margin-top: 4px; }
.player-identity { display: flex; align-items: center; gap: 16px; padding: 24px; background: #1f4133; color: #fff; border-radius: 17px; }
.player-identity > .avatar { width: 62px; height: 62px; font-size: 20px; border: 3px solid #ffffff50; }
.player-identity > div { min-width: 0; }
.player-identity h2, .player-identity h3 { color: #fff; }
.player-identity p { font-size: 12px; color: #cedbc7; margin-top: 5px; }
.player-identity meter { display: block; width: 100%; height: 9px; margin-top: 12px; accent-color: var(--lime); }
.profile-preview-card { border: 1px solid #d5dec8; border-radius: 17px; overflow: hidden; background: #f0f4e7; padding: 24px; }
.profile-preview-card h3 { font-size: 19px; margin: 8px 0 12px; }
.profile-preview-card p { line-height: 1.75; font-size: 13px; color: var(--muted); }
.intent-choice span { min-height: 96px; border-radius: 13px; font-size: 12px; background: #fcfdf8; }
.intent-choice input:checked + span { background: #eaf2dc; border-color: #6d8b4e; box-shadow: inset 0 0 0 1px #6d8b4e; }
.weekday-check span { width: 42px; height: 45px; border-radius: 10px; font-size: 12px; }
.form-field input, .form-field select { background: #fff; border-color: #ced9c6; }

/* Operator's view: three real surfaces with live availability, followed by honest metrics. */
.club-pulse { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.7fr); gap: 25px; align-items: center; border: 1px solid var(--line); border-radius: 20px; background: #fbfcf7; padding: 25px; margin-bottom: 26px; }
.pulse-intro h2 { font-size: 28px; letter-spacing: -.9px; margin: 8px 0 10px; }
.pulse-intro p { font-size: 13px; color: var(--muted); line-height: 1.75; }
.pulse-courts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pulse-court { min-width: 0; padding: 0 0 14px; text-align: left; display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.pulse-court img { width: 100%; height: 133px; object-fit: cover; display: block; margin-bottom: 8px; }
.pulse-court > span { font-size: 12px; font-weight: 600; padding: 0 13px; }
.pulse-court > strong { font-size: 11px; color: #53713d; padding: 0 13px; font-weight: 500; }
.stats { gap: 17px; }
.stat { border-radius: 15px; padding: 21px; }
.stat-value { font-size: 36px; letter-spacing: -1.5px; margin: 16px 0 10px; }
.stat-top { line-height: 1.4; }
.stat-top .icon { padding: 7px; width: 33px; height: 33px; border-radius: 10px; background: #edf2e5; color: #658347; }
.bar-track { height: 11px; background: #eaf0e0; }
.bar-track i { background: #799852; min-width: 0; }
.bar-row { grid-template-columns: 104px minmax(0, 1fr) 36px; font-size: 12px; }
.activity { padding: 17px 0; }
.activity-icon { border-radius: 50%; width: 32px; height: 32px; }
.activity p { font-size: 13px; }
.activity small { display: block; margin-top: 4px; }
.owner-cta { border-radius: 16px; padding: 24px; }
.demo-panel { border-radius: 13px; background: #f6f3e9; }
.table-wrap { border-radius: 16px; }
th { font-size: 11px; padding: 17px 20px; background: #f1f4ea; }
td { padding: 17px 20px; }
.person-card h3 { font-size: 14px; }

/* A continuous time axis; the containing region scrolls, never the document. */
.day-court-timeline { border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; }
.timeline-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.timeline-hours { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); min-width: 900px; margin-left: 150px; height: 43px; align-items: center; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.timeline-hours > span { padding-left: 8px; }
.timeline-court-row { display: grid; grid-template-columns: 150px minmax(900px, 1fr); min-width: 1050px; border-bottom: 1px solid var(--line); }
.timeline-court-row:last-child { border-bottom: 0; }
.timeline-court-name { min-width: 0; padding: 18px 15px; display: flex; flex-direction: column; justify-content: center; gap: 8px; font-size: 13px; background: #fafbf6; border-right: 1px solid var(--line); }
.timeline-court-name img { width: 65px; height: 46px; object-fit: cover; border-radius: 6px; }
.timeline-lane { position: relative; min-height: 114px; background: repeating-linear-gradient(to right, transparent 0, transparent calc(100% / 15 - 1px), #e8ecdf calc(100% / 15 - 1px), #e8ecdf calc(100% / 15)); }
.timeline-empty-slot { position: absolute; top: 0; bottom: 0; border: 0; border-right: 1px solid #e9eee2; background: transparent; color: #81946e; font-size: 19px; min-width: 0; }
.timeline-empty-slot:disabled { opacity: 1; color: transparent; background: #f6f7f2a0; }
.timeline-event { position: absolute; top: 14px; bottom: 14px; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 5px; text-align: left; min-width: 0; overflow: hidden; border: 1px solid #b8d09c; border-left: 4px solid #789b49; border-radius: 9px; padding: 10px; background: #eaf2de; color: #35552d; font-size: 12px; }
.timeline-event strong, .timeline-event span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timeline-event small { font-size: 10px; }
.timeline-event.pending { background: #fbefdc; border-color: #dfbd8d; border-left-color: #b18144; color: #7a542c; }
.timeline-event.blocked { background: #eceee7; border-color: #d0d5c9; border-left-color: #8b9882; color: #56614f; }

/* Dialogs keep real controls readable while the court is the visual focus. */
.overlay { background: #102a20b3; backdrop-filter: blur(7px); }
.modal { border: 1px solid #ffffff70; background: #fafbf5; border-radius: 21px; box-shadow: 0 28px 100px #0e2b2040; }
.modal.wide { width: 920px; }
.modal.booking-modal { width: 1000px; }
.modal-head { border-bottom: 1px solid var(--line); padding-bottom: 21px; margin-bottom: 22px; }
.modal-head h2 { font-size: 28px; }
.modal-head .eyebrow { color: #708158; }
.modal-footer { position: sticky; bottom: -28px; padding: 17px 0 4px; background: #fafbf5f5; z-index: 5; }
.modal .court-choice-grid.compact .court-mini { height: 124px; }
.modal .court-choice-grid.compact .court-select { min-height: 240px; }
.booking-selection-summary.compact { border-radius: 12px; background: #edf2e4; }
.status-steps { font-size: 12px; padding: 16px 0; }
.status-steps b { width: 24px; height: 24px; font-size: 11px; }
.confirmation-icon { width: 76px; height: 76px; background: #e1edcd; color: #4e7334; }
.page-foot { margin-top: 38px; padding-top: 21px; }

@media (hover:hover) and (pointer:fine) {
  .btn:not(:disabled):hover { transform: translateY(-1px); }
  .court-choice:not(.selected):hover { border-color: #8fa57e; box-shadow: 0 8px 22px #2643320b; }
  .court-select:hover .court-thumbnail { transform: scale(1.035); }
  .pulse-court:hover { border-color: #8ca977; box-shadow: 0 5px 16px #1d3f300d; }
  .timeline-empty-slot:not(:disabled):hover { background: #edf4e2; color: #355a26; }
  .timeline-event:hover { filter: brightness(.97); }
}
@media (hover:none) {
  .btn:hover { transform: none; }
  .court-select:hover .court-thumbnail { transform: none; }
}

@media (max-width:1150px) {
  .content { padding: 28px 25px 40px; }
  .club-hero .intro-copy { padding: 26px; }
  .club-hero .intro-copy h1 { font-size: 34px; }
  .club-hero > .club-live-card { gap: 10px 15px; padding: 17px 20px; }
  .club-hero .live-court { padding-left: 12px; }
  .club-pulse { grid-template-columns: 1fr; gap: 20px; }
  .pulse-intro { max-width: 600px; }
  .pulse-court img { height: 155px; }
  .court-mini { height: 165px; }
  .court-select { min-height: 287px; }
  .suggestion-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .suggestion-card { padding: 15px; }
}
@media (max-width:900px) {
  .home-intro.club-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .club-hero .intro-copy { padding: 24px; }
  .club-hero .intro-copy h1 { font-size: 31px; }
  .club-hero-visual { min-height: 345px; }
  .club-hero > .club-live-card { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .club-hero .club-live-card .section-heading { grid-column: 1 / -1; display: flex; align-items: center; }
  .club-hero .live-court { padding-left: 10px; }
  .club-hero .live-court:nth-child(2) { border-left: 0; padding-left: 0; }
  .assistant-head h2 { font-size: 22px; }
  .suggestion-grid { grid-template-columns: 1fr; }
  .suggestion-card { padding: 20px; }
  .profile-grid { grid-template-columns: minmax(0, 1fr); }
  .profile-grid > .stack { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .court-choice-grid { gap: 12px; }
  .court-choice-copy { padding: 16px 14px 18px; }
  .court-choice-copy h3 { font-size: 15px; }
  .court-mini { height: 149px; }
  .court-select { min-height: 276px; }
  .pass-progress-ring { width: 65px; height: 65px; font-size: 15px; }
}
@media (max-width:600px) {
  .content { padding: 22px 16px calc(100px + env(safe-area-inset-bottom)); }
  .topbar { background: #fafbf5; }
  .page-heading { margin-bottom: 23px; }
  .page-heading h1 { font-size: 29px; letter-spacing: -1.1px; }
  .page-heading p { font-size: 13px; }
  .home-intro.club-hero { grid-template-columns: 1fr; border-radius: 18px; }
  .club-hero .intro-copy { padding: 26px 22px; }
  .club-hero .intro-copy h1 { font-size: 36px; }
  .club-hero .intro-copy > p { font-size: 13px; margin-top: 15px; }
  .club-hero .intro-actions { flex-direction: row; margin-top: 19px; }
  .club-hero .intro-actions .btn { font-size: 12px; padding: 10px 12px; justify-content: center; flex: 1; }
  .club-hero-visual { min-height: 0; aspect-ratio: 3 / 2; grid-row: 2; }
  .club-hero > .club-live-card { padding: 17px 20px; gap: 0; grid-template-columns: 1fr; }
  .club-hero .club-live-card .section-heading { grid-column: auto; padding-bottom: 8px; }
  .club-hero .live-court, .club-hero .live-court:nth-child(2) { padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: row; align-items: center; justify-content: space-between; min-height: 48px; }
  .club-hero .club-live-card > .small-note { margin-top: 11px; }
  .visual-caption { font-size: 9px; bottom: 10px; right: 10px; }
  .card, .soft-card, .assistant-panel, .booking-workspace { border-radius: 16px; padding: 20px; }
  .assistant-head { align-items: flex-start; gap: 10px; }
  .assistant-head h2 { font-size: 22px; }
  .assistant-head > .row { align-items: flex-start; }
  .assistant-head > .row > .icon { width: 32px; height: 32px; padding: 7px; }
  .suggestion-card { padding: 18px; }
  .match-card { padding: 21px; }
  .match-card > h3 { font-size: 20px; }
  .booking-progress { padding: 13px 12px; gap: 9px; font-size: 11px; }
  .booking-workspace { padding: 17px; }
  .booking-toolbar { gap: 12px; margin-bottom: 14px; }
  .form-field input, .form-field select, .position-picker select { font-size: 16px; min-height: 46px; }
  .day { min-width: 54px; padding: 9px 10px; }
  .court-choice-grid { grid-template-columns: 1fr; gap: 13px; }
  .court-select { grid-template-columns: 106px minmax(0, 1fr); min-height: 145px; }
  .court-mini { min-height: 145px; height: 100%; }
  .court-mini .court-thumbnail { object-fit: contain; }
  .court-choice-copy { padding: 17px 37px 17px 15px; }
  .court-choice-copy h3 { font-size: 16px; }
  .court-choice-copy p { font-size: 11px; }
  .favorite-toggle { top: 7px; right: 4px; min-width: 44px; min-height: 44px; background: #ffffffe8; width: 44px; height: 44px; font-size: 21px; box-shadow: none; }
  .favorite-toggle[aria-pressed="true"], .favorite .favorite-toggle { background: #fcf3cf; }
  .availability-label { font-size: 11px; padding-right: 0; }
  .court-choice-check { bottom: 14px; right: 14px; }
  .court-next-time { padding: 12px; }
  .booking-selection-summary { padding: 19px; margin-top: 22px; }
  .booking-selection-summary h3 { font-size: 18px; }
  .time-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .time-choice { min-height: 46px; }
  .club-pass { padding: 21px; }
  .pass-intro { gap: 12px; align-items: flex-start; }
  .pass-intro h2 { font-size: 21px; }
  .pass-emblem { width: 39px; height: 39px; border-radius: 11px; }
  .pass-progress-ring { width: 51px; height: 51px; font-size: 12px; }
  .pass-progress-ring::before { inset: 5px; }
  .mission { padding: 14px; }
  .mission h3 { font-size: 14px; }
  .pass-missions { grid-template-columns: 1fr; }
  .profile-grid > .stack { grid-template-columns: 1fr; }
  .player-identity { padding: 22px; }
  .profile-preview-card { padding: 21px; }
  .profile-form { padding: 22px; }
  .intent-choice span { font-size: 11px; min-height: 91px; padding: 14px 4px; }
  .club-pulse { padding: 19px; border-radius: 16px; gap: 19px; }
  .pulse-intro h2 { font-size: 25px; }
  .pulse-courts { grid-template-columns: 1fr; gap: 10px; }
  .pulse-court { display: grid; grid-template-columns: 84px minmax(0, 1fr); grid-template-rows: 1fr 1fr; column-gap: 13px; row-gap: 0; min-height: 89px; padding: 0 14px 0 0; align-items: center; }
  .pulse-court img { height: 89px; grid-column: 1; grid-row: 1 / 3; margin: 0; }
  .pulse-court > span { padding: 0; align-self: end; font-size: 13px; }
  .pulse-court > strong { padding: 4px 0 0; align-self: start; font-size: 12px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .stat { padding: 17px; border-radius: 13px; }
  .stat-top { font-size: 11px; min-height: 35px; }
  .stat-top .icon { display: none; }
  .stat-value { font-size: 32px; margin-top: 14px; }
  .bar-row { grid-template-columns: 88px minmax(0, 1fr) 31px; gap: 9px; font-size: 11px; }
  .activity p { font-size: 12px; }
  .timeline-hours { margin-left: 120px; }
  .timeline-court-row { grid-template-columns: 120px minmax(900px, 1fr); min-width: 1020px; }
  .timeline-court-name { padding: 14px 12px; font-size: 12px; }
  .modal, .modal.wide, .modal.booking-modal { border-radius: 18px; padding: 21px; width: 100%; max-height: calc(100dvh - 20px); }
  .overlay { padding: 10px; }
  .modal-head { padding-bottom: 18px; margin-bottom: 20px; }
  .modal-head h2 { font-size: 25px; }
  .modal-head .eyebrow { font-size: 10px; }
  .modal-footer { bottom: -21px; gap: 9px; padding-top: 15px; padding-bottom: 5px; flex-wrap: wrap; }
  .modal-footer .btn { flex: 1; padding: 10px 12px; }
  .modal .court-choice-grid.compact .court-select { min-height: 125px; grid-template-columns: 82px minmax(0, 1fr); }
  .modal .court-choice-grid.compact .court-mini { height: 100%; min-height: 125px; }
  .status-steps { font-size: 10px; gap: 6px; }
  .status-steps > span { gap: 4px; }
  .status-steps b { width: 21px; height: 21px; font-size: 10px; }
  .page-foot { margin-top: 29px; }
}
@media (max-width:360px) {
  .content { padding-left: 12px; padding-right: 12px; }
  .club-hero .intro-copy { padding: 23px 18px; }
  .club-hero .intro-copy h1 { font-size: 32px; }
  .club-hero .intro-actions { flex-direction: column; }
  .club-hero .intro-actions .btn { flex: auto; justify-content: space-between; }
  .court-select { grid-template-columns: 82px minmax(0, 1fr); }
  .court-choice-copy { padding-left: 12px; }
  .pass-intro { flex-wrap: wrap; }
  .pass-progress-ring { margin-left: 51px; }
  .booking-progress { font-size: 10px; gap: 5px; }
  .modal, .modal.wide, .modal.booking-modal { padding: 17px; }
  .modal-footer { bottom: -17px; }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* The complete court remains visible, even in narrow image previews. */
.court-mini { background: #eeede4; }
.court-mini .court-thumbnail { object-fit: contain; }
.pulse-court img, .timeline-court-name img { object-fit: contain; background: #eeede4; }
.booking-time-settings { border: 1px solid var(--line); background: #fff; border-radius: 12px; }
.booking-time-settings > summary { min-height: 49px; padding: 13px 16px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink); }
.booking-time-settings > summary::marker { color: #728754; }
.booking-time-settings > summary > span { float: right; margin-left: 16px; font-size: 12px; font-weight: 500; color: #64784e; }
.booking-time-settings > summary:focus-visible { outline: 3px solid #779546; outline-offset: 3px; border-radius: 9px; }
.booking-time-settings[open] > summary { border-bottom: 1px solid var(--line); }
.booking-time-settings > .form-grid { padding: 18px; }
.modal.has-court-experience .court-stage { max-width: 300px; }
.modal.has-court-experience .modal-head { padding-bottom: 15px; margin-bottom: 16px; }
.modal.has-court-experience .booking-selection-summary.compact { margin-top: 12px; padding: 10px 15px; }
.modal.has-court-experience #lineup-builder { margin-top: 17px; }
.modal.has-court-experience .lineup-experience-heading { margin-bottom: 6px; }
.modal.has-court-experience .lineup-experience-heading h3 { font-size: 21px; }
.modal.has-court-experience .lineup-experience-instruction { margin-bottom: 12px; font-size: 11px; line-height: 1.65; }
.modal.has-court-experience .lineup-experience-layout { gap: 20px; grid-template-columns: minmax(230px, 1fr) minmax(240px, 1fr); }
.modal.has-court-experience .lineup-experience-roster-list { max-height: 276px; }
.modal.has-court-experience .lineup-experience-teams { margin-top: 10px; }
.modal.has-court-experience .lineup-experience-balance { margin-top: 6px; }

/* A searchable member collection, with only measured playing activity. */
.directory-toolbar { display: flex; align-items: center; gap: 16px; padding: 18px 21px; margin-bottom: 22px; background: #fbfcf7; border: 1px solid var(--line); border-radius: 15px; }
.directory-toolbar > label { font-size: 13px; font-weight: 600; white-space: nowrap; }
.directory-toolbar > input { min-width: 0; max-width: 350px; width: 100%; min-height: 45px; border: 1px solid #ced9c6; border-radius: 9px; padding: 10px 13px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; }
.directory-toolbar > span { margin-left: auto; font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.player-directory { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.directory-player { min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 17px; padding: 23px; box-shadow: var(--shadow); }
.directory-player[hidden], #directory-empty[hidden] { display: none; }
.directory-player .person-card { gap: 12px; }
.directory-player .person-card .avatar { width: 44px; height: 44px; font-size: 13px; }
.directory-player .person-card h3 { font-size: 18px; }
.directory-player .person-card p { font-size: 11px; margin-top: 3px; }
.directory-level { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 0 10px; margin: 23px 0 19px; }
.directory-level > strong { font-size: 33px; font-weight: 550; letter-spacing: -1.1px; line-height: 1.2; }
.directory-level > span { font-size: 12px; color: var(--muted); }
.directory-level > meter { grid-column: 1 / -1; margin-top: 10px; }
.directory-level > meter, .profile-preview-card > meter { width: 100%; height: 10px; display: block; accent-color: #71934c; }
.directory-level > meter::-webkit-meter-bar, .profile-preview-card > meter::-webkit-meter-bar { background: #e8eedf; border: 0; border-radius: 8px; }
.directory-level > meter::-webkit-meter-optimum-value, .profile-preview-card > meter::-webkit-meter-optimum-value { background: #71934c; border-radius: 8px; }
.directory-level > meter::-moz-meter-bar, .profile-preview-card > meter::-moz-meter-bar { background: #71934c; border-radius: 8px; }
.directory-stats { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 19px; padding: 14px 0; gap: 10px; }
.directory-stats > span { font-size: 12px; color: var(--muted); }
.directory-stats b { display: inline-block; margin-right: 4px; font-size: 17px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.directory-player > .btn { font-size: 12px; }
.level-readout { display: flex; align-items: baseline; gap: 12px; padding: 20px 0 10px; }
.level-readout > strong { font-size: 41px; letter-spacing: -1.7px; line-height: 1; font-weight: 550; }
.level-readout > span { font-size: 12px; color: var(--muted); }
.profile-preview-card .player-identity { padding: 18px; margin-top: 16px; }
.profile-preview-card .player-identity h2 { font-size: 21px; }
.profile-preview-card .player-identity .avatar { width: 48px; height: 48px; font-size: 15px; }
.profile-facts { display: grid; gap: 15px; border-top: 1px solid #d5dfc9; padding-top: 18px; margin-top: 20px; }
.profile-facts p { font-size: 12px; }
.profile-facts strong { display: inline-block; color: var(--ink); margin-bottom: 3px; font-weight: 600; }
.profile-preview-card > .small-note { margin-top: 20px; }
@media (max-width:1100px) {
  .player-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (max-width:760px) {
  .modal.has-court-experience .lineup-experience-layout { grid-template-columns: minmax(0, 1fr); gap: 15px; }
  .modal.has-court-experience .court-stage { max-width: 280px; }
  .directory-toolbar { flex-wrap: wrap; gap: 10px 15px; }
  .directory-toolbar > label { order: 0; }
  .directory-toolbar > span { order: 1; }
  .directory-toolbar > input { order: 2; max-width: none; flex-basis: 100%; }
}
@media (max-width:600px) {
  .directory-toolbar { padding: 16px; margin-bottom: 17px; }
  .directory-toolbar > input { font-size: 16px; }
  .player-directory { grid-template-columns: 1fr; gap: 15px; }
  .directory-player { padding: 22px; }
  .booking-time-settings > summary { padding: 13px 12px; font-size: 12px; }
  .booking-time-settings > summary > span { font-size: 11px; margin-left: 8px; }
  .booking-time-settings > .form-grid { padding: 15px 12px; }
  .modal.has-court-experience .lineup-experience-roster-list { max-height: 250px; }
  .modal.has-court-experience .lineup-experience-heading h3 { font-size: 20px; }
}
/* The booking sheet keeps the pitch visible before any scrolling. */
.modal.booking-modal .modal-head{padding-bottom:12px;margin-bottom:16px}
.modal.booking-modal .modal-head>div>p{display:none}
.modal.booking-modal #book-form{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px}
.modal.booking-modal #book-form>.booking-time-settings{margin:0;align-self:start}
.modal.booking-modal #book-form>.booking-selection-summary{margin:0;padding:10px 14px;min-height:52px;align-self:start}
.modal.booking-modal .booking-selection-summary h3{font-size:14px}
.modal.booking-modal .booking-selection-summary p{display:none}
.modal.booking-modal #book-form>#modal-court-choices,.modal.booking-modal #book-form>#modal-availability-note,.modal.booking-modal #book-form>#lineup-builder,.modal.booking-modal #book-form>.small-note{grid-column:1/-1;margin:0}
.modal.booking-modal #book-form>.summary{display:none}
.modal.booking-modal #lineup-builder .lineup-experience{margin-top:5px}
.modal.booking-modal #lineup-builder .lineup-experience-heading{margin-bottom:4px}
.modal.booking-modal #lineup-builder .lineup-experience-instruction{margin-bottom:10px}
.modal.booking-modal .lineup-experience-roster-list{max-height:250px}
.modal.booking-modal .lineup-experience-roster-note{margin-top:8px}
.calendar-court-filters{margin:18px 0}
@media(max-width:760px){.modal.booking-modal #book-form{grid-template-columns:1fr}.modal.booking-modal #book-form>.booking-time-settings,.modal.booking-modal #book-form>.booking-selection-summary{grid-column:1}.modal.booking-modal .lineup-experience-roster-list{max-height:280px}}
.match-detail-layout,.suggestion-detail-layout{display:grid;grid-template-columns:minmax(220px,.9fr) minmax(260px,1.1fr);align-items:start;gap:28px;margin:22px 0}
.modal .match-detail-layout .court-stage,.modal .suggestion-detail-layout .court-stage{max-width:270px}
.match-details-roster .booking-row{padding:17px 0}.match-details-roster .booking-row:first-child{border-top:0}
.suggestion-detail-layout .suggestion-reasons{font-size:14px;line-height:1.8;list-style:none;padding:0}.suggestion-detail-layout .suggestion-reasons li{padding:13px 0;border-bottom:1px solid var(--line)}
.find-workspace{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(220px,.8fr);gap:28px}
.find-workspace #find-preview{min-width:0;padding:20px;border-radius:15px;background:#edf2e6;border:1px solid var(--line)}
.find-preview-head h3{font-size:17px;margin:7px 0}.find-preview-head p{font-size:12px;color:var(--muted);margin-bottom:15px}
.find-workspace .court-experience.is-compact .court-stage{max-width:185px}.find-workspace #find-preview>.small-note{margin-top:15px}
@media(max-width:760px){.match-detail-layout,.suggestion-detail-layout,.find-workspace{grid-template-columns:1fr;gap:18px}.find-workspace #find-preview{display:grid;grid-template-columns:1fr 130px;align-items:center;gap:12px;order:-1}.find-workspace #find-preview>.small-note{grid-column:1/-1;margin:0}.find-workspace .court-experience.is-compact .court-stage{max-width:130px}.find-workspace .court-player-name{font-size:8px}.find-workspace .court-player-disc{width:24px;height:24px}}

.profile-preview-card .player-identity p{color:#d5e2cf}
.timeline-event{gap:2px}
.modal.has-court-experience:not(.booking-modal)>.summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px}
.modal.has-court-experience:not(.booking-modal)>.summary p{margin:0}
@media(max-width:760px){.modal.has-court-experience:not(.booking-modal)>.summary{flex-wrap:wrap}}
