/* OC Tennis brand tokens, taken from https://octennis.com (Squarespace site palette + logo).
   Accent / logo blue:  --accent-hsl: 204.39, 79.49%, 38.24% → #1470AF, logo pixels #146FAF
   Light accent:        --lightAccent-hsl: 240, 10.53%, 92.55% → #EAEAEE
   Dark accent:         --darkAccent-hsl: 209.23, 52.70%, 70.98% → #8EB6DC
   Primary buttons:     --primaryButtonBackgroundColor: hsl(24.12, 100%, 60%) → #FF8533
   Header: white, logo 65px desktop / 30px mobile, nav #545454
   Type: Poppins 500 headings (-0.02em), Poppins 300 body (1.8 line-height), buttons 500 / .02em, radius 6.4px
*/
:root {
  --blue: #146FAF;
  --blue-dark: #0F5A8C;
  --orange: #FF8533;
  --orange-dark: #E6731F;
  --sky: #8EB6DC;
  --light: #EAEAEE;
  --ink: #000000;
  --muted: #545454;
  --line: #E2E8F0;
  --bg: #FFFFFF;
  --card: #FFFFFF;
  --danger: #B3261E;
  --warn-bg: #FFF1E6;
  --warn-ink: #8A4A12;
  --radius: 8px;
  --btn-radius: 6.4px;
  --shadow: 0 6px 16px -4px rgba(15, 23, 42, 0.14), 0 2px 5px -1px rgba(15, 23, 42, 0.08);
  --card-border: 1px solid #E2E8F0;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; max-width: 100%; }
body {
  margin: 0;
  overflow-x: clip;
  max-width: 100%;
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  min-height: 100dvh;
  padding-bottom: calc(24px + var(--safe-bottom));
}
body:has(.tabbar), body:has(.footer-actions) { padding-bottom: calc(72px + var(--safe-bottom)); }
a { color: var(--blue); }
button, input, select { font: inherit; }
.hidden { display: none !important; }
.wrap { max-width: 760px; width: 100%; min-width: 0; margin: 0 auto; padding: 0 16px; overflow-x: clip; }

/* Header — white bar + official wordmark, matching octennis.com (65px desktop / 30px mobile logo) */
.topbar {
  position: sticky; top: 0; z-index: 20; background: #fff; color: var(--ink);
  padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border-bottom: 1px solid var(--line);
  flex-wrap: nowrap;
}
.brand { display: flex; align-items: center; text-decoration: none; color: var(--blue); flex: none; min-width: 0; }
.brand .logo {
  display: block; height: 30px; width: auto;
  /* 1600×545 wordmark */
}
@media (min-width: 700px) {
  .brand .logo { height: 52px; }
  .topbar { padding: calc(14px + env(safe-area-inset-top, 0px)) 24px 14px; }
}
.topbar .link {
  color: var(--muted); background: none; border: 0; cursor: pointer;
  font-size: 14px; font-weight: 500; letter-spacing: 0.02em; text-decoration: none;
  white-space: nowrap;
}
.topbar .link:hover { color: var(--blue); }
.topbar-actions { display: flex; align-items: center; gap: 8px; flex: none; margin-left: auto; min-width: 0; }
.btn.signup-cta, a.btn.signup-cta {
  white-space: nowrap; text-decoration: none; text-align: center; flex: none;
}
/* Narrow phones: compact "+ Sign up". From 480px up: full "+ Sign up for a class". */
.signup-cta .cta-full { display: none; }
.signup-cta .cta-short { display: inline; }
@media (min-width: 480px) {
  .signup-cta .cta-full { display: inline; }
  .signup-cta .cta-short { display: none; }
  .topbar { padding: calc(12px + env(safe-area-inset-top, 0px)) 16px 12px; gap: 12px; }
  .topbar-actions { gap: 10px; }
}
@media (max-width: 479px) {
  .topbar .btn.signup-cta { min-height: 34px; padding: 5px 10px; font-size: 13px; }
  .topbar .link { font-size: 13px; }
}
/* Header session control: "Signed in as First L." + menu, or a Sign in button (src/client/account-menu.ts) */
.acct { position: relative; flex: none; min-width: 0; }
.acct-trigger {
  display: inline-flex; align-items: center; gap: 6px; max-width: 158px; min-height: 40px; padding: 3px 10px 3px 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font: inherit; color: var(--ink);
}
.acct-trigger:hover, .acct-trigger[aria-expanded="true"] { border-color: var(--blue); }
.acct-trigger:focus-visible, .acct-item:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.acct-label { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; min-width: 0; text-align: left; }
.acct-hint { font-size: 10.5px; color: var(--muted); font-weight: 400; white-space: nowrap; }
.acct-name { font-size: 13px; font-weight: 600; max-width: 104px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-trigger svg { flex: none; color: var(--muted); }
.acct-menu {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 188px; padding: 6px; z-index: 60;
  background: #fff; border: var(--card-border); border-radius: 10px; box-shadow: var(--shadow);
}
.acct-menu[hidden] { display: none; }
.acct-item {
  display: block; width: 100%; box-sizing: border-box; min-height: 44px; padding: 10px 12px; text-align: left; font: inherit; font-size: 14px;
  color: var(--ink); background: none; border: 0; border-radius: 6px; text-decoration: none; cursor: pointer;
}
.acct-item:hover { background: #E8F3FA; }
.acct-narrow-only { display: none; }
.acct-signin { white-space: nowrap; text-decoration: none; }
@media (max-width: 559px) {
  .acct-narrow-only { display: block; }
  .topbar .staff-switch { display: none; }
}
@media (max-width: 479px) {
  .acct-trigger { max-width: 132px; padding-left: 10px; }
  .acct-name { max-width: 78px; }
}
.portal-title { margin-top: 12px; }
h1.portal-title { margin: 16px 0 6px; }
.btn.cancel-pill, .cancel-pill:disabled, .btn.cancel-pill:disabled {
  background: #e9eeeb; color: #5d6b65; border-color: transparent; opacity: 1; cursor: default;
}
.btn.cancel-pill.cap-pill {
  cursor: pointer;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: normal;
  line-height: 1.25;
  text-align: center;
  overflow: visible;
}
.btn.cancel-pill.cap-pill .cap-pill-label { min-width: 0; }
.btn.cancel-pill.cap-pill .help-icon { flex: none; display: block; }
.btn.cancel-pill.cap-pill:hover,
.btn.cancel-pill.cap-pill:focus-visible {
  background: #dde3e0; color: #3d4a45;
}
/* Floating tooltip: no layout shift, hangs above/left of the pill, escapes the card. */
.class-item, .class-item .action { overflow: visible; }
.btn.cancel-pill.cap-pill .cap-tip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  width: max(100%, 16.5rem);
  max-width: min(20rem, 80vw);
  padding: 10px 12px;
  background: #1f1f1f;
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
  text-align: left;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  z-index: 40;
}
.btn.cancel-pill.cap-pill:hover .cap-tip,
.btn.cancel-pill.cap-pill:focus-visible .cap-tip,
.btn.cancel-pill.cap-pill:focus-within .cap-tip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .btn.cancel-pill.cap-pill .cap-tip { transition: none; }
}
.demo-banner { background: var(--warn-bg); color: var(--warn-ink); font-size: 13px; font-weight: 400; text-align: center; padding: 6px 12px; border-bottom: 1px solid #F3D5B8; }

/* Cards & text */
h1, h2, h3, h4 {
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
h1 { font-size: 1.75rem; margin: 20px 0 6px; }
h2 { font-size: 1.25rem; margin: 22px 0 10px; }
h3 { font-size: 1rem; margin: 0 0 4px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.card { background: var(--card); border: var(--card-border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin: 14px 0; }
.callout {
  background: #F3F9FC;
  border: 1px solid #D4E6F3;
  border-radius: var(--radius);
  padding: 12px 14px;
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
}
.callout a { font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.stack > * + * { margin-top: 10px; }
.row { display: flex; gap: 10px; align-items: center; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.pill { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #E8F3FA; color: var(--blue-dark); font-weight: 500; }
.pill.warn { background: var(--warn-bg); color: var(--warn-ink); }
.pill.gray { background: var(--light); color: var(--muted); }

/* Buttons — orange primary (octennis.com "Enroll Now"), 6.4px radius, Poppins 500 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 12px 20px; border-radius: var(--btn-radius); border: 1px solid transparent;
  background: var(--orange); color: #fff; font-weight: 500; letter-spacing: 0.02em;
  cursor: pointer; text-decoration: none;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn:hover { background: var(--orange-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.secondary { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn.secondary:hover { background: #F3F9FC; }
.btn.ghost { background: transparent; color: var(--blue); }
.btn.ghost:hover { background: transparent; color: var(--blue-dark); }
.btn.danger { background: #fff; color: var(--danger); border-color: #f0c9c6; }
.btn.danger:hover { background: #FFF6F5; }
.btn.sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }

/* Segmented control / tabs */
.seg {
  display: flex; background: #EAEFF5; border: 1px solid #D5DEE8; border-radius: var(--btn-radius);
  padding: 5px; gap: 4px;
}
.seg button { flex: 1; min-height: 38px; border: 0; border-radius: 6px; background: transparent; color: #475569; font-weight: 500; cursor: pointer; }
.seg button[aria-pressed="true"] {
  background: var(--blue); color: #fff; font-weight: 600;
  box-shadow: 0 2px 6px rgba(20, 111, 175, 0.28);
}
.seg button:disabled,
.seg button[aria-disabled="true"] {
  color: #9AA0A8;
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  background: transparent;
}

.chips { display: flex; gap: 8px; overflow-x: auto; max-width: 100%; min-width: 0; padding: 4px 0 8px; scrollbar-width: none; }
.chip { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; cursor: pointer; font-weight: 500; font-size: 14px; }
.chip[aria-pressed="true"] { background: var(--blue); color: #fff; border-color: var(--blue); }

/* Bottom tab bar (portal) */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; width: 100%; max-width: 100%; box-sizing: border-box;
  z-index: 30; background: #fff; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: var(--safe-bottom);
}
.tabbar button { border: 0; background: none; padding: 10px 4px 12px; font-size: 12px; color: var(--muted); display: grid; justify-items: center; gap: 2px; cursor: pointer; min-width: 0; width: 100%; overflow: hidden; }
.tabbar button svg { width: 22px; height: 22px; }
.tabbar button[aria-selected="true"] { color: var(--blue); font-weight: 500; }

/* Calendar */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin: 8px 0; }
.cal-head .title { font-weight: 500; }
.iconbtn { width: 40px; height: 40px; border-radius: var(--btn-radius); border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 18px; }
.month { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.month .dow { font-size: 11px; color: var(--muted); text-align: center; padding: 4px 0; font-weight: 600; }
.day {
  min-height: 58px; background: #fff; border-radius: var(--btn-radius); padding: 4px; border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 2px; cursor: pointer; text-align: left;
}
.day.other { opacity: 0.4; }
.day.today { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.day.selected { background: #F3F9FC; }
.day .num { font-size: 12px; font-weight: 500; }
.day .dots { display: flex; flex-wrap: wrap; gap: 2px; }
.day .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.week { display: grid; gap: 8px; }
.week .wday { background: var(--card); border-radius: var(--radius); border: var(--card-border); box-shadow: var(--shadow); padding: 12px; }
.week .wday.today { border-color: var(--blue); }
.week .wday h4 { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.member-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

.class-item { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: var(--radius); background: var(--card); border: var(--card-border); box-shadow: var(--shadow); }
.class-item + .class-item { margin-top: 10px; }
.class-item .when { width: 64px; flex: none; text-align: center; }
.class-item .when .d { font-size: 12px; color: var(--muted); text-transform: uppercase; font-weight: 500; letter-spacing: 0.04em; }
.class-item .when .t { font-weight: 500; font-size: 14px; }

/* Forms */
label.field { display: block; font-size: 14px; font-weight: 600; margin: 12px 0 4px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], select {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: var(--btn-radius); border: 1px solid #C8CDD6; background: #fff; font-size: 16px;
}
input:focus, select:focus, .btn:focus-visible, .chip:focus-visible { outline: 3px solid rgba(20, 111, 175, 0.28); outline-offset: 1px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 380px) { .grid2 { grid-template-columns: 1fr; } }

/* Required-field star + gentle invalid highlight */
.req-star {
  color: #E07A4A; font-weight: 600; margin-left: 0.18em; font-size: 0.95em;
}
.field-wrap, .check-wrap { scroll-margin-top: 88px; scroll-margin-bottom: 96px; }
.field-wrap input {
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.field-hint {
  display: none; margin: 6px 0 0; font-size: 13px; font-weight: 500; color: #C45C3E; line-height: 1.35;
}
.field-wrap.is-invalid .field-hint,
.check-wrap.is-invalid .field-hint { display: block; }
.field-wrap.is-invalid input,
.check-wrap.is-invalid {
  border-color: #E8A090;
  background: #FFF7F4;
  box-shadow: 0 0 0 3px rgba(224, 122, 106, 0.22);
  animation: field-pulse 0.65s ease-out;
}
.check-wrap {
  border: 1px solid transparent; border-radius: var(--btn-radius);
  padding: 8px 10px; margin: 0 -10px;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.field-wrap.is-invalid input:focus,
.check-wrap.is-invalid:focus-within {
  outline: 3px solid rgba(224, 122, 106, 0.28);
  outline-offset: 1px;
}
@keyframes field-pulse {
  0% { box-shadow: 0 0 0 0 rgba(224, 122, 106, 0.32); }
  70% { box-shadow: 0 0 0 6px rgba(224, 122, 106, 0); }
  100% { box-shadow: 0 0 0 3px rgba(224, 122, 106, 0.22); }
}
@media (prefers-reduced-motion: reduce) {
  .field-wrap.is-invalid input, .check-wrap.is-invalid { animation: none; }
}

.option {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: var(--card-border); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); cursor: pointer; width: 100%; text-align: left;
}
.option[aria-pressed="true"], .option.selected { border-color: var(--blue); background: #F3F9FC; }
.option .check { width: 22px; height: 22px; border-radius: 6px; border: 2px solid #b8c4be; flex: none; margin-top: 2px; display: grid; place-items: center; color: #fff; font-size: 14px; }
.option[aria-pressed="true"] .check { background: var(--blue); border-color: var(--blue); }
.option[disabled] { opacity: 0.45; cursor: not-allowed; }
.options { display: grid; gap: 10px; }
/* Class info popover: absolutely positioned, so showing it never moves anything. */
.option-wrap { position: relative; }
.option-wrap .option { padding-right: 50px; }
.info-btn {
  position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid #9DB3C7; background: #fff; color: #146FAF; font: italic 700 14px/1 Georgia, "Times New Roman", serif;
  display: grid; place-items: center; padding: 0; cursor: help; opacity: 0.85;
}
.info-btn:hover, .info-btn:focus-visible, .option-wrap.open .info-btn { border-color: var(--blue); background: #F3F9FC; opacity: 1; }
.info-tip {
  display: none; position: absolute; z-index: 30; top: 40px; right: 8px; width: min(340px, calc(100% - 16px));
  background: #fff; border: 1px solid #C9D6E2; border-radius: var(--radius); padding: 12px 14px;
  box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.28), 0 3px 8px rgba(15, 23, 42, 0.12); font-size: 13px; line-height: 1.5; text-align: left;
}
.info-tip p { margin: 6px 0; }
.option-wrap.open .info-tip, .info-btn:focus-visible + .info-tip { display: block; }
@media (hover: hover) {
  .info-btn:hover + .info-tip, .info-tip:hover { display: block; }
}

/* Stepper: fixed-height track so hover/focus never moves the page.
   Labels sit in a reserved slot above the bars (absolutely positioned).
   The bar thickens upward into the same reserved slot. */
.stepper { margin: 8px 0 0; }
.steps {
  display: flex; gap: 6px; margin: 10px 0 4px; align-items: stretch;
  /* 18px label + 6px gap + 8px hovered bar. Locked so content below never shifts. */
  height: 32px;
}
.sbar {
  position: relative; flex: 1 1 0; min-width: 0; height: 100%;
  padding: 0; margin: 0; border: 0; background: none; font: inherit; text-align: left;
  cursor: default; -webkit-tap-highlight-color: transparent;
}
.sbar .lbl {
  position: absolute; left: 0; right: 0; top: 0; height: 18px;
  font-size: 12px; font-weight: 500; line-height: 18px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transform: translateY(3px);
  transition: opacity 0.2s ease, transform 0.2s ease, color 0.2s ease;
  pointer-events: none;
}
.sbar .bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  border-radius: 4px; background: #dfe6e2;
  transition: height 0.2s ease, background 0.2s ease;
}
.sbar.on .bar { background: var(--blue); }
.sbar.current .lbl { color: var(--ink); }
.sbar.current .lbl,
.sbar:hover .lbl,
.sbar:focus-visible .lbl { opacity: 1; transform: none; }
.sbar.jump { cursor: pointer; }
.sbar.jump .lbl { color: var(--blue); }
/* Thicken the bar upward into the reserved gap — bottom edge stays put, no page shift. */
.sbar:hover .bar,
.sbar:focus-visible .bar { height: 8px; }
.sbar.jump:hover .bar,
.sbar.jump:focus-visible .bar { background: var(--blue-dark); }
.sbar:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
@media (hover: none) { .sbar .lbl { opacity: 1; transform: none; font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { .sbar .lbl, .sbar .bar { transition: none; } }
.step-label { font-size: 13px; color: var(--muted); font-weight: 600; }

/* Multi-child signup */
.callout.adding { background: #FFF8F1; border-color: #F6D9BF; }
.callout h3 { margin: 0 0 4px; font-size: 1rem; }
.mini-list { margin: 8px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.mini-list li { padding: 2px 0; }
.class-box { background: #F3F9FC; border: 1px solid #D4E6F3; border-radius: var(--radius); padding: 10px 12px; margin-top: 10px; }
.class-box .t { font-weight: 500; }
.bill-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }

/* Promo code on signup Step 4: compact row, reserved status line so applying a code doesn't shift the page. */
.promo-card { overflow: hidden; }
.card-paused { background: #FFF8EC; border-color: #F2D7A6; color: #5B4313; line-height: 1.45; }
.promo-row { display: flex; gap: 8px; align-items: stretch; min-width: 0; }
.promo-row input { flex: 1; min-width: 0; }
.promo-row .btn { flex: none; min-height: 46px; padding-left: 16px; padding-right: 16px; }
.promo-msg { min-height: 18px; margin: 0; font-size: 13px; }
.promo-msg.is-error { color: var(--danger); }
.promo-applied-amt { font-weight: 600; color: #1F6B3A; white-space: nowrap; }
button.linkbtn {
  background: none; border: 0; padding: 0; margin-left: 8px; color: var(--blue); font: inherit;
  font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
}
button.linkbtn:hover { color: var(--blue-ink, #0B4F80); }

.bill-total { border-top: 2px solid var(--line); padding-top: 12px; }
.footer-actions {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: rgba(255,255,255,0.97); border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + var(--safe-bottom)); display: flex; gap: 10px; max-width: 760px; margin: 0 auto;
}
/* Hosted payment handoff (cards are entered only on the secure billing page) */
.btn.btn-orange { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn.btn-orange:hover { background: var(--orange-dark); }
.secure-box { border: 1px solid #CFE3F1; background: #F3F9FC; border-radius: var(--btn-radius); padding: 12px 14px; display: grid; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.secure-head { display: flex; align-items: center; gap: 8px; }
.saved-card { gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: var(--btn-radius); padding: 10px 12px; min-width: 0; }
.saved-card-icon { font-size: 20px; flex: none; }
.notice-full { border: 1px solid #F3D5B8; background: var(--warn-bg); color: var(--warn-ink); overflow-wrap: anywhere; }
.notice-full a { color: inherit; font-weight: 500; }
.option.is-full { opacity: 0.65; cursor: default; }
.option.is-full:hover { background: inherit; }
.acct-card-note { margin: -4px 0 8px; }
.pill.wait { background: #FFF6D6; color: #7A5B00; margin-top: 4px; }
.waitlist-list { margin: 4px 0 14px; }
.waitlist-h { font-size: 16px; margin: 6px 0 8px; }
.waitlist-item .grow { min-width: 0; }

/* Modal / sheet */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(10, 20, 15, 0.45); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: #fff; width: 100%; max-width: 560px; border-radius: 12px 12px 0 0; padding: 18px 16px calc(18px + var(--safe-bottom)); max-height: 88dvh; overflow: auto; animation: up 0.18s ease-out; }
@media (min-width: 700px) { .sheet-backdrop { align-items: center; } .sheet { border-radius: 12px; } }
@keyframes up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(84px + var(--safe-bottom)); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius); z-index: 60; max-width: 92vw; font-size: 14px; }
.toast.error { background: var(--danger); }
.empty { text-align: center; padding: 28px 12px; color: var(--muted); }
.card.empty .signup-cta { margin-top: 12px; }
.spinner { width: 22px; height: 22px; border: 3px solid var(--sky); border-top-color: var(--blue); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 24px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero { background: var(--light); color: var(--ink); padding: 36px 16px 40px; border-bottom: 1px solid var(--line); }
.hero h1 { font-size: 2rem; margin: 0 0 8px; color: var(--ink); }
.hero p { margin: 0; color: var(--muted); max-width: 32em; }

/* Class rows: action button drops under the details on phones */
.class-item { flex-wrap: wrap; }
.class-item .action { flex-basis: 100%; }
@media (min-width: 560px) { .class-item { flex-wrap: nowrap; } .class-item .action { flex-basis: auto; width: 240px; flex: none; } }

/* Add-to-home-screen nudge */
.a2hs { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; margin-top: 14px; box-shadow: var(--shadow); }
.a2hs img { border-radius: 8px; flex: none; }
.a2hs-x { border: 0; background: none; font-size: 22px; color: var(--muted); cursor: pointer; width: 32px; height: 32px; flex: none; }

/* Pricing / billing summary */
.seg button .price { display: block; font-size: 12px; font-weight: 500; }
.bill { display: grid; gap: 6px; }
.bill .due { font-size: 22px; font-weight: 800; }
.linkbtn { background: none; border: 0; color: var(--blue); text-decoration: underline; cursor: pointer; padding: 0; font-size: 14px; font-weight: 500; }

/* Account tab */
.acct-title { margin-top: 8px; }
.acct-card { margin: 12px 0; }
.acct-h { font-size: 1.05rem; margin: 0 0 4px; }
.acct-h.acct-sub { margin-top: 18px; }
.acct-h4 { font-size: 0.95rem; margin: 0 0 6px; font-weight: 600; }
.acct-block { margin-top: 18px; }
.acct-card .field-wrap input { width: 100%; }
.acct-card .btn.block { margin-top: 14px; }
.form-err { margin: 10px 0 0; }
.acct-list { display: grid; gap: 0; }
.acct-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.acct-row:first-child { border-top: 0; }
.acct-row.slim { padding: 8px 0; }
.acct-balance { background: #F3F9FC; border-radius: var(--radius); padding: 14px 16px; margin: 10px 0; }
.acct-balance-amt { font-size: 1.9rem; font-weight: 500; color: var(--blue-dark); letter-spacing: -0.02em; line-height: 1.3; }
.acct-card-on-file { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.acct-inv { border-top: 1px solid var(--line); }
.acct-inv:first-child { border-top: 0; }
.acct-invoice {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; background: none; border: 0; padding: 12px 0; cursor: pointer; font: inherit; color: inherit;
}
.acct-inv-main { flex: 1; min-width: 0; }
.acct-inv-main .t { overflow: hidden; text-overflow: ellipsis; }
.acct-inv-side { text-align: right; display: grid; gap: 2px; justify-items: end; }
.acct-invoice .chev { color: var(--muted); transition: transform 0.15s ease; }
.acct-invoice.open .chev { transform: rotate(180deg); }
.receipt { background: #FAFBFC; border-radius: var(--radius); padding: 10px 12px; margin: 0 0 12px; display: grid; gap: 6px; font-size: 14px; }
.receipt[hidden] { display: none; }
.receipt-line { display: flex; justify-content: space-between; gap: 12px; }
.receipt-line.total { border-top: 1px solid var(--line); padding-top: 6px; font-weight: 600; }
.receipt-line.due { color: var(--warn-ink); font-weight: 600; }

/* Home address: street full width; city / 2-letter state / ZIP on one compact row. */
.addr-row {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 4.6em minmax(6.2em, 0.85fr);
  gap: 10px;
  align-items: start;
}
.addr-row [data-field$="state"] input,
.addr-row [data-field="state"] input,
.addr-row [name="state"] {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
  padding-left: 6px;
  padding-right: 6px;
}
@media (max-width: 360px) {
  .addr-row { grid-template-columns: minmax(0, 1fr) 4.4em minmax(5.6em, 0.8fr); }
}

/* Billing → Next charges: amount + compact Cancel */
.acct-charge-side { text-align: right; display: grid; gap: 6px; justify-items: end; flex: none; }
.acct-row .btn.sm.danger { min-height: 32px; padding: 4px 12px; font-size: 13px; }

/* Squarespace embed (/signup?embed=1): no logo bar, flows inside the iframe, height reported to the parent page. */
html.embed body { min-height: 0; background: transparent; padding-bottom: 16px; }
html.embed body:has(.footer-actions) { padding-bottom: 16px; }
html.embed .topbar { position: static; background: transparent; border-bottom: 0; padding: 4px 16px 0; justify-content: flex-end; }
html.embed .topbar .brand { display: none; }
html.embed .footer-actions { position: static; background: transparent; border-top: 0; padding: 4px 16px 0; margin: 0 auto; }
html.embed .toast { position: absolute; top: 12px; bottom: auto; }
/* Last class cards: open the info popover upward so it isn't cut off at the bottom of the page / embed frame. */
.options > .option-wrap:nth-last-child(-n+2) .info-tip { top: auto; bottom: 40px; }

/* My Classes → History status pills and month groups. Fixed heights so toggling Upcoming/History doesn't jump. */
.history { min-height: 240px; margin-top: 4px; }
.history-skeleton { display: grid; place-items: center; min-height: 240px; }
.history-month { margin-top: 8px; }
.history-month + .history-month { margin-top: 22px; }
.history-month-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin: 8px 0 10px; }
.history-month-head h2 { margin: 0; font-size: 1.05rem; }
.history-summary { margin: 0; }
.history, .history-month { min-width: 0; max-width: 100%; }
/* History rows must not inherit the Upcoming "wrap the cancel button on a 100% flex-basis line" rule,
   and must clip descendants so a pill can never widen the page. (Upcoming .class-item stays overflow: visible for the cap tooltip.) */
.history-item {
  align-items: flex-start;
  flex-wrap: nowrap;
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
}
.history-item .grow { min-width: 0; }
.history-item h3 { overflow: hidden; text-overflow: ellipsis; }
.status-pill,
.history-item .status-pill {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-self: flex-start;
  flex: 0 1 auto;
  box-sizing: border-box;
  margin-left: auto;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  line-height: 1.2;
  align-items: center;
  justify-content: center;
}
.status-attended { background: #E8F6EE; color: #157A3F; }
.status-noshow { background: #FDECEC; color: #B3261E; }
.status-canceled_makeup { background: #E8F1F8; color: #146FAF; }
.status-late_cancel { background: #FFF3E0; color: #B25E09; }
.status-canceled, .status-canceled_account { background: #E8F1F8; color: #146FAF; }
.status-class_canceled { background: #FFF3E0; color: #B25E09; }
.status-holiday_closure { background: #EEF0F2; color: #5B6570; }
.kind-badge { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 600; vertical-align: middle; border: 1px solid currentColor; }
.kind-makeup { color: #146FAF; }
.kind-dropin { color: #6A3FB5; }
.history-note { margin-top: 2px; }
@media (max-width: 479px) {
  /* Wrap the pill under the title if needed, but do not give it a full-row flex basis with an extra left margin
     (that stretched the pill past the card and widened the page). */
  .history-item { flex-wrap: wrap; }
  .history-item .status-pill {
    flex: 0 1 auto;
    flex-basis: auto;
    width: fit-content;
    max-width: 100%;
    align-self: flex-start;
    margin: 4px 0 0 auto;
  }
}

/* CRM: optional TCPA / CAN-SPAM consent rows on signup Step 3 and Account */
.consent-row { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.consent-row input[type="checkbox"] { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: #146FAF; }
.consent-text { display: block; margin-top: 2px; line-height: 1.4; }
.consent-notice {
  display: block;
  margin: 8px 0 6px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #F3D5B8;
  background: var(--warn-bg);
  color: var(--warn-ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}


/* CRM: sign-in (Google, passkey, magic link) + passkey prompt / list */
.btn-google, .btn-passkey {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px;
  padding: 10px 16px; border-radius: 999px; font: 500 15px/1.2 inherit; font-family: inherit; cursor: pointer; text-decoration: none;
}
.btn-google { background: #fff; color: #1f1f1f; border: 1px solid #dadce0; box-shadow: 0 1px 2px rgba(60,64,67,.15); }
.btn-google:hover { background: #f8faff; border-color: #c6d4f5; }
.btn-google.hidden { display: none; }
.btn-passkey { background: #0F5A8C; color: #fff; border: 1px solid #0F5A8C; }
.btn-passkey:hover { background: #146FAF; }
.btn-passkey[disabled], .btn-google[aria-disabled="true"] { opacity: .65; cursor: progress; }
.passkey-ico { font-size: 17px; line-height: 1; }
.signin-or { display: flex; align-items: center; gap: 10px; color: var(--muted, #6b7280); font-size: 13px; }
.signin-or::before, .signin-or::after { content: ""; flex: 1; height: 1px; background: #e5e7eb; }
.passkey-prompt {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  width: min(560px, calc(100% - 24px)); display: flex; gap: 12px; align-items: center; justify-content: space-between;
  background: #fff; border: 1px solid #D4E6F3; border-radius: 14px; padding: 12px 14px; box-shadow: 0 10px 30px rgba(15,90,140,.18);
}
.passkey-prompt-text { display: flex; flex-direction: column; gap: 2px; }
.passkey-prompt-actions { display: flex; gap: 10px; align-items: center; flex: none; }
@media (max-width: 760px) { .passkey-prompt { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }
.passkey-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.passkey-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 10px; }
.signin-card > .form-err { background: #FDECEA; border: 1px solid #F5C2BD; color: #8A1C12; border-radius: 10px; padding: 10px 12px; font-size: 14px; line-height: 1.45; font-weight: 500; }

.signin-passkey { display: block; width: 100%; text-align: center; margin: 4px 0 0; color: var(--muted, #6b7280); font-weight: 500; }
.signin-passkey:hover { color: var(--ink, #1a1a1a); }

/* Parent portal: Monthly Classes cards, cancel-enrollment screen, after-cancel banner (approved cancel-flow mockups). */
.tabbar button .tab-label { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 340px) { .tabbar button { font-size: 11px; } }
.enroll-card { margin-top: 16px; }
.enroll-card h2, .enroll-card h3 { margin: 0; font-size: 1.15rem; }
.enroll-meta { margin: 0; }
.enroll-meta + .enroll-meta { margin-top: 2px; }
.outcome { background: #F3F9FC; border: 1px solid #D4E6F3; border-radius: var(--radius); padding: 14px 16px; margin: 0; }
.outcome p { margin: 0; font-size: 1.05rem; line-height: 1.45; }
.outcome p + p { margin-top: 8px; font-size: 14px; color: var(--muted); font-weight: 400; }
.confirm-banner { background: #E8F3FA; border: 1px solid #D4E6F3; color: var(--blue-dark); border-radius: var(--radius); padding: 12px 14px; margin: 14px 0 0; font-size: 14px; line-height: 1.5; }
.enroll-card.flash { animation: enroll-flash 1.6s ease-out; }
@keyframes enroll-flash { 0% { box-shadow: 0 0 0 3px rgba(20, 111, 175, 0.45); } 100% { box-shadow: 0 0 0 3px rgba(20, 111, 175, 0); } }
/* "Monthly Enrollments" is the longest tab label: columns size to their text (spread evenly) so no label truncates. */
.tabbar { grid-template-columns: repeat(4, auto); justify-content: space-evenly; }
.tabbar button { width: auto; padding-left: 6px; padding-right: 6px; }
@media (max-width: 340px) { .tabbar button { font-size: 10px; padding-left: 3px; padding-right: 3px; } }

/* Camps & Clinics (one-time registration on /signup and the portal) */
.seg:has(> button:nth-child(3)) button { font-size: 13px; line-height: 1.2; padding: 4px 6px; }
.camp-kid { border: var(--card-border); border-radius: var(--radius); padding: 12px; display: grid; gap: 8px; }
.camp-kid-fields { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
.camp-kid-fields .camp-field:last-child:nth-child(odd) { grid-column: 1 / -1; }
.camp-field { display: grid; gap: 4px; font-size: 13px; font-weight: 500; margin: 0; }
.camp-field input { width: 100%; min-width: 0; }
.camp-sessions { display: grid; gap: 10px; }
.camp-session { border: var(--card-border); border-radius: var(--radius); padding: 12px; display: grid; gap: 10px; background: #fff; }
.camp-session.is-full { background: #F7F8FA; opacity: 0.8; }
.camp-session-head { display: flex; gap: 10px; align-items: flex-start; }
.camp-session-head .grow { flex: 1; min-width: 0; }
.camp-price { text-align: right; display: grid; gap: 4px; justify-items: end; }
.camp-kid-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.camp-kid-picks .chip:disabled { opacity: 0.5; cursor: not-allowed; }
.camp-pick-wrap { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.camp-option { min-height: 36px; border-radius: 6px; border: 1px solid var(--line); font: inherit; font-size: 13px; padding: 4px 8px; background: #fff; }
.camp-discounts { margin: 6px 0 0; padding-left: 18px; color: var(--blue-dark); }
.camp-quote { display: grid; gap: 10px; }
.camp-line { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.camp-math { color: var(--muted); margin-top: 4px; }
.camp-disc { color: #1F7A3A; }
.camp-sub, .camp-total { justify-content: space-between; }
.camp-total { font-weight: 700; font-size: 17px; }
.camp-kid-fields .camp-field:has(input[type="email"]) { grid-column: 1 / -1; }
/* Camps & Clinics: session-first flow (Select → who's attending → review) */
.camp-session.is-on { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue) inset; }
.camp-select-row { display: flex; }
.camp-select { min-width: 112px; }
.camp-select.is-selected { background: var(--blue); border-color: var(--blue); color: #fff; }
.camp-select:disabled { opacity: .6; cursor: not-allowed; }
.camp-opts { display: grid; gap: 6px; }
.camp-opt { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; min-height: 44px; cursor: pointer; font-size: 14px; }
.camp-opt.on { border-color: var(--blue); background: #F2F8FC; }
.camp-opt input { width: 20px; height: 20px; flex: none; margin: 0; }
.camp-summary .small { line-height: 1.4; }
.camp-attend input { width: 22px; height: 22px; flex: none; margin: 0; }
.camp-which { display: grid; gap: 6px; }
.camp-kid-problems { display: grid; gap: 4px; margin: 0; }
.camp-kid-problems:empty { display: none; }
.camp-kid-problems > * { background: #FDECEA; border: 1px solid #F5C2BD; color: #8A1C12; border-radius: 10px; padding: 8px 10px; font-size: 13px; line-height: 1.4; font-weight: 500; }


/* Cloudflare Turnstile (managed, interaction-only): invisible unless Cloudflare needs the visitor to tick a box. */
.ts-box { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 10000; width: min(340px, 92vw); box-sizing: border-box; }
.ts-box.ts-show { background: #fff; padding: 14px; border-radius: 10px; box-shadow: 0 0 0 100vmax rgba(15, 23, 42, 0.45), 0 12px 32px rgba(15, 23, 42, 0.3); }

/* Migrated families: "add your card" prompt, and Welcome makeup credits */
.setup-banner { background: #FFF6EE; border: 1px solid #FFD9BC; }
.setup-banner h3 { color: var(--ink); }
.welcome-credit { margin-top: 12px; padding: 12px 14px; border-radius: var(--radius); background: #F1F8FD; border: 1px solid #CFE3F2; }
.welcome-credit .welcome-pill { background: var(--blue); color: #fff; font-weight: 600; }
.welcome-credit .welcome-expiry { margin-top: 6px; font-weight: 700; }

/* Calendar sync (parent portal) */
.cal-cta { display: flex; align-items: center; gap: 10px; margin: 2px 0 12px; flex-wrap: wrap; }
.cal-opts { display: grid; gap: 8px; margin-top: 4px; }
.cal-opts .btn { text-align: center; text-decoration: none; }
.cal-copy { display: flex; gap: 8px; align-items: center; min-width: 0; }
.cal-copy .cal-link { flex: 1 1 auto; min-width: 0; width: 100%; font-size: .78rem; padding: 8px 10px; text-overflow: ellipsis; }
.cal-copy .btn { flex: none; }
.cal-help summary { cursor: pointer; font-weight: 600; }
