:root {
  --meynt-blue: #2563eb;
  --meynt-cyan: #06b6f9;
  --meynt-green: #10b981;
  --meynt-navy: #0b1f36;
  --meynt-gray: #e5e7eb;
  --meynt-background: #f8fafc;
  --meynt-white: #ffffff;

  --app-primary: var(--meynt-blue);
  --app-primary-hover: #1d4ed8;
  /* Text and filled controls are separate semantic roles; Light stays identical. */
  --app-action-text: var(--app-primary);
  --app-action-text-hover: var(--app-primary-hover);
  --app-primary-fill: var(--app-primary);
  --app-primary-fill-hover: var(--app-primary-hover);
  --app-primary-soft: rgb(37 99 235 / 0.1);
  --app-primary-subtle: rgb(37 99 235 / 0.055);
  --app-primary-border: rgb(37 99 235 / 0.34);
  --app-accent: var(--meynt-cyan);
  --app-success: var(--meynt-green);
  --app-success-soft: rgb(16 185 129 / 0.1);
  --app-danger: #c92a1e;
  --app-danger-text: var(--app-danger);
  --app-danger-fill: var(--app-danger);
  --app-danger-soft: rgb(201 42 30 / 0.08);
  --app-warning: #9a6700;
  --app-warning-soft: rgb(154 103 0 / 0.1);
  --app-focus: var(--app-primary);
  --app-focus-ring: rgb(37 99 235 / 0.2);
  --app-radius-control: 10px;
  --app-radius-card: 14px;
  --app-radius-modal: 22px;
}

:root,
:root[data-theme='light'] {
  color-scheme: light;
  --app-bg: var(--meynt-background);
  --app-surface: var(--meynt-white);
  --app-surface-muted: color-mix(in srgb, var(--meynt-navy) 4%, var(--meynt-white));
  --app-surface-raised: var(--meynt-white);
  --app-text: var(--meynt-navy);
  --app-text-muted: color-mix(in srgb, var(--meynt-navy) 62%, var(--meynt-white));
  --app-border: var(--meynt-gray);
  --app-border-strong: color-mix(in srgb, var(--meynt-navy) 18%, var(--meynt-gray));
  --app-overlay: rgb(11 31 54 / 0.54);
  --app-shadow: 0 16px 40px rgb(11 31 54 / 0.08);
  --app-shadow-modal: 0 24px 70px rgb(11 31 54 / 0.24);
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --app-bg: #0c131c;
  --app-surface: #131e2b;
  --app-surface-muted: #1b2938;
  --app-surface-raised: #223449;
  --app-text: #f3f4f6;
  --app-text-muted: #b4bbc7;
  --app-border: #2d4054;
  --app-border-strong: #536a82;
  --app-action-text: #93c5fd;
  --app-action-text-hover: #bae6fd;
  --app-primary-fill: #2563eb;
  --app-primary-fill-hover: #1d4ed8;
  --app-danger-text: #fda4af;
  --app-danger-fill: #c92a1e;
  --app-success: #34d399;
  --app-warning: #fbbf24;
  --app-focus: #38bdf8;
  --app-primary-soft: rgb(37 99 235 / 0.18);
  --app-primary-subtle: rgb(37 99 235 / 0.1);
  --app-primary-border: rgb(96 165 250 / 0.48);
  --app-success-soft: rgb(16 185 129 / 0.16);
  --app-danger-soft: rgb(201 42 30 / 0.16);
  --app-warning-soft: rgb(154 103 0 / 0.18);
  --app-focus-ring: rgb(6 182 249 / 0.25);
  --app-overlay: rgb(0 0 0 / 0.66);
  --app-shadow: 0 18px 48px rgb(0 0 0 / 0.28);
  --app-shadow-modal: 0 28px 80px rgb(0 0 0 / 0.42);
}
/* Canonical Students pagination, shared by ListPagination consumers. */
.students-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 8px 18px;
  border-top: 1px solid var(--app-border);
  color: var(--app-text-muted);
  font-size: 12px;
}
.students-pagination nav { display: flex; align-items: center; gap: 8px; }
.students-pagination__position {
  min-width: 44px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.students-pagination__button {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--app-radius-control);
  background: transparent;
  color: var(--app-text-muted);
  box-shadow: none;
  outline: none;
}
.students-pagination__button:hover:not(:disabled) {
  background: var(--app-surface-muted);
  color: var(--app-text);
}
.students-pagination__button:focus-visible {
  outline: 2px solid var(--app-focus);
  outline-offset: 2px;
}
.students-pagination__button:disabled { cursor: default; opacity: .35; }

@media (min-width: 651px) {
  .students-pagination__button {
    transition: color 260ms ease-out, background-color 260ms ease-out;
  }
  .students-pagination__button svg {
    transition: transform 260ms ease-out, filter 260ms ease-out;
  }
  .students-pagination__button:is(:hover, :focus-visible):not(:disabled) {
    color: var(--app-accent);
  }
  .students-pagination__button:is(:hover, :focus-visible):not(:disabled) svg {
    filter: drop-shadow(0 0 3px color-mix(in srgb, var(--app-accent) 28%, transparent));
  }
  .students-pagination__button:is(:hover, :focus-visible):not(:disabled) .lucide-chevron-left {
    transform: translateX(-4px);
  }
  .students-pagination__button:is(:hover, :focus-visible):not(:disabled) .lucide-chevron-right {
    transform: translateX(4px);
  }
}
@media (max-width: 650px) {
  .students-pagination { flex-wrap: wrap; gap: 8px; padding: 8px 16px; }
  .students-pagination__button { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .students-pagination__button,
  .students-pagination__button svg { transition: none; }
  .students-pagination__button:is(:hover, :focus-visible):not(:disabled) svg:is(.lucide-chevron-left, .lucide-chevron-right) {
    transform: none;
    filter: none;
  }
}
/* Student presentation reconciled with the shared PC shell, avatar and modal. */
@media (min-width: 651px) {
  .students-page > .page-heading h2 {
    color: var(--app-text);
    font-size: clamp(24px, 2.4vw, 30px);
  }

  .students-page > .page-heading p { color: var(--app-text-muted); }

  .students-page > .students-panel {
    background: var(--app-surface);
    border-color: var(--app-border);
    border-radius: var(--app-radius-control);
  }

  .students-page .students-toolbar {
    gap: 12px;
    padding: 14px 18px;
    align-items: center;
    border-color: var(--app-border);
  }

  .students-page .students-toolbar .search-box {
    min-height: 36px;
    border-color: var(--app-border);
    border-radius: var(--app-radius-control);
    background: var(--app-surface);
    color: var(--app-text-muted);
  }

  .students-page .students-toolbar .search-box:focus-within {
    border-color: var(--app-focus);
    box-shadow: 0 0 0 3px var(--app-focus-ring);
  }

  .students-page .students-toolbar .search-box input {
    height: 34px;
    color: var(--app-text);
    box-shadow: none;
  }

  .students-page .students-toolbar .search-box input::placeholder { color: var(--app-text-muted); }

  .students-page .students-toolbar .filter-dropdown { flex: 0 0 216px; width: 216px; }
  .students-page .students-toolbar .filter-dropdown__trigger {
    min-height: 36px;
    height: 36px;
    border-color: var(--app-border);
    border-radius: var(--app-radius-control);
    background: var(--app-surface);
    color: var(--app-text);
    font-weight: 500;
    box-shadow: none;
    transform: none;
  }

  .students-page .students-toolbar .filter-dropdown__trigger:hover { border-color: var(--app-border-strong); }
  .students-page .students-toolbar .filter-dropdown--open .filter-dropdown__trigger,
  .students-page .students-toolbar .filter-dropdown__trigger:focus-visible {
    border-color: var(--app-focus);
    box-shadow: 0 0 0 3px var(--app-focus-ring);
    outline: none;
  }

  .students-page .students-toolbar .filter-dropdown__icon {
    background: transparent;
    color: var(--app-text-muted);
  }
  .students-page .students-toolbar .filter-dropdown__chevron { color: var(--app-text-muted); }
  .students-page .students-toolbar .results-count {
    color: var(--app-text-muted);
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
  }

  .students-page .students-table { background: var(--app-surface); }
  .students-page .students-table th {
    background: var(--app-surface);
    color: var(--app-text-muted);
    font-size: 10px;
    font-weight: 600;
    padding-inline: 18px;
  }
  .students-page .students-table tbody tr { background: var(--app-surface); }
  .students-page .students-table td {
    height: 60px;
    padding: 8px 18px;
    border-top-color: var(--app-border);
    background: transparent;
    color: var(--app-text);
    vertical-align: middle;
    line-height: 1.45;
  }

  /* Shared interaction CSS uses !important borders; preserve this list's dividers on hover. */
  .students-page .students-table .ui-clickable-table-row:is(:hover, :focus-visible) > td {
    background: color-mix(in srgb, var(--app-surface-muted) 55%, var(--app-surface));
    border-top-color: var(--app-border) !important;
  }
  .students-page .students-table .ui-clickable-table-row:focus-visible {
    outline: 2px solid var(--app-focus);
    outline-offset: -2px;
  }

  .students-page .students-table .student-identity { gap: 12px; }
  .students-page .students-table .student-identity strong {
    color: var(--app-text);
    font-size: 13px;
    font-weight: 600;
  }
  .students-page .students-table .student-identity small {
    color: var(--app-text-muted);
    font-size: 11px;
  }
  .students-page .students-table .avatar--student { width: 36px; height: 36px; flex: 0 0 36px; }
  .students-page .students-table .status-badge {
    width: 80px;
    height: 24px;
    min-height: 24px;
    font-weight: 600;
    line-height: 1.2;
  }
}

/* Shared list FilterDropdown menus render in a portal outside their page wrappers. */
  .filter-dropdown__menu:is([aria-label="Filtrar alunos por situação"], [aria-label="Filtrar alunos por escola"], .enrollments-filter-menu) {
    border-color: var(--app-border);
    background: var(--app-surface-raised);
    box-shadow: var(--app-shadow);
  }
  .filter-dropdown__menu:is([aria-label="Filtrar alunos por situação"], [aria-label="Filtrar alunos por escola"], .enrollments-filter-menu) .filter-dropdown__option {
    color: var(--app-text);
    font-weight: 500;
  }
  .filter-dropdown__menu:is([aria-label="Filtrar alunos por situação"], [aria-label="Filtrar alunos por escola"], .enrollments-filter-menu) .filter-dropdown__option:hover {
    background: var(--app-surface-muted);
  }
  .filter-dropdown__menu:is([aria-label="Filtrar alunos por situação"], [aria-label="Filtrar alunos por escola"], .enrollments-filter-menu) .filter-dropdown__option--active {
    background: var(--app-primary-soft);
    color: var(--app-text);
  }
  .filter-dropdown__menu:is([aria-label="Filtrar alunos por situação"], [aria-label="Filtrar alunos por escola"], .enrollments-filter-menu) .filter-dropdown__option--active svg {
    color: var(--app-primary);
  }

/* Shell already hides its route scrollbar. */

/* Keep the trigger equal to its wrapper; the existing portal measures that wrapper. */
.students-page .students-toolbar .filter-dropdown__trigger {
  display: flex;
  width: 100%;
  min-width: 0;
}
.students-page .students-toolbar .filter-dropdown__trigger > span:nth-child(2) {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.students-page .students-toolbar .filter-dropdown__chevron { flex: 0 0 15px; }

@media (max-width: 650px) {
  .students-page .students-toolbar .filter-dropdown {
    flex: 0 0 100%;
    width: 100%;
  }
}

.students-page .students-pagination { display: none; }
@media (min-width: 651px) {
  .students-page .students-pagination { display: flex; }
  .students-page .students-table :is(.status-badge--inactive, .status-badge--cancelled) {
    background: var(--app-surface-muted);
    color: var(--app-text-muted);
  }
}


@media (min-width: 651px) {
  .students-page > .page-heading { align-items: flex-start; }
  .students-page > .page-heading > .students-page__heading-actions { align-self: flex-start; padding-top: 4px; }
}


@media (min-width: 651px) {
  .students-page .students-page-body--next { animation: students-page-next 380ms ease-out; }
  .students-page .students-page-body--previous { animation: students-page-previous 380ms ease-out; }
}

@keyframes students-page-next {
  from { opacity: .4; transform: translateX(14px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes students-page-previous {
  from { opacity: .4; transform: translateX(-14px); }
  to { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .students-page .students-page-body { animation: none; }

}

@media (min-width: 651px) {
  /* Contain the animated body without clipping the toolbar or pagination. */
  .students-page .students-table-wrap {
    overflow-x: hidden;
  }
  @supports (overflow-x: clip) {
    .students-page .students-table-wrap {
      overflow-x: clip;
      overflow-y: visible;
    }
  }
}

/* Approved Light geometry is shared by both read-only detail themes. */
:root:is([data-theme], :not([data-theme])) .student-profile-modal--light-detail {
  width: min(100%, 860px);
  height: auto;
  max-height: calc(100dvh - 56px);
  border-radius: 14px;
}
:root:is([data-theme], :not([data-theme])) .student-profile-modal--light-detail .ui-modal__header {
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--app-border);
  align-items: flex-start;
}
:root:is([data-theme], :not([data-theme])) .student-profile-modal--light-detail .ui-modal__title { font-size: 20px; line-height: 1.3; }
:root:is([data-theme], :not([data-theme])) .student-profile-modal--light-detail .student-detail-name { display: block; overflow-wrap: anywhere; }
:root:is([data-theme], :not([data-theme])) .student-profile-modal--light-detail .student-detail-meta { display: block; margin-top: 4px; color: var(--app-text-muted); font-size: 12px; font-weight: 400; }
:root:is([data-theme], :not([data-theme])) .student-profile-modal--light-detail .student-profile-edit { margin-top: 0; min-height: 34px; height: 34px; padding: 0 12px; color: var(--app-primary); border-color: var(--app-primary-border); background: var(--app-surface); }
:root:is([data-theme], :not([data-theme])) .student-profile-modal--light-detail .ui-modal__body { padding: 12px 22px 20px; }
:root:is([data-theme], :not([data-theme])) .student-profile-modal--light-detail .student-detail-list { gap: 10px; }
:root:is([data-theme], :not([data-theme])) .student-profile-modal--light-detail .form-section { gap: 0; padding: 0; border: 1px solid var(--app-primary-border); border-radius: 8px; }
:root:is([data-theme], :not([data-theme])) .student-profile-modal--light-detail .form-section > h3 { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 14px; border-radius: 7px 7px 0 0; background: var(--app-primary-subtle); color: var(--app-text); font-size: 13px; }
:root:is([data-theme], :not([data-theme])) .student-profile-modal--light-detail .form-section > h3 svg { color: var(--app-primary); flex-shrink: 0; }
:root:is([data-theme], :not([data-theme])) .student-profile-modal--light-detail dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; padding: 12px 14px; }
:root:is([data-theme], :not([data-theme])) .student-profile-modal--light-detail dl > div { grid-template-columns: minmax(80px, .8fr) minmax(0, 1.2fr); gap: 10px; padding: 0; border: 0; align-items: start; }
:root:is([data-theme], :not([data-theme])) .student-profile-modal--light-detail dt { color: var(--app-text-muted); font-size: 11px; line-height: 1.5; }
:root:is([data-theme], :not([data-theme])) .student-profile-modal--light-detail dd { color: var(--app-text); text-align: left; font-size: 12px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
:root:is([data-theme], :not([data-theme])) .student-profile-modal--light-detail .status-badge { min-height: 24px; padding: 3px 12px; font-size: 11px; }
:root:is([data-theme], :not([data-theme])) .student-profile-modal--light-detail .status-badge--inactive { color: var(--app-danger); background: var(--app-danger-soft); }
:root:is([data-theme], :not([data-theme])) .student-profile-modal--light-detail .student-status-summary { white-space: normal; justify-content: flex-start; flex-wrap: wrap; }
:root:is([data-theme], :not([data-theme])) .student-profile-modal--light-detail .inline-note { margin: 0; padding: 14px; border: 0; background: transparent; color: var(--app-text-muted); font-size: 12px; }
:root:is([data-theme], :not([data-theme])) .student-profile-modal--light-detail .field-hint { margin: 0; padding: 12px 14px; }
:root:is([data-theme], :not([data-theme])) .student-profile-modal--light-detail :is(.student-enrollment-summary, .student-sports-summary) { margin: 0; padding: 12px 14px; }
@media (max-width: 650px) {
  :root:is([data-theme], :not([data-theme])) .student-profile-modal--light-detail dl { grid-template-columns: minmax(0, 1fr); }
}

.student-profile-modal--light-detail .student-detail-split-body { display: grid; gap: 0; }

/* The divider belongs to a populated two-column body, never its card header. */
@media (min-width: 651px) {
  :root:is([data-theme], :not([data-theme])) .student-profile-modal--light-detail .student-detail-card--split > :is(dl:has(> div:nth-child(2)), .student-detail-split-body:has(> dl > div:nth-child(2))) {
    position: relative;
  }
  :root:is([data-theme], :not([data-theme])) .student-profile-modal--light-detail .student-detail-card--split > :is(dl:has(> div:nth-child(2)), .student-detail-split-body:has(> dl > div:nth-child(2)))::after {
    content: '';
    position: absolute;
    inset-block: 12px;
    left: 50%;
    width: 1px;
    transform: translateX(-50%);
    background: var(--app-border);
    pointer-events: none;
  }
}

:root:is([data-theme], :not([data-theme])) .student-profile-modal--light-detail .student-operational-enrollment { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; color: var(--app-text); font-size: 12px; }
:root:is([data-theme], :not([data-theme])) .student-profile-modal--light-detail .student-operational-enrollment + .student-operational-enrollment { border-top: 1px solid var(--app-border); }
:root:is([data-theme], :not([data-theme])) .student-profile-modal--light-detail .student-operational-enrollment > span:first-child { min-width: 0; overflow-wrap: anywhere; }
:root:is([data-theme], :not([data-theme])) .student-profile-modal--light-detail .student-operational-enrollment > span:last-child { flex-shrink: 0; }

/* Field punctuation belongs to the shared read-only detail presentation. */
:root:is([data-theme], :not([data-theme])) .student-profile-modal--light-detail .student-detail-list dt::after { content: ':'; }

/* Hide only the shared student detail/editor scroller's visual scrollbar. */
.student-profile-modal .ui-modal__body.student-profile-modal-body {
  scrollbar-width: none;
  scrollbar-gutter: auto;
}
.student-profile-modal .ui-modal__body.student-profile-modal-body::-webkit-scrollbar {
  width: 0;
  height: 0;
}


.student-profile-modal--light-detail .student-detail-enrollment__status { padding: 3px 9px; border-radius: 999px; background: var(--app-surface-muted); color: var(--app-text-muted); font-size: 11px; }
.student-profile-modal--light-detail .student-detail-enrollment__status--active { background: var(--app-success-soft); color: var(--app-text); }

@media (max-width: 650px) {
  .students-page .students-pagination { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px; color: var(--app-text-muted); font-size: 11px; }
  .students-page .students-pagination nav { display: flex; align-items: center; gap: 8px; }
  .students-page .students-pagination__button { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--app-radius-control); background: transparent; color: var(--app-text-muted); }
  .students-page .students-pagination__button:disabled { opacity: .35; }
  .students-page .students-pagination__button:focus-visible { outline: 2px solid var(--app-focus); outline-offset: 2px; }
}

/* Dark appearance only: retain the approved detail geometry and shared close control. */
:root[data-theme='dark'] .student-profile-modal--light-detail {
  background: color-mix(in srgb, var(--app-surface-raised) 25%, var(--app-surface));
  border-color: var(--app-border-strong);
  color: var(--app-text);
  box-shadow: var(--app-shadow-modal);
}
:root[data-theme='dark'] .student-profile-modal--light-detail .ui-modal__header {
  background: color-mix(in srgb, var(--app-surface-raised) 12%, var(--app-surface));
}
:root[data-theme='dark'] .student-profile-modal--light-detail .form-section {
  background: var(--app-surface);
  border-color: var(--app-border);
}
:root[data-theme='dark'] .student-profile-modal--light-detail .form-section > h3 {
  background: color-mix(in srgb, var(--app-surface-raised) 35%, var(--app-surface-muted));
}
:root[data-theme='dark'] .student-profile-modal--light-detail .form-section > h3 svg {
  color: var(--app-action-text);
}
:root[data-theme='dark'] .student-profile-modal--light-detail .student-profile-edit {
  color: var(--app-action-text);
  background: var(--app-surface);
  border-color: var(--app-border-strong);
}
:root[data-theme='dark'] .student-profile-modal--light-detail .student-profile-edit:hover {
  color: var(--app-action-text-hover);
  background: var(--app-surface-muted);
  box-shadow: none;
}
:root[data-theme='dark'] .student-profile-modal--light-detail :is(.status-badge--active, .student-detail-enrollment__status--active) {
  background: var(--app-success-soft);
  color: color-mix(in srgb, var(--app-success) 75%, var(--app-text));
}
:root[data-theme='dark'] .student-profile-modal--light-detail .status-badge--inactive {
  background: var(--app-danger-soft);
  color: var(--app-danger-text);
}
:root[data-theme='dark'] .student-profile-modal--light-detail .student-detail-enrollment__status--suspended {
  background: var(--app-surface-muted);
  color: var(--app-text-muted);
}

/* Read-only inactivation audit, including its portal inside the current modal backdrop. */
.student-profile-modal--light-detail .student-inactive-status { display: inline-flex; align-items: center; gap: 5px; }
.student-profile-modal--light-detail .student-inactive-status strong { font: inherit; color: inherit; }
:is(.student-profile-modal--light-detail, :is(.student-profile-modal--edit, .student-profile-modal--create)) .student-inactive-audit {
  display: inline-grid; place-items: center; flex: 0 0 16px; width: 16px; height: 16px;
  padding: 0; border: 0; border-radius: 3px;
  background: transparent; color: var(--app-action-text); cursor: pointer;
}
:is(.student-profile-modal--light-detail, :is(.student-profile-modal--edit, .student-profile-modal--create)) .student-inactive-audit:is(:hover, [aria-expanded='true']) { background: transparent; color: var(--app-primary); }
:is(.student-profile-modal--light-detail, :is(.student-profile-modal--edit, .student-profile-modal--create)) .student-inactive-audit:focus-visible { outline: 2px solid var(--app-focus); outline-offset: 2px; }
.student-inactive-audit-popover {
  position: fixed; z-index: 1; display: grid; gap: 4px; width: 280px; max-width: calc(100vw - 32px);
  padding: 12px 14px; border: 1px solid var(--app-border);
  border-radius: 8px; background: var(--app-surface-raised); color: var(--app-text);
  box-shadow: var(--app-shadow); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; pointer-events: none;
}
.student-inactive-audit-popover__caret {
  position: absolute; top: -5px; width: 8px; height: 8px;
  transform: translateX(-50%) rotate(45deg); background: var(--app-surface-raised);
  border-left: 1px solid var(--app-border); border-top: 1px solid var(--app-border);
}

/* Edit presentation only: flat sections, compact controls and the shared audit indicator. */
:root:is([data-theme], :not([data-theme])) :is(.student-profile-modal--edit, .student-profile-modal--create) {
  width: min(100%, 960px);
  height: min(90vh, 900px);
  max-height: calc(100dvh - 56px);
  color: var(--app-text);
  background: var(--app-surface);
  border-color: var(--app-border-strong);
}
:is(.student-profile-modal--edit, .student-profile-modal--create) .ui-modal__header { padding: 24px 28px 18px; align-items: flex-start; }
:is(.student-profile-modal--edit, .student-profile-modal--create) .ui-modal__eyebrow { margin-bottom: 8px; font-size: 10px; letter-spacing: .18em; color: var(--app-text-muted); }
:is(.student-profile-modal--edit, .student-profile-modal--create) .ui-modal__title { font-size: 26px; line-height: 1.2; }
:is(.student-profile-modal--edit, .student-profile-modal--create) .student-edit-name { display: block; overflow-wrap: anywhere; }
:is(.student-profile-modal--edit, .student-profile-modal--create) .student-edit-meta { display: block; margin-top: 5px; font-size: 13px; line-height: 1.5; font-weight: 400; color: var(--app-text-muted); }
:is(.student-profile-modal--edit, .student-profile-modal--create) .student-edit-status { display: inline-flex; align-items: center; flex-shrink: 0; gap: 5px; align-self: center; }
:is(.student-profile-modal--edit, .student-profile-modal--create) .student-status-toggle { min-width: 0; color: var(--app-text); }
:is(.student-profile-modal--edit, .student-profile-modal--create) .student-status-toggle__label { font-size: 13px; font-weight: 500; color: var(--app-text); }
:is(.student-profile-modal--edit, .student-profile-modal--create) .student-status-toggle--inactive .student-status-toggle__label { color: var(--app-danger-text); }
:is(.student-profile-modal--edit, .student-profile-modal--create) .student-status-toggle__track { border-color: var(--app-border-strong); background: var(--app-surface-muted); }
:is(.student-profile-modal--edit, .student-profile-modal--create) .student-status-toggle input:checked + .student-status-toggle__track { border-color: var(--app-success); background: var(--app-success); }
:is(.student-profile-modal--edit, .student-profile-modal--create) .student-status-toggle input:focus-visible + .student-status-toggle__track { outline: 2px solid var(--app-focus); outline-offset: 2px; box-shadow: none; }
:is(.student-profile-modal--edit, .student-profile-modal--create) .ui-modal__body { padding: 18px 28px 20px; }
:is(.student-profile-modal--edit, .student-profile-modal--create) .student-modal-form { gap: 20px; }
:is(.student-profile-modal--edit, .student-profile-modal--create) .form-section { gap: 12px; padding: 0 0 20px; border: 0; border-bottom: 1px solid var(--app-border); border-radius: 0; background: transparent; }
:is(.student-profile-modal--edit, .student-profile-modal--create) .form-section h3 { margin: 0; font-size: 14px; line-height: 1.5; color: var(--app-text); }
:is(.student-profile-modal--edit, .student-profile-modal--create) .form-section__hint { margin: -4px 0 2px; color: var(--app-text-muted); font-size: 11px; line-height: 1.5; }
:is(.student-profile-modal--edit, .student-profile-modal--create) .form-grid { gap: 12px 16px; }
:is(.student-profile-modal--edit, .student-profile-modal--create) .field { gap: 6px; margin: 0; color: var(--app-text); font-size: 12px; }
:is(.student-profile-modal--edit, .student-profile-modal--create) .field > span { color: var(--app-text); }
:is(.student-profile-modal--edit, .student-profile-modal--create) :is(.field input:not([type='checkbox']), .field textarea, .filter-dropdown__trigger, .date-picker__trigger) {
  min-height: 42px; padding: 10px 12px; border: 1px solid var(--app-primary-border); border-radius: 6px;
  background: var(--app-surface); color: var(--app-text); font-size: 13px; font-weight: 400; box-shadow: none;
}
:is(.student-profile-modal--edit, .student-profile-modal--create) :is(.filter-dropdown__trigger, .date-picker__trigger) { height: 42px; transform: none; }
:is(.student-profile-modal--edit, .student-profile-modal--create) .filter-dropdown { width: 100%; }
:is(.student-profile-modal--edit, .student-profile-modal--create) .field input[readonly] { background: var(--app-surface-muted); }
:is(.student-profile-modal--edit, .student-profile-modal--create) :is(input, textarea)::placeholder { color: var(--app-text-muted); opacity: 1; }
:is(.student-profile-modal--edit, .student-profile-modal--create) :is(.filter-dropdown__chevron, .date-picker__trigger svg) { color: var(--app-action-text); }
:is(.student-profile-modal--edit, .student-profile-modal--create) :is(.field input:not([type='checkbox']), .field textarea, .filter-dropdown__trigger, .date-picker__trigger):hover { border-color: var(--app-border-strong); }
:is(.student-profile-modal--edit, .student-profile-modal--create) :is(.field input:not([type='checkbox']), .field textarea):focus,
:is(.student-profile-modal--edit, .student-profile-modal--create) :is(.filter-dropdown__trigger, .date-picker__trigger):focus-visible,
:is(.student-profile-modal--edit, .student-profile-modal--create) :is(.filter-dropdown--open .filter-dropdown__trigger, .date-picker--open .date-picker__trigger) { border-color: var(--app-focus); box-shadow: 0 0 0 3px var(--app-focus-ring); outline: none; }
:is(.student-profile-modal--edit, .student-profile-modal--create) .inline-note { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 10px 12px; border: 1px solid var(--app-border); border-radius: 6px; background: var(--app-surface-muted); color: var(--app-text); }
:is(.student-profile-modal--edit, .student-profile-modal--create) .inline-note svg { flex-shrink: 0; color: var(--app-action-text); }
:is(.student-profile-modal--edit, .student-profile-modal--create) .declaration-list { gap: 10px; color: var(--app-text); }
:is(.student-profile-modal--edit, .student-profile-modal--create) input[type='checkbox'] { accent-color: var(--app-primary); }
:is(.student-profile-modal--edit, .student-profile-modal--create) .student-modal-actions { bottom: -20px; margin: 0 -28px -20px; padding: 14px 28px; background: var(--app-surface); backdrop-filter: none; }
:is(.student-profile-modal--edit, .student-profile-modal--create) .student-modal-actions .button { min-height: 42px; padding: 0 20px; font-size: 13px; }
:is(.student-profile-modal--edit, .student-profile-modal--create) .student-modal-actions .button--secondary { background: var(--app-surface); color: var(--app-text); border-color: var(--app-primary-border); }
:root[data-theme='dark'] :is(.student-profile-modal--edit, .student-profile-modal--create) { background: color-mix(in srgb, var(--app-surface) 88%, var(--app-surface-raised)); }
:root[data-theme='dark'] :is(.student-profile-modal--edit, .student-profile-modal--create) :is(.field input:not([type='checkbox']), .field textarea, .filter-dropdown__trigger, .date-picker__trigger) { background: var(--app-surface-raised); border-color: var(--app-border-strong); }
:root[data-theme='dark'] :is(.student-profile-modal--edit, .student-profile-modal--create) .field input[readonly] { background: var(--app-surface-muted); }
@media (max-width: 650px) {
  :root:is([data-theme], :not([data-theme])) :is(.student-profile-modal--edit, .student-profile-modal--create) { max-height: calc(100dvh - 24px); }
  :is(.student-profile-modal--edit, .student-profile-modal--create) .ui-modal__header { padding: 18px; gap: 8px; }
  :is(.student-profile-modal--edit, .student-profile-modal--create) .ui-modal__title { font-size: 20px; }
  :is(.student-profile-modal--edit, .student-profile-modal--create) .ui-modal__body { padding: 16px 18px 18px; }
  :is(.student-profile-modal--edit, .student-profile-modal--create) .form-grid { grid-template-columns: minmax(0, 1fr); }
  :is(.student-profile-modal--edit, .student-profile-modal--create) .student-modal-actions { bottom: -18px; margin: 0 -18px -18px; padding: 12px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  :is(.student-profile-modal--edit, .student-profile-modal--create) .student-status-toggle__track,
  :is(.student-profile-modal--edit, .student-profile-modal--create) .student-status-toggle__track > span { transition: none; }
}

/* Shared controls render their menus in portals; scope their theme to an open student editor. */
:root:has(:is(.student-profile-modal--edit, .student-profile-modal--create)) :is(.date-picker__calendar, .filter-dropdown__menu--portal) { background: var(--app-surface-raised); border-color: var(--app-border-strong); color: var(--app-text); box-shadow: var(--app-shadow); }
:root:has(:is(.student-profile-modal--edit, .student-profile-modal--create)) .filter-dropdown__option { color: var(--app-text); }
:root:has(:is(.student-profile-modal--edit, .student-profile-modal--create)) .filter-dropdown__option:is(:hover, :focus-visible, .filter-dropdown__option--active) { background: var(--app-primary-soft); color: var(--app-action-text); }
:root:has(:is(.student-profile-modal--edit, .student-profile-modal--create)) :is(.date-picker__header, .date-picker__footer) { border-color: var(--app-border); color: var(--app-text-muted); }
:root:has(:is(.student-profile-modal--edit, .student-profile-modal--create)) :is(.date-picker__header > button, .date-picker__period-trigger, .date-picker__days button, .date-picker__wheel-option) { background: transparent; color: var(--app-text); border-color: transparent; }
:root:has(:is(.student-profile-modal--edit, .student-profile-modal--create)) :is(.date-picker__header > button, .date-picker__period-trigger, .date-picker__days button):hover:not(:disabled) { background: var(--app-primary-soft); border-color: var(--app-primary-border); color: var(--app-action-text); }
:root:has(:is(.student-profile-modal--edit, .student-profile-modal--create)) :is(.date-picker__weekdays span, .date-picker__period-trigger svg, .date-picker__wheel-labels) { color: var(--app-text-muted); }
:root:has(:is(.student-profile-modal--edit, .student-profile-modal--create)) .date-picker__day--outside { color: var(--app-text-muted) !important; }
:root:has(:is(.student-profile-modal--edit, .student-profile-modal--create)) .date-picker__day--selected { background: var(--app-primary-fill) !important; color: var(--meynt-white) !important; border-color: var(--app-primary-fill) !important; box-shadow: none; }
:root:has(:is(.student-profile-modal--edit, .student-profile-modal--create)) .date-picker__wheel-panel { background: var(--app-surface-raised); border-color: var(--app-border); }
:root:has(:is(.student-profile-modal--edit, .student-profile-modal--create)) .date-picker__wheel-selection { background: var(--app-primary-soft); border-color: var(--app-primary-border); }
:root:has(:is(.student-profile-modal--edit, .student-profile-modal--create)) .date-picker__wheel-option--active { color: var(--app-action-text); }
:root:has(:is(.student-profile-modal--edit, .student-profile-modal--create)) :is(.date-picker__wheel-apply, .date-picker__footer button) { background: var(--app-primary-fill); color: var(--meynt-white); border-color: var(--app-primary-fill); }
:is(.student-profile-modal--edit, .student-profile-modal--create) .emergency-contacts-fields { display: grid; gap: 12px; }
:is(.student-profile-modal--edit, .student-profile-modal--create) .address-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; background: transparent; color: var(--app-text); }
:is(.student-profile-modal--edit, .student-profile-modal--create) .emergency-contacts-fields__heading { padding: 0; margin: 0 0 12px; color: var(--app-text-muted); }
@media (prefers-reduced-motion: reduce) { :root:has(:is(.student-profile-modal--edit, .student-profile-modal--create)) :is(.date-picker__calendar, .filter-dropdown__menu--portal) { animation: none; } }

:root:has(:is(.student-profile-modal--edit, .student-profile-modal--create)) .date-picker__calendar { max-width: 320px; border-radius: 10px; }
:root:has(:is(.student-profile-modal--edit, .student-profile-modal--create)) .date-picker__wheels { background: var(--app-surface-muted); border-color: var(--app-border); }

:is(.student-profile-modal--edit, .student-profile-modal--create) .declaration-list label { min-height: 24px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--app-text); }
:is(.student-profile-modal--edit, .student-profile-modal--create) .declaration-list label span { color: var(--app-text); font-size: 12px; }

/* Keep the footer as the sole divider at the end of the student editor. */
:is(.student-profile-modal--edit, .student-profile-modal--create) .student-modal-form > .form-section:has(.declaration-list) { padding-bottom: 0; border-bottom: 0; }

@media (min-width: 1101px) {
  :root:not([data-theme="dark"]) .students-page .students-toolbar .filter-dropdown:has([aria-label="Filtrar alunos por escola"]) { flex: 0 0 300px; width: 300px; }
}

/* The short creation form shares the approved editor controls and stays central on desktop. */
:root:is([data-theme], :not([data-theme])) .student-profile-modal--create { width: min(100%, 800px); height: auto; }
@media (max-width: 650px) {
  :root:is([data-theme], :not([data-theme])) .student-profile-modal--create { height: calc(100dvh - 24px); max-height: calc(100dvh - 24px); }
  /* Reuse the existing empty/loading feedback while populated rows remain mobile cards. */
  .students-page .students-table-wrap:has(:is(.table-empty, .skeleton)) { display: block; }
  .students-page .students-table-wrap:has(:is(.table-empty, .skeleton)) .students-table { min-width: 0; }
  .students-page .students-table-wrap:has(:is(.table-empty, .skeleton)) thead { display: none; }
  .students-page .students-toolbar :is(.search-box, .filter-dropdown__trigger),
  .students-page .student-mobile-card { background: var(--app-surface); border-color: var(--app-border); color: var(--app-text); }
  .students-page .students-toolbar .search-box input { color: var(--app-text); background: transparent; box-shadow: none; }
  .students-page .students-toolbar .search-box input::placeholder,
  .students-page .student-mobile-card small { color: var(--app-text-muted); }
  .students-page .student-mobile-card strong { color: var(--app-text); }
  .students-page .students-toolbar .search-box:focus-within,
  .students-page .students-toolbar .filter-dropdown__trigger:focus-visible,
  .students-page .students-toolbar .filter-dropdown--open .filter-dropdown__trigger { border-color: var(--app-focus); box-shadow: 0 0 0 3px var(--app-focus-ring); }
  .students-page .students-toolbar .filter-dropdown__icon { background: transparent; color: var(--app-text-muted); }
  .students-page .student-mobile-card .status-badge { color: var(--app-text); }
  .students-page .student-mobile-card .status-badge--active { background: var(--app-success-soft); }
  .students-page .student-mobile-card .status-badge--inactive { background: var(--app-surface-muted); }
}
.students-page .table-empty { color: var(--app-text-muted); }
.students-page .table-empty strong { color: var(--app-text); }
.enrollment-registration-banner { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-color: var(--app-border); background: var(--app-surface); border-radius: var(--app-radius-card); }
.enrollment-registration-banner__icon { display: grid; place-items: center; flex: 0 0 52px; height: 52px; border-radius: 50%; color: var(--app-primary); background: var(--app-primary-soft); }
.enrollment-registration-banner__text { min-width: 0; flex: 1; }
.enrollment-registration-banner__text h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-size: 18px; color: var(--app-text); }
.enrollment-registration-banner__text p { margin: 0; font-size: 13px; color: var(--app-text-muted); }
.enrollment-registration-banner__count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; color: var(--app-primary); background: var(--app-primary-soft); font-size: 12px; }
.enrollment-registration-banner__actions { display: flex; align-items: center; gap: 10px; }
.existing-enrollment-modal .ui-modal__footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.existing-enrollment-modal .sport-choice { border-color: var(--app-border); background: var(--app-surface); }
.existing-enrollment-modal .sport-choice:hover { border-color: var(--app-primary); }
.existing-enrollment-modal .sport-choice:has(input:checked) { border-color: var(--app-primary); background: var(--app-primary-soft); }
.existing-enrollment-modal :is(.sport-choice strong, .choice-fieldset legend, .address-fieldset legend, .selected-student-card strong, .student-search-results strong, .enrollment-class-choice__heading strong) { color: var(--app-text); }
.existing-enrollment-modal :is(.sport-choice small, .selected-student-card small, .student-search-results small) { color: var(--app-text-muted); }
.existing-enrollment-modal .selected-student-card { grid-template-columns: 46px minmax(0, 1fr) auto; border-color: var(--app-primary-border); background: var(--app-primary-soft); }
.existing-enrollment-modal .student-search-results { border-color: var(--app-border); background: var(--app-surface); }
.existing-enrollment-modal .student-search-input:focus-within { border-color: var(--app-primary); box-shadow: 0 0 0 3px var(--app-focus-ring); }
.existing-enrollment-modal .student-search-input:has(input:focus-visible) { outline: 2px solid var(--app-focus); outline-offset: 2px; }
.existing-enrollment-modal .student-search-results > button:hover { background: var(--app-primary-subtle); }
.existing-enrollment-modal .student-search-results > button:focus-visible { background: var(--app-primary-soft); outline: 2px solid var(--app-focus); outline-offset: -2px; }
.existing-enrollment-modal .selected-student-card .eyebrow { color: var(--app-primary); }
.existing-enrollment-modal .enrollment-complementary-fields { display: grid; gap: 16px; margin-top: 24px; }
.existing-enrollment-modal .enrollment-selection-note { margin: 0 0 12px; color: var(--app-text-muted); font-size: 12px; line-height: 1.5; }
.existing-enrollment-modal .enrollment-selection-summary { display: grid; gap: 12px; }
.registration-history-result--partial { white-space: nowrap; }
.registration-history-modal.students-page .registration-history-table .status-badge {
  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
  height: auto;
  min-height: 24px;
  padding: 5px 10px;
  border-radius: 999px;
  vertical-align: middle;
  white-space: normal;
  overflow-wrap: normal;
  text-align: center;
}
.registration-history-result--partial:focus-visible { outline: 2px solid var(--app-focus); outline-offset: 2px; }
.existing-enrollment-modal .declaration-list { margin: 0; gap: 8px; }
.existing-enrollment-modal .declaration-list label { border: 0; border-radius: 0; padding: 4px 0; color: var(--app-text); }
.existing-enrollment-modal .inline-document-link { color: var(--app-action-text); }
.existing-enrollment-modal .inline-note { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; background: var(--app-surface-muted); color: var(--app-text-muted); border: 1px solid var(--app-border); border-radius: var(--app-radius-control); }
.existing-enrollment-modal .inline-note svg { flex-shrink: 0; color: var(--app-primary); }
.existing-enrollment-modal .inline-note--warning { background: var(--app-warning-soft); color: var(--app-warning); }
.existing-enrollment-modal .sport-choice__mark { width: 24px; height: 24px; border: 0; border-radius: 0; background: transparent; color: var(--app-action-text); }
.existing-enrollment-modal .sport-choice:has(input:checked) .sport-choice__mark { border: 0; background: transparent; color: var(--app-action-text); }
.existing-enrollment-modal .sport-choice__mark img { width: 20px; height: 20px; }
.existing-enrollment-modal .enrollment-billing-entry__art { background: transparent; border: 0; color: var(--app-action-text); }
.existing-enrollment-modal .ui-modal__footer .ui-button:disabled:not(.is-loading) { cursor: default; }
.existing-enrollment-modal .ui-modal__footer .ui-button.is-loading { cursor: wait; }
.existing-enrollment-modal .registration-form > .form-section:last-of-type { padding-bottom: 0; border-bottom: 0; }
.existing-enrollment-modal .choice-chip { display: inline-flex; align-items: center; gap: 8px; border-color: var(--app-border); background: var(--app-surface); color: var(--app-text); }
.existing-enrollment-modal .choice-chip--active { border-color: var(--app-primary); background: var(--app-primary-soft); color: var(--app-action-text); box-shadow: none; }
.existing-enrollment-modal .choice-chip input { accent-color: var(--app-primary); box-shadow: none; }
.existing-enrollment-modal .choice-chip input:focus-visible { outline: 2px solid var(--app-focus); outline-offset: 2px; }
.existing-enrollment-modal .sport-choice:focus-within { outline: 2px solid var(--app-focus); outline-offset: 2px; }
.existing-enrollment-modal .class-assignment-option:is(:hover, :focus-visible) { border-color: var(--app-primary); box-shadow: 0 0 0 3px var(--app-focus-ring); }
.filter-dropdown__menu.enrollment-form-menu { border-color: var(--app-border); background: var(--app-surface-raised); color: var(--app-text); box-shadow: var(--app-shadow); }
.filter-dropdown__menu.enrollment-form-menu .filter-dropdown__option { color: var(--app-text); }
.filter-dropdown__menu.enrollment-form-menu .filter-dropdown__option:is(:hover, :focus-visible, .filter-dropdown__option--active) { background: var(--app-primary-soft); color: var(--app-action-text); }
.enrollment-footer-guidance { display: grid; gap: 4px; color: var(--app-text-muted); font-size: 11px; line-height: 1.5; }
.enrollment-footer-guidance strong { color: var(--app-text); }
.registration-history-list { display: flex; flex: 1; min-height: 0; flex-direction: column; }
.registration-history-list[hidden] { display: none; }
.registration-history-modal .registration-history-modal__body { display: flex; flex: 1; min-height: 0; overflow: hidden; }
.registration-history-modal__scroll { flex: 1; min-height: 0; overflow-y: auto; }
.registration-history-detail { overflow: auto; flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; padding-bottom: 0; }
.registration-history-detail > * { flex-shrink: 0; }
.registration-history-detail__student { display: flex; align-items: center; gap: 12px; min-width: 0; }
.registration-history-detail__student > div { flex: 1; min-width: 0; }
.registration-history-detail__student h3 { margin: 0; color: var(--app-text); font-size: 24px; line-height: 1.25; font-weight: 650; overflow-wrap: anywhere; }
.registration-history-detail__student > .status-badge { flex-shrink: 0; }
.registration-history-detail .registration-review-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; gap: 8px 16px; }
.registration-history-detail .registration-review-grid > div { min-width: 0; padding: 0; border: 0; }
.registration-history-detail .registration-review-grid dt { color: var(--app-text-muted); font-size: 12px; margin-bottom: 4px; }
.registration-history-detail .registration-review-grid dd { color: var(--app-text); font-size: 13px; margin: 0; line-height: 1.4; font-weight: 400; overflow-wrap: anywhere; }
.registration-history-detail .registration-review-grid__wide { grid-column: 1 / -1; }
.registration-history-detail .registration-history-detail__metadata { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-bottom: 4px; }
.registration-history-detail .registration-history-detail__section { display: block; padding: 12px 16px; border: 1px solid var(--app-border); border-radius: var(--app-radius-control); background: var(--app-surface); }
.registration-history-detail__personal { display: grid; gap: 12px; }
.registration-history-detail .registration-review-block { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
.registration-history-detail .registration-review-block > div { min-width: 0; }
.registration-history-detail .registration-review-block__icon { align-self: center; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--app-primary); background: var(--app-primary-soft); }
.registration-history-detail__section h3, .registration-history-detail__items > h3 { margin: 0 0 10px; color: var(--app-text); font: inherit; font-size: 14px; font-weight: 600; }
.registration-history-detail .enrollment-billing-entry { padding: 12px 16px; border: 1px solid var(--app-border); border-radius: var(--app-radius-control); background: var(--app-surface); gap: 12px; }
.registration-history-detail__items { gap: 12px; }
.registration-history-detail__items > h3 { margin-bottom: 0; }
.registration-history-detail .registration-history-detail__item { grid-template-columns: minmax(0, 1fr); }
.registration-history-detail__item-content { min-width: 0; display: grid; gap: 10px; }
.registration-history-detail__decision-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) max-content; align-items: center; gap: 16px; min-width: 0; }
.registration-history-detail__decision-row:has(.registration-history-detail__decision-grid > div:nth-child(2)) { grid-template-columns: 72px 140px minmax(0, 1fr) max-content; }
.registration-history-detail__decision-row:has(.registration-history-detail__decision-grid > div:nth-child(3)) { grid-template-columns: 72px 140px minmax(0, 1fr) 110px max-content; }
.registration-history-detail__decision-row:has(.registration-history-detail__decision-grid > div:nth-child(4)) { grid-template-columns: 72px 140px 95px minmax(0, 1fr) 110px max-content; }
.registration-history-detail__decision-row > .enrollment-billing-entry__header { grid-column: 1; min-width: 0; max-width: 100%; }
.registration-history-detail__decision-row > .status-badge { grid-column: -2; justify-self: end; }
.registration-history-detail .enrollment-billing-entry__header { flex-direction: row; align-items: center; }
.registration-history-detail .enrollment-billing-entry__header h4, .registration-history-detail__section .enrollment-billing-entry h4 { margin: 0; color: var(--app-text); font-size: 14px; overflow-wrap: anywhere; }
.registration-history-detail .registration-history-detail__decision-grid { display: grid; grid-column: 2 / -2; grid-template-columns: subgrid; gap: 16px; min-width: 0; align-items: center; }
.registration-history-detail .registration-history-detail__decision-grid > div { max-width: 100%; }
.registration-history-detail__events { padding-top: 12px; border-top: 1px solid var(--app-border); }
.registration-history-detail__events h5 { margin: 0 0 10px; color: var(--app-text-muted); font-size: 12px; font-weight: 500; }
.registration-history-detail__limit, .registration-history-detail dd small { display: block; color: var(--app-text-muted); font-size: 12px; line-height: 1.5; }
.registration-history-detail__section > .registration-history-detail__limit { margin: 0; }
.registration-history-detail .registration-history-code { display: inline-flex; width: fit-content; align-items: center; gap: 4px; max-width: 100%; }
.registration-history-detail .registration-history-code > span { min-width: 0; flex: 0 1 auto; overflow-wrap: anywhere; }
.registration-history-detail .registration-history-code__copy { width: 28px; min-height: 28px; height: 28px; padding: 0; flex: 0 0 28px; border: 0; background: transparent; color: var(--app-primary); box-shadow: none; }
.registration-history-detail .registration-history-code__copy:is(:hover,:focus-visible) { background: var(--app-primary-soft); }
.registration-history-detail .registration-history-code--wrap { display: inline; }
.registration-history-detail .registration-history-code__tail { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.registration-history-detail .registration-history-code__tail > span { overflow-wrap: normal; }
.registration-history-modal.registration-history-modal--detail.ui-modal { height: auto; max-height: min(92dvh, 920px, calc(100dvh - 56px)); }
.registration-history-modal--detail .ui-modal__body { padding-block: 16px; }
.registration-history-modal--detail .ui-modal__footer { padding-block: 12px; }
.registration-history-modal--detail .ui-modal__footer > button { display: inline-flex; align-items: center; gap: 8px; }
.registration-history-detail__section .enrollment-billing-entry { margin-top: 12px; }
.registration-history-detail .registration-history-detail__financial { display: block; }
.registration-history-detail .registration-history-detail__fee { display: block; }
.registration-history-detail__fee > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.registration-history-detail .registration-history-detail__fee dt { margin-bottom: 0; }
.registration-history-detail__phase { display: block; margin-top: 4px; color: var(--app-text-muted); font-size: 12px; line-height: 1.5; }
.registration-history-detail__financial .enrollment-billing-entry { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(0, 7fr); align-items: center; gap: 16px; }
.registration-history-detail__financial .enrollment-billing-entry > h4 { min-width: 0; }
.registration-history-detail .registration-history-detail__financial .registration-history-detail__financial-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); align-items: center; gap: 16px; }
.registration-history-detail__financial-grid > div { max-width: 100%; grid-row: 1; }
.registration-history-detail .registration-history-detail__financial-grid > [data-financial-column="1"] { grid-column: 1; }
.registration-history-detail .registration-history-detail__financial-grid > [data-financial-column="2"] { grid-column: 2; }
.registration-history-detail .registration-history-detail__financial-grid > [data-financial-column="3"] { grid-column: 3; }
.registration-history-detail .registration-history-detail__financial-grid > [data-financial-column="4"] { grid-column: 4; }
.registration-history-detail .registration-history-detail__financial-grid > [data-financial-column="5"] { grid-column: 5; }
.registration-history-detail .registration-history-detail__financial-grid > [data-financial-column="6"] { grid-column: 6; }
.registration-history-detail .registration-history-detail__financial-grid > [data-financial-column="7"] { grid-column: 7; }
@media (max-width: 600px) {
 .registration-history-detail .registration-history-detail__item .registration-history-detail__item-content .registration-history-detail__decision-row { grid-template-columns: minmax(0, 1fr) max-content; }
 .registration-history-detail__decision-row > .enrollment-billing-entry__header { grid-column: 1; grid-row: 1; }
 .registration-history-detail__decision-row > .status-badge { grid-column: 2; grid-row: 1; }
 .registration-history-detail .registration-history-detail__decision-grid { grid-column: 1 / -1; grid-row: 2; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
 .registration-history-detail__financial .enrollment-billing-entry { grid-template-columns: minmax(0, 1fr); }
 .registration-history-detail .registration-history-detail__financial .registration-history-detail__financial-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .registration-history-detail .registration-history-detail__financial .registration-history-detail__financial-grid > div { grid-column: auto; grid-row: auto; }
}
@media (max-width: 600px) {
 .registration-history-detail .registration-review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
 .registration-history-detail__student { flex-wrap: wrap; }
 .registration-history-detail__student h3 { font-size: 20px; }
 .registration-history-detail__decision-row { gap: 12px; }
 .registration-history-detail .registration-history-detail__decision-grid { gap: 10px 16px; }
 .registration-history-detail__decision-row > .status-badge { max-width: 110px; white-space: normal; text-align: center; }
 .registration-history-detail .registration-history-detail__section, .registration-history-detail .enrollment-billing-entry { padding: 12px; }
}

.registration-history-enrollment { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.registration-history-enrollment > strong { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 760px) {
  .existing-enrollment-modal .selected-student-card { grid-template-columns: 42px minmax(0, 1fr) auto; }
  .existing-enrollment-modal .selected-student-card .ui-button { grid-column: 1 / -1; width: 100%; }
}
@media (max-width: 600px) {
  .existing-enrollment-modal .ui-modal__footer { grid-template-columns: minmax(0, 1fr); }
}
/* Desktop Light only. Base geometry, controls, avatar, rows and pagination come from Students. */
.enrollment-waitlist-modal { height: min(680px, calc(100dvh - 56px)); }
.registration-responsive-table.students-table { width: 100%; min-width: 0; table-layout: fixed; }
.registration-responsive-label { display: none; }
.registration-responsive-table th, .registration-responsive-table td { white-space: normal; overflow-wrap: anywhere; }
.enrollment-registration-banner > svg { flex-shrink: 0; color: var(--app-text-muted); }
.registration-responsive-table .enrollment-section-action.ui-button { width: auto; min-width: 0; min-height: 32px; padding: 6px 10px; font-size: 12px; white-space: nowrap; }
.registration-history-student-link { border: 0; padding: 0; background: transparent; color: inherit; font: inherit; text-align: left; min-width: 0; overflow-wrap: anywhere; cursor: pointer; }
.waitlist-activation-modal .registration-grid { align-items: start; }
.waitlist-activation-modal .enrollment-billing-controls { align-items: stretch; }
.ui-modal__body.waitlist-activation-modal { display: flex; flex-direction: column; gap: 16px; }
.waitlist-activation-modal > * { flex-shrink: 0; }
.waitlist-activation-modal .class-assignment-options { max-height: none; overflow: visible; margin: 0; }
.waitlist-activation-modal .enrollment-billing-controls .enrollment-discount-toggle { align-self: stretch; justify-self: stretch; }
.waitlist-activation-modal .enrollment-discount-toggle input[type="checkbox"] { min-height: 18px; height: 18px; padding: 0; }
.waitlist-activation-modal .enrollment-discount-toggle { min-height: 0; padding: 8px 0; border: 0; background: transparent; }
.waitlist-activation-modal .enrollment-billing-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 600px) {
  .registration-pending-modal .students-table-wrap { display: block; min-width: 0; }
  .registration-responsive-table.students-table { display: block; }
  .registration-responsive-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .registration-responsive-table tbody { display: grid; gap: 12px; }
  .registration-responsive-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 12px; border: 1px solid var(--app-border); border-radius: var(--app-radius-control); background: var(--app-surface); }
  :is(.registration-pending-modal, .registration-history-modal) .registration-responsive-table td { width: auto; height: auto; padding: 0; border: 0; background: transparent; color: var(--app-text); font-size: 12px; }
  .registration-pending-modal .registration-responsive-table .ui-clickable-table-row:is(:hover, :focus-visible) { background: var(--app-surface-muted); }
  .registration-pending-modal .registration-responsive-table .ui-clickable-table-row:is(:hover, :focus-visible) > td { background: transparent !important; }
  .registration-responsive-table td[colspan] { grid-column: 1 / -1; }
  .registration-responsive-table .student-identity { min-width: 0; }
  .registration-responsive-table .student-identity strong { overflow-wrap: anywhere; color: var(--app-text); }
  .registration-history-modal .registration-history-table--outcomes tbody tr:is(:hover, :focus-visible) { background: var(--app-surface-muted); }
  .registration-history-modal .registration-history-table--outcomes .ui-clickable-table-row:is(:hover, :focus-visible) > td { background: transparent; }
  .registration-history-modal .registration-history-table--outcomes .ui-clickable-table-row:focus-visible { outline: 2px solid var(--app-focus); outline-offset: -2px; }
  .registration-responsive-label { display: block; margin-bottom: 4px; color: var(--app-text-muted); font-size: 11px; }
}
@media (min-width: 1101px) {
  .enrollment-page--desktop-light > .page-heading { align-items: flex-start; }
  .enrollment-page--desktop-light > .page-heading .page-heading__actions { padding-top: 4px; }
  .enrollment-page--desktop-light .students-table { min-width: 0; table-layout: fixed; }
  .enrollment-page--desktop-light .students-table th:first-child { width: 32%; }
  .enrollment-page--desktop-light .students-table th:nth-child(2) { width: 19%; }
  .enrollment-page--desktop-light .students-table th:nth-child(3) { width: 18%; }
  .enrollment-page--desktop-light .students-table th:nth-child(4) { width: 14%; }
  .enrollment-page--desktop-light .students-table th:last-child { width: 17%; }
  .enrollment-page--desktop-light .student-identity { min-width: 0; }
  .enrollment-page--desktop-light .student-identity strong { overflow-wrap: anywhere; }
  .enrollment-page--desktop-light .students-table td { overflow-wrap: anywhere; }
  .enrollment-page--desktop-light .students-table .status-badge--waitlisted { width: auto; min-width: 80px; white-space: nowrap; background: var(--app-primary-soft); color: var(--app-primary); }
  .enrollment-page--desktop-light .status-badge--pending { background: var(--app-surface-muted); color: var(--app-text-muted); }
  .enrollment-page--desktop-light .status-badge--suspended { background: var(--app-danger-soft); color: var(--app-danger-text); }
  .enrollment-page--desktop-light .status-badge--expired { background: var(--app-surface-muted); color: var(--app-text-muted); }
  .enrollment-page--desktop-light .enrollments-context { display: flex; align-items: center; gap: 12px; padding: 8px 18px; color: var(--app-text-muted); font-size: 12px; }
  .enrollment-page--desktop-light .enrollments-list-panel .filter-dropdown { flex: 0 0 176px; width: 176px; }
  .enrollment-page--desktop-light .enrollments-list-panel .filter-dropdown:has([aria-label="Filtrar matrículas por modalidade"]) { flex: 0 0 216px; width: 216px; }
  .enrollment-page--desktop-light .enrollments-list-panel .filter-dropdown:has([aria-label="Ordenar por"]) { flex: 0 0 190px; width: 190px; }
  .enrollment-page--desktop-light .enrollments-list-panel .search-box { flex: 0 0 clamp(340px, 28vw, 420px); width: clamp(340px, 28vw, 420px); min-width: 340px; }
  .enrollment-page--desktop-light .enrollments-list-panel .results-count { margin-left: auto; }
  .enrollment-page--desktop-light .enrollment-copy-link { background: var(--app-surface); border-color: var(--app-border); }
  .enrollment-page--desktop-light .enrollment-copy-link svg { color: var(--app-primary); }
  .enrollment-page--desktop-light .enrollment-copy-link:is(:hover, :focus-visible) { background: var(--app-surface); border-color: var(--app-primary); box-shadow: none; }
  .enrollment-page--desktop-light .enrollment-copy-link:focus-visible { outline: 2px solid var(--app-focus); outline-offset: 2px; }
  .enrollment-return { align-self: flex-start; }
  .registration-history-modal.ui-modal { width: 1040px; max-width: calc(100vw - 48px); height: min(680px, calc(100dvh - 64px)); max-height: calc(100dvh - 64px); }
  .registration-history-modal .ui-modal__header { flex: 0 0 auto; }
  .registration-history-modal .registration-history-modal__body { display: flex; flex: 1; min-height: 0; flex-direction: column; overflow: hidden; }
  .registration-history-modal__subtitle { flex: 0 0 auto; margin: 0 0 18px; color: var(--app-text-muted); font-size: 13px; }
  .registration-history-modal .students-toolbar { flex: 0 0 auto; padding: 0 0 18px; border: 0; }
  .registration-history-modal .students-toolbar .filter-dropdown { flex: 0 0 156px; width: 156px; }
  .registration-history-modal .students-toolbar .search-box { flex: 0 0 clamp(360px, 28vw, 420px); width: clamp(360px, 28vw, 420px); }
  .registration-history-modal .students-toolbar .filter-dropdown:has([aria-label="Filtrar histórico por modalidade"]) { flex: 0 0 216px; width: 216px; }
  :is(.registration-history-modal__scroll, .registration-pending-scroll) { --history-scroll-thumb: color-mix(in srgb, var(--app-text-muted) 42%, transparent); flex: 1; min-height: 0; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--history-scroll-thumb) transparent; border-radius: var(--app-radius-control); }
  :is(.registration-history-modal__scroll, .registration-pending-scroll):is(:hover, :focus-visible) { --history-scroll-thumb: color-mix(in srgb, var(--app-text-muted) 60%, transparent); }
  @supports selector(::-webkit-scrollbar) {
    /* Let WebKit styling own geometry/buttons instead of standard UA styling. */
    :is(.registration-history-modal__scroll, .registration-pending-scroll) { scrollbar-width: auto; scrollbar-color: auto; }
  }
  :is(.registration-history-modal__scroll, .registration-pending-scroll)::-webkit-scrollbar { width: 6px; height: 6px; }
  :is(.registration-history-modal__scroll, .registration-pending-scroll)::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
  :is(.registration-history-modal__scroll, .registration-pending-scroll)::-webkit-scrollbar-track { background: transparent; }
  :is(.registration-history-modal__scroll, .registration-pending-scroll)::-webkit-scrollbar-thumb { background: var(--history-scroll-thumb); border-radius: 999px; }
  :is(.registration-history-modal__scroll, .registration-pending-scroll)::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--app-text-muted) 68%, transparent); }
  :is(.registration-history-modal__scroll, .registration-pending-scroll)::-webkit-scrollbar-corner { background: transparent; }
  :is(.registration-history-modal__scroll, .registration-pending-scroll):focus-visible { outline: 2px solid var(--app-focus); outline-offset: 2px; }
  .registration-history-modal .registration-history-table { min-width: 0; width: 100%; table-layout: fixed; }
  .registration-history-table thead { position: sticky; top: 0; z-index: 1; background: var(--app-surface-muted); }
  .registration-history-modal .registration-history-table th, .registration-history-modal .registration-history-table td { padding: 12px 8px; overflow-wrap: anywhere; font-size: 11px; }
  .registration-history-modal .registration-history-table th { white-space: nowrap; }
  .registration-history-table th:first-child { width: 25%; }
  .registration-history-table th:nth-child(2) { width: 25%; }
  .registration-history-table th:nth-child(3), .registration-history-table th:nth-child(4) { width: 15%; }
  .registration-history-table th:last-child { width: 20%; }
  .registration-history-table--outcomes th:first-child { width: 18%; }
  .registration-history-table--outcomes th:nth-child(2) { width: 14%; }
  .registration-history-table--outcomes th:nth-child(3) { width: 26%; }
  .registration-history-table--outcomes th:nth-child(4), .registration-history-table--outcomes th:nth-child(5), .registration-history-table--outcomes th:last-child { width: 14%; }
  .registration-history-modal .registration-history-table--outcomes td:nth-child(3) { white-space: normal; }
  .registration-history-table--outcomes .registration-history-code > .ui-button:first-child { min-width: 0; padding: 0; white-space: normal; overflow-wrap: anywhere; text-align: left; }
  .registration-history-modal .registration-history-table td:nth-child(3), .registration-history-modal .registration-history-table td:nth-child(4) { white-space: nowrap; }
  .registration-history-table .student-identity { gap: 8px; min-width: 0; }
  .registration-history-table .student-identity strong { min-width: 0; overflow-wrap: anywhere; }
  .registration-history-modal .registration-history-table .student-identity strong { font-size: 11px; }
  .registration-history-modal .status-badge { width: auto; min-width: 0; padding: 5px 8px; font-size: 10px; }
  .registration-history-code { display: inline-flex; align-items: center; gap: 4px; max-width: 100%; }
  .registration-history-code > span { min-width: 0; }
  .registration-history-modal .registration-history-code__copy { position: relative; flex: 0 0 24px; width: 24px; min-height: 24px; height: 24px; padding: 0; color: var(--app-primary); box-shadow: none; }
  .registration-history-modal .registration-history-code__copy:is(:hover, :focus-visible) { background: var(--app-primary-soft); box-shadow: none; }
  .registration-history-modal__loading { display: grid; gap: 12px; padding: 14px 8px; }
  .registration-history-modal__sentinel { height: 1px; }
  .registration-history-modal__sentinel, .registration-history-modal__loading, .registration-history-modal__scroll > .inline-alert { overflow-anchor: none; }
}

