/* 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-logo.wide-logo {
  width: 122px;
}

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

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

.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(180px, 260px));
  align-items: end;
  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(340px, 1fr));
  gap: 16px;
}

.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;
  padding: 14px;
  background: #fff;
}

.program-art {
  min-height: 172px;
  margin: -14px -14px 14px;
  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.08rem;
  line-height: 1.2;
}

.program-card > p:not(.date-summary),
.date-summary {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.program-tags {
  max-height: 62px;
  margin-top: 12px;
  overflow: hidden;
}

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

.program-meta {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #eef2f6;
}

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

.availability-row {
  border: 1px solid #dce8ef;
  border-left: 0;
  border-radius: 8px;
  background: #f7fbfd;
}

.date-summary {
  border-radius: 8px;
  background: #f4f7fb;
}

.card-action {
  margin-top: auto;
  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;
}

.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 {
  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: #172a72;
  --app-danger: #ed1c24;
  --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;
}

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) .brand-logo.wide-logo,
body:has(#staff.active) .brand-logo.wide-logo,
body:has(#admin.active) .brand-logo.wide-logo {
  width: 112px;
  height: 52px;
}

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-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;
  }

  #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;
  }
}

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

@media (max-width: 520px) {
  html,
  body,
  .app-shell,
  .sidebar,
  main,
  .topbar {
    max-width: 100%;
    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);
  }

  .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;
  }
}
