@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap");
/* QBK phone site — modern app theme, built around the floating bottom tab bar.
   Loaded last on every 8033 page (see serve.py). Everything borrows the tab bar's language: rounded,
   frosted white surfaces with soft shadows, navy ink, Space Grotesk, and a soft gray pill for whatever
   is selected. The tab bar itself is left exactly as it is. Remove the app-theme.css link in serve.py
   to switch back to the previous look. */

:root {
  --app-ink: #10243c;
  --app-ink-2: #55606b;
  --app-ink-3: #8a939c;
  --app-line: #e9edf0;
  --app-selected: rgb(16 36 60 / .08);
  --app-hover: rgb(16 36 60 / .05);
  --app-glass: rgb(255 255 255 / .72);
  --app-glass-edge: rgb(255 255 255 / .75);
  --app-float: 0 8px 28px rgb(16 36 60 / .16), 0 1px 3px rgb(16 36 60 / .1);
  --app-card: 0 1px 2px rgb(16 36 60 / .05), 0 6px 20px rgb(16 36 60 / .06);
  --app-radius: 20px;
}

/* ---------- site header: frosted, like the tab bar ---------- */
.phone > .site-header, body > .site-header { box-shadow: none !important; border-bottom: 1px solid var(--app-line);
  background: rgb(255 255 255 / .82) !important; -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6); }
.site-header .site-account.has-name { box-shadow: inset 0 0 0 1px var(--app-line), 0 1px 3px rgb(16 36 60 / .08) !important; }

/* ---------- page heading + Book a court ---------- */
.phone .page-title > .title { border-bottom: 0 !important; padding: 20px 16px 8px !important; }
.phone .title h1 { color: var(--app-ink) !important; font-size: 1.65rem !important; letter-spacing: -.035em !important; line-height: 1.1 !important; }
.phone .title .book-court { background: var(--app-glass) !important; color: var(--app-ink) !important; border: 1px solid var(--app-glass-edge) !important;
  border-radius: 22px !important; box-shadow: var(--app-float) !important; -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  padding: 6px 16px 6px 12px !important; }
.phone .title .book-court:hover { background: rgb(255 255 255 / .9) !important; }
.phone .title .book-court[aria-pressed="true"] { background: var(--app-selected) !important; box-shadow: none !important; border-color: transparent !important; }

