/* CHA booking UX refresh. Loaded after the main stylesheet so it can stay small and reversible. */
:root {
  --soft-bg: #f4f7fb;
  --soft-line: #d8e2ee;
  --soft-shadow: 0 16px 34px rgba(12, 24, 44, 0.08);
}

body {
  background: linear-gradient(180deg, #fbfdff 0%, var(--soft-bg) 340px, #eef3f8 100%);
}

main {
  padding: 24px clamp(18px, 3vw, 34px) 34px;
}

.sidebar {
  grid-template-columns: minmax(240px, max-content) minmax(220px, 360px) minmax(0, 1fr);
  gap: 14px;
  padding: 12px clamp(18px, 3vw, 30px);
  border-bottom-width: 4px;
  background: #101820;
}

.app-menu {
  justify-self: start;
  width: min(100%, 360px);
}

.app-menu select {
  width: 100%;
}

.nav-tabs {
  justify-self: end;
}

.brand-wordmark strong {
  font-size: clamp(1rem, 1.7vw, 1.28rem);
}

.brand-wordmark span {
  font-size: clamp(1.18rem, 2vw, 1.52rem);
}

.nav-tabs {
  gap: 6px;
}

.nav-tab {
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 10px 13px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.86rem;
}

.nav-tab.active {
  background: #fff;
  color: var(--steel);
  box-shadow: none;
}

@media (max-width: 520px) {
  .sidebar {
    grid-template-columns: 1fr;
  }
}

.topbar {
  min-height: 0;
  margin: -24px calc(clamp(18px, 3vw, 34px) * -1) 22px;
  padding: 28px clamp(24px, 4vw, 42px) 30px;
  border-bottom-width: 5px;
  border-radius: 0 0 8px 8px;
  background:
    linear-gradient(90deg, rgba(7, 17, 31, 0.94), rgba(7, 17, 31, 0.8) 54%, rgba(7, 17, 31, 0.24)),
    url("assets/provided/hockey.jfif");
  background-position: center, right center;
  background-repeat: no-repeat;
  background-size: cover;
}

.topbar::before {
  display: none;
}

.topbar::after {
  left: clamp(24px, 4vw, 42px);
  right: auto;
  bottom: 22px;
  width: min(420px, 46vw);
  height: 3px;
}

.hero-brand,
.hero-graphic {
  display: none;
}

.hero-copy {
  max-width: 650px;
}

h1 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.75rem);
  line-height: 0.95;
  text-transform: none;
}

.hero-copy p:not(.eyebrow) {
  max-width: 560px;
  margin-top: 10px;
  color: #e7edf5;
  font-size: 1rem;
}

.hero-booking-link,
.hero-secondary-link,
.primary-action,
.secondary-action,
.submit-button,
.card-action,
.selected-program-alert button {
  border-radius: 8px;
  text-transform: none;
}

.hero-booking-link,
.hero-secondary-link {
  min-height: 44px;
  margin-top: 16px;
  padding: 11px 16px;
}

.section-heading {
  align-items: end;
  margin-bottom: 14px;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
}

.section-heading p {
  max-width: 680px;
  margin-bottom: 0;
}

.booking-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.booking-steps span {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(12, 24, 44, 0.04);
}

.booking-steps strong {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #e8eef6;
  color: var(--dark);
  font-size: 0.88rem;
}

.booking-steps .is-active {
  border-color: rgba(237, 28, 36, 0.28);
  color: var(--dark);
}

.booking-steps .is-active strong {
  background: var(--accent);
  color: #fff;
}

#booking .seasonal-showcase {
  display: none;
}

.program-groups {
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.group-card {
  min-height: 0;
  gap: 3px;
  padding: 12px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
}

.group-card strong {
  font-size: 0.92rem;
}

.group-card span {
  display: none;
}

.group-card.active {
  border-color: rgba(237, 28, 36, 0.22);
  background: #fff2f3;
  box-shadow: none;
}

.group-card.active strong {
  color: var(--accent-dark);
}

.booking-tools {
  grid-template-columns: repeat(2, minmax(220px, 260px));
  align-items: end;
  justify-content: start;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.booking-tools label,
.booking-form label {
  color: #344255;
  font-size: 0.92rem;
  font-weight: 800;
}

.selected-program-alert {
  align-items: center;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(237, 28, 36, 0.24);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.selected-program-alert strong {
  font-size: 1.05rem;
}

.selected-program-alert p {
  margin-top: 2px;
  font-size: 0.92rem;
}

.program-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 370px), 1fr));
  gap: 18px;
}

.program-card,
.booking-form,
.checkout-summary,
.panel,
.booking-panel,
.confirmation {
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  box-shadow: var(--soft-shadow);
}

.program-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 16px;
  background: #fff;
}

.program-art {
  min-height: clamp(178px, 17vw, 220px);
  margin: -16px -16px 4px;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.program-art::after {
  background: linear-gradient(180deg, transparent 45%, rgba(7, 17, 31, 0.74));
}

.program-art span {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(7, 17, 31, 0.82);
  font-size: 0.72rem;
}

.program-card:hover {
  transform: translateY(-2px);
  border-color: rgba(237, 28, 36, 0.26);
  box-shadow: 0 18px 36px rgba(12, 24, 44, 0.12);
}

.program-card.selected {
  outline: 0;
  border-color: rgba(237, 28, 36, 0.52);
  box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.12), var(--soft-shadow);
}

.program-card > strong {
  color: var(--dark);
  font-size: 1.12rem;
  line-height: 1.18;
}

.program-card > p:not(.date-summary) {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #344255;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.program-tags {
  max-height: 72px;
  margin-top: 2px;
  overflow: hidden;
}

.program-tags span {
  border-color: #e2e9f1;
  border-radius: 999px;
  background: #f6f9fc;
  color: #42526a;
  font-size: 0.72rem;
}

.program-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  margin-top: 2px;
  padding-top: 12px;
  border-top: 1px solid #eef2f6;
}

.program-meta span:first-child {
  color: var(--dark);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.15;
}

.program-meta span:last-child {
  text-align: right;
}

.availability-row {
  display: grid;
  grid-template-columns: minmax(112px, 0.85fr) minmax(0, 1.35fr);
  align-items: center;
  gap: 12px;
  margin-top: 0;
  border: 1px solid #dce8ef;
  border-left: 0;
  border-radius: 8px;
  background: #f7fbfd;
}

.availability-row strong {
  min-width: 0;
  margin: 0;
  line-height: 1.12;
}

.availability-row span {
  min-width: 0;
  line-height: 1.28;
}

.date-summary {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
  background: #f4f7fb;
  line-height: 1.34;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.card-action {
  margin-top: auto;
  min-height: 48px;
  padding: 12px;
  background: var(--accent);
}

.booking-workspace {
  gap: 18px;
}

.checkout-sidebar {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 92px;
}

.booking-form,
.checkout-summary {
  padding: 20px;
}

.booking-cart-panel {
  padding: 18px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--app-shadow-light);
}

.registration-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(160px, 0.6fr);
  gap: 10px;
}

.academy-registration-action-hint {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(21, 126, 86, 0.24);
  border-radius: 6px;
  background: #f2fbf7;
  color: #174c39;
  font-size: 0.9rem;
  line-height: 1.45;
}

.registration-actions .secondary-action {
  min-height: 52px;
  border: 1px solid var(--soft-line);
  background: #fff;
  color: var(--app-text);
}

.booking-cart-head,
.booking-cart-item,
.booking-cart-total {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.booking-cart-head h3 {
  margin: 0;
  color: var(--app-text);
  font-size: 1.15rem;
}

.booking-cart-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.booking-cart-item {
  padding: 10px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--app-surface-alt);
}

.booking-cart-item div {
  display: grid;
  gap: 3px;
}

.booking-cart-item strong,
.booking-cart-total strong {
  color: var(--app-text);
}

.booking-cart-item span,
.booking-cart-item small,
.booking-cart-total span {
  color: var(--app-muted);
  font-weight: 750;
}

.cart-link {
  border: 0;
  background: transparent;
  color: var(--app-red);
  font-weight: 850;
  cursor: pointer;
}

.booking-cart-total {
  padding-top: 10px;
  border-top: 1px solid var(--soft-line);
}

.cart-checkout-button {
  width: 100%;
  margin-top: 10px;
}

input,
select,
textarea {
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  padding: 12px 13px;
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(237, 28, 36, 0.13);
  border-color: rgba(237, 28, 36, 0.55);
}

.consent-stack,
.program-choice-group,
.camp-policy {
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #f7fafc;
}

.policy-link {
  color: var(--red);
  letter-spacing: 0;
  text-transform: none;
}

.policy-modal-shell {
  border-radius: 8px;
}

.policy-content section,
.policy-content details {
  border-color: var(--soft-line);
  border-radius: 8px;
  background: #f7fafc;
}

.policy-content h3 {
  color: var(--steel);
}

.policy-content p {
  color: var(--muted);
  letter-spacing: 0;
}

.summary-list div {
  border-bottom-color: #edf2f7;
}

.checkout-summary {
  position: static;
  top: 92px;
}

.checkout-summary h3 {
  font-size: 1.25rem;
}

