:root {
  color-scheme: light;
  --navy-950: #071a33;
  --navy-900: #0b2345;
  --navy-800: #12325d;
  --navy-700: #1b4779;
  --burgundy-700: #841f3f;
  --burgundy-100: #f7e8ed;
  --ink-900: #172033;
  --ink-700: #465269;
  --ink-500: #69758a;
  --line: #dce2ea;
  --surface: #ffffff;
  --background: #f4f6f9;
  --success: #176448;
  --success-soft: #e7f5ef;
  --warning: #8a5a12;
  --warning-soft: #fff5dc;
  --focus: #1f6feb;
  --shadow: 0 1rem 2.5rem rgba(7, 26, 51, 0.09);
  --ivory: #fcfaf6;
  --warm-gray: #f0ede8;
  --page-gutter: clamp(1rem, 3vw, 2.5rem);
  --content-max: 78rem;
  --shell-max: 83rem;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 0;
  min-height: 100%;
  background: var(--background);
}

body {
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: var(--ink-900);
  background: var(--background);
}

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

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

:where(p, li, dd, dt, h1, h2, h3, h4, a, button, label, span, strong, code) {
  overflow-wrap: anywhere;
}

:where(main, section, article, aside, nav, header, footer, form, fieldset, div) {
  min-width: 0;
}

table {
  max-width: 100%;
}

pre {
  max-width: 100%;
  overflow: auto;
}

button,
input,
select,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button,
input,
select {
  min-width: 0;
}

:focus-visible {
  outline: 0.2rem solid var(--focus);
  outline-offset: 0.18rem;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.7rem 1rem;
  transform: translateY(-150%);
  border-radius: 0.5rem;
  color: white;
  background: var(--navy-950);
}

.skip-link:focus {
  transform: none;
}

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

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
}

.site-header__inner {
  display: flex;
  width: 100%;
  max-width: var(--shell-max);
  min-height: 4.75rem;
  margin-inline: auto;
  padding-inline: var(--page-gutter);
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
}

.brand img {
  display: block;
  flex: 0 0 auto;
  width: 3.25rem;
  height: auto;
  object-fit: contain;
}

.brand--hero img,
.brand--auth img {
  width: 5.3125rem;
}

.brand--hero,
.brand--auth {
  color: white;
  font-size: 1.55rem;
}

.brand--card {
  margin-bottom: 2rem;
  color: var(--navy-950);
}

.brand--card img {
  width: 4rem;
}