.enrollment-registration-banner__count { color: var(--meynt-navy); }
:root[data-theme='dark'] .enrollment-registration-banner__count { color: var(--app-danger-text); }
:root .enrollment-registration-banner__count { min-width: 28px; height: 28px; padding: 0 8px; background: color-mix(in srgb, var(--app-danger) 8%, var(--meynt-white)); color: var(--app-danger); font-weight: 600; border: 0; outline: none; box-shadow: none; }
  :root[data-theme='dark'] .enrollment-registration-banner__count { background: var(--app-danger-soft); }
.enrollment-activation-modal.ui-modal { height: min(760px, calc(100dvh - 56px)); }
.enrollment-activation-modal .enrollment-billing-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; padding: 14px; border: 1px solid var(--app-border); border-radius: var(--app-radius-control); }
.enrollment-activation-modal .enrollment-billing-summary > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; min-height: 0; padding: 0; border: 0; background: transparent; }
.enrollment-activation-modal .form-section { gap: 10px; padding-bottom: 12px; }
.enrollment-activation-modal .enrollment-discount-toggle { min-height: 32px; padding: 4px 0; }
.enrollment-activation-modal .enrollment-billing-summary strong { font-size: 13px; text-align: right; }
.enrollment-activation-modal .enrollment-activation-total { grid-column: 1 / -1; }
.enrollment-activation-modal .enrollment-billing-summary__total.enrollment-activation-total { border-top: 1px solid var(--app-border); border-radius: 0; padding-top: 10px; }
.enrollment-activation-modal .enrollment-billing-summary small { color: var(--app-text-muted); font-size: 11px; }
@media (max-width: 600px) {
  .enrollment-activation-modal .enrollment-billing-summary { grid-template-columns: 1fr; }
}

.enrollment-activation-modal .ui-modal__header { padding-bottom: 12px; }
.enrollment-activation-modal .ui-modal__body.waitlist-activation-modal { padding-top: 12px; gap: 12px; }
.enrollment-activation-modal .waitlist-activation-modal .enrollment-discount-toggle { border: 0; background: transparent; box-shadow: none; min-height: 0; padding: 4px 0; }
.enrollment-activation-modal .enrollment-discount-toggle:focus-within { box-shadow: none; }
.enrollment-activation-modal .enrollment-discount-toggle input:focus-visible { outline: 2px solid var(--app-focus); outline-offset: 2px; }
.enrollment-activation-modal .enrollment-billing-summary__total { border-color: var(--app-border) !important; background: transparent !important; }
.enrollment-activation-modal .enrollment-billing-summary__total strong { color: var(--app-primary); }

.enrollment-activation-modal .enrollment-activation-financial-row .enrollment-discount-toggle { align-items: flex-start; }
.enrollment-activation-financial-row .enrollment-discount-toggle input { flex-shrink: 0; margin-top: 2px; }
.enrollment-activation-financial-row .enrollment-discount-toggle small { font-weight: 400; color: var(--app-text-muted); font-size: 11px; line-height: 1.5; }

.enrollment-activation-student { margin: 0; color: var(--app-text-muted); font-size: 13px; line-height: 1.5; }

@media (max-width: 1100px) {
  .enrollment-registration-banner { flex-wrap: wrap; gap: 12px; padding: 16px; }
  .enrollment-registration-banner__actions { flex-wrap: wrap; width: 100%; }
  .enrollment-registration-banner__text h3 { font-size: 16px; }
}

/* Enrollment-only focus uses the existing Meynt tokens, including portal menus. */
.existing-enrollment-modal .filter-dropdown__trigger:focus-visible,
.existing-enrollment-modal .filter-dropdown--open .filter-dropdown__trigger { border-color: var(--app-focus); box-shadow: 0 0 0 3px var(--app-focus-ring); outline: none; }

.existing-enrollment-modal .enrollment-complementary-fields .field > strong { color: var(--app-text); }
.existing-enrollment-modal .enrollment-complementary-fields .field > small { color: var(--app-text-muted); }
.existing-enrollment-modal .selected-student-card .enrollment-student-school { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.4; }

/* Compact enrollment summary; all overrides remain scoped to this modal. */
.existing-enrollment-modal .selected-student-card > div { gap: 4px; }
.existing-enrollment-modal .enrollment-student-meta { display: flex; flex-wrap: wrap; gap: 2px 16px; }
.existing-enrollment-modal .enrollment-student-meta small { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.5; overflow-wrap: anywhere; }
.existing-enrollment-modal .enrollment-complementary-fields { gap: 12px; margin-top: 16px; }
.existing-enrollment-modal .enrollment-preview-notice { margin-top: 12px; padding: 8px 12px; color: var(--app-text-muted); font-size: 12px; }
@media (max-width: 760px) {
  .existing-enrollment-modal .enrollment-student-meta { display: grid; gap: 2px; }
}
/* Only the opt-in Desktop Light review presentation; shared Modal owns locking/focus. */
@media (min-width: 1101px) {
  .registration-review-modal.ui-modal { width: 1040px; max-width: calc(100vw - 48px); max-height: calc(100dvh - 48px); }
  .registration-review-modal .ui-modal__header { gap: 16px; padding: 24px 28px 18px; border-bottom: 0; }
  .registration-review-modal .ui-modal__heading { flex: 1; }
  .registration-review-modal .ui-modal__eyebrow { color: var(--app-primary); font-size: 12px; margin-bottom: 12px; }
  .registration-review-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
  .registration-review-heading > span { font-size: 26px; line-height: 1.2; font-weight: 650; }
  .registration-review-heading .registration-history-code { font-size: 13px; font-weight: 600; }
  .registration-review-heading .registration-history-code > span { padding: 5px 10px; background: var(--app-primary-soft); border-radius: var(--app-radius-control); }
  .registration-review-modal .registration-history-code__copy { position: relative; width: 28px; height: 28px; min-height: 28px; padding: 0; color: var(--app-primary); box-shadow: none; }
  .registration-review-modal .registration-history-code__copy:is(:hover, :focus-visible) { background: var(--app-primary-soft); box-shadow: none; }
  .registration-review-heading small { font-size: 13px; font-weight: 400; color: var(--app-text-muted); }
  .registration-review-pending { align-self: center; padding: 6px 14px; border-radius: 999px; background: var(--app-primary-soft); color: var(--app-primary); font-size: 12px; font-weight: 500; white-space: nowrap; }
  .registration-review-modal .public-approval-modal__body { padding: 0 28px; overflow-y: auto; min-height: 0; }
  .registration-review-block { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-top: 1px solid var(--app-border); }
  .registration-review-block__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--app-primary); background: var(--app-primary-soft); }
  .registration-review-modal .registration-review-block h3 { margin: 0 0 10px; padding: 0; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.5; letter-spacing: normal; color: var(--app-text); }
  .registration-review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 0; margin: 0; }
  .registration-review-grid > div { padding-inline: 14px; border-left: 1px solid var(--app-border); min-width: 0; }
  .registration-review-grid > div:first-child { padding-left: 0; border: 0; }
  .registration-review-grid dt { margin-bottom: 6px; font-size: 12px; color: var(--app-text-muted); }
  .registration-review-grid dd { margin: 0; font-size: 13px; line-height: 1.4; color: var(--app-text); overflow-wrap: anywhere; }
  .registration-review-grid dd > span { display: block; }
  .registration-review-grid--guardian { grid-template-columns: 1.25fr .7fr 1fr 1.3fr; }
  .registration-review-grid__wide { grid-column: 1 / -1; padding-left: 0 !important; border-left: 0 !important; }
  .registration-review-contacts { margin: 0; padding-left: 20px; font-size: 13px; line-height: 1.6; color: var(--app-text); }
  .registration-review-contacts li { padding-left: 4px; overflow-wrap: anywhere; }
  .registration-review-block p { margin: 0; color: var(--app-text-muted); font-size: 13px; }
  .registration-review-modal .ui-modal__footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 28px; position: static; background: var(--app-surface); }
  .registration-review-guidance { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--app-text-muted); font-size: 11px; line-height: 1.5; max-width: 285px; }
  .registration-review-guidance svg { flex-shrink: 0; }
  .registration-review-footer-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
  .registration-review-modal .registration-review-reject { background: var(--app-surface); color: var(--app-danger-text); border-color: var(--app-danger-text); }
  .registration-review-modal .registration-review-reject:hover:not(:disabled) { background: var(--app-danger-soft); }
  .registration-review-modal .public-approval-review .eyebrow { color: var(--app-text-muted); }
  .registration-review-modal .public-approval-benefit { color: var(--app-primary); background: var(--app-primary-soft); }
  .registration-review-modal .public-approval-decision-note { color: var(--app-text-muted); background: var(--app-surface-muted); border-color: var(--app-border); }
}