@media (max-width: 1120px) {
  .program-groups {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .sidebar {
    grid-template-columns: 1fr;
    align-items: stretch;
    padding: 14px;
  }

  main {
    padding: 18px;
  }

  .topbar {
    margin: -18px -18px 20px;
    padding: 24px 18px 26px;
    background-position: center, center;
  }

  .section-heading {
    align-items: flex-start;
  }

  .checkout-sidebar {
    position: static;
  }

  .app-menu,
  .nav-tabs {
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-width: 720px) {
  .booking-steps,
  .program-groups,
  .booking-tools {
    grid-template-columns: 1fr;
  }

  .booking-steps span {
    min-height: 48px;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 2.25rem;
  }

  .topbar {
    min-height: 0;
  }

  .program-grid {
    grid-template-columns: 1fr;
  }
}

/* Back-office app refresh: parent/player, staff, and admin surfaces. */
#account,
#staff,
#admin {
  --app-bg: #f6f8fb;
  --app-surface: #ffffff;
  --app-surface-alt: #f8fafc;
  --app-line: #e0e8f1;
  --app-line-strong: #c8d6e5;
  --app-text: #172033;
  --app-muted: #637086;
  --app-brand: #0e0a64;
  --app-danger: #e0100d;
  --app-success: #07865f;
  --app-shadow: 0 12px 26px rgba(15, 31, 54, 0.07);
  --app-shadow-light: 0 1px 2px rgba(15, 31, 54, 0.06);
  min-width: 0;
}

/* MyCHA family home — CHA logo palette: navy #0e0a64, red #e0100d, and white. */
#account .mycha-parent-home {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid #deddf0;
  border-top: 5px solid #e0100d;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(14, 10, 100, 0.09);
}

#account .mycha-parent-home-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

#account .mycha-parent-home-hero h2 {
  margin: 3px 0 6px;
  color: #0e0a64;
  font-size: clamp(1.75rem, 3.2vw, 2.65rem);
  line-height: 1.02;
}

#account .mycha-parent-home-hero p,
#account .mycha-next-event p,
#account .mycha-next-event small {
  margin: 0;
  color: #62627a;
}

#account .mycha-next-event {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid #dad9ec;
  border-left: 5px solid #0e0a64;
  border-radius: 12px;
  background: #f9f9fd;
}

#account .mycha-next-event-date {
  display: grid;
  width: 62px;
  min-height: 62px;
  place-content: center;
  border-radius: 10px;
  color: #fff;
  background: #0e0a64;
  text-align: center;
}

#account .mycha-next-event-date span {
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#account .mycha-next-event-date strong {
  font-size: 1.25rem;
}

#account .mycha-next-event > div:nth-child(2) > span {
  color: #e0100d;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

#account .mycha-next-event h3 {
  margin: 2px 0 3px;
  color: #0e0a64;
}

#account .mycha-home-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

#account .mycha-home-actions > button {
  display: grid;
  min-width: 0;
  min-height: 118px;
  align-content: start;
  gap: 4px;
  padding: 14px;
  border: 1px solid #dad9ec;
  border-radius: 11px;
  color: #0e0a64;
  background: #fff;
  text-align: left;
}

#account .mycha-home-actions > button:hover,
#account .mycha-home-actions > button:focus-visible {
  border-color: #0e0a64;
  box-shadow: 0 0 0 3px rgba(14, 10, 100, 0.1);
}

#account .mycha-home-actions > button.is-primary {
  border-color: #e0100d;
  color: #fff;
  background: #e0100d;
}

#account .mycha-home-actions span {
  font-size: 0.76rem;
  font-weight: 850;
}

#account .mycha-home-actions strong {
  font-size: 1.75rem;
  line-height: 1;
}

#account .mycha-home-actions small {
  margin-top: auto;
  color: #6a6980;
  font-size: 0.76rem;
  line-height: 1.3;
}

#account .mycha-home-actions .is-primary small {
  color: rgba(255, 255, 255, 0.88);
}

#account .mycha-program-overview-list {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

#account .mycha-program-overview-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 13px;
  padding: 15px;
  border: 1px solid #deddf0;
  border-radius: 11px;
  background: #fff;
}

#account .mycha-program-overview-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #0e0a64;
  font-weight: 900;
}

#account .mycha-program-overview-copy > span {
  color: #e0100d;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

#account .mycha-program-overview-copy h4 {
  margin: 2px 0 10px;
  color: #0e0a64;
  font-size: 1.08rem;
}

#account .mycha-program-overview-copy dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

#account .mycha-program-overview-copy dt {
  color: #76758c;
  font-size: 0.67rem;
  font-weight: 850;
  text-transform: uppercase;
}

#account .mycha-program-overview-copy dd {
  margin: 3px 0 0;
  color: #24223e;
  font-size: 0.82rem;
  font-weight: 750;
}

#account .mycha-program-status {
  border-radius: 999px;
  padding: 5px 9px;
  color: #8b5200;
  background: #fff3d5;
  font-size: 0.7rem;
  font-weight: 900;
}

#account .mycha-program-status.good {
  color: #056049;
  background: #e2f7ef;
}

#account .mycha-program-empty {
  margin-bottom: 16px;
  padding: 18px;
  border: 1px dashed #b8b6d8;
  border-radius: 11px;
  background: #fafafd;
  text-align: center;
}

#account .mycha-program-empty strong {
  color: #0e0a64;
  font-size: 1.05rem;
}

#account .mycha-profile-sections {
  margin-top: 14px;
}

#account .mycha-section-copy small,
#account .mini-eyebrow {
  color: #e0100d;
}

#account .mycha-section-copy strong,
#account .mycha-section[open] .mycha-section-copy strong {
  color: #0e0a64;
}

@media (max-width: 820px) {
  #account .mycha-home-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #account .mycha-program-overview-copy dl {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  #account .mycha-parent-home {
    padding: 14px;
  }

  #account .mycha-parent-home-hero {
    display: grid;
  }

  #account .mycha-next-event,
  #account .mycha-program-overview-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  #account .mycha-next-event > button,
  #account .mycha-program-status {
    grid-column: 1 / -1;
  }

  #account .mycha-home-actions {
    grid-template-columns: 1fr;
  }

  #account .mycha-home-actions > button {
    min-height: 96px;
  }
}

