:root {
  --green-950: #16295f;
  --green-900: #1f3a8a;
  --green-800: #244696;
  --green-700: #3156a7;
  --green-100: #e5ecff;
  --green-50: #f2f5ff;
  --lime: #dbeafe;
  --canvas: #f5f6fb;
  --paper: #fffefa;
  --ink: #1b2822;
  --muted: #7b857f;
  --line: #e8ebe4;
  --orange: #e9a35f;
  --red: #b94c45;
  --shadow: 0 16px 42px rgba(28, 48, 105, .07);
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); }
.connection-banner { position: sticky; top: 0; z-index: 50; display: flex; justify-content: center; align-items: center; gap: 9px; padding: 11px 18px; background: #fff2d8; border-bottom: 1px solid #ead39e; color: #674a13; font-size: 12px; line-height: 1.5; text-align: center; }
.connection-banner[hidden] { display: none; }
.demo-banner { position: sticky; top: 0; z-index: 49; display: flex; justify-content: center; align-items: center; gap: 9px; padding: 10px 18px; background: #e8efff; border-bottom: 1px solid #c7d6f5; color: #1f3a8a; font-size: 12px; line-height: 1.5; text-align: center; }
.demo-banner button { border: 1px solid #a8bce8; border-radius: 999px; padding: 5px 10px; background: #fff; color: #1f3a8a; font: inherit; font-weight: 700; cursor: pointer; }
.demo-banner[hidden] { display: none; }
.connection-banner-icon { display: inline-grid; place-items: center; flex: 0 0 18px; width: 18px; height: 18px; border-radius: 50%; background: #e7c36b; color: #49360d; font-weight: 800; font-size: 12px; }
.offline-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.offline-card { width: min(100%, 500px); padding: clamp(28px, 7vw, 52px); border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: var(--shadow); text-align: center; }
.offline-icon { display: block; width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 16px; }
.offline-card .eyebrow { margin-bottom: 13px; }
.offline-card h1 { margin: 0 0 12px; font-size: clamp(27px, 7vw, 38px); }
.offline-card p { margin: 0 auto 22px; max-width: 390px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.offline-card small { display: block; margin-top: 18px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.offline-card .button { gap: 9px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #91b837; outline-offset: 2px; }
a { color: inherit; text-decoration: none; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 252px minmax(0, 1fr); }
.app-shell:not(.ready) { display: none; }
.public-loading { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--green-950); text-align: center; padding: 24px; }
.public-loading[hidden] { display: none; }
.public-loading img { width: 66px; height: 66px; object-fit: contain; }
.public-loading strong { font-size: 19px; }
.public-loading span { color: var(--muted); font-size: 14px; }
#bookingMemberField[hidden], #bookingGuestField[hidden] { display: none; }
.booking-partner-note { margin: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--canvas); color: var(--ink); }
.profile-setup-card { margin-top: 15px; padding: 17px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid #dce7d6; border-radius: 12px; background: linear-gradient(110deg,#f4f8ee,#fff 72%); }
.app-install-card { margin-top: 15px; padding: 17px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid #d9e2f5; border-radius: 12px; background: linear-gradient(110deg,#f0f4ff,#fff 72%); }
.app-install-card .eyebrow { color: var(--green-700); }
.app-install-card h2 { margin: 5px 0; font-size: 16px; }
.app-install-card p { margin: 0 0 10px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.app-install-card .app-install-help { margin: 7px 0 0; }
.app-install-icon { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border-radius: 12px; color: var(--green-900); background: var(--green-100); font-size: 23px; font-weight: 700; }
.app-install-icon { width: 40px; height: 40px; flex: 0 0 40px; display: grid; place-items: center; border-radius: 12px; color: var(--green-900); background: var(--green-100); font-size: 23px; font-weight: 700; }
.profile-setup-card .eyebrow { color: var(--green-700); }
.profile-setup-card h2 { margin: 5px 0; font-size: 16px; }
.profile-setup-card p { margin: 0; color: var(--muted); font-size: 12px; }
.sidebar { background: var(--green-950); color: #f7f8f1; padding: 27px 17px 18px; display: flex; flex-direction: column; min-height: 100vh; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 9px; color: white; }
.club-brand-crest { width: 35px; height: 35px; flex: 0 0 35px; display: block; object-fit: contain; border-radius: 50%; background: white; padding: 1px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; letter-spacing: .06em; }
.brand-copy strong { font-family: Manrope, sans-serif; font-size: 14px; font-weight: 800; }
.brand-copy strong span { color: var(--lime); margin-left: 3px; }
.brand-copy small { color: #92a69c; font-size: 7px; letter-spacing: .11em; margin-top: 5px; white-space: nowrap; }
.club-switcher { margin: 36px 3px 31px; display: flex; align-items: center; gap: 10px; background: #1b4035; padding: 10px; border: 1px solid #315549; border-radius: 11px; }
.club-initials { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: var(--green-950); background: var(--lime); font-weight: 800; font-size: 11px; }
.club-switcher strong, .club-switcher small { display: block; }
.club-switcher strong { font-size: 12px; }
.club-switcher small { color: #a5b8ae; font-size: 10px; margin-top: 4px; }
.chevron { margin-left: auto; color: #a5b8ae; font-size: 17px; }
.nav-label { margin: 0 11px 10px; color: #728d80; letter-spacing: .13em; font-size: 9px; font-weight: 700; }
.main-nav { display: grid; gap: 4px; }
.nav-item { color: #b5c4bc; background: transparent; border: 0; width: 100%; border-radius: 9px; padding: 11px 12px; display: flex; align-items: center; text-align: left; gap: 12px; font-size: 12px; transition: background .18s, color .18s; }
.nav-item:hover { background: #1d4539; color: white; }
.nav-item.active { color: var(--green-950); background: var(--lime); font-weight: 700; }
.nav-icon { width: 17px; text-align: center; font-size: 17px; line-height: 15px; }
.nav-count { margin-left: auto; width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.17); font-size: 10px; }
.nav-item.active .nav-count { color: white; background: var(--green-800); }
.sidebar-spacer { flex: 1; min-height: 25px; }
.season-card { margin: 10px 2px 16px; padding: 14px; border-radius: 12px; background: #1a4034; border: 1px solid #315549; }
.season-icon { color: var(--lime); font-size: 18px; margin-bottom: 8px; }
.season-card strong { font-size: 11px; }
.season-card p { color: #a7b8af; font-size: 10px; line-height: 1.6; margin: 6px 0 10px; }
.season-card button { background: none; border: 0; color: var(--lime); font-size: 10px; padding: 0; }
.season-card button span { margin-left: 4px; }
.user-mini { display: flex; align-items: center; gap: 9px; width: 100%; padding: 13px 7px 0; border: 0; border-top: 1px solid #29483c; background: none; text-align: left; color: white; }
.avatar { flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: var(--green-950); background: #e5c8a9; font-weight: 700; }
.avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.check-row { display: inline-flex; align-items: center; gap: 8px; margin-top: 9px; color: var(--muted); font-size: 12px; }
.color-setting { width: 58px; height: 39px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); cursor: pointer; }
.check-row input { width: 16px; height: 16px; }
.avatar-small { width: 31px; height: 31px; font-size: 10px; }
.user-mini strong, .user-mini small { display: block; }
.user-mini strong { font-size: 10px; }
.user-mini small { color: #90a69b; font-size: 9px; margin-top: 3px; }
.user-menu-dots { margin-left: auto; font-size: 18px; color: #a6b9af; }
.main-area { min-width: 0; }
.topbar { min-height: 78px; display: flex; align-items: center; justify-content: space-between; padding: 0 4.5%; border-bottom: 1px solid #e9ece5; background: rgba(255,254,250,.75); }
.crumb { display: flex; gap: 8px; color: var(--muted); font-size: 11px; align-items: center; }
.crumb strong { color: var(--ink); font-weight: 600; }
.top-actions { display: flex; align-items: center; gap: 18px; }
.icon-button { border: 0; background: transparent; color: #6d7871; font-size: 17px; position: relative; padding: 6px; }
.notification-dot { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #e29c57; top: 4px; right: 3px; border: 1px solid var(--paper); }
.top-profile { display: flex; align-items: center; gap: 8px; border: 0; padding: 0; background: none; text-align: left; }
.top-profile .avatar { width: 31px; height: 31px; font-size: 10px; }
.top-profile strong, .top-profile small { display: block; }
.top-profile strong { font-size: 10px; }
.top-profile small { color: var(--muted); font-size: 9px; margin-top: 2px; }
.mobile-menu { display: none; }
.sidebar-scrim { display: none; }
.mobile-member-nav { display: none; }
.view-container { max-width: 1350px; margin: 0 auto; padding: 34px 4.5% 56px; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--green-700); font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green-700); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Manrope, 'Segoe UI', sans-serif; }
h1 { letter-spacing: -.045em; }
.page-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 23px; gap: 18px; }
.page-heading h1 { font-size: clamp(25px, 3vw, 34px); margin: 7px 0 5px; font-weight: 700; }
.page-heading p { color: var(--muted); margin: 0; font-size: 12px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 39px; padding: 0 15px; border-radius: 8px; border: 1px solid transparent; font-size: 11px; font-weight: 700; transition: transform .15s, background .15s; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.button-primary { color: white; background: var(--green-800); }
.button-primary:hover { background: var(--green-900); }
.button-lime { background: var(--lime); color: var(--green-950); }
.button-light { border-color: var(--line); background: var(--paper); color: var(--ink); }
.button-quiet { background: transparent; color: var(--green-800); padding: 0 8px; min-height: 32px; }
.button-danger { color: var(--red); border-color: #f1d8d5; background: #fff9f8; }
.button-sm { min-height: 32px; padding: 0 11px; font-size: 10px; }
.hero { position: relative; overflow: hidden; min-height: 228px; border-radius: 16px; padding: 28px 32px; background: var(--green-900); color: white; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; box-shadow: var(--shadow); }
.hero::before { content: ''; position: absolute; width: 290px; height: 290px; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; right: 17%; top: -110px; }
.hero::after { content: ''; position: absolute; width: 360px; height: 360px; border: 1px solid rgba(255,255,255,.07); border-radius: 50%; right: 12%; top: -146px; }
.hero-copy { position: relative; z-index: 1; max-width: 460px; }
.hero .eyebrow { color: var(--lime); }
.hero .eyebrow::before { background: var(--lime); }
.hero h1 { font-size: clamp(29px, 4vw, 43px); line-height: 1.12; margin: 13px 0 10px; font-weight: 600; }
.hero h1 em { color: var(--lime); font-style: normal; }
.hero p { color: #c2d3c8; line-height: 1.65; font-size: 11px; max-width: 335px; margin-bottom: 19px; }
.hero-art { position: absolute; right: 9%; top: 16%; width: 193px; height: 193px; border-radius: 50%; background: #d6f067; box-shadow: inset -16px -14px 0 rgba(51,86,37,.12), 0 18px 35px rgba(0,0,0,.15); transform: rotate(-25deg); }
.hero-art::before, .hero-art::after { content: ''; position: absolute; width: 115px; height: 210px; border: 2px solid var(--green-900); border-radius: 50%; top: -8px; }
.hero-art::before { left: -62px; }
.hero-art::after { right: -62px; }
.hero-art-mark { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) rotate(25deg); width: 86px; height: 86px; border-radius: 50%; background: rgba(255,255,255,.33); display: grid; place-items: center; color: var(--green-900); font-family: Manrope,sans-serif; font-weight: 800; font-size: 12px; letter-spacing: .08em; }
.admin-setup-card { margin-top: 15px; padding: 19px 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid #dce7d6; border-radius: 12px; background: linear-gradient(110deg,#f4f8ee,#fff 72%); }
.admin-setup-copy { max-width: 720px; }
.admin-setup-card .eyebrow { color: var(--green-700); }
.admin-setup-card h2 { margin: 6px 0; font-size: 16px; }
.admin-setup-card p { margin: 0 0 9px; color: var(--muted); font-size: 11px; }
.admin-setup-card ul { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px 20px; margin: 0; padding: 0; list-style: none; color: var(--ink); font-size: 10px; }
.admin-setup-card li::before { content: '→'; color: var(--green-700); font-weight: 800; margin-right: 7px; }
.admin-setup-card small { display: block; margin-top: 10px; color: var(--muted); font-size: 9px; }
.dashboard-stats { margin: 18px 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; }
.stat-card { background: var(--paper); border: 1px solid var(--line); border-radius: 11px; padding: 15px 17px; display: flex; align-items: center; gap: 12px; }
.stat-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--green-50); color: var(--green-800); font-size: 18px; }
.stat-card:nth-child(2) .stat-icon { background: #f7f0e3; color: #b17b39; }
.stat-card:nth-child(3) .stat-icon { background: #edf0fa; color: #6576ad; }
.stat-copy { flex: 1; }
.stat-copy span, .stat-copy strong { display: block; }
.stat-copy span { color: var(--muted); font-size: 9px; }
.stat-copy strong { font-family: Manrope,sans-serif; font-size: 20px; margin-top: 2px; }
.stat-trend { color: var(--green-700); background: var(--green-50); border-radius: 20px; font-size: 9px; padding: 5px 7px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .8fr); gap: 15px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 5px 20px rgba(24,51,39,.025); }
.panel-head { padding: 17px 19px 13px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel-head h2 { font-size: 13px; margin: 0; letter-spacing: -.02em; }
.panel-head p { color: var(--muted); font-size: 9px; margin: 4px 0 0; }
.panel-link { border: 0; background: transparent; color: var(--green-700); font-size: 10px; font-weight: 700; }
.booking-preview { display: flex; align-items: center; gap: 13px; padding: 13px 18px; border-top: 1px solid var(--line); }
.booking-date-box { width: 42px; height: 47px; flex: 0 0 auto; border-radius: 8px; display: grid; align-content: center; text-align: center; background: var(--green-50); color: var(--green-800); }
.booking-date-box strong { font-family: Manrope,sans-serif; font-size: 17px; line-height: 1; }
.booking-date-box small { font-size: 8px; margin-top: 4px; text-transform: uppercase; }
.booking-info { min-width: 0; flex: 1; }
.booking-info strong, .booking-info small { display: block; }
.booking-info strong { font-size: 10px; }
.booking-info small { color: var(--muted); font-size: 9px; margin-top: 5px; }
.booking-status { color: var(--green-700); background: var(--green-50); font-size: 8px; padding: 5px 7px; border-radius: 20px; }
.empty-state { padding: 20px; text-align: center; color: var(--muted); font-size: 11px; }
.challenge-preview { padding: 0 17px 14px; }
.challenge-row { display: flex; align-items: center; gap: 9px; padding: 10px 0; border-top: 1px solid var(--line); }
.doubles-preview { margin-top: 5px; padding-top: 9px; border-top: 1px solid var(--line); }
.doubles-preview-heading { margin: 0 0 5px 2px; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.doubles-preview-row { display: flex; width: 100%; align-items: center; gap: 9px; padding: 8px 2px; border: 0; border-radius: 7px; background: transparent; text-align: left; }
.doubles-preview-row:hover { background: var(--green-50); }
.doubles-preview-icon { display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 auto; border-radius: 8px; background: var(--green-50); color: var(--green-800); font-size: 13px; }
.doubles-preview-copy { min-width: 0; flex: 1; }
.doubles-preview-copy strong, .doubles-preview-copy small { display: block; }
.doubles-preview-copy strong { font-size: 9px; }
.doubles-preview-copy small { overflow: hidden; margin-top: 3px; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.doubles-preview-status { color: var(--green-700); font-size: 8px; font-weight: 700; }
.rank-number { width: 23px; color: #a0a9a3; font-size: 9px; text-align: center; }
.player-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 9px; color: #4b4438; background: #ead5bf; font-weight: 700; }
.player-avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.player-avatar.blue { background: #cedce9; color: #40596b; }
.player-avatar.pink { background: #eed4d8; color: #81545b; }
.player-avatar.green { background: #d6e5cb; color: #536c45; }
.player-details { min-width: 0; flex: 1; }
.player-details strong, .player-details small { display: block; }
.player-details strong { font-size: 9px; }
.player-details small { color: var(--muted); font-size: 8px; margin-top: 3px; }
.challenge-arrow { color: #a7b4aa; font-size: 14px; }
.quick-booking { margin-top: 15px; }
.quick-slots { display: flex; gap: 7px; flex-wrap: wrap; padding: 0 18px 17px; }
.slot-chip { border: 1px solid var(--line); color: var(--green-800); background: white; padding: 7px 10px; border-radius: 7px; font-size: 9px; }
.slot-chip:hover { border-color: var(--green-700); background: var(--green-50); }
.slot-chip .slot-court { color: var(--muted); margin-left: 5px; }
.booking-toolbar { display: flex; align-items: center; gap: 9px; }
.date-control { display: flex; align-items: center; gap: 8px; padding: 0 11px; min-height: 38px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; font-size: 10px; }
.date-control input { border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 10px; }
.booking-legend { display: flex; gap: 16px; align-items: center; color: var(--muted); font-size: 9px; }
.legend-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; background: var(--green-700); }
.legend-dot.busy { background: #d9dcd6; }
.court-list { display: grid; gap: 12px; }
.court-card { padding: 15px 17px 16px; }
.court-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.court-title { display: flex; gap: 10px; align-items: center; }
.court-symbol { width: 33px; height: 33px; border-radius: 9px; display: grid; place-items: center; color: var(--green-700); background: var(--green-50); font-size: 15px; }
.court-title strong { font-size: 11px; display: block; }
.court-title small { color: var(--muted); font-size: 9px; display: block; margin-top: 3px; }
.court-open-count { color: var(--green-700); background: var(--green-50); padding: 5px 8px; border-radius: 20px; font-size: 8px; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(64px,1fr)); gap: 6px; padding-bottom: 2px; }
.time-slot { min-width: 58px; min-height: 42px; height: auto; padding: 5px 3px; border: 1px solid #d6e4d8; border-radius: 7px; color: var(--green-800); background: #f5faf4; font-size: 9px; line-height: 1.25; overflow: hidden; }
.time-slot:hover:not(:disabled) { background: var(--green-800); color: white; }
.time-slot.booked { color: #98a19b; background: #f4f5f2; border-color: #eceee9; cursor: default; }
.time-slot.mine { color: var(--green-800); background: #e7f2df; border-color: #c7dbb7; font-weight: 700; }
.slot-label { display: block; font-size: 7px; margin-top: 2px; opacity: .8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.booking-note { color: var(--muted); font-size: 9px; margin: 13px 0 0; }
.challenge-layout { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(250px,.7fr); gap: 15px; }
.ladder-card { overflow: hidden; }
.category-tabs { display: flex; gap: 8px; margin: 12px 0 14px; }
.category-tabs [aria-selected="true"] { box-shadow: 0 0 0 2px var(--green-200); }
.ladder-row { display: grid; grid-template-columns: 43px minmax(150px,1fr) 95px 86px; align-items: center; gap: 9px; padding: 12px 18px; border-top: 1px solid var(--line); }
.ladder-row.me { background: #f6faef; }
.ladder-pyramid { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 14px 18px; }
.ladder-pyramid-row { display: grid; grid-template-columns: repeat(var(--pyramid-columns),minmax(0,1fr)); gap: 10px; width: 100%; }
.ladder-entry { position: relative; display: flex; min-width: 0; min-height: 158px; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 15px 9px 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: center; box-shadow: 0 4px 14px rgba(20,35,25,.045); }
.ladder-entry.me { background: #f6faef; border-color: var(--green-400); box-shadow: 0 5px 18px rgba(68,104,49,.12); }
.ladder-entry .ladder-position { position: absolute; top: 8px; left: 9px; display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: var(--green-50); color: var(--green-800); font-size: 11px; }
.ladder-entry .player-avatar { width: 40px; height: 40px; }
.ladder-entry-name { max-width: 100%; font-size: 12px; line-height: 1.25; overflow-wrap: anywhere; }
.ladder-entry-played { color: var(--muted); font-size: 10px; }
.ladder-entry-points { color: var(--green-800); font-size: 11px; font-weight: 800; }
.ladder-entry .button, .ladder-entry .result-tag { margin-top: auto; width: 100%; justify-content: center; min-height: 34px; padding: 5px 7px; font-size: 10px; }
.ladder-entry-locked { margin-top: auto; width: 100%; min-height: 34px; }
.ladder-entry .button:disabled { opacity: .65; cursor: not-allowed; }
.ladder-position { font-family: Manrope,sans-serif; font-size: 12px; color: #8b958e; font-weight: 700; }
.ladder-name { display: flex; align-items: center; gap: 9px; }
.ladder-name strong { display: block; font-size: 10px; }
.ladder-name small { display: block; font-size: 8px; color: var(--muted); margin-top: 3px; }
.ladder-points { text-align: right; color: var(--muted); font-size: 9px; }
.ladder-points strong { color: var(--ink); display: block; font-size: 10px; margin-bottom: 3px; }
.challenge-side { display: grid; align-content: start; gap: 12px; }
.rank-highlight { padding: 19px; background: var(--green-900); color: white; position: relative; overflow: hidden; }
.rank-highlight::after { content: '↗'; position: absolute; right: 13px; top: -31px; color: rgba(255,255,255,.08); font-size: 136px; font-weight: 700; }
.rank-highlight .eyebrow { color: var(--lime); position: relative; z-index: 1; }
.rank-highlight .eyebrow::before { background: var(--lime); }
.rank-big { display: flex; align-items: baseline; gap: 7px; margin: 12px 0 6px; position: relative; z-index: 1; }
.rank-big strong { font-family: Manrope,sans-serif; font-size: 48px; line-height: 1; }
.rank-big span { color: #bacdc1; font-size: 10px; }
.rank-highlight p { color: #bacdc1; font-size: 9px; margin: 0; position: relative; z-index: 1; }
.rank-highlight .button { margin-top: 16px; position: relative; z-index: 1; }
.season-banner { margin-bottom: 14px; padding: 12px 16px; display: flex; align-items: center; gap: 11px; }
.season-badge { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 50%; color: var(--green-800); background: var(--green-50); font-weight: 700; }
.season-copy { flex: 1; }
.season-copy strong, .season-copy small { display: block; }
.season-copy strong { font-size: 10px; }
.season-copy small { color: var(--muted); margin-top: 3px; font-size: 8px; }
.requests-list { padding: 0 17px 13px; }
.request-item { border-top: 1px solid var(--line); padding: 12px 0; }
.request-item:first-child { border-top: 0; }
.request-person { display: flex; align-items: center; gap: 8px; }
.request-person .player-details { flex: 1; }
.request-person small { color: var(--muted); font-size: 8px; }
.request-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0 38px; }
.request-actions .button { min-height: 28px; }
.challenge-booking-callout { margin-bottom: 14px; }
.challenge-booking-callout .request-actions { margin-left: 19px; flex-wrap: wrap; }
.challenge-booking-callout > .form-hint { margin: 10px 19px 16px; }
.matches-list { overflow: hidden; }
.tournament-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.tournament-card { padding: 18px; min-width: 0; }
.tournament-card-head { display: flex; align-items: center; justify-content: space-between; }
.tournament-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: #f7f0e3; font-size: 18px; }
.tournament-copy { margin: 12px 0; }
.tournament-copy .eyebrow { font-size: 8px; }
.tournament-copy h2 { font-size: 16px; margin: 5px 0 6px; }
.tournament-copy p { color: var(--muted); font-size: 9px; line-height: 1.55; margin: 4px 0; }
.tournament-format-summary { color: var(--green-800) !important; font-weight: 650; }
.tournament-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 10px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 8px; }
.tournament-action { min-height: 34px; display: flex; align-items: center; }
.tournament-entries { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; }
.tournament-entries > strong { display: block; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.tournament-entry { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 9px; padding: 8px 0; border-top: 1px solid #eef0e9; font-size: 9px; }
.tournament-entry > span:first-child { flex: 1; }
.tournament-entry small { color: var(--muted); font-size: 8px; }
.tournament-entry .entry-actions { display: flex; gap: 5px; flex-basis: 100%; }
.tournament-admin { margin-top: 14px; overflow: hidden; }
.tournament-admin-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tournament-admin-row .player-details { flex: 1; min-width: 0; }
.tournament-admin-row .player-details strong { display: block; font-size: 9px; }
.tournament-admin-row .player-details small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.tournament-bracket { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; }
.tournament-bracket > strong { display: block; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.tournament-stage { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
.tournament-stage-title { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.tournament-stage-title h3 { margin: 3px 0 0; font-size: 13px; }
.tournament-stage-title p { margin: 0; color: var(--muted); font-size: 9px; }
.group-stage-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,300px),1fr)); gap: 10px; }
.group-stage-card { min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: #fafbf7; }
.group-stage-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.group-stage-head h3 { margin: 0; font-size: 12px; }
.group-stage-head span { color: var(--green-800); font-size: 8px; font-weight: 650; }
.group-table-scroll { overflow-x: auto; }
.group-standings { width: 100%; border-collapse: collapse; font-size: 8px; white-space: nowrap; }
.group-standings th, .group-standings td { padding: 6px 5px; text-align: left; border-bottom: 1px solid #e9ece4; }
.group-standings thead th { color: var(--muted); font-weight: 600; }
.group-standings tbody th { font-weight: 650; white-space: normal; }
.group-stage-fixtures { margin-top: 8px; }
.bracket-match { border: 1px solid var(--line); border-radius: 8px; padding: 9px; margin-top: 7px; background: #fcfdf9; }
.bracket-match-number { color: var(--muted); font-size: 8px; }
.bracket-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 7px 0; }
.bracket-sides span { min-width: 0; overflow-wrap: anywhere; border-radius: 6px; padding: 7px; background: white; border: 1px solid var(--line); font-size: 9px; }
.bracket-sides .match-winner { border-color: var(--green-700); background: var(--green-50); font-weight: 700; }
.bracket-match-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bracket-match-bottom small { color: var(--muted); font-size: 8px; }
.matches-list .panel-head { flex-wrap: wrap; }
.match-filters { display: flex; align-items: end; gap: 8px; }
.match-filters label { display: grid; gap: 4px; color: var(--muted); font-size: 8px; font-weight: 600; }
.match-filters select { min-width: 124px; min-height: 32px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: white; font: inherit; font-size: 9px; }
.match-row { display: grid; grid-template-columns: 95px minmax(160px,1fr) 95px 88px; align-items: center; gap: 12px; padding: 13px 18px; border-top: 1px solid var(--line); }
.match-date { color: var(--muted); font-size: 9px; }
.match-type { display: block; margin-top: 3px; color: var(--green-700); font-size: 7px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match-players { display: flex; align-items: center; gap: 8px; }
.match-players strong { font-size: 10px; }
.match-players span { color: #a1a9a2; font-size: 8px; }
.match-score { font-family: Manrope,sans-serif; font-weight: 700; font-size: 10px; }
.result-tag { display: inline-flex; justify-content: center; color: var(--green-700); background: var(--green-50); padding: 6px 7px; border-radius: 20px; font-size: 8px; }
.result-tag.loss { background: #f7eeea; color: #ad6b4e; }
.profile-layout { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(270px,.8fr); gap: 15px; }
.profile-card { padding: 22px; }
.profile-cover { min-height: 82px; border-radius: 10px; background: linear-gradient(105deg,#1c4d3c,#34745a); position: relative; overflow: hidden; }
.profile-cover::after { content: ''; position: absolute; right: 8%; top: -75px; width: 210px; height: 210px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; box-shadow: 0 0 0 20px rgba(255,255,255,.035), 0 0 0 42px rgba(255,255,255,.025); }
.profile-main { display: flex; align-items: end; gap: 13px; margin: -28px 0 17px 14px; position: relative; }
.profile-avatar { width: 63px; height: 63px; border: 4px solid var(--paper); font-size: 17px; }
.profile-name h2 { font-size: 18px; margin: 0 0 3px; }
.profile-name p { color: var(--muted); font-size: 9px; margin: 0; }
.profile-bio { color: #66716a; line-height: 1.7; font-size: 10px; max-width: 460px; }
.profile-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-top: 1px solid var(--line); padding-top: 15px; }
.profile-field small { color: var(--muted); display: block; font-size: 8px; margin-bottom: 4px; }
.profile-field strong { font-size: 10px; }
.profile-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin-top: 16px; }
.profile-stat { text-align: center; padding: 12px 6px; border-radius: 8px; background: var(--green-50); }
.profile-stat strong, .profile-stat small { display: block; }
.profile-stat strong { font-family: Manrope,sans-serif; font-size: 17px; }
.profile-stat small { color: var(--muted); font-size: 8px; margin-top: 3px; }
.profile-side { display: grid; gap: 13px; align-content: start; }
.player-traits-panel { padding-bottom: 13px; }
.traits-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; padding: 0 18px; }
.traits-grid .profile-field { padding: 10px; border-radius: 8px; background: var(--green-50); }
.traits-grid .profile-field strong { line-height: 1.4; }
.motivation-content { padding: 0 18px 17px; }
.motivation-level { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 10px; }
.motivation-level span { color: var(--green-700); font-weight: 700; }
.motivation-content input[type="range"] { width: 100%; margin: 15px 0 5px; accent-color: var(--green-700); }
.motivation-ends { display: flex; justify-content: space-between; color: var(--muted); font-size: 8px; }
.motivation-hint { color: var(--muted); font-size: 8px; margin: 11px 0 0; }
.messages-layout { display: grid; grid-template-columns: minmax(185px,.65fr) minmax(350px,1.35fr) minmax(230px,.85fr); gap: 13px; align-items: start; }
.conversation-list, .play-requests-panel { overflow: hidden; }
.conversation-items { padding: 0 10px 11px; }
.conversation-item { width: 100%; border: 0; border-radius: 8px; display: flex; align-items: center; gap: 8px; padding: 10px 7px; background: transparent; color: var(--ink); text-align: left; }
.conversation-item:hover, .conversation-item.active { background: var(--green-50); }
.conversation-copy { min-width: 0; flex: 1; }
.conversation-copy strong, .conversation-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-copy strong { font-size: 9px; }
.conversation-copy small { color: var(--muted); font-size: 8px; margin-top: 4px; }
.conversation-head { min-height: 60px; display: flex; align-items: center; gap: 9px; padding: 11px 13px; border-bottom: 1px solid var(--line); }
.conversation-head > div { flex: 1; }
.conversation-head strong, .conversation-head small { display: block; }
.conversation-head strong { font-size: 10px; }
.conversation-head small { color: var(--muted); font-size: 8px; margin-top: 3px; }
.message-history { min-height: 295px; max-height: 420px; overflow-y: auto; padding: 15px; background: #fafbf7; }
.message-line { display: flex; justify-content: flex-start; margin: 8px 0; }
.message-line.mine { justify-content: flex-end; }
.message-bubble { max-width: min(82%,340px); border-radius: 11px 11px 11px 3px; padding: 9px 11px; background: white; border: 1px solid var(--line); font-size: 9px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.message-line.mine .message-bubble { color: white; background: var(--green-800); border-color: var(--green-800); border-radius: 11px 11px 3px 11px; }
.message-bubble small { display: block; text-align: right; color: #9da79f; font-size: 7px; margin-top: 5px; }
.message-line.mine .message-bubble small { color: #d0e0d5; }
.message-composer { display: flex; gap: 8px; padding: 11px; border-top: 1px solid var(--line); }
.message-composer input { min-width: 0; flex: 1; height: 38px; padding: 0 11px; border: 1px solid var(--line); border-radius: 7px; background: white; font-size: 9px; }
.play-requests-panel .requests-list { max-height: 490px; overflow-y: auto; }
.settings-layout { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.settings-form { padding-bottom: 14px; }
.member-requests { grid-column: 1 / -1; }
.settings-save { grid-column: 1 / -1; }
.settings-fields { padding: 0 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.website-entry-manager { display: grid; gap: 10px; margin-top: 10px; }
.website-entry-card { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.website-entry-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.website-entry-fields .form-field { min-width: 0; margin: 0; }
.website-entry-fields input { min-width: 0; }
.website-entry-card > .button { justify-self: start; }
.settings-fields .form-hint { grid-column: 1 / -1; }
.settings-fields textarea { padding: 10px 11px; line-height: 1.6; }
.settings-fields small { color: var(--muted); font-size: 8px; }
.duration-field { min-width: 0; margin: 0 0 12px; padding: 0; border: 0; }
.duration-field legend { margin-bottom: 7px; color: #536158; font-size: 9px; font-weight: 700; }
.duration-options { display: flex; flex-wrap: wrap; gap: 7px 12px; }
.weekly-schedule-field { min-width: 0; margin: 0 0 12px; padding: 11px 12px 12px; border: 1px solid var(--line); border-radius: 10px; }
.weekly-schedule-field legend { padding: 0 5px; color: #536158; font-size: 9px; font-weight: 700; }
.weekly-hours-list { display: grid; gap: 7px; }
.weekly-hours-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 6px; }
.weekly-hours-row > label { display: flex; align-items: center; gap: 5px; min-width: 0; color: var(--muted); font-size: 9px; }
.weekly-hours-row .weekly-hours-day { color: var(--ink); font-size: 10px; font-weight: 650; }
.weekly-hours-day input[type="checkbox"] { flex: 0 0 auto; }
.weekly-hours-row input[type="time"] { min-width: 0; width: 100%; padding: 6px 5px; font-size: 10px; }
.weekly-schedule-field > small { display: block; margin-top: 8px; line-height: 1.5; }
.duration-option { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); font-size: 9px; font-weight: 500; }
.duration-option input { width: auto; min-height: 0; accent-color: var(--green-700); }
.court-block-panel { margin-top: 14px; }
.court-block-form { padding: 0 18px; }
.court-block-panel .requests-list { padding: 0 18px; }
.settings-save { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 5px 3px; }
.settings-save p { color: var(--muted); font-size: 9px; margin: 0; }
.visibility-row { display: flex; gap: 9px; align-items: start; border-top: 1px solid var(--line); padding: 11px 0; }
.visibility-row:first-of-type { border-top: 0; }
.visibility-row span { color: var(--green-700); font-size: 15px; }
.visibility-row strong { display: block; font-size: 9px; }
.visibility-row small { display: block; font-size: 8px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.public-mode .app-shell { display: block; }
.public-mode .sidebar { display: none; }
.public-mode .topbar { display: none; }
.public-mode .view-container { padding: 0; max-width: none; }
.public-header { display: flex; align-items: center; justify-content: space-between; padding: 18px max(5%,calc((100vw - 1160px)/2)); background: var(--green-950); color: white; }
.public-header .club-brand-crest { width: 42px; height: 42px; flex-basis: 42px; }
.public-header .brand-copy strong { max-width: clamp(110px,24vw,350px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; letter-spacing: 0; }
.public-header .brand-copy small { color: #98aea2; }
.public-nav { display: flex; align-items: center; gap: 25px; font-size: 10px; color: #d0ddd4; }
.public-nav-link { padding: 8px 2px; border: 0; border-bottom: 1px solid transparent; background: transparent; color: inherit; font: inherit; font-size: 10px; cursor: pointer; white-space: nowrap; }
.public-nav-link:hover, .public-nav-link.active { color: var(--lime); }
.public-nav-link.active { border-bottom-color: var(--lime); }
.public-hero { min-height: 460px; padding: 66px max(5%,calc((100vw - 1160px)/2)); display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; position: relative; overflow: hidden; background: #eff4e9; }
.public-hero-copy { max-width: 480px; position: relative; z-index: 1; }
.public-hero h1 { font-size: clamp(42px,6vw,68px); line-height: .99; letter-spacing: -.06em; margin: 15px 0; color: var(--green-950); }
.public-hero h1 span { color: var(--green-700); }
.public-hero p { color: #617169; line-height: 1.75; font-size: 12px; max-width: 380px; margin-bottom: 22px; }
.venue-facts { display: flex; flex-wrap: wrap; gap: 7px; margin: -7px 0 14px; }
.venue-facts span { color: var(--green-800); background: rgba(255,255,255,.78); border: 1px solid #dce6d6; border-radius: 20px; padding: 6px 9px; font-size: 8px; font-weight: 700; }
.public-hero-art { justify-self: center; position: relative; width: min(31vw,350px); aspect-ratio: 1; border-radius: 50%; background: var(--lime); box-shadow: inset -28px -25px 0 rgba(51,86,37,.12); transform: rotate(-25deg); }
.public-hero-art::before,.public-hero-art::after { content:''; position:absolute; width:45%; height:110%; border:3px solid var(--green-900); border-radius:50%; top:-5%; }
.public-hero-art::before { left:-24%; }.public-hero-art::after { right:-24%; }
.floating-note { position: absolute; right: -22px; bottom: 16px; transform: rotate(25deg); border-radius: 9px; padding: 10px 13px; color: var(--green-900); background: white; font-size: 9px; box-shadow: var(--shadow); }
.public-section { padding: 54px max(5%,calc((100vw - 1160px)/2)); }
.public-section.soft { background: white; }
.public-news-section { background: #fff; }
.public-news-card { background: #f7f9ff; border-color: #e6ebf8; }
.public-news-card .eyebrow { display: block; margin-bottom: 9px; color: var(--green-700); font-size: 9px; }
.public-news-card .panel-link, .public-team-card .panel-link { display: inline-block; margin-top: 12px; padding: 0; font-size: 10px; text-decoration: none; }
.public-news-empty { padding: 18px 20px; border: 1px dashed #d7dfd5; border-radius: 12px; color: var(--muted); background: #fafbf8; font-size: 11px; }
.public-section-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 20px; gap: 15px; }
.public-section-head h2 { font-size: 27px; margin: 7px 0 0; letter-spacing: -.04em; }
.public-section-head p { color: var(--muted); max-width: 330px; font-size: 10px; line-height: 1.65; margin: 0; }
.website-copy { white-space: pre-line; }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; }
.feature-grid.offer-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.feature-card { background: #f8f9f5; border-radius: 12px; padding: 19px; border: 1px solid #edf0e9; }
.feature-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--green-800); background: #e7f0df; font-size: 17px; margin-bottom: 16px; }
.feature-card h3 { font-size: 12px; margin-bottom: 7px; }
.feature-card p { color: var(--muted); font-size: 9px; line-height: 1.7; margin: 0; }
.feature-card .website-copy { font-size: 10px; }
.public-page-intro > h1 { margin: 8px 0; font-size: clamp(32px,4vw,48px); letter-spacing: -.05em; }
.public-page-intro > p { max-width: 600px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.public-team-grid, .public-sponsor-grid { margin-top: 25px; }
.public-card-subtitle { display: block; margin: -2px 0 8px; color: var(--green-800); font-size: 9px; }
.public-team-photo { display: block; width: calc(100% + 38px); height: 180px; margin: -19px -19px 17px; border-radius: 11px 11px 0 0; object-fit: cover; background: #e7f0df; }
.team-photo-list { display: grid; gap: 10px; }
.team-photo-row { display: flex; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.team-photo-preview { width: 82px; height: 62px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 8px; overflow: hidden; color: var(--green-800); background: var(--green-50); }
.team-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.team-photo-details { flex: 1; min-width: 0; display: grid; gap: 5px; }
.team-photo-details strong { font-size: 12px; }
.team-photo-details small { color: var(--muted); font-size: 10px; }
.team-photo-upload { position: relative; width: fit-content; overflow: hidden; }
.team-photo-upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.public-sponsor-card { display: flex; align-items: flex-start; gap: 13px; }
.public-sponsor-card > div { min-width: 0; }
.sponsor-mark { display: grid; place-items: center; width: 43px; height: 43px; flex: 0 0 auto; border-radius: 12px; background: var(--green-100); color: var(--green-800); font-family: Manrope,sans-serif; font-size: 12px; font-weight: 800; }
.public-sponsor-card .panel-link { display: inline-block; margin-top: 10px; padding: 0; text-decoration: none; }
.public-cta { margin-top: 28px; background: var(--green-900); color: white; border-radius: 16px; padding: 28px 32px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.public-cta-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.public-cta h2 { font-size: 24px; margin: 0 0 6px; }
.public-cta p { color: #c4d3c9; font-size: 10px; margin: 0; }
.public-footer { padding: 24px max(5%,calc((100vw - 1160px)/2)); display: flex; justify-content: space-between; color: #97a49c; font-size: 9px; }
.public-footer-links { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.public-footer-links .panel-link { color: #d2ddd6; font-size: 9px; }
.legal-copy { max-height: min(60vh,520px); overflow: auto; color: #59655d; font-size: 11px; line-height: 1.75; white-space: normal; }
.legal-copy p { margin: 0 0 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.contact-section .public-section-head { align-items: center; }
.public-contact { display: grid; gap: 9px; min-width: min(100%,320px); padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--ink); font-style: normal; font-size: 11px; line-height: 1.55; }
.public-contact a { color: var(--green-800); font-weight: 700; text-decoration: none; }
.public-contact a:hover { text-decoration: underline; }
.modal-backdrop { position: fixed; inset: 0; z-index: 10; background: rgba(13,35,28,.52); display: grid; place-items: center; padding: max(18px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(18px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left)); animation: fade-in .15s ease-out; }
.modal { width: min(100%,440px); border-radius: 15px; padding: 22px; background: var(--paper); box-shadow: 0 22px 70px rgba(0,0,0,.22); animation: rise-in .18s ease-out; }
.modal-head { display: flex; align-items: start; justify-content: space-between; gap: 15px; margin-bottom: 18px; }
.modal-head h2 { font-size: 19px; margin: 5px 0 0; }
.modal-head p { color: var(--muted); font-size: 10px; margin: 5px 0 0; line-height: 1.5; }
.modal-close { border: 0; background: #f1f3ee; width: 29px; height: 29px; border-radius: 50%; color: #5e6c63; font-size: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-field { display: grid; gap: 6px; margin-bottom: 12px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { color: #536158; font-size: 9px; font-weight: 700; }
.form-field label.check-row { display: inline-flex; align-items: center; gap: 8px; margin-top: 9px; font-size: 12px; font-weight: 500; }
.form-field input, .form-field select, .form-field textarea { width: 100%; min-height: 39px; padding: 0 11px; border-radius: 7px; border: 1px solid #dfe4dc; color: var(--ink); background: white; font-size: 10px; }
.form-field textarea { resize: vertical; padding-top: 10px; }
.form-hint { color: var(--muted); font-size: 8px; line-height: 1.5; margin: 2px 0 14px; }
.modal-actions { display: flex; justify-content: end; gap: 8px; margin-top: 16px; }
.toast { position: fixed; z-index: 20; left: 50%; bottom: 22px; transform: translate(-50%, 18px); opacity: 0; pointer-events: none; border-radius: 9px; background: var(--green-950); color: white; padding: 11px 16px; font-size: 10px; box-shadow: var(--shadow); transition: .22s ease; }
.toast.show { transform: translate(-50%,0); opacity: 1; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 920px) {
  .app-shell { grid-template-columns: 218px minmax(0,1fr); }
  .hero-art { right: 4%; width: 158px; height: 158px; }
  .dashboard-grid, .challenge-layout, .profile-layout { grid-template-columns: 1fr; }
  .messages-layout { grid-template-columns: minmax(180px,.65fr) minmax(0,1.35fr); }
  .play-requests-panel { grid-column: 1 / -1; }
  .challenge-side { grid-template-columns: 1fr 1fr; }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-save { grid-column: 1; }
  .ladder-row { grid-template-columns: 34px minmax(130px,1fr) 80px 80px; }
  .public-hero { min-height: 390px; }
  .feature-grid.offer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-stats.match-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tournament-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .app-shell { display: block; }
  .modal { max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; }
  .form-field input, .form-field select, .form-field textarea { min-height: 44px; font-size: 16px; }
  .modal-actions .button { min-height: 44px; }
  .sidebar { position: fixed; z-index: 5; inset: 0 auto 0 0; width: min(280px,85vw); height: 100dvh; transform: translateX(-102%); transition: transform .2s ease; box-shadow: 18px 0 45px rgba(0,0,0,.18); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-scrim.visible { position: fixed; z-index: 4; inset: 0; display: block; width: 100%; height: 100dvh; padding: 0; border: 0; background: rgba(15,25,20,.42); }
  .topbar { min-height: calc(63px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 18px 0; }
  .mobile-menu { display: inline-grid; place-items: center; width: 31px; height: 31px; background: none; border: 0; color: var(--ink); font-size: 20px; margin-right: 8px; }
  .mobile-menu:focus-visible { outline: 2px solid var(--green-700); outline-offset: 2px; border-radius: 7px; }
  .crumb-wrap { display: flex; align-items: center; }
  .crumb { font-size: 10px; }
  .top-actions { gap: 8px; }
  .top-profile .profile-text { display: none; }
  .view-container { padding: 25px 17px 42px; }
  .app-shell:not(.public-mode) .view-container { padding-bottom: calc(94px + env(safe-area-inset-bottom)); }
  body:not(.public-mode) .app-shell.ready ~ .mobile-member-nav { position: fixed; z-index: 10; inset: auto env(safe-area-inset-right) 0 env(safe-area-inset-left); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; padding: 7px 8px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid #e2e7e0; background: rgba(255,254,250,.97); box-shadow: 0 -8px 28px rgba(28,48,105,.08); backdrop-filter: blur(14px); }
  .mobile-nav-item { position: relative; min-width: 0; min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 5px 2px; border: 0; border-radius: 10px; color: #68766c; background: transparent; }
  .mobile-nav-item > span:first-child { font-size: 20px; line-height: 1; }
  .mobile-nav-item small { max-width: 100%; overflow: hidden; color: inherit; font-size: 9px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
  .mobile-nav-item.active { color: var(--green-900); background: var(--green-50); font-weight: 700; }
  .mobile-nav-item:focus-visible { outline-offset: -2px; }
  .mobile-nav-count { position: absolute; top: 2px; left: calc(50% + 4px); min-width: 16px; height: 16px; display: grid; place-items: center; padding: 0 4px; border: 2px solid var(--paper); border-radius: 20px; color: white; background: #b94c45; font-size: 8px; line-height: 1; }
  .mobile-nav-count[hidden] { display: none; }
  .page-heading { align-items: start; flex-direction: column; }
  .page-heading .button, .booking-toolbar .button { align-self: stretch; }
  .hero { min-height: 238px; padding: 24px 21px; grid-template-columns: 1fr; }
  .hero-copy { max-width: calc(100% - 100px); }
  .admin-setup-card { align-items: stretch; flex-direction: column; }
  .admin-setup-card .button { align-self: flex-start; }
  .admin-setup-card ul { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .hero-art { width: 84px; height: 84px; right: 4%; top: auto; bottom: 16px; opacity: .25; }
  .hero-art::before,.hero-art::after { height: 92px; width: 48px; top: -6px; }
  .hero-art::before { left: -28px; }.hero-art::after { right: -28px; }
  .hero-art-mark { width: 46px; height: 46px; font-size: 7px; }
  .dashboard-stats { grid-template-columns: 1fr; gap: 8px; }
  .stat-card { padding: 11px 13px; }
  .stat-copy strong { font-size: 17px; }
  .panel-head { padding: 15px; }
  .booking-preview { padding: 11px 14px; }
  .booking-toolbar { flex-direction: column; align-items: stretch; width: 100%; }
  .booking-legend { justify-content: flex-start; flex-wrap: wrap; gap: 8px 12px; font-size: 11px; }
  .court-card { padding: 14px 12px; }
  .court-title strong { font-size: 13px; }
  .court-title small { font-size: 11px; }
  .court-open-count { font-size: 10px; }
  .date-control { justify-content: space-between; }
  .slot-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; }
  .time-slot { min-width: 0; min-height: 52px; padding: 7px 3px; font-size: 12px; }
  .slot-label { font-size: 9px; }
  .booking-note { font-size: 11px; line-height: 1.5; }
  .messages-layout { grid-template-columns: 1fr; }
  .play-requests-panel { grid-column: 1; }
  .conversation-head { flex-wrap: wrap; }
  .conversation-head .button { margin-left: auto; }
  .challenge-side { grid-template-columns: 1fr; }
  .settings-fields { grid-template-columns: 1fr; }
  .website-entry-fields { grid-template-columns: 1fr; }
  .settings-fields .form-hint { grid-column: 1; }
  .settings-save { flex-direction: column; align-items: stretch; }
  .profile-setup-card { align-items: stretch; flex-direction: column; }
  .app-install-card { align-items: stretch; flex-direction: column; }
  .app-install-icon { display: none; }
  .category-tabs { flex-wrap: wrap; gap: 7px; }
  .category-tabs .button { flex: 1 1 calc(50% - 4px); min-width: 0; min-height: 40px; padding: 7px 9px; white-space: normal; line-height: 1.25; }
  .ladder-row { grid-template-columns: 28px minmax(0,1fr) 58px; gap: 8px; padding: 12px 11px; }
  .ladder-pyramid { padding: 8px 9px 14px; gap: 8px; align-items: stretch; overflow-x: auto; overscroll-behavior-inline: contain; }
  .ladder-pyramid-row { width: max-content; max-width: none !important; grid-template-columns: repeat(var(--pyramid-columns),minmax(122px,1fr)); gap: 8px; }
  .ladder-pyramid-row[style*="--pyramid-columns:1"] { min-width: 122px; }
  .ladder-entry { min-height: 145px; padding: 14px 7px 8px; border-radius: 12px; }
  .ladder-entry .player-avatar { width: 34px; height: 34px; }
  .ladder-entry-name { font-size: 11px; }
  .ladder-entry .button, .ladder-entry .result-tag { min-height: 38px; font-size: 10px; }
  .ladder-entry-locked { min-height: 38px; }
  .ladder-name { gap: 8px; min-width: 0; }
  .ladder-name > span:last-child { min-width: 0; }
  .ladder-name .player-avatar { width: 30px; height: 30px; }
  .ladder-name strong { font-size: 11px; overflow-wrap: anywhere; }
  .ladder-name small { font-size: 10px; }
  .ladder-points { font-size: 9px; }
  .ladder-points strong { font-size: 12px; }
  .ladder-row > .button, .ladder-row > .result-tag { grid-column: 2 / -1; justify-self: stretch; min-height: 36px; padding: 0 10px; font-size: 10px; }
  .match-row { grid-template-columns: minmax(0,1fr) auto; grid-template-areas: 'players score' 'date result'; align-items: center; gap: 8px 10px; padding: 12px 10px; }
  .match-date { grid-area: date; font-size: 10px; }
  .match-type { font-size: 9px; }
  .match-players { grid-area: players; min-width: 0; flex-wrap: wrap; gap: 5px; }
  .match-players .player-avatar { width: 24px; height: 24px; flex: 0 0 24px; }
  .match-players strong { min-width: 0; font-size: 10px; overflow-wrap: anywhere; }
  .match-players span:not(.player-avatar) { font-size: 9px; }
  .match-score { grid-area: score; font-size: 11px; text-align: right; }
  .match-row .result-tag { grid-area: result; display: inline-flex; justify-self: end; font-size: 10px; }
  .profile-card { padding: 15px; }
  .traits-grid { grid-template-columns: 1fr; }
  .season-banner { align-items: start; flex-wrap: wrap; }
  .season-banner .button { margin-left: 40px; }
  .public-header { padding: calc(16px + env(safe-area-inset-top)) 18px 16px; flex-wrap: wrap; gap: 12px; }
  .public-nav { width: 100%; justify-content: flex-start; flex-wrap: wrap; gap: 6px; font-size: 12px; }
  .public-nav-link { flex: 1 1 0; min-width: max-content; min-height: 44px; padding: 8px 7px; font-size: 12px; }
  .public-nav > .button { flex: 1 1 100%; min-height: 44px; font-size: 12px; }
  .public-nav a { display: none; }
  .public-hero { padding: 47px 21px 35px; min-height: 520px; grid-template-columns: 1fr; align-content: start; }
  .public-hero-copy { max-width: 100%; }
  .public-hero h1 { font-size: clamp(36px, 12vw, 49px); }
  .public-hero-art { width: 185px; margin: 35px auto 0; }
  .public-section { padding: 38px 20px; }
  .public-section-head { display: block; }
  .public-section-head h2 { font-size: 23px; margin-bottom: 9px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid.offer-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 16px; }
  .feature-icon { margin-bottom: 10px; }
  .public-cta { flex-direction: column; align-items: start; padding: 23px; }
  .public-cta-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .public-cta h2 { font-size: 21px; }
  .public-footer { padding: 20px; gap: 15px; flex-wrap: wrap; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
}

.auth-layer { position: fixed; inset: 0; z-index: 1200; display: none; align-items: center; justify-content: center; padding: max(22px,env(safe-area-inset-top)) max(22px,env(safe-area-inset-right)) max(22px,env(safe-area-inset-bottom)) max(22px,env(safe-area-inset-left)); background: rgba(12, 31, 25, .76); backdrop-filter: blur(7px); }
.auth-layer.visible { display: flex; }
.auth-card { width: min(100%, 480px); max-height: min(92vh, 780px); overflow: auto; padding: 30px; border: 1px solid rgba(255,255,255,.55); border-radius: 20px; background: var(--paper); box-shadow: 0 28px 80px rgba(0,0,0,.24); }
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.auth-brand .club-brand-crest { width: 42px; height: 42px; flex: 0 0 42px; }
.auth-brand strong { display: block; font-size: 15px; color: var(--green-950); }
.auth-brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.auth-card h1 { margin: 0 0 8px; color: var(--green-950); font-size: 28px; }
.auth-card > p { margin: 0 0 20px; color: var(--muted); line-height: 1.55; }
.auth-form { display: grid; gap: 14px; }
.auth-form .form-field { margin: 0; }
.auth-form .button { width: 100%; justify-content: center; margin-top: 4px; }
  .auth-profile-fields { min-width: 0; margin: 2px 0 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
  .auth-profile-fields legend { padding: 0 5px; color: var(--green-900); font-size: 12px; font-weight: 700; }
  .auth-profile-fields > p { margin: 0 0 12px; color: var(--muted); font-size: 11px; line-height: 1.4; }
  .auth-profile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .auth-profile-fields label { font-size: 11px; }
  .auth-profile-fields select { min-width: 0; padding: 9px 8px; font-size: 11px; }
  .auth-motivation-field { margin-top: 10px !important; }
.auth-message { margin: 0 0 15px; padding: 11px 13px; border-radius: 9px; color: var(--green-900); background: var(--green-50); font-size: 13px; line-height: 1.45; }
.auth-message.error { color: #8d342f; background: #fff0ed; }
.auth-switch { margin-top: 17px; text-align: center; color: var(--muted); font-size: 13px; }
.auth-switch button { padding: 0; border: 0; color: var(--green-700); background: none; font: inherit; font-weight: 700; cursor: pointer; }
.auth-switch small { display: block; margin-top: 12px; line-height: 1.5; }
.auth-password-note { margin: -5px 0 0; color: var(--muted); font-size: 11px; }
.member-picker { display: grid; gap: 8px; max-height: 50vh; overflow: auto; }
.member-picker .button { justify-content: flex-start; gap: 10px; text-align: left; }
.member-picker-copy { display: grid; gap: 3px; min-width: 0; }
.member-picker-copy strong { font-size: 10px; }
.member-picker-copy small { color: var(--muted); font-size: 8px; line-height: 1.4; }
.top-actions .logout-button { padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: white; font: inherit; font-size: 12px; cursor: pointer; }
.top-actions .logout-button:hover { color: var(--green-900); border-color: var(--green-700); }
@media (max-width: 560px) {
  .auth-card { padding: 23px 19px; }
  .auth-card { max-height: calc(100dvh - 24px); }
  .auth-card h1 { font-size: 24px; }
  .top-actions .logout-button { padding: 8px 9px; font-size: 11px; }
  .profile-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .weekly-hours-row { gap: 4px; }
  .weekly-hours-row > label { gap: 4px; font-size: 10px; }
  .weekly-hours-row .weekly-hours-day { font-size: 11px; }
  .weekly-hours-row input[type="time"] { min-height: 44px; padding: 6px 3px; font-size: 16px; }
  .auth-profile-fields select { min-height: 44px; font-size: 16px; }
}
body.admin-preview-mode .main-nav .nav-item:not([data-view="settings"]),
body.admin-preview-mode .user-mini,
body.admin-preview-mode .top-profile,
body.admin-preview-mode .top-actions .icon-button { display: none; }