@media (min-width: 1101px) {
  .registration-pending-modal.ui-modal { width: 1040px; height: min(680px, calc(100dvh - 48px)); }
  .registration-pending-modal .ui-modal__body { display: flex; flex: 1; overflow: hidden; }
  .registration-pending-view { display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; padding-bottom: 24px; }
  .registration-pending-view .students-toolbar { gap: 16px; padding: 14px 0 18px; flex-shrink: 0; }
  .registration-pending-view .students-toolbar .search-box { flex: 0 1 clamp(360px, 28vw, 420px); width: clamp(360px, 28vw, 420px); min-width: 300px; }
  .registration-pending-view .students-toolbar .filter-dropdown { flex: 0 0 216px; width: 216px; }
  .registration-pending-view .results-count { margin-left: auto; text-align: right; }
  .registration-pending-scroll { flex: 1; min-height: 0; overflow-y: auto; padding-bottom: 12px; }
  .registration-pending-view .students-table { width: 100%; min-width: 0; table-layout: fixed; }
  .registration-pending-view .students-table td { overflow-wrap: anywhere; }
  .registration-pending-view .students-table .status-badge { width: auto; padding-inline: 10px; white-space: nowrap; }
  .registration-pending-view .student-identity strong { min-width: 0; white-space: normal; overflow: visible; text-overflow: clip; }
  .registration-pending-view th { white-space: nowrap; }
  .registration-pending-view td:nth-child(3) { white-space: nowrap; }
  .registration-pending-view .student-identity { display: flex; align-items: center; gap: 12px; }
}

@media (min-width: 1101px) {
  .filter-dropdown__menu.enrollments-filter-menu.registration-pending-filter-menu .filter-dropdown__option:is(:hover, :focus-visible) { color: var(--app-text); background: var(--app-primary-soft); outline-color: var(--app-focus); }
  .filter-dropdown__menu.enrollments-filter-menu.registration-pending-filter-menu .filter-dropdown__option svg { color: var(--app-primary); }
}

@media (min-width: 1101px) {
  .registration-review-modal .ui-modal__header, .registration-review-modal .ui-modal__footer { flex: 0 0 auto; }
  .registration-review-modal .public-approval-modal__body { flex: 1 1 auto; overflow-x: hidden; }
  .registration-review-modal .registration-review-grid--guardian { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .registration-review-modal .registration-review-grid > div:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
  .registration-review-requested { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
  .registration-review-requested li { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; border: 1px solid var(--app-border); border-radius: var(--app-radius-control); min-width: 0; }
  .registration-review-requested strong { color: var(--app-text); font-size: 13px; overflow-wrap: anywhere; }
}

/* Compact section cards reuse the student detail surface/border/control tokens. */
@media (min-width: 1101px) {
  .registration-review-modal .registration-review-details { display: grid; gap: 14px; padding-bottom: 14px; }
  .registration-review-modal .registration-review-block { padding: 16px; border: 1px solid var(--app-border); border-radius: var(--app-radius-control); background: var(--app-surface); }
  .registration-review-modal .registration-review-grid,
  .registration-review-modal .registration-review-grid--guardian { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .registration-review-modal .registration-review-grid > div { padding: 0; border: 0; }
  .registration-review-modal .registration-review-grid__wide { grid-column: 1 / -1; }
  .registration-review-modal .registration-review-contacts { display: grid; gap: 6px; }
  .registration-review-modal .public-approval-modalities { padding: 16px; border: 1px solid var(--app-border); border-radius: var(--app-radius-control); background: var(--app-surface); }
  .registration-review-modal .public-approval-modalities .enrollment-billing-entries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .registration-review-modal .enrollment-billing-entry { min-width: 0; }
  .registration-review-modal .enrollment-billing-entry__header { flex-wrap: wrap; gap: 12px; }
  .registration-review-modal .public-approval-decision { max-width: 100%; }
}

/* Keep the review header distinct without changing the pending-list modal. */
@media (min-width: 1101px) {
  .registration-review-modal:not(.registration-pending-modal) .ui-modal__header { padding-block: 16px; border-bottom: 1px solid var(--app-border); }
  .registration-review-modal:not(.registration-pending-modal) .public-approval-modal__body { padding-top: 16px; }
  .registration-review-modal:not(.registration-pending-modal) .ui-modal__heading { min-width: 0; }
  .registration-review-heading { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 6px; align-items: center; }
  .registration-review-identity { grid-column: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; }
  .registration-review-student-name { min-width: 0; max-width: 100%; font-size: 26px; line-height: 1.2; font-weight: 650; overflow-wrap: anywhere; }
  .registration-review-heading small { grid-column: 1; }
}

/* Compact informational cards; payload rendering and the compact-screen view stay unchanged. */
@media (min-width: 1101px) {
  .registration-review-modal .registration-review-details { gap: 12px; }
  .registration-review-modal .registration-review-block { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 12px 16px; }
  .registration-review-modal .registration-review-block .registration-review-block__icon { width: 36px; height: 36px; }
  .registration-review-modal .registration-review-block .registration-review-block__icon svg { width: 18px; height: 18px; }
  .registration-review-modal .registration-review-block > div { min-width: 0; }
  .registration-review-modal .registration-review-block:nth-child(-n + 3) .registration-review-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 16px; }
  .registration-review-modal .registration-review-block .registration-review-grid dt { margin-bottom: 4px; font-weight: 400; }
  .registration-review-modal .registration-review-block .registration-review-grid dd { font-weight: 400; }
}

/* Center section icons against the complete card and keep free-text addresses full width. */
@media (min-width: 1101px) {
  .registration-review-modal .registration-review-block__icon { align-self: center; }
  .registration-review-modal .registration-review-block > div { min-width: 0; width: 100%; }
  .registration-review-modal .registration-review-grid--guardian { width: 100%; }
  .registration-review-modal .registration-review-grid--guardian > .registration-review-grid__wide { grid-column: 1 / -1; justify-self: stretch; width: 100%; max-width: none; }
  .registration-review-modal .registration-review-grid--guardian > .registration-review-grid__wide dd { display: block; width: 100%; max-width: none; white-space: normal; overflow-wrap: anywhere; }
}

@media (min-width: 1101px) {
  .registration-review-emergency-contacts { display: grid; gap: 12px; min-width: 0; }
  .registration-review-modal .registration-review-grid--emergency { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 16px; }
  .registration-review-emergency-contacts > dl + dl { padding-top: 12px; border-top: 1px solid var(--app-border); }
}

/* Review-specific presentation: existing controls and financial calculations are unchanged. */
.public-approval-modal .registration-review-student-note { display: grid; gap: 4px; padding: 12px 16px; border: 1px solid var(--app-border); border-radius: var(--app-radius-control); background: var(--app-surface-muted); color: var(--app-text-muted); }
.registration-review-student-note strong { color: var(--app-text); font-size: 13px; font-weight: 600; }
.public-approval-modal .registration-review-modalities { display: grid; gap: 16px; min-width: 0; }
.registration-review-modalities .public-approval-billing__heading { display: grid; gap: 4px; margin: 0; }
.registration-review-modalities .public-approval-billing__heading .eyebrow { color: var(--app-text); font-weight: 600; }
.registration-review-modalities .public-approval-billing__heading > span:last-child { color: var(--app-text-muted); line-height: 1.5; }
.registration-review-modalities .enrollment-billing-entries { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 16px; }
.registration-review-modalities .enrollment-billing-entry { min-width: 0; align-content: start; gap: 12px; padding: 16px; border-color: var(--app-border); border-radius: var(--app-radius-control); background: var(--app-surface); }
.registration-review-modalities .enrollment-billing-entry__header { display: grid; gap: 12px; align-items: start; }
.registration-review-modalities .enrollment-billing-entry__header strong { color: var(--app-text); font-size: 16px; font-weight: 600; }
.registration-review-modalities .enrollment-billing-entry__header small { color: var(--app-text-muted); }
.registration-review-modalities .public-approval-decision { width: 100%; max-width: none; min-width: 0; }
.registration-review-modalities .public-approval-decision select { width: 100%; min-width: 0; }
.registration-review-modalities .public-approval-benefit { padding: 4px 8px; border-radius: var(--app-radius-control); background: var(--app-surface-muted); color: var(--app-text-muted); font-size: 11px; font-weight: 500; line-height: 1.4; text-decoration: none; }
.registration-review-modalities .public-approval-benefit svg { flex-shrink: 0; color: var(--app-primary); }
.registration-review-modalities .enrollment-class-choice { padding: 12px 0 0; border-color: var(--app-border); }
:is(.registration-review-modalities, .registration-class-modal) .class-assignment-option { padding: 12px; border-color: var(--app-border); border-radius: var(--app-radius-control); background: var(--app-surface); color: var(--app-text); box-shadow: none; }
:is(.registration-review-modalities, .registration-class-modal) .class-assignment-option--selected { border-color: var(--app-primary); background: var(--app-primary-soft); box-shadow: none; }
:is(.registration-review-modalities, .registration-class-modal) .class-assignment-option:is(:hover, :focus-visible) { border-color: var(--app-primary); box-shadow: 0 0 0 2px var(--app-primary-soft); }
:is(.registration-review-modalities, .registration-class-modal) .class-assignment-option:focus-visible { outline: 2px solid var(--app-focus); outline-offset: 2px; }
:is(.registration-review-modalities, .registration-class-modal) .class-assignment-option__heading { flex-wrap: wrap; gap: 8px; }
:is(.registration-review-modalities, .registration-class-modal) .class-assignment-option__heading strong { color: var(--app-text); overflow-wrap: anywhere; }
:is(.registration-review-modalities, .registration-class-modal) .class-assignment-option__badge--selected { background: var(--app-primary-soft); color: var(--app-primary); }
:is(.registration-review-modalities, .registration-class-modal) .class-assignment-option__support { overflow-wrap: anywhere; }
.registration-review-modalities .public-approval-billing__heading--terms strong { font-size: 13px; font-weight: 600; color: var(--app-text); }
.registration-review-modalities .enrollment-billing-controls { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.registration-review-modalities .enrollment-discount-toggle { min-height: 0; padding: 8px 0; border: 0; background: transparent; }
.registration-review-modalities .enrollment-discount-toggle input { accent-color: var(--app-primary); }
.registration-review-modalities .enrollment-discount-toggle strong { color: var(--app-text); font-weight: 500; }
.registration-review-modalities .enrollment-discount-toggle small { color: var(--app-text-muted); font-size: 11px; }
.registration-review-modalities .enrollment-discount-field { max-width: none; }
.registration-review-modalities .enrollment-billing-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-top: 12px; border-top: 1px solid var(--app-border); }
.registration-review-modalities .enrollment-billing-summary > div { padding: 8px; border: 0; border-radius: var(--app-radius-control); background: var(--app-surface-muted); }
.registration-review-modalities .enrollment-billing-summary span { color: var(--app-text-muted); }
.registration-review-modalities .enrollment-billing-summary strong { color: var(--app-text); font-size: 14px; font-weight: 600; }
.registration-review-modalities .enrollment-billing-summary .enrollment-billing-summary__total { border-color: transparent !important; background: var(--app-primary-soft) !important; }
.registration-review-modalities .enrollment-billing-summary__total strong { color: var(--app-primary); }
@media (min-width: 640px) {
  .registration-review-modalities .enrollment-billing-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1101px) {
  .public-approval-modal .registration-review-modalities .enrollment-billing-entries { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}

.public-approval-modal .registration-review-student-note { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; }
.registration-review-student-note svg { flex-shrink: 0; color: var(--app-primary); margin-top: 1px; }
.registration-class-picker, .registration-class-single { display: grid; gap: 8px; min-width: 0; }
.registration-class-picker .filter-dropdown { width: 100%; min-width: 0; }
.registration-class-picker .filter-dropdown__trigger { width: 100%; }
.registration-class-picker > small, .registration-class-empty { color: var(--app-text-muted); font-size: 12px; margin: 0; }
.registration-class-details { display: grid; gap: 4px; min-width: 0; text-align: left; overflow-wrap: anywhere; }
.registration-class-details strong { color: var(--app-text); font-size: 13px; font-weight: 600; }
.registration-class-details small, .registration-class-details > span { color: var(--app-text-muted); font-size: 12px; line-height: 1.4; }
.registration-class-details em { justify-self: start; }
.registration-class-selected .registration-class-details > strong { display: none; }
.registration-class-single .ui-button { justify-self: start; }
.registration-class-menu .filter-dropdown__option { align-items: flex-start; white-space: normal; }
.registration-class-menu .filter-dropdown__option > span { min-width: 0; flex: 1; }
.registration-class-menu .filter-dropdown__option > svg { flex-shrink: 0; }

/* Meynt controls inside this review, including dropdown menus rendered in a portal. */
.registration-review-modalities .enrollment-billing-entry__header { grid-template-columns: minmax(0, 1fr) minmax(0, 190px); align-items: center; }
.registration-review-modalities .filter-dropdown__trigger { min-height: 40px; min-width: 0; padding: 8px 12px; border: 1px solid var(--app-border); border-radius: var(--app-radius-control); background: var(--app-surface); color: var(--app-text); font-size: 13px; font-weight: 400; box-shadow: none; transform: none; }
.registration-review-modalities .filter-dropdown__trigger > span { flex: 1; text-align: left; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.registration-review-modalities .filter-dropdown--open .filter-dropdown__trigger { border-color: var(--app-primary); box-shadow: 0 0 0 2px var(--app-primary-soft); }
.registration-review-modalities .filter-dropdown__trigger:focus:not(:focus-visible) { outline: none; }
.registration-review-modalities .filter-dropdown__trigger:focus-visible,
.registration-review-modalities input:focus-visible { outline: 2px solid var(--app-focus); outline-offset: 2px; box-shadow: none; }
.registration-review-modalities input:focus:not(:focus-visible) { outline: none; box-shadow: none; border-color: var(--app-primary); }
.filter-dropdown__menu:is(.registration-class-menu, .registration-decision-menu) { border-color: var(--app-border); background: var(--app-surface); border-radius: var(--app-radius-control); }
.filter-dropdown__menu:is(.registration-class-menu, .registration-decision-menu) .filter-dropdown__option { padding: 10px 12px; color: var(--app-text); font-weight: 400; }
.filter-dropdown__menu:is(.registration-class-menu, .registration-decision-menu) .filter-dropdown__option:is(:hover, :focus-visible),
.filter-dropdown__menu:is(.registration-class-menu, .registration-decision-menu) .filter-dropdown__option--active { background: var(--app-primary-soft); color: var(--app-text); }
.filter-dropdown__menu:is(.registration-class-menu, .registration-decision-menu) .filter-dropdown__option--active > svg { color: var(--app-primary); }
.filter-dropdown__menu:is(.registration-class-menu, .registration-decision-menu) .filter-dropdown__option:focus-visible { outline: 2px solid var(--app-focus); outline-offset: -2px; }
.registration-review-field-error { color: var(--app-danger-text); font-size: 11px; line-height: 1.4; }
.registration-review-summary .registration-review-summary-item { display: grid; gap: 4px; padding-block: 8px; }
.registration-review-summary .registration-review-summary-item > span,
.registration-review-summary .registration-review-summary-item > small { display: flex; justify-content: space-between; gap: 12px; }
.registration-review-summary .registration-review-summary-item > small { color: var(--app-text-muted); font-size: 12px; }
.registration-review-summary > p { margin: 0; color: var(--app-text-muted); font-size: 12px; }
.public-approval-modal .registration-review-summary { background: var(--app-surface); border-color: var(--app-border); color: var(--app-text); }
.registration-review-summary > div > strong { color: var(--app-text); }
.registration-review-summary footer { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding-top: 12px; border-top: 1px solid var(--app-border); }
.registration-review-summary footer > span { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; color: var(--app-text-muted); }
.registration-review-summary footer strong { color: var(--app-text); overflow-wrap: anywhere; }
.registration-review-summary footer > span:last-child { padding-top: 12px; border-top: 1px solid var(--app-border); }
.registration-review-summary footer > span:last-child strong { color: var(--app-primary); }
@media (max-width: 639px) {
  .registration-review-modalities .enrollment-billing-entry__header { grid-template-columns: minmax(0, 1fr); }
}

/* Keep the scroll content clear of the fixed action footer. */
.public-approval-modal .public-approval-review { padding-bottom: 24px; }
.registration-class-trigger { width: 100%; min-width: 0; text-align: left; justify-content: flex-start; }
.registration-class-trigger > span { overflow-wrap: anywhere; }
.registration-review-modalities .enrollment-discount-toggle { box-shadow: none; }
.registration-review-modalities .enrollment-discount-toggle > input[type='checkbox'] {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--app-border);
  border-radius: 4px;
  background: var(--app-surface);
  display: grid;
  place-content: center;
  cursor: pointer;
}
.registration-review-modalities .enrollment-discount-toggle > input[type='checkbox']:checked {
  border-color: var(--app-primary);
  background: var(--app-primary);
}
.registration-review-modalities .enrollment-discount-toggle > input[type='checkbox']:checked::before {
  content: '';
  width: 8px;
  height: 4px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: translateY(-1px) rotate(-45deg);
}
.registration-review-modalities .enrollment-discount-toggle > input[type='checkbox']:focus-visible,
.registration-class-trigger:focus-visible {
  outline: 2px solid var(--app-focus);
  outline-offset: 2px;
}

/* The label never owns focus feedback; the checkbox does. */
.public-approval-modal .registration-review-modalities .enrollment-discount-toggle:focus-within {
  border: 0;
  outline: none;
  box-shadow: none;
}
.registration-review-modalities .enrollment-discount-toggle > input[type='checkbox']:hover { border-color: var(--app-primary); }
.registration-review-modalities .enrollment-discount-toggle > input[type='checkbox']:disabled { opacity: .5; cursor: not-allowed; }

@media (min-width: 1101px) {
  .registration-review-modalities .enrollment-billing-entry[data-match-stage='true'] { align-self: stretch; }
}
.registration-review-modalities .enrollment-billing-controls { align-items: stretch; }
.registration-review-modalities .enrollment-discount-toggle { align-self: stretch; padding-block: 0; }
.registration-review-modalities .enrollment-discount-toggle > input[type='checkbox'] { width: 18px; height: 18px; }

.registration-review-control-label { display: block; margin-bottom: 4px; color: var(--app-text-muted); font-size: 11px; line-height: 1.4; }
.public-approval-modal .public-approval-decision[data-required-empty='true'] .filter-dropdown__trigger,
.public-approval-modal .registration-class-trigger--required { border-color: var(--app-danger-text); }
.registration-review-modalities .enrollment-billing-controls { align-items: start; }


/* Decision label and trigger stay in the card header's normal flow. */
.registration-review-modalities .enrollment-billing-entry__header > .public-approval-decision {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 4px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  text-transform: none;
  letter-spacing: normal;
}
.registration-review-modalities .public-approval-decision .registration-review-control-label { margin: 0; }
.registration-review-modalities .public-approval-decision .filter-dropdown {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.registration-review-modalities .public-approval-decision .filter-dropdown__trigger {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.registration-review-modalities .enrollment-billing-entry__header > div:first-child { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 1100px) {
  .registration-review-modalities .enrollment-billing-entry__header { grid-template-columns: minmax(0, 1fr); }
}

/* Financial columns keep labels, controls and feedback on independent rows. */
.registration-review-modalities .registration-financial-column {
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: start;
  align-items: start;
  gap: 6px;
  min-width: 0;
}
.registration-review-modalities .registration-financial-column > input { height: 40px; min-height: 40px; box-sizing: border-box; }
.registration-review-modalities .registration-financial-label,
.registration-review-modalities .registration-financial-column > span:first-child { color: var(--app-text-muted); font-size: 12px; line-height: 1.4; }
.registration-review-modalities .registration-financial-feedback { display: block; }
.registration-review-modalities .registration-financial-feedback .registration-review-field-error { display: block; }
.registration-review-modalities .registration-financial-column .enrollment-discount-toggle {
  height: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0;
  align-self: start;
  box-sizing: border-box;
}
.registration-review-modalities .registration-financial-column .enrollment-discount-toggle > span { display: block; color: var(--app-text-muted); font-size: 11px; line-height: 1.4; }
.registration-review-money-control { display: flex; align-items: center; gap: 8px; min-width: 0; }
.registration-review-money-control > span { color: var(--app-text-muted); font-size: 12px; flex-shrink: 0; }
.registration-review-money-control > input { flex: 1; min-width: 0; height: 40px; box-sizing: border-box; }

.registration-fee-heading h3 { margin: 0 0 6px; font-size: 14px; line-height: 1.5; font-weight: 600; }
.registration-fee-heading p { margin: 0; color: var(--app-text-muted); font-size: 12px; line-height: 1.5; }

:root[data-theme='dark'] :is(.registration-review-pending, .registration-review-modal .ui-modal__eyebrow, .enrollment-registration-banner__icon, .enrollment-copy-link svg) { color: var(--app-action-text); }
:root[data-theme='dark'] .registration-review-summary footer > span:last-child strong { color: var(--app-action-text); }
:root[data-theme='dark'] .registration-review-modalities :is(.enrollment-discount-toggle, .enrollment-discount-toggle > span) { color: var(--app-text-muted); }
:root[data-theme='dark'] .public-approval-modal .registration-review-field-error { color: var(--app-danger-text); }

:root[data-theme='dark'] .filter-dropdown__menu.enrollments-filter-menu { border-color: var(--app-border); background: var(--app-surface-raised); box-shadow: var(--app-shadow); }
:root[data-theme='dark'] .filter-dropdown__menu.enrollments-filter-menu .filter-dropdown__option { color: var(--app-text); }
:root[data-theme='dark'] .filter-dropdown__menu.enrollments-filter-menu .filter-dropdown__option:is(:hover, :focus-visible) { background: var(--app-surface-muted); }
:root[data-theme='dark'] .filter-dropdown__menu.enrollments-filter-menu .filter-dropdown__option--active { background: var(--app-primary-soft); color: var(--app-text); }
:root[data-theme='dark'] .filter-dropdown__menu.enrollments-filter-menu .filter-dropdown__option svg { color: var(--app-action-text); }
/* Account workspace: scoped to Meu perfil; onboarding retains its existing layout. */
.profile-page { gap: 24px; }
.profile-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 310px; align-items: start; gap: 24px; }
.profile-workspace > *, .profile-page .profile-fields { min-width: 0; }
.profile-page .profile-card { display: grid; grid-template-columns: 164px minmax(0, 1fr); gap: 24px; padding: 24px; }
.profile-page .profile-photo-column { padding: 0 24px 0 0; border-color: var(--app-border); gap: 14px; }
.profile-page .profile-photo { width: 108px; height: 108px; border-color: var(--app-border); background: var(--app-surface-muted); color: var(--app-action-text); }
.profile-page .profile-photo-button { width: 100%; justify-content: center; font-size: 13px; padding-inline: 10px; white-space: nowrap; }
.profile-page .profile-photo-column small { color: var(--app-text-muted); line-height: 1.5; font-size: 11px; }
.profile-page h3 { margin: 0; color: var(--app-text); font-size: 16px; line-height: 1.4; letter-spacing: -.02em; }
.profile-page .profile-photo-column h3 { font-size: 14px; }
.profile-section-heading p { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--app-text-muted); }
.profile-page .profile-fields { gap: 20px; }
.profile-page .profile-fields .form-grid { gap: 16px; }
.profile-page .profile-professional-area { grid-column: 1 / -1; }
.profile-page .field > span { color: var(--app-text); }
.profile-page .field-optional { color: var(--app-text-muted); font-weight: 400; }
.profile-page .field :is(input, textarea) { background: var(--app-bg); color: var(--app-text); border-color: var(--app-text-muted); }
.profile-page .field :is(input, textarea)::placeholder { color: var(--app-text-muted); opacity: 1; }
.profile-page .field :is(input, textarea):focus-visible { outline: 2px solid var(--app-focus); outline-offset: 2px; }
.profile-page .profile-actions { border-top: 1px solid var(--app-border); padding-top: 20px; }
.profile-preferences { display: grid; gap: 20px; }
.profile-page :is(.profile-account, .profile-appearance) { padding: 22px; max-width: none; }
.profile-account header { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.profile-account header svg { color: var(--app-text-muted); flex: 0 0 auto; }
.profile-account__label { display: block; margin-bottom: 6px; color: var(--app-text-muted); font-size: 12px; }
.profile-account__email { display: block; color: var(--app-text); font-size: 14px; overflow-wrap: anywhere; }
.profile-page :is(.profile-account, .profile-appearance) p { color: var(--app-text-muted); font-size: 13px; line-height: 1.6; margin: 10px 0 0; }
.profile-security { border-top: 1px solid var(--app-border); margin-top: 22px; padding-top: 22px; }
.profile-security header { margin-bottom: 0; }
.profile-security .button { margin-top: 16px; width: 100%; justify-content: center; text-decoration: none; }
.profile-page .theme-preference { margin: 0; }
.profile-page .theme-preference legend { color: var(--app-text); font-size: 16px; font-weight: 700; padding: 0 0 16px; margin: 0; }
.profile-page .theme-preference__option { color: var(--app-text); border-color: var(--app-border-strong); min-height: 72px; }
.profile-page .theme-preference__option.is-selected { color: var(--app-text); border-color: var(--app-focus); }
.profile-page .button--secondary { color: var(--app-text); border-color: var(--app-text-muted); background: var(--app-surface); }
.profile-page .button--secondary:hover { background: var(--app-surface-muted); }
.profile-page :is(a, button, .profile-photo-button):focus-visible,
.profile-page .profile-photo-button:focus-within { outline: 2px solid var(--app-focus); outline-offset: 3px; }
.profile-page .form-error { color: var(--app-danger-text); background: var(--app-danger-soft); }
.profile-page .form-success { color: var(--app-text); background: var(--app-success-soft); }
@media (max-width: 1180px) {
  .profile-workspace { grid-template-columns: minmax(0, 1fr); }
  .profile-preferences { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (max-width: 720px) {
  .profile-page { gap: 18px; }
  .profile-workspace, .profile-preferences { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .profile-page .profile-card { grid-template-columns: minmax(0, 1fr); padding: 20px; gap: 20px; }
  .profile-page .profile-photo-column { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: center; gap: 8px 16px; border-right: 0; border-bottom: 1px solid var(--app-border); padding: 0 0 20px; text-align: left; }
  .profile-page .profile-photo { width: 88px; height: 88px; grid-column: 1; grid-row: 1 / 4; }
  .profile-page .profile-photo-column :is(h3, .profile-photo-button, small) { grid-column: 2; }
  .profile-page .profile-photo-button { width: auto; justify-self: start; }
  .profile-page .profile-fields .form-grid { grid-template-columns: minmax(0, 1fr); }
  .profile-page .profile-actions .button { width: 100%; justify-content: center; }
}
.legal-document-modal.ui-modal { height: min(860px, calc(100dvh - 32px)); }
.legal-document-modal .ui-modal__body { display: flex; flex-direction: column; gap: 12px; }
.legal-document-modal iframe { width: 100%; flex: 1; min-height: 220px; border: 1px solid var(--app-border); border-radius: var(--app-radius-control); background: var(--app-surface); }
.legal-document-modal .field-hint { margin: 0; }
.legal-document-modal__actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
@media (max-width: 600px) { .legal-document-modal__actions > * { flex: 1 1 auto; } }
.public-registration .public-offering-notice {
  display: block;
  width: 100%;
  max-width: none;
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--app-primary-border);
  border-inline-start: 3px solid var(--app-action-text);
  border-radius: var(--app-radius-control);
  background: var(--app-surface-muted);
  color: var(--app-text);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  overflow-wrap: anywhere;
}

.public-registration .public-offering-notice strong {
  color: inherit;
  font-weight: 700;
}

.public-registration .public-offering-notice > svg {
  margin-inline-end: 6px;
  color: var(--app-action-text);
  vertical-align: -3px;
}

.public-registration .public-offering-notice--error {
  border-color: var(--app-danger-text);
  color: var(--app-danger-text);
}
.partnership-settings .settings-section__header h3,
.partnership-settings .field > span { color: var(--app-text); }
.partnership-settings .field > input,
.partnership-settings .field > textarea {
  color: var(--app-text);
  background: var(--app-surface);
  border-color: var(--app-border);
}

/* Same tenant-aware control tokens used by the registration review menus. */
.partnership-settings .filter-dropdown__trigger { background: var(--app-surface); color: var(--app-text); border-color: var(--app-border); }
.partnership-settings .filter-dropdown__trigger:focus-visible { outline: 2px solid var(--app-focus); outline-offset: 2px; }
.filter-dropdown__menu.partnership-settings__menu { background: var(--app-surface); border-color: var(--app-border); }
.partnership-settings__menu .filter-dropdown__option { color: var(--app-text); }
.partnership-settings__menu .filter-dropdown__option:is(:hover, :focus-visible),
.partnership-settings__menu .filter-dropdown__option--active { background: var(--app-primary-soft); color: var(--app-text); }
.organization-documents-settings .settings-section__header h3,
.organization-documents-settings .field > span {
  color: var(--app-text);
}

.organization-documents-settings .field > :is(input, textarea),
.organization-documents-settings .filter-dropdown__trigger {
  color: var(--app-text);
  background: var(--app-surface);
  border-color: var(--app-border);
}

.organization-documents-settings .filter-dropdown__trigger:focus-visible,
.filter-dropdown__menu.organization-documents-settings__menu .filter-dropdown__option:focus-visible {
  outline: 2px solid var(--app-focus);
  outline-offset: 2px;
}

.filter-dropdown__menu.organization-documents-settings__menu {
  color: var(--app-text);
  background: var(--app-surface);
  border-color: var(--app-border);
}

.organization-documents-settings__menu .filter-dropdown__option {
  color: var(--app-text);
}

.organization-documents-settings__menu .filter-dropdown__option:is(:hover, :focus-visible, .filter-dropdown__option--active) {
  color: var(--app-text);
  background: var(--app-primary-soft);
}
.settings-price-card {
  gap: 18px;
}

.settings-price-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
  padding: 18px;
}

.settings-price-overview > div {
  display: grid;
  gap: 5px;
}

.settings-price-overview strong {
  color: var(--navy);
  font-size: 13px;
}

.settings-price-overview span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.settings-section__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 2px;
}

.settings-section__actions .button {
  min-width: 108px;
}

.settings-price-modal-layer {
  position: fixed;
  z-index: 120;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.settings-price-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0, 20, 50, 0.62);
  backdrop-filter: blur(4px);
}

.settings-price-modal {
  position: relative;
  display: grid;
  width: min(1120px, calc(100vw - 48px));
  max-height: min(820px, calc(100vh - 48px));
  max-height: min(820px, calc(100dvh - 48px));
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 28px 80px rgba(0, 26, 65, 0.28);
}

.settings-price-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 22px 24px 18px;
}

.settings-price-modal__header h2 {
  margin: 3px 0 6px;
  color: var(--navy);
  font-size: 24px;
  letter-spacing: -0.025em;
}

.settings-price-modal__header p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.settings-price-modal__body {
  min-height: 0;
  overflow-y: auto;
  padding: 18px 24px 22px;
}

.settings-price-editor {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.settings-price-editor__row {
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) minmax(180px, .8fr) minmax(210px, .8fr);
  align-items: end;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 16px;
}

.settings-price-editor__identity {
  display: grid;
  align-self: center;
  gap: 4px;
}

.settings-price-editor__title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
}

.settings-price-editor__artwork {
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  place-items: center;
  overflow: hidden;
}

.settings-price-editor__artwork img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.settings-price-editor__artwork svg {
  width: 16px;
  height: 16px;
}

.settings-price-editor__identity strong {
  min-width: 0;
  color: var(--navy);
  font-size: 13px;
}

.settings-price-editor__identity small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.settings-price-editor__identity .settings-price-editor__scheduled {
  color: #8b5a00;
  font-weight: 700;
}

.settings-price-editor__amount,
.settings-price-editor__date {
  min-width: 0;
}

.settings-price-editor__date .date-picker,
.settings-price-editor__date .date-picker__trigger {
  width: 100%;
}

.settings-price-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  background: #fbfcfd;
  padding: 16px 24px;
}

.settings-price-modal__footer > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.settings-price-modal__footer > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

@media (max-width: 820px) {
  .settings-price-modal-layer {
    place-items: center;
    padding: 12px;
  }

  .settings-price-modal {
    width: min(100%, 720px);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 18px;
  }

  .settings-price-editor__row {
    grid-template-columns: 1fr 1fr;
  }

  .settings-price-editor__identity {
    grid-column: 1 / -1;
    border-bottom: 1px solid var(--line);
    padding-bottom: 11px;
  }
}

@media (max-width: 560px) {
  .settings-price-overview {
    align-items: stretch;
    flex-direction: column;
  }

  .settings-price-overview .button {
    width: 100%;
  }

  .settings-section__actions .button {
    min-width: 104px;
  }

  .settings-price-modal-layer {
    padding: 8px;
  }

  .settings-price-modal {
    width: 100%;
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 16px;
  }

  .settings-price-modal__header,
  .settings-price-modal__body,
  .settings-price-modal__footer {
    padding-right: 12px;
    padding-left: 12px;
  }

  .settings-price-modal__header {
    gap: 10px;
    padding-top: 14px;
    padding-bottom: 12px;
  }

  .settings-price-modal__header .eyebrow {
    margin-bottom: 5px;
    font-size: 9px;
  }

  .settings-price-modal__header h2 {
    margin-bottom: 4px;
    font-size: 19px;
  }

  .settings-price-modal__header p {
    font-size: 10px;
    line-height: 1.4;
  }

  .settings-price-modal__body {
    padding-top: 10px;
    padding-bottom: 12px;
  }

  .settings-price-modal__body .inline-note {
    gap: 7px;
    padding: 8px 9px;
    font-size: 9px;
    line-height: 1.35;
  }

  .settings-price-editor {
    gap: 8px;
    margin-top: 9px;
  }

  .settings-price-editor__row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px 10px;
    border-radius: 12px;
    padding: 10px;
  }

  .settings-price-editor__identity {
    grid-column: 1 / -1;
    gap: 2px;
    padding-bottom: 7px;
  }

  .settings-price-editor__title {
    gap: 5px;
  }

  .settings-price-editor__artwork {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }

  .settings-price-editor__artwork img,
  .settings-price-editor__artwork svg {
    width: 15px;
    height: 15px;
  }

  .settings-price-editor__identity strong {
    font-size: 12px;
  }

  .settings-price-editor__identity small {
    font-size: 9px;
    line-height: 1.35;
  }

  .settings-price-editor__amount,
  .settings-price-editor__date {
    gap: 5px;
    font-size: 10px;
  }

  .settings-price-editor__amount input,
  .settings-price-editor__date .date-picker__trigger {
    min-height: 40px;
    font-size: 12px;
  }

  .settings-price-editor__date .date-picker__trigger {
    gap: 6px;
    padding-right: 9px;
    padding-left: 9px;
  }

  .settings-price-editor__date .date-picker__trigger svg {
    width: 16px;
    height: 16px;
  }

  .settings-price-modal__footer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    padding-top: 9px;
    padding-bottom: 10px;
  }

  .settings-price-modal__footer > span {
    font-size: 9px;
  }

  .settings-price-modal__footer > div {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .settings-price-modal__footer .button {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    font-size: 11px;
  }
}

@media (max-width: 360px) {
  .settings-price-modal__header,
  .settings-price-modal__body,
  .settings-price-modal__footer {
    padding-right: 10px;
    padding-left: 10px;
  }

  .settings-price-editor__row {
    gap: 7px;
    padding: 9px;
  }

  .settings-price-editor__amount,
  .settings-price-editor__date {
    font-size: 9px;
  }

  .settings-price-editor__amount input,
  .settings-price-editor__date .date-picker__trigger {
    font-size: 11px;
  }
}
/* inter-cyrillic-ext-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2) format('woff2-variations');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* inter-cyrillic-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* inter-greek-ext-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2) format('woff2-variations');
  unicode-range: U+1F00-1FFF;
}

/* inter-greek-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/inter-greek-wght-normal-CkhJZR-_.woff2) format('woff2-variations');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}

/* inter-vietnamese-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* inter-latin-ext-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* inter-latin-wght-normal */
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/inter-latin-wght-normal-Dx4kXJAl.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}:root {
  font-family: 'Inter Variable', Inter, Aptos, "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--app-text);
  background: var(--app-bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;

  /* Legacy aliases remain during the gradual MEYNT migration. */
  --navy: var(--meynt-navy);
  --navy-2: var(--meynt-navy);
  --orange: var(--app-primary);
  --orange-dark: var(--app-primary-hover);
  --white: var(--meynt-white);
  --surface: var(--app-surface);
  --surface-soft: var(--app-bg);
  --surface-blue: var(--app-primary-soft);
  --text: var(--app-text);
  --muted: var(--app-text-muted);
  --line: var(--app-border);
  --success: var(--app-success);
  --success-soft: var(--app-success-soft);
  --warning: var(--app-warning);
  --warning-soft: var(--app-warning-soft);
  --danger: var(--app-danger);
  --danger-soft: var(--app-danger-soft);
  --shadow: var(--app-shadow);
}

* {
  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(--app-primary);
}

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 var(--app-focus-ring);
}

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(--app-text);
}

.brand--inverse {
  color: var(--meynt-white);
}

.brand__logo-full {
  display: block;
  flex: 0 0 auto;
}