body:has(#account.active) .topbar,
body:has(#staff.active) .topbar,
body:has(#admin.active) .topbar {
  display: none;
}

body:has(#account.active) main,
body:has(#staff.active) main,
body:has(#admin.active) main {
  padding-top: 18px;
}

body:has(#account.active),
body:has(#staff.active),
body:has(#admin.active) {
  background: #f5f7fb;
}

body:has(#account.active) .sidebar,
body:has(#staff.active) .sidebar,
body:has(#admin.active) .sidebar {
  align-items: center;
  border-bottom: 1px solid #dde6f0;
  padding-top: 10px;
  padding-bottom: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 26px rgba(15, 31, 54, 0.08);
}

body:has(#account.active) .brand-wordmark strong,
body:has(#staff.active) .brand-wordmark strong,
body:has(#admin.active) .brand-wordmark strong,
body:has(#account.active) .brand-wordmark span,
body:has(#staff.active) .brand-wordmark span,
body:has(#admin.active) .brand-wordmark span {
  color: #172033;
  letter-spacing: 0;
}

body:has(#account.active) .app-menu,
body:has(#staff.active) .app-menu,
body:has(#admin.active) .app-menu {
  color: #46566b;
}

body:has(#account.active) #sectionSelect,
body:has(#staff.active) #sectionSelect,
body:has(#admin.active) #sectionSelect {
  min-height: 44px;
  border: 1px solid #ccd9e7;
  background: #f8fafc;
  color: #172033;
}

body:has(#account.active) .nav-tab,
body:has(#staff.active) .nav-tab,
body:has(#admin.active) .nav-tab {
  min-height: 40px;
  border: 1px solid #d7e1ec;
  border-radius: 8px;
  padding: 9px 13px;
  background: #fff;
  color: #46566b;
  font-size: 0.84rem;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
}

body:has(#account.active) .nav-tab.active,
body:has(#staff.active) .nav-tab.active,
body:has(#admin.active) .nav-tab.active {
  border-color: rgba(237, 28, 36, 0.24);
  background: #fff4f5;
  color: #c8102e;
}

#account .section-heading,
#staff .section-heading,
#admin .section-heading {
  align-items: center;
  margin-bottom: 16px;
  padding: 18px 20px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: var(--app-shadow-light);
}

#account .section-heading h2,
#staff .section-heading h2,
#admin .section-heading h2 {
  color: var(--app-text);
  font-size: clamp(1.65rem, 2.4vw, 2.25rem);
  letter-spacing: 0;
  line-height: 1.05;
  text-transform: none;
}

#account .section-heading p,
#staff .section-heading p,
#admin .section-heading p,
#account p,
#staff p,
#admin p {
  color: var(--app-muted);
  line-height: 1.45;
}

#account .eyebrow,
#staff .eyebrow,
#admin .eyebrow {
  color: var(--app-danger);
  letter-spacing: 0;
}

#account h3,
#account h4,
#staff h3,
#staff h4,
#admin h3,
#admin h4 {
  letter-spacing: 0;
  text-transform: none;
}

#account .hub-access-panel,
#staff .staff-login-panel,
#staff .staff-schedule-panel,
#staff .staff-test-card,
#staff .staff-stopwatch-card,
#admin .calendar-panel,
#admin .booking-panel,
#admin .panel,
#admin .admin-status {
  border: 1px solid var(--app-line);
  border-left: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-surface);
  box-shadow: var(--app-shadow-light);
}

#account .hub-access-panel,
#staff .staff-login-panel {
  gap: 22px;
  align-items: start;
  padding: 20px;
}

#account .hub-access-panel h3,
#staff .staff-login-panel h3 {
  margin-top: 2px;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.08;
}

#account .account-auth-grid {
  grid-template-columns: minmax(280px, 1.2fr) minmax(260px, 0.8fr);
  align-items: start;
}

#account .hub-login-form,
#staff .staff-controls,
#admin .admin-queue-tools,
#admin .report-controls,
#admin .testing-report-tools,
#admin .admin-client-tools,
#admin .staff-account-form,
#admin .broadcast-form,
#admin .summer-planner-controls,
#admin .gym-hours-grid,
#admin .import-form {
  gap: 10px;
}

#account .hub-login-form,
#admin .staff-account-form,
#admin .import-form,
#admin .broadcast-form {
  padding: 14px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-surface-alt);
}

#account .hub-login-form h4 {
  color: var(--app-text);
  font-size: 1rem;
}

#account label,
#staff label,
#admin label,
#account .hub-login-form label,
#staff .staff-controls label,
#staff .staff-test-card label,
#staff .staff-stopwatch-card label,
#admin .admin-queue-tools label,
#admin .report-controls label,
#admin .testing-report-tools label,
#admin .admin-client-tools label,
#admin .staff-account-form label,
#admin .broadcast-form label,
#admin .summer-planner-controls label {
  color: #46566b;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

#account input,
#account select,
#account textarea,
#staff input,
#staff select,
#staff textarea,
#admin input,
#admin select,
#admin textarea,
#staff .staff-controls input,
#staff .staff-controls select,
#staff .staff-test-card input,
#staff .staff-test-card select,
#staff .staff-stopwatch-card input,
#staff .staff-stopwatch-card textarea,
#admin .admin-queue-tools input,
#admin .admin-queue-tools select,
#admin .report-controls select,
#admin .admin-client-tools input,
#admin .staff-account-form input,
#admin .staff-account-form select,
#admin .summer-planner-controls input,
#admin .gym-hours-grid input {
  min-height: 42px;
  border: 1px solid var(--app-line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--app-text);
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(15, 31, 54, 0.02);
}

#account input:focus,
#account select:focus,
#account textarea:focus,
#staff input:focus,
#staff select:focus,
#staff textarea:focus,
#admin input:focus,
#admin select:focus,
#admin textarea:focus {
  border-color: rgba(237, 28, 36, 0.48);
  outline: 3px solid rgba(237, 28, 36, 0.1);
}

#account .primary-action,
#staff .primary-action,
#admin .primary-action,
#account .secondary-action,
#staff .secondary-action,
#admin .secondary-action {
  min-height: 40px;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.9rem;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
}

#account .primary-action,
#staff .primary-action,
#admin .primary-action {
  background: var(--app-danger);
  color: #fff;
}

#account .secondary-action,
#staff .secondary-action,
#admin .secondary-action {
  border: 1px solid var(--app-line-strong);
  background: #fff;
  color: var(--app-text);
}

#account .secondary-action:hover,
#staff .secondary-action:hover,
#admin .secondary-action:hover {
  border-color: rgba(237, 28, 36, 0.35);
  color: var(--app-danger);
}

#account .danger-action,
#staff .danger-action,
#admin .danger-action {
  border-color: rgba(237, 28, 36, 0.45);
  background: #fff7f7;
  color: #b42318;
}

#account .hub-remove-profile-form {
  margin-top: 0.75rem;
  border-top: 1px solid rgba(237, 28, 36, 0.18);
  padding-top: 0.75rem;
}

#hubStatus,
#staffRosterStatus,
#staffResultStatus,
#staffAvailabilityStatus,
#staffLoginStatus,
#staffAccountStatus,
#adminClientStatus,
#importStatus,
#gymHoursStatus,
#broadcastStatus,
#summerPlannerStatus {
  border-radius: 8px;
  color: var(--app-muted);
  font-weight: 750;
}

#account .hub-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

#account .hub-home-grid {
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

#account .hub-home-card,
#account .hub-mini-card,
#account .hub-registration-card,
#staff .staff-profile-summary,
#staff .staff-schedule-card,
#admin .admin-client-card,
#admin .staff-account-card,
#admin .testing-report-admin-card,
#admin .summer-recommendation-card,
#admin .summer-candidate-card,
#admin .gym-hours-grid label {
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--app-shadow-light);
}

#account .hub-home-card {
  min-height: 112px;
  gap: 7px;
  padding: 14px;
  background:
    linear-gradient(180deg, #ffffff, #fbfdff),
    var(--app-surface);
}

#account .hub-home-card span,
#account .hub-home-card strong,
#account .hub-mini-card strong,
#account .hub-registration-card strong {
  letter-spacing: 0;
  text-transform: none;
}

#account .hub-home-card span {
  color: var(--app-muted);
  font-size: 0.76rem;
}

#account .hub-home-card strong {
  color: var(--app-text);
  font-size: 1.15rem;
}

#account .hub-home-card p,
#account .hub-mini-card span,
#account .hub-registration-card span,
#account .hub-registration-card small {
  color: var(--app-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

#account .hub-summary-panel,
#account .hub-athletes-panel,
#account .hub-registrations-panel,
#account .hub-grit-panel,
#account .hub-testing-panel,
#account .notification-panel {
  grid-column: auto;
  min-width: 0;
}

#account .hub-registrations-panel,
#account .hub-testing-panel,
#account .notification-panel {
  grid-column: 1 / -1;
}

#account .notification-panel #notificationStatus {
  border-color: var(--app-line);
  border-radius: 8px;
  background: var(--app-surface-alt);
}

#account {
  max-width: 1180px;
  margin: 0 auto;
}

#account .section-heading {
  display: block;
  margin-bottom: 12px;
  padding: 2px 2px 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#account .section-heading h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
}

#account .section-heading p {
  max-width: 650px;
  margin-top: 6px;
  font-size: 1rem;
}

#account .hub-access-panel {
  display: block;
  overflow: hidden;
  max-width: 100%;
  padding: 0;
  border-color: #dbe5ef;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 31, 54, 0.1);
}

#account .hub-access-panel > div:first-child {
  padding: 22px 26px;
  border-bottom: 1px solid #e5ecf4;
  background:
    linear-gradient(135deg, rgba(237, 28, 36, 0.045), rgba(23, 42, 114, 0.035)),
    #fff;
}

#account .hub-access-panel > div:first-child .eyebrow {
  margin-bottom: 6px;
  color: #c8102e;
  font-size: 0.75rem;
}

#account .hub-access-panel > div:first-child h3 {
  max-width: 720px;
  margin: 0;
  color: #101828;
  font-size: clamp(1.55rem, 2vw, 2rem);
}

#account .hub-access-panel > div:first-child p {
  max-width: 760px;
  margin: 8px 0 0;
  font-size: 0.96rem;
}

#account .account-auth-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 18px;
  align-items: start;
  padding: 20px;
  background: #fff;
}

#account .hub-login-form {
  gap: 12px;
  padding: 18px;
  border-color: #dbe5ef;
  border-radius: 8px;
  background: #f8fafc;
}

#account .hub-login-form:first-child {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#account .hub-login-form:first-child h4,
#account .hub-login-form:first-child .primary-action {
  grid-column: 1 / -1;
}

#account .hub-login-form h4 {
  margin-bottom: 2px;
  font-size: 1.1rem;
}

#account .hub-login-form label {
  gap: 7px;
  color: #344054;
  font-size: 0.82rem;
}

#account .hub-login-form input {
  min-height: 46px;
  border-color: #cdd9e6;
  background: #fff;
  font-size: 0.95rem;
  font-weight: 650;
}

#account .hub-login-form .primary-action,
#account .hub-login-form .secondary-action {
  min-height: 46px;
  font-weight: 850;
}

#account #hubStatus {
  margin: 0;
  padding: 13px 20px;
  border-top: 1px solid #e5ecf4;
  background: #fbfcfe;
  color: #526173;
}

#account .hub-home-grid {
  margin-top: 14px;
}

#account .hub-home-card {
  min-height: 102px;
  border-color: #dce6f1;
  background: #fff;
}

#account .hub-layout {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

#account .hub-layout > .panel {
  min-width: 0;
  padding: 18px;
  border-color: #dbe5ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 31, 54, 0.06);
}

#account .hub-home-grid {
  order: 0;
}

#account .hub-home-card {
  min-height: 94px;
  padding: 15px 16px;
}

#account .hub-home-card span {
  margin-bottom: 2px;
}

#account .hub-home-card strong {
  font-size: 1.08rem;
}

#account .hub-home-card p {
  font-size: 0.82rem;
  line-height: 1.35;
}

#account .hub-summary-panel {
  order: 1;
  grid-column: 1 / span 4;
}

#account .hub-athletes-panel {
  order: 1;
  grid-column: 5 / span 4;
}

#account .hub-testing-panel {
  order: 1;
  grid-column: 9 / -1;
}

#account .hub-registrations-panel {
  order: 2;
  grid-column: 1 / span 8;
}

#account .hub-grit-panel {
  order: 2;
  grid-column: 9 / -1;
}

