@import url("./scrollbars.css");
@import url("./select-controls.css");
@import url("./language-picker.css");

:root {
  --brand: #ab0552;
  --wine: #612940;
  --linen: #f9eae1;
  --ink: #19161a;
  --muted: #716c76;
  --bg: #f5f5f7;
  --line: #e8e5eb;
  --white: #fff;
  --green: #176d53;
  --green-bg: #eaf6f0;
  --amber: #925d13;
  --amber-bg: #fff4df;
  --red: #af3349;
  --radius: 18px;
  --shadow: 0 12px 40px #2112210a;
  font-family: Manrope, Arial, sans-serif;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #b73376;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 2rem;
  letter-spacing: -1px;
  line-height: 1.2;
  font-weight: 800;
}
h2 {
  font-size: 1.12rem;
  letter-spacing: -0.35px;
  font-weight: 800;
}
h3 {
  font-size: 1rem;
  font-weight: 800;
}
small,
.meta {
  font-size: 0.8rem;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.skip {
  position: fixed;
  left: 15px;
  top: -100px;
  z-index: 100;
  background: white;
  padding: 10px;
}
.skip:focus {
  top: 10px;
}
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  vertical-align: middle;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 1.4;
  transition:
    background 0.15s,
    transform 0.15s;
  min-height: 43px;
}
.btn:hover {
  background: #f7f3f6;
  transform: translateY(-1px);
}
.btn.primary {
  color: white;
  background: var(--brand);
  border-color: var(--brand);
}
.btn.primary:hover {
  background: #8c0343;
}
.btn.dark {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
.btn.light {
  background: #ffffff13;
  border-color: #ffffff30;
  color: white;
}
.btn.ghost {
  background: transparent;
  border-color: transparent;
}
.btn.small {
  padding: 7px 11px;
  min-height: 35px;
  font-size: 0.81rem;
}
.btn.danger {
  color: var(--red);
  border-color: #ecc7cf;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid var(--line);
  color: inherit;
  cursor: pointer;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: 7px;
  background: #f1eff3;
  color: #65606a;
}
.pill.brand {
  color: var(--brand);
  background: #f9eaf2;
}
.pill.green {
  color: var(--green);
  background: var(--green-bg);
}
.pill.amber {
  color: var(--amber);
  background: var(--amber-bg);
}
.pill.red {
  color: var(--red);
  background: #ffedf0;
}
.pill.dark {
  color: #f6eaf0;
  background: #ffffff16;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.row.between {
  justify-content: space-between;
}
.row.wrap {
  flex-wrap: wrap;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.grid-main {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(290px, 1fr);
  gap: 22px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}
.card-title h2 + .meta {
  display: block;
  margin-top: 3px;
}
.section-gap {
  margin-top: 24px;
}
.empty {
  padding: 32px;
  text-align: center;
  border: 1px dashed #d8d1d9;
  border-radius: 14px;
  color: var(--muted);
  background: #faf9fb;
}
.empty .icon {
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
}
.empty p {
  font-size: 0.9rem;
  margin-top: 6px;
}
.notice {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #ead7e1;
  border-radius: 12px;
  background: #fcf5f9;
  color: var(--wine);
  font-size: 0.86rem;
}
.app-source-notice {
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.app-source-notice > .icon {
  align-self: start;
  margin-top: 4px;
}
.app-source-notice > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.app-source-notice > .btn {
  margin: 0;
  justify-self: end;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .app-source-notice {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .app-source-notice > .btn {
    grid-column: 2;
    justify-self: start;
  }
}
.notice.neutral {
  background: #f7f7f9;
  border-color: var(--line);
  color: var(--muted);
}
.notice.amber {
  background: var(--amber-bg);
  border-color: #f0dfb9;
  color: var(--amber);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 0;
}
.field input,
.field select,
.field textarea,
.input {
  width: 100%;
  border: 1px solid #ded9e1;
  border-radius: 10px;
  padding: 11px 12px;
  background: white;
  color: var(--ink);
  min-height: 44px;
  font-weight: 500;
  font-size: 0.9rem;
}
.field textarea {
  resize: vertical;
  min-height: 90px;
}
/* iOS' native date theme can force content-box sizing and an intrinsic width
   even on a border-box input. Keep the native picker, bypass that theme. */
@supports (-webkit-touch-callout: none) {
  input:is([type="date"], [type="datetime-local"], [type="month"], [type="time"], [type="week"]) {
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    min-height: 44px;
  }
  input:is([type="date"], [type="datetime-local"], [type="month"], [type="time"], [type="week"])::-webkit-date-and-time-value {
    min-height: 1.5em;
    text-align: start;
  }
}
.field small {
  font-weight: 500;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.full {
  grid-column: 1/-1;
}
.form-section {
  margin: 24px 0 14px;
  font-size: 1rem;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 500;
}
.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
  flex: none;
  margin: 0;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 22px 0;
  flex-wrap: wrap;
}
.search-field {
  position: relative;
  min-width: 230px;
  flex: 1;
  max-width: 390px;
}
.search-field .icon {
  position: absolute;
  left: 14px;
  top: 13px;
  color: #89828b;
}
.search-field input {
  padding-left: 43px;
}
.tabs {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  margin: 22px 0;
  overflow-x: auto;
}
.tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 15px;
  white-space: nowrap;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 700;
}
.tab.active {
  border-bottom-color: var(--brand);
  color: var(--brand);
}
.segmented {
  display: inline-flex;
  background: #eae7ed;
  padding: 4px;
  border-radius: 10px;
  gap: 3px;
}
.segmented button {
  border: 0;
  padding: 7px 12px;
  background: transparent;
  border-radius: 7px;
  font-size: 0.81rem;
  font-weight: 700;
  color: var(--muted);
}
.segmented button.active {
  background: white;
  color: var(--ink);
  box-shadow: 0 2px 6px #2012220b;
}
.avatar {
  width: 39px;
  height: 39px;
  flex: none;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f4e1e9;
  color: #873657;
  font-size: 0.82rem;
  font-weight: 800;
  overflow: hidden;
}
.avatar.alt {
  background: #ebe6f7;
  color: #635182;
}
.avatar.gold {
  background: #faefd8;
  color: #977943;
}
.avatar.big {
  width: 72px;
  height: 72px;
  font-size: 1.5rem;
  border-radius: 20px;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.person {
  display: flex;
  align-items: center;
  gap: 11px;
}
.person strong {
  display: block;
  font-size: 0.88rem;
}
.person small {
  display: block;
}
.progress {
  height: 6px;
  background: #f0e9ee;
  overflow: hidden;
  border-radius: 9px;
}
.progress span {
  height: 100%;
  display: block;
  background: var(--brand);
  border-radius: 9px;
}
.link {
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 800;
  background: none;
  border: 0;
  padding: 4px 0;
  cursor: pointer;
}
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 0.875rem;
}
th {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.35px;
  color: var(--muted);
  background: #fbfafc;
  padding: 14px 18px;
  white-space: nowrap;
}
td {
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
tr:not(.assessment-pupil-heading):hover td {
  background: #fdfbfd;
}
td .meta {
  display: block;
  margin-top: 3px;
}
.nowrap {
  white-space: nowrap;
}
.num {
  font-variant-numeric: tabular-nums;
}
/* Three entry points */
html:has(.landing) {
  scrollbar-gutter: stable;
}
.landing {
  min-height: 100vh;
  background: var(--linen);
  padding: 0 48px 26px;
}
.landing-header {
  width: 100%;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1220px;
  margin: 0 auto;
  gap: 24px;
  flex-shrink: 0;
}
.landing-brand {
  display: block;
  flex-shrink: 0;
}
.landing-header-actions {
  display: flex;
  align-items: center;
  gap: clamp(5px, 2vw, 14px);
}
.landing-header-actions .icon-btn { flex: 0 0 42px; }
.landing-logo {
  width: 180px;
  height: auto;
}
.landing-header .landing-logo {
  display: block;
  flex-shrink: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.language-picker {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}
.language-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 12px;
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  background: #70364b09;
  color: #70364b;
  font-size: .8rem;
  font-weight: 700;
  transition: background .15s;
}
.language-trigger:hover,
.language-trigger[aria-expanded="true"] {
  background: #70364b14;
}
.language-trigger:focus {
  outline: none;
}
.language-trigger:focus-visible [data-language-label] {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.language-picker .icon {
  width: 18px;
  height: 18px;
}
.language-picker .language-chevron {
  width: 14px;
  height: 14px;
  margin-left: 4px;
  transition: transform .15s;
}
.language-trigger[aria-expanded="true"] .language-chevron {
  transform: rotate(180deg);
}
.language-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 160;
  width: 184px;
  padding: 6px;
  border: 1px solid #e7dce1;
  border-radius: 14px;
  background: #fffafc;
  box-shadow: 0 12px 30px #44213518, 0 2px 6px #44213508;
}
.language-menu[hidden] {
  display: none;
}
.language-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #71626a;
  font-size: .8rem;
  text-align: left;
}
.language-option:hover,
.language-option:focus-visible {
  outline: none;
  background: #70364b0c;
  color: #70364b;
}
.language-option[aria-checked="true"] {
  background: #70364b12;
  color: #70364b;
  font-weight: 800;
}
.language-check {
  visibility: hidden;
}
.language-option[aria-checked="true"] .language-check {
  visibility: visible;
}
.form-header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}
.school-logo {
  width: 144px;
  height: auto;
}
.landing-main {
  max-width: 1220px;
  margin: 52px auto 70px;
}
.landing-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 42px;
}
.landing-title h1 {
  font-size: 3.25rem;
  letter-spacing: -2px;
  max-width: 680px;
  line-height: 1.15;
}
.landing-title p {
  max-width: 370px;
  margin-bottom: 7px;
  color: #70606a;
  font-size: 1rem;
}
.role-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.role-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  min-height: 320px;
  background: white;
  border-radius: 22px;
  border: 1px solid #decfd5;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.role-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px #6129401a;
}
.role-card:first-child {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
}
.role-card:nth-child(3) {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.role-number {
  font-size: 0.76rem;
  letter-spacing: 1px;
  opacity: 0.65;
  font-weight: 700;
}
.role-card > .icon {
  width: 36px;
  height: 36px;
  margin: 30px 0 24px;
}
.role-card h2 {
  font-size: 1.7rem;
  margin-bottom: 9px;
  letter-spacing: -0.8px;
}
.role-card p {
  font-size: 0.9rem;
  opacity: 0.72;
  max-width: 250px;
}
.role-enter {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #8883;
  padding-top: 18px;
  font-size: 0.88rem;
  font-weight: 800;
}
.landing-footer {
  max-width: 1220px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 14px;
  border-top: 1px solid #decfd5;
  padding-top: 26px;
}
.landing-school-logo {
  display: block;
  width: 180px;
  max-width: 100%;
  height: auto;
  flex-shrink: 0;
}
.landing-ownership {
  color: #71626a;
  font-size: 0.72rem;
  max-width: 850px;
  text-align: left;
}
/* Role-specific prototype sign-in screens */
.login-page {
  --login-accent: var(--brand);
  --login-story-bg: var(--brand);
  --login-story-color: white;
  display: flex;
  flex-direction: column;
}
.login-parent {
  --login-accent: var(--wine);
  --login-story-bg: #fff8f3;
  --login-story-color: var(--wine);
}
.login-teacher {
  --login-accent: var(--ink);
  --login-story-bg: var(--ink);
}
.login-main {
  width: 100%;
  max-width: 1220px;
  margin: 20px auto 48px;
}
.login-back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 20px;
  color: #71626a;
  font-size: .8rem;
  font-weight: 700;
}
.login-back .icon {
  width: 17px;
  height: 17px;
  transform: rotate(180deg);
}
.login-back:hover {
  color: var(--wine);
}
.login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  border: 1px solid #decfd5;
  border-radius: 24px;
  overflow: hidden;
  background: white;
}
.login-story {
  display: flex;
  flex-direction: column;
  padding: 42px 48px;
  background: var(--login-story-bg);
  color: var(--login-story-color);
}
.login-story > .eyebrow {
  color: inherit;
  opacity: .7;
}
.login-space {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 34px 0 22px;
  font-size: .92rem;
  font-weight: 700;
}
.login-space .icon {
  width: 28px;
  height: 28px;
}
.login-story h1 {
  max-width: 400px;
  font-size: 2.75rem;
  letter-spacing: -1.5px;
  line-height: 1.16;
}
.login-intro {
  max-width: 380px;
  margin-top: 22px;
  font-size: .94rem;
  opacity: .8;
}
.login-features {
  list-style: none;
  margin: 34px 0 30px;
  padding: 0;
  display: grid;
  gap: 13px;
  font-size: .84rem;
}
.login-features li {
  display: flex;
  align-items: center;
  gap: 11px;
}
.login-features .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: .75;
}
.login-story-signature {
  margin-top: auto;
  padding-top: 20px;
  font-size: .75rem;
  opacity: .65;
}
.login-card {
  padding: 42px 48px 32px;
}
.login-card > .eyebrow {
  color: var(--login-accent);
  font-size: .7rem;
}
.login-card h2 {
  margin-top: 12px;
  font-size: 1.85rem;
  letter-spacing: -.8px;
}
.login-form-intro {
  margin-top: 12px;
  max-width: 340px;
  color: #71626a;
  font-size: .88rem;
}
.login-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}
.login-form .field input {
  min-height: 50px;
  background: #fffcfa;
}
.login-form .field input:focus-visible {
  outline: 2px solid var(--login-accent);
  outline-offset: 2px;
}
.login-password-wrap {
  position: relative;
}
.login-password-wrap input {
  padding-right: 54px;
}
.login-password-toggle {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #71626a;
}
.login-password-toggle:hover {
  background: #70364b0c;
  color: var(--login-accent);
}
.login-help-row {
  display: flex;
  justify-content: flex-end;
  margin-top: -5px;
}
.login-help-toggle {
  padding: 3px 0;
  background: transparent;
  border: 0;
  color: var(--login-accent);
  font-size: .78rem;
  font-weight: 700;
}
.login-help-toggle:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.login-help {
  padding: 16px;
  border: 1px solid #e7dce1;
  border-radius: 12px;
  background: #fff8f3;
  font-size: .8rem;
  color: #71626a;
}
.login-help[hidden] {
  display: none;
}
.login-help strong {
  color: var(--wine);
}
.login-help p {
  margin-top: 8px;
}
.login-submit {
  min-height: 50px;
  justify-content: space-between;
  padding: 12px 17px;
  background: var(--login-accent);
  border-color: var(--login-accent);
  color: white;
}
.login-submit:hover {
  background: var(--login-accent);
  filter: brightness(.92);
}
.login-access-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #71626a;
  font-size: .72rem;
}
.login-access-note .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.login-demo {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid #eee4e7;
  font-size: .72rem;
  color: #71626a;
}
.login-demo a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--login-accent);
  font-weight: 800;
  font-size: .8rem;
}
.login-demo a .icon {
  width: 16px;
  height: 16px;
}
.login-page .landing-footer {
  width: 100%;
  margin: auto auto 0;
}
/* App frame */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 242px;
  background: #19151b;
  color: #c6bbc8;
  padding: 30px 18px 22px;
  z-index: 30;
  display: flex;
  flex-direction: column;
}
.sidebar-brand {
  padding: 0 16px 25px;
  flex-shrink: 0;
}
.sidebar-brand img {
  width: 154px;
  height: auto;
}
.sidebar-brand small {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  margin-top: 12px;
  color: #9c8f9f;
}
.nav-label {
  padding: 20px 16px 9px;
  color: #897c8d;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1.6px;
  flex-shrink: 0;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  overflow-y: auto;
  min-height: 0;
  padding-right: 5px;
  overscroll-behavior: contain;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 650;
  position: relative;
  min-height: 44px;
  flex-shrink: 0;
}
.nav-item:hover {
  background: #2c2430;
  color: white;
}
.nav-item.active {
  background: var(--brand);
  color: white;
}
.nav-item .icon {
  width: 19px;
  height: 19px;
}
.nav-count {
  margin-left: auto;
  padding: 0 7px;
  background: #fff2;
  border-radius: 5px;
  font-size: 0.75rem;
  line-height: 22px;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 22px 10px 0;
  flex-shrink: 0;
}
.sidebar-bottom .school-logo {
  display: block;
  width: 56px;
  opacity: 1;
  margin: 0 0 8px;
}
html:has(.enrollment-page) {scrollbar-gutter:stable both-edges;}
.enrollment-page {max-width:1160px;margin:0 auto;padding:40px 32px 28px;}
.enrollment-header {display:flex;justify-content:space-between;align-items:center;margin-bottom:52px;}
.enrollment-header img {width:155px;height:auto;display:block;}
.enrollment-intro {margin-bottom:28px;}
.enrollment-intro > .eyebrow {text-transform:none;}
.enrollment-intro h1 {font-size:clamp(1.8rem,3.2vw,2.5rem);letter-spacing:-.05em;margin:8px 0;}
.enrollment-intro p,.enrollment-card-heading p {color:var(--muted);margin:0;font-size:.9rem;}
.enrollment-public .enrollment-header {margin-bottom:42px;}
.enrollment-public-intro {margin-bottom:34px;}
.enrollment-public-program {display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:17px 0 12px;font-size:.8rem;}
.enrollment-public-program strong {padding:6px 10px;border-radius:7px;background:#faedf4;color:var(--wine);font-size:.72rem;letter-spacing:.04em;}
.enrollment-public-program > span {font-weight:600;color:var(--muted);}
.enrollment-preview-note {margin:25px 0 0;padding:13px 15px;border-radius:10px;background:#faf0f5;color:var(--wine);font-size:.76rem;line-height:1.6;}
.enrollment-public button[type=submit]:disabled {opacity:.55;cursor:default;}
.enrollment-departments {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:28px;}
.enrollment-department {position:relative;text-align:left;border:1px solid var(--line);border-radius:16px;padding:18px 22px;background:white;color:var(--ink);display:flex;flex-direction:column;gap:3px;transition:border-color .2s,background .2s;}
.enrollment-department strong {font-size:1.12rem;}
.enrollment-department > span:not(.enrollment-department-arrow) {font-size:.76rem;color:var(--muted);padding-right:15px;}
.enrollment-department-arrow {position:absolute;right:20px;top:20px;font-size:1.2rem;color:var(--muted);}
.enrollment-department.active {background:#faedf4;border-color:var(--brand);color:var(--brand);}
.enrollment-department.active span {color:var(--wine);}
.enrollment-layout {display:grid;grid-template-columns:245px minmax(0,1fr);gap:26px;align-items:start;}
.enrollment-sidebar {position:sticky;top:24px;padding:20px 0;}
.enrollment-sidebar h2 {margin:6px 0 24px;font-size:1.6rem;letter-spacing:-.04em;}
.enrollment-sidebar nav {display:flex;flex-direction:column;gap:7px;}
.enrollment-step {display:flex;align-items:center;gap:11px;padding:12px 10px;border:0;border-radius:11px;background:none;color:var(--muted);text-align:left;font-size:.78rem;font-weight:600;}
.enrollment-step > span {width:27px;height:27px;display:grid;place-items:center;border:1px solid var(--line);border-radius:8px;font-size:.65rem;background:white;flex-shrink:0;}
.enrollment-step.active {color:var(--brand);background:#ab05520b;}
.enrollment-step.active > span {background:var(--brand);border-color:var(--brand);color:white;}
.enrollment-sidebar > p {font-size:.71rem;color:var(--muted);max-width:190px;margin:24px 10px 0;}
.enrollment-card {padding:30px;min-width:0;}
.enrollment-card-heading {padding-bottom:25px;margin-bottom:24px;border-bottom:1px solid var(--line);scroll-margin-top:24px;}
.enrollment-card-heading h2 {font-size:1.5rem;letter-spacing:-.035em;margin:6px 0;}
.enrollment-card-heading h2:focus {outline:none;}
.enrollment-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:23px 18px;}
.enrollment-grid > .full,.enrollment-choices,.enrollment-confirmation,.enrollment-summary {grid-column:1/-1;}
.enrollment-field {min-width:0;display:flex;flex-direction:column;gap:7px;font-size:.8rem;font-weight:600;}
fieldset.enrollment-field {padding:0;margin:0;border:0;display:block;}
.enrollment-field legend {padding:0;margin-bottom:10px;}
.enrollment-field small {font-size:.66rem;line-height:1.5;font-weight:400;color:var(--muted);}
.enrollment-field input:not([type=checkbox]):not([type=radio]):not([type=file]),.enrollment-field select,.enrollment-field textarea {width:100%;min-width:0;padding:12px 13px;background:#faf9fb;color:var(--ink);border:1px solid #dfdbe2;border-radius:10px;font-size:.8rem;font-weight:400;line-height:1.5;}
.enrollment-field textarea {resize:vertical;min-height:90px;}
.enrollment-field input[aria-invalid],.enrollment-field select[aria-invalid],.enrollment-field textarea[aria-invalid] {border-color:var(--red);}
.enrollment-select {position:relative;font-weight:400;}
.enrollment-select-trigger {width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;padding:12px 13px;background:#faf9fb;color:var(--ink);border:1px solid #dfdbe2;border-radius:10px;font-size:.8rem;line-height:1.5;}
.enrollment-select-trigger[aria-invalid] {border-color:var(--red);}
.enrollment-select-trigger[aria-expanded=true] {border-color:var(--brand);}
.enrollment-select-menu {position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:30;background:white;border:1px solid var(--line);border-radius:13px;padding:9px;box-shadow:0 14px 35px #2112211a;}
.enrollment-select-menu[hidden],.enrollment-select-menu [hidden] {display:none;}
.enrollment-select-menu input[type=search] {padding:9px 10px!important;font-size:.77rem!important;}
.enrollment-select-options {max-height:230px;overflow-y:auto;overscroll-behavior:contain;margin-top:7px;}
.enrollment-select-options button {width:100%;display:block;text-align:left;white-space:normal;background:none;border:0;border-radius:8px;padding:9px 10px;font-size:.77rem;font-weight:400;color:var(--ink);}
.enrollment-select-options button:hover,.enrollment-select-options button:focus,.enrollment-select-options button[aria-selected=true] {background:#faedf4;color:var(--wine);outline:none;}
.enrollment-select-empty {padding:10px;color:var(--muted);font-size:.74rem;font-weight:400;}
.enrollment-ranking {min-width:0;}
.enrollment-offer-heading {display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:16px;}
.enrollment-offer-heading h3 {font-size:1.15rem;margin-top:5px;}
.enrollment-ranking-count {font-size:.7rem;background:#faedf4;color:var(--wine);padding:9px 12px;border-radius:10px;white-space:nowrap;}
.enrollment-course-note {font-size:.76rem;line-height:1.7;color:var(--amber);background:var(--amber-bg);padding:12px 15px;border-radius:10px;margin-bottom:12px;}
.enrollment-course-note button {background:none;border:0;color:var(--wine);text-decoration:underline;padding:0;font-size:inherit;}
.enrollment-ranking > .enrollment-error {margin-top:14px;}
.enrollment-course-list {display:flex;flex-direction:column;gap:15px;margin-top:20px;}
.enrollment-course {position:relative;border:1px solid var(--line);border-radius:15px;background:#fff;overflow:hidden;}
.enrollment-course.selected {border-color:var(--brand);background:#fffafb;}
.enrollment-course-pick {display:grid;grid-template-columns:165px minmax(0,1fr);width:100%;padding:0;border:0;background:none;color:var(--ink);text-align:left;}
.enrollment-course-pick:focus-visible {outline-offset:-4px;}
.enrollment-course-image {position:relative;display:flex;align-items:center;justify-content:center;background:var(--linen);min-height:205px;overflow:hidden;font-size:3rem;color:var(--wine);}
.enrollment-course-image img {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;}
.enrollment-course-body {min-width:0;padding:18px 20px;display:flex;flex-direction:column;align-items:flex-start;gap:8px;}
.enrollment-course-type-label {font-size:.57rem;font-weight:700;letter-spacing:.11em;color:var(--muted);}
.enrollment-course-type {font-size:.72rem;color:white;background:var(--brand);padding:6px 9px;border-radius:6px;line-height:1.4;}
.enrollment-course-title {font-size:.84rem;font-weight:750;line-height:1.5;}
.enrollment-course-meta {display:flex;flex-wrap:wrap;gap:7px;font-size:.66rem;color:var(--muted);}
.enrollment-course-meta > span {background:#f1eef3;padding:4px 7px;border-radius:6px;}
.enrollment-course-rank {display:flex;gap:12px;align-items:center;min-height:32px;padding:5px 10px;border-radius:7px;font-size:.72rem;font-weight:700;color:var(--wine);margin-top:auto;margin-right:105px;white-space:nowrap;}
.enrollment-course.selected .enrollment-course-rank {background:var(--brand);color:white;}
.enrollment-course-actions {position:absolute;right:20px;bottom:20px;display:flex;justify-content:flex-end;gap:5px;}
.enrollment-course-actions button {width:30px;height:28px;border:1px solid #eadde3;border-radius:7px;background:white;color:var(--wine);font-size:1rem;}
.enrollment-course-empty {font-size:.83rem;color:var(--muted);padding:20px;background:#faf9fb;border-radius:12px;}
.enrollment-packages {padding:0;margin:0;border:0;min-width:0;}
.enrollment-packages legend {padding:0;font-size:.8rem;font-weight:600;margin-bottom:10px;}
.enrollment-package-group + .enrollment-package-group {margin-top:26px;}
.enrollment-package-group h3 {font-size:.8rem;font-weight:750;margin-bottom:12px;}
.enrollment-package-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.enrollment-package-card {position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:9px;border:1px solid var(--line);border-radius:15px;padding:21px 15px 15px;background:#fff;color:var(--ink);text-align:left;min-width:0;}
.enrollment-package-card:hover {border-color:var(--brand);}
.enrollment-package-card.selected {border-color:var(--brand);background:#fffafb;}
.enrollment-package-check {position:absolute;top:10px;right:10px;display:grid;place-items:center;width:18px;height:18px;border:1px solid var(--line);border-radius:50%;font-size:.65rem;}
.enrollment-package-card.selected .enrollment-package-check {background:var(--brand);border-color:var(--brand);color:white;}
.enrollment-package-name {font-size:.81rem;line-height:1.45;padding-right:10px;}
.enrollment-choice:has(input:disabled) {opacity:.45;cursor:default;}
.enrollment-package-features {display:flex;flex-direction:column;gap:10px;font-size:.67rem;line-height:1.65;padding-top:11px;margin-top:2px;border-top:1px solid var(--line);width:100%;}
.enrollment-package-features > span {position:relative;padding-left:13px;}
.enrollment-package-features > span::before {content:'';position:absolute;left:0;top:.2em;width:11px;height:11px;background:var(--wine);mask:var(--system-check-image) center / contain no-repeat;-webkit-mask:var(--system-check-image) center / contain no-repeat;}
.enrollment-package-select {margin-top:auto;padding-top:18px;color:var(--wine);font-size:.72rem;font-weight:750;}
.enrollment-package-summary {display:flex;flex-direction:column;gap:5px;font-size:.75rem;margin-top:8px;}
.enrollment-required {color:var(--brand);}
.enrollment-optional {font-weight:400;color:var(--muted);font-size:.66rem;}
.enrollment-choice-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}
.enrollment-choices > small + .enrollment-choice-grid {margin-top:12px;}
.enrollment-choices > .enrollment-choice-grid + small {display:block;margin-top:7px;}
.enrollment-choice {position:relative;display:flex;align-items:center;gap:10px;background:#faf9fb;border:1px solid #e4e0e7;border-radius:11px;padding:12px 14px;cursor:pointer;font-size:.75rem;font-weight:500;line-height:1.5;}
.enrollment-choice:has(input:checked) {background:#faedf4;border-color:var(--brand);color:var(--wine);}
.enrollment-choice input,.enrollment-check input {accent-color:var(--brand);flex-shrink:0;width:16px;height:16px;margin:0;}
.enrollment-instrument-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.enrollment-instrument {display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:14px;background:white;cursor:pointer;}
.enrollment-instrument:hover {border-color:var(--brand);}
.enrollment-instrument img {display:block;width:100%;height:auto;aspect-ratio:1672/941;object-fit:cover;}
.enrollment-instrument-caption {display:flex;align-items:center;gap:9px;padding:13px 12px;min-height:64px;font-size:.75rem;font-weight:600;line-height:1.5;}
.enrollment-instrument input {accent-color:var(--brand);flex-shrink:0;width:16px;height:16px;margin:0;}
.enrollment-instrument:has(input:checked) {border-color:var(--brand);background:#faedf4;color:var(--wine);}
.enrollment-instrument:has(input:focus-visible) {outline:3px solid var(--brand);outline-offset:3px;}
.enrollment-field.has-error .enrollment-instrument {border-color:var(--red);}
.enrollment-error {color:var(--red)!important;font-size:.74rem;font-weight:500;margin:0;}
.enrollment-field.has-error .enrollment-choice {border-color:var(--red);}
.enrollment-actions {display:flex;justify-content:space-between;gap:14px;margin-top:30px;padding-top:24px;border-top:1px solid var(--line);}
.enrollment-photo {position:relative;display:flex;align-items:center;gap:12px;border:1px dashed #cbb9c2;background:#fffafb;border-radius:11px;padding:13px;cursor:pointer;min-height:82px;overflow:hidden;}
.enrollment-photo img {width:48px;height:55px;object-fit:cover;border-radius:7px;}
.enrollment-photo > span:last-of-type {display:flex;flex-direction:column;gap:4px;min-width:0;}
.enrollment-photo strong {font-size:.72rem;overflow-wrap:anywhere;}
.enrollment-photo-icon {font-size:1.5rem;color:var(--brand);font-weight:400;width:26px;text-align:center;}
.enrollment-photo input {position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%;}
.enrollment-photo:focus-within {outline:3px solid #b73376;outline-offset:3px;}
.enrollment-date {font-weight:400;color:var(--muted);padding:12px 13px;border:1px solid var(--line);border-radius:10px;}
.enrollment-check {display:flex;gap:12px;align-items:center;padding:17px;background:#faedf4;border:1px solid #ecd9e3;border-radius:12px;font-size:.78rem;font-weight:400;line-height:1.7;}
.enrollment-priority-help {color:var(--muted);font-size:.78rem;line-height:1.8;margin:0;padding:16px;background:#faf6f1;border-radius:11px;}
.enrollment-summary {min-width:0;width:100%;}
.enrollment-summary-offer {margin:0 0 24px;}
.enrollment-summary section+section {margin-top:24px;}
.enrollment-summary h3 {font-size:.85rem;margin:0 0 12px;}
.enrollment-summary dl {margin:0;}
.enrollment-summary dl > div {display:grid;grid-template-columns:42% minmax(0,1fr);gap:18px;border-bottom:1px solid var(--line);padding:10px 0;font-size:.76rem;}
.enrollment-summary dt {color:var(--muted);font-weight:400;}
.enrollment-summary dd {margin:0;font-weight:500;overflow-wrap:anywhere;white-space:pre-wrap;}
.enrollment-footer {text-align:left;margin-top:34px;}
.enrollment-footer img {width:115px;height:auto;display:block;}
.enrollment-footer p {font-size:.64rem;color:var(--muted);margin:10px 0;}
.enrollment-success {padding:44px;display:flex;flex-direction:column;align-items:flex-start;gap:15px;}
.enrollment-success h1 {margin:0;font-size:2rem;letter-spacing:-.04em;}
.enrollment-success p {margin:0;color:var(--muted);font-size:.88rem;max-width:550px;}
.enrollment-success .enrollment-public-success-mark {margin-bottom:0;}
.enrollment-confirmation-intro {margin-bottom:22px;}
.enrollment-confirmation-intro > .eyebrow {text-transform:none;}
.enrollment-public-success {padding:38px 42px;}
.enrollment-public-success-mark {display:grid;place-items:center;width:58px;height:58px;border-radius:18px;background:#faedf4;color:var(--wine);margin-bottom:22px;}
.enrollment-public-success-mark svg {width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.enrollment-public-success h1 {margin:9px 0 13px;font-size:clamp(1.7rem,3.2vw,2.3rem);letter-spacing:-.045em;line-height:1.2;}
.enrollment-public-success-lead {max-width:700px;margin:0;font-size:.88rem;line-height:1.8;color:var(--muted);}
.enrollment-next {margin-top:28px;padding-top:24px;border-top:1px solid var(--line);}
.enrollment-next h2 {font-size:1rem;margin:0 0 19px;}
.enrollment-next ol {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;padding:0;margin:0;list-style:none;}
.enrollment-next li {display:flex;align-items:flex-start;gap:11px;min-width:0;}
.enrollment-next-number {display:grid;place-items:center;flex-shrink:0;width:29px;height:29px;border-radius:8px;background:#faf1f6;color:var(--wine);font-size:.65rem;font-weight:700;}
.enrollment-next h3 {margin:5px 0 8px;font-size:.78rem;line-height:1.5;}
.enrollment-next p {margin:0;color:var(--muted);font-size:.73rem;line-height:1.8;}
.enrollment-public-success .enrollment-confirmation-note {margin:24px 0 0;color:var(--muted);font-size:.74rem;line-height:1.8;}
.enrollment-confirmation-actions {margin-top:24px;gap:12px;}
.enrollment-original {margin:20px 0;border:1px solid var(--line);border-radius:12px;padding:16px;}
.enrollment-original > summary {font-size:.83rem;font-weight:650;color:var(--wine);cursor:pointer;}
.enrollment-original-photo {width:70px;height:85px;object-fit:cover;border-radius:9px;margin:12px 0;}
.enrollment-original .enrollment-summary {margin-top:18px;}
@media(max-width:760px) {
  .enrollment-page {padding:24px 16px;}
  .enrollment-header {margin-bottom:34px;}
  .enrollment-header img {width:125px;}
  .enrollment-departments {gap:8px;}
  .enrollment-department {padding:13px 12px;}
  .enrollment-department > span:not(.enrollment-department-arrow) {font-size:.62rem;padding:0;}
  .enrollment-department-arrow {display:none;}
  .enrollment-layout {display:block;}
  .enrollment-sidebar {position:static;padding:0 0 20px;}
  .enrollment-sidebar > .eyebrow,.enrollment-sidebar > h2,.enrollment-sidebar > p {display:none;}
  .enrollment-sidebar nav {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;}
  .enrollment-step {flex-direction:column;gap:5px;padding:10px 3px;font-size:.6rem;text-align:center;line-height:1.35;}
  .enrollment-card {padding:22px 18px;}
  .enrollment-grid {grid-template-columns:minmax(0,1fr);gap:19px;}
  .enrollment-choice-grid {grid-template-columns:minmax(0,1fr);}
  .enrollment-instrument-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
  .enrollment-offer-heading {align-items:flex-start;flex-direction:column;gap:10px;}
  .enrollment-course-pick {grid-template-columns:minmax(0,1fr);}
  .enrollment-package-grid {grid-template-columns:minmax(0,1fr);}
  .enrollment-course-image,.enrollment-course-image img {height:155px;min-height:155px;}
  .enrollment-summary dl > div {grid-template-columns:minmax(0,1fr);gap:3px;}
  .enrollment-success {padding:28px 22px;}
  .enrollment-success h1 {font-size:1.5rem;}
  .enrollment-public-success {padding:28px 22px;}
  .enrollment-next ol {grid-template-columns:minmax(0,1fr);gap:18px;}
  .enrollment-public-success-mark {margin-bottom:18px;}
  .enrollment-confirmation-actions .btn {font-size:.76rem;padding:11px 14px;}
  .enrollment-actions .btn {padding:11px 14px;}
}
.sidebar-bottom p {
  font-size: 0.75rem;
  color: #887c8b;
}
.app-main {
  margin-left: 242px;
  min-height: 100vh;
}
.topbar {
  height: 82px;
  background: #ffffffc9;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  gap: 20px;
}
.breadcrumb {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  gap: 12px;
  align-items: center;
}
.breadcrumb strong {
  color: var(--ink);
  font-weight: 700;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar-profile {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.79rem;
  border-left: 1px solid var(--line);
  padding-left: 18px;
}
.topbar-profile strong {
  display: block;
}
.topbar-profile small {
  font-size: 0.75rem;
}
.demo-chip {
  color: var(--brand);
  background: #f9eaf2;
  border: 1px solid #f0d6e2;
  padding: 5px 9px;
  font-size: 0.75rem;
  border-radius: 6px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.page {
  padding: 30px 34px 38px;
  max-width: 1600px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 27px;
}
.page-heading p {
  margin-top: 8px;
  font-size: 0.88rem;
  color: var(--muted);
}
.page-heading .eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--brand);
}
.page-header-controls {
  display: flex;
  align-self: flex-start;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
}
.page-header-controls > .btn {
  flex: none;
}
html:has(.app-main:is([data-ui-role="parent"], [data-ui-role="teacher"])) {
  scrollbar-gutter: stable;
}
[data-ui-role="parent"] .page-heading > .child-switch {
  align-self: flex-start;
  margin-inline-start: auto;
}
[data-ui-role="parent"] .page-heading > .page-header-controls:has(> .child-switch) {
  flex-wrap: nowrap;
}
[data-ui-role="parent"] .page-heading > .page-header-controls > .child-switch {
  align-self: flex-start;
}
@media (min-width: 761px) {
  [data-ui-role="parent"] .page-heading:has(> .child-switch, > .page-header-controls > .child-switch) > div:first-child {
    min-width: 0;
  }
  [data-ui-role="parent"] .page-heading > .child-switch,
  [data-ui-role="parent"] .page-heading > .page-header-controls:has(> .child-switch) {
    flex-shrink: 0;
    max-width: 60%;
  }
}
.page-header-secondary-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}
.mobile-menu {
  display: none;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #8a818c;
  gap: 15px;
  margin-top: 34px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.metric {
  padding: 20px 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.metric-filter {
  min-width: 0;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
  overflow-wrap: anywhere;
  transition: border-color .18s, background-color .18s, box-shadow .18s, transform .18s;
}
@media (hover: hover) {
  .metric-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 14px #34223c0b;
  }
  .metric-filter[aria-pressed="true"]:hover {
    box-shadow: inset 0 0 0 1px var(--brand), 0 5px 14px #34223c0b;
  }
}
@media (prefers-reduced-motion: reduce) {
  .metric-filter { transition: none; }
  .metric-filter:hover { transform: none; }
}
.metric-filter[aria-pressed="true"] {
  background: color-mix(in srgb, var(--brand) 7%, white);
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
}
.metric-filter:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
.metric-filter .metric-value,
.metric-filter .metric-foot {
  display: block;
}
a.metric-filter {
  display: block;
  text-decoration: none;
}
.home-finance-card {
  position: relative;
}
.home-finance-target {
  color: inherit;
  text-decoration: none;
}
.home-finance-target::after {
  position: absolute;
  inset: 0;
  content: "";
}
.home-finance-all {
  position: relative;
}
.home-finance-target:focus-visible::after {
  border-radius: inherit;
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}
.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--muted);
}
.metric-top .icon {
  color: #ab8295;
  width: 19px;
  height: 19px;
}
.metric-value {
  font-size: 2.25rem;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -1px;
  margin: 12px 0 5px;
}
.metric-value small {
  font-size: 1rem;
  margin-left: 4px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0;
}
.metric-foot {
  font-size: 0.75rem;
  color: var(--muted);
}
.spotlight {
  background: var(--wine);
  color: white;
  border-radius: 18px;
  padding: 25px 27px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
}
.spotlight::after {
  content: "";
  width: 280px;
  height: 280px;
  border: 45px solid #ffffff06;
  position: absolute;
  right: 60px;
  top: -170px;
  border-radius: 50%;
  pointer-events: none;
}
.spotlight h2 {
  font-size: 1.24rem;
  margin: 7px 0;
}
.spotlight p {
  font-size: 0.85rem;
  opacity: 0.7;
}
.spotlight .eyebrow {
  font-size: 0.75rem;
  color: #eec2d8;
}
.spotlight > * {
  position: relative;
  z-index: 1;
}
.agenda-item {
  display: grid;
  grid-template-columns: 88px 54px 3px minmax(0,1fr) auto;
  gap: 15px;
  align-items: center;
  padding: 17px 0;
  border-top: 1px solid var(--line);
}
.agenda-item:first-of-type {
  border-top: 0;
}
.agenda-time {
  font-size: 0.9rem;
  font-weight: 800;
  align-self: start;
  padding-top: 2px;
}
.agenda-time small {
  font-size: 0.75rem;
  font-weight: 500;
  display: block;
  margin-top: 3px;
}
.agenda-bar {
  height: 100%;
  min-height: 44px;
  background: #e5d8e8;
  border-radius: 4px;
}
.agenda-bar.live {
  background: var(--brand);
}
.agenda-item h3 {
  font-size: 0.91rem;
}
.agenda-item p {
  font-size: 0.77rem;
  color: var(--muted);
  margin-top: 4px;
}
.agenda-item.live {
  background: #fcf6f9;
  padding-left: 12px;
  padding-right: 12px;
  margin: 0 -12px;
  border-radius: 10px;
  border-top: 0;
}
.date-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.77rem;
  color: var(--muted);
  font-weight: 700;
}
.task-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.task-row:last-child {
  border-bottom: 0;
}
.task-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: var(--brand);
  background: #f9eaf2;
  flex: none;
}
.task-icon .icon {
  width: 17px;
  height: 17px;
}
.task-content {
  flex: 1;
}
.task-content h3 {
  font-size: 0.86rem;
}
.task-content p {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 5px;
}
.task-row a {
  font-size: 0.79rem;
  font-weight: 800;
  color: var(--brand);
}
.attention-list .task-row > :is(a, .icon-btn) { align-self: center; }
.attention-list .task-row > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: none;
}
.attention-list .task-row > .attention-dismiss {
  width: 28px;
  height: 32px;
  margin-inline-end: 8px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
}
.attention-list .attention-dismiss:hover { color: var(--red); background: #f9eaf2; }
.quick-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.quick-link {
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: 18px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: white;
  font-size: 0.83rem;
  font-weight: 800;
  gap: 14px;
}
.quick-link .icon {
  color: var(--brand);
}
.quick-link:hover {
  border-color: #c8a8b9;
  background: #fdf8fb;
}
.activity-item {
  display: flex;
  gap: 11px;
  padding: 12px 0;
  font-size: 0.82rem;
  align-items: start;
}
.activity-icon {
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  background: var(--green-bg);
  border-radius: 50%;
  flex: none;
}
.activity-icon .icon {
  width: 13px;
  height: 13px;
}
.activity-item small {
  display: block;
  margin-top: 3px;
}
/* Admissions */
.pipeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.pipeline-column {
  background: #eeecf1;
  border: 1px solid #e3dfe7;
  padding: 15px;
  border-radius: 16px;
  min-width: 0;
}
.pipeline-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 1px 2px 16px;
}
.pipeline-heading h2 {
  font-size: 0.88rem;
}
.stage-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e0d8e1;
  color: #766277;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  font-size: 0.75rem;
  margin-right: 7px;
}
.pipeline-column:nth-child(2) .stage-number {
  color: var(--amber);
  background: #f4e6cf;
}
.pipeline-column:nth-child(3) .stage-number {
  color: var(--green);
  background: #d3e9df;
}
.application {
  background: white;
  padding: 18px;
  border-radius: 13px;
  border: 1px solid #e6e0e7;
  box-shadow: 0 3px 7px #29112804;
  margin-bottom: 12px;
}
.application:last-child {
  margin-bottom: 0;
}
.application .person {
  margin: 14px 0;
}
.application-program {
  font-size: 0.79rem;
  color: var(--muted);
  margin: 12px 0;
}
.application-price {
  font-size: 1.07rem;
  font-weight: 800;
}
.application-price small {
  font-size: 0.75rem;
  font-weight: 500;
}
.application .btn {
  width: 100%;
  margin-top: 15px;
}
.application-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--muted);
}
.filter-pill {
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 7px 11px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}
.filter-pill.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
.stage-track {
  display: flex;
  gap: 8px;
  margin: 10px 0 23px;
}
.stage-track span {
  height: 5px;
  flex: 1;
  background: #ece8ee;
  border-radius: 3px;
}
.stage-track .done {
  background: var(--brand);
}
/* Students and schedules */
.profile-header {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px;
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
}
.profile-header h2 {
  font-size: 1.55rem;
  letter-spacing: -0.7px;
}
.profile-header p {
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 5px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.detail-label {
  font-size: 0.77rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.detail-value {
  font-size: 0.9rem;
  font-weight: 700;
}
.trimester-row {
  padding: 18px 0;
  display: grid;
  grid-template-columns: 50px 1fr auto;
  align-items: center;
  gap: 15px;
  border-top: 1px solid var(--line);
}
.trimester-index {
  width: 43px;
  height: 43px;
  background: #f4edf2;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-weight: 800;
}
.trimester-row h3 {
  font-size: 0.9rem;
}
.trimester-row p {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 3px;
}
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 12px;
  min-width: 790px;
}
.schedule-day {
  background: #f0edf2;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 13px;
  min-height: 310px;
}
.schedule-day.today {
  background: #f9edf3;
  border-color: #eac5d8;
}
.schedule-day h3 {
  font-size: 0.79rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.schedule-day h3 strong {
  display: block;
  font-size: 1.35rem;
  margin-top: 3px;
  color: var(--ink);
}
.lesson-tile {
  background: white;
  border-left: 3px solid #a486b3;
  border-radius: 9px;
  padding: 12px;
  margin-bottom: 10px;
  font-size: 0.8rem;
}
.lesson-tile.live {
  border-left-color: var(--brand);
}
.lesson-tile.cancelled {
  border-left-color: #c4b5bd;
  background: #faf8fa;
  opacity: 0.7;
}
.lesson-tile h4 {
  font-size: 0.82rem;
  margin: 8px 0 4px;
}
.lesson-tile small {
  font-size: 0.75rem;
  display: block;
  margin-top: 5px;
}
.scroll-panel {
  overflow-x: auto;
  padding-bottom: 8px;
}
.attendance-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.attendance-card {
  padding: 18px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: center;
  background: white;
  color: var(--ink);
  transition:
    border-color 0.2s,
    background 0.2s;
  min-height: 170px;
}
.attendance-card .avatar {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.attendance-card strong {
  font-size: 0.87rem;
  display: block;
}
.attendance-card small {
  display: block;
  margin: 4px 0 9px;
}
.attendance-card.present {
  border-color: #8bc2ac;
  background: #f3faf6;
}
.attendance-card.absent {
  border-color: #e1a9b5;
  background: #fff5f7;
}
.attendance-card.excused {
  border-color: #dfc497;
  background: #fffaf0;
}
.attendance-status {
  font-size: 0.75rem;
  font-weight: 800;
}
.attendance-card.present .attendance-status {
  color: var(--green);
}
.attendance-card.absent .attendance-status {
  color: var(--red);
}
.attendance-card.excused .attendance-status {
  color: var(--amber);
}
.status-key {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 17px 0;
  color: var(--muted);
  font-size: 0.76rem;
}
.status-key span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.status-key i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: block;
}
.lesson-summary {
  background: #fcf8fb;
  border: 1px solid #ecdae5;
  border-radius: 14px;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 22px;
}
.grade-score {
  display: inline-flex;
  width: 33px;
  height: 33px;
  align-items: center;
  justify-content: center;
  background: #f4eaf0;
  color: var(--brand);
  border-radius: 9px;
  font-weight: 800;
}
.grade-card {
  padding: 20px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 14px;
}
.grade-card h3 {
  margin-bottom: 10px;
}
.grade-card p {
  font-size: 0.85rem;
  color: var(--muted);
}
.live-card {
  background: var(--ink);
  color: white;
  border-radius: 18px;
  padding: 27px;
  overflow: hidden;
  position: relative;
}
.live-card .pill {
  background: #ffffff16;
  color: #fae6f0;
}
.live-card h2 {
  font-size: 1.9rem;
  margin: 22px 0 5px;
  letter-spacing: -0.8px;
}
.live-card p {
  color: #c1b1c4;
  font-size: 0.87rem;
}
.live-class-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: 10px;
  color: #eadbe8;
  font-size: 0.87rem;
}
.live-class-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.live-class-meta-item .icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #d7b8cb;
}
.live-class-details {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 22px;
  margin-top: 10px;
  color: #c1b1c4;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}
.countdown {
  font-size: 2.9rem;
  font-weight: 800;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  margin: 23px 0 5px;
}
.countdown small {
  font-size: 0.85rem;
  color: #cab6c6;
  font-weight: 500;
  letter-spacing: 0;
  margin-left: 9px;
}
.live-card .progress {
  background: #fff2;
  margin-top: 22px;
}
.live-card .progress span {
  background: #d45f94;
}
.next-class {
  margin-top: 19px;
  padding-top: 18px;
  border-top: 1px solid #ffffff24;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #eadbe8;
}
.live-card-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}
.live-card-actions .link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}
.child-switch {
  background: white;
  border: 1px solid var(--line);
  padding: 9px 14px;
  border-radius: 12px;
  display: flex;
  gap: 14px;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  flex: 0 1 auto;
}
.child-switch > div {
  flex: 0 1 auto;
  min-width: 0;
}
.child-switch > .avatar {
  flex-shrink: 0;
}
.child-switch select {
  border: 0;
  font-weight: 800;
  font-size: 0.91rem;
  background: transparent;
  color: var(--ink);
  padding-inline-start: 0;
  text-align: start;
  width: auto;
  max-width: 100%;
}
.child-switch .popup-select {
  width: max-content;
  max-width: 100%;
}
:root .child-switch .popup-select .popup-select-trigger {
  width: max-content;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  text-overflow: clip;
}
.child-switch small {
  display: block;
  font-size: 0.75rem;
}
.statement {
  display: flex;
  align-items: center;
  gap: 20px;
}
.ring {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: conic-gradient(var(--brand) calc(var(--value) * 1%), #f1e8ee 0);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.ring::before {
  content: "";
  position: absolute;
  inset: 8px;
  background: white;
  border-radius: 50%;
}
.ring strong {
  position: relative;
  font-size: 1.45rem;
  letter-spacing: -1px;
}
.statement h3 {
  font-size: 0.96rem;
}
.statement p {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 5px;
}
.doc-row {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
.notifications-list > .doc-row:first-child {
  border-top: 0;
}
.notifications-toolbar {display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:18px;}
.notifications-toolbar p {margin:0;color:var(--muted);font-size:.85rem;}
.notification-items>.notification-row:first-child {border-top:0;}
.notification-row {width:100%;text-align:left;background:transparent;border-left:0;border-right:0;border-bottom:0;color:inherit;font:inherit;cursor:pointer;}
.notification-row:hover {background:#fcf8fb;}
.notification-row.is-information,.notification-toast-open.is-information {cursor:default;}
.notification-row.is-information:hover {background:transparent;}
.notification-read {width:36px;height:36px;}
.notification-row:focus-visible {outline:2px solid var(--brand);outline-offset:2px;}
.notification-row.is-unread strong {color:var(--brand);}
.notification-summary {display:block;margin-top:8px;color:var(--muted);font-size:.82rem;line-height:1.6;white-space:pre-line;overflow-wrap:anywhere;}
.notification-row.is-message .notification-summary {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;max-height:3.2em;overflow:hidden;text-overflow:ellipsis;}
.notification-read-state {display:flex;align-items:center;gap:10px;color:var(--muted);flex:none;}
.notification-unread-dot {width:8px;height:8px;border-radius:50%;background:var(--brand);}
.notification-group {border:1px solid var(--line);border-radius:14px;margin:12px 0;background:#fcf9fb;overflow:hidden;}
.notification-group-toggle {display:flex;align-items:center;gap:14px;width:100%;border:0;background:transparent;padding:18px;color:inherit;text-align:left;font:inherit;cursor:pointer;}
.notification-group-toggle:hover {background:#f8f0f5;}
.notification-group-toggle:focus-visible {outline:2px solid var(--brand);outline-offset:-3px;}
.notification-group-title {display:flex;flex-direction:column;gap:5px;flex:1;min-width:0;overflow-wrap:anywhere;}
.notification-group-meta {display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:var(--muted);font-size:.8rem;font-weight:400;}
.notification-group-count,.notification-group-unread {display:inline-flex;align-items:center;gap:5px;border-radius:8px;padding:3px 8px;font-size:.77rem;white-space:nowrap;}
.notification-group-count {background:var(--white);color:var(--muted);}
.notification-group-unread {background:#f4e3ec;color:var(--brand);font-weight:700;}
.notification-group-chevron {display:inline-flex;flex:none;color:var(--muted);transition:transform .15s;}
.notification-group-toggle[aria-expanded="true"] .notification-group-chevron {transform:rotate(90deg);}
.notification-group-items {border-top:1px solid var(--line);padding:0 14px;background:var(--white);}
.notification-group-items[hidden] {display:none;}
.notification-occurrence {padding:14px 0 0;}
.notification-occurrence+.notification-occurrence {border-top:1px solid var(--line);}
.notification-occurrence>h4 {margin:0 0 6px;color:var(--brand);font-size:.85rem;}
.notification-occurrence>.notification-row:first-of-type {border-top:0;}
.notification-group-items>.notification-row:first-child {border-top:0;}
.notification-section-title {font-size:.85rem;margin:22px 0 10px;color:var(--amber);}
.notification-important {border:1px solid #eed7b0;border-left:3px solid var(--amber);border-radius:12px;margin:10px 0;background:#fffcf6;padding:0 12px;}
.notification-important .notification-row {border-top:0;}
.notification-important-badge {display:inline-flex;align-items:center;flex:none;border-radius:6px;background:var(--amber-bg);color:var(--amber);padding:3px 7px;font-size:.7rem;font-weight:700;}
@media (max-width:600px) {
 .notification-group-toggle {gap:10px;padding:14px 12px;flex-wrap:wrap;}
 .notification-group-title {flex-basis:calc(100% - 40px);}
 .notification-group-items {padding:0 8px;}
 .notification-important {padding:0 7px;}
}
.notification-lesson dl {display:grid;gap:12px;margin-top:18px;}
.notification-lesson dl>div {display:grid;grid-template-columns:110px 1fr;gap:12px;}
.notification-lesson dt {color:var(--muted);}
.notification-lesson dd {margin:0;overflow-wrap:anywhere;}
.notification-toast {pointer-events:auto;padding:0;align-items:stretch;max-width:min(440px,calc(100vw - 32px));}
.notification-toast-open {display:flex;align-items:flex-start;gap:12px;background:transparent;color:inherit;border:0;padding:16px;text-align:left;cursor:pointer;min-width:0;font:inherit;flex:1;}
.notification-toast-open>.icon {flex:none;margin-top:3px;}
.notification-toast-open strong,.notification-toast-open small {display:block;}
.notification-toast-open small {font-size:.78rem;line-height:1.5;margin-top:5px;max-height:7.5em;overflow:auto;overflow-wrap:anywhere;color:#e2dce3;}
.notification-toast-open>span {min-width:0;}
.notification-toast-open.is-message small {display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;max-height:3em;overflow:hidden;text-overflow:ellipsis;white-space:pre-line;}
.notification-message-sender {display:block;font-size:.75rem;margin-top:4px;color:#e2dce3;overflow-wrap:anywhere;}
.notification-message-sender[hidden] {display:none;}
.notification-toast-close {align-self:flex-start;background:transparent;border:0;padding:12px 9px;color:inherit;cursor:pointer;}
.notification-toast-close .icon {width:17px;height:17px;}
@media(max-width:600px){.notifications-toolbar{align-items:flex-start;gap:12px;}.notifications-toolbar .btn{margin-left:auto;}.notification-row{gap:10px;}.notification-read-state{gap:5px;}.notification-read-state>.icon:first-child:not(:last-child){display:none;}.notification-lesson dl>div{grid-template-columns:85px 1fr;}}
.doc-icon {
  width: 40px;
  height: 46px;
  border: 1px solid #e8dce4;
  background: #fcf6f9;
  border-radius: 9px;
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.doc-row .doc-name {
  flex: 1;
  min-width: 0;
}
.doc-row strong {
  font-size: 0.85rem;
  display: block;
}
.doc-row small {
  display: block;
  margin-top: 3px;
}
.parent-home-journal-unit {
  margin-top: 5px;
  font-size: .85rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.makeup-record{align-items:flex-start;gap:18px;padding:24px 0;}
.makeup-record>.doc-name>strong{font-size:1rem;overflow-wrap:anywhere;}
.makeup-record .makeup-subject{font-weight:650;margin-top:6px;color:var(--wine);}
.makeup-terms{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px;margin-top:18px;}
.makeup-term{min-width:0;}
.makeup-term-title{display:block;font-size:.72rem;color:var(--muted);margin-bottom:5px;}
.makeup-term>strong{font-size:.8rem;overflow-wrap:anywhere;}
.makeup-people{margin-top:8px;display:flex;flex-direction:column;gap:3px;font-size:.78rem;line-height:1.65;}
.makeup-people>small{margin:0;font-size:inherit;overflow-wrap:anywhere;}
.makeup-people>small>span:first-child{color:var(--muted);}
.makeup-reason{margin-top:8px!important;font-size:.73rem;overflow-wrap:anywhere;}
.makeup-record-actions{display:flex;flex-direction:column;align-items:flex-end;gap:10px;max-width:250px;flex-shrink:0;}
.makeup-record-status{display:flex;justify-content:flex-end;max-width:100%;}
.makeup-record-status>.pill,.makeup-record-actions>.btn{white-space:normal;text-align:right;}
@media(max-width:900px){.makeup-terms{grid-template-columns:1fr;gap:18px;}.makeup-record{flex-wrap:wrap;}.makeup-record-actions{flex-basis:100%;max-width:100%;margin-left:auto;flex-direction:row;justify-content:flex-end;align-items:center;flex-wrap:wrap;}.makeup-record-status{flex:0 0 100%;}.makeup-record>.doc-name{flex-basis:calc(100% - 58px);}}
.checklist {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0;
}
.checkline {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.86rem;
}
.checkline .icon {
  width: 18px;
  height: 18px;
}
.checkline.ok {
  color: var(--green);
}
.checkline.no {
  color: var(--muted);
}
.protocol {
  font-size: 0.77rem;
  letter-spacing: 0.5px;
  color: var(--brand);
  font-weight: 800;
}
.timeline-line {
  border-left: 1px solid #e0d7e2;
  padding: 0 0 20px 21px;
  position: relative;
  margin-left: 5px;
  font-size: 0.86rem;
}
.timeline-line:before {
  content: "";
  width: 9px;
  height: 9px;
  background: var(--brand);
  border: 3px solid white;
  border-radius: 50%;
  position: absolute;
  left: -5px;
  top: 6px;
}
.timeline-line small {
  display: block;
  margin-top: 4px;
}
.request-box {
  display: flex;
  gap: 17px;
  padding: 21px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: white;
  text-align: left;
  color: var(--ink);
}
.request-box .icon {
  color: var(--brand);
  width: 25px;
  height: 25px;
}
.request-box h3 {
  font-size: 0.92rem;
}
.request-box p {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 5px;
}
.rule-card {
  display: flex;
  gap: 15px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
}
.rule-card .icon {
  color: var(--brand);
}
.rule-card h3 {
  font-size: 0.91rem;
  margin-bottom: 5px;
}
.rule-card p {
  font-size: 0.81rem;
  color: var(--muted);
}
.rule-card .pill {
  margin-top: 12px;
}
.form-page {
  max-width: 890px;
  margin: 0 auto;
  padding: 30px 20px 60px;
}
.form-page > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 34px;
}
.form-page .landing-logo {
  width: 148px;
}
.form-page h1 {
  margin: 15px 0 10px;
}
.form-page > .card {
  margin-top: 25px;
  padding: 32px;
}
.step-label {
  font-size: 0.75rem;
  color: var(--brand);
  font-weight: 800;
  letter-spacing: 1px;
}
.contract-sheet {
  border: 1px solid var(--line);
  padding: 24px;
  background: #fffdfd;
  border-radius: 12px;
  font-size: 0.89rem;
}
.contract-sheet h3 {
  font-size: 1.1rem;
  margin: 12px 0;
}
.contract-sheet p {
  margin: 12px 0;
}
.contract-amount {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--brand);
}
.signature {
  background: #fcfafc;
  border: 1px dashed #c9b8c6;
  border-radius: 12px;
  width: 100%;
  height: 125px;
  touch-action: none;
}
.contract-signature {
  max-width: 230px;
  height: 90px;
  object-fit: contain;
}
.contract-sheet .detail-grid {
  margin: 20px 0;
}
/* Dialogs and printing */
dialog {
  border: 0;
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 30px 100px #140a164d;
  width: min(760px, calc(100vw - 32px));
  max-height: 90vh;
  color: var(--ink);
  background: white;
}
dialog::backdrop {
  background: #160e1c85;
  backdrop-filter: blur(4px);
}
.modal-head {
  padding: 23px 26px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  background: white;
  z-index: 5;
}
.modal-head h2 {
  font-size: 1.25rem;
  flex: 1;
}
#modal:has(.notifications-list) > .modal-head {
  border-bottom: 0;
}
.modal-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.modal-body {
  padding: 25px 26px;
}
.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 23px;
  margin-top: 20px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
#toasts,
[data-toast-surface] {
  position: fixed;
  inset: auto;
  bottom: 24px;
  right: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  pointer-events: none;
  width: auto;
  height: auto;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 440px;
}
#toasts::backdrop,
[data-toast-surface]::backdrop {
  background: transparent;
  pointer-events: none;
}
#toasts[popover]:not(:popover-open),
[data-toast-surface][popover]:not(:popover-open) {
  display: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  color: white;
  background: var(--ink);
  border: 1px solid #514252;
  border-radius: 13px;
  box-shadow: 0 8px 30px #23122c26;
  font-size: 0.88rem;
  animation: toast-enter 0.2s ease;
}
@keyframes toast-enter {
  from { transform: translateY(10px); }
  to { transform: translateY(0); }
}
.toast .icon {
  color: #e7aec7;
}
.error-text {
  color: var(--red);
  font-size: 0.83rem;
  margin: 10px 0;
}
.hidden {
  display: none !important;
}
#print-root {
  display: none;
}
.print-page {
  max-width: 850px;
  margin: auto;
  color: #181318;
  background: white;
  padding: 40px;
  font-family: Manrope, Arial, sans-serif;
}
.print-page header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--brand);
  padding-bottom: 20px;
  margin-bottom: 28px;
}
.print-page header img {
  width: 145px;
}
.print-page h1 {
  font-size: 24px;
  margin: 24px 0 12px;
}
.print-page h2 {
  font-size: 17px;
  margin: 18px 0;
}
.print-page p {
  font-size: 13px;
  margin: 10px 0;
}
.print-page table {
  font-size: 12px;
}
.print-page th,
.print-page td {
  padding: 10px;
}
.print-page footer {
  margin-top: 35px;
  font-size: 11px;
  color: #68606b;
  border-top: 1px solid #ddd;
  padding-top: 16px;
}
.print-watermark {
  font-size: 11px;
  color: var(--brand);
  font-weight: 800;
  letter-spacing: 1px;
}
.review-list li {
  margin: 12px 0;
  font-size: 0.89rem;
}
.rule-table td {
  font-size: 0.83rem;
}
.storage-warning {
  padding: 12px;
  background: #fff0dc;
  color: #825315;
  font-size: 0.85rem;
  text-align: center;
}
.mobile-shade {
  display: none;
}
@keyframes rise {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@media (min-width: 1600px) {
  .page {
    padding-top: 38px;
  }
  .metrics {
    gap: 22px;
  }
  .card {
    padding: 28px;
  }
  .grid-main {
    gap: 26px;
  }
  .page-heading {
    margin-bottom: 30px;
  }
}
@media (max-width: 1200px) {
  .topbar .date-box {
    display: none;
  }
  .sidebar {
    width: 212px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .app-main {
    margin-left: 212px;
  }
  .page {
    padding: 26px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .metric {
    padding: 18px;
  }
  .metric-value {
    font-size: 2rem;
  }
  .metrics {
    gap: 12px;
  }
  .grid-main {
    grid-template-columns: minmax(0, 1.35fr) minmax(275px, 1fr);
  }
  .pipeline {
    gap: 12px;
  }
  .pipeline-column {
    padding: 11px;
  }
  .pipeline-heading h2 {
    font-size: 0.8rem;
  }
  .application {
    padding: 14px;
  }
  .topbar-profile small {
    display: none;
  }
  .quick-links {
    gap: 8px;
  }
  .quick-link {
    padding: 15px;
  }
  .attendance-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 1000px) {
  .login-story,
  .login-card {
    padding: 32px;
  }
  .login-story h1 {
    font-size: 2.3rem;
  }
  .grid-main {
    grid-template-columns: 1fr;
  }
  .grid2 {
    gap: 16px;
  }
  .landing {
    padding: 0 28px 24px;
  }
  .landing-title {
    display: block;
  }
  .landing-title p {
    margin-top: 23px;
    max-width: 650px;
  }
  .landing-title h1 {
    font-size: 2.8rem;
  }
  .role-card {
    padding: 23px;
  }
  .role-card h2 {
    font-size: 1.35rem;
  }
  .topbar .breadcrumb {
    display: none;
  }
  .topbar {
    justify-content: flex-end;
  }
  .topbar-right {
    gap: 10px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .pipeline {
    grid-template-columns: 1fr;
  }
  .pipeline-column {
    padding: 16px;
  }
  .pipeline-heading h2 {
    font-size: 0.95rem;
  }
  .application {
    padding: 18px;
  }
  .application .btn {
    width: auto;
  }
  .application .person {
    margin: 8px 0;
  }
  .pipeline-column:has(.application) {
    display: block;
  }
  .attendance-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 760px) {
  .login-main {
    margin: 14px auto 32px;
  }
  .login-layout {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }
  .login-story,
  .login-card {
    padding: 26px;
  }
  .login-story h1 {
    max-width: none;
    font-size: 2rem;
  }
  .login-space {
    margin: 18px 0;
  }
  .login-intro {
    display: none;
  }
  .login-features,
  .login-story-signature {
    display: none;
  }
  .login-card h2 {
    font-size: 1.6rem;
  }
  .login-form {
    margin-top: 24px;
  }
  .topbar .demo-chip,
  .form-header-tools > .pill {
    display: none;
  }
  .landing-header {
    gap: 6px;
  }
  .language-trigger {
    padding: 9px;
    gap: 7px;
  }
  h1 {
    font-size: 1.65rem;
    letter-spacing: -0.7px;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 250px;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar.open ~ .mobile-shade {
    display: block;
    position: fixed;
    inset: 0;
    background: #19121c88;
    z-index: 25;
  }
  .app-main {
    margin-left: 0;
  }
  .topbar {
    height: 66px;
    padding: 0 18px;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 20;
  }
  .mobile-menu {
    display: flex;
    border: 0;
  }
  .topbar-profile {
    border: 0;
    padding-left: 0;
  }
  .topbar-profile .profile-name,
  .topbar .date-box {
    display: none;
  }
  .topbar-right {
    gap: 10px;
  }
  .page {
    padding: 23px 18px 26px;
  }
  .page-heading {
    display: block;
    margin-bottom: 23px;
  }
  .page-heading > .row,
  .page-heading > .btn,
  .page-heading > .child-switch {
    margin-top: 16px;
  }
  .page-heading > .page-header-controls {
    margin-top: 16px;
  }
  .page-header-controls,
  .page-header-secondary-actions {
    justify-content: flex-start;
  }
  [data-ui-role="parent"] .page-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  [data-ui-role="parent"] .page-heading > .child-switch {
    align-self: flex-start;
    margin-inline: 0;
  }
  [data-ui-role="parent"] .page-header-controls {
    width: 100%;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
  }
  [data-ui-role="parent"] .page-header-controls > .child-switch {
    order: -1;
  }
  [data-ui-role="parent"] .page-heading > .page-header-controls > .btn {
    margin-inline-start: auto;
  }
  @media (max-width: 480px) {
    .topbar { padding-inline: 10px; gap: 5px; }
    .topbar > .mobile-menu { flex: 0 0 38px; width: 38px; }
    .topbar-right { gap: 5px; }
    .topbar-right > .icon-btn { flex: 0 0 40px; width: 40px; }
    .topbar .language-trigger { padding-inline: 7px; gap: 4px; }
    .landing-header .landing-logo { width: clamp(105px, 34vw, 137px); }
    .landing-header .language-trigger { padding-inline: 7px; gap: 4px; }
    [data-ui-role="parent"] .page-header-controls > .btn {
      gap: 6px;
      padding-inline: 10px;
    }
    [data-ui-role="parent"] .page-heading .child-switch {
      gap: 8px;
      padding-inline: 8px;
    }
    [data-ui-role="parent"] .page-heading .child-switch > .avatar {
      width: 28px;
      height: 28px;
      border-radius: 9px;
    }
  }
  .page-heading p {
    font-size: 0.83rem;
  }
  .metrics {
    gap: 10px;
    margin-bottom: 18px;
  }
  .metric {
    padding: 16px;
  }
  .metric-top {
    font-size: 0.75rem;
    gap: 10px;
  }
  .metric-value {
    font-size: 1.95rem;
    margin-top: 9px;
  }
  .metric-foot {
    font-size: 0.75rem;
  }
  .metric-top .icon {
    width: 16px;
    height: 16px;
  }
  .grid2,
  .grid3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .card {
    padding: 20px;
    border-radius: 15px;
  }
  .card-title {
    gap: 10px;
    margin-bottom: 18px;
  }
  .card-title h2 {
    font-size: 1rem;
  }
  .spotlight {
    padding: 22px;
    display: block;
  }
  .spotlight .btn {
    margin-top: 17px;
  }
  .spotlight h2 {
    font-size: 1.2rem;
  }
  .quick-links {
    grid-template-columns: repeat(3, 1fr);
  }
  .quick-link {
    font-size: 0.75rem;
    padding: 14px 12px;
  }
  .agenda-item {
    grid-template-columns: 48px 3px 1fr;
    gap: 11px;
  }
  .agenda-item > .pill,
  .agenda-item > .btn {
    grid-column: 3;
    width: fit-content;
    margin-top: 3px;
  }
  .agenda-item h3 {
    font-size: 0.88rem;
  }
  .agenda-time {
    font-size: 0.82rem;
  }
  .page-footer {
    font-size: 0.75rem;
    display: block;
  }
  .page-footer span {
    display: block;
    margin-top: 5px;
  }
  .landing-header {
    height: 88px;
  }
  .landing-logo {
    width: 137px;
  }
  .landing .school-logo {
    width: 112px;
  }
  .landing {
    padding: 0 20px 24px;
  }
  .landing-main {
    margin: 30px auto 32px;
  }
  .landing-title {
    margin-bottom: 25px;
  }
  .landing-title h1 {
    font-size: 2.2rem;
    letter-spacing: -1px;
  }
  .landing-title p {
    font-size: 0.9rem;
  }
  .role-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .role-card {
    min-height: 0;
    padding: 24px;
  }
  .role-card > .icon {
    margin: 20px 0 14px;
    width: 28px;
    height: 28px;
  }
  .role-card h2 {
    font-size: 1.45rem;
  }
  .role-card p {
    max-width: none;
  }
  .role-enter {
    margin-top: 20px;
    padding-top: 15px;
  }
  .landing-footer {
    display: block;
  }
  .landing-school-logo {
    width: 160px;
  }
  .landing-ownership {
    margin-top: 14px;
    text-align: left;
  }
  .attendance-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .attendance-card {
    padding: 15px 8px;
    min-height: 154px;
  }
  .attendance-card .avatar {
    width: 50px;
    height: 50px;
  }
  .form-grid {
    gap: 15px;
  }
  .form-grid > .field {
    grid-column: 1/-1;
  }
  .form-grid > .check {
    grid-column: 1/-1;
  }
  .profile-header {
    padding: 20px;
    align-items: start;
    flex-direction: column;
  }
  .profile-header h2 {
    font-size: 1.3rem;
  }
  .detail-grid {
    gap: 18px;
  }
  .detail-value {
    font-size: 0.83rem;
  }
  .tabs {
    margin: 19px 0;
  }
  .tab {
    padding: 11px 12px;
    font-size: 0.81rem;
  }
  .modal-head {
    padding: 18px;
  }
  .modal-head h2 {
    font-size: 1.1rem;
    flex-basis: 100%;
  }
  .modal-body {
    padding: 20px 18px;
  }
  .modal-actions {
    gap: 8px;
  }
  .modal-actions .btn {
    flex: 1;
  }
  .contract-sheet {
    padding: 18px;
  }
  .lesson-summary {
    align-items: start;
    flex-direction: column;
  }
  .live-card h2 {
    font-size: 1.65rem;
  }
  .countdown {
    font-size: 2.5rem;
  }
  .toolbar {
    gap: 12px;
  }
  .toolbar .search-field {
    max-width: none;
    flex-basis: 100%;
  }
  .toolbar select {
    max-width: 100%;
  }
  .trimester-row {
    grid-template-columns: 40px 1fr;
    gap: 12px;
  }
  .trimester-row > .pill,
  .trimester-row > .btn {
    grid-column: 2;
    justify-self: start;
  }
  .child-switch {
    width: fit-content;
  }
  .form-page {
    padding-top: 20px;
  }
  .form-page > .card {
    padding: 22px;
  }
  .form-page h1 {
    font-size: 1.6rem;
  }
  #toasts,
  [data-toast-surface] {
    left: 16px;
    right: 16px;
    margin-inline: auto;
    bottom: 18px;
  }
  .toast {
    padding: 14px 17px;
  }
  .rule-card {
    padding: 18px;
  }
  .doc-row {
    gap: 10px;
  }
  .doc-row .btn {
    font-size: 0.75rem;
    padding: 8px;
  }
  .table-wrap {
    border-radius: 12px;
  }
  td,
  th {
    padding: 13px;
  }
  .notice {
    font-size: 0.8rem;
  }
  .row.mobile-stack {
    flex-direction: column;
    align-items: start;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  @page {
    size: A4;
    margin: 14mm;
  }
  body {
    background: white;
  }
  #app,
  dialog,
  #toasts,
  [data-toast-surface],
  .skip,
  noscript {
    display: none !important;
  }
  #print-root {
    display: block !important;
  }
  .print-page {
    padding: 0;
    max-width: none;
  }
  .print-page table {
    break-inside: auto;
  }
  .print-page tr {
    break-inside: avoid;
  }
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

.metric-value.money-value {
  font-size: 1.65rem;
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .metric-value.money-value {
    font-size: 1.32rem;
    letter-spacing: -0.5px;
  }
  .metric-top {
    min-height: 38px;
  }
  .doc-name {
    overflow-wrap: anywhere;
  }
}

/* School dashboard and shared read-only review dialogs. */
.quick-links .quick-link {white-space:normal;text-align:left;line-height:1.45;justify-content:flex-start;}
.attention-more {padding-top:16px;margin-top:8px;}
.attention-list {max-height:58vh;overflow:auto;overscroll-behavior:contain;padding-right:8px;}
.task-content {min-width:0;}
.task-content p {overflow-wrap:anywhere;}
.task-row > .icon-btn {flex-shrink:0;}
.activity-content {min-width:0;overflow-wrap:anywhere;line-height:1.55;}
.activity-content small {color:var(--muted);font-size:.75rem;}
.activity-more {margin-top:14px;}
.activity-toolbar {margin:18px 0;}
.activity-toolbar .search-field {max-width:none;min-width:0;}
.activity-count {margin:0 0 8px;}
.activity-list .activity-item {border-bottom:1px solid var(--line);padding:16px 0;}
.activity-list .activity-item:last-child {border-bottom:0;}
#change-history {scroll-margin-top:20px;}
.journal-control-total {display:flex;align-items:center;gap:18px;margin:10px 0 18px;}
.journal-control-total > strong {font-size:2.5rem;letter-spacing:-.05em;color:var(--brand);line-height:1;}
.journal-control-label {display:block;font-size:.96rem;font-weight:800;margin-bottom:5px;}
.journal-control-total .meta {display:block;}
button.journal-control-total {width:100%;padding:8px;border:1px solid transparent;border-radius:10px;background:transparent;text-align:left;font:inherit;color:inherit;cursor:pointer;}
button.journal-control-total:hover {background:#fcf6f9;}
button.journal-control-total:focus-visible {outline:2px solid var(--brand);outline-offset:3px;}
button.journal-control-total > .icon {margin-left:auto;flex-shrink:0;color:var(--brand);}
.journal-state {display:flex;align-items:center;gap:6px;align-self:start;padding:8px;border-radius:8px;font-size:.68rem;font-weight:800;line-height:1.35;background:#f1eef3;color:#77707b;}
.journal-state .icon {width:13px;height:13px;flex-shrink:0;}
.journal-state.entered {background:var(--green-bg);color:var(--green);}
.journal-state.missing {background:#fff1d5;color:#8b5b08;}
.journal-state.cancelled {background:#fbe8e9;color:#a43f47;}
.agenda-detail {min-width:0;overflow-wrap:anywhere;}
.agenda-detail .agenda-teacher {color:#615766;font-weight:600;font-size:.73rem;}
.modal-body .activity-list {max-height:min(48vh,calc(90dvh - 280px));}
.room-label {display:inline-flex;align-items:center;gap:5px;vertical-align:middle;white-space:nowrap;font-size:.7rem;line-height:1.5;padding:2px 6px;border-radius:5px;background:#f2eff4;color:#716876;}
.room-dot {width:7px;height:7px;border-radius:50%;background:currentColor;flex-shrink:0;}
.room-red {background:#fce5e6;color:#a82f3e;}
.room-green {background:#e5f3e8;color:#287047;}
.room-orange {background:#fff0df;color:#a95516;}
.room-purple {background:#f0e7fb;color:#7751a7;}
.room-blue {background:#e5effc;color:#356eab;}
.room-yellow {background:#fff5d2;color:#8b6a0c;}
.journal-tracking {margin:0 0 16px;}
.teacher-journal-row {display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding:10px 0;font-size:.84rem;}
.journal-control > .btn {margin-top:12px;}
.journal-up-to-date {display:flex;align-items:center;gap:8px;color:var(--green);font-size:.85rem;}
.school-week {grid-template-columns:repeat(7,minmax(150px,1fr));}
.calendar-day-note {font-size:.7rem;margin-bottom:10px;}
.page-footer a {color:inherit;}
.date-box {white-space:nowrap;}
@media(max-width:760px) {
  .agenda-item {grid-template-columns:76px 44px 3px minmax(0,1fr);gap:9px;}
  .agenda-item > .pill,.agenda-item > .btn {grid-column:4;}
  .agenda-item .journal-state {padding:7px 6px;font-size:.63rem;}
  .journal-control-total > strong {font-size:2.1rem;}
  .attention-list {max-height:55vh;}
}

/* Lesson progress follows the verified school clock. */
.agenda-subject {display:flex;align-items:center;gap:9px;flex-wrap:wrap;}
.agenda-live {display:inline-flex;align-items:center;gap:5px;color:var(--brand);font-size:.65rem;font-weight:800;white-space:nowrap;}
.agenda-live::before {content:"";width:6px;height:6px;border-radius:50%;background:currentColor;}
.agenda-live[hidden] {display:none;}
.agenda-progress {grid-column:1 / -1;height:4px;border-radius:8px;overflow:hidden;background:#eeeaf1;--room-colour:var(--brand);}
.agenda-progress > span {display:block;height:100%;background:var(--room-colour);border-radius:inherit;transition:width 1s linear;}
.progress-red {--room-colour:#c54452;}
.progress-green {--room-colour:#3a9560;}
.progress-orange {--room-colour:#df8537;}
.progress-purple {--room-colour:#9365c3;}
.progress-blue {--room-colour:#538bd1;}
.progress-yellow {--room-colour:#d3ad26;}
.agenda-action {justify-self:end;}
@media(max-width:760px) {.agenda-action {grid-column:4;justify-self:start;}}
@media(prefers-reduced-motion:reduce) {.agenda-progress > span {transition:none;}}

.admissions-phases {display:flex;gap:8px;flex-wrap:wrap;margin-bottom:22px;}
.admissions-phases button {display:flex;align-items:center;gap:8px;flex:1;min-width:160px;border:1px solid var(--line);background:#fff;color:var(--muted);border-radius:12px;padding:13px 15px;text-align:left;font:inherit;font-size:.76rem;font-weight:700;cursor:pointer;}
.admissions-phases button:first-child {flex:0 0 auto;min-width:130px;}
.admissions-phases button.active {background:var(--brand);color:#fff;border-color:var(--brand);}
.admissions-phases button > span {opacity:.65;}
.admissions-phases button > strong {margin-left:auto;}
.admissions-filters {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:16px 0;}
.admissions-select {position:relative;min-width:0;}
.admissions-select summary {display:grid;grid-template-columns:minmax(0,1fr) 16px;gap:5px;border:1px solid var(--line);border-radius:10px;background:white;padding:10px 12px;list-style:none;cursor:pointer;}
.admissions-select summary::-webkit-details-marker {display:none;}
.admissions-select summary > span {grid-column:1 / -1;font-size:.62rem;color:var(--muted);font-weight:700;}
.admissions-select summary > strong {font-size:.74rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.admissions-select summary > .icon {width:16px;height:16px;}
.admissions-select[open] {z-index:5;}
.admissions-select-menu {position:absolute;top:calc(100% + 6px);left:0;width:max(100%,260px);max-width:85vw;padding:10px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 40px #39223d20;}
.admissions-select-menu > input {width:100%;padding:9px 10px;border:1px solid var(--line);border-radius:8px;font:inherit;font-size:.76rem;margin-bottom:8px;}
.admissions-select-menu > div {max-height:240px;overflow:auto;}
.admissions-select-menu button {display:block;width:100%;border:0;background:#fff;padding:9px;border-radius:6px;font:inherit;font-size:.75rem;text-align:left;cursor:pointer;}
.admissions-select-menu button[aria-selected=true],.admissions-select-menu button:hover {background:var(--brand-light);color:var(--brand);}
.admissions-select-menu button[hidden] {display:none;}
.application-status {margin:13px 0;font-size:.65rem;}
.application-status .pill {white-space:normal;}
.application > .btn {width:100%;justify-content:center;white-space:normal;font-size:.73rem;}
.btn.admissions-primary-action {justify-content:flex-start;text-align:left;}
.btn.admissions-primary-action > .icon {flex:0 0 auto;}
.admissions-statistics > summary,.admissions-group-summary {display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none;}
.admissions-statistics > .meta {margin:18px 0;}
.admissions-stat-totals {display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin:18px 0 28px;}
.admissions-stat-totals > div {padding:15px;border-radius:12px;background:#f8f5f9;}
.admissions-stat-totals strong {display:block;font-size:1.8rem;color:var(--brand);}
.admissions-stat-totals span {display:block;font-size:.7rem;line-height:1.5;color:var(--muted);margin-top:5px;}
.admissions-chart {margin:16px 0 28px;}
.admissions-chart > div {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 12px;margin:13px 0;font-size:.73rem;}
.admissions-chart i {grid-column:1 / -1;height:5px;background:var(--brand);border-radius:4px;min-width:0;}
.admissions-portrait {display:flex;align-items:center;gap:18px;margin:16px 0;}
.admissions-portrait img {width:76px;height:76px;object-fit:cover;border-radius:14px;}
.confirmed-courses {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0;}
.confirmed-courses label {display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:10px;padding:10px;cursor:pointer;font-size:.73rem;font-weight:700;}
.confirmed-courses img {width:62px;height:42px;object-fit:cover;border-radius:7px;}
.confirmed-courses input {accent-color:var(--brand);flex:none;margin:0;}
.admissions-ppd-programs label {font-family:inherit;font-size:.9rem;font-weight:500;line-height:1.5;gap:12px;padding:13px 15px;}
.admissions-ppd-programs input {width:20px;height:20px;}
.admissions-ppd-programs label:has(input:checked) {border-color:var(--brand);background:#faf5f8;}
.admissions-ppd-programs label:has(input:disabled) {color:var(--muted);cursor:default;background:#faf9fb;}
.admissions-ppd-programs span {min-width:0;overflow-wrap:anywhere;}
.trial-slot {min-width:0;max-width:100%;padding:17px;margin:18px 0;border:1px solid var(--line);border-radius:12px;}
.trial-slot legend {max-width:100%;overflow-wrap:anywhere;font-size:.85rem;font-weight:800;padding:0 8px;color:var(--wine);}
.trial-slot .form-grid {margin-top:12px;}
.trial-slot [hidden] {display:none !important;}
.trial-keep {display:flex;align-items:center;gap:8px;font-size:.77rem;line-height:1.6;}
.trial-keep input {accent-color:var(--brand);flex:none;margin:0;}
.admissions-decision {display:flex;flex-wrap:wrap;gap:9px;margin-top:22px;padding-top:18px;border-top:1px solid var(--line);}
.admissions-groups {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:22px;}
.admissions-groups > section {padding:16px;border:1px solid var(--line);border-radius:12px;}
.admissions-groups p {font-size:.76rem;margin-top:9px;}
.trial-roster {font-size:.7rem;}
.trial-roster .pill,.attendance-card .pill {font-size:.6rem;}
.portrait-dialog {width:min(620px,94vw);max-height:94dvh;border:0;border-radius:20px;padding:26px;background:white;color:var(--ink);overflow:auto;box-shadow:0 24px 80px #20102555;}
.portrait-dialog::backdrop {background:#20102580;}
.portrait-heading {display:flex;align-items:center;gap:12px;justify-content:space-between;margin-bottom:12px;}
.portrait-heading h2 {font-size:1.2rem;}
.portrait-dialog canvas {display:block;width:min(100%,360px);height:auto;aspect-ratio:1;margin:20px auto;border-radius:10px;}
.portrait-controls {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;}
.portrait-controls input {accent-color:var(--brand);width:100%;}
.portrait-dialog [role=alert] {font-size:.8rem;color:var(--red);margin:12px 0;}
@media(max-width:1100px) {.admissions-filters {grid-template-columns:repeat(3,minmax(0,1fr));}.admissions-stat-totals {grid-template-columns:repeat(3,1fr);}}
@media(max-width:600px) {.admissions-filters {grid-template-columns:repeat(2,minmax(0,1fr));}.admissions-select:last-child .admissions-select-menu {left:auto;right:0;}.admissions-stat-totals {grid-template-columns:repeat(2,1fr);}.confirmed-courses,.admissions-groups {grid-template-columns:1fr;}.portrait-controls {grid-template-columns:1fr;}}

.admissions-availability {margin:18px 0;line-height:1.7;}
.admissions-combine-action {margin-block-end:16px;}
.admissions-select-menu button[aria-selected=true],.admissions-select-menu button:hover {background:#f9edf3;}

/* Shared form controls and admissions hierarchy. Keep the scrollbar inside the rounded dialog. */
#modal {overflow:clip;max-height:90dvh;}
#modal[open] {display:flex;flex-direction:column;}
#modal .modal-head {flex:none;position:relative;border-radius:20px 20px 0 0;}
#modal .modal-body {min-height:0;overflow:auto;overscroll-behavior:contain;border-radius:0 0 20px 20px;}
.popup-native {position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;padding:0!important;border:0!important;pointer-events:none!important;}
.popup-select {position:relative;width:100%;min-width:0;font-weight:400;}
.popup-select-trigger {display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:44px;border:1px solid var(--line);border-radius:10px;padding:10px 13px;background:#fff;color:var(--ink);font:inherit;font-size:.82rem;text-align:left;cursor:pointer;}
.popup-select-trigger::after {content:'';flex:none;width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin-right:3px;}
.popup-select-trigger:disabled {opacity:.5;cursor:default;}
.popup-select.open {z-index:10;}
.popup-select-menu {display:none;position:absolute;top:calc(100% + 5px);left:0;width:100%;min-width:min(260px,70vw);border:1px solid var(--line);padding:9px;background:#fff;border-radius:12px;box-shadow:0 12px 35px #39223d25;}
.popup-select.open .popup-select-menu {display:block;}
.popup-select-menu input {width:100%;margin-bottom:7px;padding:9px 11px;border:1px solid var(--line);border-radius:8px;font:inherit;font-size:.76rem;}
.popup-select-menu > div {max-height:210px;overflow:auto;}
.popup-select-menu button {display:block;width:100%;border:0;padding:10px;background:white;border-radius:7px;text-align:left;font:inherit;font-size:.76rem;color:var(--ink);cursor:pointer;}
.popup-select-menu button:hover,.popup-select-menu button:focus-visible,.popup-select-menu button[aria-selected=true] {background:#f9edf3;color:var(--brand);}
.popup-select-menu button[hidden] {display:none;}
.popup-select.invalid .popup-select-trigger {border-color:var(--red);}
.admissions-count {display:flex;gap:20px;align-items:center;flex-wrap:wrap;font-size:.8rem;color:var(--muted);margin:18px 0;}
.admissions-count strong {color:var(--ink);font-weight:700;}
.admissions-load {display:flex;flex-direction:column;align-items:center;gap:9px;margin:18px 0 4px;}
.admissions-fees {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 28px;}
.admissions-fees .metric:nth-child(4),.admissions-fees .metric:nth-child(5) {background:#fbf5f9;}
.admissions-fees .metric-top {font-size:.75rem;line-height:1.5;font-weight:600;}
.admissions-fees .metric-value {font-size:1.7rem;}
.admissions-statistics > summary h2 {font-size:1.05rem;font-weight:750;letter-spacing:-.025em;}
.admissions-statistics section h3 {font-size:.94rem;font-weight:700;line-height:1.5;}
.admissions-statistics section > .meta {margin:6px 0;}
.admissions-stat-pairs {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:20px;}
.admissions-stat-panel {padding:20px;border:1px solid var(--line);border-radius:14px;min-width:0;}
.admissions-stat-panel.confirmed {background:#fcf2f7;border-color:#e9c4d6;border-top:3px solid var(--brand);}
.admissions-stat-panel.confirmed h3,.admissions-stat-panel.confirmed .admissions-chart strong {color:var(--brand);}
.admissions-stat-wide {grid-column:1/-1;}
.admissions-stat-toolbar {display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;}
.admissions-stat-toolbar {margin-top:18px;}
.admissions-stat-toolbar .meta {margin:0;flex:1;min-width:220px;}
.admissions-stat-toolbar .btn {flex:none;}

@media(max-width:700px) {.admissions-stat-pairs {grid-template-columns:1fr;}.admissions-stat-wide {grid-column:auto;}}
.admissions-statistics summary::-webkit-details-marker {display:none;}
.final-alternative h4 {font-size:.82rem;margin:18px 0 12px;}
[data-admissions-final] [data-shift-reference]:not([hidden]) {
  display:grid;
  gap:18px;
  min-width:0;
}
.final-alternative[hidden],[data-final-second][hidden],[data-shift-reference][hidden],[data-shift-hint][hidden] {display:none;}
.portrait-dialog canvas {touch-action:none;cursor:grab;user-select:none;}
.portrait-dialog canvas.dragging {cursor:grabbing;}
.portrait-drag-hint {text-align:center;margin-bottom:18px;}
@media (max-width: 1000px) {
  .admissions-fees { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admissions-fees > .metric:first-child { grid-column: 1 / -1; }
  .popup-select-menu { min-width: 0; }
}
@media (max-width: 760px) {
  .admissions-fees { gap: 10px; }
  .admissions-fees .metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding: 12px;
    overflow-wrap: anywhere;
  }
  .admissions-fees .metric-top { min-height: 0; }
  .admissions-fees .metric-value {
    margin: auto 0 0;
    font-size: clamp(.95rem, 4.2vw, 1.4rem);
  }
}
@media(max-width:600px) {.admissions-count {gap:8px;flex-direction:column;align-items:flex-start;}}
.settings-sections{display:grid;gap:24px;min-width:0}.settings-sections>.card{margin:0}.auth-settings-card.settings-overview-card{display:block}.settings-overview-card .card-title,.automation-delivery .card-title{align-items:flex-start}.settings-overview-card .card-title p,.automation-delivery .card-title p{margin-top:7px;max-width:750px}.settings-overview-card .card-title>.icon,.automation-delivery .card-title>.icon{color:var(--wine);width:28px;height:28px;flex:none}.automation-rules .rule-card .btn{margin-top:16px}
.automation-rules .rule-card>div{min-width:0;flex:1}
.notifications-refresh-notice{display:grid;grid-template-columns:20px minmax(0,1fr) auto;align-items:center;gap:12px;margin-bottom:18px}
.notifications-refresh-notice>.icon{align-self:start;margin-top:3px;color:var(--wine)}
.notifications-refresh-notice>div{min-width:0}
.notifications-refresh-notice strong{display:block;font-size:.85rem;line-height:1.55;color:var(--ink)}
.notifications-refresh-notice p{margin:5px 0 0;font-size:.8rem;line-height:1.6;overflow-wrap:anywhere}
.notifications-refresh-notice>.btn{max-width:100%;min-height:44px;white-space:normal;justify-content:flex-start;text-align:left}
@media(max-width:760px){
  .settings-sections>.settings-overview-card .btn,.settings-sections>.mail-settings-card .btn,.settings-sections>.school-year-panel .btn,.automation-delivery .btn,.automation-rules .btn{font:700 .875rem/1.4 Manrope,Arial,sans-serif;min-height:44px;min-width:0;max-width:100%;padding:11px 16px;gap:9px;white-space:normal;justify-content:flex-start;text-align:left}
  .settings-sections>.settings-overview-card .btn>.icon,.settings-sections>.mail-settings-card .btn>.icon,.settings-sections>.school-year-panel .btn>.icon,.automation-delivery .btn>.icon,.automation-rules .btn>.icon{width:20px;height:20px;flex:none}
}
@media(max-width:600px){.notifications-refresh-notice{grid-template-columns:20px minmax(0,1fr);align-items:start}.notifications-refresh-notice>.btn{grid-column:2;justify-self:start}}
@media(max-width:600px){.notifications-toolbar{align-items:center;flex-wrap:nowrap;gap:10px}.notifications-toolbar>p{flex:1;min-width:0;font-size:.75rem}.notifications-toolbar>.btn{flex:0 1 auto;max-width:52%;margin-left:0;white-space:normal;text-align:left;justify-content:flex-start;font-size:.72rem;padding:9px 10px}.notifications-toolbar>.btn>.icon{flex:none}.settings-overview-card>.btn,.automation-delivery .row>.btn{max-width:100%;white-space:normal;text-align:left;justify-content:flex-start}}
@media(max-width:600px){
  #modal .notifications-toolbar{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;padding-bottom:16px;border-bottom:1px solid var(--line)}
  #modal .notifications-toolbar>p{font-size:.82rem;line-height:1.5}
  #modal .notifications-toolbar>.btn{width:100%;max-width:100%;min-height:44px;margin:0;padding:10px 12px;gap:9px;justify-content:center;text-align:center;font-size:.82rem;line-height:1.4;color:var(--wine);background:#f7f3f6;border-color:var(--line)}
}