.site-nav {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.site-nav a,
.nav-logout {
  display: inline-flex;
  min-height: 2.75rem;
  padding: 0.65rem 0.85rem;
  align-items: center;
  border: 0;
  border-radius: 0.65rem;
  color: var(--ink-700);
  font-weight: 700;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
}

.site-nav a:hover,
.nav-logout:hover {
  color: var(--navy-900);
  background: #edf1f7;
}

.site-nav form {
  margin: 0;
}

.site-header--admin {
  container-name: admin-header;
  container-type: inline-size;
}

.site-header--admin .brand--header {
  flex: 0 0 auto;
  min-width: max-content;
}

.admin-navigation {
  min-width: 0;
  margin-left: auto;
}

.admin-navigation__toggle {
  display: none;
}

.site-nav--admin {
  flex-wrap: nowrap;
}

.site-main {
  width: 100%;
  max-width: var(--shell-max);
  margin-inline: auto;
  padding: 2.5rem var(--page-gutter) 4rem;
}

.site-main--flush {
  width: 100%;
  max-width: none;
  padding: 0;
}

.home-page {
  background:
    radial-gradient(circle at 88% 6%, rgba(132, 31, 63, 0.1), transparent 28rem),
    linear-gradient(180deg, var(--ivory), var(--background) 68%);
}

.home-page .site-header--public {
  border-bottom-color: rgba(11, 35, 69, 0.09);
  background: rgba(252, 250, 246, 0.96);
  backdrop-filter: blur(0.8rem);
}

.home-page .site-header--public .site-header__inner {
  min-height: 5.5rem;
}

.home-page .site-header--public .brand--header img {
  width: 3.5rem;
}

.home-page .site-header--public .site-nav a {
  min-height: 2.9rem;
  padding-inline: 1.05rem;
  border: 1px solid rgba(11, 35, 69, 0.13);
  color: var(--navy-900);
  background: white;
  box-shadow: 0 0.35rem 1rem rgba(7, 26, 51, 0.05);
}

.home-page .site-main {
  max-width: none;
  padding: 0;
}

.home-shell {
  width: 100%;
  padding: clamp(1.25rem, 4vw, 3.5rem) var(--page-gutter) 1.5rem;
}

.home-hero {
  position: relative;
  display: grid;
  width: 100%;
  max-width: var(--content-max);
  min-height: 35rem;
  margin-inline: auto;
  padding: clamp(2.25rem, 5vw, 4.75rem);
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: clamp(1.4rem, 3vw, 2.25rem);
  color: white;
  background:
    radial-gradient(circle at 92% 14%, rgba(191, 105, 133, 0.2), transparent 19rem),
    linear-gradient(135deg, var(--navy-950), #102f5b 70%, #183d6c);
  box-shadow: 0 1.8rem 5rem rgba(7, 26, 51, 0.16);
  isolation: isolate;
}

.home-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 0;
  width: 0.3rem;
  content: "";
  background: linear-gradient(180deg, #b55e7b, var(--burgundy-700));
}

.home-hero__content {
  position: relative;
  z-index: 2;
}

.home-hero h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.8rem, 5.2vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: -0.052em;
  text-wrap: balance;
}

.home-hero__lead {
  max-width: 38rem;
  margin: 1.35rem 0 0;
  color: #d8e0ec;
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  line-height: 1.65;
}

.home-hero__actions {
  display: flex;
  margin-top: 2rem;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.9rem 1.25rem;
}

.button--home-primary {
  min-height: 3.35rem;
  padding-inline: 1.35rem;
  gap: 1rem;
  color: var(--navy-950);
  background: white;
  box-shadow: 0 0.75rem 1.8rem rgba(7, 26, 51, 0.2);
}

.button--home-primary:hover {
  background: #f7eef1;
}

.button--home-primary span:last-child {
  color: var(--burgundy-700);
  font-size: 1.2rem;
}

.home-recovery-link {
  display: inline-flex;
  min-height: 3rem;
  padding: 0.7rem 0.15rem;
  align-items: center;
  gap: 0.5rem;
  color: white;
  font-weight: 750;
  text-decoration: none;
}

.home-recovery-link:hover {
  color: #f4ccd8;
}

.home-recovery-link__label {
  border-bottom: 1px solid currentColor;
  line-height: 1.35;
}

.home-hero__visual {
  position: relative;
  display: grid;
  min-height: 27rem;
  place-items: center;
}

.home-hero__visual img {
  position: relative;
  z-index: 2;
  width: min(100%, 36rem);
  filter: drop-shadow(0 1.4rem 2.4rem rgba(3, 16, 34, 0.24));
}

.home-hero__orb {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}

.home-hero__orb--one {
  top: 2%;
  right: 0;
  width: 13rem;
  height: 13rem;
}

.home-hero__orb--two {
  bottom: 5%;
  left: 1%;
  width: 8rem;
  height: 8rem;
  background: rgba(181, 94, 123, 0.14);
}

.home-benefits {
  width: 100%;
  max-width: var(--content-max);
  margin: clamp(3rem, 7vw, 6rem) auto 0;
}

.home-benefits__heading {
  display: flex;
  margin-bottom: 1.75rem;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.home-benefits__heading h2 {
  max-width: 18ch;
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.home-benefits__heading > p {
  max-width: 28rem;
  margin: 0 0 0.35rem;
  color: var(--ink-500);
  line-height: 1.6;
}

.home-benefits__grid {
  display: grid;
  margin: 0;
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
}

.home-benefits__grid li {
  display: flex;
  min-width: 0;
  min-height: 10rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  align-items: flex-start;
  gap: 1rem;
  border: 1px solid rgba(11, 35, 69, 0.1);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 0.7rem 2rem rgba(7, 26, 51, 0.055);
}

.home-benefit__icon {
  display: grid;
  width: 3.15rem;
  height: 3.15rem;
  flex: 0 0 3.15rem;
  place-items: center;
  border-radius: 0.9rem;
  color: var(--burgundy-700);
  background: var(--burgundy-100);
}

.home-benefit__icon svg {
  width: 1.55rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-benefits__grid h3 {
  margin: 0.15rem 0 0.55rem;
  color: var(--navy-950);
  font-size: 1.08rem;
}

.home-benefits__grid p {
  margin: 0;
  color: var(--ink-500);
  line-height: 1.55;
}

.home-footer {
  display: flex;
  width: 100%;
  max-width: var(--content-max);
  margin: clamp(2.5rem, 6vw, 5rem) auto 0;
  padding-top: 1.25rem;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(11, 35, 69, 0.1);
  color: var(--ink-500);
  font-size: 0.9rem;
}

.home-footer span:first-child {
  color: var(--navy-900);
  font-weight: 800;
}

.auth-intro h1,
.admin-hero h1,
.student-hero h1 {
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.auth-intro__content > p:last-child,
.admin-hero > div > p:last-child,
.student-hero > div > p:last-child {
  max-width: 40rem;
  margin: 1rem 0 0;
  color: #d6deeb;
  font-size: 1.1rem;
  line-height: 1.65;
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--burgundy-700);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

.button {
  display: inline-flex;
  min-height: 2.85rem;
  padding: 0.72rem 1.15rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 0.7rem;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button--primary {
  color: white;
  background: var(--navy-900);
}

.button--primary:hover {
  background: var(--navy-800);
}

.button--light {
  margin-top: 1.7rem;
  color: var(--navy-950);
  background: white;
}

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

.button--ghost {
  border-color: var(--line);
  color: var(--ink-700);
  background: #f8fafc;
}

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

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.auth-page {
  background: #f2f5f9;
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  grid-template-columns: minmax(19rem, 0.78fr) minmax(0, 1.72fr);
}

.auth-intro {
  display: flex;
  min-width: 0;
  padding: clamp(2rem, 4.5vw, 4.5rem);
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
  color: white;
  background: linear-gradient(150deg, var(--navy-950), var(--navy-900));
}

.auth-intro__content {
  margin-block: auto;
}

.auth-panel {
  display: grid;
  min-width: 0;
  padding: clamp(1.25rem, 4vw, 4rem);
  place-items: center;
}

.auth-card {
  width: min(100%, 44rem);
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  background: white;
  box-shadow: var(--shadow);
}

.auth-card h1,
.auth-card h2,
.status-card h1,
.page-heading h1,
.content-card h1 {
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.lead {
  margin: 0.85rem 0 1.75rem;
  color: var(--ink-500);
  font-size: 1.05rem;
  line-height: 1.6;
}

.form-stack,
.form-grid {
  display: grid;
  min-width: 0;
  gap: 1rem;
}

.stack-form {
  display: grid;
  min-width: 0;
  gap: 0.75rem;
}

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

.form-grid > .validation-summary,
.form-grid > .button,
.form-grid > .button-row {
  grid-column: 1 / -1;
}

.form-grid--student {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
}

.field {
  display: grid;
  min-width: 0;
  gap: 0.45rem;
  color: var(--ink-900);
  font-weight: 700;
}

.field input,
.field select,
.field textarea,
.filters input,
.filters select,
.filter-grid input,
.filter-grid select,
.inline-course-form select,
.compact-action-form select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 3rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid #c8d1dd;
  border-radius: 0.65rem;
  color: var(--ink-900);
  background: white;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.filters input:focus,
.filters select:focus,
.filter-grid input:focus,
.filter-grid select:focus,
.inline-course-form select:focus,
.compact-action-form select:focus {
  border-color: var(--focus);
}

.password-field {
  position: relative;
  display: flex;
  min-width: 0;
}

.password-field input {
  padding-right: 6rem;
}

.password-toggle {
  position: absolute;
  inset: 0.125rem 0.25rem 0.125rem auto;
  min-width: 5rem;
  border: 0;
  border-radius: 0.5rem;
  color: var(--navy-800);
  font-weight: 750;
  background: transparent;
  cursor: pointer;
}

.text-link {
  display: block;
  min-height: 2.75rem;
  margin-top: 1rem;
  padding: 0.7rem;
  color: var(--burgundy-700);
  font-weight: 750;
  text-align: center;
}

.security-note,
.password-rules {
  margin: 1rem 0 0;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--burgundy-700);
  color: var(--ink-700);
  font-size: 0.9rem;
  line-height: 1.55;
  background: #faf7f8;
}

.password-rules {
  padding-left: 2rem;
}

.field-error,
.validation-summary {
  color: #a02037;
  font-size: 0.88rem;
  font-weight: 650;
}

.validation-summary:empty,
.field-error:empty {
  display: none;
}

.validation-summary ul {
  margin: 0;
  padding-left: 1.25rem;
}

.auth-page--single {
  display: grid;
  padding: 1rem;
  place-items: center;
}

.single-auth {
  width: min(100%, 42rem);
}

.site-main--flush .single-auth {
  margin: 1rem auto;
}

.breadcrumbs {
  display: flex;
  min-height: 2.75rem;
  margin-bottom: 1rem;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: var(--ink-500);
  font-size: 0.92rem;
}

.breadcrumbs a {
  color: var(--navy-700);
  font-weight: 700;
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.student-hero {
  display: flex;
}

.admin-hero,
.student-hero {
  min-width: 0;
  margin-bottom: 1.5rem;
  padding: clamp(1.35rem, 3vw, 2.6rem);
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 2rem);
  border-radius: 1.5rem;
  color: white;
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
  box-shadow: var(--shadow);
}

.admin-hero > *,
.admin-hero__content {
  min-width: 0;
}

.admin-hero__content {
  max-width: 52rem;
}

.admin-hero h1,
.student-hero h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.admin-hero h1 {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

.summary-badge {
  display: grid;
  min-width: 0;
  width: min(100%, 12rem);
  padding: 1rem;
  gap: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.1);
}

.admin-hero .summary-badge {
  width: 12rem;
  max-width: 100%;
  justify-self: end;
}

.summary-badge--status {
  padding: 1.05rem 1.15rem;
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 0.75rem 1.6rem rgba(2, 16, 35, 0.16);
}

.summary-badge span {
  color: #d2dcec;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-badge strong {
  font-size: 1.25rem;
}

.notice {
  margin: 0 0 1.25rem;
  padding: 0.95rem 1.1rem;
  border-left: 4px solid var(--navy-700);
  border-radius: 0.4rem 0.8rem 0.8rem 0.4rem;
  color: var(--ink-700);
  line-height: 1.55;
  background: #eaf1fa;
}

.notice--warning {
  border-left-color: var(--warning);
  background: var(--warning-soft);
}

.notice--success {
  border-left-color: var(--success);
  background: var(--success-soft);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
  align-items: start;
  gap: clamp(0.9rem, 1.8vw, 1.2rem);
}

.dashboard-card {
  display: flex;
  min-width: 0;
  min-height: 10.5rem;
  padding: clamp(1.1rem, 2vw, 1.4rem);
  align-items: flex-start;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  color: var(--ink-900);
  text-decoration: none;
  background: white;
  box-shadow: 0 0.5rem 1.5rem rgba(7, 26, 51, 0.05);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.dashboard-card:hover {
  border-color: var(--navy-700);
  box-shadow: 0 0.8rem 2rem rgba(7, 26, 51, 0.09);
  transform: translateY(-1px);
}

.dashboard-card--accent {
  box-shadow: inset 4px 0 0 var(--burgundy-700);
}

.dashboard-card--pending {
  opacity: 0.68;
}

.dashboard-card > span:last-child {
  display: grid;
  min-width: 0;
  gap: 0.35rem;
}

.dashboard-card > span:last-child > * {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.dashboard-card small {
  color: var(--burgundy-700);
  font-weight: 800;
  text-transform: uppercase;
}

.dashboard-card strong {
  color: var(--navy-950);
  font-size: 1.2rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.dashboard-card span span {
  color: var(--ink-500);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.card-icon,
.avatar {
  display: inline-grid;
  flex: 0 0 auto;
  width: 3.4rem;
  height: 3.4rem;
  place-items: center;
  border-radius: 0.9rem;
  color: var(--navy-800);
  font-weight: 850;
  background: #eaf0f8;
}

.page-heading {
  display: flex;
  min-width: 0;
  margin-bottom: 1.5rem;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
}

.page-heading p:last-child {
  margin: 0.7rem 0 0;
  color: var(--ink-500);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(17rem, 0.72fr) minmax(0, 1.28fr);
  gap: 1.25rem;
  align-items: start;
}

.content-card,
.status-card {
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: white;
  box-shadow: 0 0.7rem 2rem rgba(7, 26, 51, 0.05);
}

.content-card + .content-card {
  margin-top: 1.25rem;
}

.split-layout .content-card + .content-card {
  margin-top: 0;
}

.content-card h2,
.section-heading h2 {
  margin: 0 0 1rem;
  color: var(--navy-950);
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.section-heading {
  display: flex;
  margin-bottom: 1rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.section-heading h2 {
  margin: 0;
}

.count-badge {
  display: inline-grid;
  min-width: 2.5rem;
  height: 2.5rem;
  padding-inline: 0.7rem;
  place-items: center;
  border-radius: 99rem;
  color: var(--navy-900);
  font-weight: 800;
  background: #eaf0f8;
}

.item-list,
.student-list {
  display: grid;
  gap: 0.8rem;
}

.item-card,
.student-card {
  display: flex;
  min-width: 0;
  padding: 1rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: #fbfcfe;
}

.item-card h3,
.student-card h3 {
  margin: 0.35rem 0;
  color: var(--navy-950);
  font-size: 1.08rem;
}

.item-card p,
.student-card p {
  margin: 0;
  color: var(--ink-500);
}

.item-actions,
.student-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
}

.item-actions form,
.student-actions form {
  margin: 0;
}

.status-pill {
  display: inline-flex;
  padding: 0.32rem 0.62rem;
  border-radius: 99rem;
  color: var(--ink-700);
  font-size: 0.75rem;
  font-weight: 800;
  background: #edf1f5;
}

.status-pill--activo,
.status-pill--student-2 {
  color: var(--success);
  background: var(--success-soft);
}

.status-pill--preparacion,
.status-pill--student-1 {
  color: var(--warning);
  background: var(--warning-soft);
}

.status-pill--cerrado,
.status-pill--student-3 {
  color: var(--burgundy-700);
  background: var(--burgundy-100);
}

.filters {
  display: grid;
  min-width: 0;
  margin-bottom: 1.25rem;
  grid-template-columns: minmax(12rem, 1.5fr) repeat(2, minmax(10rem, 1fr)) auto;
  align-items: end;
  gap: 0.75rem;
}

.filters > *,
.filter-grid > * {
  min-width: 0;
}

.filters > label,
.filter-grid > label {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 0.45rem;
  color: var(--ink-900);
  font-weight: 700;
}

.student-card {
  display: grid;
  grid-template-columns: minmax(14rem, 1.2fr) minmax(18rem, 1fr) minmax(17rem, auto);
}

.student-card__identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.8rem;
}

.student-card__identity > div {
  min-width: 0;
}

.student-card__identity a {
  display: block;
  overflow-wrap: anywhere;
  color: var(--navy-700);
}

.student-details {
  display: grid;
  margin: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.student-details div {
  min-width: 0;
}

.student-details dt {
  color: var(--ink-500);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.student-details dd {
  margin: 0.2rem 0 0;
  overflow-wrap: anywhere;
  color: var(--ink-900);
  font-size: 0.9rem;
}

.inline-course-form {
  display: flex;
  max-width: 19rem;
  align-items: center;
  gap: 0.45rem;
}

.inline-course-form select {
  min-height: 2.85rem;
}

.empty-state {
  margin: 0;
  padding: 2rem 1rem;
  border: 1px dashed #c8d1dd;
  border-radius: 0.8rem;
  color: var(--ink-500);
  text-align: center;
}

.notice--error {
  border-color: #efb6b8;
  color: #721c24;
  background: #fff1f1;
}

.content-heading {
  gap: 1rem;
}

.content-course-selector {
  padding-block: 1rem;
}

.filters--content {
  grid-template-columns: minmax(16rem, 32rem) auto;
  align-items: end;
}

.folder-path {
  display: flex;
  margin: 0 0 1rem;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: var(--ink-500);
  font-size: 0.9rem;
  font-weight: 700;
}

.folder-path a {
  color: var(--navy-800);
}

.folder-path--student {
  margin-top: 1.25rem;
}

.content-manager-list {
  display: grid;
  gap: 0.8rem;
}

.content-manager-item {
  padding: 1rem;
  border: 1px solid #dbe2ea;
  border-radius: 1rem;
  background: white;
}

.content-manager-item__main {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 0.9rem;
}

.content-type-icon {
  display: inline-grid;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 0.75rem;
  color: white;
  font-weight: 900;
  background: var(--burgundy-700);
}

.content-manager-item__text {
  min-width: 0;
  flex: 1;
}

.content-manager-item__text h3 {
  margin: 0.25rem 0 0;
  font-size: 1.05rem;
}

.content-manager-item__text h3 a {
  color: var(--navy-900);
}

.content-manager-item__text p {
  margin: 0.35rem 0 0;
  color: var(--ink-500);
  line-height: 1.5;
}

.content-manager-item__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: var(--ink-500);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.status-pill--published {
  color: #17643a;
  background: #e5f6ec;
}

.status-pill--draft {
  color: #6b4f00;
  background: #fff3c4;
}

.status-pill--blocked {
  color: #684141;
  background: #f8e9e9;
}

.content-manager-item__actions {
  display: flex;
  margin-top: 0.9rem;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.icon-button {
  display: inline-grid;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  place-items: center;
  border: 1px solid #cbd4df;
  border-radius: 0.65rem;
  color: var(--navy-900);
  font: inherit;
  font-size: 1.1rem;
  font-weight: 900;
  background: white;
  cursor: pointer;
}

.button--compact {
  min-height: 2.75rem;
  padding: 0.55rem 0.75rem;
}

.button--danger {
  color: #8a2025;
  border-color: #e6b8ba;
  background: #fff4f4;
}

.content-more-actions {
  margin-top: 0.75rem;
  border-top: 1px solid #edf0f4;
}

.content-more-actions summary {
  display: inline-flex;
  width: fit-content;
  min-height: 2.75rem;
  padding-block: 0.5rem;
  align-items: center;
  color: var(--navy-800);
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
}

.content-more-actions__panel {
  display: grid;
  margin-top: 0.75rem;
  padding: 0.85rem;
  gap: 0.75rem;
  border-radius: 0.75rem;
  background: #f7f9fb;
}

.content-more-actions:not([open]) > .content-more-actions__panel {
  display: none;
}

.compact-action-form {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) auto;
  align-items: end;
  gap: 0.6rem;
}

.compact-action-form label {
  display: grid;
  gap: 0.3rem;
}

.compact-action-form label span {
  color: var(--ink-500);
  font-size: 0.78rem;
  font-weight: 700;
}

.order-status {
  margin: 0 0 0.8rem;
}

.move-dialog {
  width: min(42.5rem, calc(100% - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 1.2rem;
  color: var(--ink-900);
  background: white;
  box-shadow: 0 1.5rem 5rem rgb(7 26 51 / 28%);
}

.move-dialog::backdrop {
  background: rgb(7 26 51 / 58%);
}

.move-dialog__form {
  display: grid;
  max-height: calc(100dvh - 2rem);
  grid-template-rows: auto auto minmax(18rem, 1fr) auto auto;
  overflow: hidden;
}

.move-dialog__header,
.move-dialog__actions {
  display: flex;
  padding: 1rem 1.15rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.move-dialog__header h2 {
  margin: 0;
  color: var(--navy-950);
  font-size: 1.5rem;
}

.move-dialog__header .eyebrow {
  margin-bottom: 0.3rem;
}

.move-dialog__context,
.move-dialog__selection {
  display: grid;
  margin: 0.85rem 1.15rem 0;
  padding: 0.75rem 0.85rem;
  gap: 0.2rem;
  border-left: 3px solid var(--burgundy-700);
  border-radius: 0.45rem;
  background: #faf7f8;
}

.move-dialog__context span,
.move-dialog__selection span,
.move-dialog__context small,
.move-dialog__tree-heading span {
  color: var(--ink-500);
  font-size: 0.78rem;
}

.move-dialog__tree-section {
  display: grid;
  min-height: 0;
  margin: 0.85rem 1.15rem;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 0.55rem;
}

.move-dialog__tree-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.move-tree {
  min-height: 18rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #fbfcfe;
}

.move-tree__row {
  display: flex;
  min-width: 0;
  min-height: 3rem;
  padding-left: calc(0.45rem + var(--tree-level) * 1.15rem);
  align-items: stretch;
  border-bottom: 1px solid #edf0f4;
  box-shadow: inset calc(var(--tree-level) * 0.12rem) 0 0 #edf1f6;
}

.move-tree__row:last-child {
  border-bottom: 0;
}

.move-tree__toggle,
.move-tree__toggle-placeholder {
  display: inline-grid;
  width: 2.75rem;
  min-height: 2.75rem;
  flex: 0 0 2.75rem;
  place-items: center;
  border: 0;
  color: var(--navy-800);
  font: inherit;
  font-size: 1.2rem;
  background: transparent;
}

.move-tree__toggle {
  cursor: pointer;
}

.move-tree__choice {
  display: flex;
  min-width: 0;
  min-height: 3rem;
  padding: 0.55rem 0.65rem;
  flex: 1;
  align-items: center;
  gap: 0.55rem;
  border: 0;
  color: var(--navy-950);
  font: inherit;
  font-weight: 750;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.move-tree__choice small {
  margin-left: auto;
  color: var(--ink-500);
  font-size: 0.72rem;
  font-weight: 650;
}

.move-tree__row.is-selected {
  background: #eaf1fa;
  box-shadow: inset 4px 0 0 var(--navy-700);
}

.move-tree__row.is-disabled {
  background: #f5f5f5;
  opacity: 0.62;
}

.move-tree__row.is-disabled .move-tree__choice {
  cursor: not-allowed;
}

.move-dialog__selection {
  margin-top: 0;
  border-left-color: var(--navy-700);
  background: #eef4fb;
}

.move-dialog__actions {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.move-dialog__actions .button {
  min-width: 8rem;
}

.trash-list {
  display: grid;
  gap: 0.85rem;
}

.trash-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fbfcfe;
}

.trash-card__main {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 0.85rem;
}

.trash-card__main h3 {
  margin: 0.35rem 0;
  color: var(--navy-950);
}

.trash-card__main p,
.content-more-actions__panel p {
  margin: 0;
  color: var(--ink-500);
}

.trash-card__details {
  display: grid;
  margin: 0.9rem 0 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.trash-card__details div {
  min-width: 0;
}

.trash-card__details dt {
  color: var(--ink-500);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.trash-card__details dd {
  margin: 0.2rem 0 0;
  overflow-wrap: anywhere;
}

.trash-dialog {
  width: min(38rem, calc(100% - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 1.2rem;
  color: var(--ink-900);
  background: white;
  box-shadow: 0 1.5rem 5rem rgb(7 26 51 / 28%);
}

.trash-dialog::backdrop {
  background: rgb(7 26 51 / 58%);
}

.trash-dialog__form {
  display: grid;
  max-height: calc(100dvh - 2rem);
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.trash-dialog__body {
  display: grid;
  padding: 1rem 1.15rem;
  gap: 0.85rem;
  overflow-y: auto;
}

.trash-dialog__body p {
  margin: 0;
  color: var(--ink-700);
  line-height: 1.55;
}

.trash-location-option,
.trash-confirmation {
  display: flex;
  min-height: 3.25rem;
  padding: 0.75rem;
  align-items: flex-start;
  gap: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #fbfcfe;
}

.trash-location-option input,
.trash-confirmation input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.1rem;
  flex: 0 0 auto;
}

.trash-location-option span {
  display: grid;
  gap: 0.2rem;
}

.trash-location-option small {
  color: var(--ink-500);
}

.trash-dialog--danger .move-dialog__header {
  border-top: 4px solid #a02037;
}

.field--wide {
  grid-column: 1 / -1;
}

.content-editor textarea {
  resize: vertical;
}

.content-external-fields {
  padding: 1rem;
  border: 1px solid #dbe2ea;
  border-radius: 0.8rem;
  background: #f7f9fb;
}

.student-content-section {
  margin-top: 1.25rem;
}

.student-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.student-content-card {
  display: flex;
  min-width: 0;
  padding: 1.05rem;
  align-items: center;
  gap: 0.9rem;
  border: 1px solid #d9e0e9;
  border-radius: 1rem;
  color: inherit;
  text-decoration: none;
  background: white;
  box-shadow: 0 0.35rem 1.2rem rgb(18 38 63 / 6%);
}

.student-content-card:hover {
  border-color: var(--navy-700);
  transform: translateY(-1px);
}

.student-content-card--folder .content-type-icon {
  background: var(--navy-800);
}

.student-content-card__body {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 0.25rem;
}

.student-content-card__body small {
  color: var(--burgundy-700);
  font-weight: 800;
  text-transform: uppercase;
}

.student-content-card__body strong {
  overflow-wrap: anywhere;
  color: var(--navy-950);
  font-size: 1rem;
}

.student-content-card__body > span {
  overflow: hidden;
  color: var(--ink-500);
  font-size: 0.88rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.student-content-card__arrow {
  color: var(--burgundy-700);
  font-size: 1.35rem;
  font-weight: 900;
}

.narrow-card,
.status-card {
  width: min(100%, 48rem);
  margin-inline: auto;
}

.status-page {
  display: grid;
  place-items: center;
}

.status-card p:not(.eyebrow) {
  color: var(--ink-500);
  line-height: 1.65;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 1rem;
  bottom: 1rem;
  max-width: min(28rem, calc(100% - 2rem));
  padding: 0.9rem 1.1rem;
  border-radius: 0.8rem;
  color: white;
  font-weight: 700;
  background: var(--navy-950);
  box-shadow: var(--shadow);
}

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

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

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

  .student-actions {
    justify-content: flex-start;
  }
}

@media (min-width: 881px) and (max-width: 1100px) {
  .home-hero {
    min-height: 31rem;
    padding: clamp(2rem, 4vw, 2.75rem);
    gap: clamp(1.5rem, 3vw, 2.5rem);
  }

  .home-hero__visual {
    min-height: 23.5rem;
  }

  .home-hero__visual img {
    width: min(100%, 31.5rem);
  }
}

@media (max-width: 880px) {
  .home-hero {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.15rem;
  }

  .home-hero h1 {
    max-width: 13ch;
  }

  .home-hero__visual {
    min-height: 0;
  }

  .home-hero__visual img {
    width: min(100%, 30.5rem);
  }

  .home-benefits__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.8rem;
  }

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

  .home-benefits__grid li {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .site-header__inner {
    min-height: auto;
    padding-block: 0.65rem;
    align-items: flex-start;
  }

  .brand--header img {
    width: 2.75rem;
  }

  .brand--header span {
    display: none;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .site-nav a,
  .nav-logout {
    min-height: 2.75rem;
    padding-inline: 0.65rem;
    font-size: 0.9rem;
  }

  .home-page .site-header--public .site-header__inner {
    min-height: 4.5rem;
    align-items: center;
  }

  .home-page .site-header--public .brand--header span {
    display: inline;
  }

  .home-page .site-header--public .site-nav a {
    min-height: 2.75rem;
    padding-inline: 0.85rem;
  }

  .home-shell {
    padding-top: 1rem;
  }

  .home-hero {
    padding: clamp(1.35rem, 5vw, 2.2rem);
    align-content: start;
    border-radius: 1.35rem;
  }

  .home-hero__visual {
    margin-top: 0.25rem;
  }

  .home-benefits {
    margin-top: 3.25rem;
  }

  .home-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }

  .auth-shell {
    min-height: 100svh;
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-intro {
    min-height: auto;
    padding: 1rem;
    gap: 1rem;
  }

  .brand--auth img {
    width: 4.0625rem;
  }

  .brand--auth {
    font-size: 1.2rem;
  }

  .auth-intro__content {
    display: none;
  }

  .auth-panel {
    padding: 1rem;
    place-items: start stretch;
  }

  .auth-card {
    padding: 1.35rem;
    border-radius: 1.1rem;
  }

  .admin-hero,
  .student-hero,
  .page-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .summary-badge {
    min-width: 0;
  }

  .split-layout,
  .dashboard-grid,
  .form-grid,
  .form-grid--student,
  .filters,
  .student-content-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .move-dialog {
    width: min(100% - 1rem, 42.5rem);
    max-height: 90dvh;
  }

  .move-dialog__form {
    max-height: 90dvh;
    grid-template-rows: auto auto minmax(12rem, 1fr) auto auto;
  }

  .move-dialog__header,
  .move-dialog__actions {
    padding: 0.8rem;
  }

  .move-dialog__context,
  .move-dialog__selection,
  .move-dialog__tree-section {
    margin-inline: 0.8rem;
  }

  .move-dialog__tree-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }

  .move-tree {
    min-height: 12rem;
  }

  .move-tree__row {
    padding-left: calc(0.2rem + var(--tree-level) * 0.75rem);
  }

  .move-dialog__actions .button {
    min-width: 0;
    flex: 1;
  }

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

  .trash-dialog {
    width: min(100% - 1rem, 38rem);
    max-height: 90dvh;
  }

  .trash-dialog__form {
    max-height: 90dvh;
  }

  .content-manager-item__actions {
    align-items: stretch;
  }

  .content-manager-item__actions .button {
    width: 100%;
  }

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

  .item-card {
    align-items: stretch;
    flex-direction: column;
  }

  .item-actions,
  .student-actions {
    justify-content: stretch;
  }

  .item-actions > *,
  .item-actions form,
  .item-actions .button,
  .student-actions > *,
  .student-actions form,
  .student-actions .button {
    width: 100%;
  }

  .inline-course-form {
    max-width: none;
    align-items: stretch;
    flex-direction: column;
  }

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

@media (max-width: 420px) {
  .site-main {
    padding-top: 1.25rem;
  }

  .site-nav {
    gap: 0.1rem;
  }

  .site-nav a,
  .nav-logout {
    padding-inline: 0.45rem;
    font-size: 0.82rem;
  }

  .home-page .site-header--public .site-header__inner {
    gap: 0.55rem;
  }

  .home-page .site-header--public .brand--header {
    gap: 0.65rem;
    font-size: 1rem;
  }

  .home-page .site-header--public .brand--header img {
    width: 2.9rem;
  }

  .home-page .site-header--public .site-nav a {
    padding-inline: 0.72rem;
    font-size: 0.84rem;
  }

  .home-hero {
    padding: 1.25rem;
    gap: 0.85rem;
    border-radius: 1.1rem;
  }

  .home-hero h1 {
    font-size: clamp(2.35rem, 12vw, 3rem);
  }

  .auth-intro h1 {
    font-size: 2.5rem;
  }

  .home-hero__lead {
    font-size: 1rem;
  }

  .home-hero__actions {
    margin-top: 1.5rem;
    align-items: stretch;
    flex-direction: column;
    gap: 0.7rem;
  }

  .button--home-primary {
    width: 100%;
  }

  .home-recovery-link {
    justify-content: center;
  }

  .home-hero__visual img {
    width: 89%;
    margin-inline: auto;
  }

  .home-benefits__grid li {
    padding: 1.15rem;
  }

  .admin-hero,
  .student-hero,
  .content-card,
  .status-card {
    padding: 1.15rem;
    border-radius: 1rem;
  }

  .button-row {
    align-items: stretch;
    flex-direction: column;
  }

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

@media (max-width: 340px) {
  .home-page .site-header--public .site-header__inner {
    gap: 0.4rem;
  }

  .home-page .site-header--public .brand--header {
    gap: 0.5rem;
    font-size: 0.9rem;
  }

  .home-page .site-header--public .site-nav a {
    padding-inline: 0.55rem;
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Fase 5: alumnos, importación y avisos */
.student-page-heading,
.dialog-header,
.dialog-actions,
.notification-card,
.notification-metrics,
.confirmation-summary,
.summary-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.app-dialog {
  position: fixed;
  inset: 0;
  z-index: 30;
  width: min(92vw, 42rem);
  max-height: min(90vh, 48rem);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 1.35rem;
  color: var(--ink-900);
  background: white;
  box-shadow: 0 24px 80px rgb(15 31 61 / 28%);
  overflow: auto;
}

.app-dialog[open]::backdrop {
  background: rgb(15 31 61 / 62%);
}

.app-dialog[open]::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background: rgb(15 31 61 / 62%);
}

body:has(.app-dialog[open]) { overflow: hidden; }
body:has(.app-dialog[open])::before {
  position: fixed;
  inset: 0;
  z-index: 29;
  content: "";
  background: rgb(15 31 61 / 62%);
}

.app-dialog--wide { width: min(94vw, 58rem); }
.dialog-panel { padding: 1.5rem; }
.dialog-header { align-items: flex-start; border-bottom: 1px solid var(--line); padding-bottom: 1rem; }
.dialog-header h2 { margin: 0.15rem 0 0; }
.dialog-actions { justify-content: flex-end; margin-top: 1.25rem; }
.form-help { color: var(--ink-700); font-size: 0.92rem; line-height: 1.55; }

.enrollment-history {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--background);
}
.enrollment-history h3 { margin-top: 0; }
.enrollment-history ul { display: grid; gap: 0.65rem; margin: 0; padding: 0; list-style: none; }
.enrollment-history li { display: flex; justify-content: space-between; gap: 1rem; }
.enrollment-history li span { color: var(--ink-700); }

.upload-form { display: grid; gap: 1rem; }
.upload-zone {
  display: grid;
  gap: 0.65rem;
  padding: 2rem;
  border: 2px dashed #afbacd;
  border-radius: 1rem;
  background: var(--background);
  text-align: center;
}
.upload-zone input { width: min(100%, 28rem); margin: auto; }
.upload-zone small { color: var(--ink-700); }
.summary-grid { justify-content: stretch; margin: 1rem 0; }
.summary-grid > div {
  display: grid;
  flex: 1;
  gap: 0.2rem;
  min-width: 8rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--background);
}
.summary-grid strong { color: var(--navy-900); font-size: 1.5rem; }
.summary-grid span { color: var(--ink-700); font-size: 0.85rem; }
.summary-ok strong { color: #196c4a; }
.summary-error strong { color: var(--burgundy-700); }

.responsive-table { width: 100%; overflow-x: auto; }
.responsive-table {
  max-width: 100%;
  min-width: 0;
  overscroll-behavior-inline: contain;
  scrollbar-gutter: stable;
}
.responsive-table table { width: 100%; min-width: 44rem; border-collapse: collapse; }
.responsive-table th,
.responsive-table td { padding: 0.8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.responsive-table th { color: var(--ink-700); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; }
.audit-filters { margin: 1.25rem 0; }
.audit-table code { font-size: 0.78rem; overflow-wrap: anywhere; }
.audit-table small { color: var(--ink-700); }
.pagination { display: flex; margin-top: 1rem; align-items: center; justify-content: space-between; gap: 1rem; }
.row-valid { background: #f2faf6; }
.row-rejected { background: #fff7f7; }
.field-error { color: #a61b3d; }

.notification-list { display: grid; gap: 1rem; }
.notification-card {
  align-items: stretch;
  min-width: 0;
  padding: 1.15rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: white;
}
.notification-card > :first-child { flex: 2; min-width: 0; }
.notification-card h3 { margin: 0.55rem 0 0.35rem; }
.notification-card p { display: -webkit-box; margin: 0; color: var(--ink-700); overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.notification-metrics { flex: 1.3; margin: 0; }
.notification-metrics div { display: grid; gap: 0.15rem; }
.notification-metrics dt { color: var(--ink-700); font-size: 0.76rem; }
.notification-metrics dd { margin: 0; font-weight: 700; }
.status-notice-4 { background: #e7f6ef; color: #196c4a; }
.status-notice-5 { background: #fff4dc; color: #8b5c00; }
.status-notice-6 { background: #fdebec; color: #9b2136; }
.status-notice-7,
.status-pill--review { background: #fff0d5; color: #7a4b00; }
.status-notice-8 { background: #eef1f6; color: var(--ink-700); }

.filter-grid { display: grid; min-width: 0; gap: 0.75rem; }
.review-filters { align-items: end; grid-template-columns: minmax(16rem, 1fr) minmax(12rem, 0.45fr) auto; }
.review-filter-actions { margin: 0; }
.review-summary strong { overflow-wrap: anywhere; }
.review-decision-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.review-risk { border-color: #d9b76f; }
.confirmation-check { display: flex; align-items: flex-start; gap: 0.65rem; min-height: 2.75rem; }
.confirmation-check input { flex: 0 0 auto; width: 1.2rem; height: 1.2rem; margin-top: 0.1rem; }
.review-inline { display: grid; gap: 0.45rem; min-width: 14rem; }
.review-inline span { color: var(--ink-700); }
.review-inline code { overflow-wrap: anywhere; }
.responsive-table td small { display: block; margin-top: 0.25rem; color: var(--ink-700); }

.notification-editor-grid { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.85fr); gap: 1.25rem; }
.field--wide { grid-column: 1 / -1; }
.recipient-selector { display: grid; grid-column: 1 / -1; gap: 0.5rem; max-height: 13rem; padding: 1rem; border: 1px solid var(--line); border-radius: 0.8rem; overflow-y: auto; }
.recipient-selector label { display: flex; align-items: flex-start; gap: 0.55rem; min-height: 2.75rem; }
.recipient-selector input { width: 1.1rem; height: 1.1rem; }
.email-preview-real { overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; background: #f7f8fa; }
.email-preview-real header { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1.2rem; color: white; background: var(--navy-900); }
.email-preview-real header img { width: 62px; height: auto; object-fit: contain; }
.email-preview-real header strong { font-size: 1.12rem; }
.email-preview-real > div { padding: 1.35rem; }
.email-preview-real h3 { margin: 0.4rem 0 0.8rem; font-size: 1.5rem; }
.email-preview-real aside { display: grid; gap: 0.2rem; margin: 1rem 0; padding: 0.9rem; border-left: 3px solid var(--burgundy-700); background: white; }
.email-preview-real .button { margin-top: 0.5rem; }
.preserve-lines { white-space: pre-line; overflow-wrap: anywhere; }
.confirmation-summary { display: grid; margin: 1rem 0; }
.confirmation-summary > div { display: grid; gap: 0.2rem; padding: 0.75rem; border-bottom: 1px solid var(--line); }
.confirmation-summary span { color: var(--ink-700); font-size: 0.8rem; }
.button--full { width: 100%; }

@media (max-width: 760px) {
  .student-page-heading,
  .notification-card,
  .summary-grid,
  .dialog-actions { align-items: stretch; flex-direction: column; }
  .student-page-heading .button-row,
  .student-page-heading .button { width: 100%; }
  .app-dialog,
  .app-dialog--wide { width: calc(100% - 1rem); max-height: 90dvh; }
  .dialog-panel { padding: 1rem; }
  .dialog-actions .button,
  .dialog-actions form,
  .dialog-actions form .button { width: 100%; }
  .enrollment-history li { flex-direction: column; gap: 0.2rem; }
  .upload-zone { padding: 1.25rem 0.8rem; }
  .responsive-table { overflow: visible; }
  .responsive-table table { min-width: 0; }
  .responsive-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .responsive-table tbody,
  .responsive-table tr,
  .responsive-table td { display: block; width: 100%; }
  .responsive-table tr { margin-bottom: 0.8rem; padding: 0.65rem; border: 1px solid var(--line); border-radius: 0.85rem; }
  .responsive-table td { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 0.5rem; padding: 0.45rem; border: 0; overflow-wrap: anywhere; }
  .responsive-table td::before { content: attr(data-label); color: var(--ink-700); font-size: 0.76rem; font-weight: 700; text-transform: uppercase; }
  .pagination { align-items: stretch; flex-direction: column; text-align: center; }
  .notification-card .button-row,
  .notification-card .button-row form,
  .notification-card .button { width: 100%; }
  .notification-metrics { display: grid; grid-template-columns: 1fr 1fr; }
  .notification-metrics > div { min-width: 0; }
  .notification-metrics dd { overflow-wrap: anywhere; }
  .notification-editor-grid { grid-template-columns: 1fr; }
  .review-filters,
  .review-decision-grid { grid-template-columns: 1fr; }
  .review-filter-actions,
  .review-filter-actions .button { width: 100%; }
  .email-preview-real header img { width: 52px; }
  .recipient-selector { max-height: 16rem; }
}

/* Modernización responsive de la zona administrativa */
.site-header--admin .admin-navigation {
  position: relative;
  flex: 0 0 auto;
}

.site-header--admin .admin-navigation__toggle {
  display: inline-flex;
  min-height: 2.75rem;
  padding: 0.65rem 0.8rem;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  color: var(--navy-900);
  font-weight: 800;
  background: var(--surface);
  cursor: pointer;
}

.site-header--admin .admin-navigation__toggle::-webkit-details-marker {
  display: none;
}

.site-header--admin .admin-navigation[open] .admin-navigation__toggle {
  border-color: var(--navy-700);
  background: #edf1f7;
}

.site-header--admin .site-nav--admin {
  position: absolute;
  z-index: 30;
  top: calc(100% + 0.55rem);
  right: 0;
  display: grid;
  width: min(21rem, calc(100vw - (2 * var(--page-gutter))));
  width: min(21rem, calc(100cqw - (2 * var(--page-gutter))));
  max-height: calc(100dvh - 6.5rem);
  padding: 0.65rem;
  align-items: stretch;
  justify-content: stretch;
  gap: 0.2rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.site-header--admin .admin-navigation:not([open]) > .site-nav--admin {
  display: none;
}

.site-header--admin .site-nav--admin a,
.site-header--admin .site-nav--admin form,
.site-header--admin .site-nav--admin .nav-logout {
  width: 100%;
}

.site-header--admin .site-nav--admin a,
.site-header--admin .site-nav--admin .nav-logout {
  min-height: 2.75rem;
  justify-content: flex-start;
  padding: 0.7rem 0.8rem;
  font-size: 0.92rem;
}

@container admin-header (min-width: 81rem) {
  .site-header--admin .admin-navigation {
    position: static;
  }

  .site-header--admin .admin-navigation__toggle {
    display: none;
  }

  .site-header--admin .site-nav--admin,
  .site-header--admin .admin-navigation:not([open]) > .site-nav--admin {
    position: static;
    display: flex;
    width: auto;
    max-height: none;
    padding: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .site-header--admin .site-nav--admin a,
  .site-header--admin .site-nav--admin form,
  .site-header--admin .site-nav--admin .nav-logout {
    flex: 0 0 auto;
    width: auto;
  }

  .site-header--admin .site-nav--admin a,
  .site-header--admin .site-nav--admin .nav-logout {
    min-height: 2.75rem;
    justify-content: center;
    padding: 0.65rem 0.85rem;
    font-size: 1rem;
  }
}

@supports not (container-type: inline-size) {
  @media (min-width: 81rem) {
    .site-header--admin .admin-navigation {
      position: static;
    }

    .site-header--admin .admin-navigation__toggle {
      display: none;
    }

    .site-header--admin .site-nav--admin,
    .site-header--admin .admin-navigation:not([open]) > .site-nav--admin {
      position: static;
      display: flex;
      width: auto;
      max-height: none;
      padding: 0;
      align-items: center;
      justify-content: flex-end;
      gap: 0.35rem;
      overflow: visible;
      border: 0;
      border-radius: 0;
      background: transparent;
      box-shadow: none;
    }

    .site-header--admin .site-nav--admin a,
    .site-header--admin .site-nav--admin form,
    .site-header--admin .site-nav--admin .nav-logout {
      flex: 0 0 auto;
      width: auto;
    }

    .site-header--admin .site-nav--admin a,
    .site-header--admin .site-nav--admin .nav-logout {
      min-height: 2.75rem;
      justify-content: center;
      padding: 0.65rem 0.85rem;
      font-size: 1rem;
    }
  }

}

@media (max-width: 900px) {
  .split-layout,
  .notification-editor-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .filters > .button {
    width: 100%;
  }

  .review-filter-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .summary-grid {
    flex-wrap: wrap;
  }

  .summary-grid > div {
    min-width: min(100%, 12rem);
  }
}

@media (max-width: 840px) {
  .admin-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-hero .summary-badge {
    width: 100%;
    justify-self: stretch;
  }

  .page-heading,
  .student-page-heading,
  .content-heading {
    align-items: stretch;
    flex-direction: column;
  }

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

@media (max-width: 820px) {
  .site-header--admin .site-header__inner {
    min-height: 4.75rem;
    padding-block: 0.65rem;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .site-header--admin .brand--header {
    gap: 0.65rem;
    font-size: 1rem;
  }

  .site-header--admin .brand--header img {
    width: 2.9rem;
  }

  .site-header--admin .brand--header span {
    display: inline;
  }
}

@media (max-width: 640px) {
  .form-grid,
  .form-grid--student,
  .filters,
  .review-filters {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  :is(.filters, .review-filters, .form-grid) > .field,
  .filters > label,
  .filter-grid > label {
    width: 100%;
    min-width: 0;
  }

  .filters > .button,
  .filters .button-row,
  .filters .button-row .button,
  .filters .button-row a,
  .form-grid > .button,
  .form-grid > .button-row,
  .review-filter-actions,
  .review-filter-actions .button,
  .review-filter-actions a {
    width: 100%;
  }

  .filters .button-row,
  .form-grid > .button-row,
  .review-filter-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .review-inline {
    min-width: 0;
  }
}

@media (max-width: 360px) {
  .site-header--admin .site-header__inner {
    gap: 0.5rem;
  }

  .site-header--admin .brand--header {
    gap: 0.5rem;
    font-size: 0.92rem;
  }

  .site-header--admin .brand--header img {
    width: 2.65rem;
  }

  .admin-navigation__toggle {
    padding-inline: 0.65rem;
  }
}

.no-js .site-header--admin .site-header__inner {
  flex-wrap: wrap;
}

.no-js .site-header--admin .admin-navigation {
  position: static;
  flex: 1 1 100%;
  min-width: 0;
}

.no-js .site-header--admin .admin-navigation__toggle {
  display: inline-flex;
  margin-left: auto;
}

.no-js .site-header--admin .site-nav--admin,
.no-js .site-header--admin .admin-navigation:not([open]) > .site-nav--admin {
  position: static;
  display: grid;
  width: 100%;
  max-height: none;
  margin-top: 0.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr));
  overflow: visible;
}

.no-js .site-header--admin .admin-navigation:not([open]) > .site-nav--admin {
  display: none;
}