#account .notification-panel {
  order: 3;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.7fr) auto;
  gap: 12px;
  align-items: end;
}

#account .hub-layout h3 {
  margin: 0 0 12px;
  color: #101828;
  font-size: 1.08rem;
  line-height: 1.2;
}

#account .hub-layout p {
  margin: 0;
  color: #526173;
  font-size: 0.95rem;
}

#account .detail-list {
  gap: 8px;
}

#account .detail-list div {
  gap: 10px;
  padding-bottom: 8px;
  border-bottom-color: #edf2f7;
}

#account .detail-list dt,
#account .detail-list dd {
  font-size: 0.82rem;
}

#account .hub-card-list,
#account .hub-registration-list {
  gap: 8px;
}

#account .hub-registration-card,
#account .hub-mini-card {
  border-color: #dce6f1;
  border-radius: 8px;
  background: #fbfdff;
}

#account .hub-registration-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 12px 14px;
}

#account .hub-registration-card > div:first-child {
  display: grid;
  gap: 2px;
}

#account .hub-registration-card strong,
#account .hub-mini-card strong {
  display: block;
  color: #071b50;
  font-size: 0.98rem;
}

#account .hub-registration-card span,
#account .hub-registration-card small,
#account .hub-mini-card span,
#account .hub-mini-card small {
  display: block;
  color: #56657a;
  font-size: 0.82rem;
  line-height: 1.35;
}

#account .hub-registration-card > div:last-child {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  text-align: right;
}

#account .hub-registration-card .status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  background: #edf8f2;
  color: #08734f;
  font-size: 0.78rem;
}

#account .hub-testing-panel p,
#account .hub-grit-panel p {
  padding: 12px;
  border: 1px dashed #ccd9e7;
  border-radius: 8px;
  background: #f8fafc;
}

#account .notification-panel h3,
#account .notification-panel > p:first-of-type,
#account .notification-panel .checkbox-line,
#account .notification-panel #notificationStatus {
  grid-column: 1 / -1;
}

#account .notification-panel > p:first-of-type {
  margin-top: -4px;
}

#account .notification-panel label {
  gap: 6px;
  color: #344054;
  font-size: 0.82rem;
}

#account .notification-panel input,
#account .notification-panel select {
  min-height: 44px;
  border-color: #cdd9e6;
  background: #fff;
}

#account .notification-panel .checkbox-line {
  display: flex;
  align-items: center;
  min-height: 38px;
  margin: 0;
  color: #526173;
  font-size: 0.88rem;
}

#account .notification-panel .checkbox-line input {
  min-height: 0;
}

#account .notification-panel #enablePushNotifications {
  align-self: end;
  min-width: 190px;
}

#account.mycha-profile-mode .hub-access-panel > div:first-child,
#account.mycha-profile-mode .hub-layout {
  display: none;
}

#account.mycha-profile-mode .hub-access-panel {
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

#account.mycha-profile-mode .account-auth-grid {
  display: block;
  padding: 0;
  background: transparent;
}

#account.mycha-profile-mode #hubStatus {
  margin-top: 12px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 31, 54, 0.06);
}

#account .mycha-profile-shell {
  overflow: hidden;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 31, 54, 0.12);
}

#account .mycha-profile-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid #e5ecf4;
  background:
    linear-gradient(135deg, rgba(237, 28, 36, 0.055), rgba(23, 42, 114, 0.04)),
    #fff;
}

#account .mycha-profile-head h3 {
  margin: 3px 0 6px;
  color: #071b50;
  font-size: clamp(1.55rem, 2.2vw, 2.15rem);
  line-height: 1.08;
}

#account .mycha-profile-head p {
  max-width: 640px;
  margin: 0;
  color: #526173;
  font-size: 0.96rem;
}

#account .mini-eyebrow {
  color: #c8102e;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

#account .mycha-profile-actions {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

#account .mycha-pill,
#account .mycha-section-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border: 1px solid #dbe5ef;
  border-radius: 999px;
  background: #f8fafc;
  color: #344054;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

#account .mycha-pill {
  padding: 5px 10px;
}

#account .mycha-pill.good,
#account .mycha-section-status.good {
  border-color: #bfe8d6;
  background: #edf8f2;
  color: #08734f;
}

#account .mycha-section-status.warn {
  border-color: #f7d08b;
  background: #fff8e7;
  color: #8a5a00;
}

#account .mycha-profile-actions .secondary-action,
#account .mycha-button-row .primary-action,
#account .mycha-button-row .secondary-action,
#account .mycha-section-button {
  box-shadow: 0 8px 18px rgba(15, 31, 54, 0.12);
}

#account .mycha-profile-sections {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: #f5f7fb;
}

#account .mycha-section {
  overflow: hidden;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #fff;
}

#account .mycha-section[open] {
  border-color: #c8d6e5;
  box-shadow: 0 10px 26px rgba(15, 31, 54, 0.08);
}

#account .mycha-section summary {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  min-height: 78px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

#account .mycha-section summary::-webkit-details-marker {
  display: none;
}

#account .mycha-section-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid #dbe5ef;
  border-radius: 999px;
  background: #f8fafc;
  color: #071b50;
  font-size: 0.9rem;
  font-weight: 900;
}

#account .mycha-section-toggle::before {
  content: ">";
}

#account .mycha-section[open] .mycha-section-toggle::before {
  content: "v";
}

#account .mycha-section-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

#account .mycha-section-copy small {
  color: #c8102e;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

#account .mycha-section-copy strong {
  overflow-wrap: anywhere;
  color: #071b50;
  font-size: 1rem;
  line-height: 1.15;
}

#account .mycha-section-copy em {
  color: #5d6b80;
  font-size: 0.86rem;
  font-style: normal;
  line-height: 1.35;
}

#account .mycha-section-status {
  padding: 5px 10px;
}

#account .mycha-section-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid #d3deea;
  border-radius: 8px;
  background: #fff;
  color: #172033;
  font-size: 0.78rem;
  font-weight: 900;
}

#account .mycha-section-body {
  padding: 0 16px 16px 62px;
}

#account .mycha-profile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

#account .mycha-profile-grid > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid #e2eaf3;
  border-radius: 8px;
  background: #fbfdff;
}

#account .mycha-profile-grid span {
  display: block;
  margin-bottom: 4px;
  color: #66758a;
  font-size: 0.76rem;
  font-weight: 800;
}

#account .mycha-profile-grid strong {
  display: block;
  overflow-wrap: anywhere;
  color: #071b50;
  font-size: 0.9rem;
}

#account .mycha-leaderboard-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  gap: 14px;
}

#account .mycha-public-preview,
#account .mycha-display-options {
  min-width: 0;
  padding: 14px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #fff;
}

#account .mycha-public-preview h4,
#account .mycha-display-options h4 {
  margin: 0 0 8px;
  color: #071b50;
  font-size: 1rem;
}

#account .mycha-display-options p,
#account .mycha-public-preview p {
  margin: 0 0 12px;
  color: #526173;
  font-size: 0.88rem;
}

#account .mycha-preview-board {
  overflow: hidden;
  border: 1px solid #d3deea;
  border-radius: 8px;
  background: #f8fafc;
}

#account .mycha-preview-head,
#account .mycha-preview-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

#account .mycha-preview-head {
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px 12px;
  background: #071b50;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

#account .mycha-preview-row {
  padding: 12px;
}

#account .mycha-preview-row > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #ed1c24;
  color: #fff;
  font-weight: 900;
}

#account .mycha-preview-row strong {
  display: block;
  color: #071b50;
  font-size: 1rem;
}

#account .mycha-preview-row small {
  display: block;
  color: #64748b;
  font-size: 0.78rem;
}

#account .mycha-preview-row em {
  color: #071b50;
  font-size: 1rem;
  font-style: normal;
  font-weight: 900;
}

#account .mycha-private-note {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #f8fafc;
  color: #526173;
  font-size: 0.86rem;
  line-height: 1.45;
}

#account .mycha-private-note strong {
  display: block;
  margin-bottom: 4px;
  color: #071b50;
}

#account .mycha-display-options {
  display: grid;
  gap: 10px;
}

#account .mycha-choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #fbfdff;
  color: #172033;
}

#account .mycha-choice.is-selected {
  border-color: #ed1c24;
  background: #fff6f6;
}

#account .mycha-choice input {
  width: 18px;
  height: 18px;
}

#account .mycha-choice span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

#account .mycha-choice strong {
  color: #071b50;
  font-size: 0.91rem;
}

#account .mycha-choice small {
  color: #5d6b80;
  font-size: 0.78rem;
  line-height: 1.35;
}

#account .mycha-choice em {
  color: #64748b;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 900;
}

#account .mycha-initials-overrides {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #f8fafc;
}

#account .mycha-initials-overrides > strong {
  color: #071b50;
  font-size: 0.91rem;
}

#account .mycha-initials-overrides > p {
  margin: 0;
}

#account .mycha-initials-override {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 10px;
  align-items: center;
}

#account .mycha-initials-override span,
#account .mycha-initials-override small {
  display: block;
}

#account .mycha-initials-override small {
  margin-top: 2px;
  color: #5d6b80;
  font-size: 0.76rem;
}

#account .mycha-initials-override input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  text-align: center;
  text-transform: uppercase;
}

#account .mycha-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2px;
}

#account .notification-panel #notificationStatus {
  padding: 10px 12px;
  border-style: dashed;
  font-size: 0.84rem;
}