/* ---------- day tabs: selected day in the tab bar's soft pill ---------- */
.phone .days { gap: 4px !important; padding: 6px 12px 8px !important; }
.phone .day-tab { border-radius: 16px !important; padding: 9px 13px !important; color: var(--app-ink-2) !important; font-weight: 500 !important; transition: background .15s, color .15s; }
.phone .day-tab[aria-selected="true"] { background: var(--app-selected) !important; color: var(--app-ink) !important; font-weight: 700 !important; }
@media (hover: hover) { .phone .day-tab:not(:disabled):hover { background: var(--app-hover) !important; color: var(--app-ink) !important; } }
.phone .day-tab:disabled { background: none !important; color: #c9cfd5 !important; }

/* ---------- filters: white pills; selected gets the soft pill ---------- */
.phone .chips { border-bottom: 1px solid var(--app-line) !important; padding: 2px 16px 12px !important; gap: 8px !important; }
.phone .chip { border-radius: 16px !important; background: #fff !important; padding: 7px 14px !important;
  box-shadow: 0 1px 2px rgb(16 36 60 / .06) !important; transition: background .15s; }
.phone .chip[aria-pressed="true"] { background: var(--app-selected) !important; border-color: transparent !important; color: var(--app-ink) !important;
  box-shadow: none !important; font-weight: 700 !important; }
/* Selected filters keep their color: colored chips fill with their category color, "All" fills dark. */
.phone .chip[aria-pressed="true"][style*="--c"] { background: var(--c) !important; color: #fff !important; }
.phone .chip[aria-pressed="true"]:not([style*="--c"]) { background: var(--app-ink) !important; color: #fff !important; }

/* ---------- day headings: light and frosted ---------- */
.phone section.day h2, .phone .picker-date { background: rgb(255 255 255 / .82) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
  color: var(--app-ink) !important; padding: 14px 16px 8px !important; letter-spacing: -.01em !important; }

/* ---------- sessions as rounded cards with a soft shadow ---------- */
.phone #list { padding-bottom: 8px; }
.phone .row { margin: 0 12px 10px !important; padding: 14px 14px 14px 16px !important; border: 1px solid var(--app-line) !important;
  border-radius: var(--app-radius) !important; background: #fff !important; box-shadow: var(--app-card) !important; align-items: center !important; }
.phone .row + .row { border-top: 1px solid var(--app-line) !important; }
.phone .when small, .phone .what .note { color: var(--app-ink-3) !important; }
.phone .what .sub { color: var(--app-ink-2) !important; }
.phone .row .book:not(.cancel-booked) { border-radius: 16px !important; box-shadow: none !important; transition: box-shadow .15s ease; }
/* The yellow glow only shows on hover / keyboard focus. */
.phone .row .book:not(.cancel-booked):is(:hover, :focus-visible) { box-shadow: 0 4px 12px rgb(242 197 34 / .35), 0 1px 2px rgb(16 36 60 / .08) !important; }
.phone .empty { color: var(--app-ink-3) !important; }

/* ---------- dashboard and other pages: same rounded, soft-shadow surfaces ---------- */
#dashboard .panel, #dashboard section.panel { border-radius: var(--app-radius) !important; }
#dashboard .event { border-radius: 16px; }
html body :is(input, select, textarea) { border-radius: 14px; }

/* Dashboard lists (My upcoming events, My past events, teams): the same rounded cards as the schedule. */
#dashboard #events .schedule-day > h3 { background: rgb(255 255 255 / .82) !important; color: var(--app-ink) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6); padding: 12px 16px 8px !important; }
body:not(.court-embed) #dashboard ul.events { padding: 0 12px !important; }
body:not(.court-embed) #dashboard ul.events > li.event { margin: 0 0 10px !important; border: 1px solid var(--app-line) !important; border-radius: var(--app-radius) !important;
  background: #fff !important; box-shadow: var(--app-card) !important; }
#dashboard ul.events > li.event + li.event { border-top: 1px solid var(--app-line) !important; }
/* Match the Cancel action on booked cards in Schedule and Dashboard. */
:is(.phone .row .book.cancel-booked, #dashboard .event .cancel-event) {
  min-width: 0; min-height: 2.5rem; padding: .5rem .7rem;
  border-width: 1px; border-style: solid; border-radius: 16px !important;
  font-size: .88rem; line-height: 1.5; font-weight: 700;
}
:is(.phone .row .book.cancel-booked, #dashboard .event .cancel-event:enabled) {
  background: #fff; border-color: #e5c3c0; color: #8f2923;
  box-shadow: 0 1px 2px rgb(16 36 60 / .06) !important;
}
:is(.phone .row .book.cancel-booked, #dashboard .event .cancel-event:enabled):focus-visible {
  outline: 2px solid #742019; outline-offset: 2px;
}
#dashboard :is(#past-events-toggle, .show-more, [id$="-more"]) { border-radius: 16px !important; }
#dashboard #past-events.events { padding: 0 12px !important; }
#dashboard #past-events.events > li.event { margin: 0 0 10px !important; border: 1px solid var(--app-line) !important; border-radius: var(--app-radius) !important;
  background: #fff !important; box-shadow: var(--app-card) !important; }

/* =====================================================================================
   Site-wide: every 8033 page, menu, button and booking step in the same language.
   ===================================================================================== */
:root { --app-font: "Space Grotesk", "Segoe UI", system-ui, sans-serif; --app-yellow: #ffd333; --app-yellow-hover: #f2c522;
  --app-yellow-glow: 0 4px 12px rgb(242 197 34 / .35), 0 1px 2px rgb(16 36 60 / .08); --app-field: #dfe5ea; }

/* ---------- one typeface everywhere (the tab bar's) ---------- */
html body, html body :is(h1, h2, h3, h4, h5, p, a, span, strong, b, em, small, button, input, select, textarea, label, li, dt, dd,
  time, div, summary, th, td, legend, figcaption, article, section, aside, ol, ul, output) {
  font-family: var(--app-font) !important;
}
html body { color: var(--app-ink); -webkit-font-smoothing: antialiased; }

/* ---------- headings: one page-title size, one section size ---------- */
main h1, .phone-store > h1, #schedule-title:is(h1) { color: var(--app-ink) !important; font-size: 1.65rem !important; font-weight: 700 !important;
  letter-spacing: -.035em !important; line-height: 1.1 !important; }
#dashboard #events-title, #past-view > h2, #dashboard.teams-page #teams-heading, #past-teams-heading, #account-title,
.phone-store > section > h2, main section.panel > h2 { color: var(--app-ink) !important; font-size: 1.3rem !important;
  font-weight: 700 !important; letter-spacing: -.03em !important; line-height: 1.2 !important; }

/* ---------- buttons ---------- */
/* Main action: QBK yellow, rounded, soft glow. */
html body :is(button.primary, a.primary, .primary-button, .phone-store article button,
  .rental-builder button:not(.text-button):not(.court-pick-remove):not(.rental-item-remove)) {
  border: 0 !important; border-radius: 16px !important; background: var(--app-yellow) !important; color: #172523 !important;
  box-shadow: var(--app-yellow-glow) !important; font-weight: 700 !important; transition: background .15s, transform .1s, box-shadow .15s;
}
html body :is(button.primary, a.primary, .phone-store article button):hover { background: var(--app-yellow-hover) !important; }
html body :is(button.primary, a.primary, .phone-store article button, .phone .row .book:not(.cancel-booked)):active { transform: scale(.98); }
html body :is(button.primary, a.primary, .rental-builder button):disabled { background: #f3e7b5 !important; color: #8a8160 !important; box-shadow: none !important; }
/* Secondary: white rounded with a hairline; text buttons stay plain navy. */
html body :is(button.secondary, a.secondary, .cancel-event) {
  border-radius: 16px !important; box-shadow: 0 1px 2px rgb(16 36 60 / .06) !important;
}
html body .text-button { color: var(--app-ink) !important; font-weight: 600 !important; }
/* Back links: a chevron and "Back", no background, lined up with the page edge. */
main a.back { display: inline-flex !important; align-items: center; gap: 6px; padding: 7px 14px 7px 2px !important; border-radius: 16px !important;
  background: none !important; color: var(--app-ink) !important; font-weight: 600 !important; font-size: .9rem !important;
  text-decoration: none !important; }
main a.back::before { content: ""; width: .45rem; height: .45rem; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(45deg); }

/* ---------- panels and cards ---------- */
main .panel:not(#dashboard .panel):not(.court-embed .panel) { border: 1px solid var(--app-line) !important; border-radius: var(--app-radius) !important;
  background: #fff !important; box-shadow: var(--app-card) !important; }
main .session-panel { background: linear-gradient(180deg, rgb(32 95 77 / .07), rgb(32 95 77 / .03)) , #fff !important; border-color: rgb(32 95 77 / .14) !important; }

/* ---------- forms ---------- */
html body :is(input:not([type=radio]):not([type=checkbox]):not([type=range]), select, textarea) {
  border: 1px solid var(--app-field) !important; border-radius: 14px !important; background-color: #fff !important; color: var(--app-ink) !important;
  min-height: 46px; box-shadow: 0 1px 2px rgb(16 36 60 / .04) !important;
}
html body :is(input, select, textarea):focus-visible { outline: 0 !important; border-color: var(--app-ink) !important;
  box-shadow: 0 0 0 4px rgb(16 36 60 / .1) !important; }
main section label:has(> input[type=radio]), main section label:has(> input[type=checkbox]) { border-radius: 14px !important; }
html body :is(input[type=radio], input[type=checkbox]) { accent-color: var(--app-ink); }

/* ---------- checkout progress: soft pills instead of underlines ---------- */
main ol.steps { display: flex !important; gap: 6px !important; padding: 0 !important; border: 0 !important; }
main ol.steps > li { border: 0 !important; border-radius: 14px !important; padding: 6px 12px !important; color: var(--app-ink-3) !important;
  background: none !important; font-weight: 500 !important; box-shadow: none !important; }
main ol.steps > li:is([aria-current], .current, .active, [data-current]) { background: var(--app-selected) !important; color: var(--app-ink) !important; font-weight: 700 !important; }
main ol.steps > li::before, main ol.steps > li::after { border-color: transparent !important; background: none !important; }

/* ---------- slide-out menu: the tab bar's soft pills ---------- */
.site-mobile-links { padding: .75rem .75rem max(1rem, env(safe-area-inset-bottom)) !important; gap: 2px; background: #fff !important; }
.site-mobile-links > a { border-bottom: 0 !important; border-radius: 16px; padding: .8rem 1rem !important;
  font-size: 1.3rem !important; letter-spacing: -.02em; color: var(--app-ink) !important; }
.site-mobile-links a[aria-current="page"] { background: var(--app-selected) !important; color: var(--app-ink) !important; }
@media (hover: hover) { .site-mobile-links > a:hover { background: var(--app-hover); } }
.site-mobile-links > .site-mobile-account-heading { margin: 1.25rem 1rem .25rem !important; color: var(--app-ink-3) !important;
  font-size: .75rem !important; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- shop ---------- */
.phone-store { padding-inline: 12px !important; }
.phone-store > h1 { margin-inline: -12px !important; padding-inline: 16px !important; }
.phone-store > section > h2 { padding-inline: 4px; border: 0 !important; }
.phone-store article { margin: 0 0 10px !important; padding: 14px 14px 14px 16px !important; border: 1px solid var(--app-line) !important;
  border-radius: var(--app-radius) !important; background: #fff !important; box-shadow: var(--app-card) !important; }
.phone-store article + article { border-top: 1px solid var(--app-line) !important; }
.phone-store summary { color: var(--app-ink-2) !important; }

/* ---------- account & billing, teams ---------- */
#account-panel, aside.account { border-radius: var(--app-radius) !important; box-shadow: var(--app-card) !important; border: 1px solid var(--app-line) !important; margin: 16px 12px 12px !important; }
:is(#my-teams, #past-teams) .event, :is(#my-teams, #past-teams) > li { border: 1px solid var(--app-line) !important; border-radius: var(--app-radius) !important;
  box-shadow: var(--app-card) !important; background: #fff !important; }

/* ---------- court picker (embedded on Book a Court) ---------- */
body.court-embed { background: #fff; }
body.court-embed .rental-builder { border: 1px solid var(--app-line) !important; border-radius: var(--app-radius) !important;
  box-shadow: var(--app-card) !important; background: #fff !important; }
body.court-embed .court-grid-break { background: var(--app-surface, #f6f7f8) !important; color: var(--app-ink-2) !important; border-color: var(--app-line) !important; }
body.court-embed .court-grid-head { background: rgb(255 255 255 / .9) !important; color: var(--app-ink) !important; font-weight: 600 !important; }
body.court-embed .court-grid-times span { color: var(--app-ink-2) !important; font-weight: 600 !important; }
body.court-embed .court-legend span::before { border-radius: 6px !important; }
/* Page titles (top of each tab) share one size; section titles below them stay smaller. */
#dashboard.teams-page #teams-heading, #dashboard #events-title { font-size: 1.65rem !important; letter-spacing: -.035em !important; line-height: 1.1 !important; }
:is(#my-teams, #past-teams) .event { border-radius: var(--app-radius) !important; }

/* Sign-in: "Create an account" as a full-width secondary button under the yellow Sign in, not a bare link. */
main button#create-account { display: grid; place-items: center; width: 100%; min-height: 48px; margin-top: 10px;
  border: 1px solid var(--app-line) !important; border-radius: 16px !important; background: #fff !important;
  box-shadow: 0 1px 2px rgb(16 36 60 / .06) !important; color: var(--app-ink) !important; font-weight: 700 !important; text-decoration: none !important; }
main button#create-account:hover { background: var(--app-hover) !important; }
.site-header .site-mobile-menu[open] > summary { background: var(--app-selected) !important; border-radius: 14px !important; }

/* Dashboard sections are open space (the events inside are the cards) — no outer borders or rounded box. */
body:not(.court-embed) #dashboard .event-column > section.panel, body:not(.court-embed) #dashboard #past-view {
  border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important; }
/* "View Schedule →": a soft pill link, like the back links, instead of a full-width ruled strip. */
#dashboard a.dashboard-schedule-link { width: auto !important; margin: 2px auto 8px !important; padding: 8px 16px !important; border: 0 !important;
  border-radius: 16px !important; background: var(--app-selected) !important; color: var(--app-ink) !important; font-size: .85rem !important; }
#dashboard a.dashboard-schedule-link:hover { background: rgb(16 36 60 / .12) !important; }
body:not(.public-court-picker) #dashboard section.panel:has(> a.dashboard-schedule-link) { display: flex; flex-direction: column; }
#dashboard section.panel:has(> a.dashboard-schedule-link) > a.dashboard-schedule-link { align-self: center; }
/* "Show more" (past events / past teams): the same centered soft pill, no ruled strip. */
:is(#past-show-all, #past-teams-toggle):not([hidden]) { width: auto !important; min-height: 0 !important; height: auto !important;
  margin: 4px auto 12px !important; padding: 8px 16px !important; border: 0 !important; border-radius: 16px !important;
  background: var(--app-selected) !important; color: var(--app-ink) !important; font-size: .85rem !important; font-weight: 700 !important; box-shadow: none !important; }
:is(#past-show-all, #past-teams-toggle):not([hidden]):hover { background: rgb(16 36 60 / .12) !important; }
body:not(.public-court-picker) :is(#past-view:has(> #past-show-all), #teams-panel:has(#past-teams-toggle)) { display: flex; flex-direction: column; }
#past-view > #past-show-all { align-self: center; }
#past-view, #past-view > :is(#past-show-all, #past-more) { border-top: 0 !important; border-bottom: 0 !important; }

/* No straight section divider lines anywhere — spacing and cards separate things instead.
   (Lines inside a card, like a checkout total, stay.) */
#dashboard :is(#events, #past-events, .events), #past-events:not(:empty),
#dashboard :is(h1, h2, h3), .phone-store > :is(h1, section, section > h2), #dashboard.teams-page #teams-heading, #past-teams-heading,
.phone :is(.chips, .days, header.top, .page-title, .page-title > .title), #dashboard .event-column > section.panel,
#past-view, #past-view > *, #dashboard a.dashboard-schedule-link, .site-mobile-links > a {
  border-top: 0 !important; border-bottom: 0 !important;
}
/* The pinned site header lifts off the page with a soft shadow instead of a rule. */
.phone > .site-header, body > .site-header { border-bottom: 0 !important; box-shadow: 0 6px 18px rgb(16 36 60 / .06) !important; }
.phone header.top { box-shadow: 0 8px 16px -12px rgb(16 36 60 / .18) !important; }
/* "View Schedule →" and "Show more": plain navy links, no background. */
#dashboard a.dashboard-schedule-link, :is(#past-show-all, #past-teams-toggle):not([hidden]) { background: transparent !important; }
#dashboard a.dashboard-schedule-link:hover, :is(#past-show-all, #past-teams-toggle):not([hidden]):hover { background: transparent !important; text-decoration: underline !important; text-underline-offset: 3px; }
/* Links under a list sit the same 10px below the last card as the cards sit from each other
   (the 8px tap padding above the text is pulled back with a negative margin). */
#dashboard a.dashboard-schedule-link { margin-top: -8px !important; }
#past-view > #past-show-all:not([hidden]) { margin-top: -8px !important; }

/* ---------- dashboard summary: photo + name, then three stat cards ---------- */
.app-summary { padding: 18px 16px 6px; }
.app-summary[hidden] { display: none; }
.app-summary-profile { display: flex; align-items: center; gap: 14px; }
.app-summary .app-summary-photo { width: 60px; height: 60px;
  border-radius: 50%; background: var(--app-ink); color: #fff; box-shadow: 0 0 0 3px #fff, 0 4px 14px rgb(16 36 60 / .16); }
.app-summary-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.app-summary-photo img[hidden] { display: none; }
.app-summary-initials { font-weight: 700; font-size: 1.15rem; }
.app-summary-who { min-width: 0; }
.app-summary-hello { margin: 0 0 2px; color: var(--app-ink-3); font-size: .85rem; font-weight: 500; }
html body .app-summary-name { margin: 0; color: var(--app-ink) !important; font-size: 1.65rem !important; font-weight: 700 !important;
  letter-spacing: -.035em !important; line-height: 1.1 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-summary-actions { display: flex; flex-wrap: wrap; column-gap: .85rem; margin-top: .2rem; }
.app-summary-actions :is(a, button) {
  display: inline-flex; align-items: center; min-height: 1.75rem;
  padding: 0; color: var(--app-ink-2); font-size: .82rem; font-weight: 600; text-decoration: none;
}
.app-summary-actions :is(a, button):is(:hover, :focus-visible) { text-decoration: underline; }
.app-summary-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.app-summary-stat { display: grid; gap: 4px; min-width: 0; padding: 12px; border: 1px solid var(--app-line); border-radius: 18px; background: #fff;
  box-shadow: var(--app-card); color: var(--app-ink); text-decoration: none; transition: transform .1s, background .15s; }
.app-summary-stat:hover { background: #fbfcfd; }
.app-summary-stat:active { transform: scale(.98); }
.app-summary-label { color: var(--app-ink-3); font-size: .72rem; font-weight: 600; }
.app-summary-stat strong { font-size: 1rem; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* With the summary on top, "My upcoming events" is a section title, not the page title. */
#dashboard:has(> .app-summary:not([hidden])) #events-title { font-size: 1.3rem !important; letter-spacing: -.03em !important; line-height: 1.2 !important; }

/* League sign-up page (/dashboard/?schedule=league): page title, season headings and full-width cards. */
html body #dashboard.league-signup-page #schedule-title { font-size: 1.65rem !important; font-weight: 700 !important;
  letter-spacing: -.035em !important; margin: 0 0 4px !important; }
html body #dashboard.league-signup-page .league-group > h3 { font-size: 1.3rem !important; font-weight: 700 !important;
  letter-spacing: -.02em !important; margin: 18px 0 10px !important; }
html body #dashboard.league-signup-page .league-group > ul.events { padding: 0 !important; gap: 12px; grid-auto-rows: auto !important; }

/* League sign-up cards: details on the left, Team / Free agent buttons stacked on the right (shorter cards). */
html body #dashboard.league-signup-page .league-group .event.schedule-card.league-season-card {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; grid-template-rows: auto !important;
  align-items: center !important; column-gap: 16px !important; row-gap: 0 !important; padding: 13.6px !important; min-height: 0 !important; }
html body #dashboard.league-signup-page .league-group .league-details { grid-area: 1 / 1 !important; }
html body #dashboard.league-signup-page .league-group .league-signups {
  grid-area: 1 / 2 !important; grid-auto-flow: row !important; grid-template-columns: 1fr 1fr !important; width: 100% !important; justify-self: stretch !important; gap: 5px !important; align-self: stretch !important; }
html body #dashboard.league-signup-page .league-group .league-notes:empty { display: none; }
html body #dashboard.league-signup-page .league-group .league-notes { grid-area: 2 / 1 / 3 / 3 !important; }
/* Team and Free agent buttons side by side, sharing the space beside the details, names only (no price, no arrow). */
html body #dashboard.league-signup-page .league-option { min-width: 0 !important; min-height: 40px; width: 100%; padding: 8px 4px !important; line-height: 1.2 !important; display: flex !important;
  flex-direction: row !important; justify-content: center; align-items: center; gap: 0 !important; }
html body #dashboard.league-signup-page .league-option-name { font-size: .8rem !important; white-space: nowrap; }
html body #dashboard.league-signup-page .league-option-arrow { display: none !important; }
html body #dashboard.league-signup-page .league-option-price { display: none !important; }
html body #dashboard.league-signup-page .league-season-card h3 { font-size: .78rem !important; line-height: 1.25 !important; }
html body #dashboard.league-signup-page .league-season-card h3 .league-day { display: block; font-size: 1.15rem !important; }
html body #dashboard.league-signup-page .league-card-dates { font-size: .7rem !important; margin-top: 2px !important; display: flex !important; flex-direction: column !important; line-height: 1.2 !important; }
html body #dashboard.league-signup-page .league-card-start { font-size: .76rem !important; font-weight: 700 !important; color: var(--app-ink) !important; }
/* League cards show only the start date (no playoffs line). */
html body #dashboard.league-signup-page .league-card-dates > span:not(:first-child) { display: none !important; }
html body #dashboard.league-signup-page .league-card-dates { margin-top: 4px !important; }
html body #dashboard.league-signup-page .league-group .event.schedule-card.league-season-card { margin: 0 !important; }

/* League cards, calmer: one strong line (the day in navy), quiet grey details, normal-size buttons centered,
   yellow only on Team. */
html body #dashboard.league-signup-page .league-season-card h3 { color: #6b7785 !important; font-size: .8rem !important; font-weight: 500 !important; }
html body #dashboard.league-signup-page .league-season-card h3 .league-day { color: var(--app-ink) !important; font-size: 1.1rem !important; font-weight: 700 !important; margin-bottom: 2px; }
html body #dashboard.league-signup-page .league-card-dates, html body #dashboard.league-signup-page .league-card-start { font-size: .8rem !important; font-weight: 500 !important; color: #6b7785 !important; }
html body #dashboard.league-signup-page .league-card-dates { margin-top: 0 !important; }
html body #dashboard.league-signup-page .league-group .league-signups { align-self: center !important; gap: 6px !important; }
html body #dashboard.league-signup-page .league-option { min-height: 43px; border-radius: 12px !important; }
html body #dashboard.league-signup-page .league-option:not(.is-team) { background: #fff !important; border-color: #d5dbe0 !important; color: var(--app-ink) !important; }
/* Bigger button names; "Free Agent" capitalized and on two lines. */
html body #dashboard.league-signup-page .league-option { padding: 4px 6px !important; }
html body #dashboard.league-signup-page .league-option-name { font-size: .8rem !important; line-height: 1.2 !important; text-transform: capitalize; text-align: center; }
html body #dashboard.league-signup-page .league-option:not(.is-team) .league-option-name { white-space: normal !important; width: min-content; }

/* Teams page: no divider line under the last section. */
html body #teams-panel.panel { border: 0 !important; box-shadow: none !important; }

/* Roster pop-up: no "Player roster" label above the event name. */
html body .event-roster-kicker { display: none !important; }

/* Shop: every Buy button (including the gift card link) is the schedule's Book button —
   same size, yellow, no glow at rest; darker with the glow only on hover. */
html body .phone-store.phone-store.phone-store article :is(button, a.shop-buy-link) {
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  box-sizing: border-box !important; min-width: 4.6rem !important; height: 2.5rem !important; min-height: 2.5rem !important;
  padding: 0 .9rem !important; border: 0 !important; border-radius: 16px !important; background: #ffd333 !important;
  color: #172523 !important; font-size: .88rem !important; font-weight: 700 !important; line-height: 1 !important;
  text-decoration: none !important; box-shadow: none !important; transition: background .15s, box-shadow .15s, transform .1s; }
html body .phone-store.phone-store.phone-store article :is(button, a.shop-buy-link):is(:hover, :focus-visible) {
  background: #f2c522 !important; box-shadow: 0 4px 12px rgb(242 197 34 / .35), 0 1px 2px rgb(16 36 60 / .08) !important; }
html body .phone-store.phone-store.phone-store article :is(button, a.shop-buy-link):active { transform: scale(.98); }

/* My account panel: no card frame, like the teams panel. */
html body #account-panel.panel { border: 0 !important; box-shadow: none !important; background: transparent !important; }

/* Menu sign out: quiet text link at the bottom, above the social icons. */
html body .site-mobile-links > .site-mobile-sign-out {
  align-self: flex-start; margin: auto 0 0 1rem; padding: .6rem 0; border: 0; background: none;
  color: var(--app-ink-3, #5b6b7d); font: 600 1rem/1.25 "Space Grotesk", system-ui, sans-serif; cursor: pointer;
}
html body .site-mobile-links > .site-mobile-sign-out:hover { color: #a3352b; }
html body .site-mobile-links > .site-mobile-sign-out[hidden] { display: none; }
html body .site-mobile-links > .site-mobile-sign-out:not([hidden]) + .site-mobile-social { margin-top: 0; }

/* Sign out as an icon + label. */
html body .site-mobile-links > .site-mobile-sign-out:not([hidden]) {
  display: inline-flex; align-items: center; gap: .55rem; margin-left: .5rem; padding: .55rem .9rem .55rem .7rem;
  border-radius: 14px; color: #10243c; font-size: .95rem;
}
html body .site-mobile-links > .site-mobile-sign-out svg { width: 1.3rem; height: 1.3rem; flex: none; transform: scaleX(-1); }
html body .site-mobile-links > .site-mobile-sign-out:hover { background: #f4f6f8; color: #a3352b; }

/* Class Passes info icon: smaller and tucked closer to the heading. */
html body .phone-store .shop-info-trigger { width: 1.1rem; height: 1.1rem; margin-inline-start: .225rem; font-size: .6rem; }
html body .phone-store .shop-info-trigger > span { width: .8rem; height: .8rem; }

/* Cancel buttons react on hover like Book: soft red fill, stronger border and a soft red glow. */
html body :is(.phone .row .book.cancel-booked, #dashboard .event .cancel-event:enabled, .roster-booked .booked-cancel):is(:hover, :focus-visible) {
  background: #fdeeec !important; border-color: #d99b95 !important; color: #7a2019 !important;
  box-shadow: 0 4px 12px rgb(163 53 43 / .18), 0 1px 2px rgb(16 36 60 / .08) !important;
}
html body :is(.phone .row .book.cancel-booked, #dashboard .event .cancel-event:enabled, .roster-booked .booked-cancel):active { transform: scale(.98); }

/* Account & Billing: Make a payment, styled like the yellow Book button. */
html body #account-panel .account-pay {
  display: flex; align-items: center; justify-content: center; min-height: 3rem; margin-top: 20px;
  border-radius: 16px; background: #ffd333; color: #10243c; font-weight: 700; font-size: 1rem; text-decoration: none;
}
html body #account-panel .account-pay:is(:hover, :focus-visible) {
  background: #f2c522; box-shadow: 0 4px 12px rgb(242 197 34/.35), 0 1px 2px rgb(16 36 60/.08);
}
html body #account-panel .account-pay:active { transform: scale(.98); }
/* Divider above Make a payment, matching the lines between account sections. */
html body #account-panel .account-pay { position: relative; margin-top: 33px; }
html body #account-panel .account-pay::before { content: ""; position: absolute; left: 0; right: 0; top: -17px; border-top: 1px solid rgb(213 223 217); }
/* Make a payment section: divider, "Balance due" row, then the button. */
html body #account-panel .account-pay-section { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgb(213 223 217); }
html body #account-panel .account-pay-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
html body #account-panel .account-pay-label { font-weight: 700; }
html body #account-panel .account-pay-amount { font-weight: 700; }
html body #account-panel .account-pay-section.is-due .account-pay-amount { color: #8f2923; }
html body #account-panel .account-pay-section .account-pay { margin-top: 12px; }
html body #account-panel .account-pay-section .account-pay::before { content: none; }
/* Make a payment is muted and not clickable when nothing is owed (same look as disabled yellow buttons). */
html body #account-panel .account-pay[aria-disabled="true"] {
  background: #f3e7b5 !important; color: #8a8160 !important; box-shadow: none !important; cursor: default; pointer-events: none;
}
/* Account & Billing (phone): the credit row shows our credit-only copy; the raw balance and its small pay link are hidden. */
html body #account-panel:has(#account-credit-display) :is(#account-balance, #account-payment) { display: none !important; }
html body #account-panel #account-credit-display { margin: 0; color: inherit; }

/* Account pop-up (header chip): same card look as the event pop-up, roomier rows with dividers. */
html body .phone-account-preview {
  right: 12px; width: min(340px, calc(100% - 24px)); padding: 16px 18px 6px;
  border: 1px solid var(--app-line); border-radius: 20px; background: #fff; color: var(--app-ink, #10243c);
  box-shadow: 0 12px 32px rgb(16 36 60 / .14), 0 2px 6px rgb(16 36 60 / .06);
  font: .92rem/1.4 "Space Grotesk", system-ui, sans-serif;
}
html body .phone-account-preview > #profile-panel, html body .phone-account-preview .phone-linked-profile:not([hidden]) {
  margin: 0 0 4px; padding: 0 0 14px; border-bottom: 1px solid var(--app-line);
}
html body .phone-account-preview dl { gap: 0; }
html body .phone-account-preview :is(dt, dd) { display: flex; align-items: center; min-height: 44px; padding: 0; border-top: 1px solid var(--app-line); }
html body .phone-account-preview :is(dt, dd):is(:first-of-type) { border-top: 0; }
html body .phone-account-preview dt { gap: 6px; font-weight: 600; }
html body .phone-account-preview dd { justify-content: flex-end; color: #4b5b6b; }
html body .phone-account-preview dd.is-due { color: #8f2923; font-weight: 700; }
html body .phone-account-preview .phone-account-add {
  display: inline-grid; place-items: center; width: 22px; min-width: 22px; height: 22px; min-height: 22px; margin: 0;
  border-radius: 50%; background: #f1f3f5; color: var(--app-ink, #10243c); font: 600 .95rem/1 "Space Grotesk", system-ui, sans-serif;
}
html body .phone-account-preview .phone-account-add:is(:hover, :focus-visible) { background: #ffd333; text-decoration: none; }
html body .phone-account-preview .profile-actions { gap: 4px 14px; margin-top: 4px; }
html body .phone-account-preview .profile-actions :is(a, button) { font-size: .85rem; font-weight: 600; color: var(--app-ink, #10243c) !important; }
/* Sign out gets the same door-and-arrow icon as the menu. */
html body .phone-account-preview :is(#sign-out, .profile-actions > button:last-of-type) { display: inline-flex; align-items: center; gap: 5px; }
html body .phone-account-preview :is(#sign-out, .profile-actions > button:last-of-type)::before {
  content: ""; width: 15px; height: 15px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h3'/%3E%3Cpath d='M14 7l5 5-5 5M19 12H9'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h3'/%3E%3Cpath d='M14 7l5 5-5 5M19 12H9'/%3E%3C/svg%3E") center / contain no-repeat;
}
html body .phone-account-preview :is(#sign-out, .profile-actions > button:last-of-type):hover { color: #a3352b !important; }
/* Keep Edit profile · Account · Sign out on one line. */
html body .phone-account-preview .profile-actions { flex-wrap: nowrap !important; gap: 12px; white-space: nowrap; }
/* Account pop-up: narrower; tighter action links so they stay on one line. */
html body .phone-account-preview { width: min(316px, calc(100% - 24px)); }
html body .phone-account-preview .profile-actions { gap: 8px; }
html body .phone-account-preview .profile-actions :is(a, button) { font-size: .8rem; }
/* Account pop-up: Sign out is plain text here (no icon). */
html body .phone-account-preview :is(#sign-out, .profile-actions > button:last-of-type)::before { content: none !important; }
/* Account pop-up: name bubble spans the available width with more inner padding, so the name never
   runs into the edge or the chevron (iPhone Safari sizes selects differently from desktop). */
html body .phone-account-preview .profile-switcher { width: 100% !important; }
html body .phone-account-preview #profile-choice {
  box-sizing: border-box; width: 100% !important; max-width: 100%; min-height: 44px;
  padding: 6px 36px 6px 12px !important; font-size: 1.15rem !important; text-overflow: ellipsis;
}

/* Sign-in and create-account panels: no card frame, like Account & Billing. */
html body main :is(#login, #registration-view).panel.panel.panel.panel:not(#no-such-id) { border: 0 !important; box-shadow: none !important; background: transparent !important; }
/* Sign-in / create account: sit higher under the header, with more room between the title and the first field. */
html body main :is(#login, #registration-view).panel.panel.panel.panel:not(#no-such-id) { padding-top: 4px !important; }
html body main :is(#login, #registration-view) .login-header { margin-bottom: 28px !important; }

/* Phone sign-in layout: welcome block on top, form in the middle, "New to QBK? Create an account" at the bottom. */
html body main #login.panel.panel.panel.panel:not(#no-such-id):not([hidden]) {
  display: flex; flex-direction: column; padding-bottom: 8px !important;
  min-height: calc(var(--phone-height, 100dvh) - 72px - 26px - var(--bottom-nav-height, 86px) - 8px);
}
#login .signin-welcome { margin: 18px 0 30px; }
#login .signin-welcome h1 { margin: 0 0 8px; color: var(--app-ink); font: 700 1.9rem/1.1 "Space Grotesk", system-ui, sans-serif; letter-spacing: -.035em; }
#login .signin-welcome p { margin: 0; color: #5b6b7d; font-size: 1rem; line-height: 1.45; }
/* "Sign in to DaySmart" row keeps its original title and logo size. */
html body main #login .login-header { align-items: center; margin-bottom: 14px !important; }
/* Create an account: a plain line pinned to the bottom of the screen. */
html body main #login .create-account { margin: 0 !important; padding-top: 18px; text-align: center; color: #5b6b7d; font-size: .95rem; }
html body main #login button#create-account {
  display: inline; width: auto; min-height: 44px; margin: 0; padding: 0 2px; border: 0 !important; border-radius: 0 !important;
  background: none !important; box-shadow: none !important; color: var(--app-ink) !important; font: inherit; font-weight: 700 !important;
  text-decoration: underline !important; text-underline-offset: 3px; cursor: pointer;
}
html body main #login button#create-account:hover { background: none !important; color: #000 !important; }
/* Signed out: DASH logo centered in the open space under "Create an account" instead of beside the title. */
#login .signin-dash-bottom { display: grid; flex: 1; place-items: center; min-height: 80px; }
#login .signin-dash-bottom img { display: block; width: auto; height: 56px; }
html body main #login .login-header img { display: none !important; }
/* "Sign in to DaySmart": a bit smaller than the welcome title. */
html body main #login #login-title { font-size: 1.2rem !important; }
/* Title-to-Email gap back to 14px (the form's first label already carries that margin). */
html body main #login .login-header { margin-bottom: 0 !important; }
/* "Powered by" above the DASH logo. */
#login .signin-dash-stack { display: grid; justify-items: center; gap: 6px; }
#login .signin-powered { color: #8a939c; font-size: .8rem; font-weight: 500; letter-spacing: .02em; }

/* Same gap above Sign in as between the email box and the Password label. */
html body main #login #login-form #sign-in { margin-top: 14.4px !important; }

/* 16px from the Sign in button to the "New to QBK?" text (the link's tap area adds ~12px). */
html body main #login .create-account { padding-top: 4px; }

/* Sign-in fits the screen on shorter phones: tighten spacing and shrink the logo instead of running under the tab bar. */
@media (max-height: 760px) {
  #login .signin-welcome { margin: 4px 0 14px; }
  html body main #login #login-form label { margin-top: 10px !important; }
  html body main #login #login-form #sign-in { margin-top: 10px !important; }
  #login .signin-welcome h1 { font-size: 1.65rem; margin-bottom: 6px; }
  #login .signin-welcome p { font-size: .95rem; line-height: 1.4; }
  html body main #login .create-account { padding-top: 0; }
  #login .signin-dash-bottom { min-height: 0; padding-top: 8px; }
  #login .signin-dash-bottom img { height: 40px; }
  #login .signin-dash-stack { gap: 4px; }
}
@media (max-height: 620px) {
  #login .signin-welcome { margin: 0 0 12px; }
  #login .signin-welcome h1 { font-size: 1.45rem; }
  #login .signin-welcome p { display: none; }
  #login .signin-dash-bottom img { height: 32px; }
  #login .signin-powered { font-size: .72rem; }
  #login .signin-dash-stack { grid-auto-flow: column; align-items: center; gap: 8px; }
  html body main #login #login-form input { min-height: 40px !important; height: 40px !important; }
  html body main #login #login-form #sign-in { min-height: 44px !important; height: 44px !important; }
  html body main #login .login-header { margin-top: 0 !important; }
}

/* Sign in + "New to QBK?" centered between the password box and "Powered by" (spacers added in site-menu.js). */
html body main #login #login-form { display: contents; }
html body main #login #login-form #sign-in.primary { margin-top: 0 !important; }
html body main #login.panel .create-account.create-account { padding-top: 4px; }
#login .signin-gap { flex: 1 1 14.4px; }
#login .signin-gap.is-end { flex: 2 1 0; }
#login .signin-dash-bottom.signin-dash-bottom { flex: none; min-height: 0; }
@media (max-height: 760px) {
  #login .signin-gap { flex-basis: 10px; }
  html body main #login.panel .create-account.create-account { padding-top: 0; }
}
/* The link's tap area adds ~12.5px under the text; don't count it when centering. */
html body main #login.panel .create-account.create-account { margin-bottom: -12.5px !important; }
@media (max-height: 760px) { #login .signin-dash-bottom.signin-dash-bottom { padding-top: 0; } }
/* Powered by DASH centered between "New to QBK?" and the tab bar: all three gaps share the free space equally. */
#login .signin-gap.is-end { flex: 1 1 14.4px; }
/* The panel's bottom padding + gap above the tab bar add ~28px under the last spacer; take them back so the gaps match. */
#login .signin-gap.is-end { margin-bottom: -28.4px; }
@media (max-height: 760px) { #login .signin-gap.is-end { flex-basis: 10px; } }
/* Sign in stays close to the password box (same gap as between the fields); only Powered by DASH floats in the open space. */
#login #login-form > .signin-gap { flex: 0 0 14.4px; }
@media (max-height: 760px) { #login #login-form > .signin-gap { flex-basis: 10px; } }

/* League sign-up: the season heading ("2027 Winter Leagues") stays pinned under the header while its cards scroll, like the dates on the schedule. */
html body #dashboard.league-signup-page .league-group > h3 {
  position: sticky; top: 72px; z-index: 4;
  margin: 10px -16px 2px !important; padding: 8px 16px !important;
  background: #fff;
}

/* Account pop-up on pages other than the dashboard: same look as the dashboard pop-up
   (photo with a ring and camera badge, full-width name dropdown with a chevron). */
html body .phone-account-preview .phone-linked-profile:not([hidden]) { gap: 14.4px; }
html body .phone-account-preview .phone-linked-profile .profile-details { flex: 1; min-width: 0; }
html body .phone-account-preview .phone-linked-profile-photo {
  position: relative; overflow: visible; width: 52px; height: 52px; border: 0;
  background: #effbf5; box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgb(213 223 217);
}
html body .phone-account-preview .phone-linked-profile-photo img { border-radius: 50%; }
html body .phone-account-preview .phone-linked-profile-photo::after {
  content: ""; position: absolute; right: -2.4px; bottom: -2.4px; width: 18.4px; height: 18.4px; border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23205f4d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l2-3h6l2 3h3v11H4z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E") center / 10.9px auto no-repeat;
  box-shadow: 0 0 0 1px rgb(213 223 217), 0 1px 3px rgb(0 0 0 / .12);
}
html body .phone-account-preview .phone-linked-profile-switch { position: relative; width: 100%; }
html body .phone-account-preview .phone-linked-profile-switch::after {
  content: ""; position: absolute; right: 13.6px; top: 50%; width: 6.7px; height: 6.7px; pointer-events: none;
  border-right: 1.5px solid #536861; border-bottom: 1.5px solid #536861; transform: translateY(-75%) rotate(45deg);
}
html body .phone-account-preview .phone-linked-profile-switcher {
  appearance: none; -webkit-appearance: none; box-sizing: border-box; width: 100%; max-width: 100%; min-height: 44px; margin: 0;
  padding: 6px 36px 6px 12px; border: 1px solid rgb(223 229 234); border-radius: 14px; background: #fff;
  box-shadow: 0 1px 2px rgb(16 36 60 / .04); color: #10243c; text-overflow: ellipsis;
  font: 700 1.15rem/1.25 "Space Grotesk", "Segoe UI", system-ui, sans-serif;
}

/* League cards open a details pop-up when tapped. */
html body #dashboard.league-signup-page .league-season-card { cursor: pointer; transition: box-shadow .15s, transform .15s; }
html body #dashboard.league-signup-page .league-season-card:active:not(:has(.league-option:active)) { transform: scale(.99); }
html body #dashboard.league-signup-page .league-season-card:focus-visible { outline: 2px solid rgb(16 36 60 / .35); outline-offset: 2px; }
.league-info-dialog .league-info-body { padding: 14px 18px 4px; overflow: auto; }
.league-info-dialog .league-info-summary { margin: 0 0 12px; color: #6b7785; font-size: .85rem; line-height: 1.4; }
.league-info-dialog .league-info-list { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0; font-size: .9rem; }
.league-info-dialog .league-info-list dt { color: #6b7785; font-weight: 500; }
.league-info-dialog .league-info-list dt, .league-info-dialog .league-info-list dd { white-space: nowrap; }
.league-info-dialog .league-info-list dd { margin: 0; min-width: 0; color: var(--app-ink, #10243c); font-weight: 600; text-align: right; }
.league-info-dialog .league-info-note { display: block; margin-top: 2px; color: #6b7785; font-size: .78rem; font-weight: 500; }
.league-info-dialog .league-info-notes { margin: 16px 0 6px; padding-top: 12px; border-top: 1px solid var(--app-line, #e9edf0); }
.league-info-dialog .league-info-notes h3 { margin: 0 0 6px; color: var(--app-ink, #10243c); font-size: .85rem; font-weight: 700; }
.league-info-dialog .league-info-notes p { margin: 0 0 6px; color: #6b7785; font-size: .85rem; line-height: 1.4; }
.league-info-dialog .league-info-actions { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px 18px 18px; }
.league-info-dialog .league-info-actions[hidden] { display: none !important; }
.league-info-dialog .league-option { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 48px;
  padding: 6px 8px; border: 1px solid #d5dbe0; border-radius: 12px; background: #fff; color: var(--app-ink, #10243c); text-decoration: none; font-weight: 700; }
.league-info-dialog .league-option.is-team { background: var(--app-yellow, #ffd333); border-color: var(--app-yellow, #ffd333); }
.league-info-dialog .league-option-name { font-size: .95rem; }
.league-info-dialog .league-option-price { font-size: .75rem; font-weight: 500; opacity: .75; }
.league-info-dialog .league-option-name { text-transform: capitalize; }
.league-info-dialog .league-info-line { display: block; }
.league-info-dialog .league-info-rules { display: inline-flex; align-items: center; gap: 3px; color: var(--app-ink, #10243c); font-weight: 600; text-decoration: none; }
.league-info-dialog .league-info-rules::after { content: ""; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor;
  transform: rotate(45deg); opacity: .6; }
.league-info-dialog .league-info-list { padding-bottom: 4px; }
/* League cards: "starts" in lowercase grey, only the date bold in ink. */
html body #dashboard.league-signup-page .league-card-dates > span:first-child { text-transform: lowercase; }
html body #dashboard.league-signup-page .league-card-dates .league-card-start { text-transform: none; font-weight: 700 !important; color: var(--app-ink) !important; }
/* League sign-up page (/league/): the season card matches the Join a League pop-up. */
html body .session-panel.league-info-card { padding: 0 !important; overflow: hidden; }
html body .session-panel.league-info-card > :not(.league-info-header):not(.league-info-body) { display: none !important; }
html body .session-panel.league-info-card .league-info-header { padding: 18px 18px 14px; border-bottom: 1px solid #eef1f3; }
html body .session-panel.league-info-card .league-info-header h2 { margin: 0; font-size: 1.25rem; line-height: 1.2; font-weight: 700; color: var(--app-ink, #10243c) !important; }
html body .session-panel.league-info-card .league-info-season { margin: 4px 0 0; font-size: .82rem; color: #6b7785 !important; }
html body .session-panel.league-info-card .league-info-body { padding: 14px 18px 18px; }
html body .session-panel.league-info-card .league-info-list dt { color: #6b7785 !important; }
html body .session-panel.league-info-card .league-info-list dd, html body .session-panel.league-info-card .league-info-list dd * { color: var(--app-ink, #10243c) !important; }
/* Signed out (the sign-in card is showing): the season card is just its top part — title and season. */
/* League sign-up season card: collapsed by default; the title row toggles the details, with a chevron. */
html body .league-info-card .league-info-header { position: relative; padding-right: 44px !important; cursor: pointer; }
html body .league-info-card .league-info-header::after { content: ""; position: absolute; right: 22px; top: 50%; width: 8px; height: 8px;
  border: solid #6b7785; border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); }
html body .league-info-card:not(.is-collapsed) .league-info-header::after { transform: translateY(-30%) rotate(-135deg); }
html body .league-info-card.is-collapsed .league-info-body { display: none !important; }
html body .league-info-card.is-collapsed .league-info-header { border-bottom: 0; }
/* Checkout pages (league sign-up, event checkout, court rental): no Sign out link — the menu has one. */
html body main #sign-out-area, html body main #switch-account { display: none !important; }
/* League sign-up, signed out: tighter, no step tabs, so Back + season title + sign-in fit above the tab bar
   (dashboard-summary.js scales it down further on short screens). */
/* Step tabs show once the page knows where you are (sign in, review or join), never while it's still loading. */
html body main:has(#booking-layout[data-event-kind="league"]):not(:has(#sign-in:not([hidden]), #review:not([hidden]), #join:not([hidden]))) #steps { display: none !important; }
html body main:has(#booking-layout[data-event-kind="league"] #sign-in:not([hidden])) #steps { margin: 0 0 10px !important; }
html body main:has(#booking-layout[data-event-kind="league"] #sign-in:not([hidden])) { padding-top: 12px !important; padding-bottom: 0 !important; }
html body main:has(#booking-layout[data-event-kind="league"] #sign-in:not([hidden])) a.back { margin-bottom: 10px !important; }
html body #booking-layout[data-event-kind="league"]:has(#sign-in:not([hidden])) { gap: 10px !important; }
html body #booking-layout[data-event-kind="league"]:has(#sign-in:not([hidden])) .league-info-header { padding: 14px 18px 12px !important; }
/* League sign-up (/league/): nothing flashes before it's ready. No "League sign-up" title (an invite link keeps
   "Join a team"); the season card shows only in its final form, once its title is known. */
html:not(.is-join-page) main:has(#booking-layout[data-event-kind="league"]) #page-heading { display: none !important; }
html:not(.is-join-page) main:has(#booking-layout[data-event-kind="league"]) #page-heading + .steps { margin-top: 16px !important; }
html body #booking-layout[data-event-kind="league"] .session-panel:not(.is-ready) { display: none !important; }
html body #booking-layout[data-event-kind="league"] .session-panel > :not(.league-info-header):not(.league-info-body) { display: none !important; }
/* League sign-up review (phone): team sign-up in two screens — Team, then Pay. */
#league-form[data-qbk-step="team"] :is(.qbk-team-recap, .payment-choice, .cards-header, #card-picker, #add-card-cta, #card-status, #summary, .league-actions, #league-status) { display: none !important; }
#league-form[data-qbk-step="pay"] :is(#previous-field, label[for="team-name"], #team-name, #comments-field, .qbk-next-row) { display: none !important; }
#league-form:not([data-qbk-step]) :is(.qbk-next-row, .qbk-team-recap) { display: none !important; }
#review:has(#league-form[data-qbk-step="pay"]) #signup-intro { display: none !important; }
.qbk-next-row { margin-top: 18px; }
.qbk-next-row .qbk-next { width: 100%; }
.qbk-team-recap { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: rgb(16 36 60 / .05); }
.qbk-team-recap-label { color: #6b7785; font-size: .85rem; }
.qbk-team-recap strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qbk-team-recap .text-button { font-size: .9rem !important; }
/* Comments: closed to a link until tapped. */
#comments-field.is-closed > :not(.qbk-add-comment) { display: none !important; }
#comments-field:not(.is-closed) > .qbk-add-comment { display: none !important; }
#comments-field .qbk-add-comment { margin-top: 14px; padding: 0; font-size: .95rem !important; }
/* League sign-up, every step: the tighter page spacing used on sign-in. */
html body main:has(#booking-layout[data-event-kind="league"]) { padding-top: 12px !important; padding-bottom: 0 !important; }
html body main:has(#booking-layout[data-event-kind="league"]) a.back { margin-bottom: 6px !important; }
html body main:has(#booking-layout[data-event-kind="league"]) #steps { margin-top: 0 !important; margin-bottom: 10px !important; }
html body #booking-layout[data-event-kind="league"] { gap: 10px !important; }
html body #booking-layout[data-event-kind="league"] .league-info-header { padding: 14px 18px 12px !important; }
/* Pay screen: compact — the team box is the title, one-line payment options, tighter totals. */
#review:has(#league-form[data-qbk-step="pay"]) #review-heading { display: none !important; }
#league-form[data-qbk-step="pay"] .qbk-team-recap { margin-top: 0; padding: 8px 12px; }
#league-form[data-qbk-step="pay"] .payment-choice { margin-top: 12px !important; }
#league-form[data-qbk-step="pay"] .payment-option { padding: 8px 10px !important; margin-top: .35rem !important; }
#league-form[data-qbk-step="pay"] .payment-option strong { font-size: .95rem; }
#league-form[data-qbk-step="pay"] .payment-option span { font-size: .75rem; line-height: 1.25; }
#league-form[data-qbk-step="pay"] .cards-header { margin-top: 12px !important; }
#league-form[data-qbk-step="pay"] #summary { margin-top: 12px !important; padding-top: 8px !important; gap: .15rem 1rem !important; line-height: 1.35; }
#league-form[data-qbk-step="pay"] #summary .grand { margin-top: .2rem !important; padding-top: .35rem !important; }
#league-form[data-qbk-step="pay"] .league-actions { margin-top: 12px !important; }

/* iOS review fixes: on the league page, fields keep 16px text and taps stay 44pt even when the page scales to fit
   (--qbk-fit is the page's scale, set by dashboard-summary.js). */
html body main:has(#booking-layout[data-event-kind="league"]) :is(input:not([type="radio"]):not([type="checkbox"]), select, textarea) { font-size: calc(16px / var(--qbk-fit, 1)) !important; min-height: calc(44px / var(--qbk-fit, 1)) !important; }
html body main:has(#booking-layout[data-event-kind="league"]) :is(button.primary, button[type="submit"]) { min-height: calc(44px / var(--qbk-fit, 1)) !important; }
html body main:has(#booking-layout[data-event-kind="league"]) :is(a.back, #create-account, .qbk-add-comment, .qbk-team-recap .text-button) { display: inline-flex !important; align-items: center; min-height: calc(44px / var(--qbk-fit, 1)) !important; }
html body main:has(#booking-layout[data-event-kind="league"]) a.back { margin-top: -8px !important; margin-bottom: -2px !important; }
html body main:has(#booking-layout[data-event-kind="league"]) .qbk-team-recap .text-button { min-width: calc(44px / var(--qbk-fit, 1)); justify-content: flex-end; margin: -10px 0 !important; }
html body main:has(#booking-layout[data-event-kind="league"]) #comments-field .qbk-add-comment { margin-top: 4px !important; }
.qbk-team-recap { align-items: center; }
/* Readable grey (4.5:1+) and no text under 12px. */
main ol.steps > li { color: #5b6573 !important; font-size: calc(13px / var(--qbk-fit, 1)) !important; }
main ol.steps > li:is([aria-current], .current, .active, [data-current]) { color: var(--app-ink) !important; }
.qbk-team-recap-label { color: #5b6573; font-size: calc(13px / var(--qbk-fit, 1)); }
#league-form[data-qbk-step="pay"] .payment-option span { font-size: calc(12px / var(--qbk-fit, 1)); }
/* Past steps aren't buttons; the Team tab on the Pay screen is, with a 44pt tap area. */
main ol.steps > li { cursor: default; }
main ol.steps > li.qbk-step-link { position: relative; cursor: pointer; }
main ol.steps > li.qbk-step-link::after { content: ""; position: absolute; inset: calc(-8px / var(--qbk-fit, 1)) -4px; }
/* League list: Team and Free Agent buttons at least 44pt tall. */
html body main .league-signups .league-option { min-height: 44px !important; }
/* Win back the room the 44pt taps take: Back overlaps the gap above the tabs; Next sits closer. */
html body main:has(#booking-layout[data-event-kind="league"]) a.back { margin-top: -10px !important; margin-bottom: -10px !important; }
html body main:has(#booking-layout[data-event-kind="league"]) .qbk-next-row { margin-top: 6px !important; }
html body main:has(#booking-layout[data-event-kind="league"]) #comments-field .qbk-add-comment { margin-top: 0 !important; }
/* League page: content waits (hidden) until it has loaded and been sized once, then appears in place.
   dashboard-summary.js adds .qbk-settled; the animation shows it anyway after 4s if that never happens. */
@keyframes qbk-reveal { to { visibility: visible; } }
html:not(.qbk-settled) body main:has(#booking-layout[data-event-kind="league"]) { visibility: hidden; animation: qbk-reveal 0s 4s forwards; }
/* A small spinner while the league page waits. */
@keyframes qbk-spin { to { transform: rotate(360deg); } }
html:not(.qbk-settled) body main:has(#booking-layout[data-event-kind="league"])::before { content: ""; position: fixed; left: 50%; top: 42%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border: 3px solid rgb(16 36 60 / .12); border-top-color: rgb(16 36 60 / .55); border-radius: 50%; visibility: visible; animation: qbk-spin .8s linear infinite; z-index: 1; }
/* Notes: once opened, the "+ Add note" link goes away and the box sits right under Team name. */
html body main:has(#booking-layout[data-event-kind="league"]) #comments-field:not(.is-closed) > .qbk-add-comment { display: none !important; }
html body main:has(#booking-layout[data-event-kind="league"]) #comments-field:not(.is-closed) > label { margin-top: 12px !important; }
html body main:has(#booking-layout[data-event-kind="league"]) #comments-field:not(.is-closed) ~ .qbk-next-row { margin-top: 16px !important; }
/* Next sits just under "+ Add note" (the link's 44pt tap area already gives it room). */
html body main:has(#booking-layout[data-event-kind="league"]) .qbk-next-row .qbk-next { margin-top: 0 !important; }
html body main:has(#booking-layout[data-event-kind="league"]) #comments-field.is-closed ~ .qbk-next-row { margin-top: 4px !important; }
/* Short phones (SE-size and similar): tighter spacing on the league sign-up so each step fits above the tab bar
   before the page has to scale down. */
@media (max-height: 760px) {
  html body main:has(#booking-layout[data-event-kind="league"]) { padding-top: 6px !important; }
  html body main:has(#booking-layout[data-event-kind="league"]) #steps { margin-bottom: 6px !important; }
  html body main:has(#booking-layout[data-event-kind="league"]) #booking-layout { gap: 6px !important; }
  html body main:has(#booking-layout[data-event-kind="league"]) .league-info-card .league-info-header { padding-top: 10px !important; padding-bottom: 8px !important; }
  html body main:has(#booking-layout[data-event-kind="league"]) #review { padding-top: 12px !important; padding-bottom: 12px !important; }
  #league-form[data-qbk-step="pay"] .payment-choice,
  #league-form[data-qbk-step="pay"] .cards-header,
  #league-form[data-qbk-step="pay"] #summary,
  #league-form[data-qbk-step="pay"] .league-actions { margin-top: 8px !important; }
  #league-form[data-qbk-step="pay"] .payment-option { padding-top: 6px !important; padding-bottom: 6px !important; }
  #league-form[data-qbk-step="pay"] #summary { padding-top: 6px !important; line-height: 1.25; }
  #league-form[data-qbk-step="pay"] .qbk-team-recap { padding-top: 4px; padding-bottom: 4px; }
}
/* Join a League list: spacing tightens only as much as the screen needs (--qbk-squeeze, 0 = normal,
   1 = tightest, set by dashboard-summary.js), so the last league sits just above the tab bar. */
html body main:has(#schedule .league-season-card) #schedule { padding-top: calc(16px - 6px * var(--qbk-squeeze, 0)) !important; }
html body main:has(#schedule .league-season-card) #schedule-days .league-group { margin-top: calc(13.6px - 7.6px * var(--qbk-squeeze, 0)) !important; }
html body main:has(#schedule .league-season-card) #schedule-days .league-group > h3 { margin-top: calc(10px - 6px * var(--qbk-squeeze, 0)) !important; }
html body main:has(#schedule .league-season-card) #schedule-days ul.events { margin-top: calc(7.2px - 3.2px * var(--qbk-squeeze, 0)) !important; gap: calc(12px - 4px * var(--qbk-squeeze, 0)) !important; }
html body main:has(#schedule .league-season-card) .league-season-card { padding-top: calc(13.6px - 5.6px * var(--qbk-squeeze, 0)) !important; padding-bottom: calc(13.6px - 5.6px * var(--qbk-squeeze, 0)) !important; }
html body main:has(#schedule .league-season-card) .league-signups .league-option { min-height: calc(44px / var(--qbk-fit, 1)) !important; }
/* League list: the level line ("Recreational · 6x6") stays on one line so every card is the same height. */
html body main .league-season-card .league-details h3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Signed out: "Sign in" in the header where the profile chip goes. */
html body .site-header .site-account.qbk-sign-in { display: inline-flex !important; align-items: center; justify-content: center; width: auto !important; height: 40px !important; min-width: 44px;
  padding: 0 16px !important; border: 1px solid rgb(16 36 60 / .16) !important; border-radius: 20px !important; background: #fff !important; box-shadow: none !important;
  color: var(--app-ink, #10243c) !important; font: 600 .95rem/1 "Space Grotesk", system-ui, sans-serif !important; text-decoration: none !important; }
html body .site-header .site-account.qbk-sign-in::before, html body .site-header .site-account.qbk-sign-in::after { display: none !important; }
html body .site-header .site-account.qbk-sign-in > :not(.site-account-sign-in) { display: none !important; }
/* Sign-in pop-up (from the header's Sign in button). */
.qbk-sign-in-dialog { width: min(360px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 22px; background: #fff;
  box-shadow: 0 18px 50px rgb(16 36 60 / .25); color: #10243c; font-family: "Space Grotesk", system-ui, sans-serif; }
.qbk-sign-in-dialog::backdrop { background: rgb(16 36 60 / .35); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.qbk-sign-in-form { display: flex; flex-direction: column; padding: 18px 20px 14px; }
.qbk-sign-in-head { display: flex; align-items: center; justify-content: space-between; margin: 0 -8px 2px 0; }
.qbk-sign-in-head h2 { margin: 0; font-size: 1.35rem; }
.qbk-sign-in-close { width: 44px; height: 44px; border: 0; background: none; color: #5b6573; font-size: 1.6rem; line-height: 1; cursor: pointer; }
.qbk-sign-in-note { margin: 0 0 12px; color: #5b6573; font-size: .95rem; }
.qbk-sign-in-form label { margin: 10px 0 6px; font-weight: 700; font-size: .95rem; }
.qbk-sign-in-form input { min-height: 44px; padding: 0 14px; border: 1px solid rgb(223 229 234); border-radius: 14px; font: 16px "Space Grotesk", system-ui, sans-serif; color: #10243c; }
.qbk-sign-in-form input:focus { outline: 2px solid rgb(16 36 60 / .25); outline-offset: 1px; }
.qbk-sign-in-error { margin: 10px 0 0; color: #b42318; font-size: .9rem; }
.qbk-sign-in-submit { min-height: 48px; margin-top: 16px; }
.qbk-sign-in-create { display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 4px; color: #10243c; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
/* No header Sign in button while the page itself is showing a sign-in form. */
html body:has(section#login:not([hidden]), section#sign-in:not([hidden])) .site-header .site-account.qbk-sign-in { display: none !important; }
/* Free agent hint stays visible above "+ Add note" (hidden by the page on team sign-ups). */
html body #comments-field.is-closed > #team-note-hint:not([hidden]) { display: block !important; margin: 14px 0 0 !important; }
/* Same 14px space above the free agent hint whether the note is open or closed. */
html body #comments-field > #team-note-hint:not([hidden]) { margin-top: 14px !important; }
/* Free agent hint reads as part of the intro: same font, no gap. */
html body #signup-intro + #team-note-hint:not([hidden]) { display: block !important; margin: 0 !important; font-size: 16px !important; line-height: 24px !important; color: rgb(82, 92, 86) !important; }
/* Intro and free agent hint flow as one paragraph. */
html body #signup-intro:has(+ #team-note-hint:not([hidden])) { display: inline !important; }
html body #signup-intro + #team-note-hint:not([hidden]) { display: inline !important; }
html body #signup-intro + #team-note-hint:not([hidden])::before { content: " "; }
html body #signup-intro + #team-note-hint:not([hidden])::after { content: ""; display: block; }
/* Inline intro loses its top margin, so the heading carries it; and a little room before "+ Add note". */
html body #review:has(> #signup-intro + #team-note-hint:not([hidden])) > #review-heading { margin-bottom: 9.6px !important; }
html body #review:has(> #signup-intro + #team-note-hint:not([hidden])) > #league-form { margin-top: 10px !important; }
/* League champion badges (from the League Winners sheet). */
html body .qbk-champ { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: #fdf1c4; color: #6b4e00; font-size: 11px; font-weight: 700; line-height: 16px; letter-spacing: 0; vertical-align: 1px; white-space: nowrap; text-transform: none; }
html body #team-roster .qbk-champ { margin-right: auto; }
html body #standings-body .qbk-champ { padding: 0 5px; }
/* Champion team page: trophy block to the right of the season, name and night. */
html body #team-header:has(> .qbk-champ-hero) { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; align-items: center; }
html body #team-header:has(> .qbk-champ-hero) > :not(.qbk-champ-hero) { grid-column: 1; }
html body #team-header > .qbk-champ-hero { grid-column: 2; grid-row: 1 / span 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 84px; padding: 10px 12px 9px; border-radius: 18px; background: linear-gradient(180deg, #fff6d6 0%, #fbe7a1 100%); border: 1px solid #f1d778; box-shadow: 0 4px 12px rgba(160, 120, 0, .14); }
html body #team-header .qbk-champ-hero-cup { font-size: 34px; line-height: 1; }
html body #team-header .qbk-champ-hero-label { color: #6b4e00; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }

/* ---- Team page in the current app look (matches Dashboard / My teams cards). ---- */
html.is-team-page body .team-header { margin: 8px 0 8px !important; }
html.is-team-page body .team-header .eyebrow { color: #6b7783 !important; font-size: 13px !important; font-weight: 600 !important; }
html.is-team-page body .team-header h1 { font-size: 26.4px !important; font-weight: 700 !important; letter-spacing: -0.924px !important; line-height: 1.15 !important; margin-top: 2px !important; }
html.is-team-page body .team-header-meta { color: #6b7783 !important; font-size: 15px !important; margin-top: 4px !important; }
html.is-team-page body .team-header-meta .team-day { color: #10243c !important; }
/* Sections sit on the page, like "My past events"; the cards are the rows inside. */
html.is-team-page body :is(.team-side-card, #team-page.panel) { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important; margin: 0 !important; }
html.is-team-page body .team-subhead { margin: 28px 0 12px !important; font-size: 20.8px !important; font-weight: 700 !important; letter-spacing: -0.624px !important; color: #10243c !important; }
html.is-team-page body #team-side > .team-side-card:first-child > .team-subhead { margin-top: 20px !important; }
html.is-team-page body #team-schedule { gap: 10px !important; margin: 0 !important; }
html.is-team-page body #team-schedule > li { grid-template-columns: 52px minmax(0, 1fr) auto !important; gap: 12.8px !important; padding: 13.6px !important; background: #fff !important; border: 1px solid #e9edf0 !important; border-radius: 20px !important; box-shadow: 0 1px 2px rgba(16, 36, 60, .05), 0 6px 20px rgba(16, 36, 60, .06) !important; }
html.is-team-page body #team-schedule > li.is-upcoming { border-color: #f1d778 !important; }
html.is-team-page body #team-schedule .game-date { background: none !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; line-height: 1 !important; }
html.is-team-page body #team-schedule .game-date strong { font-size: 20.8px !important; font-weight: 700 !important; color: #111 !important; line-height: 20.8px !important; }
html.is-team-page body #team-schedule .game-date span { font-size: 11.5px !important; font-weight: 750 !important; color: #111 !important; letter-spacing: 0 !important; line-height: 17px !important; }
html.is-team-page body #team-schedule .game-what strong { font-size: 15.7px !important; font-weight: 600 !important; color: #10243c !important; line-height: 19.6px !important; }
html.is-team-page body #team-schedule .game-what span { font-size: 12.8px !important; color: #6b7783 !important; line-height: 16px !important; }
html.is-team-page body #team-schedule .game-result { min-width: 0 !important; padding: 5px 10px !important; border-radius: 999px !important; font-size: 13px !important; font-weight: 700 !important; }
/* Standings, roster and balance each become one white card. */
html.is-team-page body :is(.standings-scroll, #team-roster, #balance-area > .league-summary) { background: #fff !important; border: 1px solid #e9edf0 !important; border-radius: 20px !important; box-shadow: 0 1px 2px rgba(16, 36, 60, .05), 0 6px 20px rgba(16, 36, 60, .06) !important; }
html.is-team-page body .standings-scroll { padding: 6px 8px !important; margin: 0 !important; }
html.is-team-page body .standings th { color: #6b7783 !important; font-size: 12px !important; }
html.is-team-page body .standings td { font-size: 14.5px !important; padding: 11px 6px !important; border-bottom-color: #eef1f3 !important; }
html.is-team-page body .standings tr:last-child td { border-bottom: 0 !important; }
html.is-team-page body .standings tr.is-ours td { background: #fff7d1 !important; color: #10243c !important; }
html.is-team-page body .standings tr.is-ours td:first-child { border-radius: 12px 0 0 12px; }
html.is-team-page body .standings tr.is-ours td:last-child { border-radius: 0 12px 12px 0; }
html.is-team-page body #team-roster { margin: 0 !important; padding: 2px 16px !important; }
html.is-team-page body #team-roster > li { padding: 12px 0 !important; border-bottom: 1px solid #eef1f3 !important; font-size: 15px !important; }
html.is-team-page body #team-roster > li:last-child { border-bottom: 0 !important; }
html.is-team-page body #balance-area > .league-summary { padding: 14px 16px !important; margin: 0 !important; }
/* Beat the generic "main .panel" card rule (it carries an ID inside :not()). */
html.is-team-page body main :is(#tab-schedule, #tab-standings, #team-page, #balance-area).panel.panel.panel.panel { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important; }
html.is-team-page body #split-list { border: 1px solid #e9edf0 !important; border-radius: 20px !important; overflow: hidden; background: #fff !important; box-shadow: 0 1px 2px rgba(16, 36, 60, .05), 0 6px 20px rgba(16, 36, 60, .06) !important; }
html.is-team-page body #split-list > li { border-left: 0 !important; border-right: 0 !important; border-top: 0 !important; border-bottom: 1px solid #eef1f3 !important; border-radius: 0 !important; }
html.is-team-page body #split-list > li:last-child { border-bottom: 0 !important; }

/* Cancel-unavailable pop-up: light card in the app's normal colors instead of the dark tooltip. */
html body .cancel-tooltip { background: #fff !important; color: #10243c !important; border: 1px solid #e9edf0 !important; border-radius: 14px !important; box-shadow: 0 1px 2px rgba(16, 36, 60, .06), 0 10px 28px rgba(16, 36, 60, .16) !important; padding: 12px 14px !important; line-height: 1.4; }
html body .cancel-tooltip .contact-note { color: #525c56 !important; }
html body .cancel-tooltip .copy-email { color: #10243c !important; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* Team page standings: your team's highlight runs edge to edge across the card. */
html.is-team-page body .standings-scroll { padding: 6px 0 !important; }
html.is-team-page body .standings :is(th, td):first-child { padding-left: 16px !important; }
html.is-team-page body .standings :is(th, td):last-child { padding-right: 16px !important; }
html.is-team-page body .standings tr.is-ours td:is(:first-child, :last-child) { border-radius: 0 !important; }

/* Team page tabs (rules-page look): one row of equal tabs in a white card; only the chosen section shows. */
html.is-team-page body .qbk-team-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; margin: 20px 0 16px; padding: 8px;
  border: 1px solid #e9edf0; border-radius: 20px; background: #fff; box-shadow: 0 1px 2px rgba(16, 36, 60, .05), 0 6px 20px rgba(16, 36, 60, .06); }
html.is-team-page body .qbk-team-tabs [role=tab] { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 36px; margin: 0;
  padding: 6px 4px; border: 0 !important; border-radius: 14px; background: none !important; box-shadow: none !important; color: #6b7785 !important;
  font: inherit; font-size: 13.5px; font-weight: 600; line-height: 1.2; text-align: center; cursor: pointer; }
html.is-team-page body .qbk-team-tabs [role=tab][hidden] { display: none; }
html.is-team-page body .qbk-team-tabs [role=tab][aria-selected="true"] { background: rgba(16, 36, 60, .08) !important; color: #10243c !important; font-weight: 700; }
html.is-team-page body:has(.qbk-team-tabs) :is(#schedule-heading, #standings-heading, #tab-roster > .team-subhead, #balance-heading) { display: none !important; }
html[data-team-tab="schedule"].is-team-page body :is(#tab-standings, #team-main) { display: none !important; }
html[data-team-tab="standings"].is-team-page body :is(#tab-schedule, #team-main) { display: none !important; }
html[data-team-tab="roster"].is-team-page body :is(#team-side, #balance-area) { display: none !important; }
html[data-team-tab="balance"].is-team-page body :is(#team-side, #team-page) { display: none !important; }
html.is-team-page body:has(.qbk-team-tabs) #booking-layout { row-gap: 0 !important; }
html.is-team-page body:has(.qbk-team-tabs) :is(#tab-schedule, #tab-standings, #team-page, #balance-area) { margin-top: 0 !important; }

/* Split amounts: one clean field (no box inside a box), grey $, regular-weight number with room on the right. */
html body #split-list label.split-amount { display: inline-flex !important; align-items: center; gap: 2px; height: 40px; box-sizing: border-box;
  padding: 0 12px !important; border: 1px solid #dde3e7 !important; border-radius: 12px !important; background: #f7f9fa !important;
  color: #6b7783 !important; font-size: 15px !important; font-weight: 500 !important; }
html body #split-list label.split-amount input { width: 4.2rem !important; height: auto !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important;
  border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; outline: 0;
  color: #10243c !important; font: inherit !important; font-weight: 600 !important; text-align: right; font-variant-numeric: tabular-nums; }
html body #split-list label.split-amount:focus-within { border-color: #10243c !important; background: #fff !important; box-shadow: 0 0 0 1px #10243c !important; }
html body #split-list li.is-custom label.split-amount { border-color: #e3cf7a !important; background: #fffbea !important; }
html body #split-list li.is-off label.split-amount input { color: #8a969f !important; font-weight: 500 !important; }

/* Team schedule: a fixed replay column on the right, so scores sit a little in from the edge and line up. */
html.is-team-page body #team-schedule > li { grid-template-columns: 52px minmax(0, 1fr) auto 36px !important; column-gap: 10px !important; }
html.is-team-page body #team-schedule > li .team-game-video { grid-column: 4; display: grid; place-items: center; width: 36px; height: 32px; border-radius: 8px; }
html.is-team-page body #team-schedule > li .team-game-video:focus-visible { outline: 2px solid #10243c; outline-offset: 1px; }
html.is-team-page body #team-schedule > li .team-game-video-icon { width: 26px; height: 18px; background: #4a4a4a;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 11'%3E%3Crect x='0' y='1' width='11' height='9' rx='2'/%3E%3Cpath d='M11.5 4.2 16 1.5v8l-4.5-2.7z'/%3E%3C/svg%3E") center / contain no-repeat; }

/* Open spots in the split: keep the "Not joined yet · Remove" line as tight as the "paid" line. */
html body #split-list .split-remove-spot { display: inline !important; min-height: 0 !important; height: auto !important; padding: 0 !important; margin: 0 !important; font-size: inherit !important; line-height: inherit !important; vertical-align: baseline; }

/* Dashboard activity tabs (Past events / Trophy Case / Stats): same look as the team page tabs. */
html body #past-view > .qbk-dash-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 0 0 14px; padding: 8px;
  border: 1px solid #e9edf0; border-radius: 20px; background: #fff; box-shadow: 0 1px 2px rgba(16, 36, 60, .05), 0 6px 20px rgba(16, 36, 60, .06); }
html body #past-view > .qbk-dash-tabs [role=tab] { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 36px; margin: 0;
  padding: 6px 4px; border: 0 !important; border-radius: 14px; background: none !important; box-shadow: none !important; color: #6b7785 !important;
  font: inherit; font-size: 13.5px; font-weight: 600; line-height: 1.2; text-align: center; cursor: pointer; }
html body #past-view > .qbk-dash-tabs [role=tab][aria-selected="true"] { background: rgba(16, 36, 60, .08) !important; color: #10243c !important; font-weight: 700; }
html body #past-view:has(> .qbk-dash-tabs) > h2 { display: none !important; }
html body #past-view:not([data-dash-tab="past"]) > :is(#past-status, #past-events, #past-show-all, #past-more) { display: none !important; }
html body #past-view > .qbk-dash-placeholder:not([hidden]) { display: grid; justify-items: center; gap: 6px; padding: 28px 20px; text-align: center;
  border: 1px solid #e9edf0; border-radius: 20px; background: #fff; box-shadow: 0 1px 2px rgba(16, 36, 60, .05), 0 6px 20px rgba(16, 36, 60, .06); }
html body #past-view > .qbk-dash-placeholder .qbk-dash-placeholder-icon { font-size: 34px; line-height: 1; }
html body #past-view > .qbk-dash-placeholder strong { color: #10243c; font-size: 18px; }
html body #past-view > .qbk-dash-placeholder p { margin: 0; max-width: 260px; color: #6b7783; font-size: 14.5px; line-height: 1.45; }
html body #past-view > .qbk-dash-placeholder .qbk-dash-soon { margin-top: 6px; padding: 4px 10px; border-radius: 999px; background: #f1f3f5; color: #6b7783; font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }

/* Past events: the year sits under the month, small and grey. */
html body #past-events > li > time .qbk-year { display: block; margin-top: 1px; color: #8a969f !important; font-size: 10.5px !important; font-weight: 600 !important; letter-spacing: .02em; line-height: 1.2; }

/* Dashboard tabs: line up with the past-event cards (the list sits 4px wider on each side). */
html body #past-view > :is(.qbk-dash-tabs, .qbk-dash-placeholder) { margin-inline: -4px !important; }
/* Dashboard tabs: 12px to the first card (was 14px + the list's own 12px). */
html body #past-view > .qbk-dash-tabs { margin-bottom: 12px !important; }
html body #past-view:has(> .qbk-dash-tabs) > :is(#past-status, #past-events, .qbk-dash-placeholder) { margin-top: 0 !important; }
/* Dashboard tabs: same 22px gap above as between other dashboard sections (the View Schedule link adds 8px). */
html body #past-view:has(> .qbk-dash-tabs) { padding-top: 6px !important; }

/* Shop tabs: Class Passes / Memberships / Gift Cards, same look as the dashboard tabs. */
html body section.phone-store > .qbk-store-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; margin: 0 0 12px; padding: 8px;
  border: 1px solid #e9edf0; border-radius: 20px; background: #fff; box-shadow: 0 1px 2px rgba(16, 36, 60, .05), 0 6px 20px rgba(16, 36, 60, .06); }
html body section.phone-store > .qbk-store-tabs [role=tab] { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 36px; margin: 0;
  padding: 6px 4px; border: 0 !important; border-radius: 14px; background: none !important; box-shadow: none !important; color: #6b7785 !important;
  font: inherit; font-size: 13.5px; font-weight: 600; line-height: 1.2; text-align: center; cursor: pointer; }
html body section.phone-store > .qbk-store-tabs [role=tab][aria-selected="true"] { background: rgba(16, 36, 60, .08) !important; color: #10243c !important; font-weight: 700; }
html body section.phone-store > section[hidden] { display: none !important; }
html body section.phone-store:has(> .qbk-store-tabs) > section { margin-top: 0 !important; }
/* The tab names the section, so its heading goes; the class-pass info button sits next to each pass name instead. */
html body section.phone-store:has(> .qbk-store-tabs) > section > h2 { display: none !important; }
html body section.phone-store #shop-class-passes article h3 { display: flex; align-items: center; gap: 0; }
html body section.phone-store #shop-class-passes article h3 > .shop-info-trigger { flex: none; margin-inline-start: 6px; }
/* The pass-name info button keeps its small outlined (i) look, not the yellow Buy style. */
html body section.phone-store #shop-class-passes article h3 > button.shop-info-trigger { display: inline-grid !important; place-items: center; width: 1.1rem !important;
  height: 1.1rem !important; min-width: 0 !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; border-radius: 50% !important;
  background: none !important; box-shadow: none !important; color: #205f4d !important; font-size: .6rem !important; font-weight: 600 !important; line-height: 1 !important;
  grid-column: auto !important; grid-row: auto !important; transform: none !important; }
/* "View Schedule →": centered between the last upcoming card and the activity tabs (16px each side). */
html body #dashboard a.dashboard-schedule-link { margin-top: -2px !important; margin-bottom: 2px !important; }
/* "My upcoming events": the heading's own 12px is the gap; the list's extra 12.8px top margin doubled it. */
html body #dashboard section.panel > #events { margin-top: 0 !important; }

/* Tab bars stay pinned under the site header while scrolling (top set by dashboard-summary.js). */
html body :is(#past-view > .qbk-dash-tabs, .qbk-team-tabs) {
  position: sticky !important; top: var(--qbk-tabs-top, 80px); z-index: 5; }

/* Account popup: show the header's cached photo right away instead of the green initials placeholder. */
html body .phone-account-preview .qbk-photo-seeded { background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important; }
html body .phone-account-preview .qbk-photo-seeded > span { visibility: hidden; }

/* Trophy Case / Stats "coming soon" cards: bigger. */
html body #past-view > .qbk-dash-placeholder:not([hidden]) { min-height: 300px; align-content: center; gap: 10px; padding: 40px 24px; }
html body #past-view > .qbk-dash-placeholder .qbk-dash-placeholder-icon { font-size: 60px; }
html body #past-view > .qbk-dash-placeholder strong { font-size: 23px; }
html body #past-view > .qbk-dash-placeholder .qbk-dash-soon { margin-top: 8px; padding: 6px 14px; font-size: 13px; }
