:root {
  font-family: Inter, Aptos, "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #001a41;
  background: #f4f6f9;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --navy: #001a41;
  --navy-2: #0a2a55;
  --orange: #fe5800;
  --orange-dark: #d94900;
  --white: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f4f6f9;
  --surface-blue: #edf3fa;
  --text: #001a41;
  --muted: #66768d;
  --line: #dfe5ed;
  --success: #087a55;
  --success-soft: #e8f7f0;
  --warning: #9a5a00;
  --warning-soft: #fff5dd;
  --danger: #b42318;
  --danger-soft: #fef0ef;
  --shadow: 0 16px 40px rgba(0, 26, 65, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--surface-soft);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--surface-soft);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button,
select {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

button,
input,
select,
textarea {
  outline: none;
}

input:not([type='checkbox']):not([type='radio']):not([type='button']):not([type='submit']),
textarea {
  cursor: text;
  caret-color: var(--orange);
}

input[readonly],
input:disabled,
textarea[readonly],
textarea:disabled {
  cursor: default;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  box-shadow: 0 0 0 3px rgba(254, 88, 0, 0.25);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}

.brand--inverse {
  color: var(--white);
}

.brand__logo-full,
.brand__symbol {
  position: relative;
  display: block;
  flex: 0 0 auto;
  overflow: hidden;
}

.brand__logo-full {
  width: 104px;
  height: 84px;
}

.brand__logo-full img,
.brand__symbol img {
  position: absolute;
  left: 50%;
  max-width: none;
  height: auto;
  transform: translateX(-50%);
}

.brand__logo-full img {
  top: -6px;
  width: 104px;
}

.brand__symbol {
  display: none;
  width: 52px;
  height: 36px;
}

.brand__symbol img {
  top: -3px;
  width: 62px;
}

.brand--compact .brand__logo-full { display: none; }
.brand--compact .brand__symbol { display: block; }

.eyebrow {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow--light {
  color: #ff8b4f;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 10px 17px;
  font-weight: 750;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.button--primary {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--navy);
}

.button--primary:hover:not(:disabled) {
  border-color: var(--orange-dark);
  background: #f05200;
}

.button--secondary {
  border-color: var(--line);
  background: var(--white);
  color: var(--navy);
}

.button--secondary:hover:not(:disabled) {
  border-color: #b6c1cf;
  background: #f9fafb;
}

.button--light {
  border-color: rgba(255, 255, 255, 0.3);
  background: var(--white);
  color: var(--navy);
}

.button--ghost {
  border-color: transparent;
  background: transparent;
  color: var(--navy);
}

.button--ghost:hover:not(:disabled) {
  background: var(--surface-blue);
}

.button--wide {
  width: 100%;
}

.icon-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.icon-button:hover {
  background: rgba(0, 26, 65, 0.07);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cbd4df;
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
}

.field input,
.field textarea {
  padding: 10px 12px;
}

.field textarea {
  min-height: 88px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #96a2b2;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--orange);
}

.field__control {
  position: relative;
  display: flex;
  align-items: center;
}

.field__control > svg {
  position: absolute;
  left: 13px;
  color: #7a889a;
  pointer-events: none;
}

.field__control input {
  padding-left: 42px;
  padding-right: 42px;
}

.field__reveal {
  position: absolute;
  right: 5px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #6f7e91;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.form-error,
.inline-alert {
  border: 1px solid #f4c5c0;
  border-radius: 8px;
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 13px;
  line-height: 1.5;
}

.inline-success {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #b8e5d3;
  border-radius: 10px;
  background: var(--success-soft);
  color: var(--success);
  padding: 12px 14px;
  font-size: 12px;
  font-weight: 750;
}

.form-error {
  padding: 10px 12px;
}

.inline-alert {
  padding: 12px 15px;
}

.field-validation-host {
  display: block;
  width: 100%;
}

.field-validation-notice {
  display: flex;
  width: 100%;
  align-items: flex-start;
  gap: 7px;
  border-left: 3px solid var(--orange);
  border-radius: 0 8px 8px 0;
  margin-top: 7px;
  background: #fff5ef;
  padding: 8px 10px;
  color: #9b3a13;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
  animation: field-validation-in 160ms ease-out;
}

.field-validation-notice svg {
  flex: 0 0 auto;
  margin-top: 0;
  color: var(--orange);
}

input.form-control--invalid,
textarea.form-control--invalid,
select.form-control--invalid {
  border-color: var(--orange) !important;
  box-shadow: 0 0 0 3px rgba(255, 89, 0, .14) !important;
}

input[type="checkbox"].form-control--invalid,
input[type="radio"].form-control--invalid {
  outline: 3px solid rgba(255, 89, 0, .18);
  outline-offset: 3px;
}

@keyframes field-validation-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Login */
.login-layout {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(420px, 1.08fr) minmax(440px, 0.92fr);
  background: var(--white);
}

.login-story {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}

.login-story::before,
.login-story::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.login-story::before {
  right: -25%;
  bottom: -25%;
  width: 680px;
  height: 680px;
}

.login-story::after {
  right: -7%;
  bottom: -9%;
  width: 420px;
  height: 420px;
  border-color: rgba(254, 88, 0, 0.2);
}

.login-story__inner {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, 760px);
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  margin: 0 auto;
  padding: 54px clamp(40px, 7vw, 96px);
}

.login-story__copy {
  max-width: 570px;
  padding: 80px 0 42px;
}

.login-story__copy h1 {
  max-width: 560px;
  margin-bottom: 22px;
  color: var(--white);
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.login-story__copy p {
  max-width: 510px;
  margin: 0;
  color: #c8d4e4;
  font-size: 18px;
  line-height: 1.7;
}

.login-story__proof {
  display: grid;
  max-width: 610px;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 25px;
}

.login-story__proof div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-story__proof strong {
  font-size: 14px;
}

.login-story__proof span:not(.proof-dot) {
  color: #9eb0c7;
  font-size: 12px;
  line-height: 1.5;
}

.proof-dot {
  width: 5px;
  height: 5px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.login-panel {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px clamp(34px, 6vw, 86px) 28px;
}

.login-panel__mobile-brand {
  display: none;
}

.login-card {
  width: min(100%, 430px);
}

.login-card h2 {
  margin-bottom: 9px;
  font-size: clamp(30px, 3vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.login-card__intro {
  margin-bottom: 31px;
  color: var(--muted);
  line-height: 1.65;
}

.login-card__support {
  margin: 23px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.login-card__support button {
  border: 0;
  background: transparent;
  color: var(--orange-dark);
  font-weight: 750;
}

.demo-access {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 28px;
  border-left: 3px solid var(--orange);
  background: #fff7f2;
  padding: 12px 14px;
  font-size: 12px;
}

.demo-access span {
  color: var(--muted);
}

.login-footer {
  width: 100%;
  margin: auto 0 0;
  padding-top: 38px;
  color: #8a96a5;
  font-size: 11px;
  text-align: center;
}

/* Global states */
.center-state {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 17px;
  padding: 28px;
  background: var(--surface-soft);
  text-align: center;
}

.center-state p {
  max-width: 510px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.center-state h1 {
  margin: 5px 0 -3px;
  font-size: 27px;
}

.center-state__brand-logo {
  display: block;
  width: 220px;
  height: 145px;
  object-fit: contain;
}

.center-state--card::before {
  position: fixed;
  inset: 50% auto auto 50%;
  z-index: -1;
  width: min(88vw, 600px);
  height: min(75vh, 480px);
  transform: translate(-50%, -50%);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
  content: "";
}

.state-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 14px;
  background: var(--surface-blue);
  color: var(--navy);
}

.state-icon--warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.loader {
  width: 28px;
  height: 28px;
  border: 3px solid #dfe5ed;
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Shell */
.app-layout {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 242px minmax(0, 1fr);
  transition: grid-template-columns 180ms ease;
}

.app-layout--sidebar-collapsed { grid-template-columns: 78px minmax(0, 1fr); }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  display: flex;
  width: 242px;
  height: 100dvh;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  transition: width 180ms ease, transform 190ms ease;
}

.sidebar--collapsed { width: 78px; }

.sidebar__top {
  display: flex;
  min-height: 84px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
}

.sidebar__close {
  display: none;
  color: var(--white);
}

.sidebar__collapse { color: #b9c7d8; }
.sidebar__collapse:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.sidebar--collapsed .sidebar__top { justify-content: center; padding: 0 12px; }
.sidebar--collapsed .brand__logo-full,
.sidebar--collapsed .nav-label,
.sidebar--collapsed .nav-item__label,
.sidebar--collapsed .sidebar-profile__copy { display: none; }
.sidebar--collapsed .brand__symbol { display: block; }
.sidebar--collapsed .sidebar__nav { align-items: center; padding-inline: 10px; }
.sidebar--collapsed .nav-item { width: 46px; min-height: 44px; justify-content: center; border-radius: 12px; padding-inline: 0; }
.sidebar--collapsed .nav-item::before { left: -10px; }
.sidebar--collapsed .sidebar__bottom { padding-inline: 10px; }
.sidebar--collapsed .sidebar-profile { flex-direction: column; gap: 14px; }
.sidebar--collapsed .sidebar__top .brand { transform: scale(.92); }
.sidebar--collapsed:not(.sidebar--open) .logout-button { display: none; }

.sidebar__close:hover,
.sidebar__bottom .icon-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.sidebar__nav {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 5px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 24px 14px;
  overscroll-behavior: contain;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
  scrollbar-width: thin;
}

.sidebar__nav::-webkit-scrollbar { width: 4px; }
.sidebar__nav::-webkit-scrollbar-track { background: transparent; }
.sidebar__nav::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(255, 255, 255, 0.22); }

.nav-label {
  padding: 0 12px 9px;
  color: #7590b2;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.nav-item {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 45px;
  align-items: center;
  gap: 13px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #b9c7d8;
  padding: 10px 13px;
  font-size: 13px;
  font-weight: 650;
  text-align: left;
}

.nav-item::before {
  position: absolute;
  left: -14px;
  width: 3px;
  height: 26px;
  border-radius: 0 3px 3px 0;
  background: transparent;
  content: "";
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--white);
}

.nav-item--active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.nav-item--active::before {
  background: var(--orange);
}

.sidebar__bottom {
  flex: 0 0 auto;
  margin-top: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 14px;
}

.sidebar-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-profile__copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.sidebar-profile__copy strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-profile__copy small {
  color: #8ea3be;
  font-size: 10px;
}

.sidebar__bottom .icon-button {
  color: #aebdd0;
}

.logout-button {
  flex: 0 0 auto;
  border: 1px solid rgba(238, 104, 104, .42);
  background: transparent;
  color: #ef6a6a !important;
}

.logout-button:hover { border-color: #ef6a6a; background: rgba(170, 28, 28, .28) !important; color: #ff8b8b !important; }
.logout-button__label { display: none; }

.avatar {
  display: inline-grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.avatar--dark {
  background: #17365f;
  color: var(--white);
}

.avatar--soft {
  background: var(--surface-blue);
  color: var(--navy);
}

.avatar--image {
  display: block;
  object-fit: cover;
}

.profile-avatar-button,
.topbar-avatar-button,
.sidebar-profile__copy button {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  text-align: left;
}

.profile-avatar-button {
  display: inline-grid;
  border-radius: 50%;
}

.topbar-avatar-button {
  display: inline-grid;
  border-radius: 50%;
}

.sidebar-profile__copy button {
  overflow: hidden;
  font-size: 12px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-main {
  display: flex;
  min-height: 100vh;
  min-width: 0;
  flex-direction: column;
  grid-column: 2;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  padding: 13px clamp(22px, 3.2vw, 46px);
  backdrop-filter: blur(14px);
}

.topbar__left,
.topbar__actions {
  display: flex;
  align-items: center;
}

.topbar__left {
  gap: 13px;
}

.topbar__left h1 {
  margin: 2px 0 0;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.topbar__context {
  color: #7b899a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.topbar__actions {
  gap: 11px;
}

.menu-button {
  display: none;
}

.organization-chip,
.organization-select {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fafb;
  color: var(--navy);
  font-size: 12px;
  font-weight: 750;
}

.organization-chip {
  padding: 8px 12px;
}

.organization-select {
  position: relative;
  padding-right: 9px;
}

.organization-select select {
  min-height: 34px;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--navy);
  padding: 6px 30px 6px 12px;
  font-size: 12px;
  font-weight: 750;
}

.organization-select svg {
  position: absolute;
  right: 10px;
  pointer-events: none;
}

.notification-button {
  position: relative;
  border: 1px solid var(--line);
  background: var(--white);
}

.notification-indicator {
  position: absolute;
  top: 4px;
  right: 3px;
  display: grid;
  min-width: 15px;
  height: 15px;
  place-items: center;
  border: 2px solid var(--white);
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
}

.notification-backdrop {
  position: fixed;
  inset: 0;
  z-index: 48;
  border: 0;
  background: rgba(0, 19, 48, .35);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}

.notification-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 49;
  width: min(410px, 94vw);
  border-left: 1px solid var(--line);
  background: #fff;
  box-shadow: -18px 0 48px rgba(0, 26, 65, .16);
  padding: 22px;
}

.notification-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.notification-drawer__header h2 { margin: 4px 0 0; }
.notification-drawer__empty { display: grid; min-height: 55vh; place-items: center; align-content: center; gap: 9px; color: var(--navy); text-align: center; }
.notification-drawer__empty h3,
.notification-drawer__empty p { margin: 0; }
.notification-drawer__empty p { max-width: 290px; color: var(--muted); line-height: 1.55; }
.notification-list { display: grid; gap: 9px; padding-top: 16px; }
.notification-list > button { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; width: 100%; border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 14px; color: var(--navy); text-align: left; }
.notification-list > button:hover { border-color: #ffb58d; background: #fffaf7; }
.notification-list__mark { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }
.notification-list > button > span:nth-child(2) { display: flex; flex-direction: column; gap: 4px; }
.notification-list strong { font-size: 12px; }
.notification-list small { color: var(--muted); font-size: 10px; line-height: 1.45; }

.tutorial-trigger { border: 1px solid var(--line); background: #fff; }
.tutorial-modal-backdrop { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: rgba(0, 19, 48, .56); padding: 18px; }
.tutorial-modal { position: relative; width: min(560px, 100%); border-radius: 20px; background: #fff; box-shadow: 0 28px 80px rgba(0, 26, 65, .25); padding: 30px; }
.tutorial-modal h2 { margin: 7px 0; font-size: 28px; }
.tutorial-modal > p { margin: 0; color: var(--muted); line-height: 1.55; }
.tutorial-modal__close { position: absolute; top: 16px; right: 16px; }
.tutorial-steps { display: grid; gap: 10px; margin: 22px 0; padding: 0; list-style: none; counter-reset: tutorial; }
.tutorial-steps li { counter-increment: tutorial; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 2px 10px; border: 1px solid var(--line); border-radius: 12px; padding: 13px; }
.tutorial-steps li::before { grid-row: 1 / 3; display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: var(--navy); color: #fff; content: counter(tutorial); font-weight: 800; }
.tutorial-steps strong { color: var(--navy); font-size: 13px; }
.tutorial-steps span { color: var(--muted); font-size: 11px; }
.tutorial-modal__actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }

.topbar__avatar {
  display: grid;
  background: var(--navy);
  color: var(--white);
}

.topbar-avatar-button .avatar--image {
  width: 36px;
  height: 36px;
}

.page-content {
  flex: 1 0 auto;
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 30px clamp(22px, 3.2vw, 46px) 48px;
}

.app-version-footer {
  display: flex;
  width: min(100%, 1480px);
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: auto auto 0;
  border-top: 1px solid var(--line);
  padding: 14px clamp(22px, 3.2vw, 46px) 16px;
  color: #7b899a;
  font-size: 10px;
}
.app-version-footer strong { color: var(--navy); }

.drawer__header-actions { display: flex; align-items: center; gap: 8px; }
.student-sports-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.student-sports-summary__item {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(254, 88, 0, .3);
  border-radius: 14px;
  background: #fff8f3;
  color: var(--navy);
  padding: 10px 12px;
}
.student-sports-summary__artwork { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; }
.student-sports-summary__artwork img { width: 100%; height: 100%; object-fit: contain; }
.student-sports-summary__item strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.form-section__hint { margin: -4px 0 14px; color: var(--muted); font-size: 11px; line-height: 1.55; }

.catalog-card__actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.catalog-card__delete { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #f1c7c7; border-radius: 8px; background: #fff; color: #a92e2e; padding: 9px 11px; font-size: 10px; font-weight: 750; }
.catalog-card__delete:hover:not(:disabled) { border-color: #d46565; background: #fff5f5; }

.exception-toggle { display: flex; align-items: flex-start; gap: 10px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 13px; padding: 11px 12px; }
.exception-toggle input { margin-top: 3px; }
.exception-toggle span { display: flex; flex-direction: column; gap: 2px; }
.exception-toggle strong { color: var(--navy); font-size: 11px; }
.exception-toggle small { color: var(--muted); font-size: 10px; line-height: 1.4; }

@media (max-width: 650px) {
  .app-version-footer { align-items: center; flex-direction: column; gap: 4px; text-align: center; }
}

.legal-document-notice__icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 13px;
  flex: 0 0 auto;
  background: #fff0e8;
  color: var(--orange-dark);
}

.legal-document-backdrop { padding: clamp(10px, 2.2vw, 24px); }

.legal-document-viewer {
  display: grid;
  width: min(1080px, 100%);
  max-height: calc(100dvh - 32px);
  grid-template-rows: auto minmax(280px, 1fr) auto;
  overflow: hidden;
  padding: 0;
}

.legal-document-viewer__header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 64px 17px 22px;
}

.legal-document-viewer__header h2 { margin: 3px 0 2px; font-size: clamp(20px, 3vw, 27px); }
.legal-document-viewer__header small { color: var(--muted); font-size: 10px; }

.legal-document-viewer__frame {
  min-height: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #edf1f6;
}

.legal-document-viewer__frame iframe {
  display: block;
  width: 100%;
  height: min(68vh, 720px);
  border: 0;
}

.legal-document-viewer__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 18px;
}

.legal-document-viewer__actions > span { margin-right: auto; color: var(--muted); font-size: 10px; }

@media (max-width: 650px) {
  .legal-document-backdrop { padding: 0; }
  .legal-document-viewer { width: 100%; height: 100dvh; max-height: none; border-radius: 0; }
  .legal-document-viewer__header { padding: 15px 52px 13px 14px; }
  .legal-document-viewer__header .legal-document-notice__icon { width: 40px; height: 40px; }
  .legal-document-viewer__frame iframe { height: 100%; }
  .legal-document-viewer__actions { align-items: stretch; flex-wrap: wrap; padding: 11px 12px; }
  .legal-document-viewer__actions > span { width: 100%; margin: 0; text-align: center; }
  .legal-document-viewer__actions .button { flex: 1 1 150px; }
}

.page-stack {
  display: flex;
  flex-direction: column;
  gap: 23px;
}

.mobile-nav,
.sidebar-backdrop {
  display: none;
}

/* Dashboard */
.welcome-strip {
  position: relative;
  display: flex;
  min-height: 178px;
  overflow: hidden;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-radius: 14px;
  background: var(--navy);
  color: var(--white);
  padding: 30px clamp(25px, 4vw, 44px);
}

.welcome-strip::after {
  position: absolute;
  right: -58px;
  width: 270px;
  height: 270px;
  border: 48px solid rgba(254, 88, 0, 0.12);
  border-radius: 50%;
  content: "";
}

.welcome-strip > * {
  position: relative;
  z-index: 1;
}

.welcome-strip h2 {
  margin-bottom: 8px;
  color: var(--white);
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: -0.035em;
}

.welcome-strip p {
  margin: 0;
  color: #b7c6d9;
  font-size: 14px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}

.metric-card {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  padding: 20px;
}

.metric-card--link {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.metric-card--link:hover { border-color: #9fb0c7; transform: translateY(-2px); box-shadow: var(--shadow); }
.metric-card--link:focus-visible { outline: 3px solid rgba(254, 88, 0, .22); outline-offset: 2px; }

.student-detail-list dl { display: grid; gap: 0; margin: 0; }
.student-detail-list dl > div { display: grid; grid-template-columns: minmax(0, 120px) minmax(0, 1fr); align-items: center; gap: 18px; border-top: 1px solid var(--line); padding: 12px 0; }
.student-detail-list dl > div:first-child { border-top: 0; }
.student-detail-list dt { color: var(--muted); font-size: 11px; }
.student-detail-list dd { width: 100%; min-width: 0; margin: 0; justify-self: stretch; color: var(--navy); font-size: 12px; font-weight: 700; text-align: right; }

.metric-card__icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 9px;
  background: #fff1e9;
  color: var(--orange-dark);
}

.metric-card > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.metric-card span:not(.metric-card__icon):not(.skeleton) {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric-card strong {
  margin: 4px 0 2px;
  color: var(--navy);
  font-size: 29px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.metric-card small {
  color: #8b97a7;
  font-size: 10px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
  gap: 17px;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}

.panel__header {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 18px 21px;
}

.panel__header .eyebrow {
  margin-bottom: 4px;
  font-size: 9px;
}

.panel__header h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.text-button,
.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 750;
}

.icon-link {
  width: 34px;
  height: 34px;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--navy);
}

.recent-list,
.class-list {
  padding: 5px 21px;
}

.recent-row {
  display: grid;
  min-height: 69px;
  grid-template-columns: auto minmax(130px, 1fr) auto 88px;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid #edf0f4;
}

.recent-row:last-child,
.class-row:last-child {
  border-bottom: 0;
}

.recent-row__main,
.class-row > span:not(.class-row__icon) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.recent-row__main strong,
.class-row strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-row__main small,
.class-row small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-row time {
  color: #8a96a5;
  font-size: 10px;
  text-align: right;
}

.status-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 750;
}

.status-badge--active {
  background: var(--success-soft);
  color: var(--success);
}

.status-badge--pending {
  background: var(--warning-soft);
  color: var(--warning);
}

.status-badge--inactive,
.status-badge--cancelled {
  background: #eef1f5;
  color: #5f6d7e;
}

.class-row {
  display: grid;
  min-height: 69px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #edf0f4;
}

.class-row__icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--surface-blue);
}

.class-row__icon--2 { background: #fff1e9; color: var(--orange-dark); }
.class-row__icon--3 { background: var(--success-soft); color: var(--success); }

.class-row em {
  color: #8a96a5;
  font-size: 9px;
  font-style: normal;
}

.empty-list {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #9aa5b2;
  text-align: center;
}

.empty-list span {
  color: #ccd4de;
  font-size: 38px;
  font-weight: 800;
}

.empty-list p {
  margin: 5px 0 0;
  font-size: 12px;
}

.skeleton {
  display: block;
  overflow: hidden;
  border-radius: 5px;
  background: #e9edf2;
  background-image: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
  background-size: 220px 100%;
  animation: shimmer 1.25s infinite linear;
}

.skeleton--number {
  width: 42px;
  height: 28px;
  margin: 5px 0;
}

.skeleton--row {
  width: 100%;
  height: 42px;
}

.rows-skeleton {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 16px 0;
}

@keyframes shimmer {
  from { background-position: -220px 0; }
  to { background-position: calc(100% + 220px) 0; }
}

/* Page heading and students */
.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.page-heading h2 {
  margin-bottom: 7px;
  font-size: 30px;
  letter-spacing: -0.035em;
}

.page-heading p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.students-panel {
  overflow: hidden;
}

.students-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
}

.search-box,
.filter-select {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 9px;
  border: 1px solid #cdd5df;
  border-radius: 8px;
  background: var(--white);
  color: #7f8c9d;
}

.search-box {
  width: min(100%, 410px);
  padding: 0 12px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-box:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(254, 88, 0, 0.2);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 13px;
}

.filter-select {
  padding-left: 11px;
}

.filter-select select {
  min-height: 38px;
  border: 0;
  background: transparent;
  color: var(--navy);
  padding-right: 10px;
  font-size: 12px;
  font-weight: 650;
}

.results-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.students-table-wrap {
  overflow-x: auto;
}

.students-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
}

.students-table th {
  height: 42px;
  background: #f8f9fb;
  color: #7b8797;
  padding: 8px 16px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.students-table td {
  height: 67px;
  border-top: 1px solid #edf0f4;
  color: #45566c;
  padding: 10px 16px;
  font-size: 12px;
}

.students-table tbody tr:hover {
  background: #fbfcfd;
}

.student-identity {
  display: flex;
  min-width: 230px;
  align-items: center;
  gap: 11px;
}

.student-identity > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.student-identity strong {
  color: var(--navy);
  font-size: 12px;
}

.student-identity small {
  color: #8c98a7;
  font-size: 9px;
}

.contact-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.contact-cell svg {
  color: #8c98a7;
}

.table-action {
  color: #7e8b9c;
}

.table-empty {
  display: flex;
  min-height: 250px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #8794a5;
}

.table-empty strong {
  color: var(--navy);
  font-size: 14px;
}

.table-empty span {
  font-size: 11px;
}

.students-mobile-list {
  display: none;
}

.toast {
  position: fixed;
  top: 96px;
  right: 28px;
  z-index: 60;
  display: flex;
  width: min(calc(100vw - 32px), 390px);
  align-items: center;
  gap: 10px;
  border: 1px solid #a8dfc9;
  border-radius: 9px;
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--success);
  padding: 13px 14px;
  font-size: 12px;
  font-weight: 650;
}

.toast span {
  flex: 1;
}

.toast button {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
}

/* Drawer */
.drawer-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  justify-content: flex-end;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 19, 48, 0.46);
  backdrop-filter: blur(2px);
}

.drawer {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(100%, 590px);
  height: 100%;
  flex-direction: column;
  background: var(--white);
  box-shadow: -20px 0 55px rgba(0, 26, 65, 0.16);
  animation: slideIn 210ms ease-out;
}

@keyframes slideIn {
  from { transform: translateX(100%); }
}

.drawer__header {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 18px 24px;
}

.drawer__header .eyebrow {
  margin-bottom: 3px;
  font-size: 9px;
}

.drawer__header h2 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -0.025em;
}

.drawer__form {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 23px;
  overflow-y: auto;
  padding: 24px;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
  border-bottom: 1px solid #e9edf2;
  padding-bottom: 23px;
}

.form-section h3 {
  margin: 0 0 2px;
  font-size: 14px;
}

.student-status-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.student-status-controls {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.student-audit-stamp {
  display: inline-flex;
  min-width: 174px;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  border: 1px solid #d8e0e9;
  border-radius: 9px;
  background: #f3f6f9;
  color: #647488;
  padding: 6px 7px;
  cursor: default;
}

.student-audit-stamp > time,
.student-audit-stamp > span:not(.student-audit-stamp__calendar) {
  overflow: hidden;
  flex: 1;
  color: #627286;
  font-size: 10px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-audit-stamp__calendar {
  display: inline-grid;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  place-items: center;
  border-radius: 7px;
  background: #e5ebf2;
  color: #718298;
}

.student-audit-stamp--plain {
  width: auto;
  min-width: auto;
  flex: 0 0 auto;
  justify-content: flex-start;
  gap: 5px;
  border: 0;
  background: transparent;
  padding: 0;
}

.student-audit-stamp--plain > time { flex: 0 0 auto; }

.student-audit-stamp--plain .student-audit-stamp__calendar {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
  background: #edf1f6;
}

.audit-actor-tooltip {
  position: relative;
  display: inline-grid;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  place-items: center;
  border: 1px solid #bdcad9;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff 10%, #edf2f7 100%);
  color: #53677e;
  cursor: help;
  line-height: 0;
  box-shadow: 0 2px 6px rgba(0, 26, 65, .08);
  transition: border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.audit-actor-tooltip svg { display: block; }
.audit-actor-tooltip:hover,
.audit-actor-tooltip:focus-visible { border-color: var(--orange); color: var(--orange); transform: translateY(-1px); }

.audit-actor-tooltip::after {
  position: absolute;
  z-index: 20;
  right: -5px;
  bottom: calc(100% + 7px);
  width: max-content;
  max-width: 210px;
  border-radius: 7px;
  background: var(--navy);
  color: #fff;
  padding: 6px 8px;
  box-shadow: 0 7px 18px rgba(0, 26, 65, .2);
  content: attr(data-tooltip);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.3;
  opacity: 0;
  pointer-events: none;
  transform: translateY(3px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.audit-actor-tooltip:hover::after,
.audit-actor-tooltip:focus::after,
.audit-actor-tooltip:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.student-status-summary {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  white-space: nowrap;
}

.student-status-summary strong { color: #9b3a32; }
.student-status-summary time { color: var(--navy); font-weight: 750; }

@media (max-width: 520px) {
  .student-status-heading { align-items: center; gap: 8px; }
  .student-status-controls { gap: 7px; }
  .student-audit-stamp { min-width: 174px; }
  .student-status-toggle { min-width: auto; gap: 6px; }
}

@media (max-width: 420px) {
  .student-status-heading { align-items: stretch; flex-direction: column; }
  .student-status-controls { width: 100%; justify-content: space-between; }
  .student-audit-stamp { flex: 1; }
}

.student-status-toggle {
  display: inline-flex;
  min-width: 114px;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: var(--navy);
  cursor: pointer;
  user-select: none;
}

.student-status-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.student-status-toggle__track {
  display: inline-flex;
  width: 38px;
  height: 22px;
  flex: 0 0 auto;
  align-items: center;
  border: 1px solid #c5d0dd;
  border-radius: 999px;
  background: #e8edf3;
  padding: 2px;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.student-status-toggle__track > span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 26, 65, .2);
  transition: transform 180ms ease;
}

.student-status-toggle input:checked + .student-status-toggle__track {
  border-color: #129565;
  background: #18a873;
}

.student-status-toggle input:checked + .student-status-toggle__track > span {
  transform: translateX(16px);
}

.student-status-toggle input:focus-visible + .student-status-toggle__track {
  box-shadow: 0 0 0 3px rgba(254, 88, 0, .2);
}

.student-status-toggle__label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
}

.student-status-toggle--inactive .student-status-toggle__label { color: #9b3a32; }
.student-status-toggle:has(input:disabled) { opacity: .6; cursor: wait; }

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

.form-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.inline-note {
  border-left: 3px solid var(--orange);
  background: #fff8f4;
  color: #6f4a35;
  padding: 10px 12px;
  font-size: 11px;
  line-height: 1.5;
}

.drawer__footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: auto -24px -24px;
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 16px 24px;
}

/* Sports and classes */
.catalog-panel {
  overflow: hidden;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  padding: 18px;
}

.catalog-grid--classes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.catalog-card {
  display: flex;
  min-height: 285px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.catalog-card:hover {
  border-color: #c8d1dc;
  box-shadow: 0 10px 24px rgba(0, 26, 65, 0.07);
  transform: translateY(-2px);
}

.catalog-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 18px 0;
}

.catalog-card__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  background: #fff1e9;
  color: var(--orange-dark);
}

.catalog-card__body {
  padding: 16px 18px 8px;
}

.catalog-card__body h3 {
  margin-bottom: 8px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.catalog-card__body p {
  min-height: 44px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.catalog-card__meta,
.class-card__facts {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 18px 17px;
}

.catalog-card__meta span,
.class-card__facts span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #53647a;
  font-size: 11px;
  font-weight: 650;
}

.catalog-card__meta svg,
.class-card__facts svg {
  color: #8996a6;
}

.catalog-card__action {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: auto;
  border: 0;
  border-top: 1px solid var(--line);
  background: #fbfcfd;
  color: var(--navy);
  font-size: 11px;
  font-weight: 750;
}

.catalog-card__action:hover {
  background: var(--surface-blue);
}

.catalog-skeleton {
  height: 285px;
  border-radius: 11px;
}

.catalog-empty {
  grid-column: 1 / -1;
  display: flex;
  min-height: 300px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #8794a5;
}

.catalog-empty strong {
  color: var(--navy);
  font-size: 14px;
}

.catalog-empty span {
  font-size: 11px;
}

.class-card {
  min-height: 330px;
}

.class-card__sport {
  display: block;
  margin-bottom: 5px;
  color: var(--orange-dark);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.schedule-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 18px 18px;
}

.schedule-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d8e1ec;
  border-radius: 999px;
  background: var(--surface-blue);
  color: #314b6c;
  padding: 6px 9px;
  font-size: 10px;
  font-weight: 750;
}

.schedule-chip--empty {
  border-style: dashed;
  background: #f8f9fb;
  color: #8491a1;
}

.status-badge--archived {
  background: #f1edfb;
  color: #6045a3;
}

.status-badge--invited {
  background: var(--warning-soft);
  color: var(--warning);
}

/* Profile and onboarding */
.profile-form {
  width: 100%;
}

.profile-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 34px;
  padding: 28px;
}

.profile-photo-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  border-right: 1px solid var(--line);
  padding-right: 28px;
}

.profile-photo {
  display: grid;
  width: 138px;
  height: 138px;
  overflow: hidden;
  place-items: center;
  border: 5px solid var(--white);
  border-radius: 50%;
  background: var(--surface-blue);
  box-shadow: 0 0 0 1px var(--line), 0 12px 30px rgba(0, 26, 65, 0.1);
  color: var(--navy);
  font-size: 34px;
  font-weight: 800;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-photo-button {
  position: relative;
  overflow: hidden;
}

.profile-photo-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.profile-photo-column small {
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.profile-fields {
  display: flex;
  flex-direction: column;
  gap: 19px;
}

.readonly-field {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9fb;
  color: #66768d;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
}

.form-success {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #a8dfc9;
  border-radius: 8px;
  background: var(--success-soft);
  color: var(--success);
  padding: 11px 13px;
  font-size: 12px;
  font-weight: 700;
}

.profile-actions {
  display: flex;
  justify-content: flex-end;
}

.onboarding-layout {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(330px, 0.75fr) minmax(610px, 1.25fr);
  background: var(--surface-soft);
}

.onboarding-story {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
  padding: 42px clamp(34px, 5vw, 70px);
}

.onboarding-story h1 {
  max-width: 520px;
  margin-bottom: 16px;
  color: var(--white);
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.onboarding-story p {
  max-width: 520px;
  color: #b8c7d9;
  line-height: 1.7;
}

.onboarding-proof {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  padding-top: 20px;
}

.onboarding-proof svg { color: var(--orange); }
.onboarding-proof span { display: flex; flex-direction: column; gap: 5px; }
.onboarding-proof small { color: #98aec8; line-height: 1.45; }

.onboarding-form-area {
  align-self: center;
  width: min(100%, 900px);
  padding: 40px clamp(25px, 5vw, 70px);
}

.onboarding-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 21px;
}

.onboarding-heading .eyebrow { margin-bottom: 2px; }
.onboarding-heading h2 { margin: 0; font-size: 27px; }

.profile-heading-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 11px;
  background: #fff1e9;
  color: var(--orange-dark);
}

/* Team */
.role-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.role-summary-card {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  padding: 15px;
}

.role-summary-card__icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  background: #fff1e9;
  color: var(--orange-dark);
}

.role-summary-card strong { display: block; font-size: 12px; }
.role-summary-card p { margin: 5px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }

.team-security-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.team-list {
  display: flex;
  flex-direction: column;
  padding: 4px 21px;
}

.team-member {
  display: grid;
  min-height: 94px;
  grid-template-columns: auto minmax(220px, 1fr) auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #edf0f4;
  padding: 14px 0;
}

.team-member:last-child { border-bottom: 0; }
.team-member__avatar { width: 46px; height: 46px; }

.team-member__identity {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.team-member__identity strong { font-size: 13px; }
.team-member__identity strong small { margin-left: 7px; border-radius: 99px; background: var(--surface-blue); color: var(--muted); padding: 3px 6px; font-size: 8px; }
.team-member__identity > span { color: var(--muted); font-size: 10px; font-weight: 650; }
.team-member__identity p { max-width: 600px; margin: 2px 0 0; color: #7c8999; font-size: 10px; line-height: 1.45; }

.team-member__access,
.team-member__editor {
  display: flex;
  align-items: center;
  gap: 8px;
}

.team-member__editor .field { min-width: 145px; }
.team-member__editor .field span { font-size: 9px; }
.team-member__editor .field select { min-height: 36px; }
.team-member__editor .button { min-height: 36px; padding: 7px 12px; font-size: 11px; }

.role-chip {
  display: inline-flex;
  border-radius: 999px;
  background: var(--surface-blue);
  color: #2d537f;
  padding: 6px 9px;
  font-size: 10px;
  font-weight: 750;
}

.role-chip--owner { background: #fff1e9; color: var(--orange-dark); }
.role-chip--teacher { background: #e8f7f0; color: var(--success); }
.role-chip--viewer { background: #eef1f5; color: #5f6d7e; }

/* Live lessons */
.lesson-layout {
  display: grid;
  grid-template-columns: minmax(270px, 0.7fr) minmax(0, 1.7fr);
  align-items: start;
  gap: 17px;
}

.lesson-list-panel {
  position: sticky;
  top: 105px;
  overflow: hidden;
}

.lesson-list {
  display: flex;
  max-height: calc(100vh - 215px);
  flex-direction: column;
  overflow-y: auto;
  padding: 5px 10px 10px;
}

.lesson-list-item {
  display: grid;
  min-height: 71px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid #edf0f4;
  border-radius: 8px;
  background: transparent;
  padding: 9px;
  text-align: left;
}

.lesson-list-item:hover { background: #f8fafc; }
.lesson-list-item--active { background: var(--surface-blue); }
.lesson-list-item__icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 8px; background: #fff1e9; color: var(--orange-dark); }
.lesson-list-item > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.lesson-list-item strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.lesson-list-item small { color: var(--muted); font-size: 8px; }

.lesson-status {
  border-radius: 999px;
  background: #eef1f5;
  color: #637083;
  padding: 5px 7px;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
}

.lesson-status--in_progress { background: #fff1e9; color: var(--orange-dark); }
.lesson-status--held { background: var(--success-soft); color: var(--success); }
.lesson-status--cancelled { background: var(--danger-soft); color: var(--danger); }

.lesson-workspace {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 17px;
}

.live-lesson-card {
  position: relative;
  display: grid;
  min-height: 165px;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 25px;
  border-radius: 13px;
  background: var(--navy);
  color: var(--white);
  padding: 27px;
}

.live-lesson-card::after {
  position: absolute;
  right: -70px;
  width: 230px;
  height: 230px;
  border: 35px solid rgba(254, 88, 0, 0.12);
  border-radius: 50%;
  content: "";
}

.live-lesson-card > * { position: relative; z-index: 1; }
.live-lesson-card__copy h3 { margin: 0 0 6px; color: var(--white); font-size: 24px; }
.live-lesson-card__copy p { margin: 0; color: #aebfd3; font-size: 11px; }

.lesson-timer {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 2px 9px;
}

.lesson-timer svg { grid-row: 1 / 3; color: var(--orange); }
.lesson-timer strong { font-variant-numeric: tabular-nums; font-size: 25px; letter-spacing: 0.04em; }
.lesson-timer span { color: #90a6c0; font-size: 8px; text-transform: uppercase; }
.lesson-completed { display: inline-flex; align-items: center; gap: 7px; color: #7fe0b9; font-size: 11px; font-weight: 800; }

.lesson-general-notes { display: flex; flex-direction: column; gap: 7px; padding: 18px 21px; }
.lesson-general-notes textarea,
.student-note-editor textarea { border: 1px solid #cbd4df; border-radius: 8px; color: var(--navy); padding: 11px; resize: vertical; }
.lesson-general-notes small { color: var(--muted); font-size: 9px; }

.lesson-roster-note { margin: 15px 18px 0; }
.lesson-student-list { display: flex; flex-direction: column; padding: 7px 18px 18px; }
.lesson-student-card { display: grid; grid-template-columns: minmax(180px, 0.7fr) minmax(260px, 1.3fr); gap: 16px; border-bottom: 1px solid #edf0f4; padding: 18px 0; }
.lesson-student-card:last-child { border-bottom: 0; }
.lesson-student-card__identity { display: flex; align-items: flex-start; gap: 10px; }
.lesson-student-card__identity > div { display: flex; flex-direction: column; gap: 4px; }
.lesson-student-card__identity strong { font-size: 12px; }
.lesson-student-card__identity small { color: var(--muted); font-size: 9px; }

.shared-note-list { grid-column: 2; display: flex; flex-direction: column; gap: 7px; }
.shared-note { display: flex; align-items: flex-start; gap: 8px; border-radius: 8px; background: var(--surface-blue); padding: 10px; }
.shared-note .avatar { width: 29px; height: 29px; font-size: 8px; }
.shared-note > div { min-width: 0; }
.shared-note strong { font-size: 9px; }
.shared-note p { margin: 3px 0; color: #3e5067; font-size: 10px; line-height: 1.45; }
.shared-note small { color: #8996a6; font-size: 8px; }

.student-note-editor { grid-column: 2; display: flex; align-items: flex-end; gap: 8px; }
.student-note-editor textarea { min-width: 0; flex: 1; font-size: 11px; }
.student-note-editor .button { min-height: 40px; flex: 0 0 auto; padding: 8px 11px; font-size: 10px; }
.lesson-empty { min-height: 430px; }

.attendance-panel-header { align-items: center; }

.attendance-progress-copy {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 2px;
}

.attendance-progress-copy strong {
  color: var(--navy);
  font-size: 23px;
  font-variant-numeric: tabular-nums;
}

.attendance-progress-copy span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
}

.attendance-summary-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fafbfc;
  padding: 11px 18px;
}

.attendance-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.attendance-count--present { background: var(--success-soft); color: var(--success); }
.attendance-count--absent { background: var(--danger-soft); color: var(--danger); }
.attendance-count--excused { background: var(--warning-soft); color: var(--warning); }
.attendance-mark-all { min-height: 34px; margin-left: auto; padding: 6px 10px; font-size: 10px; }

.attendance-roster {
  display: flex;
  flex-direction: column;
  padding: 5px 18px;
}

.attendance-student-row {
  display: grid;
  grid-template-columns: minmax(175px, 0.75fr) minmax(285px, 1.2fr) minmax(210px, 1fr);
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid #edf0f4;
  padding: 14px 0;
}

.attendance-student-row:last-child { border-bottom: 0; }

.attendance-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.attendance-option {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--muted);
  padding: 7px;
  font-size: 9px;
  font-weight: 800;
}

.attendance-option:hover:not(:disabled) { background: #f8fafc; }
.attendance-option--present.attendance-option--selected { border-color: #77c9aa; background: var(--success-soft); color: var(--success); }
.attendance-option--absent.attendance-option--selected { border-color: #eba39e; background: var(--danger-soft); color: var(--danger); }
.attendance-option--excused.attendance-option--selected { border-color: #e4c479; background: var(--warning-soft); color: var(--warning); }

.attendance-note-input {
  width: 100%;
  min-height: 38px;
  border: 1px solid #cbd4df;
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
  padding: 9px 10px;
  font-size: 10px;
}

.attendance-note-input--required { border-color: #dc8b29; background: #fffaf0; }

.attendance-save-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  background: var(--surface-blue);
  padding: 14px 18px;
}

.attendance-save-bar > div { display: flex; flex-direction: column; gap: 3px; }
.attendance-save-bar strong { color: var(--navy); font-size: 11px; }
.attendance-save-bar span { color: var(--muted); font-size: 9px; }
.attendance-empty { min-height: 180px; }

/* Attendance history */
.attendance-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}

.attendance-metric { min-height: 118px; }
.attendance-metric--rate { border-top: 3px solid var(--orange); }
.attendance-metric--present { border-top: 3px solid var(--success); }
.attendance-metric--absent { border-top: 3px solid var(--danger); }
.attendance-metric--excused { border-top: 3px solid #d18400; }
.attendance-history-panel { overflow: hidden; }
.attendance-history-list { display: flex; flex-direction: column; padding: 5px 20px 14px; }

.attendance-history-item {
  display: grid;
  grid-template-columns: auto minmax(165px, 1fr) minmax(280px, auto) auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #edf0f4;
  padding: 14px 0;
}

.attendance-history-item:last-child { border-bottom: 0; }
.attendance-history-item__icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 10px; background: #fff1e9; color: var(--orange-dark); }
.attendance-history-item__copy { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.attendance-history-item__copy strong { overflow: hidden; color: var(--navy); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.attendance-history-item__copy small { color: var(--muted); font-size: 9px; }
.attendance-history-item__counts { display: flex; align-items: center; gap: 5px; }
.attendance-history-item .button { min-height: 36px; padding: 7px 10px; font-size: 9px; }

/* Upcoming modules */
.feature-preview {
  display: grid;
  min-height: 430px;
  grid-template-columns: minmax(260px, 0.82fr) minmax(330px, 1.18fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
}

.feature-preview__visual {
  position: relative;
  display: flex;
  min-height: 430px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--navy);
}

.feature-preview__visual::before,
.feature-preview__visual::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.feature-preview__visual::before {
  width: 260px;
  height: 260px;
  border: 28px solid rgba(254, 88, 0, 0.13);
}

.feature-preview__visual::after {
  width: 390px;
  height: 390px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-preview__visual > span {
  z-index: 2;
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 18px;
  background: var(--orange);
  color: var(--navy);
}

.preview-lines {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.preview-lines i {
  height: 3px;
  flex: 1;
  background: rgba(255, 255, 255, 0.22);
}

.preview-lines i:first-child {
  background: var(--orange);
}

.feature-preview__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 6vw, 75px);
}

.development-chip {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  background: #fff1e9;
  color: var(--orange-dark);
  padding: 7px 10px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.feature-preview__copy h3 {
  max-width: 490px;
  margin: 20px 0 12px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.feature-preview__copy > p {
  max-width: 560px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.feature-preview__copy ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-preview__copy li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #3e5067;
  font-size: 13px;
  font-weight: 650;
}

.feature-preview__copy li svg {
  color: var(--success);
}

@media (max-width: 1100px) {
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .role-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lesson-layout {
    grid-template-columns: 1fr;
  }

  .lesson-list-panel { position: static; }
  .lesson-list { max-height: 330px; }

  .login-layout {
    grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1.1fr);
  }

  .login-story__copy h1 {
    font-size: 46px;
  }

  .login-story__proof {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .proof-dot {
    display: none;
  }
}

@media (max-width: 850px) {
  .login-layout {
    display: block;
    background: var(--white);
  }

  .login-story {
    display: none;
  }

  .login-panel {
    min-height: 100vh;
    justify-content: flex-start;
    padding: 30px 24px 20px;
  }

  .login-panel__mobile-brand {
    display: block;
    align-self: flex-start;
    margin-bottom: clamp(45px, 11vh, 100px);
  }

  .login-card {
    width: min(100%, 460px);
  }

  .app-layout {
    display: block;
    padding-bottom: 0;
  }

  .app-main {
    display: block;
  }

  .sidebar {
    width: min(84vw, 290px);
    transform: translateX(-102%);
    transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .sidebar--collapsed { width: min(84vw, 290px); }
  .sidebar--collapsed .sidebar__top { justify-content: space-between; padding: 0 25px; }
  .sidebar--collapsed .brand__logo-full,
  .sidebar--collapsed .nav-label,
  .sidebar--collapsed .nav-item__label,
  .sidebar--collapsed .sidebar-profile__copy { display: flex; }
  .sidebar--collapsed .brand__logo-full { display: block; }
  .sidebar--collapsed .brand__symbol { display: none; }
  .sidebar--collapsed .nav-label { display: block; }
  .sidebar--collapsed .sidebar__nav { align-items: stretch; padding: 24px 14px; }
  .sidebar--collapsed .nav-item { width: 100%; justify-content: flex-start; padding: 10px 13px; }
  .sidebar__collapse { display: none; }

  .sidebar--open {
    transform: translateX(0);
  }

  .sidebar__close,
  .sidebar-backdrop,
  .menu-button,
  .topbar__avatar {
    display: grid;
  }

  .topbar-avatar-button {
    display: inline-grid;
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 25;
    border: 0;
    background: rgba(0, 19, 48, 0.48);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
  }

  .topbar {
    min-height: 72px;
    padding: 10px 18px;
  }

  .topbar__left h1 {
    font-size: 19px;
  }

  .topbar__context,
  .organization-chip,
  .organization-select {
    display: none;
  }

  .page-content {
    padding: 20px 17px 34px;
  }

  .mobile-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 22;
    min-height: 66px;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
    padding: 5px max(5px, env(safe-area-inset-right)) max(5px, env(safe-area-inset-bottom)) max(5px, env(safe-area-inset-left));
    backdrop-filter: blur(12px);
  }

  .mobile-nav button {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border: 0;
    background: transparent;
    color: #7b899a;
    font-size: 8px;
    font-weight: 700;
  }

  .mobile-nav button::before {
    position: absolute;
    top: -5px;
    width: 28px;
    height: 2px;
    border-radius: 0 0 3px 3px;
    background: transparent;
    content: "";
  }

  .mobile-nav .mobile-nav__item--active {
    color: var(--navy);
  }

  .mobile-nav .mobile-nav__item--active::before {
    background: var(--orange);
  }

  .feature-preview {
    grid-template-columns: 1fr;
  }

  .feature-preview__visual {
    min-height: 240px;
  }

  .onboarding-layout { display: block; }
  .onboarding-story { min-height: 360px; padding: 30px; }
  .onboarding-story h1 { font-size: 36px; }
  .profile-card { grid-template-columns: 1fr; }
  .profile-photo-column { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 24px; }

  .live-lesson-card { grid-template-columns: 1fr auto; }
  .live-lesson-card .button,
  .lesson-completed { grid-column: 1 / -1; width: fit-content; }
}

@media (max-width: 650px) {
  .page-stack {
    gap: 17px;
  }

  .welcome-strip {
    min-height: 205px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 25px;
  }

  .welcome-strip .button {
    width: 100%;
  }

  .welcome-strip h2 {
    font-size: 27px;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .metric-card {
    min-height: 139px;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
  }

  .metric-card__icon {
    width: 36px;
    height: 36px;
  }

  .metric-card strong {
    font-size: 25px;
  }

  .panel__header {
    padding: 15px;
  }

  .recent-list,
  .class-list {
    padding: 4px 15px;
  }

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

  .recent-row time {
    display: none;
  }

  .recent-row .status-badge {
    max-width: 65px;
  }

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

  .page-heading h2 {
    font-size: 27px;
  }

  .page-heading p {
    font-size: 13px;
  }

  .page-heading .button {
    width: 44px;
    min-width: 44px;
    padding: 0;
    font-size: 0;
  }

  .students-toolbar {
    flex-wrap: wrap;
    padding: 13px;
  }

  .search-box {
    width: 100%;
  }

  .filter-select {
    flex: 1;
  }

  .results-count {
    flex: 0 0 auto;
  }

  .students-table-wrap {
    display: none;
  }

  .students-mobile-list {
    display: block;
  }

  .student-mobile-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    border-top: 1px solid #edf0f4;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    width: 100%;
    background: #fff;
    padding: 14px;
    color: var(--navy);
    text-align: left;
  }

  .student-mobile-card:hover { background: #f8fafc; }

  .student-mobile-card > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
  }

  .student-mobile-card strong,
  .student-mobile-card small,
  .student-mobile-card > div > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .student-mobile-card strong {
    font-size: 13px;
  }

  .student-mobile-card small,
  .student-mobile-card > div > span {
    color: var(--muted);
    font-size: 9px;
  }

  .status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9aa5b2;
  }

  .status-dot--active { background: var(--success); }
  .status-dot--pending { background: #d18400; }
  .status-dot--cancelled { background: var(--danger); }

  .student-mobile-card > .status-badge {
    min-width: 62px;
    justify-content: center;
    padding: 5px 8px;
    font-size: 9px;
  }

  .drawer {
    width: 100%;
  }

  .drawer__header,
  .drawer__form {
    padding-right: 18px;
    padding-left: 18px;
  }

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

  .form-grid--three {
    grid-template-columns: 1fr;
  }

  .catalog-grid,
  .catalog-grid--classes {
    grid-template-columns: 1fr;
    padding: 13px;
  }

  .drawer__footer {
    margin-right: -18px;
    margin-left: -18px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .feature-preview__copy {
    padding: 29px 23px 36px;
  }

  .toast {
    top: 82px;
    right: 16px;
  }

  .role-summary-grid { grid-template-columns: 1fr; }
  .team-member { grid-template-columns: auto minmax(0, 1fr); }
  .team-member__access,
  .team-member__editor { grid-column: 1 / -1; flex-wrap: wrap; padding-left: 60px; }
  .team-member__editor .field { min-width: 135px; flex: 1; }

  .live-lesson-card { grid-template-columns: 1fr; gap: 18px; padding: 23px; }
  .lesson-timer { width: fit-content; }
  .lesson-student-card { grid-template-columns: 1fr; }
  .shared-note-list,
  .student-note-editor { grid-column: 1; }
  .student-note-editor { align-items: stretch; flex-direction: column; }
  .student-note-editor .button { width: 100%; }
  .team-security-note { display: none; }
}

.page-heading__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.segmented-tabs {
  display: flex;
  width: fit-content;
  max-width: 100%;
  gap: 4px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 5px;
}

.segmented-tabs button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 0 16px;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.segmented-tabs button:hover,
.segmented-tabs .segmented-tabs__item--active {
  background: #eef3fa;
  color: var(--navy);
}

.registration-form {
  display: grid;
  gap: 18px;
}

.registration-section {
  padding: 25px;
}

.registration-section__header {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
  padding-bottom: 18px;
}

.registration-section__header h3,
.import-intro h3,
.import-history-panel h3 {
  margin: 0;
  color: var(--navy);
  font-size: 18px;
}

.registration-section__header p,
.import-intro p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.step-number,
.import-flow__number {
  display: inline-flex;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.registration-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 17px;
}

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

.choice-fieldset {
  border: 0;
  margin: 4px 0 0;
  padding: 0;
}

.choice-fieldset legend {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
}

.sport-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.sport-choice {
  position: relative;
  display: flex;
  min-height: 88px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(0, 26, 65, .045);
  padding: 14px 15px;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.catalog-card__icon img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: contain;
}

.sport-choice:hover {
  border-color: #9fb0c7;
  box-shadow: 0 9px 22px rgba(0, 26, 65, .08);
  transform: translateY(-1px);
}

.sport-choice:has(input:checked) {
  border-color: var(--orange);
  background: linear-gradient(135deg, #fff9f5 45%, #ffede1 100%);
  box-shadow: 0 8px 22px rgba(255, 84, 0, .13);
}

.sport-choice input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--orange);
}

.sport-choice__mark {
  display: inline-flex;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #ffd2b5;
  border-radius: 15px;
  background: #fff4ed;
  color: var(--orange);
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.sport-choice__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  transform: scale(1.08);
}

.sport-choice:has(input:checked) .sport-choice__mark {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

.sport-choice__content,
.sport-choice > span:not(.sport-choice__mark) {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.sport-choice strong {
  color: var(--navy);
  font-size: 13px;
}

.search-box input:focus-visible {
  box-shadow: none;
}

.sport-choice small {
  color: var(--muted);
  font-size: 10px;
}

.sport-choice > svg {
  opacity: 0;
  color: var(--orange);
  transform: scale(.75);
  transition: opacity 160ms ease, transform 160ms ease;
}

.sport-choice:has(input:checked) > svg { opacity: 1; transform: scale(1); }
.sport-choice--disabled { opacity: .55; cursor: not-allowed; }
.sport-choice--disabled:hover { transform: none; }

.inline-options {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 8px;
}

.inline-options label {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.address-fieldset {
  border: 0;
  margin: 4px 0 0;
  padding: 0;
}

.address-fieldset legend {
  margin-bottom: 12px;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
}

.registration-grid--address {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.registration-grid--address .cep-field { grid-column: span 2; }
.registration-grid--address .address-street { grid-column: span 6; }
.registration-grid--address .address-street + .field { grid-column: span 3; }
.registration-grid--address .number-toggle { grid-column: span 1; }
.registration-grid--address .address-complement { grid-column: span 3; }
.registration-grid--address .address-neighborhood { grid-column: span 5; }
.registration-grid--address .address-city { grid-column: span 3; }
.registration-grid--address .address-state { grid-column: span 1; }

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

.number-toggle {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  align-self: end;
  gap: 7px;
  padding: 0 4px;
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.number-toggle input { accent-color: var(--orange); }

.inline-document-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 0;
  background: transparent;
  color: var(--orange);
  padding: 0;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.inline-options label:has(input:checked) {
  border-color: var(--orange);
  background: #fff5ee;
}

.inline-options input,
.declaration-list input {
  accent-color: var(--orange);
}

.declaration-list {
  display: grid;
  gap: 9px;
  margin: 20px 0;
}

.declaration-list label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 13px 14px;
  color: var(--navy);
  font-size: 12px;
  line-height: 1.45;
  cursor: pointer;
}

.declaration-list input { margin-top: 2px; }

.registration-submit-bar,
.import-confirm-bar {
  position: sticky;
  z-index: 4;
  bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid #cdd7e4;
  border-radius: 16px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 40px rgba(0, 26, 65, .13);
  padding: 16px 18px;
  backdrop-filter: blur(12px);
}

.registration-submit-bar > div,
.import-confirm-bar > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.registration-submit-bar strong,
.import-confirm-bar strong { color: var(--navy); font-size: 13px; }
.registration-submit-bar span,
.import-confirm-bar span { color: var(--muted); font-size: 11px; }

.import-intro {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 24px;
}

.import-intro__icon,
.import-history-icon {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: #edf3fb;
  color: var(--navy);
}

.import-intro__actions {
  display: flex;
  gap: 8px;
}

.import-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.import-flow > div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  padding: 14px;
}

.import-flow__number { grid-row: 1 / 3; }
.import-flow strong { align-self: end; color: var(--navy); font-size: 12px; }
.import-flow small { align-self: start; color: var(--muted); font-size: 10px; }

.import-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
}

.import-summary-grid .metric-card {
  display: flex;
  min-height: 120px;
  align-items: flex-start;
  flex-direction: column;
  gap: 5px;
  border-top: 3px solid #aab6c5;
  padding: 17px;
}

.import-summary-grid .metric-card span { color: var(--muted); font-size: 11px; font-weight: 700; }
.import-summary-grid .metric-card strong { color: var(--navy); font-size: 30px; }
.import-summary-grid .metric-card small { overflow: hidden; max-width: 100%; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.import-summary-grid .metric-card--success { border-top-color: var(--success); }
.import-summary-grid .metric-card--warning { border-top-color: #d18400; }
.import-summary-grid .metric-card--danger { border-top-color: var(--danger); }

.import-preview-panel { overflow: hidden; }
.import-preview-table-wrap { overflow: auto; }
.import-preview-table { width: 100%; border-collapse: collapse; min-width: 930px; }
.import-preview-table th { background: #f4f6f9; padding: 11px 13px; color: var(--muted); font-size: 10px; text-align: left; text-transform: uppercase; letter-spacing: .04em; }
.import-preview-table td { border-top: 1px solid var(--line); padding: 12px 13px; color: var(--navy); font-size: 11px; vertical-align: top; }
.import-preview-table td:last-child { max-width: 340px; color: var(--muted); line-height: 1.4; }

.import-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.import-status--valid { background: #e8f7f0; color: #087a55; }
.import-status--review { background: #fff5dd; color: #9a5a00; }
.import-status--invalid { background: #ffeded; color: #a32626; }

.progress-line {
  width: min(360px, 100%);
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  margin-top: 5px;
  background: #e7ebf0;
}

.progress-line > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--orange);
  transition: width 180ms ease;
}

.import-history-panel { overflow: hidden; }
.import-history-list { padding: 0 20px 12px; }
.import-history-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 13px;
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.import-history-list article:first-child { border-top: 0; }
.import-history-icon { width: 40px; height: 40px; border-radius: 12px; }
.import-history-list article > div { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.import-history-list strong { overflow: hidden; color: var(--navy); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.import-history-list small { color: var(--muted); font-size: 10px; }
.import-history-counts { align-items: flex-end; }
.import-history-counts span { color: var(--muted); font-size: 10px; }

.permission-panel {
  display: flex;
  min-height: 320px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: var(--navy);
  text-align: center;
}

.permission-panel h2 { margin: 0; }
.permission-panel p { max-width: 480px; margin: 0; color: var(--muted); }

.public-registration {
  --navy: var(--public-primary, #001a41);
  --orange: var(--public-accent, #fe5800);
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 3%, color-mix(in srgb, var(--orange) 12%, transparent), transparent 28rem),
    linear-gradient(180deg, #edf2f8 0, #f7f9fc 28rem, #f4f6f9 100%);
  padding: 5px 22px 26px;
}

.public-registration--centered {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: var(--navy);
  text-align: center;
}

.public-registration--centered h1 { max-width: 620px; margin: 2px 0 0; font-size: clamp(27px, 5vw, 42px); }
.public-registration--centered p { max-width: 560px; margin: 0; color: var(--muted); line-height: 1.65; }
.spin { animation: spin 700ms linear infinite; }

.public-registration__hero,
.public-registration__form,
.public-registration__footer {
  width: min(960px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.public-registration__hero {
  position: relative;
  display: flex;
  overflow: hidden;
  align-items: center;
  flex-direction: column;
  border-radius: 24px;
  margin-bottom: 20px;
  background:
    radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--orange) 58%, transparent), transparent 14rem),
    var(--navy);
  box-shadow: 0 24px 70px rgba(0, 26, 65, .2);
  padding: 27px 30px 30px;
  color: #fff;
  text-align: center;
}

.public-registration__brand {
  display: flex;
  width: min(420px, 82vw);
  height: 192px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.public-registration--loading {
  gap: 17px;
  background: var(--surface-soft);
  color: var(--navy);
}

.public-registration__loading-logo {
  display: block;
  width: 220px;
  height: 145px;
  object-fit: contain;
}

.public-registration--loading strong {
  font-size: 16px;
}

.public-registration__brand img {
  display: block;
  width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 9px 20px rgba(0, 0, 0, .2));
}

.public-brand-mark {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: var(--orange);
  color: #fff;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}

.public-registration__brand > span:last-child {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.public-registration__brand strong { font-size: 17px; letter-spacing: .12em; }
.public-registration__brand small { margin-top: 4px; font-size: 9px; font-weight: 700; letter-spacing: .42em; }
.public-registration__intro { max-width: 690px; text-align: center; }
.public-registration__intro .eyebrow { color: #ffb38b; }
.public-registration__intro h1 { margin: 8px 0 9px; font-size: clamp(29px, 5vw, 44px); letter-spacing: -.035em; }
.public-registration__intro p { max-width: 660px; margin: 0 auto; color: rgba(255, 255, 255, .78); font-size: 14px; line-height: 1.65; }

.public-registration__trust {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  margin-top: 22px;
  background: rgba(255, 255, 255, .08);
  padding: 8px 11px;
  color: rgba(255, 255, 255, .86);
  font-size: 11px;
}

.public-registration__form .panel { box-shadow: 0 13px 36px rgba(0, 26, 65, .07); }
.public-registration__form .step-number { background: var(--navy); }
.public-registration__form .sport-choice:has(input:checked) { border-color: var(--orange); }
.public-registration__form .button--primary { background: var(--orange); }
.public-registration__form .button--primary:hover { filter: brightness(.94); }
.public-registration__form::after {
  display: block;
  height: 88px;
  content: '';
}
.registration-submit-bar.public-registration__submit {
  position: fixed !important;
  z-index: 40;
  right: auto;
  bottom: 38px !important;
  left: 50%;
  width: min(920px, calc(100% - 28px));
  margin: 0;
  transform: translateX(-50%);
}
.public-registration__submit .button { min-width: 180px; }

.public-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.public-registration__footer {
  position: fixed;
  z-index: 39;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  width: 100%;
  min-height: 32px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(223, 229, 237, .9);
  background: rgba(255, 255, 255, .94);
  padding: 7px max(22px, calc((100% - 960px) / 2));
  color: #7b899a;
  font-size: 10px;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.public-confirmation {
  display: flex;
  width: min(610px, 100%);
  align-items: center;
  flex-direction: column;
  border: 1px solid #dce3ec;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(0, 26, 65, .14);
  padding: clamp(28px, 7vw, 54px);
}

.public-confirmation__icon {
  display: inline-flex;
  width: 76px;
  height: 76px;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  margin-bottom: 22px;
  background: #e8f7f0;
  color: #087a55;
}

.public-confirmation .eyebrow { color: var(--orange); }
.public-confirmation h1 { margin: 8px 0 10px; }
.public-protocol {
  display: flex;
  width: min(370px, 100%);
  flex-direction: column;
  gap: 6px;
  border: 1px dashed #aebbc9;
  border-radius: 15px;
  margin: 25px 0 10px;
  background: #f6f8fb;
  padding: 16px;
}

.public-protocol span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.public-protocol strong { color: var(--navy); font-size: 23px; letter-spacing: .08em; }
.public-confirmation > small { color: var(--muted); font-size: 10px; }

.public-link-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 17px;
  padding: 22px;
}

.public-link-card__icon {
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: #fff0e8;
  color: var(--orange);
}

.public-link-card h3,
.public-submission h3,
.public-queue-empty h3 { margin: 3px 0 0; color: var(--navy); font-size: 17px; }
.public-link-card p { overflow: hidden; margin: 7px 0 3px; color: var(--navy); font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.public-link-card small { color: var(--muted); font-size: 10px; }

.public-queue-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.public-queue-count {
  display: inline-flex;
  min-width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 10px;
}

.public-queue-empty {
  display: flex;
  min-height: 220px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  padding: 28px;
  color: var(--navy);
  text-align: center;
}

.public-queue-empty p,
.public-queue-empty span { margin: 0; color: var(--muted); font-size: 11px; }
.public-submission-list { display: grid; gap: 14px; }
.public-submission { overflow: hidden; padding: 0; }

.public-submission__header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
}

.student-avatar {
  display: inline-flex;
  width: 45px;
  height: 45px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #eaf0f8;
  color: var(--navy);
  font-size: 12px;
  font-weight: 900;
}

.public-submission__header h3 { margin-top: 2px; }
.public-submission__header p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }

.public-submission__warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-top: 1px solid #f1d9a7;
  border-bottom: 1px solid #f1d9a7;
  background: #fff9eb;
  padding: 12px 20px;
  color: #8b5600;
}

.public-submission__warning > div { display: flex; flex-direction: column; gap: 2px; }
.public-submission__warning strong { font-size: 11px; }
.public-submission__warning span { font-size: 10px; line-height: 1.45; }

.public-submission__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  border-top: 1px solid var(--line);
  padding: 5px 20px;
}

.public-submission__details > div {
  display: flex;
  min-width: 0;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #edf0f4;
  padding: 11px 0;
}

.public-submission__details > div:nth-last-child(-n + 2) { border-bottom: 0; }
.public-submission__details span { flex: 0 0 auto; color: var(--muted); font-size: 10px; }
.public-submission__details strong { overflow-wrap: anywhere; color: var(--navy); font-size: 10px; font-weight: 700; text-align: right; }

.public-submission__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid var(--line);
  background: #f8fafc;
  padding: 14px 20px;
}

.public-rejection-box,
.public-approval-confirm {
  display: flex;
  width: 100%;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.public-rejection-box .field { flex: 1; }
.public-rejection-box > div,
.public-approval-confirm > div { display: flex; flex: 0 0 auto; gap: 8px; }
.public-approval-confirm { align-items: center; }
.public-approval-confirm > span { color: var(--navy); font-size: 11px; font-weight: 700; }

.button--danger {
  border-color: #bb3131;
  background: #bb3131;
  color: #fff;
}

.button--danger:hover { background: #a72727; }

.public-submission__reviewed {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-top: 1px solid var(--line);
  background: #f8fafc;
  padding: 13px 20px;
}

.public-submission__reviewed strong { color: var(--navy); font-size: 10px; }
.public-submission__reviewed span { color: var(--muted); font-size: 10px; }

@media (max-width: 1000px) {
  .sport-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .import-intro { grid-template-columns: auto minmax(0, 1fr); }
  .import-intro__actions { grid-column: 1 / -1; }
  .import-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .attendance-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .attendance-student-row { grid-template-columns: minmax(170px, 0.7fr) minmax(280px, 1.3fr); }
  .attendance-note-input { grid-column: 2; }
  .attendance-history-item { grid-template-columns: auto minmax(0, 1fr) auto; }
  .attendance-history-item__counts { grid-column: 2; }
  .attendance-history-item .button { grid-column: 3; grid-row: 1 / 3; }
}

@media (max-width: 650px) {
  .page-heading { align-items: flex-start; }
  .page-heading__actions { width: 100%; gap: 7px; }
  .page-heading__actions .button { flex: 1 1 0; min-height: 46px; justify-content: center; }
  .segmented-tabs { width: 100%; }
  .segmented-tabs button { flex: 1 0 auto; padding: 0 12px; }
  .registration-section { width: 100%; margin-inline: auto; padding: 18px; }
  .registration-grid--2,
  .registration-grid--address,
  .registration-grid--3,
  .sport-choice-grid,
  .import-flow,
  .import-summary-grid { grid-template-columns: 1fr; }
  .registration-grid--address > * { grid-column: auto !important; }
  .registration-submit-bar,
  .import-confirm-bar { position: static; align-items: stretch; flex-direction: column; }
  .registration-submit-bar .button,
  .import-confirm-bar .button { width: 100%; }
  .import-intro { grid-template-columns: 1fr; padding: 19px; }
  .import-intro__actions { grid-column: 1; align-items: stretch; flex-direction: column; }
  .import-intro__actions .button { width: 100%; }
  .import-history-list article { grid-template-columns: auto minmax(0, 1fr); }
  .import-history-counts,
  .import-history-list article > .import-status { grid-column: 2; align-items: flex-start; }
  .attendance-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .attendance-metric { min-height: 135px; }
  .attendance-summary-strip { flex-wrap: wrap; padding: 11px 14px; }
  .attendance-mark-all { width: 100%; margin-left: 0; }
  .attendance-roster { padding: 5px 14px; }
  .attendance-student-row { grid-template-columns: 1fr; align-items: stretch; gap: 10px; }
  .attendance-note-input { grid-column: 1; }
  .attendance-save-bar { position: sticky; bottom: 76px; z-index: 3; align-items: stretch; flex-direction: column; }
  .attendance-save-bar .button { width: 100%; }
  .attendance-history-list { padding-right: 14px; padding-left: 14px; }
  .attendance-history-item { grid-template-columns: auto minmax(0, 1fr); }
  .attendance-history-item__counts { grid-column: 1 / -1; flex-wrap: wrap; }
  .attendance-history-item .button { grid-column: 1 / -1; grid-row: auto; width: 100%; }
  .number-toggle { min-height: 30px; align-self: start; margin-top: -7px; }
  .public-registration { overflow-x: hidden; padding: 0 12px 20px; }
  .public-registration__hero { width: calc(100% + 24px); border-radius: 0 0 22px 22px; margin-right: -12px; margin-left: -12px; padding: 13px 20px 27px; }
  .public-registration__brand { width: min(380px, 88vw); height: 178px; margin-bottom: -6px; }
  .public-registration__loading-logo { width: 220px; height: 145px; }
  .public-registration__trust { align-items: flex-start; border-radius: 13px; }
  .public-registration__form { width: 100%; }
  .public-registration__form::after { height: 138px; }
  .registration-submit-bar.public-registration__submit { width: calc(100% - 24px); }
  .public-registration__footer { min-height: 32px; align-items: center; flex-direction: row; gap: 10px; padding: 7px 14px; font-size: 9px; text-align: left; }
  .public-link-card { grid-template-columns: auto minmax(0, 1fr); }
  .public-link-card .button { grid-column: 1 / -1; width: 100%; }
  .public-queue-toolbar { align-items: stretch; flex-direction: column; }
  .public-queue-toolbar .segmented-tabs { order: 1; }
  .public-queue-toolbar > .button { align-self: flex-end; }
  .public-submission__header { grid-template-columns: auto minmax(0, 1fr); }
  .public-submission__header > .import-status { grid-column: 2; width: fit-content; }
  .public-submission__details { grid-template-columns: 1fr; }
  .public-submission__details > div:nth-last-child(-n + 2) { border-bottom: 1px solid #edf0f4; }
  .public-submission__details > div:last-child { border-bottom: 0; }
  .public-submission__actions { align-items: stretch; flex-direction: column; }
  .public-submission__actions > .button { width: 100%; }
  .public-rejection-box,
  .public-approval-confirm { align-items: stretch; flex-direction: column; }
  .public-rejection-box > div,
  .public-approval-confirm > div { flex-direction: column-reverse; }
  .public-rejection-box .button,
  .public-approval-confirm .button { width: 100%; }
}

/* Finance */
.finance-metrics .metric-card strong {
  font-size: clamp(20px, 2vw, 27px);
}

.finance-metrics .metric-card--danger { border-top: 3px solid var(--danger); }
.finance-metrics .metric-card--success { border-top: 3px solid var(--success); }
.finance-metrics .metric-card--warning { border-top: 3px solid #d18400; }
.finance-metrics .metric-card--danger .metric-card__icon { background: #fff0f0; color: var(--danger); }
.finance-metrics .metric-card--success .metric-card__icon { background: var(--success-soft); color: var(--success); }
.finance-metrics .metric-card--warning .metric-card__icon { background: var(--warning-soft); color: var(--warning); }

.finance-panel { overflow: hidden; }
.finance-panel .panel__header > small { color: var(--muted); font-size: 11px; }
.finance-table-wrap { display: block; overflow-x: auto; }
.finance-table { min-width: 920px; }
.finance-table th:last-child,
.finance-table td:last-child { text-align: right; }

.finance-primary-cell {
  display: flex;
  min-width: 190px;
  flex-direction: column;
  gap: 4px;
}

.finance-primary-cell strong { color: var(--navy); font-size: 12px; }
.finance-primary-cell small,
.finance-paid-copy { display: block; color: var(--muted); font-size: 10px; }
.finance-paid-copy { margin-top: 4px; }

.status-badge--open { background: #eaf3ff; color: #285f9e; }
.status-badge--paid { background: var(--success-soft); color: var(--success); }
.status-badge--overdue { background: #fff0f0; color: var(--danger); }
.status-badge--draft { background: #eef1f5; color: #5f6d7e; }

.finance-row-actions {
  display: flex;
  min-width: 128px;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.finance-row-actions button {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--navy);
}

.finance-row-actions button:hover:not(:disabled) { border-color: var(--orange); color: var(--orange-dark); }
.finance-row-actions a { color: var(--orange-dark); font-size: 11px; font-weight: 750; }

.finance-message-list { display: grid; gap: 12px; }
.finance-message-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
}

.finance-channel-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 11px;
  background: #eaf7ef;
  color: #128c4f;
}

.finance-channel-icon--email { background: #eaf3ff; color: #285f9e; }
.finance-message-card__copy { min-width: 0; }
.finance-message-card__copy > div { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.finance-message-card__copy p { margin: 7px 0 4px; color: var(--navy); font-size: 12px; }
.finance-message-card__copy small { color: var(--muted); font-size: 10px; }
.finance-message-card__copy .finance-message-error { display: block; margin-top: 7px; color: var(--danger); }
.finance-message-card__actions { display: flex; align-items: center; gap: 8px; }
.finance-message-card__actions .button { min-height: 38px; padding: 8px 12px; font-size: 11px; }
.integration-wait { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.integration-wait--sent { color: var(--success); font-weight: 750; }

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

.integration-card {
  position: relative;
  display: grid;
  min-height: 208px;
  grid-template-columns: auto minmax(0, 1fr);
  align-content: start;
  gap: 15px;
  padding: 22px;
}

.integration-card__icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 11px;
  background: #fff1e9;
  color: var(--orange-dark);
}

.integration-card h3 { margin: 3px 0 8px; font-size: 19px; }
.integration-card p { margin: 0 0 37px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.integration-card--cloud { background: var(--navy); }
.integration-card--cloud h3 { color: var(--white); }
.integration-card--cloud p { color: #b7c6d9; }
.integration-card--cloud .integration-card__icon { background: rgba(255,255,255,.1); color: var(--orange); }

.integration-status {
  position: absolute;
  right: 22px;
  bottom: 20px;
  display: inline-flex;
  border-radius: 999px;
  background: var(--warning-soft);
  color: var(--warning);
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 750;
}

.integration-card--cloud .integration-status { background: rgba(255,255,255,.12); color: #dbe7f4; }

@media (max-width: 1000px) {
  .finance-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finance-message-card { grid-template-columns: auto minmax(0, 1fr); }
  .finance-message-card__actions { grid-column: 2; }
}

@media (max-width: 700px) {
  .finance-page .page-heading { align-items: stretch; flex-direction: column; }
  .finance-page .page-heading__actions { width: 100%; }
  .finance-page .page-heading__actions .button { width: auto; flex: 1; font-size: 11px; }
  .finance-metrics { grid-template-columns: 1fr; }
  .finance-table-wrap { display: block !important; }
  .finance-message-card { grid-template-columns: auto minmax(0, 1fr); align-items: start; padding: 16px; }
  .finance-message-card__actions { grid-column: 1 / -1; align-items: stretch; flex-direction: column; }
  .finance-message-card__actions .button { width: 100%; }
  .integration-grid { grid-template-columns: 1fr; }
  .integration-card { min-height: 220px; }
}

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

.settings-summary .panel {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 13px;
  padding: 18px 20px;
}

.settings-summary .panel > span,
.settings-section__icon {
  display: grid;
  flex: 0 0 auto;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 12px;
  background: var(--orange-soft);
  color: var(--orange-dark);
}

.settings-summary .panel > div { display: grid; min-width: 0; gap: 3px; }
.settings-summary small { color: var(--muted); font-size: 10px; }
.settings-summary strong { color: var(--navy); font-size: 17px; }

.settings-section { display: grid; gap: 22px; padding: 24px; }
.settings-section__header { display: flex; align-items: flex-start; gap: 14px; }
.settings-section__header h3 { margin: 3px 0 5px; color: var(--navy); font-size: 19px; }
.settings-section__header p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

.settings-effective-date {
  display: grid;
  grid-template-columns: minmax(190px, 280px) minmax(0, 1fr);
  align-items: end;
  gap: 18px;
}

.settings-price-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.settings-price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 190px);
  align-items: center;
  gap: 20px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.settings-price-row:last-child { border-bottom: 0; }
.settings-price-row > span:first-child { display: grid; min-width: 0; gap: 3px; }
.settings-price-row strong { color: var(--navy); font-size: 12px; }
.settings-price-row small { color: var(--muted); font-size: 10px; }

.currency-input,
.number-suffix-input {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--white);
}

.currency-input > span,
.number-suffix-input > span {
  padding: 0 11px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.currency-input input,
.number-suffix-input input {
  min-width: 0;
  min-height: 41px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  outline: 0;
}

.number-suffix-input { grid-template-columns: minmax(0, 1fr) auto; }
.number-suffix-input input { border-right: 1px solid var(--line); border-left: 0; }

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.settings-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.settings-check,
.settings-provider-line {
  display: flex;
  grid-column: 1 / -1;
  align-items: flex-start;
  gap: 11px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.settings-check input { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 2px; accent-color: var(--orange); }
.settings-check > span,
.settings-provider-line > span { display: grid; gap: 3px; }
.settings-check strong,
.settings-provider-line strong { color: var(--navy); font-size: 11px; }
.settings-check small,
.settings-provider-line small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.settings-provider-line > svg { flex: 0 0 auto; color: var(--orange-dark); }

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

@media (max-width: 700px) {
  .settings-page .page-heading { align-items: stretch; flex-direction: column; }
  .settings-page .page-heading__actions,
  .settings-page .page-heading__actions .button { width: 100%; }
  .settings-summary { grid-template-columns: 1fr; }
  .settings-section { gap: 18px; padding: 18px 16px; }
  .settings-effective-date,
  .settings-fields { grid-template-columns: 1fr; }
  .settings-price-row { grid-template-columns: 1fr; gap: 10px; }
  .settings-check,
  .settings-provider-line { grid-column: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* Visual refinements layered over styles.css.
   Keep these overrides small and reversible while the recovered UI is homologated. */

/* Sidebar collapse control: slightly stronger chevron anchored to the outer edge. */
.sidebar__top {
  position: relative;
}

.sidebar__collapse.icon-button {
  position: absolute;
  top: 66%;
  right: -15px;
  z-index: 32;
  width: 30px;
  height: 30px;
  transform: translateY(-50%);
  border: 1px solid #c8d2df;
  border-radius: 999px;
  background: #ffffff;
  color: #3f536f;
  box-shadow: 0 5px 14px rgba(0, 26, 65, 0.16);
}

.sidebar__collapse.icon-button:hover {
  background: #f8fafc;
  color: #001a41;
  border-color: #9eabbc;
  box-shadow: 0 7px 18px rgba(0, 26, 65, 0.2);
}

.sidebar__collapse.icon-button:focus-visible {
  box-shadow: 0 0 0 3px rgba(254, 88, 0, 0.18), 0 5px 14px rgba(0, 26, 65, 0.16);
}

/* Logout: retain the red cue without the heavy red outline. */
.logout-button,
.sidebar__bottom .logout-button {
  border: 0 !important;
  background: transparent !important;
  color: #ef6a6a !important;
}

.logout-button:hover,
.sidebar__bottom .logout-button:hover {
  border: 0 !important;
  background: rgba(239, 106, 106, 0.12) !important;
  color: #ff8b8b !important;
}

/* Catalog actions: one continuous footer, edit as the primary action and delete as a discreet icon. */
.catalog-card__actions--refined {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 48px !important;
  gap: 0 !important;
  overflow: hidden;
  border-top: 1px solid #e6ebf1;
  background: #fbfcfe;
}

.catalog-card__actions--refined .catalog-card__action {
  border-top: 0 !important;
  background: transparent !important;
}

.catalog-card__delete,
.catalog-card__delete--icon {
  display: grid !important;
  width: 48px;
  min-width: 48px;
  height: 100%;
  min-height: 48px;
  place-items: center;
  border: 0 !important;
  border-left: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #c7382b !important;
  padding: 0 !important;
  transition: background 150ms ease, color 150ms ease;
}

.catalog-card__delete:hover:not(:disabled),
.catalog-card__delete--icon:hover:not(:disabled) {
  border: 0 !important;
  border-left: 0 !important;
  background: #fef2f1 !important;
  color: #a52a20 !important;
}

.animated-trash {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
}

.animated-trash svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.animated-trash__lid {
  transform-box: fill-box;
  transform-origin: 12% 100%;
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.catalog-card__delete:hover:not(:disabled) .animated-trash__lid,
.catalog-card__delete:focus-visible:not(:disabled) .animated-trash__lid {
  transform: translate(-1px, -1px) rotate(-17deg);
}

@media (prefers-reduced-motion: reduce) {
  .animated-trash__lid {
    transition: none;
  }

  .catalog-card__delete:hover:not(:disabled) .animated-trash__lid,
  .catalog-card__delete:focus-visible:not(:disabled) .animated-trash__lid {
    transform: none;
  }
}

/* Modalidades: use melhor a altura disponível em telas largas sem apertar o mobile. */
.sports-page .catalog-card__icon {
  width: 48px;
  height: 48px;
  border: 0;
  background: transparent;
}

@media (min-width: 1101px) {
  .sports-page {
    gap: 18px;
  }

  .sports-page .catalog-grid {
    gap: 13px;
    padding-block: 14px;
  }

  .sports-page .catalog-card {
    min-height: 258px;
  }

  .sports-page .catalog-card__top {
    padding-top: 13px;
  }

  .sports-page .catalog-card__body {
    padding-top: 12px;
    padding-bottom: 5px;
  }

  .sports-page .catalog-card__body p {
    min-height: 36px;
  }

  .sports-page .catalog-card__meta {
    gap: 6px;
    padding-top: 6px;
    padding-bottom: 12px;
  }
}

@media (max-width: 650px) and (min-height: 820px) {
  .drawer--sport-form .drawer__form {
    overflow-y: hidden;
  }
}

/* Feedback global do sino: reação imediata e lembrete discreto quando há avisos. */
.notification-backdrop,
.sidebar-backdrop {
  background: rgba(0, 19, 48, .42);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  animation: notification-backdrop-in 220ms ease-out both;
}

.notification-drawer {
  animation: notification-drawer-in 240ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.notification-backdrop--closing {
  animation: notification-backdrop-out 200ms ease-in both;
}

.notification-drawer--closing {
  animation: notification-drawer-out 240ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  pointer-events: none;
}

.sidebar-backdrop--closing {
  animation: notification-backdrop-out 220ms ease-in both;
  pointer-events: none;
}

@keyframes notification-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes notification-backdrop-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes notification-drawer-in {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes notification-drawer-out {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(32px); }
}

.notification-button__bell {
  transform-origin: 50% 12%;
}

.notification-button--unread:not(:hover):not(:focus-visible) .notification-button__bell {
  animation: notification-bell-reminder 5s ease-in-out infinite;
}

.notification-button:hover .notification-button__bell,
.notification-button:focus-visible .notification-button__bell {
  animation: notification-bell-ring 520ms ease-in-out;
}

@keyframes notification-bell-ring {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-13deg); }
  40% { transform: rotate(11deg); }
  60% { transform: rotate(-7deg); }
  80% { transform: rotate(4deg); }
}

@keyframes notification-bell-reminder {
  0%, 82%, 100% { transform: rotate(0); }
  86% { transform: rotate(-10deg); }
  90% { transform: rotate(8deg); }
  94% { transform: rotate(-5deg); }
  97% { transform: rotate(3deg); }
}

@media (prefers-reduced-motion: reduce) {
  .notification-backdrop,
  .notification-drawer,
  .sidebar-backdrop,
  .notification-button__bell,
  .notification-button:hover .notification-button__bell,
  .notification-button:focus-visible .notification-button__bell {
    animation: none;
  }
}

/* Custom filter dropdown: avoids native select styling entirely. */
.filter-dropdown {
  position: relative;
  z-index: 8;
  flex: 0 0 auto;
}

.filter-dropdown__trigger {
  display: inline-flex;
  min-width: 142px;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  border: 1px solid #d8e0e9;
  border-radius: 11px;
  background: #ffffff;
  color: #263a55;
  padding: 0 11px 0 8px;
  box-shadow: 0 2px 7px rgba(0, 26, 65, 0.04);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.filter-dropdown__trigger:hover {
  border-color: #b9c5d3;
  box-shadow: 0 5px 14px rgba(0, 26, 65, 0.07);
  transform: translateY(-1px);
}

.filter-dropdown--open .filter-dropdown__trigger {
  border-color: rgba(254, 88, 0, 0.55);
  box-shadow: 0 0 0 3px rgba(254, 88, 0, 0.09), 0 8px 20px rgba(0, 26, 65, 0.08);
}

.filter-dropdown__icon {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: #f2f5f9;
  color: #63758d;
}

.filter-dropdown__trigger > span:nth-child(2) {
  flex: 1;
  text-align: left;
}

.filter-dropdown__chevron {
  color: #8491a2;
  transition: transform 150ms ease;
}

.filter-dropdown--open .filter-dropdown__chevron {
  transform: rotate(180deg);
}

.filter-dropdown__menu {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  z-index: 60;
  display: grid;
  width: max(100%, 172px);
  gap: 3px;
  border: 1px solid #dfe5ed;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 40px rgba(0, 26, 65, 0.16);
  padding: 6px;
  animation: filter-menu-in 130ms ease-out;
}

.filter-dropdown__menu--portal {
  position: fixed;
  z-index: 100;
  width: auto;
  max-height: min(320px, calc(100vh - 100px));
  overflow-y: auto;
}

.filter-dropdown--plain,
.filter-dropdown--plain .filter-dropdown__trigger { width: 100%; }
.filter-dropdown--plain .filter-dropdown__trigger {
  min-height: 46px;
  border-radius: 11px;
  padding-inline: 13px;
  font-size: 12px;
}

.filter-dropdown__option {
  display: flex;
  width: 100%;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #40536e;
  padding: 0 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

.filter-dropdown__option:hover {
  background: #f4f7fa;
  color: #001a41;
}

.filter-dropdown__option--active {
  background: #fff1ea;
  color: #d94700;
}

@keyframes filter-menu-in {
  from { opacity: 0; transform: translateY(-4px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.date-picker { position: relative; width: 100%; }
.date-picker__trigger {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #cbd4df;
  border-radius: 11px;
  background: #fff;
  padding: 0 14px;
  color: #001a41;
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.date-picker__trigger:hover { border-color: #aebccc; background: #fcfdff; }
.date-picker--open .date-picker__trigger {
  border-color: #ff5a0a;
  box-shadow: 0 0 0 3px rgba(255, 90, 10, .14);
}
.date-picker__trigger svg { flex: 0 0 auto; color: #6f8097; }
.date-picker__placeholder { color: #96a2b2; font-weight: 500; }

.date-picker__calendar {
  position: fixed;
  z-index: 100;
  overflow-y: auto;
  border: 1px solid #dce4ed;
  border-radius: 16px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 22px 55px rgba(0, 26, 65, .2);
  padding: 12px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: filter-menu-in 140ms ease-out;
  scrollbar-width: none;
}
.date-picker__calendar::-webkit-scrollbar { display: none; width: 0; height: 0; }
.date-picker__header {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid #edf1f5;
  padding-bottom: 10px;
}
.date-picker__header > button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #dce4ed;
  border-radius: 10px;
  background: #f7f9fc;
  color: #001a41;
  cursor: pointer;
}
.date-picker__header > button:hover:not(:disabled) { border-color: #ffb38d; background: #fff3ec; color: #d94700; }
.date-picker__header > button:disabled { opacity: .38; cursor: not-allowed; }
.date-picker__period { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(78px, .8fr); gap: 6px; }
.date-picker__period-trigger {
  display: flex;
  width: 100%;
  height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #dce4ed;
  border-radius: 10px;
  background: #fff;
  padding: 0 9px;
  color: #001a41;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  text-transform: capitalize;
  cursor: pointer;
}
.date-picker__period-trigger:hover,
.date-picker__period-trigger--open { border-color: #ff9b69; background: #fff8f4; }
.date-picker__period-trigger--open svg { transform: rotate(180deg); }
.date-picker__period-trigger svg { flex: 0 0 auto; color: #718096; transition: transform 150ms ease; }
.date-picker__wheel-panel {
  display: grid;
  gap: 8px;
  padding: 10px 6px 2px;
  animation: filter-menu-in 150ms ease-out;
}
.date-picker__wheel-labels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  color: #718096;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.date-picker__wheels {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(88px, .65fr);
  gap: 8px;
  overflow: hidden;
  border: 1px solid #e1e7ee;
  border-radius: 14px;
  background: #f8fafc;
  padding: 0 8px;
}
.date-picker__wheel-selection {
  position: absolute;
  top: 80px;
  right: 8px;
  left: 8px;
  z-index: 0;
  height: 40px;
  border: 1px solid #ffc5a8;
  border-radius: 11px;
  background: #fff1ea;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .75);
  pointer-events: none;
}
.date-picker__wheel {
  position: relative;
  z-index: 1;
  height: 200px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-block: 80px;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 24%, #000 76%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 24%, #000 76%, transparent 100%);
}
.date-picker__wheel::-webkit-scrollbar { display: none; width: 0; }
.date-picker__wheel-option {
  display: block;
  width: 100%;
  height: 40px;
  border: 0;
  background: transparent;
  color: #7b889a;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-transform: capitalize;
  cursor: pointer;
  scroll-snap-align: center;
  transition: color 120ms ease, font-size 120ms ease, font-weight 120ms ease;
}
.date-picker__wheel-option--active {
  color: #d94700;
  font-size: 16px;
  font-weight: 850;
}
.date-picker__wheel-apply {
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  background: #ff5a0a;
  color: #001a41;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}
.date-picker__wheel-apply:hover { background: #ed5004; }
.date-picker__weekdays,
.date-picker__days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.date-picker__weekdays { padding: 12px 2px 5px; }
.date-picker__weekdays span {
  color: #8390a2;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}
.date-picker__days { gap: 3px; }
.date-picker__days button {
  display: grid;
  min-width: 0;
  height: 34px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #203756;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.date-picker__days button:hover:not(:disabled) { border-color: #ffd0b9; background: #fff3ec; color: #d94700; }
.date-picker__days button:disabled { opacity: .28; cursor: not-allowed; }
.date-picker__day--outside { color: #9da9b8 !important; font-weight: 550 !important; }
.date-picker__day--today { border-color: #9fb0c7 !important; }
.date-picker__day--selected {
  border-color: #ff5a0a !important;
  background: #ff5a0a !important;
  color: #fff !important;
  box-shadow: 0 5px 12px rgba(255, 90, 10, .24);
}
.date-picker__footer {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #edf1f5;
  margin-top: 9px;
  padding: 9px 4px 0;
  color: #718096;
  font-size: 10px;
  font-weight: 650;
}
.date-picker__footer button {
  border: 0;
  background: transparent;
  color: #e14b00;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

/* Module transition: subtle enough to feel fast, branded enough to feel deliberate. */
.page-content {
  position: relative;
}

.module-loading {
  position: fixed;
  inset: 72px 0 31px var(--sidebar-width, 236px);
  z-index: 35;
  display: grid;
  min-height: 260px;
  place-items: center;
  background: rgba(246, 248, 251, 0.82);
  padding: 24px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: module-overlay-in 120ms ease-out;
}

.module-loading__card {
  display: flex;
  min-width: min(330px, calc(100vw - 48px));
  align-items: center;
  gap: 14px;
  border: 1px solid #dde4ec;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 16px 42px rgba(0, 26, 65, 0.12);
  padding: 15px 17px;
}

.module-loading__mark {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  background: #fff0e8;
}

.module-loading__mark::before,
.module-loading__mark::after,
.module-loading__mark > span {
  content: '';
  position: absolute;
  width: 5px;
  border-radius: 99px;
  background: #fe5800;
  animation: module-bars 820ms ease-in-out infinite;
}

.module-loading__mark::before { height: 13px; transform: translateX(-8px); }
.module-loading__mark > span { height: 21px; }
.module-loading__mark::after { height: 9px; transform: translateX(8px); }
.module-loading__mark > span { animation-delay: 120ms; }
.module-loading__mark::after { animation-delay: 240ms; }

.module-loading__card strong,
.module-loading__card small {
  display: block;
}

.module-loading__card strong {
  margin-bottom: 3px;
  color: #001a41;
  font-size: 13px;
}

.module-loading__card small {
  color: #718096;
  font-size: 11px;
}

@keyframes module-bars {
  0%, 100% { transform: translateY(2px) scaleY(.72); opacity: .62; }
  50% { transform: translateY(0) scaleY(1); opacity: 1; }
}

@keyframes module-overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Persistent product signature/version without covering page content. */
.app-main {
  padding-bottom: 38px;
}

.app-version-footer {
  position: fixed;
  left: 242px;
  right: 0;
  bottom: 0;
  z-index: 24;
  width: auto;
  max-width: none;
  min-height: 32px;
  margin: 0;
  border-top: 1px solid rgba(223, 229, 237, 0.9);
  background: rgba(255, 255, 255, 0.94);
  padding: 7px clamp(22px, 3.2vw, 46px);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.app-layout--sidebar-collapsed .app-version-footer {
  left: 78px;
}

/* Float inside the form without escaping its natural width. */
.registration-submit-bar {
  position: sticky !important;
  left: auto;
  right: auto;
  bottom: 48px !important;
  z-index: 4;
  width: 100%;
  transform: none;
}

.registration-submit-bar:has(.button:not(:disabled)) {
  animation: floating-submit-nudge 3.8s ease-in-out infinite;
  will-change: transform, box-shadow;
}

.registration-submit-bar:hover,
.registration-submit-bar:focus-within {
  animation-play-state: paused;
  transform: translateY(-2px);
  box-shadow: 0 19px 46px rgba(0, 26, 65, .17);
}

@keyframes floating-submit-nudge {
  0%, 72%, 100% {
    transform: translateY(0);
    box-shadow: 0 16px 40px rgba(0, 26, 65, .13);
  }
  82% {
    transform: translateY(-3px);
    box-shadow: 0 20px 48px rgba(0, 26, 65, .18);
  }
  90% {
    transform: translateY(-1px);
    box-shadow: 0 17px 42px rgba(0, 26, 65, .15);
  }
}

.registration-submit-bar.public-registration__submit:has(.button:not(:disabled)) {
  animation-name: floating-public-submit-nudge;
}

.registration-submit-bar.public-registration__submit:hover,
.registration-submit-bar.public-registration__submit:focus-within {
  transform: translate(-50%, -2px);
}

@keyframes floating-public-submit-nudge {
  0%, 72%, 100% {
    transform: translate(-50%, 0);
    box-shadow: 0 16px 40px rgba(0, 26, 65, .13);
  }
  82% {
    transform: translate(-50%, -3px);
    box-shadow: 0 20px 48px rgba(0, 26, 65, .18);
  }
  90% {
    transform: translate(-50%, -1px);
    box-shadow: 0 17px 42px rgba(0, 26, 65, .15);
  }
}
.import-confirm-bar { bottom: 48px !important; }

.enrollment-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 58;
  display: grid;
  place-items: center;
  background: rgba(0, 19, 48, .52);
  padding: clamp(10px, 2vw, 24px);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: module-overlay-in 150ms ease-out;
}

.enrollment-modal {
  display: flex;
  width: min(1240px, 100%);
  max-height: calc(100dvh - clamp(20px, 4vw, 48px));
  overflow: hidden;
  flex-direction: column;
  border: 1px solid #dce4ed;
  border-radius: 20px;
  background: #f4f7fb;
  box-shadow: 0 30px 90px rgba(0, 26, 65, .28);
}

.enrollment-modal__header {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #dce4ed;
  background: rgba(255, 255, 255, .98);
  padding: 19px 22px;
}

.enrollment-modal__header h2 { margin: 3px 0 4px; color: #001a41; font-size: clamp(20px, 2.5vw, 27px); }
.enrollment-modal__header p { margin: 0; color: #718096; font-size: 12px; }
.enrollment-modal__body {
  min-height: 0;
  overflow-y: auto;
  padding: 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.enrollment-modal--import .enrollment-modal__body { flex: 1; }
.enrollment-modal--import .import-history-panel {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}
.enrollment-modal--import .import-history-panel .catalog-empty { flex: 1; }
.enrollment-modal__body::-webkit-scrollbar { display: none; width: 0; height: 0; }
.enrollment-modal__body > .page-stack { gap: 16px; }
.enrollment-modal .registration-submit-bar {
  bottom: 12px !important;
  z-index: 20;
}

.enrollment-modal__tabs {
  display: flex;
  flex: 0 0 auto;
  gap: 6px;
  border-bottom: 1px solid #dce4ed;
  background: #fff;
  padding: 8px 20px;
}

.enrollment-modal__tab {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #63758d;
  padding: 0 13px;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}

.enrollment-modal__tab--active { background: #eef3fa; color: #001a41; }

.health-question { display: grid; align-content: start; gap: 10px; }
.health-question .field { margin: 0; }
.health-detail textarea {
  min-height: 74px;
  max-height: 110px;
  resize: vertical;
}

.cep-field small,
.auto-address-field input {
  color: #718096;
}
.cep-field--loading small { color: #63758d; }
.cep-field--found small { color: #087a55; font-weight: 700; }
.cep-field--error small { color: #b42318; font-weight: 650; }
.auto-address-field input {
  background: #f4f7fa;
  cursor: default;
}
.auto-address-field input:not(:placeholder-shown) {
  color: #001a41;
  font-weight: 700;
}
.consent-select { max-width: 460px; }
.relationship-detail {
  grid-column: 1 / -1;
  width: min(100%, 520px);
}

.password-confirmation {
  color: #718096;
  font-size: 10px;
  font-weight: 650;
}
.password-confirmation--ok { color: #19704a; }
.password-confirmation--error { color: #b42318; }

.field-optional {
  margin-left: 5px;
  color: #8a96a5;
  font-size: 10px;
  font-weight: 600;
}

.field-help {
  color: #8a96a5;
  font-size: 10px;
  font-weight: 500;
}

.onboarding-password-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px 20px;
  align-items: start;
  padding: 24px;
}

.onboarding-password-card__copy h3 {
  margin-bottom: 7px;
  font-size: 24px;
}

.onboarding-password-card__copy p {
  max-width: 580px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.onboarding-password-fields,
.onboarding-password-card > .form-error,
.onboarding-password-card > .profile-actions {
  grid-column: 2;
}

/* Branded confirmation modal — avoid browser-native alerts/confirms. */
.confirm-modal-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}

.confirm-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 26, 65, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.confirm-modal {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 460px);
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  border: 1px solid #dde4ec;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 28px 70px rgba(0, 26, 65, 0.22);
  padding: 24px;
}

.confirm-modal__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 12px;
}

.confirm-modal__icon--danger {
  background: #fef0ef;
  color: #b42318;
}

.confirm-modal__copy h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.2;
}

.confirm-modal__copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.confirm-modal__actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
}

.button--danger {
  border-color: #b42318;
  background: #b42318;
  color: #ffffff;
}

.button--danger:hover:not(:disabled) {
  border-color: #991b12;
  background: #991b12;
}

@media (max-width: 850px) {
  .app-version-footer,
  .app-layout--sidebar-collapsed .app-version-footer {
    left: 0;
  }

  .app-version-footer {
    flex-direction: row;
    gap: 10px;
    padding: 7px 14px;
    text-align: left;
  }

  .module-loading { inset: 72px 0 31px; }

  .registration-submit-bar { bottom: 47px !important; }
  .import-confirm-bar { position: static !important; }
}

/* One-time entrance rhythm after every module transition. */
.module-stage > * > * {
  animation: module-item-in 420ms 340ms both cubic-bezier(.2, .75, .3, 1);
}
.module-stage > * > *:nth-child(2) { animation-delay: 395ms; }
.module-stage > * > *:nth-child(3) { animation-delay: 450ms; }
.module-stage > * > *:nth-child(4) { animation-delay: 505ms; }
.module-stage > * > *:nth-child(n+5) { animation-delay: 560ms; }

@keyframes module-item-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.button > svg,
.icon-button > svg,
.segmented-tabs button > svg,
.catalog-card__action > svg {
  display: block;
  flex: 0 0 auto;
  align-self: center;
}

.class-status-field small {
  color: #718096;
  font-size: 11px;
  line-height: 1.4;
}

.mobile-label { display: none; }
.choice-chips, .weekday-picker { display: flex; flex-wrap: wrap; gap: 7px; }
.choice-chip, .weekday-button {
  display: inline-grid;
  min-height: 40px;
  place-items: center;
  border: 1px solid #d8e0e9;
  border-radius: 10px;
  background: #fff;
  color: #40536e;
  padding: 0 13px;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.choice-chip--active, .weekday-button--active {
  border-color: rgba(254, 88, 0, .62);
  background: #fff1ea;
  color: #d94700;
  box-shadow: 0 0 0 3px rgba(254, 88, 0, .08);
}
.weekday-button { width: 42px; padding: 0; border-radius: 50%; }
.choice-chip > svg { flex: 0 0 auto; }
.schedule-mode-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin-top: 5px;
  color: #40536e;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.different-times-list { display: grid; gap: 9px; }
.different-time-row {
  display: grid;
  grid-template-columns: 52px 1fr 1fr;
  align-items: end;
  gap: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  padding: 11px;
}
.different-time-row > strong { align-self: center; color: #001a41; font-size: 12px; }
.different-time-row .field span { font-size: 10px; }

.active-enrollments-panel { padding: 22px; }
.active-enrollments-list { display: grid; margin-top: 18px; }
.active-enrollments-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #edf0f4;
  padding: 14px 2px;
}
.active-enrollments-list article:first-child { border-top: 0; }
.active-enrollments-list article > div { display: grid; min-width: 0; gap: 3px; }
.active-enrollments-list strong { color: #001a41; font-size: 13px; }
.active-enrollments-list small { overflow: hidden; color: #718096; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 650px) {
  .active-enrollments-panel { padding: 17px; }
  .active-enrollments-list article { gap: 9px; }
  .active-enrollments-list .status-badge { padding-inline: 8px; font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .module-stage > * > * { animation: none; }
}

@media (max-width: 650px) {
  .onboarding-password-card {
    grid-template-columns: 1fr;
  }

  .onboarding-password-fields,
  .onboarding-password-card > .form-error,
  .onboarding-password-card > .profile-actions {
    grid-column: 1;
  }

  .confirm-modal {
    grid-template-columns: 1fr;
  }

  .confirm-modal__actions {
    flex-direction: column-reverse;
  }

  .confirm-modal__actions .button {
    width: 100%;
  }

  .filter-dropdown,
  .filter-dropdown__trigger {
    width: 100%;
  }

  .page-heading > .button,
  .page-heading__actions .button {
    width: auto;
    min-width: 0;
    min-height: 46px;
    justify-content: center;
    padding: 0 15px;
    font-size: 12px;
  }
  .desktop-label { display: none; }
  .mobile-label { display: inline; }
  .sports-page .sports-page__heading-actions,
  .students-page .students-page__heading-actions {
    width: 120px;
    flex: 0 0 120px;
  }
  .sports-page .sports-page__heading-actions .button,
  .students-page .students-page__heading-actions .button { width: 100%; }
  .different-time-row { grid-template-columns: 40px 1fr 1fr; gap: 7px; padding: 9px; }
  .enrollment-modal-backdrop { padding: 8px; }
  .enrollment-modal { max-height: calc(100dvh - 16px); border-radius: 16px; }
  .enrollment-modal--import { height: min(752px, calc(100dvh - 16px)); }
  .enrollment-modal__header { padding: 15px; }
  .enrollment-modal__header p { font-size: 10px; line-height: 1.45; }
  .enrollment-modal__body { padding: 12px; }
  .enrollment-modal__tabs { padding: 7px 12px; }
  .enrollment-modal__tab { flex: 1; justify-content: center; padding: 0 8px; }
}

@media (max-width: 430px) {
  .student-sports-summary { grid-template-columns: 1fr; }
  .app-version-footer {
    font-size: 9px;
  }
}
/* Infinity Sports v0.10.9 — student master profile + existing-student enrollment.
   Uses the existing visual tokens and controls; no native select/date styling is introduced. */

.drawer--student-profile {
  width: min(760px, calc(100vw - 24px));
}

.drawer--student-profile .drawer__form {
  gap: 16px;
}

.drawer--student-profile .form-section > h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inline-note--warning {
  border-color: #f1d39d;
  background: var(--warning-soft);
  color: var(--warning);
}

.student-enrollment-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.student-enrollment-summary > span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.student-enrollment-summary .status-badge {
  font-size: 10px;
}

.enrollment-status-counts {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.results-count--muted {
  border-color: #e2e8f0;
  background: #f7f9fc;
  color: #728097;
}

.student-enrollment-picker {
  position: relative;
  display: grid;
  gap: 10px;
}

.student-search-input {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 9px;
  border: 1px solid #cbd4df;
  border-radius: 11px;
  background: #fff;
  padding: 0 12px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.student-search-input:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(254, 88, 0, .12);
}

.student-search-input svg {
  flex: 0 0 auto;
  color: #75859a;
}

.student-search-input input {
  min-width: 0;
  min-height: 44px;
  flex: 1;
  border: 0 !important;
  background: transparent !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.student-search-results {
  position: absolute;
  top: 74px;
  left: 0;
  right: 0;
  z-index: 35;
  display: grid;
  gap: 4px;
  max-height: min(340px, 45vh);
  overflow-y: auto;
  border: 1px solid #dbe3ec;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(0, 26, 65, .18);
  padding: 6px;
}

.student-search-results > button {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 9px 10px;
  text-align: left;
}

.student-search-results > button:hover,
.student-search-results > button:focus-visible {
  background: #f4f7fb;
}

.student-search-results > button > span:nth-child(2) {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.student-search-results strong,
.selected-student-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-search-results small,
.selected-student-card small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-student-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 34px auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #c9e7d9;
  border-radius: 14px;
  background: #f4fbf7;
  padding: 11px 12px;
}

.selected-student-card > div {
  display: grid;
  min-width: 0;
}

.selected-student-card .eyebrow {
  margin-bottom: 2px;
  color: var(--success);
  font-size: 9px;
}

.selected-student-card__check {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
}

.enrollment-modal--form .registration-section {
  scroll-margin-top: 12px;
}

.enrollment-modal--form .registration-submit-bar {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

@media (max-width: 760px) {
  .drawer--student-profile {
    width: 100%;
  }

  .student-search-results > button {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .selected-student-card {
    grid-template-columns: 42px minmax(0, 1fr) 30px;
  }

  .selected-student-card .button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .enrollment-status-counts {
    justify-content: flex-start;
  }
}

@media (max-width: 430px) {
  .drawer--student-profile {
    width: 100vw;
  }

  .student-search-results > button {
    padding: 9px 8px;
  }
}

/* v0.10.9 UX review — 2026-08-15 */
.drawer--student-profile input:not([type='checkbox']),
.drawer--student-profile textarea,
.enrollment-modal--form input:not([type='checkbox']),
.enrollment-modal--form textarea {
  cursor: text;
}

.student-enrollment-picker {
  min-height: 300px;
  align-content: start;
}

.student-search-results {
  position: static;
  min-height: 150px;
  max-height: 230px;
}

.student-search-results > button {
  grid-template-columns: 40px minmax(0, 1fr);
}

.enrollment-followup-lists {
  display: grid;
  gap: 20px;
}

.enrollment-list-title {
  margin: 0 0 9px;
  color: var(--navy);
  font-size: 13px;
}

.active-enrollments-list--pending article {
  background: #fffaf5;
}

@media (max-width: 760px) {
  .student-enrollment-picker {
    min-height: 330px;
  }

  .student-search-results {
    min-height: 180px;
    max-height: 250px;
  }
}
.password-policy {
  display: grid;
  gap: 7px;
  border: 1px solid #e1e7ee;
  border-radius: 12px;
  background: #f8fafc;
  padding: 13px 14px;
}

.password-policy > strong {
  margin-bottom: 2px;
  color: #314660;
  font-size: 11px;
}

.password-rule {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #7a8798;
  font-size: 11px;
  line-height: 1.35;
  transition: color 150ms ease;
}

.password-rule::before {
  content: '';
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border: 1px solid #b8c3d0;
  border-radius: 999px;
  background: #ffffff;
}

.password-rule--ok {
  color: #19704a;
}

.password-rule--ok::before {
  border-color: #49a77c;
  background: #49a77c;
  box-shadow: inset 0 0 0 2px #ffffff;
}
.login-brand-logo {
  display: block;
  height: auto;
  object-fit: contain;
}

.login-forgot-password {
  display: flex;
  justify-content: flex-end;
  margin-top: -7px;
}

.login-forgot-password button {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 750;
}

.login-forgot-password button:hover,
.login-forgot-password button:focus-visible {
  text-decoration: underline;
}

.login-layout {
  --login-content-top: clamp(230px, 31vh, 310px);
  --login-footer-height: 32px;
  position: relative;
  display: grid;
  height: 100dvh;
  min-height: 100dvh;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
  overflow: hidden;
  background: var(--white);
}

.login-story,
.login-panel {
  height: calc(100dvh - var(--login-footer-height));
  min-height: 0;
  overflow: hidden;
}

.login-story__inner--simple {
  position: relative;
  display: flex;
  width: min(100%, 760px);
  height: 100%;
  min-height: 0;
  flex-direction: column;
  margin: 0 auto;
  padding: var(--login-content-top) clamp(40px, 6vw, 86px) clamp(32px, 5vh, 56px);
}

.login-story__copy--simple {
  width: 100%;
  max-width: 570px;
  padding: 0;
}

.login-story__copy--simple h1 {
  max-width: 560px;
  margin-bottom: 18px;
  color: #fff;
  font-size: clamp(38px, min(4.8vw, 7vh), 66px);
  line-height: 1.03;
  letter-spacing: -.045em;
}

.login-story__copy--simple p {
  max-width: 510px;
  margin: 0;
  color: #c8d4e4;
  font-size: clamp(14px, 1.25vw, 18px);
  line-height: 1.65;
}

.login-story__proof--simple {
  display: grid;
  width: 100%;
  max-width: 610px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 42px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding-top: 22px;
}

.login-story__proof--simple div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.login-story__proof--simple strong {
  color: #fff;
  font-size: 14px;
  letter-spacing: -.01em;
}

.login-story__proof--simple span {
  max-width: 240px;
  color: #9eb0c7;
  font-size: 12px;
  line-height: 1.5;
}

.login-panel {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: var(--login-content-top) clamp(38px, 6vw, 86px) 32px;
}

.login-panel__inner {
  position: relative;
  width: min(100%, 470px);
  min-width: 0;
}

.login-panel__brand {
  position: absolute;
  bottom: calc(100% + clamp(16px, 2.5vh, 26px));
  left: 0;
  display: flex;
  width: 100%;
  justify-content: flex-start;
  pointer-events: none;
}

.login-brand-logo--panel {
  width: clamp(132px, 7.4vw, 152px);
  max-width: 100%;
  object-position: left center;
}

.login-card {
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.login-card h2,
.login-card__intro {
  overflow-wrap: anywhere;
}

.app-version-footer--login {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 5;
  width: 100%;
  min-height: var(--login-footer-height);
  max-width: none;
  margin: 0;
  background: var(--white);
}

@media (min-width: 901px) and (max-width: 1180px) {
  .login-layout {
    grid-template-columns: minmax(0, 1fr) minmax(390px, .9fr);
  }

  .login-story__inner--simple {
    padding-right: 36px;
    padding-left: 36px;
  }

  .login-panel {
    padding-right: 38px;
    padding-left: 38px;
  }
}

@media (min-width: 901px) and (max-height: 800px) {
  .login-layout {
    --login-content-top: clamp(154px, 26vh, 208px);
  }

  .login-story__inner--simple {
    padding-bottom: 20px;
  }

  .login-story__copy--simple h1 {
    margin-bottom: 12px;
    font-size: clamp(32px, 5.8vh, 44px);
  }

  .login-story__copy--simple p {
    font-size: 13px;
    line-height: 1.45;
  }

  .login-story__proof--simple {
    gap: 24px;
    padding-top: 14px;
  }

  .login-story__proof--simple div {
    gap: 4px;
  }

  .login-story__proof--simple strong {
    font-size: 11px;
  }

  .login-story__proof--simple span {
    font-size: 9px;
    line-height: 1.35;
  }

  .login-brand-logo--panel {
    width: 128px;
  }

  .login-card__intro {
    margin-bottom: 22px;
  }

  .form-stack {
    gap: 14px;
  }

  .login-card__support {
    margin-top: 17px;
  }
}

@media (max-width: 900px) {
  .login-layout {
    --login-footer-height: 32px;
    display: block;
    min-width: 0;
  }

  .login-story {
    display: none;
  }

  .login-panel {
    display: block;
    height: calc(100dvh - var(--login-footer-height));
    min-height: 0;
    padding: 0 clamp(20px, 6vw, 38px);
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-width: thin;
  }

  .login-panel__inner {
    display: flex;
    width: min(100%, 470px);
    min-height: 100%;
    flex-direction: column;
    justify-content: center;
    gap: clamp(6px, 1.5vh, 14px);
    margin: 0 auto;
    padding: clamp(12px, 2.5vh, 24px) 0 clamp(18px, 3vh, 30px);
  }

  .login-panel__brand {
    position: static;
    width: 100%;
    flex: 0 0 auto;
    justify-content: center;
  }

  .login-brand-logo--panel {
    width: clamp(124px, 36vw, 160px);
    max-width: 48vw;
    object-position: center;
  }

  .login-card {
    flex: 0 0 auto;
  }
}

@media (max-width: 520px) {
  .login-panel {
    padding-right: 20px;
    padding-left: 20px;
  }

  .login-panel__inner {
    gap: 4px;
  }

  .login-brand-logo--panel {
    width: clamp(116px, 34vw, 138px);
  }

  .login-card h2 {
    max-width: 100%;
    margin-bottom: 8px;
    font-size: clamp(26px, 8vw, 32px);
    line-height: 1.08;
  }

  .login-card__intro {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.55;
  }

  .form-stack {
    gap: 14px;
  }

  .login-card__support {
    margin-top: 16px;
  }
}

@media (max-width: 520px) and (max-height: 700px) {
  .login-panel__inner {
    justify-content: center;
    padding-top: 7px;
    padding-bottom: 16px;
  }

  .login-brand-logo--panel {
    width: 118px;
  }

  .login-card h2 {
    font-size: 26px;
  }

  .login-card__intro {
    margin-bottom: 14px;
    font-size: 13px;
  }

  .form-stack {
    gap: 11px;
  }

  .login-card__support {
    margin-top: 13px;
  }
}

@media (max-width: 520px) and (max-height: 590px) {
  .login-panel__inner {
    justify-content: flex-start;
  }

  .login-brand-logo--panel {
    width: 88px;
  }
}

@media (min-width: 901px) and (max-height: 620px) {
  .login-layout {
    --login-content-top: 118px;
  }

  .login-story__inner--simple {
    padding-bottom: 12px;
  }

  .login-story__copy--simple h1 {
    margin-bottom: 8px;
    font-size: 29px;
  }

  .login-story__copy--simple p {
    font-size: 11px;
    line-height: 1.35;
  }

  .login-story__proof--simple {
    gap: 18px;
    padding-top: 9px;
  }

  .login-story__proof--simple strong {
    font-size: 10px;
  }

  .login-story__proof--simple span {
    font-size: 8px;
    line-height: 1.25;
  }

  .login-brand-logo--panel {
    width: 96px;
  }

  .login-card {
    transform: scale(.92);
    transform-origin: top left;
  }
}
.standalone-page {
  display: grid;
  width: 100%;
  min-height: 100dvh;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: stretch;
  background: var(--surface-soft);
}

.standalone-page > .center-state {
  min-height: 0;
}

.standalone-page > .onboarding-layout {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.standalone-page > .onboarding-layout > .onboarding-story {
  height: 100%;
  min-height: 0;
}

.standalone-page > .onboarding-layout > .onboarding-form-area {
  min-height: 0;
}

.onboarding-story__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.onboarding-brand-logo {
  display: block;
  width: 110px;
  height: auto;
  object-fit: contain;
  object-position: left center;
  transform: translateY(8px);
}

/* Onboarding is a single composition: both columns begin at the same visual line. */
@media (min-width: 901px) {
  .standalone-page > .onboarding-layout > .onboarding-form-area {
    align-self: start;
    padding-top: 156px;
  }

  .onboarding-layout .profile-card.panel,
  .onboarding-layout .onboarding-password-card.panel {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  /* Keep a standard two-column form while allowing identity fields more breathing room. */
  .onboarding-layout .profile-fields .form-grid {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  }

  .onboarding-layout .profile-photo-column {
    align-items: flex-start;
  }

  .onboarding-layout .profile-photo-column small {
    text-align: left;
  }
}

/* Compact desktop / notebook widths: preserve two columns without crushing form controls. */
@media (min-width: 901px) and (max-width: 1180px) {
  .onboarding-layout {
    grid-template-columns: minmax(300px, .72fr) minmax(0, 1.28fr);
  }

  .onboarding-story {
    padding-right: 34px;
    padding-left: 34px;
  }

  .onboarding-story h1 {
    font-size: clamp(34px, 4vw, 46px);
  }

  .onboarding-story p {
    font-size: 13px;
  }

  .onboarding-form-area {
    width: 100%;
    padding-right: 28px;
    padding-left: 28px;
  }

  .onboarding-layout .profile-card.panel {
    grid-template-columns: 156px minmax(0, 1fr);
    gap: 22px;
    padding: 0;
  }

  .onboarding-layout .profile-photo-column {
    padding-right: 20px;
  }

  .onboarding-layout .profile-photo {
    width: 116px;
    height: 116px;
  }

  .onboarding-layout .profile-photo-button {
    min-height: 40px;
    padding-right: 12px;
    padding-left: 12px;
    font-size: 12px;
  }

  .onboarding-layout .profile-fields {
    gap: 15px;
  }

  .onboarding-layout .profile-fields .form-grid {
    gap: 12px;
  }

  .onboarding-layout .field {
    gap: 5px;
    font-size: 12px;
  }

  .onboarding-layout .field input,
  .onboarding-layout .field textarea,
  .onboarding-layout .readonly-field {
    font-size: 12px;
  }

  .onboarding-layout .field textarea {
    min-height: 82px;
  }

  .onboarding-heading {
    margin-bottom: 17px;
  }
}

/* Short desktop viewports use the same composition with tighter vertical rhythm. */
@media (min-width: 901px) and (max-height: 680px) {
  .standalone-page > .onboarding-layout > .onboarding-form-area {
    padding-top: 108px;
    padding-bottom: 18px;
  }

  .onboarding-story {
    padding-top: 22px;
    padding-bottom: 18px;
  }

  .onboarding-story__intro {
    gap: 2px;
  }

  .onboarding-brand-logo {
    width: 96px;
    transform: translateY(4px);
  }

  .onboarding-story h1 {
    margin-bottom: 10px;
    font-size: clamp(32px, 3.5vw, 40px);
    line-height: 1.02;
  }

  .onboarding-story p {
    margin-bottom: 0;
    line-height: 1.5;
  }

  .onboarding-proof {
    gap: 9px;
    padding-top: 13px;
  }

  .onboarding-proof small {
    line-height: 1.3;
  }

  .onboarding-heading {
    margin-bottom: 12px;
  }

  .onboarding-heading h2 {
    font-size: 24px;
  }

  .onboarding-layout .profile-heading-icon {
    width: 42px;
    height: 42px;
  }

  .onboarding-layout .profile-card.panel {
    grid-template-columns: 142px minmax(0, 1fr);
    gap: 18px;
  }

  .onboarding-layout .profile-photo-column {
    gap: 9px;
    padding-right: 16px;
  }

  .onboarding-layout .profile-photo {
    width: 98px;
    height: 98px;
  }

  .onboarding-layout .profile-photo-button {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 11px;
  }

  .onboarding-layout .profile-photo-column small {
    font-size: 9px;
  }

  .onboarding-layout .profile-fields {
    gap: 11px;
  }

  .onboarding-layout .profile-fields .form-grid {
    gap: 9px 10px;
  }

  .onboarding-layout .field {
    gap: 4px;
    font-size: 11px;
  }

  .onboarding-layout .field input {
    min-height: 38px;
    padding: 8px 10px;
  }

  .onboarding-layout .readonly-field {
    min-height: 38px;
  }

  .onboarding-layout .field textarea {
    min-height: 64px;
    padding: 8px 10px;
  }

  .onboarding-layout .profile-actions .button {
    min-height: 38px;
    padding: 8px 14px;
  }

  .onboarding-layout .onboarding-password-card {
    gap: 12px;
    padding: 0;
  }

  .onboarding-layout .onboarding-password-card__copy p {
    margin-bottom: 0;
    line-height: 1.45;
  }

  .onboarding-layout .onboarding-password-fields {
    gap: 10px;
  }

  .onboarding-layout .password-policy {
    padding: 10px 12px;
  }

  .onboarding-layout .password-rule {
    font-size: 10px;
  }
}

/* Long access e-mails stay on one line and adapt before ellipsis is needed. */
.onboarding-layout .form-grid,
.onboarding-layout .form-grid > .field,
.onboarding-layout .readonly-field {
  min-width: 0;
}

.onboarding-layout .readonly-field {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: clamp(10px, .72vw, 12px);
  letter-spacing: -.015em;
}

.onboarding-layout .readonly-field svg {
  flex: 0 0 auto;
}

.standalone-page > .public-registration {
  min-height: 0;
}

.standalone-page .public-registration__footer {
  display: none;
}

.standalone-page > .app-version-footer {
  position: relative;
  inset: auto;
  z-index: 5;
  width: 100%;
  max-width: none;
  margin: 0;
  background: var(--white);
}

/* Phones and portrait tablets share one fluid onboarding system. */
@media (max-width: 900px), (min-width: 901px) and (max-width: 1180px) and (orientation: portrait) {
  .standalone-page > .onboarding-layout {
    display: block;
    height: auto;
  }

  .standalone-page > .onboarding-layout > .onboarding-story {
    height: auto;
    min-height: 0;
  }

  .onboarding-story {
    justify-content: flex-start;
    gap: 22px;
    padding: clamp(22px, 5vw, 34px) clamp(20px, 6vw, 42px);
  }

  .onboarding-story__intro {
    display: flex;
    width: 100%;
    align-items: flex-start;
    gap: 5px;
  }

  .onboarding-brand-logo {
    width: clamp(72px, 16vw, 88px);
    margin: 0;
    object-position: left center;
    transform: none;
  }

  .onboarding-story__copy {
    width: 100%;
  }

  .onboarding-story h1 {
    max-width: 620px;
    margin-bottom: 12px;
    font-size: clamp(30px, 7vw, 40px);
    line-height: 1.06;
  }

  .onboarding-story p {
    max-width: 650px;
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
  }

  .onboarding-proof {
    width: 100%;
    max-width: 650px;
    gap: 10px;
    margin-top: 2px;
    padding-top: 15px;
  }

  .onboarding-proof small {
    line-height: 1.4;
  }

  .standalone-page > .onboarding-layout > .onboarding-form-area {
    align-self: stretch;
    width: min(100%, 780px);
    margin: 0 auto;
    padding: 28px clamp(20px, 5vw, 40px) 34px;
  }

  .onboarding-heading {
    gap: 12px;
    margin-bottom: 18px;
  }

  .onboarding-heading h2 {
    font-size: clamp(24px, 5vw, 28px);
  }

  .onboarding-layout .profile-card.panel,
  .onboarding-layout .onboarding-password-card.panel {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .onboarding-layout .profile-card {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .onboarding-layout .profile-photo-column {
    align-items: center;
    gap: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 20px;
  }

  .onboarding-layout .profile-photo {
    width: 112px;
    height: 112px;
  }

  .onboarding-layout .profile-photo-button {
    width: fit-content;
  }

  .onboarding-layout .profile-photo-column small {
    text-align: center;
  }

  .onboarding-layout .profile-fields {
    gap: 16px;
  }

  .onboarding-layout .readonly-field {
    font-size: 12px;
  }

  .onboarding-layout .onboarding-password-card {
    gap: 16px;
  }

  .onboarding-layout .onboarding-password-fields {
    gap: 14px;
  }
}

/* Larger phones and portrait tablets can retain two form columns. */
@media (min-width: 651px) and (max-width: 900px), (min-width: 901px) and (max-width: 1180px) and (orientation: portrait) {
  .standalone-page > .onboarding-layout > .onboarding-form-area {
    padding-right: 34px;
    padding-left: 34px;
  }

  .onboarding-layout .profile-card {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 24px;
  }

  .onboarding-layout .profile-photo-column {
    border-right: 1px solid var(--line);
    border-bottom: 0;
    padding: 0 22px 0 0;
  }

  .onboarding-layout .profile-photo {
    width: 108px;
    height: 108px;
  }

  .onboarding-layout .profile-fields .form-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* Phones stack fields and keep comfortable touch targets. */
@media (max-width: 650px) {
  .onboarding-story {
    gap: 20px;
    padding: 24px 20px;
  }

  .onboarding-brand-logo {
    width: clamp(70px, 19vw, 80px);
  }

  .onboarding-story h1 {
    font-size: clamp(29px, 8vw, 35px);
  }

  .standalone-page > .onboarding-layout > .onboarding-form-area {
    padding: 24px 18px 30px;
  }

  .onboarding-heading {
    align-items: center;
    gap: 11px;
    margin-bottom: 17px;
  }

  .onboarding-layout .profile-heading-icon {
    width: 42px;
    height: 42px;
  }

  .onboarding-heading h2 {
    font-size: 24px;
  }

  .onboarding-layout .profile-card {
    gap: 20px;
  }

  .onboarding-layout .profile-photo {
    width: 104px;
    height: 104px;
  }

  .onboarding-layout .profile-fields .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .onboarding-layout .field {
    min-width: 0;
  }

  .onboarding-layout .field input,
  .onboarding-layout .field textarea,
  .onboarding-layout .readonly-field {
    width: 100%;
    max-width: 100%;
  }

  .onboarding-layout .profile-actions .button {
    width: 100%;
  }

  .standalone-page > .app-version-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-right: 14px;
    padding-left: 14px;
    font-size: 9px;
    text-align: left;
    white-space: nowrap;
  }
}

/* Very narrow phones: reduce only the outer rhythm, never the controls. */
@media (max-width: 380px) {
  .onboarding-story {
    padding-right: 16px;
    padding-left: 16px;
  }

  .onboarding-brand-logo {
    width: 68px;
  }

  .onboarding-story h1 {
    font-size: 28px;
  }

  .standalone-page > .onboarding-layout > .onboarding-form-area {
    padding-right: 15px;
    padding-left: 15px;
  }

  .onboarding-heading {
    gap: 9px;
  }

  .onboarding-heading h2 {
    font-size: 22px;
  }

  .standalone-page > .app-version-footer {
    gap: 5px;
    padding-right: 10px;
    padding-left: 10px;
    font-size: 8px;
  }
}
/* Shared responsive guardrails for every authenticated and public module. */
html,
body,
#root {
  width: 100%;
  max-width: 100%;
}

body {
  overflow-x: clip;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

.app-layout,
.app-main,
.module-stage,
.page-content,
.page-stack,
.page-stack > *,
.panel,
.panel__header > *,
.page-heading > *,
.page-heading__actions,
.topbar__left,
.topbar__left > div,
.topbar__actions,
.students-toolbar > *,
.public-queue-toolbar > *,
.registration-section,
.registration-section__header > div,
.drawer,
.drawer__form,
.enrollment-modal,
.enrollment-modal__body {
  min-width: 0;
}

.module-stage,
.page-stack,
.panel,
.page-heading,
.registration-form {
  width: 100%;
  max-width: 100%;
}

.page-heading h2,
.panel__header h3,
.topbar__left h1,
.registration-section__header h3 {
  overflow-wrap: anywhere;
}

.topbar__left h1 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.segmented-tabs,
.students-table-wrap,
.finance-table-wrap,
.import-preview-table-wrap {
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.segmented-tabs {
  scroll-snap-type: inline proximity;
  scrollbar-width: none;
}

.segmented-tabs::-webkit-scrollbar {
  display: none;
}

.segmented-tabs button {
  scroll-snap-align: start;
}

/* Password controls without a leading icon must keep the same text inset at every height. */
.onboarding-password-form,
.onboarding-password-card,
.onboarding-password-fields,
.onboarding-password-fields .field,
.onboarding-password-fields .field__control {
  width: 100%;
  min-width: 0;
}

.onboarding-password-fields .field__control input {
  padding-right: 42px;
  padding-left: 12px;
}

.onboarding-form-area--password {
  --password-heading-icon-size: 48px;
  --password-heading-column-gap: 14px;
}

.onboarding-form-area--password .onboarding-heading {
  gap: var(--password-heading-column-gap);
}

.onboarding-form-area--password > .onboarding-heading .profile-heading-icon,
.onboarding-form-area--password .onboarding-password-card > .profile-heading-icon {
  width: var(--password-heading-icon-size);
  height: var(--password-heading-icon-size);
}

.onboarding-form-area--password .onboarding-password-card {
  grid-template-columns: var(--password-heading-icon-size) minmax(0, 1fr);
  column-gap: var(--password-heading-column-gap);
  padding: 0;
}

@media (max-width: 900px) {
  .onboarding-form-area--password {
    --password-heading-column-gap: 12px;
  }
}

@media (min-width: 901px) {
  .standalone-page > .onboarding-layout > .onboarding-form-area--password {
    padding-top: clamp(32px, calc((100dvh - 620px) / 2), 156px);
  }
}

/* Notebook-height onboarding keeps the complete password step in view. */
@media (min-width: 901px) and (max-height: 900px) {
  .standalone-page > .onboarding-layout > .onboarding-form-area--password {
    --password-heading-icon-size: 40px;
    --password-heading-column-gap: 11px;
    align-self: start;
    padding-top: clamp(26px, 5vh, 42px);
    padding-bottom: 16px;
  }

  .onboarding-form-area--password .onboarding-heading {
    margin-bottom: 10px;
  }

  .onboarding-form-area--password .onboarding-heading h2 {
    font-size: 23px;
  }

  .onboarding-form-area--password .onboarding-password-card {
    row-gap: 9px;
  }

  .onboarding-form-area--password .onboarding-password-card__copy h3 {
    margin-bottom: 3px;
    font-size: 21px;
  }

  .onboarding-form-area--password .onboarding-password-card__copy p {
    font-size: 13px;
    line-height: 1.4;
  }

  .onboarding-form-area--password .onboarding-password-fields {
    gap: 8px;
  }

  .onboarding-form-area--password .field {
    gap: 4px;
    font-size: 11px;
  }

  .onboarding-form-area--password .field input {
    min-height: 38px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .onboarding-form-area--password .password-policy {
    gap: 4px;
    padding: 8px 10px;
  }

  .onboarding-form-area--password .password-policy > strong,
  .onboarding-form-area--password .password-rule,
  .onboarding-form-area--password .password-confirmation {
    font-size: 9px;
    line-height: 1.25;
  }

  .onboarding-form-area--password .profile-actions .button {
    min-height: 38px;
    padding: 8px 14px;
  }
}

@media (max-width: 1100px) {
  .page-content {
    padding-right: clamp(18px, 3vw, 32px);
    padding-left: clamp(18px, 3vw, 32px);
  }

  .topbar {
    padding-right: clamp(18px, 3vw, 32px);
    padding-left: clamp(18px, 3vw, 32px);
  }

  .page-heading {
    flex-wrap: wrap;
  }

  .page-heading__actions {
    flex-wrap: wrap;
  }
}

@media (min-width: 851px) {
  .sidebar {
    overflow: visible;
  }

  .sidebar--collapsed .sidebar__nav {
    scrollbar-width: none;
  }

  .sidebar--collapsed .sidebar__nav::-webkit-scrollbar {
    display: none;
    width: 0;
  }
}

@media (max-width: 850px) {
  .app-layout,
  .app-main {
    width: 100%;
    max-width: 100%;
  }

  .app-main {
    padding-bottom: calc(38px + env(safe-area-inset-bottom));
  }

  .sidebar,
  .sidebar--collapsed {
    width: min(88vw, 360px);
  }

  .sidebar--collapsed .sidebar__top .brand {
    transform: none;
  }

  .sidebar--collapsed .sidebar-profile {
    flex-direction: row;
    gap: 10px;
  }

  .sidebar__bottom,
  .sidebar--collapsed .sidebar__bottom {
    padding: 14px;
  }

  .topbar {
    gap: 12px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .topbar__left {
    flex: 1 1 auto;
    overflow: hidden;
  }

  .topbar__actions {
    flex: 0 0 auto;
  }

  .page-content {
    width: 100%;
    padding: 20px 17px calc(34px + env(safe-area-inset-bottom));
  }

  .mobile-nav {
    bottom: 32px;
  }

  .app-version-footer,
  .app-layout--sidebar-collapsed .app-version-footer {
    min-height: 32px;
  }

  .drawer,
  .notification-drawer {
    max-width: 100vw;
  }
}

@media (max-width: 650px) {
  .onboarding-form-area--password .onboarding-heading {
    display: block;
    text-align: left;
  }

  .onboarding-form-area--password .onboarding-password-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .onboarding-form-area--password > .onboarding-heading .profile-heading-icon,
  .onboarding-form-area--password .onboarding-password-card > .profile-heading-icon,
  .onboarding-form-area--password .onboarding-password-card__copy .eyebrow {
    display: none;
  }

  .onboarding-form-area--password .onboarding-password-card__copy h3 {
    margin-bottom: 4px;
    font-size: 21px;
  }

  .onboarding-form-area--password .onboarding-password-card__copy p {
    font-size: 12px;
    line-height: 1.45;
  }

  .onboarding-form-area--password .onboarding-password-fields {
    gap: 10px;
  }

  .onboarding-story {
    gap: 12px;
    padding: 16px 18px;
  }

  .onboarding-story__intro {
    gap: 3px;
  }

  .onboarding-brand-logo {
    width: 60px;
  }

  .onboarding-story h1 {
    margin-bottom: 8px;
    font-size: clamp(25px, 7vw, 29px);
    line-height: 1.04;
  }

  .onboarding-story p {
    font-size: 12px;
    line-height: 1.45;
  }

  .onboarding-proof {
    gap: 8px;
    margin-top: 0;
    padding-top: 11px;
  }

  .onboarding-proof svg {
    width: 18px;
    height: 18px;
  }

  .onboarding-proof small {
    display: none;
  }

  .standalone-page > .onboarding-layout > .onboarding-form-area {
    padding: 18px 16px 26px;
  }

  .onboarding-heading {
    gap: 10px;
    margin-bottom: 12px;
  }

  .onboarding-layout .profile-heading-icon {
    width: 38px;
    height: 38px;
  }

  .onboarding-heading h2 {
    font-size: 22px;
  }

  .onboarding-layout .profile-card {
    gap: 14px;
  }

  .onboarding-layout .profile-photo-column {
    gap: 8px;
    padding-bottom: 15px;
  }

  .onboarding-layout .profile-photo {
    width: 92px;
    height: 92px;
  }

  .page-content {
    padding-right: 14px;
    padding-left: 14px;
  }

  .page-stack {
    gap: 16px;
  }

  .page-heading {
    align-items: stretch;
    gap: 15px;
  }

  .page-heading > div:first-child {
    width: 100%;
  }

  .page-heading h2 {
    font-size: clamp(24px, 8vw, 28px);
    line-height: 1.08;
  }

  .page-heading__actions {
    width: 100%;
    align-items: stretch;
  }

  :is(.students-page, .sports-page, .classes-page) > .page-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px;
    align-items: center;
    column-gap: 12px;
    row-gap: 8px;
  }

  :is(.students-page, .sports-page, .classes-page) > .page-heading > div:first-child {
    display: contents;
  }

  :is(.students-page, .sports-page, .classes-page) > .page-heading .eyebrow {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 0;
  }

  :is(.students-page, .sports-page, .classes-page) > .page-heading h2 {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
  }

  :is(.students-page, .sports-page, .classes-page) > .page-heading p {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  :is(.students-page, .sports-page, .classes-page) > .page-heading .page-heading__actions {
    grid-column: 2;
    grid-row: 2;
    width: 110px;
    align-self: center;
  }

  :is(.students-page, .sports-page, .classes-page) > .page-heading .page-heading__actions .button {
    width: 100%;
    min-height: 42px;
  }

  .enrollment-page > .page-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(174px, 51vw, 204px);
    align-items: center;
    column-gap: 10px;
    row-gap: 8px;
  }

  .enrollment-page > .page-heading > div:first-child {
    display: contents;
  }

  .enrollment-page > .page-heading .eyebrow {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 0;
  }

  .enrollment-page > .page-heading h2 {
    grid-column: 1;
    grid-row: 2;
    min-width: 0;
    margin: 0;
    font-size: clamp(22px, 7vw, 28px);
  }

  .enrollment-page > .page-heading p {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .enrollment-page > .page-heading .page-heading__actions {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    align-self: center;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .enrollment-page > .page-heading .page-heading__actions .button {
    min-width: 0;
    min-height: 42px;
    padding-right: 8px;
    padding-left: 8px;
    gap: 6px;
    font-size: clamp(11px, 3vw, 13px);
    white-space: nowrap;
  }

  .enrollment-page > .page-heading .page-heading__actions .button svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
  }

  .finance-page .page-heading h2 {
    max-width: 100%;
    font-size: clamp(22px, 7vw, 26px);
    line-height: 1.1;
  }

  .finance-page .page-heading__actions {
    gap: 8px;
  }

  .finance-page .page-heading__actions .button {
    flex: 1 1 0;
    min-width: 0;
    padding-right: 10px;
    padding-left: 10px;
    white-space: nowrap;
  }

  .lesson-empty {
    min-height: 220px;
  }

  .panel__header {
    min-height: 0;
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 15px;
  }

  .panel__header > div:first-child {
    flex: 1 1 190px;
  }

  .students-toolbar {
    align-items: stretch;
  }

  .filter-select,
  .filter-select select,
  .filter-dropdown {
    min-width: 0;
    max-width: 100%;
  }

  .registration-section__header {
    align-items: flex-start;
  }

  .registration-section__header > div {
    flex: 1;
  }

  .enrollment-modal-backdrop {
    padding: 0;
  }

  .enrollment-modal {
    width: 100%;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
  }

  .enrollment-modal__header {
    padding: 15px;
  }

  .enrollment-modal__body {
    padding: 14px;
  }

  .enrollment-modal__tabs {
    overflow-x: auto;
    padding-right: 14px;
    padding-left: 14px;
    scrollbar-width: thin;
  }

  .enrollment-modal__tab {
    flex: 0 0 auto;
  }

  .confirm-modal-layer {
    padding: 14px;
  }

  .confirm-modal {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 20px;
  }

  .confirm-modal__actions {
    grid-column: 1;
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .confirm-modal__actions .button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .onboarding-story {
    padding: 14px 16px;
  }

  .onboarding-brand-logo {
    width: 54px;
  }

  .onboarding-story h1 {
    font-size: 25px;
  }

  .topbar {
    min-height: 66px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .topbar__left {
    gap: 8px;
  }

  .topbar__left h1 {
    font-size: 17px;
  }

  .topbar__context {
    font-size: 8px;
  }

  .topbar__actions {
    gap: 5px;
  }

  .page-content {
    padding-top: 16px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .metric-grid,
  .attendance-metrics {
    grid-template-columns: 1fr;
  }

  .dashboard-page .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric-card,
  .attendance-metric {
    min-height: 0;
  }

  .panel__header,
  .registration-section,
  .catalog-grid,
  .catalog-grid--classes {
    padding-right: 14px;
    padding-left: 14px;
  }

  .team-member__access,
  .team-member__editor {
    padding-left: 0;
  }

  .toast {
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
  }
}
/* Team access — creation/editing modal and compact responsive team view. */
.role-summary-grid--team-mvp {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-add-button__mobile {
  display: none;
}

.team-access-modal {
  width: min(980px, 100%);
}

.team-access-modal__body {
  padding: 18px;
}

.team-access-modal__alert {
  margin-bottom: 14px;
}

.team-access-form {
  width: 100%;
  margin-inline: auto;
}

.team-access-card {
  width: 100%;
}

.team-access-role-field {
  max-width: 360px;
}

.team-sports-fieldset {
  margin-top: 24px;
}

.team-access-actions {
  gap: 10px;
  margin-top: 24px;
}

/* Keep the people list intentionally concise: identity, function, profile and status. */
.team-list {
  padding-top: 2px;
  padding-bottom: 2px;
}

.team-member {
  min-height: 76px;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  gap: 12px;
  padding: 11px 0;
}

.team-member__avatar {
  width: 40px;
  height: 40px;
}

.team-member__identity {
  gap: 2px;
}

.team-member__identity strong {
  font-size: 12px;
}

.team-member__identity > span {
  font-size: 9px;
  line-height: 1.35;
}

.team-member__access {
  gap: 6px;
}

.team-member__status-confirm {
  display: flex;
  align-items: center;
  gap: 8px;
}

.team-member__status-confirm > span {
  max-width: 220px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
}

.team-member__status-confirm .button {
  min-height: 34px;
  padding: 6px 10px;
  font-size: 10px;
}

/* Tablet and compact desktop: keep title and CTA on the same visual row. */
@media (max-width: 920px) {
  .team-page > .page-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 14px;
    row-gap: 8px;
  }

  .team-page > .page-heading > div:first-child {
    display: contents;
  }

  .team-page > .page-heading .eyebrow {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 0;
  }

  .team-page > .page-heading h2 {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
  }

  .team-page > .page-heading p {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-bottom: 0;
  }

  .team-page > .page-heading .page-heading__actions {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
  }
}

@media (max-width: 650px) {
  .team-page > .page-heading {
    grid-template-columns: minmax(0, 1fr) 104px;
    column-gap: 10px;
  }

  .team-page > .page-heading .page-heading__actions {
    width: 104px;
  }

  .team-page > .page-heading .page-heading__actions .button {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 0 9px;
    font-size: 12px;
  }

  .team-add-button__desktop {
    display: none;
  }

  .team-add-button__mobile {
    display: inline;
  }

  .role-summary-grid--team-mvp {
    grid-template-columns: 1fr;
  }

  .team-access-modal__body {
    padding: 12px;
  }

  .team-access-form,
  .team-access-role-field {
    width: 100%;
    max-width: none;
  }

  .team-access-actions,
  .team-member__status-confirm {
    align-items: stretch;
    flex-direction: column;
  }

  .team-access-actions .button,
  .team-member__status-confirm .button {
    width: 100%;
  }

  .team-member__status-confirm > span {
    max-width: none;
  }

  .team-member {
    min-height: 72px;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    padding: 10px 0;
  }

  .team-member__avatar {
    width: 38px;
    height: 38px;
  }

  .team-member__access {
    grid-column: 1 / -1;
    padding-left: 48px;
  }
}
.avatar-crop-layer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 28px);
}

.avatar-crop-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 19, 48, .72);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.avatar-crop-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 620px);
  max-height: calc(100dvh - clamp(24px, 6vw, 56px));
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(0, 19, 48, .34);
}

.avatar-crop-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 20px 22px 17px;
}

.avatar-crop-dialog__header .eyebrow {
  margin-bottom: 5px;
}

.avatar-crop-dialog__header h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(21px, 3.5vw, 27px);
  line-height: 1.15;
  letter-spacing: -.025em;
}

.avatar-crop-dialog__body {
  min-height: 0;
  overflow-y: auto;
  background: #111923;
  padding: 18px clamp(18px, 4vw, 28px) 20px;
}

.avatar-crop-dialog__body > p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 0 16px;
  color: #dbe5f2;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.avatar-crop-viewport {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 1;
  overflow: hidden;
  margin: 0 auto;
  background: #050a10;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.avatar-crop-viewport:active {
  cursor: grabbing;
}

.avatar-crop-viewport:focus-visible {
  outline: 3px solid rgba(254, 88, 0, .8);
  outline-offset: 4px;
}

.avatar-crop-viewport img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--avatar-image-width);
  max-width: none;
  height: var(--avatar-image-height);
  pointer-events: none;
  transform: translate(-50%, -50%) translate(var(--avatar-offset-x), var(--avatar-offset-y)) scale(var(--avatar-zoom));
  transform-origin: center;
  will-change: transform;
}

.avatar-crop-viewport__mask {
  position: absolute;
  inset: 3px;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 999px rgba(3, 9, 16, .58);
  pointer-events: none;
}

.avatar-crop-controls {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  width: min(100%, 460px);
  margin: 17px auto 0;
}

.avatar-crop-controls > .icon-button {
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.avatar-crop-controls > .icon-button:hover:not(:disabled) {
  background: rgba(255, 255, 255, .14);
}

.avatar-crop-controls label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.avatar-crop-controls label span {
  color: #aebdd0;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .06em;
  text-align: center;
  text-transform: uppercase;
}

.avatar-crop-controls input[type='range'] {
  width: 100%;
  accent-color: var(--orange);
}

.avatar-crop-reset {
  min-height: 38px;
  border-color: rgba(255, 255, 255, .18);
  color: #dbe5f2;
  font-size: 11px;
}

.avatar-crop-reset:hover:not(:disabled) {
  background: rgba(255, 255, 255, .08);
}

.avatar-crop-error {
  width: min(100%, 460px);
  margin: 14px auto 0;
}

.avatar-crop-dialog__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 14px 18px;
}

@media (max-width: 650px) {
  .avatar-crop-layer {
    place-items: center;
    padding:
      max(12px, env(safe-area-inset-top))
      12px
      max(12px, env(safe-area-inset-bottom));
  }

  .avatar-crop-dialog {
    width: 100%;
    max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    border-radius: 18px;
  }

  .avatar-crop-dialog__header {
    padding: 16px 16px 14px;
  }

  .avatar-crop-dialog__body {
    padding: 14px 16px 17px;
  }

  .avatar-crop-dialog__body > p {
    margin-bottom: 12px;
    font-size: 11px;
  }

  .avatar-crop-viewport {
    width: min(76vw, 320px);
  }

  .avatar-crop-controls {
    grid-template-columns: auto minmax(0, 1fr) auto;
    margin-top: 13px;
  }

  .avatar-crop-reset {
    grid-column: 1 / -1;
    width: 100%;
  }

  .avatar-crop-dialog__actions {
    padding: 12px 14px;
  }

  .avatar-crop-dialog__actions .button {
    flex: 1;
    min-width: 0;
  }

  .avatar-crop-dialog__actions .button--secondary {
    flex-grow: .85;
  }

  .avatar-crop-dialog__actions .button--primary {
    flex-grow: 1.15;
  }
}

@media (max-width: 380px), (max-height: 670px) {
  .avatar-crop-dialog__header {
    padding-top: 12px;
    padding-bottom: 11px;
  }

  .avatar-crop-dialog__header h2 {
    font-size: 20px;
  }

  .avatar-crop-dialog__body > p {
    display: none;
  }

  .avatar-crop-viewport {
    width: min(68vw, 260px);
  }

  .avatar-crop-reset {
    display: none;
  }

  .avatar-crop-dialog__actions .button {
    padding-right: 8px;
    padding-left: 8px;
  }

  .avatar-crop-dialog__actions .button--primary {
    white-space: nowrap;
  }
}
.app-environment--homolog .topbar__context {
  font-size: 0;
}

.app-environment--homolog .topbar__context::before {
  content: 'INFINITY SPORTS • HOMOLOGAÇÃO';
  font-size: 12px;
}

.app-environment--homolog .app-version-footer > span:last-child {
  font-size: 0;
}

.app-environment--homolog .app-version-footer > span:last-child::after {
  content: var(--homolog-footer-label);
  font-size: 12px;
}

@media (max-width: 650px) {
  .app-environment--homolog .topbar__context::before {
    font-size: 11px;
  }

  .app-environment--homolog .app-version-footer > span:last-child::after {
    font-size: 11px;
  }
}
.topbar-help-button--active {
  background: var(--surface-blue);
  color: var(--orange-dark);
}

.help-page {
  display: grid;
  gap: 22px;
}

.help-page__hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.help-page__hero h2 {
  margin-bottom: 8px;
  font-size: clamp(24px, 3vw, 32px);
}

.help-page__hero p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.help-page__version-card {
  display: inline-flex;
  min-width: 180px;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

.help-page__version-card > svg {
  color: var(--orange-dark);
}

.help-page__version-card span {
  display: grid;
  gap: 2px;
}

.help-page__version-card small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.help-page__version-card strong {
  font-size: 18px;
}

.help-page__section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.help-page__section-heading > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.help-page__section-heading h3 {
  margin: 0;
  font-size: 17px;
}

.help-page__section-heading > span {
  color: var(--muted);
  font-size: 12px;
}

.release-history {
  display: grid;
  gap: 14px;
}

.release-history-state {
  display: grid;
  min-height: 150px;
  place-items: center;
  gap: 8px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.release-history-state strong {
  color: var(--navy);
}

.release-history-state--error {
  border-color: rgba(180, 35, 24, 0.28);
  background: var(--danger-soft);
  color: var(--danger);
}

.release-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 20px;
  box-shadow: var(--shadow);
  scroll-margin: 100px;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.release-card:hover {
  transform: translateY(-1px);
}

.release-card--selected {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(254, 88, 0, 0.12), var(--shadow);
}

.release-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.release-card__meta,
.release-modal__version {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.release-card__meta strong,
.release-modal__version strong {
  color: var(--orange-dark);
}

.release-card__date {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.release-card__latest {
  border-radius: 999px;
  background: var(--surface-blue);
  padding: 5px 8px;
  color: var(--navy);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.release-card h3 {
  margin-bottom: 8px;
  font-size: 19px;
}

.release-card__summary {
  margin-bottom: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.release-card__details {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: var(--navy);
  line-height: 1.7;
  white-space: pre-line;
}

.release-card__pdf {
  width: fit-content;
  margin-top: 16px;
  text-decoration: none;
}

.release-modal-layer {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 20px;
}

.release-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 26, 65, 0.56);
  backdrop-filter: blur(2px);
}

.release-modal {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  padding: 28px;
  box-shadow: 0 28px 80px rgba(0, 26, 65, 0.25);
}

.release-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.release-modal__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--warning-soft);
  color: var(--orange-dark);
}

.release-modal .eyebrow {
  margin-bottom: 7px;
}

.release-modal__version {
  margin-bottom: 10px;
}

.release-modal h2 {
  margin-bottom: 10px;
  padding-right: 34px;
  font-size: clamp(24px, 4vw, 30px);
}

.release-modal > p:not(.release-modal__error) {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.release-modal__error {
  margin: 16px 0 0;
  border-radius: 9px;
  background: var(--danger-soft);
  padding: 10px 12px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
}

.release-modal__actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

@media (max-width: 650px) {
  .help-page__hero {
    flex-direction: column;
  }

  .help-page__version-card {
    width: 100%;
  }

  .help-page__section-heading,
  .release-card__topline,
  .release-card__date {
    align-items: flex-start;
    flex-direction: column;
  }

  .release-card {
    padding: 17px;
  }

  .release-modal {
    padding: 24px 18px 18px;
  }

  .release-modal__actions {
    flex-direction: column-reverse;
  }

  .release-modal__actions .button {
    width: 100%;
  }
}