#staff .staff-testing-shell {
  gap: 14px;
}

#staff.active {
  max-width: 1180px;
  margin: 0 auto;
}

#staff .section-heading {
  display: block;
  margin-bottom: 12px;
  padding: 2px 2px 8px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#staff .section-heading p {
  max-width: 620px;
  margin-top: 4px;
}

#staff .staff-login-panel {
  grid-template-columns: minmax(220px, 0.46fr) minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

#staff .staff-controls {
  grid-template-columns: repeat(4, minmax(145px, 1fr));
  align-items: end;
}

#staff .staff-controls button {
  grid-column: auto;
  justify-self: start;
  min-width: 150px;
}

#staff .staff-profile-summary {
  grid-column: 1 / -1;
  padding: 12px;
  background: var(--app-surface-alt);
}

#staff .staff-service-options {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-surface-alt);
}

#staff .staff-service-options legend,
#admin .staff-service-options legend {
  color: var(--app-text);
  font-size: 0.84rem;
  letter-spacing: 0;
  text-transform: none;
}

#staff .staff-service-options label,
#admin .staff-service-options label {
  min-height: 38px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  color: var(--app-text);
  font-size: 0.86rem;
  font-weight: 750;
}

#staff .weekly-day-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(100px, 0.7fr) minmax(100px, 0.7fr);
  gap: 8px;
  align-items: center;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: #fff;
}

#staff .weekly-availability-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#staff .staff-schedule-panel,
#staff .staff-test-card,
#staff .staff-stopwatch-card {
  padding: 18px;
}

#staff .staff-test-grid {
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
}

#staff .stopwatch-display {
  border-radius: 8px;
}

#admin .admin-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

#admin .admin-status {
  margin: 0 0 14px;
  background: #fff;
  color: var(--app-muted);
}

#admin .admin-command-center {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

#admin .admin-command-card {
  min-height: 96px;
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: #fff;
  color: var(--app-text);
  text-align: left;
  box-shadow: var(--app-shadow-light);
  cursor: pointer;
}

#admin .admin-command-card span {
  color: var(--app-red);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

#admin .admin-command-card strong {
  font-size: 1.05rem;
  line-height: 1.1;
}

#admin .admin-command-card small {
  color: var(--app-muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
}

#admin .admin-command-card.active {
  border-color: #14205c;
  background: #f7faff;
  box-shadow: inset 0 0 0 2px #14205c, var(--app-shadow-light);
}

#admin [data-admin-panel][hidden] {
  display: none !important;
}

#admin .admin-layout {
  grid-template-columns: minmax(360px, 0.92fr) minmax(540px, 1.35fr);
  align-items: start;
  gap: 14px;
}

#admin .admin-stats,
#admin .admin-report-panel,
#admin .testing-report-admin-panel,
#admin .admin-client-panel,
#admin [data-admin-panel="staff"],
#admin [data-admin-panel="messages"],
#admin .summer-planner-panel,
#admin .broadcast-panel {
  grid-column: 1 / -1;
}

#admin .admin-stats {
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 10px;
}

#admin .stat-card {
  min-height: 88px;
  gap: 7px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  box-shadow: var(--app-shadow-light);
}

#admin .stat-card span {
  color: var(--app-muted);
  font-size: 0.76rem;
  letter-spacing: 0;
  text-transform: none;
}

#admin .stat-card strong {
  color: var(--app-text);
  font-size: 1.55rem;
}

#admin .calendar-panel,
#admin .booking-panel,
#admin .panel {
  padding: 18px;
  min-width: 0;
}

#admin .calendar-header h3,
#staff .calendar-header h3,
#admin .admin-panel-heading h3,
#admin .panel h3 {
  color: var(--app-text);
  font-size: 1.14rem;
  line-height: 1.15;
}

#admin .calendar-header span,
#staff .calendar-header span {
  border-radius: 999px;
  padding: 5px 9px;
  background: #eef4fb;
  color: var(--app-muted);
  font-size: 0.78rem;
  font-weight: 850;
}

#admin .calendar-grid {
  gap: 6px;
}

#admin .day-cell {
  min-height: 106px;
  border-color: var(--app-line);
  border-radius: 8px;
  background: #fbfdff;
}

#admin .day-cell strong {
  color: var(--app-text);
}

#admin .slot {
  border-radius: 7px;
  background: #e8f5f6;
  color: #1f5960;
}

#admin .admin-panel-heading {
  align-items: flex-start;
  margin-bottom: 12px;
}

#admin .admin-panel-heading p {
  color: var(--app-muted);
  font-size: 0.9rem;
  font-weight: 700;
}

#admin .admin-queue-tools,
#admin .report-controls,
#admin .testing-report-tools,
#admin .admin-client-tools {
  align-items: end;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-surface-alt);
}

#admin .admin-queue-tools {
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 0.55fr) minmax(170px, 0.6fr);
}

#admin .report-controls {
  grid-template-columns: minmax(130px, 0.5fr) minmax(260px, 1.1fr) minmax(190px, 0.75fr) minmax(240px, 0.95fr);
}

#admin .report-download-grid {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 8px;
}

#admin .report-download-grid .secondary-action {
  justify-content: center;
  border-color: #152033;
  background: #152033;
  color: #fff;
  font-weight: 850;
}

#admin .report-preview-details {
  margin-top: 10px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

#admin .report-preview-details summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: var(--app-text);
  font-size: 0.95rem;
  font-weight: 850;
  cursor: pointer;
}

#admin .report-preview-details[open] {
  padding-bottom: 12px;
}

#admin .report-preview-details[open] summary {
  border-bottom: 1px solid var(--app-line);
  background: var(--app-surface-alt);
}

#admin .report-preview-details .report-dashboard-grid,
#admin .report-preview-details .testing-report-summary,
#admin .report-preview-details .report-table-wrap {
  margin: 12px;
}

#admin .report-dashboard-grid {
  gap: 10px;
}

#admin .booking-list,
#admin .testing-report-list,
#admin .admin-client-list,
#admin .staff-account-list {
  gap: 9px;
}

#admin .booking-item {
  border: 1px solid var(--app-line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  box-shadow: var(--app-shadow-light);
}

#admin .booking-item header {
  align-items: flex-start;
}

#admin .booking-item header div,
#admin .booking-compact {
  gap: 3px;
}

#admin .booking-item header small,
#admin .booking-flags span,
#admin .booking-detail-grid span,
#admin .booking-detail-grid strong,
#admin .testing-report-admin-card header small,
#admin .testing-report-admin-meta {
  color: var(--app-muted);
  letter-spacing: 0;
  text-transform: none;
}

#admin .booking-flags {
  margin: 8px 0;
}

#admin .booking-flags span,
#admin .testing-report-admin-meta span {
  border-color: var(--app-line);
  border-radius: 999px;
  background: var(--app-surface-alt);
}

#admin .testing-report-admin-level {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: #eef5ff;
  color: var(--app-text);
  font-weight: 850;
}

#admin .testing-report-admin-level strong {
  color: var(--app-muted);
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

#admin .testing-report-admin-level span {
  color: var(--app-text);
}

#admin .booking-detail-grid div {
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-surface-alt);
}

#admin .booking-details summary {
  color: var(--app-danger);
  letter-spacing: 0;
  text-transform: none;
}

#admin .queue-actions {
  grid-template-columns: repeat(auto-fit, minmax(120px, max-content));
  justify-content: start;
}

#admin .queue-actions button {
  min-height: 36px;
  border-color: var(--app-line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--app-text);
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: none;
}

#admin .testing-report-summary {
  border-color: var(--app-line);
  border-radius: 8px;
  background: var(--app-surface-alt);
  color: var(--app-text);
  font-weight: 800;
}

#admin .testing-report-admin-card {
  padding: 13px;
}

#admin .testing-report-admin-card header strong {
  color: var(--app-text);
  font-size: 1.02rem;
}

#admin .testing-report-metrics {
  gap: 7px;
}

#admin .testing-metric-row {
  border: 1px solid var(--app-line);
  border-radius: 8px;
  background: var(--app-surface-alt);
}

#admin .report-table-wrap {
  border-color: var(--app-line);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(15, 31, 54, 0.03);
}

#admin .admin-report-table th {
  background: #f3f6fa;
  color: #46566b;
  letter-spacing: 0;
  text-transform: none;
}

#admin .admin-report-table td {
  color: var(--app-muted);
  font-weight: 700;
}

#admin .admin-client-card {
  grid-template-columns: minmax(0, 1fr) auto;
}

#admin .admin-client-card strong,
#admin .staff-account-card strong {
  color: var(--app-text);
  letter-spacing: 0;
  text-transform: none;
}

#admin .admin-client-actions {
  gap: 6px;
}

#admin .admin-purpose .feature-list li {
  color: var(--app-text);
  font-weight: 750;
}

#admin .gym-hours-grid label {
  color: var(--app-text);
  text-transform: none;
}

#admin .staff-service-options {
  border-color: var(--app-line);
  border-radius: 8px;
  background: var(--app-surface-alt);
}