.brand__asset {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.brand__symbol {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
}

.brand--wordmark .brand__logo-full {
  width: 132px;
}

.brand--horizontal .brand__logo-full {
  width: 180px;
}

.brand--stacked .brand__logo-full {
  width: 180px;
}

.brand--compact .brand__logo-full { display: none; }
.brand--compact .brand__symbol { display: inline-flex; }

.eyebrow {
  display: inline-block;
  margin-bottom: 9px;
  color: var(--app-primary-hover);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow--light {
  color: var(--app-accent);
}

.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(--app-primary-fill);
  background: var(--app-primary-fill);
  color: var(--meynt-white);
}

.button--primary:hover:not(:disabled) {
  border-color: var(--app-primary-fill-hover);
  background: var(--app-primary-fill-hover);
}

.button--secondary {
  border-color: var(--app-border);
  background: var(--app-surface);
  color: var(--app-text);
}

.button--secondary:hover:not(:disabled) {
  border-color: var(--app-border-strong);
  background: var(--app-surface-muted);
}

.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); }
}

/* 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 */

.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--student {
  overflow: hidden;
  background: #d7eaff;
  color: #24558f;
}

.avatar--student svg {
  display: block;
  width: 100%;
  height: 100%;
}

.avatar--image {
  display: block;
  object-fit: cover;
}
.tab-attention-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 2px rgba(254, 88, 0, .12); }

.enrollment-class-section--focused { animation: enrollment-class-focus 1.8s ease-out; }
@keyframes enrollment-class-focus {
  0%, 35% { border-color: #ff9b65; box-shadow: 0 0 0 4px rgba(254, 88, 0, .12); }
  100% { border-color: var(--line); box-shadow: none; }
}

.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; }

.app-version-footer {
  width: 100%;
  min-width: 0;
  margin: 0;
  border: 0;
  background: transparent;
  padding: 10px clamp(22px, 3.2vw, 46px);
  color: var(--app-text-muted);
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
}

.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; }

.legal-document-notice__icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 13px;
  flex: 0 0 auto;
  background: #fff0e8;
  color: var(--app-primary-hover);
}

.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 {
  display: none;
}

/* Dashboard */

.metric-grid {
  display: grid;
  grid-template-columns: repeat(5, 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;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.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(--app-primary-hover);
}

.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;
}

.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(--app-primary-hover);
  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;
}

.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;
}

.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(--app-primary-hover);
}

.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(--app-text);
  font-size: 14px;
}

.catalog-empty span {
  font-size: 11px;
}

.class-card {
  min-height: 330px;
}

.class-card__sport {
  display: block;
  margin-bottom: 5px;
  color: var(--app-primary-hover);
  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(--app-primary-hover);
}