@media (max-width: 1180px) {
  #account .account-auth-grid,
  #account .hub-access-panel,
  #staff .staff-login-panel,
  #staff .staff-test-grid,
  #admin .admin-layout {
    grid-template-columns: 1fr;
  }

  #admin .calendar-panel,
  #admin .booking-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  #account .hub-home-grid,
  #account .hub-layout,
  #account .mycha-profile-grid,
  #account .mycha-leaderboard-grid,
  #admin .admin-stats,
  #admin .admin-queue-tools,
  #admin .report-controls,
  #admin .report-download-grid,
  #admin .testing-report-tools,
  #admin .admin-client-tools,
  #staff .staff-controls,
  #staff .staff-service-options,
  #staff .weekly-availability-grid,
  #admin .staff-account-form,
  #admin .broadcast-form {
    grid-template-columns: 1fr;
  }

  #staff .weekly-day-row {
    grid-template-columns: 1fr;
  }

  #account .hub-summary-panel,
  #account .hub-athletes-panel,
  #account .hub-registrations-panel,
  #account .hub-grit-panel,
  #account .hub-testing-panel,
  #account .notification-panel {
    grid-column: 1 / -1;
  }

  #staff .staff-controls button,
  #account .primary-action,
  #account .secondary-action,
  #staff .primary-action,
  #staff .secondary-action,
  #admin .primary-action,
  #admin .secondary-action {
    width: 100%;
    justify-self: stretch;
  }

  #admin .admin-actions,
  #admin .queue-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .registration-actions {
    grid-template-columns: 1fr;
  }

  .booking-form.academy-registration-flow .registration-actions {
    position: sticky;
    bottom: max(8px, env(safe-area-inset-bottom));
    z-index: 5;
    width: 100%;
    padding: 10px;
    border: 1px solid var(--soft-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 8px 24px rgba(16, 24, 32, 0.16);
  }

  .booking-form.academy-registration-flow .registration-actions button {
    width: 100%;
    min-height: 52px;
  }

  #account .account-auth-grid,
  #account .hub-login-form:first-child,
  #account .notification-panel {
    grid-template-columns: 1fr;
  }

  #account .hub-access-panel > div:first-child,
  #account .account-auth-grid {
    padding: 20px;
  }

  #account .hub-login-form {
    padding: 16px;
  }

  #account .mycha-profile-head {
    display: grid;
    padding: 18px;
  }

  #account .mycha-profile-actions {
    justify-content: stretch;
  }

  #account .mycha-profile-actions .mycha-pill {
    width: 100%;
  }

  #account .mycha-profile-sections {
    padding: 10px;
  }

  #account .mycha-section summary {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 74px;
    padding: 12px;
  }

  #account .mycha-section-copy em {
    font-size: 0.8rem;
  }

  #account .mycha-section-button {
    display: none;
  }

  #account .mycha-section-status {
    padding: 4px 8px;
    font-size: 0.72rem;
  }

  #account .mycha-section-body {
    padding: 0 12px 12px;
  }

  #account .mycha-choice {
    grid-template-columns: auto minmax(0, 1fr);
  }

  #account .mycha-choice em {
    grid-column: 2;
  }

  #account .mycha-button-row {
    display: grid;
  }
}

/* Staff master schedule */
#staff .staff-master-schedule {
  display: grid;
  gap: 24px;
  padding: clamp(22px, 4vw, 38px);
  border: 2px solid #ddddeb;
  border-top: 8px solid #e0100d;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(14, 10, 100, 0.1);
}

#staff .staff-master-schedule[hidden] {
  display: none !important;
}

#staff .staff-master-schedule-head,
#staff .staff-master-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

#staff .staff-master-schedule-head h3 {
  margin: 4px 0 6px;
  color: #0e0a64;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 950;
  line-height: 1;
}

#staff .staff-master-schedule-head p:last-child,
#staff .staff-master-status {
  margin: 0;
  color: #625f78;
  font-size: 1rem;
  font-weight: 750;
}

#staff .staff-master-schedule-head .primary-action {
  min-width: 205px;
  min-height: 60px;
  border-radius: 18px;
}

#staff .staff-master-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

#staff .staff-master-summary article {
  display: grid;
  min-height: 118px;
  align-content: center;
  gap: 6px;
  padding: 22px;
  border: 2px solid #e1e1ed;
  border-radius: 20px;
  background: #f7f7fc;
}

#staff .staff-master-summary span {
  color: #5e5b72;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#staff .staff-master-summary strong {
  color: #0e0a64;
  font-size: 2.5rem;
  font-weight: 950;
  line-height: 1;
}

#staff .staff-master-summary .needs-coverage {
  border-color: #f2c6c7;
  background: #fff5f5;
}

#staff .staff-master-summary .needs-coverage strong,
#staff .staff-master-summary .needs-coverage span {
  color: #c20d12;
}

#staff .staff-master-filter {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

#staff .staff-master-filter button {
  min-height: 56px;
  border: 2px solid #deddeb;
  border-radius: 17px;
  color: #0e0a64;
  background: #fff;
  font-size: 0.95rem;
  font-weight: 900;
  cursor: pointer;
}

#staff .staff-master-filter button.is-active {
  border-color: #0e0a64;
  color: #fff;
  background: #0e0a64;
}

#staff .staff-master-status {
  padding: 13px 16px;
  border-radius: 14px;
  background: #efeff8;
}

#staff .staff-master-section {
  display: grid;
  gap: 14px;
}

#staff .staff-master-section[hidden] {
  display: none !important;
}

#staff .staff-master-section-title {
  padding-top: 4px;
  border-top: 2px solid #ececf3;
}

#staff .staff-master-section-title h4 {
  margin: 20px 0 0;
  color: #0e0a64;
  font-size: 1.35rem;
  font-weight: 950;
}

#staff .staff-master-section-title span {
  margin-top: 20px;
  color: #6a677d;
  font-weight: 800;
}

#staff .staff-master-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

#staff .staff-master-grid.academy {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#staff .staff-master-card {
  min-width: 0;
  padding: 20px;
  border: 2px solid #e2e1ed;
  border-radius: 21px;
  background: #fff;
  box-shadow: 0 9px 25px rgba(14, 10, 100, 0.06);
}

#staff .staff-master-card.academy-card {
  display: grid;
  align-content: start;
  gap: 9px;
  border-top: 6px solid #0e0a64;
}

#staff .staff-master-card.event-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 18px;
}

#staff .staff-master-card.coverage-gap {
  border-color: #e0100d;
  background: #fffafa;
}

#staff .staff-master-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

#staff .staff-master-card-top span,
#staff .staff-master-card-top em {
  color: #e0100d;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 950;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

#staff .staff-master-card-top em {
  padding: 5px 8px;
  border-radius: 999px;
  color: #0e0a64;
  background: #efeff8;
  text-align: right;
}

#staff .coverage-gap .staff-master-card-top em {
  color: #fff;
  background: #e0100d;
}

#staff .staff-master-card h5 {
  margin: 0;
  color: #0e0a64;
  font-size: 1.2rem;
  font-weight: 950;
  line-height: 1.15;
}

#staff .staff-master-card > strong,
#staff .staff-master-card-body > strong {
  color: #17152a;
  font-size: 1rem;
  font-weight: 900;
}

#staff .staff-master-card p,
#staff .staff-master-card small {
  margin: 0;
  color: #656277;
  font-weight: 750;
  line-height: 1.35;
}

#staff .staff-master-date-block {
  display: grid;
  min-height: 104px;
  align-content: center;
  justify-items: center;
  border-radius: 18px;
  color: #fff;
  background: #0e0a64;
}

#staff .staff-master-date-block span,
#staff .staff-master-date-block small {
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

#staff .staff-master-date-block strong {
  color: #fff;
  font-size: 2rem;
  line-height: 1;
}

#staff .staff-master-card-body {
  display: grid;
  min-width: 0;
  gap: 8px;
}

#staff .staff-master-assignment {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 3px;
  padding: 10px 12px;
  border-radius: 13px;
  background: #f2f2f8;
}

#staff .staff-master-assignment span {
  color: #e0100d;
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#staff .staff-master-assignment strong {
  min-width: 0;
  color: #0e0a64;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

#staff .staff-master-note {
  margin-top: 4px;
  padding: 10px 12px;
  border-left: 4px solid #e0100d;
  border-radius: 0 12px 12px 0;
  color: #454255;
  background: #fff3f3;
  font-size: 0.86rem;
  font-weight: 750;
}

#staff .staff-master-empty {
  display: grid;
  gap: 5px;
  padding: 28px;
  border: 2px dashed #d9d8e6;
  border-radius: 20px;
  color: #625f75;
  background: #fafafd;
}

#account .mycha-activation-label {
  display: inline-flex;
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  color: #fff;
  background: #e0100d;
  font-size: 0.75rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#account .mycha-activation-copy {
  margin: 0;
  color: #57546b;
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.45;
}

#account .account-auth-grid:has(.academy-invite-login) {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  align-items: start;
}

#account .academy-invite-login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 15px;
}

#account .academy-invite-login > * {
  grid-column: 1 !important;
  width: 100%;
}

#account .academy-invite-login > .mycha-activation-label {
  width: fit-content;
}

#account .mycha-invite-create {
  padding: 20px;
  border: 2px solid #e2e1ed;
  border-radius: 20px;
  background: #f8f8fc;
}

#account .mycha-invite-create summary {
  color: #0e0a64;
  font-size: 1rem;
  font-weight: 950;
  cursor: pointer;
}

#account .mycha-invite-create[open] {
  grid-column: 1 / -1;
}

#account .mycha-invite-create .hub-login-form {
  margin-top: 18px;
}

@media (max-width: 980px) {
  #staff .staff-master-grid.academy {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  #account .account-auth-grid:has(.academy-invite-login) {
    grid-template-columns: minmax(0, 1fr);
  }

  #staff .staff-master-schedule-head,
  #staff .staff-master-section-title {
    align-items: stretch;
    flex-direction: column;
  }

  #staff .staff-master-schedule-head .primary-action {
    width: 100%;
  }

  #staff .staff-master-summary,
  #staff .staff-master-filter,
  #staff .staff-master-grid,
  #staff .staff-master-grid.academy {
    grid-template-columns: minmax(0, 1fr);
  }

  #staff .staff-master-summary article {
    min-height: 92px;
  }

  #staff .staff-master-section-title h4,
  #staff .staff-master-section-title span {
    margin-top: 15px;
  }
}

@media (max-width: 430px) {
  #staff .staff-master-card.event-card {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 13px;
    padding: 16px;
  }
}

body:not(.mycha-fresh-account-session) #account .mycha-profile-shell {
  display: none !important;
}

@media (max-width: 520px) {
  html,
  body,
  .app-shell,
  .sidebar,
  main {
    max-width: 100%;
    overflow-x: hidden;
  }

  .topbar {
    max-width: none;
    overflow-x: hidden;
  }

  .sidebar {
    grid-template-columns: minmax(0, 1fr);
  }

  .sidebar > *,
  .mobile-quick-actions,
  .hero-copy {
    min-width: 0;
    width: 100%;
    max-width: calc(100vw - 28px);
  }

  .mobile-quick-actions {
    grid-template-columns: 1fr !important;
  }

  .hero-copy h1,
  .hero-copy p:not(.eyebrow) {
    max-width: 350px;
  }

  .program-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .booking-tools {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .booking-tools label,
  .booking-tools select {
    width: 100%;
    min-width: 0;
  }

  .selected-program-alert {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 10px;
  }

  .selected-program-alert > div {
    min-width: 0;
  }

  .selected-program-alert button {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }

  .availability-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .program-card,
  .booking-tools,
  .selected-program-alert,
  .report-modal-shell,
  #reportModalBody,
  .full-report,
  .full-report-page {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .report-modal {
    display: block;
    padding: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  .report-modal[hidden],
  .policy-modal[hidden] {
    display: none !important;
  }

  .report-modal-shell {
    width: 100%;
    margin: 0;
    overflow: visible;
    min-height: 100dvh;
  }

  #reportModalBody {
    display: block;
    width: 100%;
    min-height: calc(100dvh - 96px);
    overflow: visible;
  }

  .full-report {
    display: block;
    width: 100%;
    padding: 10px;
  }

  .full-report-page {
    width: 100%;
    margin: 0 0 12px;
    overflow: visible;
  }
}

/* Final CHA brand layer after all legacy and responsive MyCHA rules. */
#account .mycha-program-overview-copy dl > div {
  display: grid;
  align-content: start;
  gap: 2px;
}

#account .mycha-section-copy small,
#account .mini-eyebrow {
  color: #e0100d;
}

#account .mycha-section-copy strong,
#account .mycha-section[open] .mycha-section-copy strong,
#account .mycha-profile-head h3 {
  color: #0e0a64;
}

/* Parent Home v2 — large, app-like controls based on the approved reference. */
#account .mycha-parent-home {
  width: min(100%, 980px);
  margin: 0 auto;
  gap: 24px;
  padding: 32px;
  border: 1px solid #deddec;
  border-top: 7px solid #e0100d;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(14, 10, 100, 0.1);
}

#account .mycha-parent-home-hero {
  align-items: center;
}

#account .mycha-parent-home-hero h2 {
  margin: 5px 0 0;
  color: #0e0a64;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 900;
  line-height: 0.98;
}

#account .mycha-home-signout {
  min-height: 48px;
  border: 2px solid #d7d6e8;
  border-radius: 14px;
  padding: 0 18px;
  color: #0e0a64;
  background: #fff;
  font-size: 1rem;
  font-weight: 850;
}

#account .mycha-home-label {
  display: block;
  margin-bottom: 10px;
  color: #5f5c76;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#account .mycha-next-event {
  display: grid;
  width: 100%;
  min-height: 168px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 24px;
  border: 2px solid #d9d8e8;
  border-left: 2px solid #d9d8e8;
  border-radius: 24px;
  color: #171534;
  background: #fff;
  text-align: left;
  box-shadow: 0 8px 24px rgba(14, 10, 100, 0.055);
}

#account .mycha-next-event:hover,
#account .mycha-next-event:focus-visible {
  border-color: #0e0a64;
  box-shadow: 0 0 0 4px rgba(14, 10, 100, 0.09), 0 14px 34px rgba(14, 10, 100, 0.1);
}

#account .mycha-next-event-date {
  display: grid;
  width: 88px;
  min-height: 100px;
  place-content: center;
  gap: 5px;
  border-radius: 20px;
  color: #0e0a64;
  background: #efeff8;
  text-align: center;
}

#account .mycha-next-event-date small {
  color: #e0100d;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

#account .mycha-next-event-date strong {
  font-size: 2.2rem;
  font-weight: 950;
  line-height: 1;
}

#account .mycha-next-event-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

#account .mycha-next-event-copy > small {
  color: #e0100d;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

#account .mycha-next-event-copy > strong {
  overflow-wrap: anywhere;
  color: #0e0a64;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
  font-weight: 900;
  line-height: 1.08;
}

#account .mycha-next-event-copy > span {
  color: #5f5c76;
  font-size: 1.02rem;
  font-weight: 700;
}

#account .mycha-row-arrow {
  color: #0e0a64;
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1;
}

#account .mycha-home-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

#account .mycha-home-actions > .mycha-home-action {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 16px 22px;
  border: 2px solid #0e0a64;
  border-radius: 20px;
  color: #0e0a64;
  background: #fff;
  text-align: center;
}

#account .mycha-home-actions > .mycha-home-action.is-primary {
  border-color: #e0100d;
  color: #fff;
  background: #e0100d;
}

#account .mycha-home-action strong {
  font-size: 1.28rem;
  font-weight: 900;
}

#account .mycha-cha-icon {
  display: block;
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
  border: 2px solid #deddec;
  border-radius: 50%;
  background-color: #fff;
  background-image: url("assets/cha-logo-transparent.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 112%;
  box-shadow: 0 4px 14px rgba(14, 10, 100, 0.08);
}

#account .mycha-current-programs {
  display: grid;
  gap: 14px;
  padding-top: 4px;
}

#account .mycha-current-programs > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

#account .mycha-current-programs h3 {
  margin: 0;
  color: #0e0a64;
  font-size: clamp(1.45rem, 2.5vw, 1.85rem);
  font-weight: 900;
}

#account .mycha-current-programs > header button {
  min-height: 44px;
  border: 0;
  padding: 0 4px;
  color: #e0100d;
  background: transparent;
  font-size: 1rem;
  font-weight: 900;
}

#account .mycha-current-program-list {
  display: grid;
  gap: 12px;
}

#account .mycha-current-program-row,
#account .mycha-reports-row {
  display: grid;
  width: 100%;
  min-height: 104px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  border: 2px solid #d9d8e8;
  border-radius: 20px;
  color: #171534;
  background: #fff;
  text-align: left;
  box-shadow: 0 6px 20px rgba(14, 10, 100, 0.04);
}

#account .mycha-current-program-row:hover,
#account .mycha-current-program-row:focus-visible,
#account .mycha-reports-row:hover,
#account .mycha-reports-row:focus-visible {
  border-color: #0e0a64;
}

#account .mycha-current-program-row > span:nth-child(2),
#account .mycha-reports-row > span:nth-child(2) {
  display: grid;
  gap: 6px;
  min-width: 0;
}

#account .mycha-current-program-row strong,
#account .mycha-reports-row strong {
  overflow-wrap: anywhere;
  color: #0e0a64;
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1.15;
}

#account .mycha-current-program-row small,
#account .mycha-reports-row small {
  color: #69667c;
  font-size: 0.94rem;
  font-weight: 700;
}

#account .mycha-more-heading {
  width: min(100%, 980px);
  margin: 30px auto 12px;
  color: #0e0a64;
  font-size: 1.5rem;
  font-weight: 900;
}

#account .mycha-profile-sections {
  width: min(100%, 980px);
  margin: 0 auto;
  gap: 12px;
}

#account .mycha-section > summary {
  min-height: 88px;
  padding: 17px 20px;
}

#account .mycha-section-copy em {
  display: none;
}