/* 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(--app-primary-hover);
}

.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(--app-primary-hover); }
.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;
}

/* Enrollment class assignment */
.enrollment-class-current { display: grid; gap: 6px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft); }
.enrollment-class-current > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.enrollment-class-current p { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.enrollment-class-current p svg { width: 14px; height: 14px; flex: 0 0 auto; }
.enrollment-class-empty { min-height: 130px; }
.enrollment-detail-section--headed .enrollment-detail-section-heading { margin: 4px 0 14px; }
.enrollment-section-action.ui-button { min-width: 108px; min-height: 38px; padding-inline: 14px; border-radius: var(--ui-control-radius, 10px); }
.class-assignment-options { display: grid; gap: 10px; margin: 16px 0; max-height: 360px; overflow-y: auto; }
.class-assignment-option { display: grid; gap: 4px; width: 100%; padding: 14px; text-align: left; color: var(--navy); background: var(--white); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease; }
.class-assignment-option:hover, .class-assignment-option:focus-visible { border-color: var(--orange); outline: none; box-shadow: 0 0 0 3px rgb(244 103 20 / 9%); }
.class-assignment-option--selected { border-color: var(--orange); background: #fffaf6; box-shadow: 0 0 0 3px rgb(244 103 20 / 15%); }
.class-assignment-option span, .class-assignment-option small { color: var(--muted); }
.class-assignment-option__heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.class-assignment-option__heading strong { color: var(--navy); }
.class-assignment-option__badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.class-assignment-option__badge { flex: 0 0 auto; padding: 3px 8px; border-radius: 999px; font-size: 10px; font-style: normal; font-weight: 800; line-height: 1.25; }
.class-assignment-option__badge--recommended { background: #e5f7ee; color: #087a4d; }
.class-assignment-option__badge--selected { background: #fff0e6; color: var(--app-primary-hover); }
.class-assignment-option__badge--current { background: var(--surface-blue); color: var(--navy); }
.enrollment-waitlist-note { align-items: flex-start; }
.enrollment-waitlist-note span { display: grid; gap: 3px; }
.waitlist-activation-modal { display: grid; gap: 16px; }
.waitlist-activation-modal > .ui-summary-card { align-items: flex-start; }
.waitlist-activation-terms,
.waitlist-activation-summary { display: grid; gap: 12px; }
.waitlist-activation-terms > div:first-child { display: grid; gap: 4px; }
.class-assignment-option__age { font-size: 11px; }
.class-assignment-option__support { font-size: 12px; line-height: 1.4; }
.class-assignment-option--recommended { background: #fbfffd; }
.class-assignment-option--recommended.class-assignment-option--selected { background: #fffaf6; }
.class-assignment-submit { width: 100%; justify-content: center; }
.enrollment-class-choice { display: grid; gap: 8px; padding: 12px 0 4px; border-top: 1px solid var(--line); }
.enrollment-class-choice__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.enrollment-class-choice__heading strong { color: var(--navy); font-size: 13px; }
.enrollment-class-choice .class-assignment-options { margin: 0; max-height: 300px; }
.public-student-match { display: grid; gap: 10px; padding: 14px; border: 1px solid #f1c38f; border-radius: var(--radius-md); background: #fffaf4; }
.public-student-match > div { display: grid; gap: 3px; }
.public-student-match article { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.public-student-match article > div { display: grid; gap: 3px; }
.public-student-match article span,.public-student-match article small { color: var(--muted); font-size: 12px; }
.public-student-match .public-student-match__difference { color: #a45108; font-weight: 700; }
.public-identity-decision { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; scroll-margin-block: 20px; }
.public-identity-decision h4, .public-identity-decision p { margin: 0; }
.public-identity-decision p { color: var(--muted); font-size: 13px; }
.public-identity-decision__options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.public-identity-decision__options .button { white-space: normal; overflow-wrap: anywhere; justify-content: center; }
.public-identity-decision__options .button[aria-pressed="true"] { border-color: #f97316; background: #fff3e8; color: #9a4100; box-shadow: inset 0 0 0 1px #f97316; }
.public-identity-decision:focus-visible { outline: 2px solid #f97316; outline-offset: 3px; }
.public-identity-decision--attention { border-color: #f97316; background: #fff8ef; transition: background-color 180ms ease; }
@media (max-width: 600px) { .public-identity-decision__options { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .public-identity-decision--attention { transition: none; } }
.public-approval-billing__heading--terms { margin-top: 12px; }

@media (max-width: 640px) {
  .public-student-match article { align-items: stretch; flex-direction: column; }
  .public-student-match article .button { width: 100%; justify-content: center; }
  .enrollment-class-current > div { align-items: flex-start; flex-direction: column; }
  .enrollment-class-current p { flex-wrap: wrap; }
  .class-assignment-option__heading { align-items: flex-start; }
  .class-assignment-options { max-height: 48vh; }
}

.lesson-list-panel--full { grid-column: 1 / -1; position: static; }
.lesson-list-panel--full .lesson-list { max-height: none; }
.lesson-filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 18px 2px; }
.lesson-filters > * { min-width: 0; flex: 1 1 160px; }
.lesson-filters input { width: 100%; min-width: 0; }
.lesson-detail-modal { display: flex; flex-direction: column; gap: 16px; }
.lesson-detail-modal .lesson-workspace { display: flex; flex-direction: column; gap: 16px; }
.lesson-detail-modal .attendance-roster { max-height: none; }
.lesson-detail-modal .attendance-student-row { grid-template-columns: minmax(180px, 1fr) auto; }
.attendance-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.attendance-actions .attendance-options { display: flex; justify-content: flex-end; gap: 6px; }
.attendance-option { width: 38px; min-height: 38px; padding: 0; }
.attendance-observation-button { position: relative; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #d7dee8; border-radius: 9px; background: #fff; color: var(--muted); cursor: pointer; }
.attendance-observation-button--active { border-color: var(--orange); background: #fff5ee; color: var(--app-primary-hover); }
.attendance-observation-button--active::after { position: absolute; top: 4px; right: 4px; width: 6px; height: 6px; border-radius: 999px; background: var(--orange); content: ''; }
.ui-icon-tooltip, .truncated-text { position: relative; }
.truncated-text { display: block; min-width: 0; }
.truncated-text:focus-visible { outline: 2px solid var(--app-focus); outline-offset: 2px; border-radius: 4px; }
.truncated-text__tooltip { white-space: normal; overflow-wrap: anywhere; }
.truncated-text__tooltip,
.ui-icon-tooltip::before { position: absolute; z-index: 30; right: 50%; bottom: calc(100% + 7px); width: max-content; max-width: 190px; 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: translate(50%, 3px); transition: opacity 140ms ease, transform 140ms ease; }
[data-tooltip-open] > .truncated-text__tooltip { opacity: 1; transform: translate(50%, 0); }
.truncated-text > .truncated-text__tooltip { max-width: min(360px, calc(100vw - 32px)); text-wrap: pretty; }
@media (prefers-reduced-motion: reduce) {
  .truncated-text__tooltip { transition: none; }
}
.ui-icon-tooltip:hover::before, .ui-icon-tooltip:focus-visible::before { opacity: 1; transform: translate(50%, 0); }
.lesson-modal-feedback { margin: 0; }
.attendance-save-button { min-width: 132px; }
.attendance-save-button--saved:disabled { cursor: default; opacity: 1; border-color: #b9ddce; background: var(--success-soft); color: var(--success); }
.attendance-save-button--saving:disabled { cursor: wait; }
.lesson-create-form { display: flex; flex-direction: column; gap: 18px; width: 100%; }
.lesson-create-schedule { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--line); padding-top: 17px; }
.lesson-create-schedule__heading > span { color: var(--navy); font-size: 13px; font-weight: 800; }
.lesson-create-different-time { display: flex; align-items: center; gap: 9px; color: var(--navy); cursor: pointer; font-size: 12px; font-weight: 700; }
.lesson-create-different-time input { width: 16px; height: 16px; accent-color: var(--orange); }
.lesson-create-manual-time { display: flex; flex-direction: column; gap: 14px; }
.lesson-create-hint { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.lesson-create-duration { display: block; border-radius: 8px; background: var(--surface-blue); padding: 9px 11px; color: var(--navy); font-size: 11px; font-weight: 750; }
.lesson-create-button { width: 100%; }
.lesson-create-button:disabled:not(.is-loading) { cursor: default; }
.lesson-create-button.is-loading:disabled { cursor: wait; }
.lesson-text-modal { display: flex; flex-direction: column; gap: 18px; width: 100%; }
.lesson-text-modal__field { display: flex; flex-direction: column; align-items: stretch; gap: 8px; width: 100%; color: var(--navy); font-size: 11px; font-weight: 800; }
.lesson-text-modal__field textarea { width: 100%; min-height: 112px; box-sizing: border-box; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--navy); padding: 11px 12px; font: inherit; font-weight: 500; line-height: 1.5; resize: vertical; }
.lesson-text-modal__field textarea:focus-visible { outline: 2px solid rgba(255, 90, 0, .3); outline-offset: 2px; border-color: var(--orange); }
.lesson-text-modal__actions { display: flex; width: 100%; }
.lesson-text-modal__actions .button { width: 100%; justify-content: center; }
.attendance-suspended-button { margin-left: auto; color: var(--warning); }
.lesson-suspended-modal { display: flex; flex-direction: column; gap: 16px; }
.lesson-suspended-modal > p { margin: 0; color: var(--muted); line-height: 1.5; }
.lesson-suspended-list { display: flex; flex-direction: column; gap: 8px; }
.lesson-suspended-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.lesson-suspended-row:first-child { border-top: 0; }
.lesson-suspended-row div { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.lesson-suspended-row strong, .lesson-suspended-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lesson-suspended-row small { color: var(--muted); }
.table-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 18px 16px; }
.table-pagination span { color: var(--muted); font-size: 10px; font-weight: 700; }
.table-pagination button:disabled { cursor: default; }

@media (max-width: 680px) {
  .lesson-detail-modal .attendance-student-row { grid-template-columns: 1fr; }
  .attendance-actions { justify-content: flex-start; }
  .lesson-create-manual-time .form-grid { grid-template-columns: 1fr; }
}

.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(--app-primary-hover); }
.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: 14px; text-overflow: ellipsis; white-space: nowrap; }
.lesson-list-item small { color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }

.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(--app-primary-hover); }
.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(--app-primary-hover); }
.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(--app-primary-hover);
  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));
  }

  .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; }

}

@media (max-width: 850px) {

  .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;
  }

  .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;
  }

  .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; }

:root[data-theme="dark"] .public-registration .registration-section:has(.declaration-list) :is(h3, .declaration-list .field > span) {
  color: var(--app-text);
}
:root[data-theme="dark"] .public-registration .registration-section:has(.declaration-list) :is(p, .declaration-list small) {
  color: var(--app-text-muted);
}
:root[data-theme="dark"] .public-registration .registration-section:has(.declaration-list) .inline-document-link {
  color: var(--app-action-text);
}

:root[data-theme="dark"] .public-registration .registration-section :is(.registration-section__header h3, .field, .choice-fieldset legend) {
  color: var(--app-text);
}

.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__details > .public-submission__contacts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}

.public-submission__contacts strong { text-align: left; }

.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-approval-confirm > div { display: flex; flex: 0 0 auto; gap: 8px; }
.public-rejection-modal__content { display: grid; justify-items: center; gap: 12px; text-align: center; }
.public-rejection-modal .ui-modal__title { color: #a72727; }
.public-rejection-modal .ui-modal__footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.public-rejection-modal__icon { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 50%; color: #a72727; background: #fff0f0; }
.public-rejection-modal__content > div:nth-child(2) { display: grid; gap: 3px; }
.public-rejection-modal__content > div:nth-child(2) strong { color: var(--navy); font-size: 16px; }
.public-rejection-modal__content > div:nth-child(2) span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.public-rejection-modal__content > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.public-rejection-modal__content .field { width: 100%; text-align: left; }
.public-rejection-modal__content textarea { width: 100%; resize: vertical; }
.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; }

.public-approval-modal { width: min(1000px, calc(100vw - 32px)); max-height: min(90dvh, 900px); }
.public-approval-modal__body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.public-approval-review { display: grid; gap: 18px; }
.public-approval-student-summary { display: grid; gap: 7px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #f8fafc; }
.public-approval-student-summary h3 { margin: 0; color: var(--navy); }
.public-approval-student-summary > div { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: 11px; }
.public-approval-student-summary strong { margin-left: 5px; color: var(--navy); }
.public-approval-modalities { display: grid; gap: 12px; }
.public-approval-decision { display: grid; gap: 4px; min-width: 170px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.public-approval-decision select { min-height: 38px; padding: 0 34px 0 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--navy); font: inherit; font-size: 12px; font-weight: 800; text-transform: none; letter-spacing: 0; }
.public-approval-benefit { display: inline-flex; align-items: center; gap: 7px; width: fit-content; color: var(--orange); font-size: 12px; font-weight: 800; }
.public-approval-decision-note { padding: 12px 14px; border: 1px solid #fed7aa; border-radius: 11px; color: #9a4b09; background: #fffaf5; font-size: 12px; font-weight: 700; }
.public-approval-rejection-reason textarea { resize: vertical; }
.public-approval-summary { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #f8fafc; }
.public-approval-summary > div { display: grid; gap: 7px; }
.public-approval-summary > div > strong { color: var(--navy); font-size: 13px; }
.public-approval-summary > div > span, .public-approval-summary footer > span { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; }
.public-approval-summary b, .public-approval-summary footer strong { color: var(--navy); text-align: right; }
.public-approval-summary footer { display: grid; gap: 8px; padding-top: 13px; border-top: 1px solid var(--line); }
.public-approval-modal .class-assignment-options,
.public-approval-modal .enrollment-class-choice .class-assignment-options { max-height: none; overflow: visible; }
.public-approval-modal .ui-modal__footer { position: sticky; bottom: 0; z-index: 1; background: #fff; }

@media (max-width: 700px) {
  .public-approval-modal { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
  .public-approval-modal .ui-modal__footer { display: grid; grid-template-columns: 1fr; }
  .public-approval-modal .ui-modal__footer .button { width: 100%; }
  .public-approval-decision { width: 100%; min-width: 0; }
  .public-approval-summary > div > span, .public-approval-summary footer > span { align-items: flex-start; }
}

@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(--app-primary-hover); }
.finance-row-actions a { color: var(--app-primary-hover); font-size: 11px; font-weight: 750; }

.finance-message-list { display: grid; gap: 12px; }
.public-charge-page { width: min(820px, calc(100% - 28px)); margin: 36px auto; display: grid; gap: 18px; }
.public-charge-page__header { text-align: center; }
.public-charge-page__header h1 { margin: 8px 0 4px; color: var(--navy); }
.public-charge-page__header p { margin: 0; color: var(--muted); }
.public-charge-card { display: grid; gap: 22px; padding: 24px; }
.public-charge-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.public-charge-summary > div { display: grid; gap: 4px; }
.public-charge-summary span, .public-charge-lines span { color: var(--muted); font-size: 12px; }
.public-charge-summary strong, .public-charge-lines strong { color: var(--navy); }
.public-charge-lines { display: grid; gap: 11px; }
.public-charge-lines > div { display: flex; justify-content: space-between; gap: 18px; }
.public-charge-lines__total { border-top: 1px solid var(--line); padding-top: 13px; font-size: 16px; }
.public-charge-methods { padding: 24px; }
.public-charge-methods h2 { margin: 0 0 16px; color: var(--navy); }
.public-charge-methods > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.public-charge-methods button { display: grid; justify-items: start; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; text-align: left; background: var(--surface); color: var(--navy); }
.public-charge-methods small { color: var(--muted); line-height: 1.35; }
.public-charge-paid { display: flex; gap: 14px; align-items: flex-start; border: 1px solid color-mix(in srgb, var(--success) 35%, transparent); background: color-mix(in srgb, var(--success) 8%, white); border-radius: 16px; padding: 18px; color: var(--success); }
.public-charge-paid h2, .public-charge-paid p { margin: 0; }
.public-charge-paid p { margin-top: 5px; color: var(--navy); }
.public-charge-state { width: min(520px, calc(100% - 28px)); margin: 20vh auto; text-align: center; color: var(--navy); }
.reconciliation-panel { border-color: color-mix(in srgb, var(--warning) 45%, var(--line)); }
.reconciliation-list { display: grid; gap: 9px; padding: 0 18px 18px; }
.reconciliation-list button { display: flex; align-items: flex-start; gap: 11px; width: 100%; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: left; color: var(--warning); }
.reconciliation-list span { display: grid; gap: 4px; }
.reconciliation-list strong { color: var(--navy); }
.reconciliation-list small { color: var(--muted); }
.communication-automation-rules { display: grid; gap: 11px; }
.communication-automation-rule { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 13px; padding: 14px; }
.communication-automation-rule > span:first-of-type { display: grid; gap: 3px; }
.communication-automation-rule small { color: var(--muted); }
@media (max-width: 680px) { .communication-automation-rule { grid-template-columns: auto minmax(0, 1fr); } .communication-automation-rule > .status-badge { grid-column: 2; justify-self: start; } }
@media (max-width: 680px) { .public-charge-page { margin: 20px auto; } .public-charge-summary, .public-charge-methods > div { grid-template-columns: 1fr; } .public-charge-card, .public-charge-methods { padding: 18px; } }
.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(--app-primary-hover);
}

.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(--app-primary-hover);
}

.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(--app-primary-hover); }

@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;
  }
}
/* v0.12 communication workspace */
.communication-settings-dialog { height: min(780px, calc(100vh - 48px)); }
.communication-settings-dialog .ui-modal__body { overflow: hidden; }
.communication-settings-modal { min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 16px; }
.communication-settings-tabs { position: relative; z-index: 2; flex: 0 0 auto; margin: -4px 0 0; background: var(--white); }
.communication-settings-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 2px 2px 4px; }
.communication-integration-card,
.communication-coming-soon { display: grid; gap: 16px; }
.communication-help { margin: 0; color: var(--muted); }
.communication-integration-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.communication-integration-summary article { display: flex; align-items: center; gap: 11px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.communication-integration-summary article > svg { flex: 0 0 auto; color: var(--app-primary-hover); }
.communication-integration-summary article span { display: grid; gap: 3px; }
.communication-integration-summary article small { color: var(--muted); font-size: 10px; }
.communication-integration-summary article strong { color: var(--navy); font-size: 12px; }
.communication-template-layout { min-height: 100%; display: grid; grid-template-columns: minmax(210px, .29fr) minmax(0, 1fr); gap: 20px; }
.communication-messages-workspace { display: grid; gap: 18px; }
.communication-test-sandbox { display: grid; gap: 14px; padding: 16px; border: 1px solid rgba(255,90,0,.28); border-radius: 13px; background: linear-gradient(135deg, rgba(255,90,0,.055), rgba(15,42,82,.025)); }
.communication-test-sandbox__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.communication-test-sandbox__header > span:first-child { display: flex; align-items: center; gap: 10px; color: var(--navy); }
.communication-test-sandbox__header > span:first-child > span { display: grid; gap: 2px; }
.communication-test-sandbox__header small { color: var(--app-primary-hover); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.communication-test-sandbox__details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.communication-test-sandbox__details article { display: grid; gap: 4px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.82); }
.communication-test-sandbox__details small { color: var(--muted); font-size: 9px; }
.communication-test-sandbox__details strong { color: var(--navy); font-size: 12px; }
.communication-template-list { display: grid; align-content: start; gap: 8px; }
.communication-template-list button { display: grid; gap: 4px; padding: 13px 14px; border: 1px solid rgba(15,42,82,.1); border-radius: 10px; background: #fff; color: #082451; text-align: left; cursor: pointer; }
.communication-template-list button small { color: #687b99; }
.communication-template-list button:hover,
.communication-template-list button:focus-visible,
.communication-template-list__active { border-color: rgba(255,90,0,.45) !important; background: rgba(255,90,0,.045) !important; outline: none; }
.communication-template-editor { min-width: 0; display: grid; align-content: start; gap: 14px; }
.communication-template-editor h3,
.communication-template-editor p { margin: 0; }
.communication-template-editor > div:first-child p { margin-top: 5px; color: var(--muted); font-size: 12px; }
.communication-template-workspace { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(250px, .92fr); gap: 15px; align-items: stretch; }
.communication-template-compose { min-width: 0; }
.communication-template-editor textarea { width: 100%; min-height: 286px; resize: none; line-height: 1.55; }
.communication-variable-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.communication-variable-chip { padding: 6px 9px; border: 1px solid rgba(15,42,82,.14); border-radius: 999px; background: #f7f9fc; color: #0f2a52; font: inherit; font-size: 12px; cursor: pointer; }
.communication-variable-chip:hover,
.communication-variable-chip:focus-visible { border-color: #ff5a00; outline: none; box-shadow: 0 0 0 3px rgba(255,90,0,.1); }
.communication-preview { min-width: 0; display: grid; align-content: start; gap: 8px; padding: 15px; border: 1px solid rgba(15,42,82,.1); border-radius: 12px; background: #f4f7f6; }
.communication-preview > span { color: #687b99; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.communication-preview__phone { overflow: hidden; border: 1px solid rgba(15,42,82,.1); border-radius: 13px; background: #efeae2; box-shadow: 0 10px 28px rgba(15,42,82,.09); }
.communication-preview__header { display: flex; align-items: center; gap: 9px; padding: 9px 11px; background: #075e54; color: #fff; font-size: 11px; }
.communication-preview__header > span:not(.communication-preview__avatar) { display: grid; gap: 1px; }
.communication-preview__header small { color: rgba(255,255,255,.78); font-size: 8px; }
.communication-preview__avatar { width: 27px; height: 27px; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: #fff; }
.communication-preview__avatar img { width: 100%; height: 100%; object-fit: cover; }
.communication-preview__conversation { min-height: 248px; display: grid; align-content: start; justify-items: end; padding: 12px; background-color: #efeae2; background-image: radial-gradient(circle at 20% 20%, rgba(7,94,84,.05) 1px, transparent 1px), radial-gradient(circle at 80% 70%, rgba(7,94,84,.045) 1px, transparent 1px); background-size: 18px 18px, 22px 22px; }
.communication-preview__date { justify-self: center; margin-bottom: 9px; padding: 4px 9px; border-radius: 6px; background: rgba(255,255,255,.82); color: #687b79; font-size: 8px; box-shadow: 0 1px 2px rgba(15,42,82,.08); }
.communication-preview p { position: relative; max-width: 92%; margin: 0 !important; padding: 10px 12px 18px; border-radius: 9px 2px 9px 9px; background: #d9fdd3; white-space: pre-wrap; color: #233532; font-size: 10px; line-height: 1.5; box-shadow: 0 1px 2px rgba(15,42,82,.12); }
.communication-preview p > small { position: absolute; right: 7px; bottom: 4px; color: #71847f; font-size: 7px; }
.communication-preview p > small span { color: #53bdeb; letter-spacing: -2px; }
.communication-preview__composer { display: flex; align-items: center; justify-content: space-between; margin: 7px; padding: 8px 10px; border-radius: 999px; background: #fff; color: #87938f; font-size: 9px; }
.communication-preview > small { color: #687b99; font-size: 9px; text-align: right; }
.communication-summary-card { align-self: start; align-content: start; }
.communication-summary-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.communication-summary-features > span { display: grid; gap: 3px; padding: 12px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.communication-summary-features strong { color: var(--navy); font-size: 11px; }
.communication-summary-features small { color: var(--muted); font-size: 9px; line-height: 1.35; }
.settings-field--payment-method { align-content: start; }
.communication-coming-soon { grid-template-columns: auto 1fr; align-items: start; padding: 18px; border: 1px dashed rgba(15,42,82,.18); border-radius: 12px; }
.communication-coming-soon p { margin: 5px 0 0; color: #687b99; }
@media (max-width: 760px) {
  .communication-settings-dialog { height: 92vh; }
  .communication-template-layout { grid-template-columns: 1fr; }
  .communication-template-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .communication-template-workspace { grid-template-columns: 1fr; }
  .communication-test-sandbox__details { grid-template-columns: 1fr; }
  .communication-template-editor textarea { min-height: 220px; }
}
@media (max-width: 520px) {
  .communication-template-list { grid-template-columns: 1fr; }
  .communication-integration-summary,
  .communication-summary-features { grid-template-columns: 1fr; }
}

/* Shared operational review and emergency-contact editor. */
.lesson-schedule-review { padding: 14px 18px; }
.lesson-schedule-review summary { cursor: pointer; margin-top: 6px; }
.lesson-schedule-review li { margin-block: 6px; }
.emergency-contacts-fields { display: grid; gap: 12px; min-width: 0; }
.emergency-contacts-fields > button { justify-self: start; }
.emergency-contacts-fields__heading { width: 100%; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.emergency-contacts-fields__heading .ui-button { min-height: 32px; padding: 5px 9px; font-size: 12px; }
.student-detail-list .student-emergency-summary > div { grid-template-columns: max-content minmax(0, 1fr); }
.student-emergency-summary dt { white-space: nowrap; }
.student-emergency-summary dd { overflow-wrap: anywhere; }
.emergency-contact-remove__lid { transform-origin: 5px 6px; transition: transform 180ms ease-out; }
.emergency-contact-remove:is(:hover, :focus-visible) .emergency-contact-remove__lid { transform: translateY(-1px) rotate(-12deg); }
.student-profile-modal .ui-modal__heading { flex: 1; min-width: 0; }
.student-profile-edit { flex-shrink: 0; margin-top: 20px; }
.student-profile-modal .ui-modal__header { gap: 12px; }
:is(.student-profile-edit, .meynt-edit-action, button:has(> .lucide-pencil)) svg { transition: transform 180ms ease-out; }
:is(.student-profile-edit, .meynt-edit-action, button:has(> .lucide-pencil)):not(:disabled):not([aria-disabled="true"]):is(:hover, :focus-visible) svg { transform: rotate(-10deg); }
:is(.student-profile-edit, .meynt-edit-action, button:has(> .lucide-pencil)):is(:disabled, [aria-disabled="true"]) svg { transition: none; transform: none; }
:is(.student-profile-edit, .meynt-edit-action, button:has(> .lucide-pencil)):focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .emergency-contact-remove__lid, :is(.student-profile-edit, .meynt-edit-action, button:has(> .lucide-pencil)) svg { transition: none; }
  .emergency-contact-remove:is(:hover, :focus-visible) .emergency-contact-remove__lid,
  :is(.student-profile-edit, .meynt-edit-action, button:has(> .lucide-pencil)):not(:disabled):not([aria-disabled="true"]):is(:hover, :focus-visible) svg { transform: none; }
}
/* Aulas: controles estáveis, paginação e histórico de cancelamento. */
.lessons-page > .page-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 20px; }
.lessons-page > .page-heading > div { display: contents; }
.lessons-page > .page-heading .eyebrow { grid-column: 1; grid-row: 1; }
.lessons-page > .page-heading h2 { grid-column: 1; grid-row: 2; margin: 0; }
.lessons-page > .page-heading p { grid-column: 1 / -1; grid-row: 3; margin: 0; }
.lessons-page > .page-heading > button { grid-column: 2; grid-row: 2; align-self: center; }
.lessons-page .lesson-filters { display: grid; grid-template-columns: 260px 220px 200px; gap: 10px; }
.lessons-page .lesson-filters > * { width: 100%; min-width: 0; }
.lessons-page .lesson-filters .filter-dropdown__trigger { width: 100%; min-height: 44px; }
.lessons-page .lesson-filters .filter-dropdown__trigger span { white-space: normal; text-overflow: clip; }
.lesson-month-dialog { display: grid; gap: 16px; }
.lesson-month-year { display: flex; align-items: center; justify-content: space-between; }
.lesson-month-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.lesson-month-grid .button { min-width: 0; padding: 10px 4px; font-size: 12px; }
.lesson-month-grid .button, .lesson-month-current { border: 1px solid var(--line); min-height: 40px; }
.lesson-month-grid .button:hover, .lesson-month-current:hover { background: var(--surface-soft); border-color: var(--orange); }
.lesson-month-grid .button:focus-visible, .lesson-month-current:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.lesson-month-current { justify-self: start; }
.lesson-historical-attendance { display: grid; gap: 4px; font-size: 12px; }
.lesson-historical-attendance small { white-space: pre-wrap; overflow-wrap: anywhere; }
/* Only the shell scroller; modal/select scroll behavior is unchanged. */
.lesson-month-grid [aria-pressed="true"], .lesson-pagination [aria-current="page"] { color: var(--app-primary-hover); border-color: var(--orange); background: var(--warning-soft); opacity: 1; }
.lesson-result-count { color: var(--muted); font-size: 13px; white-space: nowrap; }
.lesson-pagination { justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.lesson-pagination nav, .lesson-pagination-numbers, .lesson-pagination-numbers > span { display: flex; align-items: center; gap: 4px; }
.lesson-pagination-numbers button { min-width: 34px; padding: 8px; }
.lesson-pagination .lesson-pagination-summary { font-size: 12px; font-weight: 500; }
.lesson-pagination-mobile { display: none; }
.lesson-schedule-review { position: relative; border-color: rgba(254,88,0,.35); }
/* Keep attention on a separate paint layer from the shell's entrance animation. */
.lesson-schedule-review::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  box-shadow: inset 0 0 0 1px rgba(254,88,0,.35), inset 0 0 8px rgba(254,88,0,.12);
  animation: lesson-review-pulse 2s ease-in-out 4;
}
@keyframes lesson-review-pulse { 0%,100% { opacity: 0; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lesson-schedule-review::after { animation: none; } }
.live-lesson-card--cancelled { background: var(--navy-2); }
.lesson-cancellation-info { border-left: 3px solid var(--orange); padding: 10px 14px; line-height: 1.5; overflow-wrap: anywhere; }
.lesson-cancellation-info p { margin: 6px 0; }
.lesson-cancellation-info small { color: var(--muted); }
@media (max-width: 1100px) {
  .lessons-page .lesson-filters { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .lessons-page > .page-heading { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
  .lessons-page > .page-heading > div { display: block; }
  .lessons-page > .page-heading > button { align-self: flex-start; }
  .lesson-pagination { justify-content: center; }
  .lesson-pagination-summary { width: 100%; text-align: center; }
  .lesson-pagination-numbers { display: none; }
  .lesson-pagination-mobile { display: inline; }
  .lesson-pagination nav { gap: 10px; }
}
.lesson-schedule-review__action { max-width: 100%; padding: 0; font: inherit; text-align: left; white-space: normal; overflow-wrap: anywhere; }
.lesson-schedule-review__name { color: var(--app-primary-hover); }

/* Read-only comparison inside the existing public approval candidate. */
.public-student-match article > div { min-width: 0; flex: 1; }
.public-student-differences { margin-top: 12px; display: grid; gap: 12px; }
.public-student-differences h4, .public-student-differences h5, .public-student-differences h6, .public-student-differences p { margin: 0; }
.public-student-differences h4 { font-size: 15px; }
.public-student-differences h5 { font-size: 14px; }
.public-student-differences h6 { font-size: 13px; }
.public-student-differences p { color: var(--muted); font-size: 13px; line-height: 1.5; }
.public-student-differences > section { display: grid; gap: 10px; }
.public-student-differences__identity { padding: 12px; border: 1px solid #f1c38f; border-radius: var(--radius-sm); background: #fffaf4; }
.public-student-differences__field { padding-top: 10px; border-top: 1px solid var(--line); min-width: 0; }
.public-student-differences dl { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; margin: 6px 0 0; }
.public-student-differences dl > div { min-width: 0; }
.public-student-differences dt { color: var(--muted); font-size: 12px; }
.public-student-differences dd { margin: 4px 0 0; font-size: 13px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }
@media (max-width: 600px) { .public-student-differences dl { grid-template-columns: minmax(0,1fr); } }
/* 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. */

/* Logout: retain the red cue without the heavy red outline. */
.logout-button {
  border: 0 !important;
  background: transparent !important;
  color: #ef6a6a !important;
}

.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. */

@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); }
}

@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); }
}

/* 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: 1700;
  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: 1700;
  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. */

.module-loading {
  position: fixed;
  inset: var(--shell-header, 72px) 0 var(--shell-footer-height, 22px) var(--shell-rail, 78px);
  /* Route feedback belongs below the persistent navigation and header. */
  z-index: 29;
  display: grid;
  min-height: 260px;
  place-items: center;
  background: color-mix(in srgb, var(--app-bg) 82%, transparent);
  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 var(--app-border);
  border-radius: 14px;
  background: color-mix(in srgb, var(--app-surface) 97%, transparent);
  box-shadow: var(--app-shadow);
  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: var(--app-primary-soft);
}

.module-loading__mark::before,
.module-loading__mark::after,
.module-loading__mark > span {
  content: '';
  position: absolute;
  width: 5px;
  border-radius: 99px;
  background: var(--app-action-text);
  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: var(--app-text);
  font-size: 13px;
}

.module-loading__card small {
  color: var(--app-text-muted);
  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; }
}

/* 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;
}
.enrollment-modal__body:not(.ui-scrollbar) {
  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:not(.ui-scrollbar)::-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 {
    flex-direction: row;
    gap: 10px;
    padding: 7px 14px;
    text-align: left;
  }

  .module-loading { inset: var(--shell-header, 64px) 0 var(--shell-footer-height, 22px); }

  .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;
  }
}

/* Shared DatePicker month/year navigation uses the existing theme tokens. */
.date-picker__selection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 12px 0; }
.date-picker__selection-grid button { min-width: 0; min-height: 38px; padding: 6px 3px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--app-text); font: inherit; font-size: 12px; cursor: pointer; text-transform: capitalize; }
.date-picker__selection-grid button:hover:not(:disabled) { background: var(--app-primary-soft); }
.date-picker__selection-grid button[aria-pressed='true'] { background: var(--app-primary-fill); color: var(--meynt-white); }
.date-picker__selection-grid button:disabled { opacity: .35; cursor: not-allowed; }
.date-picker__selection-grid button:focus-visible { outline: 2px solid var(--app-focus); outline-offset: 1px; }
.date-picker__year-range { margin: 12px 0 0; color: var(--app-text-muted); text-align: center; font-size: 12px; }
/* 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;
  }
}
.enrollment-billing-box {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(15, 42, 82, 0.12);
  border-radius: 16px;
  background: rgba(247, 249, 252, 0.72);
}

.enrollment-billing-box__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.enrollment-billing-box__heading > div {
  display: grid;
  gap: 3px;
}

.enrollment-billing-box__heading strong {
  color: #082451;
  font-size: 15px;
}

.enrollment-billing-box__heading small {
  max-width: 430px;
  color: #687b99;
  line-height: 1.45;
  text-align: right;
}

.enrollment-billing-entries {
  display: grid;
  gap: 12px;
}

.enrollment-billing-entry {
  display: grid;
  gap: 14px;
  padding: 15px;
  border: 1px solid rgba(15, 42, 82, 0.12);
  border-radius: 14px;
  background: #fff;
}

.enrollment-billing-entry__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.enrollment-billing-entry__header > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.enrollment-billing-entry__header > div > span:last-child {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.enrollment-billing-entry__header strong {
  color: #082451;
  font-size: 14px;
}

.enrollment-billing-entry__header small {
  color: #71819a;
  font-size: 11px;
}

.enrollment-billing-entry__art {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  background: rgba(255, 90, 0, 0.08);
  color: #d94c00;
}

.enrollment-partner-choice {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 90, 0, 0.22);
  border-radius: 10px;
  background: rgba(255, 90, 0, 0.045);
  color: #082451;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.enrollment-partner-choice input {
  margin: 0;
  accent-color: #ff5a00;
}

.enrollment-billing-controls {
  align-items: end;
}

.enrollment-billing-controls.enrollment-recurring-exemption { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; align-items: start; }

.enrollment-discount-toggle {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 42, 82, 0.12);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}

.enrollment-discount-toggle input {
  width: 18px;
  height: 18px;
  accent-color: #ff5a00;
  flex: 0 0 auto;
}

.enrollment-discount-toggle > span {
  display: grid;
  gap: 3px;
}

.enrollment-discount-toggle strong {
  color: #082451;
  font-size: 13px;
}

.enrollment-discount-toggle small {
  color: #687b99;
  line-height: 1.35;
}

.enrollment-discount-field {
  max-width: 320px;
}

.enrollment-billing-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.enrollment-billing-summary > div {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid rgba(15, 42, 82, 0.09);
  border-radius: 11px;
  background: #fff;
}

.enrollment-billing-summary span {
  color: #71819a;
  font-size: 11px;
}

.enrollment-billing-summary strong {
  color: #082451;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.enrollment-billing-summary__total {
  border-color: rgba(255, 90, 0, 0.28) !important;
  background: rgba(255, 90, 0, 0.045) !important;
}

.enrollment-billing-summary__total strong {
  color: #d94c00;
}

.enrollment-registration-fee {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px;
  border: 1px solid rgba(15, 42, 82, 0.11);
  border-radius: 12px;
  background: #fff;
}

.enrollment-registration-fee > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.enrollment-registration-fee > div > strong {
  color: #082451;
  font-size: 13px;
}

.enrollment-registration-fee > div > small {
  color: #71819a;
  font-size: 11px;
  line-height: 1.35;
}

.enrollment-registration-fee > strong {
  flex: 0 0 auto;
  color: #082451;
  font-size: 15px;
}

.enrollment-registration-fee__waived {
  color: #16835d !important;
}

.active-enrollment-row {
  grid-template-columns: auto minmax(0, 1fr) auto auto !important;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.active-enrollment-row:hover,
.active-enrollment-row:focus-visible {
  background: rgba(247, 249, 252, 0.9);
  outline: none;
  box-shadow: inset 3px 0 0 rgba(255, 90, 0, 0.72);
}

.active-enrollment-row__identity,
.active-enrollment-row__billing {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.active-enrollment-row__identity small,
.active-enrollment-row__billing small {
  color: #71819a;
}

.active-enrollment-row__billing {
  justify-items: end;
  text-align: right;
}

.active-enrollment-row__billing strong {
  color: #082451;
}

.status-badge--suspended {
  color: #8a5a00;
  background: rgba(245, 158, 11, 0.12);
}

.drawer--enrollment-detail {
  width: min(640px, 100vw);
}

.enrollment-detail-content {
  gap: 16px;
}

.enrollment-detail-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.enrollment-detail-hero > div {
  display: grid;
  gap: 3px;
}

.enrollment-detail-hero h3,
.enrollment-detail-hero p {
  margin: 0;
}

.enrollment-detail-hero p {
  color: #71819a;
  font-size: 12px;
}

.enrollment-detail-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.enrollment-detail-section-heading > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.enrollment-detail-section-heading h3 {
  margin: 0;
}

.enrollment-detail-finance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.enrollment-detail-total {
  border-color: rgba(255, 90, 0, 0.28) !important;
  background: rgba(255, 90, 0, 0.045) !important;
}

.enrollment-detail-total strong {
  color: #d94c00 !important;
}

.enrollment-detail-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.enrollment-detail-edit-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.enrollment-detail-edit-grid > .enrollment-billing-controls { grid-column: 1 / -1; }

.enrollment-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.enrollment-detail-cancel {
  color: #b42318;
}

.enrollment-history-list {
  display: grid;
  gap: 8px;
}

.enrollment-history-list > div {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border: 1px solid rgba(15, 42, 82, 0.09);
  border-radius: 10px;
  background: #fff;
}

.enrollment-history-list span {
  color: #082451;
  font-size: 12px;
}

.enrollment-history-list small {
  color: #71819a;
}

.public-approval-confirm--billing {
  width: 100%;
  display: grid;
  gap: 14px;
}

.public-approval-billing {
  display: grid;
  gap: 14px;
  width: 100%;
  padding: 16px;
  border: 1px solid rgba(15, 42, 82, 0.12);
  border-radius: 14px;
  background: #fff;
}

.public-approval-billing__heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.public-approval-billing__heading strong {
  color: #082451;
}

.public-approval-billing__heading span {
  color: #71819a;
  font-size: 12px;
}

.public-approval-confirm__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.enrollment-billing-summary--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 760px) {
  .enrollment-billing-box {
    padding: 14px;
  }

  .enrollment-billing-box__heading,
  .public-approval-billing__heading,
  .enrollment-billing-entry__header {
    display: grid;
  }

  .enrollment-billing-box__heading small {
    max-width: none;
    text-align: left;
  }

  .enrollment-partner-choice {
    justify-self: start;
  }

  .enrollment-billing-summary,
  .enrollment-billing-summary--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .active-enrollment-row {
    grid-template-columns: auto minmax(0, 1fr) auto !important;
  }

  .active-enrollment-row__billing {
    grid-column: 2;
    justify-items: start;
    text-align: left;
  }

  .active-enrollment-row > .status-badge {
    grid-column: 3;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 480px) {
  .enrollment-billing-entry {
    padding: 12px;
  }

  .enrollment-billing-summary,
  .enrollment-billing-summary--compact,
  .enrollment-detail-finance-grid,
  .enrollment-detail-edit-grid {
    grid-template-columns: 1fr 1fr;
  }

  .enrollment-registration-fee {
    align-items: flex-start;
  }

  .enrollment-detail-actions,
  .enrollment-detail-edit-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .enrollment-detail-actions .button,
  .enrollment-detail-edit-actions .button {
    width: 100%;
  }

  .public-approval-confirm__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .public-approval-confirm__actions .button {
    width: 100%;
  }
}

/* Enrollment detail follows the compact Meynt enrollment cards. */
.enrollment-detail-modal .enrollment-detail-content { gap: 16px; }
.enrollment-detail-modal .form-section { padding: 16px 8px; border-color: var(--app-border); background: var(--app-surface); border-radius: var(--app-radius-control); min-width: 0; }
.enrollment-detail-modal .enrollment-detail-hero { padding-block: 12px; text-align: left; justify-content: flex-start; }
.enrollment-detail-modal .enrollment-detail-hero > div { width: 100%; min-width: 0; }
.enrollment-detail-modal .enrollment-detail-identity { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.enrollment-detail-modal .enrollment-detail-identity h3 { font-size: 20px; line-height: 1.3; font-weight: 600; overflow-wrap: anywhere; }
.enrollment-detail-modal .enrollment-detail-hero p { color: var(--app-text-muted); }
.enrollment-detail-modal .form-section > h3,
.enrollment-detail-modal .enrollment-detail-section-heading h3 { font-size: 14px; line-height: 1.5; font-weight: 600; color: var(--app-text); }
.enrollment-detail-modal .enrollment-detail-section-heading svg { color: var(--app-primary); }
.enrollment-detail-modal .enrollment-detail-finance-grid .ui-summary-card { padding: 10px; border: 0; background: var(--app-surface-muted); min-width: 0; }
.enrollment-detail-modal .ui-summary-card > span { color: var(--app-text-muted); font-size: 11px; }
.enrollment-detail-modal .ui-summary-card > strong { color: var(--app-text); font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.enrollment-detail-modal .enrollment-detail-total { border-color: transparent !important; background: var(--app-primary-soft) !important; }
.enrollment-detail-modal .enrollment-detail-total strong { color: var(--app-primary) !important; }
.enrollment-detail-modal .inline-note { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; background: var(--app-surface-muted); color: var(--app-text-muted); border: 1px solid var(--app-border); border-radius: var(--app-radius-control); }
.enrollment-detail-modal .inline-note svg { flex-shrink: 0; color: var(--app-primary); }
.enrollment-detail-modal .enrollment-detail-actions { flex-wrap: wrap; gap: 8px; }
.enrollment-detail-modal .enrollment-history-list > div { background: var(--app-surface-muted); border-color: var(--app-border); padding: 10px 12px; }
.enrollment-detail-modal .enrollment-history-list span { color: var(--app-text); overflow-wrap: anywhere; }
.enrollment-detail-modal .enrollment-history-list small { color: var(--app-text-muted); overflow-wrap: anywhere; }
@media (max-width: 639px) {
  .enrollment-detail-modal .enrollment-detail-finance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .enrollment-detail-modal .enrollment-detail-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
}

.enrollment-detail-modal .ui-modal__body { padding-top: 12px; }
.enrollment-detail-modal .enrollment-detail-hero { padding: 0 0 16px; border: 0; border-bottom: 1px solid var(--app-border); border-radius: 0; background: transparent; }
.enrollment-detail-modal .enrollment-detail-finance-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.enrollment-detail-modal .enrollment-detail-total { grid-column: span 2; }
.enrollment-history-modal .enrollment-history-list > div { padding: 12px 0; border: 0; border-bottom: 1px solid var(--app-border); border-radius: 0; background: transparent; }
.enrollment-history-modal .enrollment-history-list > div:last-child { border-bottom: 0; }
.enrollment-history-modal .enrollment-history-list span,
.enrollment-history-modal .enrollment-history-list small { overflow-wrap: anywhere; }
.enrollment-history-modal .enrollment-history-list small { color: var(--app-text-muted); }
@media (max-width: 639px) {
  .enrollment-detail-modal .enrollment-detail-finance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .enrollment-detail-modal .enrollment-detail-total { grid-column: auto; }
}

/* Compact detail header and shared ghost actions. */
.enrollment-detail-modal .ui-modal__header { padding-bottom: 8px; border-bottom: 0; gap: 12px; }
.enrollment-detail-modal .ui-modal__heading { flex: 1; min-width: 0; }
.enrollment-detail-modal .ui-modal__title { overflow-wrap: anywhere; }
.enrollment-detail-modal .ui-modal__close { flex: 0 0 36px; }
.enrollment-detail-modal .enrollment-history-action { flex: 0 0 auto; width: auto; }
.enrollment-detail-code-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.enrollment-detail-code-row > span { min-width: 0; overflow-wrap: anywhere; }
.enrollment-detail-modal .ui-modal__body { padding-top: 4px; }
.enrollment-detail-modal .enrollment-history-action.ui-button { min-width: 0; min-height: 36px; padding: 0 10px; font-size: 12px; font-weight: 500; background: transparent; border-color: transparent; box-shadow: none; transition: background-color 160ms ease, color 160ms ease, transform 160ms ease; }
.enrollment-detail-modal .enrollment-history-action:hover:not(:disabled) { background: var(--app-surface-muted); }
.enrollment-detail-modal .enrollment-history-action:focus-visible { outline: 2px solid var(--app-focus); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
    .enrollment-detail-modal .enrollment-history-action.ui-button { transition: none; transform: none !important; }
}

.enrollment-detail-modal .meynt-edit-action.enrollment-section-action { box-sizing: border-box; flex-shrink: 0; width: 108px; min-width: 108px; height: 36px; min-height: 36px; padding: 0 10px; gap: 9px; align-items: center; justify-content: center; white-space: nowrap; font-size: 12px; font-weight: 500; }

/* Use the approved dark control and surface tokens throughout enrollment flows. */
:root[data-theme='dark'] :is(.enrollment-page, .public-approval-modal, .enrollment-activation-modal, .enrollment-detail-modal, .existing-enrollment-modal) :is(input:not([type='checkbox']):not([type='radio']), textarea, select, .filter-dropdown__trigger, .currency-input, .registration-review-money-control) {
  background: var(--ui-control-bg);
  color: var(--ui-control-text);
  border-color: var(--ui-control-border);
}
:root[data-theme='dark'] :is(.enrollment-page, .public-approval-modal, .enrollment-activation-modal, .enrollment-detail-modal, .existing-enrollment-modal) :is(.field > span, .public-approval-billing__heading strong, .public-approval-summary strong, .public-approval-summary b, .enrollment-registration-fee strong) { color: var(--app-text); }
:root[data-theme='dark'] :is(.enrollment-page, .public-approval-modal, .enrollment-activation-modal, .enrollment-detail-modal, .existing-enrollment-modal) :is(.form-section, .enrollment-class-choice, .enrollment-registration-fee) { border-color: var(--app-border); }
:root[data-theme='dark'] :is(.enrollment-page, .public-approval-modal, .enrollment-activation-modal, .enrollment-detail-modal, .existing-enrollment-modal) :is(.form-section, .enrollment-registration-fee, .ui-modal__footer) { background: var(--app-surface); }
:root[data-theme='dark'] :is(.enrollment-page, .public-approval-modal, .enrollment-activation-modal, .enrollment-detail-modal, .existing-enrollment-modal) :is(.enrollment-billing-summary__total strong, .class-assignment-option__badge--selected, .class-assignment-option__badge--current) { color: var(--app-action-text); }
:root[data-theme='dark'] :is(.public-approval-modal, .enrollment-activation-modal, .existing-enrollment-modal) .class-assignment-option__badge--recommended { background: var(--app-success-soft); color: var(--app-success); }
:root[data-theme='dark'] :is(.enrollment-page, .public-approval-modal, .enrollment-activation-modal, .enrollment-detail-modal, .existing-enrollment-modal) .filter-dropdown__trigger:hover { border-color: var(--app-border-strong); transform: none; }
:root[data-theme='dark'] :is(.enrollment-page, .public-approval-modal, .enrollment-activation-modal, .enrollment-detail-modal, .existing-enrollment-modal) :is(.field > input, .ui-day-input > input, textarea, .filter-dropdown__trigger):focus-visible,
:root[data-theme='dark'] :is(.enrollment-page, .public-approval-modal, .enrollment-activation-modal, .enrollment-detail-modal, .existing-enrollment-modal) .filter-dropdown--open .filter-dropdown__trigger { border-color: var(--app-focus); box-shadow: 0 0 0 3px var(--app-focus-ring); }
:root[data-theme='dark'] .public-approval-modal .public-approval-decision[data-required-empty='true'] .filter-dropdown__trigger,
:root[data-theme='dark'] .public-approval-modal :is(input, textarea)[aria-invalid='true'],
:root[data-theme='dark'] .public-approval-modal .registration-class-trigger--required { border-color: var(--app-danger-text) !important; }
:root[data-theme='dark'] :is(.public-approval-modal, .enrollment-activation-modal, .existing-enrollment-modal) .registration-review-money-control > span { color: var(--app-text-muted); }

:root[data-theme='dark'] .enrollment-page .search-box { background: var(--ui-control-bg); color: var(--ui-control-muted); border-color: var(--ui-control-border); }
:root[data-theme='dark'] .enrollment-page .segmented-tabs { background: var(--app-surface); border-color: var(--app-border); }
:root[data-theme='dark'] .enrollment-page .segmented-tabs button { background: transparent; color: var(--app-text-muted); }
:root[data-theme='dark'] .enrollment-page .segmented-tabs button[aria-selected='true'] { background: var(--app-primary-soft); color: var(--app-action-text); }
:root[data-theme='dark'] .enrollment-page .active-enrollment-row strong { color: var(--app-text); }
:root[data-theme='dark'] .enrollment-page .active-enrollment-row small { color: var(--app-text-muted); }
:root[data-theme='dark'] .enrollment-page .active-enrollment-row:is(:hover, :focus-visible) { background: var(--app-surface-muted); box-shadow: none; }
:root[data-theme='dark'] .enrollment-page .active-enrollment-row:focus-visible { outline: 2px solid var(--app-focus); outline-offset: 2px; }

:root[data-theme='dark'] :is(.enrollment-page, .public-approval-modal) .filter-dropdown__icon { background: var(--app-surface-muted); color: var(--app-text-muted); }
:root[data-theme='dark'] .enrollment-page .eyebrow { color: var(--app-action-text); }
:root[data-theme='dark'] .enrollment-page .public-link-card__icon { background: var(--app-primary-soft); color: var(--app-action-text); }
:root[data-theme='dark'] .enrollment-page .public-submission__reviewed { background: var(--app-surface-muted); border-color: var(--app-border); }
.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-layout {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 320px;
  height: 100dvh;
  min-height: 100dvh;
  grid-template-columns: minmax(0, 1.56fr) minmax(440px, 1fr);
  overflow: hidden;
  background: var(--app-bg);
  color: var(--app-text);
}

.login-story {
  position: relative;
  min-width: 0;
  height: 100dvh;
  overflow: hidden;
  background: #041a35;
  color: var(--meynt-white);
}

.login-story::before,
.login-story::after {
  position: absolute;
  inset: 0;
  content: '';
}

.login-story::before {
  background: url('/brand/meynt/login-hero-photo.png') center 42% / cover no-repeat;
  filter: saturate(.82) contrast(1.04);
  transform: scale(1.012);
}

.login-story::after {
  background:
    radial-gradient(ellipse at 0% 18%, rgb(6 182 249 / .27), transparent 31%),
    radial-gradient(ellipse at 2% 0%, rgb(37 99 235 / .4), transparent 38%),
    linear-gradient(90deg, rgb(4 23 48 / .93) 0%, rgb(4 25 52 / .76) 39%, rgb(4 27 57 / .30) 70%, rgb(4 27 57 / .18) 100%),
    linear-gradient(180deg, rgb(5 30 61 / .22) 0%, rgb(4 24 50 / .16) 46%, rgb(3 20 43 / .90) 100%);
}

.login-story__light-ribbon {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.login-story__inner {
  position: relative;
  z-index: 2;
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  align-items: center;
  padding: clamp(54px, 6vh, 68px) clamp(42px, 6vw, 94px) clamp(28px, 4vh, 48px);
}

.login-story__brand { align-self: start; }
.login-story__brand .brand__logo-full { width: clamp(270px, 23vw, 340px); }

.login-story__copy {
  align-self: center;
  width: min(100%, 630px);
  padding: clamp(24px, 5vh, 62px) 0 24px;
}

.login-story__copy h1 {
  max-width: 610px;
  margin: 0 0 22px;
  color: var(--meynt-white);
  font-size: clamp(42px, 4.1vw, 66px);
  font-weight: 780;
  line-height: 1.02;
  letter-spacing: -.048em;
}

.login-story__title-line,
.login-story__title-accent {
  display: block;
}

.login-story__title-accent {
  background: linear-gradient(90deg, var(--meynt-cyan) 0%, #18c9dd 45%, var(--meynt-green) 100%);
  background-clip: text;
  color: transparent;
}

.login-story__copy p {
  max-width: 535px;
  margin: 0;
  color: rgb(248 250 252 / .86);
  font-size: clamp(14px, 1.12vw, 17px);
  font-weight: 430;
  line-height: 1.62;
}

.login-story__proof {
  display: grid;
  width: min(100%, 650px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-self: end;
  border-top: 1px solid rgb(255 255 255 / .18);
  margin-bottom: clamp(42px, 6vh, 66px);
  padding-top: 20px;
}

.login-story__proof-item {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 6px;
  border-right: 1px solid rgb(255 255 255 / .14);
  padding: 0 24px;
}

.login-story__proof-item:first-child { padding-left: 0; }
.login-story__proof-item:last-child { border-right: 0; padding-right: 0; }
.login-story__proof-item svg { margin-bottom: 2px; color: var(--meynt-cyan); }
.login-story__proof-item:nth-child(3) svg { color: var(--meynt-green); }
.login-story__proof-item strong { color: var(--meynt-white); font-size: 14px; line-height: 1.25; }
.login-story__proof-item span { max-width: 175px; color: rgb(248 250 252 / .72); font-size: 11.5px; line-height: 1.5; }

.login-story__signature {
  display: flex;
  align-items: center;
  gap: 14px;
  align-self: end;
  padding-top: 19px;
  color: rgb(248 250 252 / .67);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .32em;
  text-transform: uppercase;
}

.login-story__signature > span {
  width: 36px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--meynt-cyan), var(--meynt-green));
}

.login-panel {
  display: grid;
  min-width: 0;
  height: 100dvh;
  place-items: center;
  overflow: hidden;
  background: var(--meynt-white);
  padding: 0 clamp(28px, 3.5vw, 64px);
}

.login-panel__inner {
  display: flex;
  width: min(100%, 540px);
  height: 100dvh;
  min-height: 0;
  flex-direction: column;
  padding: clamp(28px, 5vh, 52px) 0 24px;
}

.login-panel__signup {
  display: flex;
  width: min(100%, 440px);
  margin-inline: auto;
  min-height: 18px;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  color: #687891;
  font-size: 11px;
}

.login-panel__signup button,
.login-forgot-password button,
.login-card__support button {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--meynt-blue);
  font: inherit;
  font-weight: 720;
}

.login-panel__signup button:hover,
.login-panel__signup button:focus-visible,
.login-forgot-password button:hover,
.login-forgot-password button:focus-visible,
.login-card__support button:hover,
.login-card__support button:focus-visible {
  text-decoration: underline;
}

.login-panel__brand {
  display: flex;
  justify-content: center;
  margin: clamp(36px, 7vh, 76px) 0 clamp(24px, 4vh, 42px);
}

.login-panel__brand .brand__logo-full { width: clamp(190px, 17vw, 225px); }

.login-card {
  width: min(100%, 440px);
  min-width: 0;
  margin: 0 auto;
  border: 0;
  background: transparent;
  padding: 0;
}

.login-card h2 {
  margin: 0 0 6px;
  color: var(--meynt-navy);
  font-size: clamp(27px, 2.2vw, 31px);
  font-weight: 760;
  line-height: 1.12;
  letter-spacing: -.035em;
  text-align: center;
}

.login-card__intro {
  margin: 0 0 clamp(18px, 2.3vh, 24px);
  color: #8490a4;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.login-form { gap: 12px; }

.login-layout .field {
  gap: 6px;
  color: var(--meynt-navy);
  font-size: 12px;
  font-weight: 700;
}

.login-layout .field__control { position: relative; }
.login-layout .field__control > svg { left: 14px; color: #64748b; }

.login-layout .field input {
  min-height: 48px;
  border: 1px solid #cfd8e5;
  border-radius: 9px;
  background: var(--meynt-white);
  color: var(--meynt-navy);
  padding: 10px 43px;
  font-size: 13px;
  font-weight: 500;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.login-layout .field input::placeholder { color: #98a4b7; }
.login-layout .field input:hover { border-color: #acb9cd; }
.login-layout .field input:focus { border-color: var(--meynt-blue); box-shadow: 0 0 0 3px var(--app-focus-ring); }
.login-layout .field__reveal { right: 7px; color: #64748b; }

.login-layout .field__reveal:hover,
.login-layout .field__reveal:focus-visible {
  background: var(--app-primary-soft);
  color: var(--meynt-blue);
}

.login-forgot-password {
  display: flex;
  justify-content: flex-end;
  margin-top: -5px;
}

.login-forgot-password button { font-size: 11px; }

@property --login-cta-midpoint {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 50%;
}

@property --login-glow-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

.login-submit-wrap {
  position: relative;
  isolation: isolate;
  border-radius: 9px;
}

.login-submit-wrap::before {
  position: absolute;
  z-index: -1;
  inset: -3px;
  border-radius: inherit;
  content: '';
  pointer-events: none;
  background: conic-gradient(from var(--login-glow-angle), var(--meynt-blue), var(--meynt-cyan), var(--meynt-green), var(--meynt-cyan), var(--meynt-blue));
  filter: blur(9px);
  opacity: .42;
  animation: login-cta-glow 7s linear infinite;
  transition: opacity 180ms ease;
}

.login-submit-wrap:has(.login-submit:hover:not(:disabled))::before { opacity: .5; }

/* The entire gradient stays inside the button. Only its cyan midpoint moves;
   blue/green retain fixed visible shoulders throughout the complete cycle.
   Include hover to outrank the shared primary button's background shorthand. */
.login-submit.button--primary,
.login-submit.button--primary:hover:not(:disabled) {
  background-image: linear-gradient(90deg, var(--meynt-blue) 0% 12%, var(--meynt-cyan) var(--login-cta-midpoint), var(--meynt-green) 88% 100%);
  background-size: 100% 100%;
}

.login-submit.button--primary {
  position: relative;
  min-height: 49px;
  border: 0;
  border-radius: 9px;
  animation: login-cta-flow 6s ease-in-out infinite;
  color: var(--meynt-white);
  box-shadow: 0 7px 22px rgb(37 99 235 / .14), 0 0 12px rgb(6 182 249 / .08);
  transition: box-shadow 180ms ease, transform 120ms ease;
  font-size: 14px;
  font-weight: 780;
}

.login-submit.button--primary:hover:not(:disabled) {
  border: 0;
  box-shadow: 0 8px 24px rgb(37 99 235 / .17), 0 0 14px rgb(6 182 249 / .1);
  transform: translateY(-1px);
}

.login-submit.button--primary:active:not(:disabled) { transform: scale(.985); }
.login-submit.button--primary:disabled { opacity: 1; }

@keyframes login-cta-flow {
  0%, 100% { --login-cta-midpoint: 38%; }
  50% { --login-cta-midpoint: 62%; }
}

@keyframes login-cta-glow {
  to { --login-glow-angle: 360deg; }
}

.login-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin: clamp(16px, 2.1vh, 21px) 0 13px;
  color: #6c7a8f;
  font-size: 11px;
  font-weight: 650;
}

.login-divider::before,
.login-divider::after {
  height: 1px;
  background: #d7dfeb;
  content: '';
}

.login-google {
  display: inline-flex;
  width: 100%;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid #e3e8f0;
  border-radius: 9px;
  background: #f4f7fb;
  color: var(--meynt-navy);
  font: inherit;
  font-size: 14px;
  font-weight: 750;
  transition: transform 160ms ease;
}

.login-google:disabled { opacity: 1; cursor: not-allowed; }
.login-google:hover { transform: translateY(-1px); }
.login-google__icon { width: 19px; height: 19px; flex: 0 0 auto; }

.login-layout .form-error {
  border-color: color-mix(in srgb, var(--app-danger) 28%, transparent);
  border-radius: 9px;
  background: var(--app-danger-soft);
  color: var(--app-danger-text);
}

.login-card__support {
  margin: clamp(16px, 2.3vh, 22px) 0 0;
  color: #8190a4;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

.app-version-footer--login {
  position: relative;
  inset: auto;
  z-index: 2;
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: auto;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: auto 0 0;
  border: 0;
  background: transparent;
  padding: 12px 0 0;
  color: #8190a4;
  font-size: 10px;
  text-align: center;
}

:root[data-theme='dark'] .login-panel {
  background: #061529;
}

:root[data-theme='dark'] .login-panel__signup,
:root[data-theme='dark'] .login-card__intro,
:root[data-theme='dark'] .login-card__support,
:root[data-theme='dark'] .app-version-footer--login { color: #a7b4c8; }

:root[data-theme='dark'] .login-card h2,
:root[data-theme='dark'] .login-layout .field { color: var(--meynt-background); }

:root[data-theme='dark'] .login-layout .field input {
  border-color: #294b6e;
  background: #091b2e;
  color: var(--meynt-background);
}

:root[data-theme='dark'] .login-layout .field input::placeholder { color: #8493a9; }
:root[data-theme='dark'] .login-divider { color: #a7b4c8; }
:root[data-theme='dark'] .login-divider::before,
:root[data-theme='dark'] .login-divider::after { background: rgb(229 231 235 / .18); }
:root[data-theme='dark'] .login-google { border-color: #294b6e; background: #091b2e; color: var(--meynt-background); }
:root[data-theme='dark'] .login-panel__signup button,
:root[data-theme='dark'] .login-forgot-password button,
:root[data-theme='dark'] .login-card__support button { color: var(--meynt-cyan); }
:root[data-theme='dark'] .login-layout .field__control > svg,
:root[data-theme='dark'] .login-layout .field__reveal { color: #b5c8df; }

@media (min-width: 901px) and (max-width: 1180px) {
  .login-layout { grid-template-columns: minmax(0, 1.3fr) minmax(430px, 1fr); }
  .login-story__inner { padding-right: 38px; padding-left: 38px; }
  .login-story__copy h1 { font-size: clamp(38px, 4.6vw, 50px); }
  .login-story__proof-item { padding-inline: 14px; }
  .login-panel { padding-inline: 14px; }
}

@media (min-width: 901px) and (max-height: 780px) {
  .login-story__inner { padding-top: 19px; padding-bottom: 17px; }
  .login-story__brand .brand__logo-full { width: 194px; }
  .login-story__copy { padding: 12px 0 10px; }
  .login-story__copy h1 { margin-bottom: 11px; font-size: clamp(32px, 5.2vh, 40px); }
  .login-story__copy p { font-size: 12px; line-height: 1.45; }
  .login-story__proof { margin-bottom: 12px; padding-top: 11px; }
  .login-story__proof-item svg { width: 21px; height: 21px; }
  .login-story__proof-item strong { font-size: 11px; }
  .login-story__proof-item span { font-size: 8px; }
  .login-story__signature { padding-top: 9px; }
  .login-panel__inner { padding-top: 24px; padding-bottom: 18px; }
  .login-panel__brand { margin: 25px 0 23px; }
  .login-panel__brand .brand__logo-full { width: 186px; }
  .login-card h2 { font-size: 25px; }
  .login-card__intro { margin-bottom: 11px; }
  .login-form { gap: 8px; }
  .login-layout .field { gap: 3px; font-size: 10px; }
  .login-layout .field input,
  .login-submit.button--primary,
  .login-google { min-height: 41px; }
  .login-divider { margin: 9px 0 7px; }
  .login-card__support { margin-top: 9px; }
  .app-version-footer--login { padding-top: 5px; }
}

@media (max-width: 900px), (max-width: 1100px) and (orientation: portrait) {
  .login-layout { display: block; height: 100dvh; min-height: 100dvh; overflow: hidden; background: var(--meynt-white); }
  .login-story { display: none; }

  .login-panel {
    position: relative;
    height: 100dvh;
    min-height: 100dvh;
    overflow: hidden;
    padding: max(14px, env(safe-area-inset-top)) clamp(20px, 6vw, 34px) max(10px, env(safe-area-inset-bottom));
    background:
      radial-gradient(ellipse at -10% -4%, rgb(37 99 235 / .14), transparent 29%),
      radial-gradient(ellipse at 112% 102%, rgb(16 185 129 / .12), transparent 31%),
      #fbfdff;
  }

  .login-panel::before,
  .login-panel::after {
    position: absolute;
    z-index: 0;
    border-radius: 46% 54% 61% 39%;
    content: '';
    pointer-events: none;
  }

  .login-panel::before {
    top: -122px;
    left: -132px;
    width: 310px;
    height: 258px;
    transform: rotate(-19deg);
    background: linear-gradient(145deg, rgb(37 99 235 / .12), rgb(6 182 249 / .045));
  }

  .login-panel::after {
    right: -126px;
    bottom: -128px;
    width: 338px;
    height: 280px;
    transform: rotate(-14deg);
    background: linear-gradient(145deg, rgb(6 182 249 / .08), rgb(16 185 129 / .12));
  }

  .login-panel__inner {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    height: 100%;
    min-height: 0;
    max-height: none;
    justify-content: flex-start;
    padding: clamp(8px, 2vh, 18px) 0 0;
  }

  .login-panel__signup { justify-content: flex-end; flex-wrap: wrap; font-size: 11px; }
  .login-panel__brand { margin: clamp(30px, 5vh, 48px) 0 clamp(28px, 4vh, 38px); }
  .login-panel__brand .brand__logo-full { width: clamp(166px, 46vw, 194px); }
  .login-card { width: 100%; }
  .login-card h2 { font-size: clamp(27px, 7vw, 31px); }
  .login-card__intro { margin-bottom: clamp(20px, 3vh, 26px); font-size: 13px; }
  .login-layout .field input,
  .login-submit.button--primary,
  .login-google { min-height: 50px; }
  .login-divider { margin: clamp(16px, 2.5vh, 22px) 0 13px; }
  .login-card__support { margin-top: clamp(18px, 2.8vh, 24px); }
  .app-version-footer--login {
    flex-direction: column;
    gap: 5px;
    margin-top: auto;
    padding: 16px 0 max(6px, env(safe-area-inset-bottom));
    line-height: 1.5;
  }

  :root[data-theme='dark'] .login-panel {
    background:
      radial-gradient(ellipse at -10% -4%, rgb(37 99 235 / .26), transparent 29%),
      radial-gradient(ellipse at 112% 102%, rgb(16 185 129 / .16), transparent 31%),
      #061529;
  }

  :root[data-theme='dark'] .login-panel::before {
    border-radius: 0;
    top: -115px;
    left: -55px;
    width: 590px;
    height: 240px;
    transform: rotate(32deg);
    background:
      radial-gradient(ellipse at 7% 95%, rgb(6 182 249 / .65), transparent 47%),
      linear-gradient(170deg, transparent 20%, rgb(37 99 235 / .26) 65%, rgb(16 185 129 / .14) 94%, rgb(6 182 249 / .32));
    box-shadow: 0 7px 22px rgb(6 182 249 / .10);
    filter: blur(2px);
    mask-image: linear-gradient(90deg, #000, #000 35%, transparent 95%);
  }

  :root[data-theme='dark'] .login-panel::after {
    border-radius: 0;
    right: -40px;
    bottom: -350px;
    width: 650px;
    height: 360px;
    transform: rotate(38deg);
    background:
      radial-gradient(ellipse at 9% 0%, rgb(16 185 129 / .55), transparent 45%),
      linear-gradient(170deg, rgb(6 182 249 / .50), rgb(37 99 235 / .38) 35%, transparent 68%);
    box-shadow: 0 -7px 26px rgb(6 182 249 / .14);
    filter: blur(4px);
    mask-image: linear-gradient(90deg, #000, #000 35%, transparent 87%);
  }
}

/* Use spare height to balance the form, not to enlarge its controls. Normal
   notebooks and smartphones retain their approved spacing. */
@media (min-width: 1101px) and (min-height: 1100px) {
  .login-panel__brand { margin-top: clamp(76px, calc((100dvh - 840px) / 2), 660px); }
}

@media (min-width: 521px) and (max-width: 1100px) and (orientation: portrait) {
  .login-panel__brand { margin-top: clamp(48px, calc((100dvh - 740px) / 2), 350px); }
}

@media (max-width: 520px) {
  .login-panel { padding-right: 20px; padding-left: 20px; }
  .login-panel__inner { padding-top: 6px; }
  .login-panel__inner > * { flex-shrink: 0; }
  /* Share available height with the footer's auto margin, keeping the brand
     and form together and centered between the signup line and the footer. */
  .login-panel__brand { margin-top: auto; }
  .login-panel__brand .brand__logo-full { width: 174px; }
  .login-card h2 { font-size: 28px; }
  .login-form { gap: 11px; }
}

@media (max-width: 520px) and (max-height: 760px) {
  .login-panel__inner { padding-top: 2px; }
  .login-panel__brand { margin-bottom: 9px; }
  .login-panel__brand .brand__logo-full { width: 142px; }
  .login-card h2 { font-size: 24px; }
  .login-card__intro { margin-bottom: 10px; font-size: 12px; }
  .login-form { gap: 7px; }
  .login-layout .field { gap: 3px; font-size: 10px; }
  .login-layout .field input,
  .login-submit.button--primary,
  .login-google { min-height: 41px; }
  .login-divider { margin: 9px 0 7px; }
  .login-card__support { margin-top: 9px; }
  .app-version-footer--login { padding-top: 5px; }
}

@media (max-width: 520px) and (max-height: 620px) {
  /* Scroll only real content when needed, never the off-screen decoration.
     Inline breathing room keeps the CTA aura outside the form unclipped. */
  .login-panel__inner {
    width: calc(100% + 32px);
    overflow-y: auto;
    padding-inline: 16px;
    scrollbar-width: thin;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-submit.button--primary,
  .login-submit-wrap::before { animation: none; transition: none; }
  .login-google { transition: none; }
  .login-submit.button--primary:hover:not(:disabled),
  .login-submit.button--primary:active:not(:disabled),
  .login-google:hover { transform: none; }
}
.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;
}

.bootstrap-loading__composition {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.bootstrap-loading__composition p {
  font-size: 13px;
  line-height: 1.5;
}

/* Reserve the approved stacked artwork's space while its image loads. */
.bootstrap-loading__composition .brand__logo-full { width: 180px; height: 121px; }
.bootstrap-loading__composition .brand__logo-full .brand__asset { height: 100%; object-fit: contain; }

.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: transparent;
}

/* 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%;
}

.module-stage,
.page-stack,
.page-stack > *,
.panel,
.panel__header > *,
.page-heading > *,
.page-heading__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,
.registration-section__header h3 {
  overflow-wrap: anywhere;
}

.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-heading {
    flex-wrap: wrap;
  }

  .page-heading__actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 850px) {

  .mobile-nav {
    bottom: 32px;
  }

  .app-version-footer {
    min-height: 32px;
  }

  .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-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;
  }

  .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;
  }
}
/* G3.3 — Team uses Meynt surfaces and the shared Modal's focus/locks. */
.team-page { gap: 24px; }
.team-page > .team-heading { align-items: flex-start; gap: 20px; }
.team-heading > div:first-child { min-width: 0; }
.team-heading .page-heading__actions { flex-shrink: 0; padding-top: 4px; }
.team-panel { overflow: hidden; }
.team-page .panel__header { min-height: 56px; padding: 12px 20px; gap: 16px; }
.team-page .panel__header h3 { font-size: 16px; color: var(--app-text); }
.team-page .panel__header p { margin: 6px 0 0; color: var(--app-text-muted); font-size: 13px; line-height: 1.5; }
.team-list__head, .team-member-card {
  display: grid; grid-template-columns: minmax(180px, 1.3fr) 168px 110px minmax(140px, 1fr) 164px;
  grid-template-areas: "identity status access sports actions"; gap: 16px; align-items: center; padding: 12px 20px;
}
.team-list__head { padding-block: 12px; background: var(--app-surface-muted); color: var(--app-text); font-size: 12px; font-weight: 600; }
.team-list__head > :last-child { text-align: right; }
.team-member-card { border-top: 1px solid var(--app-border); }
.team-member-card__identity { grid-area: identity; display: flex; min-width: 0; align-items: center; gap: 12px; }
.team-member-card__identity .avatar, .team-access-identity .avatar { width: 40px; height: 40px; flex: 0 0 40px; object-fit: cover; }
.team-member-card__identity > span:not(.avatar) { display: grid; min-width: 0; gap: 4px; justify-items: start; }
.team-member-card__identity strong { color: var(--app-text); font-size: 14px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.team-self-label { color: var(--app-text-muted); font-size: 11px; }
.team-member-card__status { grid-area: status; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.team-member-card__disabled-date { color: var(--app-text-muted); font-size: 12px; white-space: nowrap; }
.team-action-disabled { display: inline-flex; cursor: default; border-radius: var(--app-radius-control); }
.team-action-disabled:focus-visible { outline: 2px solid var(--app-focus); outline-offset: 2px; }
.team-member-card__status .status-badge { width: auto; min-width: 0; font-size: 11px; padding: 4px 9px; }
.team-member-card__access { grid-area: access; }
.team-role-badge { display: inline-flex; padding: 0; background: transparent; color: var(--app-text); font-size: 14px; font-weight: 650; }
.team-member-card__sports { grid-area: sports; min-width: 0; }
.team-sport-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.team-sport-tags > span:not(.team-empty-sports) { display: inline-flex; padding: 3px 7px; border: 1px solid var(--app-border); border-radius: 6px; background: var(--app-surface-muted); color: var(--app-text); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.team-sport-tags > .team-sport-overflow { color: var(--app-text-muted); font-weight: 600; }
.team-empty-sports { color: var(--app-text-muted); font-size: 12px; line-height: 1.5; }
.team-member-card__actions { grid-area: actions; display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.team-member-card__actions .ui-button { min-height: 36px; padding: 7px 12px; font-size: 12px; font-weight: 600; }
.team-member-card__actions .icon-button { flex: 0 0 36px; width: 36px; height: 36px; min-width: 36px; color: var(--app-text-muted); }
.team-page .icon-button:disabled { pointer-events: none; cursor: default; opacity: .35; transform: none; box-shadow: none; }
.team-page .icon-button:hover:not(:disabled) { background: var(--app-surface-muted); border-color: var(--app-border-strong); transform: none; }
.team-page .students-pagination__button:disabled { pointer-events: none; cursor: default; transform: none; }
.team-page .team-danger-action:not(:disabled) { color: var(--app-danger-text); }
.team-page .team-success-action:not(:disabled) { color: var(--app-text); }
.team-page .status-badge--active { color: var(--app-text); background: var(--app-success-soft); }
.team-page .status-badge--disabled { color: var(--app-danger-text); background: var(--app-danger-soft); }
.team-page .status-badge--invited { color: var(--app-warning); background: var(--app-warning-soft); }
.team-page .avatar--soft, .team-access-drawer .avatar--soft { color: var(--app-action-text); background: var(--app-primary-soft); }
.team-page :is(.form-error, .toast--success), .team-access-drawer .form-error { color: var(--app-text); }
.team-page .form-error, .team-access-drawer .form-error { color: var(--app-danger-text); background: var(--app-danger-soft); }
.team-page :is(button, a):focus-visible, .team-access-drawer :is(button, input):focus-visible { outline: 2px solid var(--app-focus); outline-offset: 2px; }
.team-invitations__state { display: grid; gap: 12px; padding: 24px; justify-items: start; color: var(--app-text-muted); font-size: 13px; }
.team-invitations__empty { display: flex; gap: 14px; align-items: center; padding: 16px 20px; color: var(--app-text-muted); }
.team-invitations__empty > svg { flex: 0 0 auto; }
.team-invitations__empty strong { color: var(--app-text); font-size: 14px; font-weight: 600; }
.team-invitations__empty p { margin: 6px 0 0; font-size: 13px; line-height: 1.5; }
.team-invitations__list { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) max-content; column-gap: 24px; }
.team-invitation { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: center; row-gap: 16px; padding: 12px 20px; border-top: 1px solid var(--app-border); }
.team-invitation:first-child { border-top: 0; }
.team-invitation__identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.team-invitation__identity > .avatar { width: 40px; height: 40px; flex: 0 0 40px; }
.team-invitation__identity > div { display: grid; gap: 6px; min-width: 0; }
.team-invitation__identity strong { color: var(--app-text); font-size: 14px; overflow-wrap: anywhere; }
.team-invitation__identity > div > span, .team-invitation__expiry { color: var(--app-text-muted); font-size: 12px; }
.team-invitation__expiry { display: flex; align-items: center; gap: 6px; }
.team-invitation__actions { display: flex; align-items: center; gap: 8px; }
.team-invitation__actions .button { min-height: 36px; padding: 7px 10px; font-size: 12px; }
.team-page .button--secondary { background: var(--app-surface); color: var(--app-text); border-color: var(--app-border-strong); }

/* Same side-panel pattern as SportsPage, with Modal's shared page lock/focus/viewport fitting. */
.ui-modal-backdrop:has(> .team-access-drawer) { padding: 0; place-items: stretch end; }
.ui-modal.team-access-drawer { width: min(560px, 100%); height: 100%; max-height: 100%; border: 0; border-left: 1px solid var(--app-border); border-radius: 0; background: var(--app-surface); color: var(--app-text); animation: team-access-enter 200ms ease-out; }
.ui-modal.team-access-drawer--closing { animation: team-access-leave 200ms ease-in forwards; pointer-events: none; }
.team-access-drawer .ui-modal__header { padding: 24px; align-items: center; min-height: 86px; }
.team-access-drawer .ui-modal__title { font-size: 23px; line-height: 1.3; letter-spacing: -.025em; }
.team-access-drawer .ui-modal__body { padding: 24px; overscroll-behavior: contain; }
.team-access-drawer .ui-modal__footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px max(16px, env(safe-area-inset-bottom)); }
.team-access-fields { min-width: 0; margin: 0; padding: 0; border: 0; }
.team-access-section { display: grid; gap: 16px; }
.team-access-section + .team-access-section { margin-top: 24px; border-top: 1px solid var(--app-border); padding-top: 24px; }
.team-access-section__heading { display: grid; gap: 8px; }
.team-access-section__heading h3 { margin: 0; color: var(--app-text); font-size: 15px; }
.team-access-section__heading p, .team-access-intro { margin: 0; color: var(--app-text-muted); font-size: 13px; line-height: 1.6; }
.team-access-identity { display: flex; align-items: center; gap: 12px; }
.team-access-identity > div { display: grid; gap: 5px; min-width: 0; }
.team-access-identity strong { color: var(--app-text); font-size: 16px; overflow-wrap: anywhere; }
.team-access-identity p { margin: 0; color: var(--app-text-muted); font-size: 13px; }
.team-role-description { display: flex; align-items: center; gap: 10px; border-radius: var(--app-radius-control); background: var(--app-surface-muted); padding: 14px; color: var(--app-text-muted); }
.team-role-description > svg { flex: 0 0 auto; }
.team-role-description > span { display: grid; gap: 4px; }
.team-role-description strong { color: var(--app-text); font-size: 13px; }
.team-role-description small { color: var(--app-text); font-size: 12px; line-height: 1.5; }
.team-access-drawer .field > span, .team-access-drawer .choice-fieldset legend { color: var(--app-text); font-size: 13px; }
.team-access-drawer :is(.field input, .filter-dropdown__trigger) { min-height: 44px; background: var(--app-surface); color: var(--app-text); border-color: var(--app-text-muted); box-shadow: none; }
.team-access-drawer :is(input, .filter-dropdown__trigger):focus-visible, .team-access-drawer .filter-dropdown--open .filter-dropdown__trigger { border-color: var(--app-focus); box-shadow: none; }
.team-access-drawer .field input::placeholder { color: var(--app-text-muted); opacity: 1; }
.team-access-drawer .team-email-input { position: relative; display: flex; align-items: center; }
.team-email-input > svg { position: absolute; left: 14px; color: var(--app-text-muted); pointer-events: none; }
.team-access-drawer .team-email-input input { width: 100%; padding-left: 42px; }
.team-historical-sports { display: grid; gap: 8px; margin-top: 16px; color: var(--app-text-muted); font-size: 12px; }
.team-historical-sports p { margin: 0; }
.team-invitation__delivery { display: grid; min-width: 0; gap: 8px; color: var(--app-text-muted); font-size: 12px; line-height: 1.5; }
.team-panel > .team-list { margin: 0; padding: 0; gap: 0; }
.team-access-drawer .field-validation-notice { border-left-color: var(--app-focus); background: var(--app-primary-soft); color: var(--app-text); }
.team-access-drawer .field-validation-notice svg { color: var(--app-action-text); }
.team-access-drawer input.form-control--invalid { border-color: var(--app-focus) !important; box-shadow: 0 0 0 3px var(--app-focus-ring) !important; }
.team-sport-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.team-sport-choice { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--app-border-strong); border-radius: var(--app-radius-control); background: var(--app-surface); color: var(--app-text); cursor: pointer; font-size: 13px; }
.team-sport-choice input { width: 16px; height: 16px; flex: 0 0 16px; margin: 0; accent-color: var(--app-primary-fill); }
.team-sport-choice > span { min-width: 0; overflow-wrap: anywhere; }
.team-sport-choice--selected { border-color: var(--app-focus); background: var(--app-primary-soft); }
.team-sport-choice:has(input:disabled) { cursor: default; }
.team-sport-choice:has(input:enabled):hover { background: var(--app-surface-muted); }
.team-sport-choice:focus-within { outline: 2px solid var(--app-focus); outline-offset: 2px; }
.team-access-role-menu { background: var(--app-surface-raised); color: var(--app-text); border-color: var(--app-border-strong); }
.team-access-role-menu .filter-dropdown__option { background: var(--app-surface-raised); color: var(--app-text); }
.team-access-role-menu .filter-dropdown__option:is(:hover, :focus-visible, .filter-dropdown__option--active) { background: var(--app-primary-soft); color: var(--app-text); }
.team-access-role-menu .filter-dropdown__option:focus-visible { outline: 2px solid var(--app-focus); outline-offset: -2px; }
@keyframes team-access-enter { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: translateX(0); } }
@keyframes team-access-leave { to { opacity: 0; transform: translateX(28px); } }
@media (prefers-reduced-motion: reduce) { .ui-modal.team-access-drawer { animation: none; } }
@media (min-width: 1101px) {
  .page-content:has(.team-page) { padding-top: 14px; }
}
@media (max-width: 1100px) {
  .team-list__head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); padding: 0; }
  .team-member-card { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "identity status" "access access" "sports sports" "actions actions"; gap: 12px; }
  .team-member-card__actions { justify-content: flex-start; }
  .team-member-card__actions .ui-button { margin-right: auto; }
  .team-member-card__sports { margin-bottom: 2px; }
  .team-invitations__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-invitation__actions { grid-column: 1 / -1; flex-wrap: wrap; justify-content: flex-end; }
}
@media (max-width: 720px) {
  .team-page { gap: 18px; }
  .team-page > .team-heading { flex-direction: column; gap: 14px; align-items: stretch; }
  .team-heading .page-heading__actions { padding-top: 0; }
  .team-heading .page-heading__actions .ui-button { width: 100%; }
  .team-member-card { padding: 14px 16px; gap: 10px; }
  .team-member-card__actions .ui-button { min-height: 44px; }
  .team-member-card__actions .icon-button { width: 44px; min-width: 44px; height: 44px; flex-basis: 44px; }
  .team-invitations__list { grid-template-columns: minmax(0, 1fr); }
  .team-invitation { row-gap: 10px; padding: 14px 16px; }
  .team-invitation__actions { grid-column: 1; grid-row: auto; justify-content: flex-start; flex-wrap: wrap; padding-top: 4px; }
  .ui-modal.team-access-drawer { width: 100%; border: 0; }
  .team-access-drawer .ui-modal__header { padding: max(20px, env(safe-area-inset-top)) 20px 20px; }
  .team-access-drawer .ui-modal__body { padding: 20px; }
  .team-access-drawer .ui-modal__footer { padding-inline: 20px; }
  .team-access-drawer .ui-modal__footer .ui-button { flex: 1; }
}
@media (max-width: 480px) { .team-sport-grid { grid-template-columns: minmax(0, 1fr); } }

/* Retained unchanged: account/invitation routes and other legacy consumers. */
.team-access-modal__body { min-height: 0; overflow-y: auto; padding: 20px 24px 24px; }
.team-access-form, .team-access-card { width: 100%; margin-inline: auto; }
.team-access-role-field { max-width: 360px; }
.team-sports-fieldset { margin-top: 24px; }
.team-access-actions { gap: 10px; margin-top: 24px; }
.role-summary-grid--team-mvp { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.team-add-button__mobile { display: none; }
@media (max-width: 560px) {
  .team-access-modal__body { padding: 14px 12px 16px; }
  .role-summary-grid--team-mvp, .registration-grid--2 { grid-template-columns: 1fr; }
}
.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: 760px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.help-page__version-card {
  display: inline-flex;
  min-width: 190px;
  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__version-card em {
  color: var(--orange-dark);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.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-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.release-search {
  display: flex;
  min-width: min(360px, 100%);
  flex: 1 1 320px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 0 12px;
  color: var(--muted);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.release-search:focus-within {
  border-color: rgba(254, 88, 0, 0.55);
  box-shadow: 0 0 0 3px rgba(254, 88, 0, 0.1);
}

.release-search input {
  width: 100%;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 11px 0;
  color: var(--navy);
  font: inherit;
}

.release-search input::placeholder {
  color: var(--muted);
}

.release-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}

.release-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 8px 11px;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.release-filter:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 43, 91, 0.2);
  color: var(--navy);
}

.release-filter--active {
  border-color: rgba(254, 88, 0, 0.26);
  background: var(--warning-soft);
  color: var(--orange-dark);
}

.release-history {
  display: grid;
  gap: 12px;
}

.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: 18px 20px;
  box-shadow: 0 10px 30px rgba(0, 42, 85, 0.045);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.release-card:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 43, 91, 0.16);
  box-shadow: 0 14px 34px rgba(0, 42, 85, 0.075);
}

.release-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.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: 8px;
  color: var(--muted);
  font-size: 12px;
}

.release-card__latest,
.release-status,
.release-version-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.release-card__latest {
  background: var(--surface-blue);
  color: var(--navy);
}

.release-status--published {
  border: 1px solid rgba(27, 133, 84, 0.18);
  background: rgba(27, 133, 84, 0.09);
  color: #147047;
}

.release-status--homolog {
  border: 1px solid rgba(254, 88, 0, 0.18);
  background: var(--warning-soft);
  color: var(--orange-dark);
}

.release-version-pill {
  border: 1px solid var(--line);
  background: var(--surface-blue);
  color: var(--navy);
}

.release-card h3 {
  margin-bottom: 7px;
  font-size: 18px;
}

.release-card__summary {
  margin-bottom: 14px;
  color: var(--muted);
  line-height: 1.6;
}

.release-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 13px;
}

.release-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.release-card__tag {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 800;
}

.release-card__tag--feature {
  border-color: rgba(254, 88, 0, 0.14);
  background: var(--warning-soft);
  color: var(--orange-dark);
}

.release-card__tag--improvement {
  border-color: rgba(0, 43, 91, 0.08);
  background: var(--surface-blue);
  color: var(--navy);
}

.release-card__tag--fix {
  border-color: rgba(180, 35, 24, 0.12);
  background: var(--danger-soft);
  color: var(--danger);
}

.release-detail-modal {
  overflow: hidden;
  animation: release-detail-modal-in 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.release-detail {
  display: grid;
  gap: 22px;
}

.release-detail__hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--surface-blue), var(--surface));
  padding: 20px;
}

.release-detail__badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 10px;
}

.release-detail__hero h3 {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.5vw, 26px);
}

.release-detail__hero p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.release-detail__meta {
  display: grid;
  min-width: 190px;
  align-content: start;
  gap: 10px;
  margin: 0;
}

.release-detail__meta div {
  display: grid;
  gap: 2px;
  border-left: 2px solid rgba(254, 88, 0, 0.22);
  padding-left: 10px;
}

.release-detail__meta dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.release-detail__meta dd {
  margin: 0;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}

.release-detail__sections {
  display: grid;
  gap: 12px;
}

.release-detail__section {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 17px 18px;
}

.release-detail__section header {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}

.release-detail__section-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 9px;
  background: var(--surface-blue);
  color: var(--navy);
}

.release-detail__section--feature .release-detail__section-icon,
.release-detail__section--improvement .release-detail__section-icon {
  background: var(--warning-soft);
  color: var(--orange-dark);
}

.release-detail__section--fix .release-detail__section-icon {
  background: var(--danger-soft);
  color: var(--danger);
}

.release-detail__section small {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.release-detail__section h4 {
  margin: 0;
  font-size: 15px;
}

.release-detail__changes {
  display: grid;
  gap: 10px;
}

.release-detail__change {
  border-left: 3px solid rgba(0, 43, 91, 0.11);
  border-radius: 0 10px 10px 0;
  background: rgba(247, 249, 252, 0.72);
  padding: 11px 13px;
}

.release-detail__section--feature .release-detail__change,
.release-detail__section--improvement .release-detail__change {
  border-left-color: rgba(254, 88, 0, 0.24);
}

.release-detail__section--fix .release-detail__change {
  border-left-color: rgba(180, 35, 24, 0.24);
}

.release-detail__change strong {
  display: block;
  margin-bottom: 4px;
  color: var(--navy);
  font-size: 13px;
}

.release-detail__change p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.release-detail__stored-pdf {
  width: fit-content;
  text-decoration: none;
}

.release-detail__footer {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.release-detail__footer > span {
  color: var(--muted);
  font-size: 11px;
}

.release-detail__footer-actions {
  display: flex;
  gap: 9px;
}

.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: var(--app-overlay-backdrop, rgba(8, 34, 65, 0.34));
  -webkit-backdrop-filter: var(--app-overlay-filter, blur(8px));
  backdrop-filter: var(--app-overlay-filter, blur(8px));
  animation: release-backdrop-in 180ms ease-out both;
}

.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);
  transform-origin: center;
  animation: release-modal-in 220ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes release-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes release-modal-in {
  from { opacity: 0; transform: translateY(8px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes release-detail-modal-in {
  from { opacity: 0; transform: translateY(8px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.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: 760px) {
  .help-page__hero {
    flex-direction: column;
  }

  .help-page__version-card {
    width: 100%;
  }

  .release-toolbar,
  .release-card__footer,
  .release-detail__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .release-filters {
    width: 100%;
  }

  .release-filter {
    flex: 1 1 auto;
    justify-content: center;
  }

  .release-detail__hero {
    grid-template-columns: 1fr;
  }

  .release-detail__meta {
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .release-detail__footer-actions {
    width: 100%;
  }

  .release-detail__footer-actions .button {
    flex: 1;
  }
}

@media (max-width: 650px) {
  .help-page__section-heading,
  .release-card__topline,
  .release-card__date {
    align-items: flex-start;
    flex-direction: column;
  }

  .release-card {
    padding: 16px;
  }

  .release-card__footer .button {
    width: 100%;
  }

  .release-detail__meta {
    grid-template-columns: 1fr;
  }

  .release-detail__footer-actions {
    flex-direction: column-reverse;
  }

  .release-modal {
    padding: 24px 18px 18px;
  }

  .release-modal__actions {
    flex-direction: column-reverse;
  }

  .release-modal__actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .release-modal-backdrop,
  .release-modal,
  .release-detail-modal {
    animation-duration: 1ms !important;
  }
}
.settings-price-card > .inline-note {
  display: none;
}

.settings-price-editor__artwork {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.settings-price-editor__artwork img,
.settings-price-editor__artwork svg {
  display: block;
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.settings-price-editor__amount .currency-input {
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.settings-price-editor__amount .currency-input:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(254, 88, 0, 0.2);
}

.settings-price-editor__amount .currency-input input:focus,
.settings-price-editor__amount .currency-input input:focus-visible {
  border-left-color: var(--line);
  box-shadow: none;
}

@media (max-width: 560px) {
  .settings-price-editor__artwork {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
  }

  .settings-price-editor__artwork img,
  .settings-price-editor__artwork svg {
    width: 15px;
    height: 15px;
  }
}
.communication-template-editor > .settings-section__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.communication-template-editor > .settings-section__actions > .button {
  margin: 0;
}

.communication-template-editor > .settings-section__actions > .button--secondary {
  width: 292px;
  min-width: 292px;
  white-space: nowrap;
}

.communication-automation-rule--config {
  align-items: flex-start;
}

.communication-automation-rule__body {
  display: grid;
  min-width: 0;
  gap: 12px;
}

.communication-automation-rule__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.communication-automation-rule__heading > span:first-child {
  display: grid;
  gap: 3px;
}

.communication-automation-rule__controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, .72fr);
  gap: 12px;
}

.communication-automation-rule__controls .field > small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.communication-automation-rule__actions {
  display: flex;
  justify-content: flex-end;
}

.communication-automation-rule__actions .button {
  min-height: 38px;
  padding: 8px 13px;
  font-size: 12px;
}

@media (max-width: 760px) {
  .communication-template-editor > .settings-section__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .communication-template-editor > .settings-section__actions > .button,
  .communication-template-editor > .settings-section__actions > .button--secondary {
    width: 100%;
    min-width: 0;
  }

  .communication-automation-rule__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .communication-automation-rule__controls {
    grid-template-columns: 1fr;
  }

  .communication-automation-rule__actions .button {
    width: 100%;
  }
}

.meta-connection-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.communication-integration-summary__option {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.communication-integration-summary__option > svg {
  color: var(--orange-dark);
}

.communication-integration-summary__option > div {
  display: grid;
  gap: 4px;
}

.communication-integration-summary__option small {
  color: var(--muted);
}

.communication-connection-mode-status {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 760px) {
  .meta-connection-mode-grid { grid-template-columns: 1fr; }
  .communication-integration-summary__option .button { width: 100%; }
}
:root {
  --ui-control-height: 44px;
  --ui-control-radius: var(--app-radius-control);
  --ui-control-border: var(--app-border);
  --ui-control-border-hover: var(--app-border-strong);
  --ui-control-bg: var(--app-surface);
  --ui-control-text: var(--app-text);
  --ui-control-muted: var(--app-text-muted);
  --ui-focus: var(--app-focus);
  --ui-focus-ring: var(--app-focus-ring);
  --ui-control-transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

/*
 * Shared composite control: currency, suffix values and other affixed inputs.
 * Legacy aliases are intentionally mapped here so older screens inherit the
 * same visual contract without page-by-page CSS patches.
 */
.ui-composite-input,
.currency-input,
.number-suffix-input {
  min-height: var(--ui-control-height);
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--ui-control-border);
  border-radius: var(--ui-control-radius);
  background: var(--ui-control-bg);
  transition: var(--ui-control-transition);
}

.ui-composite-input:hover,
.currency-input:hover,
.number-suffix-input:hover {
  border-color: var(--ui-control-border-hover);
}

.ui-composite-input:focus-within,
.currency-input:focus-within,
.number-suffix-input:focus-within {
  border-color: var(--ui-focus);
  box-shadow: 0 0 0 3px var(--ui-focus-ring);
}

.ui-composite-input > input,
.ui-composite-input > textarea,
.currency-input > input,
.number-suffix-input > input {
  min-width: 0;
  min-height: calc(var(--ui-control-height) - 2px);
  flex: 1 1 auto;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: var(--ui-control-text);
  padding: 0 12px;
}

.ui-composite-input > span,
.currency-input > span,
.number-suffix-input > span {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 0 10px;
  color: var(--ui-control-muted);
  font-size: 12px;
  font-weight: 700;
  background: var(--app-surface-muted);
}

.ui-composite-input--prefix > span:first-child,
.currency-input > span:first-child {
  border-right: 1px solid var(--app-border);
}

.ui-composite-input--suffix > span:last-child,
.number-suffix-input > span:last-child {
  border-left: 1px solid var(--app-border);
}

/* Shared compact checkbox/flag control. */
.ui-choice-control,
.settings-check,
.enrollment-discount-toggle {
  min-height: var(--ui-control-height);
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 10px;
  border: 1px solid var(--ui-control-border);
  border-radius: var(--ui-control-radius);
  background: var(--ui-control-bg);
  cursor: pointer;
  transition: var(--ui-control-transition);
}

.ui-choice-control:hover,
.settings-check:hover,
.enrollment-discount-toggle:hover {
  border-color: var(--ui-control-border-hover);
}

.ui-choice-control:focus-within,
.settings-check:focus-within,
.enrollment-discount-toggle:focus-within {
  border-color: var(--ui-focus);
  box-shadow: 0 0 0 3px var(--ui-focus-ring);
}

.ui-choice-control > input[type='checkbox'],
.settings-check > input[type='checkbox'],
.enrollment-discount-toggle > input[type='checkbox'] {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--ui-focus);
}

.ui-choice-control > span,
.settings-check > span,
.enrollment-discount-toggle > span {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.ui-choice-control strong,
.settings-check strong,
.enrollment-discount-toggle strong {
  color: var(--ui-control-text);
  font-size: 12px;
  line-height: 1.15;
}

.ui-choice-control small,
.settings-check small,
.enrollment-discount-toggle small {
  color: var(--ui-control-muted);
  font-size: 10px;
  line-height: 1.2;
}

/* Shared read-only summary card. */
.ui-summary-card,
.enrollment-billing-summary > div {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 4px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--app-border);
  border-radius: var(--ui-control-radius);
  background: var(--app-surface);
}

.ui-summary-card > span,
.enrollment-billing-summary > div > span {
  color: var(--app-text-muted);
  font-size: 11px;
  line-height: 1.25;
}

.ui-summary-card > strong,
.enrollment-billing-summary > div > strong {
  color: var(--ui-control-text);
  font-size: 14px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

/* Field-aligned conditional controls stay on the same visual baseline as inputs. */
.enrollment-billing-controls .enrollment-discount-toggle {
  min-height: var(--ui-control-height);
  align-self: end;
}

.enrollment-discount-field .currency-input {
  width: 100%;
}

@media (max-width: 560px) {
  :root {
    --ui-control-height: 44px;
  }

  .ui-choice-control,
  .settings-check,
  .enrollment-discount-toggle {
    min-height: var(--ui-control-height);
    padding: 4px 10px;
  }
}

/* Shared class cards: selection dialogs and read-only/clickable summaries. */
.class-assignment-option.class-assignment-option {
  padding: 12px;
  border-color: var(--app-border);
  border-radius: var(--app-radius-control);
  background: var(--app-surface);
  color: var(--app-text);
  box-shadow: none;
  font-family: inherit;
}
.class-assignment-option.class-assignment-option--selected {
  border-color: var(--app-primary);
  background: var(--app-primary-soft);
  box-shadow: none;
}
button.class-assignment-option:is(:hover, :focus-visible) { border-color: var(--app-primary); box-shadow: none; }
button.class-assignment-option:focus-visible { outline: 2px solid var(--app-focus); outline-offset: 2px; }
.class-assignment-option .class-assignment-option__heading { flex-wrap: wrap; gap: 8px; }
.class-assignment-option .class-assignment-option__heading strong { color: var(--app-text); font-size: 13px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.class-assignment-option .class-assignment-option__age,
.class-assignment-option .class-assignment-option__support { color: var(--app-text-muted); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.class-assignment-option .class-assignment-option__badge--selected,
.class-assignment-option .class-assignment-option__badge--current { color: var(--app-primary); background: var(--app-primary-soft); }
.class-assignment-summary { min-width: 0; cursor: default; }
button.class-assignment-summary { cursor: pointer; }

.class-assignment-option__identity,
.class-assignment-option__metadata,
.class-assignment-option__location { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; min-width: 0; }
.class-assignment-option__metadata { gap: 4px 8px; }
.class-assignment-option__location svg { flex-shrink: 0; color: var(--app-text-muted); }
.class-assignment-option .class-assignment-option__identity { justify-content: flex-start; }

.class-assignment-option__metadata { min-height: 17px; }
:root {
  --ui-modal-backdrop: var(--app-overlay);
  --ui-modal-radius: var(--app-radius-modal);
  --ui-modal-shadow: var(--app-shadow-modal);
  --ui-row-ring: var(--app-primary-soft);
  --ui-danger: var(--app-danger-text);
  --ui-danger-soft: var(--app-danger-soft);
  --ui-success: var(--app-success);
}

.ui-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 28px;
  background: var(--ui-modal-backdrop);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ui-modal {
  width: min(100%, 760px);
  max-height: min(92vh, 920px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--app-border);
  border-radius: var(--ui-modal-radius);
  background: var(--app-surface);
  box-shadow: var(--ui-modal-shadow);
  color: var(--ui-control-text, #082451);
}

.ui-modal--sm { width: min(100%, 500px); }
.ui-modal--md { width: min(100%, 680px); }
.ui-modal--lg { width: min(100%, 920px); }
.ui-modal--xl { width: min(100%, 1120px); }
.ui-modal--form {
  width: min(100%, 1240px);
  height: min(90vh, 900px);
}

.ui-modal__header {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--app-border);
}

.ui-modal__heading { min-width: 0; }
.ui-modal__eyebrow {
  margin-bottom: 8px;
  color: var(--app-action-text);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.ui-modal__title {
  margin: 0;
  color: var(--app-text);
  font-size: clamp(22px, 2vw, 30px);
  line-height: 1.1;
}

.ui-modal__close,
.ui-toast__close {
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--app-text-muted);
  cursor: pointer;
  transition: background-color 200ms ease, color 200ms ease, transform 200ms ease;
}

.icon-button:has(> .lucide-x) { transition: background-color 200ms ease, color 200ms ease, transform 200ms ease; }

.ui-modal__close {
  width: 36px;
  height: 36px;
  margin: -4px -6px 0 0;
}

.ui-modal__close:not(:disabled):hover,
.ui-toast__close:not(:disabled):hover,
.icon-button:has(> .lucide-x):not(:disabled):hover {
  color: var(--app-danger-text);
  transform: rotate(7deg) scale(1.05);
}

.ui-modal__close:not(:disabled):hover,
.icon-button:has(> .lucide-x):not(:disabled):hover {
  background: var(--app-surface-muted);
}

.ui-modal__close:not(:disabled):active,
.ui-toast__close:not(:disabled):active,
.icon-button:has(> .lucide-x):not(:disabled):active { transform: scale(.96); }
.ui-modal__close:disabled,
.ui-toast__close:disabled,
.icon-button:has(> .lucide-x):disabled { cursor: default; transition: none; transform: none; }
.ui-modal__close:focus:not(:focus-visible),
.ui-toast__close:focus:not(:focus-visible) { outline: none; }
.ui-modal__close:focus-visible,
.ui-toast__close:focus-visible {
  outline: 2px solid var(--app-focus);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .ui-modal__close, .ui-toast__close, .icon-button:has(> .lucide-x) { transition: none; }
  .ui-modal__close:not(:disabled):is(:hover, :active),
  .ui-toast__close:not(:disabled):is(:hover, :active),
  .icon-button:has(> .lucide-x):not(:disabled):is(:hover, :active) { transform: none; }
}

.ui-modal__body {
  min-height: 0;
  flex: 1 1 auto;
  overflow: auto;
  padding: 26px 28px 28px;
}

.ui-modal__footer {
  flex: 0 0 auto;
  padding: 16px 28px;
  border-top: 1px solid var(--app-border);
  background: var(--app-surface);
}

.ui-button {
  min-height: var(--ui-control-height, 44px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--ui-control-radius, 10px);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
  transition: var(--ui-control-transition, border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease);
}

.ui-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ui-focus-ring, var(--app-focus-ring));
}

.ui-button:disabled { opacity: 0.58; cursor: not-allowed; }
.ui-button--primary { background: var(--app-primary-fill); color: var(--meynt-white); border-color: var(--app-primary-fill); }
.ui-button--primary:hover:not(:disabled) { filter: brightness(0.98); }
.ui-button--outline { background: var(--app-surface); color: var(--app-text); border-color: var(--app-border-strong); }
.ui-button--outline:hover:not(:disabled) { border-color: var(--app-action-text); background: var(--app-primary-subtle); }
.ui-button--danger { background: var(--app-surface); color: var(--ui-danger); border-color: rgba(201, 42, 30, 0.28); }
.ui-button--danger:hover:not(:disabled) { background: var(--ui-danger-soft); border-color: var(--ui-danger); }
.ui-button--attention { background: var(--app-surface); color: var(--app-warning); border-color: color-mix(in srgb, var(--app-warning) 28%, transparent); }
.ui-button--attention:hover:not(:disabled) { background: var(--app-warning-soft); border-color: var(--app-warning); }
.ui-button--ghost { background: transparent; color: var(--app-text); border-color: transparent; }
.ui-button--ghost:hover:not(:disabled) { background: var(--app-surface-muted); }
.ui-button__icon { display: inline-flex; }

.ui-clickable-row {
  position: relative;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease, transform 140ms ease;
}

.ui-clickable-row:hover {
  border-color: var(--app-primary-border);
  background: var(--app-primary-subtle);
  box-shadow: 0 0 0 2px var(--ui-row-ring);
}

.ui-clickable-row:focus-visible {
  outline: none;
  border-color: var(--app-primary-border);
  box-shadow: 0 0 0 2px var(--ui-row-ring);
}

.ui-clickable-table-row {
  cursor: pointer;
  outline: none;
}

.ui-clickable-table-row > td {
  position: relative;
  transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

.ui-clickable-table-row:hover > td,
.ui-clickable-table-row:focus-visible > td {
  background: var(--app-primary-subtle);
  border-top-color: var(--app-primary-border) !important;
  border-bottom-color: var(--app-primary-border) !important;
}

.ui-clickable-table-row:hover > td:first-child,
.ui-clickable-table-row:focus-visible > td:first-child {
  border-left: 1px solid var(--app-primary-border) !important;
  border-radius: 8px 0 0 8px;
  box-shadow: none;
}

.ui-clickable-table-row:hover > td:last-child,
.ui-clickable-table-row:focus-visible > td:last-child {
  border-right: 1px solid var(--app-primary-border) !important;
  border-radius: 0 8px 8px 0;
  box-shadow: none;
}

/* Enrollment lists used a left-only accent. The shared row owns the complete focus state now. */
.active-enrollment-row.ui-clickable-row {
  border-left: 1px solid transparent !important;
}

.active-enrollment-row.ui-clickable-row::before,
.active-enrollment-row.ui-clickable-row::after {
  display: none !important;
}

/* Keep the full enrollment form footprint stable while its content changes. */
.enrollment-modal__body--stable {
  padding-top: 18px;
}

.ui-modal--form .ui-modal-form-intro {
  margin: 0 0 16px;
  color: var(--ui-control-muted, #687b99);
  font-size: 13px;
}

.ui-modal--form .registration-form {
  min-height: 100%;
}

.ui-modal--form .registration-section {
  scroll-margin-top: 16px;
}

.ui-modal--form .registration-submit-bar {
  position: sticky;
  bottom: -24px;
  z-index: 10;
  margin: 12px -28px -24px;
  border-inline: 0;
  border-bottom: 0;
  border-radius: 0;
  padding: 14px 28px;
  box-shadow: 0 -10px 24px rgb(11 31 54 / 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* The legacy picker reserved 300px even after a student had been selected. */
.student-enrollment-picker--selected {
  min-height: 0 !important;
}

.student-enrollment-picker--selected + .skeleton,
.enrollment-primary-fields {
  margin-top: 14px;
}

.student-modal-body {
  padding-top: 18px;
}

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

.student-modal-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.student-modal-actions {
  position: sticky;
  bottom: -24px;
  z-index: 8;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 0 -28px -24px;
  padding: 16px 28px;
  border-top: 1px solid var(--app-border);
  background: color-mix(in srgb, var(--app-surface) 96%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.ui-confirm-dialog {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}

.ui-confirm-dialog__actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.ui-confirm-modal { width: min(100%, 560px); }
.ui-confirm-dialog-layout .ui-confirm-dialog {
  flex-direction: row;
  gap: 24px;
  align-items: center;
  text-align: left;
}
.ui-confirm-dialog__icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--app-action-text);
}
.ui-confirm-dialog__icon svg { width: 100%; height: 100%; }
.ui-confirm-dialog-layout--attention .ui-confirm-dialog__icon { color: var(--app-warning); }
.ui-confirm-dialog-layout--danger .ui-confirm-dialog__icon { color: var(--app-danger-text); }
.ui-confirm-dialog__content { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.ui-confirm-dialog__content h2 { margin: 0 0 8px; font-size: 21px; line-height: 1.3; color: var(--app-text); }
.ui-confirm-dialog__description { color: var(--app-text-muted); line-height: 1.55; }
.ui-confirm-dialog__details {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--app-border);
  border-radius: 11px;
  background: var(--app-surface-muted);
}
.ui-confirm-dialog-layout > .ui-confirm-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding-top: 18px;
  margin-top: 24px;
  border-top: 1px solid var(--app-border);
}
.ui-attention-dialog__message { margin: 0; color: var(--app-text); font-weight: 700; line-height: 1.5; }
.ui-attention-dialog__complement { margin: 8px 0 0; color: var(--app-text-muted); line-height: 1.55; }

.ui-toast-stack {
  position: fixed;
  z-index: 40;
  right: 24px;
  top: calc(var(--toast-top, 24px) + env(safe-area-inset-top));
  width: min(420px, calc(100vw - 32px));
  display: grid;
  gap: 12px;
  pointer-events: none;
}

.ui-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px 14px 16px;
  border: 1px solid var(--app-border);
  border-radius: 14px;
  background: var(--app-surface);
  box-shadow: var(--app-shadow);
  animation: ui-toast-in 240ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.ui-toast--closing { animation: ui-toast-out 220ms ease-in both; }

@keyframes ui-toast-in {
  from { opacity: 0; transform: translate3d(18px, 0, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes ui-toast-out {
  from { opacity: 1; transform: translate3d(0, 0, 0); }
  to { opacity: 0; transform: translate3d(18px, 0, 0); }
}

.ui-toast--success .ui-toast__icon { color: var(--ui-success); }
.ui-toast--error .ui-toast__icon { color: var(--ui-danger); }
.ui-toast--info .ui-toast__icon { color: var(--app-action-text); }
.ui-toast--warning .ui-toast__icon { color: var(--app-warning); }
.ui-toast__icon { display: grid; place-items: center; align-self: center; }
.ui-toast-stack[data-suspended] { visibility: hidden; pointer-events: none; }
.ui-modal:has(.ui-toast-modal-host) { position: relative; }
.ui-toast-stack--modal { position: absolute; z-index: 20; top: calc(var(--toast-modal-top, 56px) + 12px); right: 12px; width: min(420px, calc(100% - 24px)); }
.ui-toast__content { overflow-wrap: anywhere; }
.ui-toast__close { flex-shrink: 0; align-self: center; }
.ui-toast__content { min-width: 0; flex: 1; display: grid; gap: 3px; }
.ui-toast__content strong { color: var(--app-text); }
.ui-toast__content span { color: var(--app-text-muted); font-size: 13px; line-height: 1.4; }
.toast-qa-panel { position: fixed; right: 16px; bottom: 32px; z-index: 100; width: min(280px, calc(100vw - 32px)); padding: 12px; border: 1px solid var(--app-border); border-radius: var(--app-radius-control); background: var(--app-surface-raised); color: var(--app-text); box-shadow: var(--app-shadow); font-size: 12px; }
.toast-qa-panel__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.toast-qa-panel__actions button { padding: 6px 9px; border: 1px solid var(--app-border); border-radius: 6px; background: var(--app-surface); color: var(--app-text); cursor: pointer; }
.toast-qa-panel__actions button:is(:hover, :focus-visible) { background: var(--app-surface-muted); }
.toast-qa-panel__actions button:focus-visible { outline: 2px solid var(--app-focus); outline-offset: 2px; }
.ui-toast__close { width: 32px; height: 32px; }

.ui-field--error input,
.ui-field--error select,
.ui-field--error textarea,
input[aria-invalid='true'],
select[aria-invalid='true'],
textarea[aria-invalid='true'] {
  border-color: var(--app-danger) !important;
  box-shadow: 0 0 0 3px var(--app-danger-soft) !important;
}

.ui-field-error {
  display: block;
  margin-top: 6px;
  color: var(--app-danger-text);
  font-size: 12px;
  font-weight: 650;
}

.ui-day-input { width: 100%; }
.ui-day-input input { width: 100%; }

@media (max-width: 720px) {
  .ui-modal-backdrop { padding: 12px; align-items: end; }
  .ui-modal,
  .ui-modal--sm,
  .ui-modal--md,
  .ui-modal--lg,
  .ui-modal--xl,
  .ui-modal--form {
    width: 100%;
    max-height: 94vh;
    border-radius: 18px 18px 12px 12px;
  }
  .ui-modal--form { height: 92vh; }
  .ui-modal__header { padding: 20px 18px 16px; }
  .ui-modal__body { padding: 18px; }
  .ui-modal__footer { padding: 14px 18px; }
  .ui-confirm-dialog__actions { display: grid; grid-template-columns: 1fr 1fr; }
  .ui-confirm-dialog-layout .ui-confirm-dialog { gap: 16px; }
  .ui-confirm-dialog__icon { width: 40px; height: 40px; }
  .ui-confirm-dialog__content h2 { font-size: 20px; }
  .ui-confirm-dialog-layout > .ui-confirm-dialog__actions { gap: 8px; margin-top: 20px; padding-top: 16px; }
  .ui-confirm-dialog-layout > .ui-confirm-dialog__actions .ui-button { min-height: 44px; white-space: normal; }
  .ui-toast-stack { right: max(12px, env(safe-area-inset-right)); width: min(420px, calc(100vw - 24px - env(safe-area-inset-left) - env(safe-area-inset-right))); }
  .ui-toast-stack--modal { right: 12px; width: calc(100% - 24px); }
  .ui-modal--form .registration-submit-bar { bottom: -18px; margin: 12px -18px -18px; padding-inline: 18px; }
  .student-modal-actions { bottom: -18px; margin: 0 -18px -18px; padding: 14px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .ui-toast,
  .ui-toast--closing { animation: none; }
}

.payment-entry-form { display: grid; gap: 16px; }
.payment-entry-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 720px) { .payment-entry-summary { grid-template-columns: 1fr; } }

/* Compact list interaction standard: neutral hover and dense enrollment rows. */
.ui-clickable-table-row:hover > td,
.ui-clickable-table-row:focus-visible > td {
  background: var(--app-surface-muted);
  border-color: transparent !important;
}

.ui-clickable-table-row:hover > td:first-child,
.ui-clickable-table-row:focus-visible > td:first-child,
.ui-clickable-table-row:hover > td:last-child,
.ui-clickable-table-row:focus-visible > td:last-child {
  border-left: 0 !important;
  border-right: 0 !important;
  border-radius: 0;
  box-shadow: none;
}

.active-enrollment-row.ui-clickable-row {
  display: grid !important;
  grid-template-columns: 36px minmax(0, 1fr) auto !important;
  align-items: center !important;
  column-gap: 12px;
  min-height: 64px;
  padding: 10px 12px !important;
  border: 0 !important;
  border-radius: 8px;
  background: transparent;
  box-shadow: none !important;
}

.active-enrollment-row.ui-clickable-row:hover,
.active-enrollment-row.ui-clickable-row:focus-visible {
  border-color: transparent !important;
  background: var(--app-surface-muted);
  box-shadow: none !important;
}

.active-enrollment-row.ui-clickable-row:focus-visible {
  outline: 1px solid var(--app-border-strong);
  outline-offset: -1px;
}

.active-enrollment-row > .avatar {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
}

.active-enrollment-row__identity {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}

.active-enrollment-row > .status-badge {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  justify-self: end;
}

@media (max-width: 760px) {
  .active-enrollment-row.ui-clickable-row {
    grid-template-columns: 36px minmax(0, 1fr) auto !important;
    row-gap: 3px;
  }
  .active-enrollment-row > .status-badge {
    grid-column: 3;
    grid-row: 1;
  }
}

/* Finance package 4.1: filters and details keep the shared visual language while feeling production-ready. */
.finance-metric-button {
  width: 100%;
  border: inherit;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease, background-color 140ms ease;
}

.finance-metric-button:hover,
.finance-metric-button:focus-visible {
  outline: none;
  border-color: var(--app-primary-border);
  box-shadow: 0 0 0 3px var(--app-primary-soft);
  transform: translateY(-1px);
}

.finance-metric-button--active {
  border-color: var(--app-primary-border) !important;
  background: linear-gradient(180deg, var(--app-primary-soft), var(--app-surface));
  box-shadow: 0 0 0 3px var(--app-primary-soft), 0 8px 20px rgba(3, 25, 57, 0.07);
}

.finance-charge-wallet {
  scroll-margin-top: 96px;
}

.finance-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(15, 42, 82, 0.08);
  background: var(--app-surface-muted);
}

.finance-filter {
  min-width: 0;
}

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

.finance-filter--status {
  flex: 0 0 190px;
}

.finance-filter--modality {
  flex: 0 0 240px;
  min-width: 220px;
}

.finance-filter--modality .filter-dropdown__trigger {
  white-space: nowrap;
}

.finance-filter--period {
  flex: 0 0 220px;
}

.finance-filters__clear {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding-inline: 13px;
}

.finance-modality-cell {
  display: inline-block;
  color: var(--app-text-muted);
  font-weight: 650;
}

.finance-detail {
  display: grid;
  gap: 16px;
}

.finance-detail__hero {
  display: grid;
  gap: 3px;
  padding: 2px 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.finance-detail__student {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.finance-detail__student > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.finance-detail__hero h3,
.finance-detail__hero p,
.finance-detail__section h3,
.finance-detail__section p {
  margin: 0;
}

.finance-detail__hero h3 {
  min-width: 0;
  color: var(--app-text);
  font-size: 20px;
}

.finance-detail__hero p {
  color: var(--app-text-muted);
}

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

.finance-detail__section {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--app-border);
}

.finance-detail__section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--app-text);
}

.finance-detail__section-title h3 {
  font-size: 16px;
}

.finance-detail__line-items { display: grid; gap: 10px; }
.finance-detail__line-items > div { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); }
.finance-detail__line-items strong { color: var(--navy); }
.finance-detail__line-items-total { border-top: 1px solid var(--line); padding-top: 12px; font-size: 14px; }
.finance-detail__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.message-review { display: grid; gap: 14px; }
.message-review__preview { white-space: pre-wrap; border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: var(--surface-soft); color: var(--navy); line-height: 1.55; }

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

@media (max-width: 620px) {
  .finance-filters { align-items: stretch; }
  .finance-filter,
  .finance-filters__clear { width: 100%; min-width: 0; max-width: none; flex-basis: 100%; }
  .finance-detail__student { align-items: flex-start; }
  .finance-detail__grid { grid-template-columns: 1fr; }
}
:root {
  --app-overlay-backdrop: var(--app-overlay);
  --app-overlay-blur: 7px;
}

/* Shared overlay treatment: notifications, navigation and access modals use the same visual depth. */
.notification-backdrop,
.sidebar-backdrop,
.team-access-modal-backdrop {
  background: var(--app-overlay-backdrop);
  -webkit-backdrop-filter: blur(var(--app-overlay-blur));
  backdrop-filter: blur(var(--app-overlay-blur));
}
/* Authenticated shell owns its layout. Expanded navigation never changes the rail track. */
.app-layout { --shell-rail: 78px; --shell-header: 72px; --shell-footer-height: 22px; --shell-content-padding-inline: clamp(20px, 2.4vw, 42px); display: grid; width: 100%; height: 100dvh; grid-template-columns: var(--shell-rail) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); overflow: hidden; background: var(--app-bg); }
.app-main { display: grid; grid-column: 2; grid-row: 1; grid-template-rows: auto minmax(0, 1fr); min-width: 0; min-height: 0; overflow: hidden; }
.page-content { display: flex; flex-direction: column; width: 100%; min-width: 0; min-height: 0; overflow-x: hidden; overflow-y: auto; scrollbar-width: none !important; scrollbar-gutter: auto; overscroll-behavior: contain; padding: 26px var(--shell-content-padding-inline) max(36px, calc(var(--shell-footer-height) + env(safe-area-inset-bottom) + 12px)); }
.page-content::-webkit-scrollbar { display: none !important; width: 0; height: 0; }
.page-content > .module-stage { flex: 1 0 auto; }
.sidebar { position: relative; z-index: 30; display: flex; flex-direction: column; grid-column: 1; grid-row: 1; width: 264px; min-height: 0; height: 100%; color: var(--meynt-background); background: var(--meynt-navy); border-right: 1px solid rgb(255 255 255 / .1); box-shadow: var(--app-shadow); }
.sidebar--collapsed { width: var(--shell-rail); box-shadow: none; }
.sidebar__top { position: relative; display: flex; min-height: var(--shell-header); align-items: center; justify-content: flex-start; padding: 14px 19px; border-bottom: 1px solid rgb(255 255 255 / .1); }
.sidebar__top .brand { width: 40px; }
.sidebar__close { display: none; }
.sidebar__nav { position: relative; isolation: isolate; display: flex; flex: 1; min-height: 0; flex-direction: column; gap: 22px; padding: 22px 14px; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: thin; }
.liquid-focus-halo { position: absolute; top: 0; left: 0; width: 44px; height: 34px; border-radius: 50%; pointer-events: none; visibility: hidden; background: radial-gradient(ellipse, rgb(6 182 249 / .6), rgb(6 182 249 / .25) 40%, rgb(37 99 235 / .12) 60%, transparent 76%); filter: blur(7px); transform-origin: center; z-index: -1; }
.nav-group { display: grid; gap: 5px; width: 100%; }
.nav-label { padding: 6px 12px; color: #aac3dc; font-size: 10px; font-weight: 700; letter-spacing: .07em; }
.nav-item { display: flex; position: relative; align-items: center; gap: 13px; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid transparent; border-radius: 8px; color: inherit; background: transparent; text-decoration: none; font-size: 13px; text-align: left; }
.nav-item:visited { color: inherit; }
.nav-item:hover { background: rgb(255 255 255 / .07); }
.nav-item--active, .nav-item--active:visited, .nav-item--active:hover { color: var(--meynt-cyan); background: transparent; border-color: transparent; }
.nav-item__icon { display: inline-flex; position: relative; flex: 0 0 auto; }
.nav-item__pending-dot { position: absolute; right: -4px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--app-danger-fill); outline: 2px solid var(--meynt-navy); }
.sidebar__bottom { padding: 14px; padding-bottom: max(14px, env(safe-area-inset-bottom)); border-top: 1px solid rgb(255 255 255 / .1); }
.topbar-avatar-button { display: inline-grid; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; }
.sidebar__preferences { display: none; }
.sidebar--collapsed .sidebar__top { padding: 14px 19px; }
.sidebar--collapsed .sidebar__top .brand { width: 40px; }
/* Desktop overlay uses fixed inner geometry: labels fade, icons/halo never jump. */
@media (min-width: 851px) {
  .sidebar { position: fixed; top: var(--shell-header); bottom: 0; left: 0; height: auto; overflow: hidden; transition: width 390ms cubic-bezier(.22,.78,.18,1), box-shadow 390ms ease; }
  .sidebar .sidebar__top { display: none; }
  .sidebar .sidebar__nav { width: 264px; gap: 22px; padding-inline: 14px; padding-top: 12px; }
  .sidebar .nav-group { position: relative; }
  .sidebar .nav-label { height: 22px; min-height: 22px; margin: 0; padding: 0 12px; line-height: 22px; }
  .sidebar .nav-item { justify-content: flex-start; padding-inline: 14px; }
  .sidebar .nav-label, .sidebar .nav-item__label { display: block; white-space: nowrap; opacity: 1; transform: translateX(0); transition: opacity 280ms ease-in-out 95ms, transform 440ms ease-in-out 95ms; }
  .sidebar--collapsed .nav-label, .sidebar--collapsed .nav-item__label { opacity: 0; transform: translateX(-8px); transition-delay: 0ms; }
  .sidebar--collapsed .nav-group::before { content: ''; position: absolute; top: 11px; left: 10px; width: 30px; border-top: 1px solid rgb(255 255 255 / .1); pointer-events: none; }
  .nav-item--active .nav-item__icon > svg { filter: drop-shadow(0 0 4px rgb(6 182 249 / .4)); }
}
@media (prefers-reduced-motion: reduce) {
  .sidebar, .sidebar .nav-label, .sidebar .nav-item__label { transition: none; }
  .sidebar .nav-label, .sidebar .nav-item__label { transform: none; }
}
.topbar { position: relative; z-index: 35; display: flex; min-height: var(--shell-header); align-items: center; justify-content: space-between; gap: 20px; padding: 12px clamp(20px, 2.4vw, 42px); border-bottom: 1px solid color-mix(in srgb, var(--app-text) 6%, transparent); background: var(--app-surface); box-shadow: 0 2px 6px rgb(15 23 42 / .08); }
.topbar__left, .topbar__actions { display: flex; align-items: center; gap: 14px; min-width: 0; }
.topbar__left { flex: 1; }
/* Header spans the viewport; only page content reserves the desktop rail track. */
@media (min-width: 851px) {
  .app-main { grid-column: 1 / -1; }
  .page-content { margin-left: var(--shell-rail); width: calc(100% - var(--shell-rail)); }
  .topbar { padding-left: 0; padding-block: 0; }
  /* Brand centers a 132px image in 145px; the shared PNG alpha starts at
     x=345/2172 after the existing 14% object-view-box inset. */
  .topbar__left { --header-brand-visible-inset: calc((145px - 132px) / 2 + 132px * (345 / 2172 - .14) / .72); gap: calc(var(--shell-content-padding-inline) - var(--header-brand-visible-inset)); }
  .topbar__brand { position: relative; top: 1px; }
  .topbar__desktop-menu { display: grid; place-items: center; width: var(--shell-rail); flex: 0 0 var(--shell-rail); align-self: stretch; min-height: var(--shell-header); }
  .topbar__menu-trigger svg { transition: transform 220ms ease; }
  .topbar__menu-trigger[aria-expanded="true"] svg { transform: rotate(90deg); }
}
@media (prefers-reduced-motion: reduce) {
  .topbar__menu-trigger svg { transition: none; }
}
.topbar__actions { flex: 0 0 auto; }
.topbar__brand { width: 145px; flex: 0 0 145px; }
/* Original PNGs retained byte-for-byte; frame only their transparent outer margin. */
.topbar__brand .brand__logo-full { width: min(100%, 132px); height: 32px; }
.topbar__brand .brand__logo-full .brand__asset { height: 100%; object-fit: contain; object-view-box: inset(25% 14%); }
.topbar__avatar { background: var(--app-primary-soft); color: var(--app-action-text); }
.topbar-avatar-button .avatar { width: 36px; height: 36px; }
.menu-button { display: none; }
.tenant-switcher { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 270px; border: 1px solid var(--app-border); border-radius: var(--app-radius-control); padding: 7px 10px; color: var(--app-text); background: var(--app-surface); font-size: 12px; }
.tenant-switcher > svg { flex: 0 0 auto; color: var(--app-action-text); }
.tenant-switcher select { appearance: none; min-width: 0; width: 100%; border: 0; background: transparent; color: inherit; font: inherit; padding: 0; cursor: pointer; }
/* Native selects may match :focus-visible after pointer input. Keep keyboard focus intact. */
.app-layout .tenant-switcher select[data-pointer-focus='true']:focus { outline: none; box-shadow: none; }
.tenant-switcher option { background: var(--app-surface); color: var(--app-text); }
.tenant-switcher span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-help-button > .truncated-text__tooltip { top: calc(100% + 8px); bottom: auto; }
.tenant-switcher__desktop { min-width: 0; flex: 1; }
@media (min-width: 851px) {
  .tenant-switcher { width: 270px; flex: 0 0 270px; }
}
.tenant-switcher .tenant-switcher__native { display: none; }
.tenant-switcher .filter-dropdown__trigger { min-width: 0; min-height: 0; padding: 0; border: 0; border-radius: 3px; background: transparent; color: inherit; font: inherit; box-shadow: none; transform: none; }
.tenant-switcher .filter-dropdown__trigger > span { text-align: left; flex: 1; min-width: 0; }
.tenant-switcher .filter-dropdown__chevron { flex-shrink: 0; }
.tenant-switcher .filter-dropdown__trigger:focus:not(:focus-visible), .tenant-switcher__menu .filter-dropdown__option:focus:not(:focus-visible) { outline: none; box-shadow: none; }
.tenant-switcher .filter-dropdown__trigger:focus-visible, .tenant-switcher__menu .filter-dropdown__option:focus-visible { outline: 2px solid var(--app-focus); outline-offset: 2px; }
.tenant-switcher__menu { background: var(--app-surface); border-color: var(--app-border); border-radius: var(--app-radius-control); box-shadow: var(--app-shadow-modal); }
.tenant-switcher__menu .filter-dropdown__option { color: var(--app-text); white-space: normal; overflow-wrap: anywhere; padding-block: 8px; }
.tenant-switcher__menu .filter-dropdown__option:is(:hover, :focus-visible) { background: var(--app-surface-muted); }
.tenant-switcher__menu .filter-dropdown__option--active { background: var(--app-primary-subtle); color: var(--app-action-text); }
@media (max-width: 850px) {
  .tenant-switcher__desktop { display: none; }
  .tenant-switcher .tenant-switcher__native { display: block; }
  .tenant-switcher__menu { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .tenant-switcher__menu { animation: none; }
}
.avatar-menu-anchor { position: relative; }
.avatar-menu { position: absolute; top: calc(50% + var(--shell-header) / 2 + 1px); right: 0; width: 292px; max-width: calc(100vw - 24px); border: 1px solid var(--app-border); border-radius: var(--app-radius-card); background: var(--app-surface-raised); color: var(--app-text); box-shadow: var(--app-shadow); }
.avatar-menu::before { content: ''; position: absolute; top: -5px; right: 13px; width: 8px; height: 8px; background: inherit; border-top: 1px solid var(--app-border); border-right: 1px solid var(--app-border); transform: rotate(-45deg); pointer-events: none; }
.avatar-menu__content { position: relative; max-height: calc(100dvh - 88px - env(safe-area-inset-bottom)); overflow-y: auto; padding: 10px 12px; border-radius: inherit; }
.avatar-menu__identity { display: grid; gap: 3px; margin-bottom: 4px; padding: 4px 8px 8px; overflow-wrap: anywhere; }
.avatar-menu__identity strong { font-size: 16px; font-weight: 650; line-height: 1.4; letter-spacing: -.015em; margin-bottom: 2px; }
.avatar-menu__identity small { color: var(--app-text-muted); font-size: 11px; line-height: 1.4; }
.avatar-menu__action { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; border: 0; border-radius: var(--app-radius-control); background: transparent; color: inherit; text-align: left; padding: 10px 8px; font: inherit; font-size: 13px; font-weight: 500; transition: color 160ms ease, background-color 160ms ease; }
.avatar-menu__action svg { flex-shrink: 0; }
.avatar-menu__action:is(:hover, :focus-visible) { background: var(--app-primary-soft); color: var(--app-action-text); }
.avatar-menu__action:focus-visible { outline: 2px solid var(--app-focus); outline-offset: -2px; }
.avatar-menu__action--danger { color: var(--avatar-danger, var(--app-danger-text)); }
.avatar-menu__action--danger:is(:hover, :focus-visible) { color: var(--avatar-danger, var(--app-danger-text)); background: color-mix(in srgb, var(--avatar-danger, var(--app-danger-text)) 8%, transparent); }
.avatar-menu__action--danger:focus-visible { outline-color: var(--avatar-danger, var(--app-danger-text)); }
.avatar-menu .theme-preference { margin: 5px 0; padding: 0 8px 10px; border-bottom: 1px solid var(--app-border); }
.avatar-menu .theme-preference legend { margin-bottom: 6px; color: var(--app-text-muted); font-size: 10px; font-weight: 500; }
.avatar-menu .theme-preference__options { gap: 6px; }
.avatar-menu .theme-preference__option { min-width: 0; min-height: 52px; justify-content: center; gap: 6px; padding: 6px 4px; background: transparent; transition: color 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
.avatar-menu .theme-preference__option:hover { color: var(--app-action-text); border-color: var(--app-primary-border); }
.avatar-menu .theme-preference__option.is-selected { color: var(--avatar-active, var(--app-primary)); font-weight: 600; background: color-mix(in srgb, var(--app-primary-soft) 70%, transparent); border-color: var(--app-primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--app-accent) 10%, transparent); }
:root[data-theme='dark'] .avatar-menu { --avatar-danger: var(--app-danger-text); --avatar-active: var(--app-accent); }
@media (prefers-reduced-motion: reduce) {
  .avatar-menu__action, .avatar-menu .theme-preference__option { transition: none; }
}
.theme-preference { margin: 10px 0; padding: 0; border: 0; min-width: 0; }
.theme-preference legend { font-size: 12px; font-weight: 600; margin-bottom: 10px; }
.theme-preference__options { display: flex; gap: 5px; }
.theme-preference__option { position: relative; display: flex; flex: 1; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px; border: 1px solid var(--app-border); border-radius: 8px; color: var(--app-text-muted); font-size: 11px; cursor: pointer; }
.theme-preference__option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.theme-preference__option.is-selected { background: var(--app-primary-soft); border-color: var(--app-primary-border); color: var(--app-text); }
.theme-preference__option:has(input:focus-visible) { outline: 2px solid var(--app-focus); outline-offset: 2px; }
.profile-appearance { max-width: 600px; padding: 24px; }
.profile-appearance p { color: var(--app-text-muted); font-size: 12px; }
.notification-button { position: relative; }
.notification-drawer { opacity: 1; transform: translateX(0); transition: opacity 240ms ease, transform 240ms ease; }
.notification-drawer--closing { opacity: 0; transform: translateX(32px); }
.notification-backdrop { opacity: 1; transition: opacity 220ms ease; }
.notification-backdrop--closing { opacity: 0; pointer-events: none; }
.sidebar-backdrop--closing { animation: notification-backdrop-out 220ms ease both; pointer-events: none; }
@starting-style {
  .notification-drawer { opacity: 0; transform: translateX(28px); }
  .notification-backdrop { opacity: 0; }
}
.app-layout > .app-version-footer { position: fixed; z-index: 29; right: 0; bottom: 0; left: 0; width: auto; min-height: 0; padding: 3.5px 12px max(3.5px, env(safe-area-inset-bottom)); border-top: 1px solid color-mix(in srgb, var(--app-text) 5%, transparent); background: color-mix(in srgb, var(--app-surface) 19%, transparent); color: var(--app-text-muted); font-size: 10px; text-align: center; backdrop-filter: blur(14px) saturate(1.08); -webkit-backdrop-filter: blur(14px) saturate(1.08); }
@media (min-width: 851px) {
  .app-layout > .app-version-footer { left: var(--shell-rail); width: calc(100% - var(--shell-rail)); }
}
.notification-indicator { position: absolute; top: -2px; right: -2px; min-width: 15px; height: 15px; border-radius: 10px; display: grid; place-items: center; padding-inline: 3px; background: var(--app-danger-fill); color: white; font-size: 9px; }
.notification-backdrop { position: fixed; inset: 0; z-index: 80; border: 0; }
.notification-drawer { --notification-inset: 24px; position: fixed; z-index: 81; right: 0; top: 0; bottom: 0; display: flex; flex-direction: column; width: min(420px, 92vw); padding: 24px var(--notification-inset) max(12px, env(safe-area-inset-bottom)); background: var(--app-surface); color: var(--app-text); border-left: 1px solid var(--app-border); box-shadow: var(--app-shadow-modal); }
.notification-drawer__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.notification-drawer__header h2 { margin: 0; font-size: 22px; }
.notification-drawer__empty { display: grid; gap: 12px; place-content: center; text-align: center; flex: 1; color: var(--app-text-muted); }
.notification-drawer__empty > svg { margin: auto; }
.notification-drawer__empty h3, .notification-drawer__empty p { margin: 0; }
.notification-list { overflow-y: auto; min-height: 0; flex: 1; margin-inline: calc(-1 * var(--notification-inset)); padding: 12px 0; scrollbar-width: none; overscroll-behavior: contain; }
.notification-list__transition > section > .notification-section-title,
.notification-list__transition > p, .notification-list__transition > .notification-more,
.notification-list__transition > .notification-drawer__empty { margin-inline: var(--notification-inset); }
.notification-list::-webkit-scrollbar { display: none; }
.notification-list:focus-visible { outline: 2px solid var(--app-primary); outline-offset: -2px; }
.notification-filters { position: relative; display: flex; margin-top: 22px; border-bottom: 1px solid var(--app-border); }
.notification-filters button { flex: 1; padding: 14px 6px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--app-text-muted); font-size: 13px; }
.notification-filters__label { position: relative; display: inline-block; color: var(--app-text-muted); }
.notification-filters__label::after { content: attr(data-label); position: absolute; inset: 0; color: var(--notification-action, var(--app-action-text)); clip-path: inset(0 100% 0 0); pointer-events: none; }
#notification-unread-tab .notification-filters__label::after { clip-path: inset(0 0 0 100%); }
.notification-filters button[aria-selected='true'] .notification-filters__label::after,
#notification-unread-tab[aria-selected='true'] .notification-filters__label::after { clip-path: inset(0); transition: clip-path 780ms cubic-bezier(.22,.8,.24,1) 220ms; }
.notification-filters button:disabled .notification-filters__label::after { display: none; }
:root[data-theme='dark'] .notification-drawer { --notification-action: var(--app-accent); }
.notification-filters button:disabled { opacity: .5; cursor: default; }
.notification-filters__indicator { position: absolute; bottom: -1px; left: 0; width: 50%; height: 2px; background: var(--app-primary); transition: transform 860ms cubic-bezier(.18,.82,.18,1); }
.notification-filters[data-filter='all'] .notification-filters__indicator { transform: translateX(100%); }
.notification-list__transition { animation: notification-content-in 360ms ease both; }
.notification-section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px var(--notification-inset) 8px; border-bottom: 1px solid var(--app-border); }
.notification-section-head .notification-section-title { margin: 0; }
.notification-mark-all { border: 0; background: transparent; color: var(--app-text-muted); padding: 4px 0; font-size: 12px; white-space: nowrap; transition: color 130ms ease; }
.notification-mark-all:hover, .notification-mark-all:focus-visible { color: var(--notification-action, var(--app-action-text)); }
.notification-mark-all:disabled { opacity: .5; cursor: wait; }
.notification-section-title { margin: 14px 0 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--app-text-muted); }
.notification-row { position: relative; border-bottom: 1px solid var(--app-border); }
.notification-row__icon { position: relative; display: grid; place-items: center; height: 30px; color: var(--app-text-secondary); }
.notification-row__navigate { position: relative; display: grid; grid-template-columns: 30px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 14px var(--notification-inset) 13px; min-height: 78px; width: 100%; border: 0; border-radius: 0; text-align: left; background: transparent; color: var(--app-text); box-shadow: none; transition: background-color 180ms ease; }
.notification-row__navigate:hover, .notification-row__navigate:focus-visible, .notification-row__navigate:active { background: var(--app-primary-subtle); box-shadow: none; }
.notification-row__navigate:focus-visible { outline: 2px solid var(--app-primary); outline-offset: -2px; }
.notification-row__copy { display: grid; gap: 4px; min-width: 0; }
.notification-row__copy strong { font-size: 13px; line-height: 1.3; font-weight: 650; overflow-wrap: anywhere; }
.notification-row__navigate--historical .notification-row__copy strong { padding-right: 76px; }
.notification-row__copy > span { font-size: 12px; line-height: 1.4; color: var(--app-text-muted); overflow-wrap: anywhere; }
.notification-more { display: inline-flex; align-items: center; padding: 10px 0; border: 0; background: transparent; color: var(--notification-action, var(--app-action-text)); font-size: 12px; }
.notification-row__time { position: absolute; top: 14px; right: var(--notification-inset); font-size: 10px; line-height: 1.7; color: var(--app-text-muted); white-space: nowrap; pointer-events: none; }
.notification-row__dot { position: absolute; top: 1px; right: 2px; width: 6px; height: 6px; border-radius: 50%; background: var(--app-primary); }
.notification-feedback, .notification-coverage { margin: 12px 0 0; font-size: 12px; line-height: 1.5; color: var(--app-text-muted); }
.notification-feedback { color: var(--app-danger-text); }
.notification-feedback button { display: block; border: 0; padding: 4px 0; background: transparent; color: var(--notification-action, var(--app-action-text)); }
.notification-button:hover .notification-button__bell, .notification-button:focus-visible .notification-button__bell { animation: notification-bell-swing 550ms ease both; transform-origin: 50% 15%; }
.topbar-help-button:hover > svg, .topbar-help-button:focus-visible > svg { animation: notification-help-bounce 320ms ease both; }
@keyframes notification-bell-swing { 0%,100% { transform: rotate(0); } 20% { transform: rotate(-6deg); } 40% { transform: rotate(5deg); } 60% { transform: rotate(-3deg); } 80% { transform: rotate(2deg); } }
@keyframes notification-help-bounce { 0%,100% { transform: translateY(0); } 40% { transform: translateY(-2px); } 70% { transform: translateY(1px); } }
@keyframes notification-content-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 430px) {
  .notification-drawer { width: 100%; padding: max(18px, env(safe-area-inset-top)) var(--notification-inset) max(12px, env(safe-area-inset-bottom)); }
  .notification-row__navigate { grid-template-columns: 26px minmax(0,1fr) auto; gap: 8px; }
  .notification-row__icon { height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .notification-button:hover .notification-button__bell, .notification-button:focus-visible .notification-button__bell,
  .topbar-help-button:hover > svg, .topbar-help-button:focus-visible > svg, .notification-list__transition { animation: none; }
  .notification-filters__indicator, .notification-filters button, .notification-filters button[aria-selected='true'] { transition: none; }
  .notification-filters button[aria-selected='true'] .notification-filters__label::after,
  #notification-unread-tab[aria-selected='true'] .notification-filters__label::after { transition: none; }
}
.notification-drawer__note { margin: 0; padding-top: 12px; color: var(--app-text-muted); font-size: 11px; line-height: 1.5; }
.notification-drawer.notification-drawer--all { padding-bottom: 0; }
.notification-drawer--all .notification-list { padding-bottom: 0; }
.notification-list__group { border: 1px solid var(--app-border); border-radius: var(--app-radius-card); padding: 16px; background: var(--app-surface); color: var(--app-text); }
.notification-list__summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; text-align: left; }
.notification-list__summary > span:nth-child(2) { display: grid; gap: 6px; }
.notification-list strong { font-size: 13px; }
.notification-list small { color: var(--app-text-muted); line-height: 1.5; font-size: 12px; }
.notification-list__summary--actionable:hover { border-color: var(--app-primary-border); background: var(--app-primary-subtle); }
.notification-list__mark { width: 8px; height: 8px; border-radius: 50%; background: var(--app-primary); }
.notification-list__occurrences { display: grid; gap: 6px; margin-top: 12px; }
.notification-list__occurrences button { display: grid; grid-template-columns: 1fr auto; gap: 6px; border: 0; border-radius: 8px; padding: 10px; background: var(--app-primary-subtle); color: inherit; text-align: left; font-size: 12px; }
.sidebar-backdrop { display: none; }
.app-layout :is(button, a, select):focus-visible { outline: 2px solid var(--app-focus); outline-offset: 3px; }
.app-layout--modal-open .page-content { overflow-y: hidden; }
@media (max-width: 850px) {
  .app-layout { grid-template-columns: minmax(0, 1fr); --shell-header: 64px; }
  .app-main { grid-column: 1; }
  .sidebar { position: absolute; top: 0; bottom: 0; height: 100dvh; width: min(86vw, 340px); transform: translateX(-105%); visibility: hidden; background: var(--app-surface); color: var(--app-text); z-index: 90; }
  .sidebar--open { transform: translateX(0); visibility: visible; }
  .sidebar__top { justify-content: space-between; border-color: var(--app-border); }
  .sidebar__top .brand { width: 176px; }
  .sidebar__close { display: inline-grid; }
  .sidebar__nav { gap: 16px; }
  .nav-label { color: var(--app-text-muted); }
  .nav-item:not(.nav-item--active):hover { background: var(--app-primary-soft); }
  .sidebar__bottom { border-color: var(--app-border); }
  .sidebar__preferences { display: grid; gap: 6px; }
  .sidebar__preferences .tenant-switcher { max-width: none; }
  .sidebar-backdrop { display: block; position: fixed; inset: 0; z-index: 89; border: 0; }
  .menu-button { display: inline-grid; }
  .topbar { padding: 10px 16px; gap: 10px; }
  .topbar__left, .topbar__actions { gap: 8px; }
  .topbar__brand { width: 144px; flex-basis: 144px; }
  .topbar__tenant { display: none; }
  .page-content { padding: 20px 16px max(24px, calc(var(--shell-footer-height) + env(safe-area-inset-bottom) + 8px)); }
  .notification-drawer { --notification-inset: 18px; padding: max(20px, env(safe-area-inset-top)) var(--notification-inset) max(12px, env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
  .topbar { padding-inline: 10px; gap: 6px; }
  .topbar__left, .topbar__actions { gap: 4px; }
  .topbar__brand { width: 124px; flex-basis: 124px; }
  .topbar .icon-button { width: 30px; height: 34px; }
  .page-content { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) { .notification-drawer, .notification-backdrop, .sidebar-backdrop { animation: none; transition: none; } }

/* Reusable form of the approved history scrollbar, using theme tokens. */
.ui-scrollbar { --history-scroll-thumb: color-mix(in srgb, var(--app-text-muted) 42%, transparent); scrollbar-width: thin; scrollbar-color: var(--history-scroll-thumb) transparent; }
.ui-scrollbar:is(:hover, :focus-visible) { --history-scroll-thumb: color-mix(in srgb, var(--app-text-muted) 60%, transparent); }
@supports selector(::-webkit-scrollbar) {
  .ui-scrollbar { scrollbar-width: auto; scrollbar-color: auto; }
}
.ui-scrollbar::-webkit-scrollbar { display: block; width: 6px; height: 6px; }
.ui-scrollbar::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
.ui-scrollbar::-webkit-scrollbar-track { background: transparent; }
.ui-scrollbar::-webkit-scrollbar-thumb { background: var(--history-scroll-thumb); border-radius: 999px; }
.ui-scrollbar::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--app-text-muted) 68%, transparent); }
.ui-scrollbar::-webkit-scrollbar-corner { background: transparent; }
.ui-scrollbar:focus-visible { outline: 2px solid var(--app-focus); outline-offset: 2px; }

/* Shared history scrollbar appearance for internal Desktop Light overlays. */
@media (min-width: 1101px) {
  :root:not([data-theme="dark"]) :is(.notification-list, .registration-review-modal:not(.registration-pending-modal) .public-approval-modal__body, .ui-modal:not(.student-profile-modal):not(.registration-review-modal) > .ui-modal__body) { --history-scroll-thumb: color-mix(in srgb, var(--app-text-muted) 42%, transparent); scrollbar-width: thin; scrollbar-color: var(--history-scroll-thumb) transparent; }
  :root:not([data-theme="dark"]) :is(.notification-list, .registration-review-modal:not(.registration-pending-modal) .public-approval-modal__body, .ui-modal:not(.student-profile-modal):not(.registration-review-modal) > .ui-modal__body):is(:hover, :focus-visible) { --history-scroll-thumb: color-mix(in srgb, var(--app-text-muted) 60%, transparent); }
  @supports selector(::-webkit-scrollbar) {
    /* Let WebKit styling own geometry/buttons instead of standard UA styling. */
    :root:not([data-theme="dark"]) :is(.notification-list, .registration-review-modal:not(.registration-pending-modal) .public-approval-modal__body, .ui-modal:not(.student-profile-modal):not(.registration-review-modal) > .ui-modal__body) { scrollbar-width: auto; scrollbar-color: auto; }
  }
  :root:not([data-theme="dark"]) :is(.notification-list, .registration-review-modal:not(.registration-pending-modal) .public-approval-modal__body, .ui-modal:not(.student-profile-modal):not(.registration-review-modal) > .ui-modal__body)::-webkit-scrollbar { display: block; width: 6px; height: 6px; }
  :root:not([data-theme="dark"]) :is(.notification-list, .registration-review-modal:not(.registration-pending-modal) .public-approval-modal__body, .ui-modal:not(.student-profile-modal):not(.registration-review-modal) > .ui-modal__body)::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
  :root:not([data-theme="dark"]) :is(.notification-list, .registration-review-modal:not(.registration-pending-modal) .public-approval-modal__body, .ui-modal:not(.student-profile-modal):not(.registration-review-modal) > .ui-modal__body)::-webkit-scrollbar-track { background: transparent; }
  :root:not([data-theme="dark"]) :is(.notification-list, .registration-review-modal:not(.registration-pending-modal) .public-approval-modal__body, .ui-modal:not(.student-profile-modal):not(.registration-review-modal) > .ui-modal__body)::-webkit-scrollbar-thumb { background: var(--history-scroll-thumb); border-radius: 999px; }
  :root:not([data-theme="dark"]) :is(.notification-list, .registration-review-modal:not(.registration-pending-modal) .public-approval-modal__body, .ui-modal:not(.student-profile-modal):not(.registration-review-modal) > .ui-modal__body)::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--app-text-muted) 68%, transparent); }
  :root:not([data-theme="dark"]) :is(.notification-list, .registration-review-modal:not(.registration-pending-modal) .public-approval-modal__body, .ui-modal:not(.student-profile-modal):not(.registration-review-modal) > .ui-modal__body)::-webkit-scrollbar-corner { background: transparent; }
  :root:not([data-theme="dark"]) :is(.notification-list, .registration-review-modal:not(.registration-pending-modal) .public-approval-modal__body, .ui-modal:not(.student-profile-modal):not(.registration-review-modal) > .ui-modal__body):focus-visible { outline: 2px solid var(--app-focus); outline-offset: 2px; }
}
/* Dashboard composition; shared tokens and Shell interactions remain unchanged. */
.dashboard-page { gap: 16px; }
.dashboard-metrics-status { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--app-text-muted); font-size: 12px; line-height: 1.5; }
.dashboard-metrics-status svg { flex-shrink: 0; color: var(--app-warning); }
.dashboard-heading h2 { margin: 0 0 4px; font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -.035em; color: var(--app-text); }
.dashboard-heading p { margin: 0; color: var(--app-text-muted); font-size: 14px; line-height: 1.5; }
.welcome-strip { --hero-surface: #e2f3ff; position: relative; isolation: isolate; overflow: hidden; min-height: 250px; border: 1px solid var(--app-primary-border); border-radius: var(--app-radius-control); padding: 24px 28px; background: var(--hero-surface); }
.welcome-strip__copy { position: relative; z-index: 2; max-width: 51%; }
.welcome-strip .eyebrow { color: var(--app-action-text); margin-bottom: 10px; font-size: 11px; }
.welcome-strip h2 { margin: 0 0 8px; color: var(--app-text); font-size: clamp(25px, 2.5vw, 36px); line-height: 1.12; letter-spacing: -.035em; }
.welcome-strip h2 span { color: var(--app-action-text); }
.welcome-strip__copy > p { max-width: 550px; margin: 0; color: var(--app-text-muted); font-size: 13px; line-height: 1.45; }
.welcome-strip__context { display: block; margin: 8px 0; color: var(--app-text-muted); font-size: 10px; line-height: 1.4; }
.welcome-strip__date-tail { white-space: nowrap; }
.welcome-strip .button { min-height: 38px; padding-block: 8px; }
.welcome-strip__art { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.welcome-strip__art::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--hero-surface) 38%, transparent 63%); }
.welcome-strip__background { position: absolute; bottom: 0; right: 0; height: 100%; width: auto; max-width: 64%; object-fit: contain; object-position: right bottom; mask-image: linear-gradient(90deg, transparent, black 24%); }
:root[data-theme='dark'] .welcome-strip { --hero-surface: #031a34; }
:root[data-theme='dark'] .welcome-strip :is(.eyebrow, h2 span) { color: var(--app-accent); }
.dashboard-page .metric-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.dashboard-page .metric-card { position: relative; isolation: isolate; overflow: hidden; min-height: 122px; display: grid; grid-template-columns: minmax(0, 1fr) 42px; align-items: center; gap: 0 8px; padding: 18px; border: 1px solid var(--app-border); border-radius: var(--app-radius-control); background: var(--app-surface); color: var(--app-text); }
.dashboard-page .metric-card__content { grid-column: 1; grid-row: 1; }
.dashboard-page .metric-card :is(.metric-card__trend, .metric-card__context) { grid-column: 1 / -1; grid-row: 2; }
.dashboard-page .metric-card::before { content: ''; position: absolute; right: -30px; top: -8px; width: 126px; height: 126px; border-radius: 50%; background: linear-gradient(135deg, var(--app-primary-subtle), transparent); z-index: -1; }
.dashboard-page .metric-card__icon { grid-column: 2; grid-row: 1 / 3; background: transparent; color: color-mix(in srgb, var(--app-primary) 55%, var(--app-surface)); width: 42px; height: 42px; flex-shrink: 0; }
.dashboard-page .metric-card__icon svg { width: 38px; height: 38px; }
:root[data-theme='dark'] .dashboard-page .metric-card__icon { color: color-mix(in srgb, var(--app-primary) 75%, white); }
.dashboard-page .metric-card__label { white-space: normal; color: var(--app-text-muted); font-size: 12px; line-height: 1.4; }
.dashboard-page .metric-card strong { display: block; color: var(--app-text); font-size: 36px; line-height: 1.1; margin-top: 9px; letter-spacing: -.035em; }
.metric-card__context { display: block; margin-top: 7px; font-size: 10px; line-height: 1.35; color: var(--app-text-muted); font-weight: 400; }
.metric-card__trend { display: flex; align-items: baseline; gap: 4px; min-width: 0; white-space: nowrap; margin-top: 9px; font-size: 11px; line-height: 1.4; font-weight: 600; color: var(--app-text-muted); }
.dashboard-page .metric-card .metric-card__trend .metric-card__trend-value { flex-shrink: 0; white-space: nowrap; font-size: inherit; color: inherit; }
.dashboard-page .metric-card .metric-card__trend .metric-card__trend-context { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 400; color: var(--app-text-muted); }
.dashboard-page .metric-card__trend--up { color: var(--app-success); }
.dashboard-page .metric-card__trend--down { color: var(--app-danger-text); }
.dashboard-page .metric-card__trend--new { color: var(--app-accent); }
.dashboard-page .metric-card__trend--muted { color: var(--app-text-muted); }
.dashboard-page .metric-card--link { transition: transform 240ms ease, box-shadow 240ms ease; }
.dashboard-page .metric-card--link:is(:hover, :focus-visible) { border-color: var(--app-border); box-shadow: var(--app-shadow); transform: translateY(-2px); }
.dashboard-page .metric-card__icon { position: relative; isolation: isolate; transition: color 240ms ease, transform 240ms cubic-bezier(.22,.78,.18,1), filter 240ms ease; }
.topbar :is(.notification-button, .topbar-help-button) { position: relative; isolation: isolate; }
.topbar :is(.notification-button, .topbar-help-button) > svg { transition: color 240ms ease, filter 240ms ease; }
.dashboard-page .metric-card__icon::before,
.topbar :is(.notification-button, .topbar-help-button)::before { content: ''; position: absolute; inset: -2px; z-index: -1; pointer-events: none; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--app-accent) 20%, transparent), color-mix(in srgb, var(--app-primary) 9%, transparent) 44%, transparent 72%); filter: blur(5px); opacity: 0; transform: scale(.7); transition: opacity 240ms ease, transform 280ms ease; }
.dashboard-page .metric-card--link:is(:hover, :focus-visible) .metric-card__icon,
.topbar :is(.notification-button, .topbar-help-button):is(:hover, :focus-visible) > svg { color: var(--app-accent); filter: drop-shadow(0 0 3px color-mix(in srgb, var(--app-accent) 26%, transparent)); }
.dashboard-page .metric-card--link:is(:hover, :focus-visible) .metric-card__icon { transform: scale(1.055); }
.dashboard-page .metric-card--link:is(:hover, :focus-visible) .metric-card__icon::before,
.topbar :is(.notification-button, .topbar-help-button):is(:hover, :focus-visible)::before { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
  .dashboard-page .metric-card--link { transition: none; }
  .dashboard-page .metric-card--link:is(:hover, :focus-visible) { transform: none; }
  .dashboard-page .metric-card__icon, .dashboard-page .metric-card__icon::before,
  .topbar :is(.notification-button, .topbar-help-button) > svg, .topbar :is(.notification-button, .topbar-help-button)::before { transition: none; }
  .dashboard-page .metric-card--link:is(:hover, :focus-visible) .metric-card__icon, .dashboard-page .metric-card__icon::before,
  .topbar :is(.notification-button, .topbar-help-button)::before { transform: none; }
}
.dashboard-page .metric-card--link:focus-visible { outline-color: var(--app-focus); }
.dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.dashboard-grid--with-notices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dashboard-grid .panel { min-width: 0; background: var(--app-surface); border-color: var(--app-border); border-radius: var(--app-radius-control); }
.dashboard-grid .dashboard-notices { overflow: hidden; }
.dashboard-grid .panel__header { min-height: 56px; gap: 6px; padding: 12px 14px; }
.dashboard-grid .panel__header h3 { color: var(--app-text); font-size: 14px; }
.dashboard-grid .panel__header .eyebrow { display: none; }
.dashboard-grid :is(.text-button, .icon-link) { color: var(--app-action-text); flex-shrink: 0; font-size: 11px; }
.dashboard-grid .text-button { gap: 7px; min-height: 32px; border-radius: 6px; transition: color 180ms ease; }
.dashboard-grid .text-button svg { width: 19px; height: 19px; stroke-width: 2; flex-shrink: 0; transition: transform 180ms ease, filter 180ms ease; }
.dashboard-grid .text-button:is(:hover, :focus-visible) { color: var(--app-accent); background: transparent; box-shadow: none; }
.dashboard-grid .text-button:focus-visible { outline: none; text-decoration: underline; text-decoration-color: var(--app-focus); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.dashboard-grid .text-button:is(:hover, :focus-visible) svg { transform: translateX(3px); filter: drop-shadow(0 0 4px color-mix(in srgb, var(--app-accent) 45%, transparent)); }
.dashboard-grid :is(.recent-list, .class-list, .dashboard-notices__list) { padding: 0 14px; }
.recent-row, .class-row { display: grid; min-height: 80px; align-items: center; align-content: center; gap: 5px 12px; padding-block: 15px; border-bottom: 1px solid var(--app-border); }
.recent-row { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.class-row { grid-template-columns: auto minmax(0, 1fr) auto; }
.recent-row:last-child, .class-row:last-child { border-bottom: 0; }
.recent-row__name, .class-row strong { min-width: 0; color: var(--app-text); font-size: 14px; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; }
.recent-row small, .class-row small, .recent-row time, .class-row time { color: var(--app-text-muted); font-size: 10px; font-style: normal; line-height: 1.4; overflow-wrap: anywhere; }
.recent-row time { grid-column: 4; grid-row: 1 / 3; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.recent-row small.recent-row__school { grid-column: 2; grid-row: 2; font-size: 12px; line-height: 1.5; color: color-mix(in srgb, var(--app-text-muted) 85%, var(--app-text)); }
.recent-row > .avatar, .class-row__icon { grid-row: 1 / 3; }
.recent-row .status-badge { grid-column: 3; grid-row: 1 / 3; justify-self: end; padding: 4px 7px; }
.class-row__name { grid-column: 2; grid-row: 1; min-width: 0; }
.class-row__name strong { display: block; }
.class-row__date { grid-column: 3; grid-row: 1; text-align: right; }
.class-row small.class-row__location { grid-column: 2; grid-row: 2; font-size: 12px; line-height: 1.5; }
.class-row small.class-row__time { grid-column: 3; grid-row: 2; text-align: right; white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 11px; }
.class-row small.class-row__time--empty { white-space: normal; max-width: 110px; font-weight: 400; font-size: 10px; }
.class-row__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--app-primary-soft); color: var(--app-action-text); }
.dashboard-notice__icon { display: grid; place-items: center; width: 32px; height: 32px; color: var(--app-text-muted); }
.dashboard-page .avatar--student { width: 32px; height: 32px; }
.dashboard-page .status-badge--active { color: color-mix(in srgb, var(--app-success) 65%, var(--app-text)); }
.dashboard-notice { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 11px; width: 100%; min-height: 76px; padding: 16px 0; text-align: left; border: 0; border-bottom: 1px solid var(--app-border); border-radius: 0; background: transparent; color: var(--app-text); }
.dashboard-notice:last-child { border-bottom: 0; }
.dashboard-grid .dashboard-notices__list:has(.dashboard-notice) { padding-inline: 0; }
.dashboard-notices__list .dashboard-notice { padding-inline: 14px; }
.dashboard-notice strong { display: block; color: var(--app-text); font-size: 14px; font-weight: 650; line-height: 1.4; }
.dashboard-notice small { display: block; margin-top: 6px; color: var(--app-text-muted); font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.dashboard-notice:is(:hover, :focus-visible) { background: color-mix(in srgb, var(--app-text-muted) 8%, transparent); }
.dashboard-notice:focus-visible { outline: 2px solid var(--app-focus); outline-offset: -2px; }
.dashboard-grid .empty-list { min-height: 176px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 28px 16px; text-align: center; }
.dashboard-grid .empty-list__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; color: var(--app-action-text); background: none; border: 1px solid transparent; }
.dashboard-grid .empty-list p { max-width: 24ch; margin: 0; color: var(--app-text-muted); font-size: 12px; font-weight: 500; line-height: 1.6; }
@media (min-width: 851px) {
  .class-row__name strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dashboard-grid { align-items: start; }
  .dashboard-grid .panel__header { height: 57px; min-height: 0; box-sizing: border-box; }
  .dashboard-grid :is(.recent-list, .class-list, .dashboard-notices__list) { min-height: calc(5 * 62px); }
  .recent-row, .class-row { height: 62px; min-height: 0; box-sizing: border-box; padding-block: 5px; row-gap: 3px; }
  .dashboard-notice { height: 62px; min-height: 0; box-sizing: border-box; padding-block: 9px; }
  .dashboard-notice small { margin-top: 3px; }
}
/* Desktop geometry belongs to the layout, never to the artwork's intrinsic ratio.
   The absolute artwork cannot enlarge the container, including before it loads. */
@media (min-width: 1101px) {
  .page-content:has(.dashboard-page, .students-page) { padding-top: 14px; }
  .dashboard-page { width: 100%; max-width: 1840px; margin-inline: auto; }
  .welcome-strip { display: flex; align-items: center; height: clamp(270px, 16.67vw, 320px); max-height: 320px; min-height: 0; padding: 20px clamp(24px, 2.4vw, 44px); }
  .welcome-strip__copy { width: 43%; max-width: 640px; padding: 0; }
  .welcome-strip h2 { font-size: clamp(28px, 2.1vw, 40px); line-height: 1.14; text-wrap: balance; margin-bottom: 10px; }
  .welcome-strip__copy > p { font-size: 14px; line-height: 1.5; text-wrap: pretty; }
  .welcome-strip__context { margin-block: 8px; font-size: 11px; }
  .welcome-strip .button { min-height: 44px; padding: 11px 18px; font-size: 14px; }
  .welcome-strip__art { position: absolute; inset: 0; }
  /* Contrast veil is confined to HTML copy; the continuous artwork spans below it. */
  .welcome-strip::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(90deg, rgb(237 247 255 / .8), rgb(237 247 255 / .66) 34%, transparent 51%); }
  :root[data-theme='dark'] .welcome-strip::before { background: linear-gradient(90deg, rgb(3 20 38 / .65), rgb(3 20 38 / .45) 34%, transparent 51%); }
  .welcome-strip__art::after { content: none; }
  .welcome-strip__art picture { display: block; width: 100%; height: 100%; }
  .welcome-strip__background { position: static; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center; mask-image: none; }
  .welcome-strip__copy > p, .welcome-strip__context { color: var(--app-text); }
}
@media (min-width: 1920px) {
  .welcome-strip__art { container-type: size; }
  /* Both runtime panoramas are 2120x400 (5.3:1). Retain the approved 8px
     downward offset only while cover leaves enough vertical crop above it. */
  .welcome-strip__background { object-position: center min(0px, calc((100cqh - 100cqw / 5.3) / 2 + 8px)); }
}
@media (forced-colors: active) {
  .dashboard-grid .text-button:focus-visible { outline: 2px solid Highlight; outline-offset: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  .dashboard-grid .text-button, .dashboard-grid .text-button svg { transition: none; }
  .dashboard-grid .text-button:is(:hover, :focus-visible) svg { transform: none; }
}
@media (max-width: 1100px) {
  .dashboard-page .metric-card { padding: 16px 12px; }
  .dashboard-page .metric-card__icon { width: 28px; }
  .dashboard-grid, .dashboard-grid--with-notices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-notices { grid-column: 1 / -1; }
}
@media (max-width: 650px) {
  .dashboard-page { gap: 12px; }
  .dashboard-heading p { font-size: 12px; }
  .welcome-strip { padding: 17px; min-height: 0; }
  .welcome-strip__copy { max-width: 100%; }
  .welcome-strip .eyebrow { font-size: 9px; margin-bottom: 7px; }
  .welcome-strip h2 { width: max-content; max-width: 100%; margin-bottom: 7px; font-size: clamp(18.5px, 5vw, 22px); line-height: 1.12; letter-spacing: -.04em; white-space: nowrap; }
  .welcome-strip__copy > p { font-size: 11px; line-height: 1.35; max-width: 61%; }
  .welcome-strip__context { max-width: 57%; font-size: 9px; margin-block: 7px; }
  .welcome-strip .button { min-height: 35px; font-size: 12px; padding: 7px 12px; }
  .welcome-strip__background { height: 72%; width: 78%; max-width: none; right: -13%; object-fit: cover; object-position: 38% bottom; mask-image: linear-gradient(to top, black 82%, transparent); }
  .welcome-strip__art::after { background: linear-gradient(90deg, var(--hero-surface) 36%, transparent 69%); }
  .dashboard-page .metric-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
  .dashboard-page .metric-card { grid-column: span 2; height: 120px; min-height: 120px; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) 28px; grid-template-rows: 28px 34px 32px; gap: 0 4px; padding: 12px 10px; align-items: start; }
  .dashboard-page .metric-card:nth-child(n+4) { grid-column: span 3; }
  .dashboard-page .metric-card__content { display: contents; }
  .dashboard-page .metric-card__label { grid-column: 1 / -1; grid-row: 1; align-self: start; display: -webkit-box; max-height: 28px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .dashboard-page .metric-card strong, .dashboard-page .metric-card .skeleton--number { grid-column: 1; grid-row: 2; align-self: start; min-width: 0; }
  .dashboard-page .metric-card__icon { position: static; grid-column: 2; grid-row: 2; align-self: center; justify-self: end; width: 26px; height: 28px; }
  .dashboard-page .metric-card__icon svg { width: 27px; height: 27px; }
  .dashboard-page .metric-card__label { font-size: 10px; }
  .dashboard-page .metric-card strong { font-size: 28px; margin-top: 0; }
  .dashboard-page .metric-card :is(.metric-card__trend, .metric-card__context) { grid-column: 1 / -1; grid-row: 3; align-self: start; width: 100%; max-height: 32px; margin-top: 0; overflow: hidden; }
  .dashboard-page .metric-card__trend--fallback { white-space: normal; }
  .dashboard-page .metric-card .metric-card__trend--fallback .metric-card__trend-value { min-width: 0; flex-shrink: 1; white-space: normal; }

  .dashboard-page .metric-card__context { font-size: 9px; }
  .dashboard-grid { gap: 10px; }
  .dashboard-grid .dashboard-notices { display: none; }
  .dashboard-grid .panel__header { padding: 10px 8px; flex-wrap: wrap; min-height: 60px; align-content: center; }
  .dashboard-grid .panel__header h3 { font-size: 12px; }
  .dashboard-grid :is(.recent-list, .class-list, .dashboard-notices__list) { padding-inline: 8px; }
  .dashboard-notices__list .dashboard-notice { padding-inline: 8px; }
  .dashboard-grid .text-button { font-size: 10px; }
  .dashboard-grid .empty-list { min-height: 150px; padding: 22px 12px; gap: 12px; }
  .dashboard-grid .icon-link { border: 0; width: 22px; height: 22px; }
  .dashboard-grid :is(.recent-list, .class-list) { min-height: 228px; }
  .dashboard-grid :is(.recent-list, .class-list) > .empty-list { min-height: 228px; box-sizing: border-box; }
  .recent-row, .class-row { gap: 4px 6px; height: 76px; min-height: 0; box-sizing: border-box; overflow: hidden; }
  .recent-row__name, .class-row strong, .dashboard-notice strong { font-size: 12px; line-height: 1.4; }
  .recent-row__name, .recent-row__school, .class-row__location { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .class-row__name strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .recent-row small.recent-row__school, .class-row small.class-row__location, .dashboard-notice small { font-size: 11px; }
  .recent-row .status-badge { font-size: 9px; padding: 2px 5px; }
  .recent-row:nth-child(n+4), .class-row:nth-child(n+4), .dashboard-notice:nth-child(n+4) { display: none; }
  .dashboard-page .avatar--student, .class-row__icon { width: 24px; height: 24px; }
  .class-row__icon svg { width: 18px; height: 18px; }
}
/* At phone widths a full date/status and a time interval need a full-width row.
   Two lower columns resume on tablets; never shrink text just to force pairing. */
@media (max-width: 540px) {
  .dashboard-grid, .dashboard-grid--with-notices { grid-template-columns: minmax(0, 1fr); }
  .dashboard-grid .panel__header { min-height: 48px; padding-inline: 12px; }
  .dashboard-grid :is(.recent-list, .class-list, .dashboard-notices__list) { padding-inline: 12px; }
  .dashboard-notices__list .dashboard-notice { padding-inline: 12px; }
  .dashboard-grid :is(.recent-list, .class-list) { min-height: 180px; }
  .dashboard-grid :is(.recent-list, .class-list) > .empty-list { min-height: 180px; }
  .recent-row, .class-row { height: 60px; min-height: 0; padding-block: 6px; }
  .class-row__time--empty { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
}
@media (max-width: 340px) {
  .welcome-strip { padding: 14px; }
  .welcome-strip h2 { max-width: 100%; font-size: 18.5px; }
  .welcome-strip__copy > p { max-width: 68%; }
  .welcome-strip__background { height: 61%; right: -19%; }
  .recent-row { column-gap: 4px; }
}
/* Modalidades follows the approved page, form and interaction tokens. */
.sports-page > .page-heading { align-items: flex-start; flex-wrap: nowrap; }
.sports-page > .page-heading > div:first-child { min-width: 0; flex: 1 1 0; }
.sports-page > .page-heading h2 {
  margin: 0 0 4px;
  color: var(--app-text);
  font-size: clamp(24px, 2.4vw, 30px);
  line-height: normal;
}
.sports-page > .page-heading p { color: var(--app-text-muted); line-height: 1.5; }
.sports-page > .page-heading > .sports-page__heading-actions { align-self: flex-start; flex-shrink: 0; padding-top: 4px; }
.sports-page__heading-actions .button { white-space: nowrap; }

.sports-page > .catalog-panel {
  border-color: var(--app-border);
  border-radius: var(--app-radius-control);
  background: var(--app-surface);
}
.sports-page .students-toolbar { padding: 14px 18px; border-color: var(--app-border); }
.sports-page .students-toolbar .search-box {
  min-height: 36px;
  border-color: var(--app-border);
  border-radius: var(--app-radius-control);
  background: var(--app-surface);
  color: var(--app-text-muted);
}
.sports-page .students-toolbar .search-box:focus-within {
  border-color: var(--app-focus);
  box-shadow: 0 0 0 3px var(--app-focus-ring);
}
.sports-page .students-toolbar .search-box input { height: 34px; color: var(--app-text); box-shadow: none; }
.sports-page .students-toolbar .search-box input::placeholder { color: var(--app-text-muted); opacity: 1; }
.sports-page .students-toolbar .filter-dropdown { flex: 0 0 180px; width: 180px; }
.sports-page .students-toolbar .filter-dropdown__trigger {
  min-height: 36px;
  height: 36px;
  border-color: var(--app-border);
  border-radius: var(--app-radius-control);
  background: var(--app-surface);
  color: var(--app-text);
  font-weight: 500;
}
:is(.sports-page, .sports-form-modal) .filter-dropdown__trigger {
  display: flex;
  width: 100%;
  min-width: 0;
  box-shadow: none;
  transform: none;
}
:is(.sports-page, .sports-form-modal) .filter-dropdown__trigger > span:not(.filter-dropdown__icon) {
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-align: left;
}
:is(.sports-page, .sports-form-modal) .filter-dropdown__trigger:hover { border-color: var(--app-border-strong); }
:is(.sports-page, .sports-form-modal) .filter-dropdown__trigger:focus-visible,
:is(.sports-page, .sports-form-modal) .filter-dropdown--open .filter-dropdown__trigger {
  border-color: var(--app-focus);
  box-shadow: 0 0 0 3px var(--app-focus-ring);
  outline: none;
}
.sports-page .filter-dropdown__icon { background: transparent; color: var(--app-text-muted); }
:is(.sports-page, .sports-form-modal) .filter-dropdown__chevron { flex-shrink: 0; color: var(--app-text-muted); }
.sports-page .results-count { color: var(--app-text-muted); font-size: 12px; font-weight: 400; white-space: nowrap; }

/* FilterDropdown menus live in a body portal, outside the page and modal. */
.filter-dropdown__menu.sports-filter-menu {
  border-color: var(--app-border);
  background: var(--app-surface-raised);
  box-shadow: var(--app-shadow);
}
.sports-filter-menu .filter-dropdown__option { color: var(--app-text); font-weight: 500; }
.sports-filter-menu .filter-dropdown__option:is(:hover, :focus-visible) { background: var(--app-surface-muted); }
.sports-filter-menu .filter-dropdown__option--active { background: var(--app-primary-soft); color: var(--app-text); }
.sports-filter-menu .filter-dropdown__option--active svg { color: var(--app-action-text); }
.sports-filter-menu .filter-dropdown__option:focus-visible { outline: 2px solid var(--app-focus); outline-offset: -2px; box-shadow: none; }

.sports-page .catalog-card { border-color: var(--app-border); background: var(--app-surface); }
.sports-page .catalog-card:hover { border-color: var(--app-border-strong); box-shadow: var(--app-shadow); transform: none; }
.sports-page .catalog-card__body h3 { color: var(--app-text); overflow-wrap: anywhere; }
.sports-page .catalog-card__body p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: var(--app-text-muted);
  overflow-wrap: anywhere;
}
.sports-page .catalog-card__meta span { color: var(--app-text-muted); }
.sports-page .catalog-card__meta svg { flex-shrink: 0; color: var(--app-text-muted); }
.sports-page .status-badge--inactive { background: var(--app-surface-muted); color: var(--app-text-muted); }
.sports-page .catalog-empty { color: var(--app-text-muted); }

/* One full-width footer reaches the card's clipped, rounded bottom corners. */
.sports-page .catalog-card__actions { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: auto; }
.sports-page .catalog-card__action {
  width: 100%;
  min-height: 42px;
  margin-top: 0;
  border-top-color: var(--app-border);
  border-radius: 0;
  background: var(--app-primary-subtle);
  color: var(--app-action-text);
  transition: background-color 160ms ease, color 160ms ease;
}
.sports-page .catalog-card__action:is(:hover, :focus-visible) { background: var(--app-primary-soft); color: var(--app-action-text-hover); }
.sports-page .catalog-card__action:focus-visible { outline: 2px solid var(--app-focus); outline-offset: -3px; box-shadow: none; }

/* Keep the existing side panel while sharing Modal's focus, close and locks. */
.ui-modal-backdrop:has(> .sports-form-modal) { padding: 0; place-items: stretch end; }
.ui-modal.sports-form-modal {
  width: min(100%, 590px);
  height: 100%;
  max-height: 100%;
  border: 0;
  border-left: 1px solid var(--app-border);
  border-radius: 0;
  background: var(--app-surface);
  color: var(--app-text);
  animation: slideIn 210ms ease-out;
}
.sports-form-modal .ui-modal__header { min-height: 88px; align-items: center; gap: 16px; padding: 20px 24px; }
.sports-form-modal .ui-modal__title { font-size: 23px; line-height: 1.25; letter-spacing: -.025em; }
.sports-form-modal .ui-modal__close { flex-shrink: 0; }
.sports-form-modal .ui-modal__body { padding: 24px; }
.sports-form-modal__form { display: flex; min-width: 0; flex-direction: column; gap: 23px; }
.sports-form-modal .form-section { gap: 12px; border-color: var(--app-border); }
.sports-form-modal .form-section h3 { margin: 0; color: var(--app-text); line-height: 1.5; }
.sports-form-modal .form-grid > .field:only-child { grid-column: 1 / -1; }
.sports-form-modal .field { min-width: 0; gap: 6px; color: var(--app-text); font-size: 12px; }
.sports-form-modal :is(.field input, .field textarea, .filter-dropdown__trigger) {
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--app-primary-border);
  border-radius: 6px;
  background: var(--app-surface);
  color: var(--app-text);
  font-size: 13px;
  font-weight: 400;
  box-shadow: none;
}
.sports-form-modal .filter-dropdown__trigger { height: 42px; }
.sports-form-modal :is(input, textarea)::placeholder { color: var(--app-text-muted); opacity: 1; }
.sports-form-modal :is(.field input, .field textarea):hover { border-color: var(--app-border-strong); }
.sports-form-modal :is(.field input, .field textarea):focus {
  border-color: var(--app-focus);
  box-shadow: 0 0 0 3px var(--app-focus-ring);
  outline: none;
}
.sports-form-modal .ui-modal__footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; }
.sports-form-modal .ui-modal__footer .button { min-height: 42px; padding: 0 20px; font-size: 13px; }
.sports-form-modal .form-error,
.sports-page .inline-alert { border-color: var(--app-danger); background: var(--app-danger-soft); color: var(--app-danger-text); }
.sports-form-modal .field-validation-notice { border-left-color: var(--app-focus); background: var(--app-primary-soft); color: var(--app-text); }
.sports-form-modal .field-validation-notice svg { color: var(--app-action-text); }
/* The shared invalid-control rule uses !important; keep its local ring on tokens. */
.sports-form-modal :is(input, textarea).form-control--invalid { border-color: var(--app-focus) !important; box-shadow: 0 0 0 3px var(--app-focus-ring) !important; }
:root[data-theme='dark'] .sports-form-modal :is(.field input, .field textarea, .filter-dropdown__trigger) { background: var(--app-surface-raised); border-color: var(--app-border-strong); }
:root[data-theme='dark'] .sports-form-modal :is(.field input, .field textarea):focus,
:root[data-theme='dark'] .sports-form-modal .filter-dropdown__trigger:focus-visible,
:root[data-theme='dark'] .sports-form-modal .filter-dropdown--open .filter-dropdown__trigger { border-color: var(--app-focus); }

@media (min-width: 1101px) {
  .page-content:has(.sports-page) { padding-top: 14px; }
}

@media (max-width: 650px) {
  .sports-page > .page-heading { grid-template-columns: minmax(0, 1fr) auto; align-items: flex-start; row-gap: 6px; }
  .sports-page > .page-heading h2 { grid-row: 1; margin: 0; }
  .sports-page > .page-heading p { grid-row: 2; font-size: 12px; }
  .sports-page > .page-heading > .sports-page__heading-actions { grid-row: 1; width: auto; padding-top: 0; }
  .sports-page > .page-heading .sports-page__heading-actions .button { width: auto; min-width: 90px; min-height: 38px; padding: 0 15px; }
  .sports-page .students-toolbar { padding: 13px; }
  .sports-page .students-toolbar .search-box { width: 100%; min-height: 44px; }
  .sports-page .students-toolbar .search-box input { height: 42px; }
  .sports-page .students-toolbar .filter-dropdown { flex: 0 0 100%; width: 100%; }
  .sports-page .students-toolbar .filter-dropdown__trigger { height: 44px; }
  .ui-modal.sports-form-modal { width: 100%; border-left: 0; }
  .sports-form-modal .ui-modal__header { min-height: 78px; padding: 18px; }
  .sports-form-modal .ui-modal__title { font-size: 20px; }
  .sports-form-modal .ui-modal__body { padding: 18px; }
  .sports-form-modal .ui-modal__footer { padding: 14px 18px max(14px, env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .ui-modal.sports-form-modal,
  .sports-form-modal .field-validation-notice,
  .sports-filter-menu { animation: none; }
  .sports-page .catalog-card,
  .sports-page .catalog-card__action,
  :is(.sports-page, .sports-form-modal) :is(.button, .filter-dropdown__trigger, .filter-dropdown__chevron) { transition: none; }
  :is(.sports-page, .sports-form-modal) .button:hover:not(:disabled) { transform: none; }
}