@media (max-width: 640px) {
  #account .mycha-parent-home {
    gap: 22px;
    padding: 22px 18px;
    border-radius: 20px;
  }

  #account .mycha-parent-home-hero {
    display: flex;
    align-items: flex-start;
  }

  #account .mycha-parent-home-hero h2 {
    font-size: clamp(2rem, 10vw, 2.65rem);
  }

  #account .mycha-home-signout {
    min-height: 42px;
    padding: 0 12px;
    font-size: 0.86rem;
  }

  #account .mycha-next-event {
    min-height: 174px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    padding: 18px 16px;
    border-radius: 20px;
  }

  #account .mycha-next-event-date {
    width: 72px;
    min-height: 86px;
    border-radius: 16px;
  }

  #account .mycha-next-event-date strong {
    font-size: 1.9rem;
  }

  #account .mycha-next-event-copy > strong {
    font-size: 1.22rem;
  }

  #account .mycha-next-event-copy > span {
    font-size: 0.9rem;
    line-height: 1.3;
  }

  #account .mycha-next-event > .mycha-row-arrow {
    grid-column: 3;
  }

  #account .mycha-home-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  #account .mycha-home-actions > .mycha-home-action {
    min-height: 78px;
    border-radius: 16px;
    padding: 12px;
  }

  #account .mycha-home-action strong {
    font-size: 1.05rem;
  }

  #account .mycha-current-program-row,
  #account .mycha-reports-row {
    min-height: 96px;
    gap: 13px;
    padding: 15px;
    border-radius: 18px;
  }

  #account .mycha-cha-icon {
    width: 54px;
    height: 54px;
  }

  #account .mycha-current-program-row strong,
  #account .mycha-reports-row strong {
    font-size: 1.08rem;
  }

  #account .mycha-current-program-row small,
  #account .mycha-reports-row small {
    font-size: 0.84rem;
  }

  #account .mycha-more-heading {
    margin-top: 24px;
    padding-inline: 4px;
  }
}

/* Program Overview v2 — focused, readable program details. */
#account .mycha-programs-panel,
#account .mycha-program-overview-list {
  display: grid;
  gap: 22px;
}

#account .mycha-program-overview-list {
  margin: 0;
}

#account .mycha-program-overview-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  padding: 28px;
  border: 2px solid #d9d8e8;
  border-top: 7px solid #e0100d;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 42px rgba(14, 10, 100, 0.08);
}

#account .mycha-program-back {
  display: none;
  width: max-content;
  min-height: 44px;
  border: 0;
  padding: 0;
  color: #0e0a64;
  background: transparent;
  font-size: 0.96rem;
  font-weight: 900;
}

#account .mycha-programs-panel.is-focused .mycha-program-back {
  display: inline-flex;
  align-items: center;
}

#account .mycha-programs-panel.is-focused .mycha-registration-history {
  display: none;
}

#account .mycha-program-detail-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

#account .mycha-program-detail-head > div {
  min-width: 0;
}

#account .mycha-program-detail-head > div > span {
  color: #e0100d;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

#account .mycha-program-detail-head h4 {
  margin: 3px 0 5px;
  color: #0e0a64;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 950;
  line-height: 1.05;
}

#account .mycha-program-detail-head p {
  margin: 0;
  color: #5f5c76;
  font-size: 1.02rem;
  font-weight: 800;
}

#account .mycha-program-next-session {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 22px;
  border-radius: 22px;
  color: #fff;
  background: #0e0a64;
}

#account .mycha-program-next-session .mycha-next-event-date {
  background: #fff;
}

#account .mycha-program-next-session > div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

#account .mycha-program-next-session > div > small {
  color: #ff6b67;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

#account .mycha-program-next-session > div > strong {
  color: #fff;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  font-weight: 900;
  line-height: 1.08;
}

#account .mycha-program-next-session > div > span {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
  font-weight: 750;
}

#account .mycha-program-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

#account .mycha-program-facts > div {
  min-width: 0;
  padding: 18px;
  border: 2px solid #e4e3ef;
  border-radius: 18px;
  background: #fafafd;
}

#account .mycha-program-facts dt {
  color: #e0100d;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#account .mycha-program-facts dd {
  margin: 7px 0 0;
  overflow-wrap: anywhere;
  color: #0e0a64;
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.35;
}

#account .mycha-upcoming-sessions,
#account .mycha-program-notes {
  display: grid;
  gap: 12px;
}

#account .mycha-upcoming-sessions h5,
#account .mycha-program-notes h5 {
  margin: 0;
  color: #0e0a64;
  font-size: 1.3rem;
  font-weight: 900;
}

#account .mycha-session-list {
  display: grid;
  gap: 8px;
}

#account .mycha-session-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 11px 16px;
  border: 2px solid #e4e3ef;
  border-radius: 16px;
  background: #fff;
}

#account .mycha-session-row > span {
  color: #e0100d;
  font-size: 0.78rem;
  font-weight: 950;
}

#account .mycha-session-row > strong {
  color: #0e0a64;
  font-size: 1rem;
  font-weight: 900;
}

#account .mycha-session-row > small {
  color: #5f5c76;
  font-size: 0.92rem;
  font-weight: 800;
}

#account .mycha-more-sessions {
  margin: 0;
  color: #5f5c76;
  font-weight: 800;
}

#account .mycha-program-notes {
  padding: 20px;
  border-left: 6px solid #e0100d;
  border-radius: 16px;
  background: #f7f7fb;
}

#account .mycha-program-notes p {
  margin: 0;
  color: #46435c;
  font-size: 0.98rem;
  line-height: 1.55;
}

@media (max-width: 640px) {
  #account .mycha-program-overview-card {
    gap: 18px;
    padding: 20px 18px;
    border-radius: 20px;
  }

  #account .mycha-program-detail-head {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 13px;
  }

  #account .mycha-program-detail-head h4 {
    font-size: 1.55rem;
  }

  #account .mycha-program-next-session {
    gap: 14px;
    padding: 17px;
    border-radius: 18px;
  }

  #account .mycha-program-next-session .mycha-next-event-date {
    width: 68px;
    min-height: 80px;
  }

  #account .mycha-program-next-session > div > strong {
    font-size: 1.18rem;
  }

  #account .mycha-program-next-session > div > span {
    font-size: 0.86rem;
    line-height: 1.35;
  }

  #account .mycha-program-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  #account .mycha-program-facts > div {
    padding: 15px;
  }

  #account .mycha-session-row {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    padding: 11px 13px;
  }

  #account .mycha-session-row > small {
    grid-column: 2;
  }
}

/* Athlete Reports library — large family-facing report controls. */
#account .mycha-report-library,
#account .mycha-report-library-list {
  display: grid;
  gap: 22px;
}

#account .mycha-report-library-head {
  display: grid;
  gap: 7px;
}

#account .mycha-report-library-head > span {
  color: #e0100d;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#account .mycha-report-library-head h4 {
  margin: 0;
  color: #0e0a64;
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  font-weight: 950;
  line-height: 1.04;
}

#account .mycha-report-library-head p {
  max-width: 720px;
  margin: 0;
  color: #5f5c76;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

#account .mycha-report-library-card {
  display: grid;
  gap: 20px;
  padding: 28px;
  border: 2px solid #d9d8e8;
  border-top: 7px solid #e0100d;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 42px rgba(14, 10, 100, 0.08);
}

#account .mycha-report-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

#account .mycha-report-card-head > div {
  min-width: 0;
}

#account .mycha-report-card-head > div > span {
  color: #e0100d;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

#account .mycha-report-card-head h4 {
  margin: 3px 0 4px;
  color: #0e0a64;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 950;
  line-height: 1.05;
}

#account .mycha-report-card-head p {
  margin: 0;
  color: #5f5c76;
  font-size: 1rem;
  font-weight: 800;
}

#account .mycha-report-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

#account .mycha-report-meta > div {
  min-width: 0;
  padding: 17px;
  border: 2px solid #e4e3ef;
  border-radius: 18px;
  background: #fafafd;
}

#account .mycha-report-meta dt {
  color: #e0100d;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#account .mycha-report-meta dd {
  margin: 7px 0 0;
  overflow-wrap: anywhere;
  color: #0e0a64;
  font-size: 0.98rem;
  font-weight: 850;
  line-height: 1.35;
}

#account .mycha-report-pages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

#account .mycha-report-pages > span {
  display: flex;
  min-height: 62px;
  align-items: center;
  gap: 11px;
  padding: 11px 14px;
  border-radius: 16px;
  color: #0e0a64;
  background: #efeff8;
  font-size: 0.9rem;
  font-weight: 850;
}

#account .mycha-report-pages strong {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #0e0a64;
  font-size: 0.86rem;
}

#account .mycha-report-card-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

#account .mycha-report-open {
  min-width: 220px;
  min-height: 62px;
  border: 2px solid #e0100d;
  border-radius: 18px;
  padding: 0 24px;
  color: #fff;
  background: #e0100d;
  font-size: 1.08rem;
  font-weight: 900;
}

#account .mycha-report-card-actions small {
  color: #5f5c76;
  font-size: 0.86rem;
  font-weight: 750;
}

#account .mycha-report-library-card.is-result-only {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

#account .mycha-report-library-card.is-result-only > div {
  display: grid;
  gap: 6px;
}

@media (max-width: 640px) {
  #account .mycha-report-library-head h4 {
    font-size: 2rem;
  }

  #account .mycha-report-library-card {
    gap: 17px;
    padding: 20px 18px;
    border-radius: 20px;
  }

  #account .mycha-report-card-head {
    gap: 13px;
  }

  #account .mycha-report-card-head h4 {
    font-size: 1.5rem;
  }

  #account .mycha-report-meta,
  #account .mycha-report-pages {
    grid-template-columns: minmax(0, 1fr);
  }

  #account .mycha-report-meta > div {
    padding: 14px;
  }

  #account .mycha-report-pages > span {
    min-height: 54px;
  }

  #account .mycha-report-card-actions {
    display: grid;
  }

  #account .mycha-report-open {
    width: 100%;
    min-width: 0;
  }
}
