:root {
    --purple-950: #24113f;
    --purple-900: #32145c;
    --purple-800: #431b7a;
    --purple-700: #5b21b6;
    --purple-600: #6d35cc;
    --purple-500: #7c4ad9;
    --purple-100: #eee7fb;
    --purple-50: #f8f5fe;
    --blue-800: #124c8f;
    --blue-700: #1769c2;
    --blue-600: #2183df;
    --blue-100: #e2f1ff;
    --blue-50: #f2f8ff;
    --ink: #181528;
    --ink-soft: #5e5a6e;
    --line: #e7e4ed;
    --surface: #ffffff;
    --surface-soft: #f8f7fb;
    --success: #13795b;
    --danger: #b42318;
    --shadow-sm: 0 8px 28px rgba(40, 24, 70, 0.08);
    --shadow-lg: 0 24px 70px rgba(40, 24, 70, 0.16);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --container: 1180px;
    /* Stage 5B.6E — Staff Portal panel & form system */
    --panel-border: rgba(91, 33, 182, 0.20);
    --panel-border-strong: rgba(91, 33, 182, 0.34);
    --panel-surface: #ffffff;
    --panel-surface-soft: var(--purple-50);
    --panel-radius: 16px;
    --panel-radius-sm: 12px;
    --panel-shadow: 0 10px 30px rgba(40, 24, 70, 0.07);
    --panel-shadow-hover: 0 16px 40px rgba(40, 24, 70, 0.12);
    --field-border: rgba(91, 33, 182, 0.24);
    --field-focus-ring: rgba(91, 33, 182, 0.20);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    background: var(--surface);
    font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.nav-open {
    overflow: hidden;
}

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

a {
    color: inherit;
}

button,
input,
textarea {
    font: inherit;
}

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

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

h1,
h2,
h3,
.brand,
.button {
    font-family: "Manrope", "DM Sans", sans-serif;
}

h1,
h2,
h3 {
    line-height: 1.14;
    letter-spacing: -0.035em;
}

p:last-child {
    margin-bottom: 0;
}

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

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

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    border-radius: 8px;
    color: #fff;
    background: var(--ink);
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

:focus-visible {
    outline: 3px solid rgba(33, 131, 223, 0.48);
    outline-offset: 3px;
}

.topbar {
    color: rgba(255, 255, 255, 0.84);
    background: var(--purple-950);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 34px;
}

.topbar p {
    margin: 0;
}

.topbar__dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 7px;
    border-radius: 50%;
    background: #71d8ff;
    box-shadow: 0 0 0 4px rgba(113, 216, 255, 0.12);
}

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid rgba(78, 56, 112, 0.08);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(18px);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    text-decoration: none;
}

.brand__copy {
    display: grid;
    line-height: 1;
}

.brand__copy strong {
    font-size: 18px;
    letter-spacing: -0.04em;
    /* School-name identity treatment: deep brand purple wherever the name is serving as
       the interface identity (public/auth headers, login and change-password shells).
       Dark shells re-assert a light colour below for contrast. */
    color: var(--purple-800);
}

.brand__copy small {
    margin-top: 4px;
    color: var(--purple-700);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.site-nav > a:not(.button) {
    position: relative;
    padding: 10px 11px;
    color: #565064;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 180ms ease;
}

.site-nav > a:not(.button)::after {
    position: absolute;
    right: 11px;
    bottom: 4px;
    left: 11px;
    height: 2px;
    border-radius: 3px;
    background: var(--purple-700);
    content: "";
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 180ms ease;
}

.site-nav > a:hover,
.site-nav > a.is-active {
    color: var(--purple-700);
}

.site-nav > a:hover::after,
.site-nav > a.is-active::after {
    transform: scaleX(1);
}

.nav-portal {
    margin-left: 10px;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 11px;
    border: 0;
    border-radius: 10px;
    background: var(--purple-50);
}

.nav-toggle > span:not(.sr-only) {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px 0;
    border-radius: 4px;
    background: var(--purple-900);
    transition: 180ms ease;
}

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 20px;
    border: 1px solid transparent;
    border-radius: 12px 12px 12px 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--purple-700), var(--purple-600));
    box-shadow: 0 12px 26px rgba(91, 33, 182, 0.23);
}

.button--primary:hover {
    box-shadow: 0 16px 34px rgba(91, 33, 182, 0.3);
}

.button--ghost {
    border-color: #dcd6e7;
    color: var(--purple-800);
    background: #fff;
}

.button--ghost:hover {
    border-color: var(--purple-500);
}

.button--white {
    color: var(--purple-900);
    background: #fff;
    box-shadow: 0 12px 30px rgba(20, 11, 38, 0.17);
}

.button--sm {
    min-height: 42px;
    padding: 10px 15px;
    font-size: 13px;
}

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

.flash-wrap {
    position: relative;
    z-index: 80;
}

.flash {
    position: absolute;
    top: 16px;
    right: 0;
    max-width: 520px;
    padding: 14px 18px;
    border: 1px solid;
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    font-weight: 600;
}

.flash--success {
    border-color: #98dbc6;
    color: var(--success);
}

.flash--error {
    border-color: #f2a6a0;
    color: var(--danger);
}

.hero {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.96) 0%, rgba(255,255,255,0.89) 52%, rgba(247,242,255,0.8) 100%),
        radial-gradient(circle at 90% 10%, #d9c9ff 0, transparent 43%);
}

.hero::before {
    position: absolute;
    inset: 0;
    opacity: 0.36;
    background-image: radial-gradient(rgba(91, 33, 182, 0.17) 0.7px, transparent 0.7px);
    background-size: 18px 18px;
    content: "";
    mask-image: linear-gradient(to right, transparent, #000);
}

.hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 690px;
    align-items: center;
    grid-template-columns: minmax(0, 1.03fr) minmax(440px, 0.97fr);
    gap: 72px;
    padding-block: 84px 94px;
}

.hero__copy {
    max-width: 660px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    color: var(--purple-700);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow > span {
    width: 23px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.eyebrow--light {
    color: #9edcff;
}

.hero h1 {
    max-width: 700px;
    margin-bottom: 24px;
    font-size: clamp(46px, 5.2vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.062em;
}

.hero h1 em {
    color: var(--purple-700);
    font-style: normal;
}

.hero__copy > p {
    max-width: 610px;
    margin-bottom: 30px;
    color: var(--ink-soft);
    font-size: 18px;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero__trust {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 32px;
}

.hero__trust p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.4;
}

.hero__trust strong {
    color: var(--ink);
    font-size: 13px;
}

.avatar-stack {
    display: flex;
}

.avatar-stack span {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    margin-left: -7px;
    border: 3px solid #fff;
    border-radius: 50%;
    color: #fff;
    background: var(--purple-700);
    font-size: 10px;
    font-weight: 800;
}

.avatar-stack span:first-child {
    margin-left: 0;
    background: var(--blue-700);
}

.avatar-stack span:last-child {
    background: var(--ink);
}

.hero-visual {
    position: relative;
    min-height: 510px;
}

.hero-visual__orb {
    position: absolute;
    top: 44px;
    right: 5px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(91, 33, 182, 0.13);
    border-radius: 44% 56% 61% 39% / 49% 38% 62% 51%;
    background: linear-gradient(145deg, rgba(110, 53, 204, 0.12), rgba(33, 131, 223, 0.1));
    transform: rotate(9deg);
}

.hero-visual__orb::before,
.hero-visual__orb::after {
    position: absolute;
    border: 1px solid rgba(91, 33, 182, 0.1);
    border-radius: inherit;
    content: "";
}

.hero-visual__orb::before {
    inset: 25px -18px -16px 18px;
}

.hero-visual__orb::after {
    inset: 64px -42px -38px 57px;
}

.hero-card {
    position: absolute;
    background: #fff;
    box-shadow: var(--shadow-lg);
}

.hero-card--main {
    z-index: 2;
    top: 52px;
    right: 42px;
    width: min(405px, 88%);
    overflow: hidden;
    border: 1px solid rgba(105, 74, 155, 0.14);
    border-radius: 28px 28px 28px 9px;
    transform: rotate(1.2deg);
}

.hero-card__top {
    display: flex;
    min-height: 64px;
    align-items: center;
    gap: 9px;
    padding: 0 23px;
    border-bottom: 1px solid #eeeaf5;
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #35bf8b;
    box-shadow: 0 0 0 4px rgba(53, 191, 139, 0.12);
}

.hero-card__tag {
    margin-left: auto;
    padding: 5px 8px;
    border-radius: 20px;
    color: var(--success);
    background: #e6f7f1;
    font-size: 9px;
}

.hero-card__content {
    padding: 35px 34px 37px;
    color: #fff;
    background:
        radial-gradient(circle at 100% 0, rgba(67, 165, 244, 0.32), transparent 34%),
        linear-gradient(145deg, var(--purple-950), var(--purple-800));
}

.mini-label {
    color: var(--purple-500);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-card__content .mini-label {
    color: #9edcff;
}

.hero-card__content h2 {
    margin: 15px 0 34px;
    font-size: 35px;
    line-height: 1.08;
}

.progress-track {
    height: 7px;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.14);
}

.progress-track span {
    display: block;
    width: 78%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #70d4ff, #a88bff);
}

.progress-copy {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 10px;
}

.progress-copy strong {
    color: #fff;
}

.hero-card--float {
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 212px;
    padding: 14px 16px;
    border: 1px solid rgba(109, 80, 151, 0.13);
    border-radius: 16px 16px 16px 5px;
}

.hero-card--float strong,
.hero-card--float small {
    display: block;
}

.hero-card--float strong {
    margin-bottom: 2px;
    font-size: 13px;
}

.hero-card--float small {
    color: var(--ink-soft);
    font-size: 10px;
}

.hero-card--classes {
    top: 26px;
    left: -15px;
}

.hero-card--values {
    right: -12px;
    bottom: 40px;
}

.float-icon {
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    border-radius: 11px;
    font-size: 11px;
    font-weight: 800;
}

.float-icon--purple {
    color: var(--purple-700);
    background: var(--purple-100);
}

.float-icon--blue {
    color: var(--blue-700);
    background: var(--blue-100);
}

.proof-strip {
    border-block: 1px solid var(--line);
    background: #fff;
}

.proof-strip__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.proof-strip__grid > div {
    display: grid;
    gap: 1px;
    padding: 22px 30px;
    border-right: 1px solid var(--line);
}

.proof-strip__grid > div:first-child {
    border-left: 1px solid var(--line);
}

.proof-strip strong {
    color: var(--purple-800);
    font-family: "Manrope", sans-serif;
    font-size: 16px;
}

.proof-strip span {
    color: var(--ink-soft);
    font-size: 11px;
}

.section {
    padding-block: 105px;
}

.section--compact {
    padding-block: 70px;
}

.section--soft {
    background: var(--surface-soft);
}

.section-heading {
    margin-bottom: 48px;
}

.section-heading h2 {
    max-width: 720px;
    margin-bottom: 0;
    font-size: clamp(34px, 4vw, 50px);
}

.section-heading--split {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 60px;
}

.section-heading--split > p {
    max-width: 450px;
    margin-bottom: 7px;
    color: var(--ink-soft);
}

.section-heading--center {
    max-width: 700px;
    margin-inline: auto;
    text-align: center;
}

.section-heading--center .eyebrow {
    justify-content: center;
}

.section-heading--compact {
    margin-bottom: 32px;
}

.section-heading--compact h2 {
    font-size: 38px;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.value-card {
    position: relative;
    min-height: 335px;
    overflow: hidden;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md) var(--radius-md) var(--radius-md) 7px;
    background: #fff;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-sm);
}

.value-card--featured {
    color: #fff;
    border-color: transparent;
    background:
        radial-gradient(circle at 90% 0, rgba(72, 173, 245, 0.3), transparent 32%),
        linear-gradient(145deg, var(--purple-950), var(--purple-700));
}

.value-card__number {
    position: absolute;
    top: 24px;
    right: 27px;
    color: #aaa3b8;
    font-size: 11px;
    font-weight: 700;
}

.value-card--featured .value-card__number {
    color: rgba(255, 255, 255, 0.5);
}

.value-icon {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    margin-bottom: 56px;
    border-radius: 16px 16px 16px 5px;
    color: var(--purple-700);
    background: var(--purple-100);
    font-family: "Manrope", sans-serif;
    font-size: 20px;
    font-weight: 800;
}

.value-card--featured .value-icon {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.value-card h3 {
    margin-bottom: 12px;
    font-size: 24px;
}

.value-card p {
    color: var(--ink-soft);
}

.value-card--featured p {
    color: rgba(255, 255, 255, 0.72);
}

.value-card__line {
    position: absolute;
    right: 34px;
    bottom: 24px;
    left: 34px;
    height: 2px;
    background: linear-gradient(90deg, var(--purple-500) 28%, var(--line) 28%);
}

.value-card--featured .value-card__line {
    background: linear-gradient(90deg, #71d8ff 38%, rgba(255,255,255,0.14) 38%);
}

.section--journey {
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 10% 20%, rgba(33, 131, 223, 0.22), transparent 25%),
        linear-gradient(135deg, var(--purple-950), #2b1550 55%, #172b54);
}

.journey-grid {
    display: grid;
    align-items: center;
    grid-template-columns: 0.88fr 1.12fr;
    gap: 95px;
}

.journey-visual {
    position: relative;
    min-height: 495px;
}

.journey-panel {
    position: absolute;
    inset: 30px 30px 45px 0;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 42px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 40% 18px 30% 8px;
    background:
        linear-gradient(180deg, transparent, rgba(22, 10, 43, 0.82)),
        radial-gradient(circle at 42% 25%, rgba(112, 212, 255, 0.4), transparent 21%),
        linear-gradient(145deg, rgba(124, 74, 217, 0.56), rgba(33, 131, 223, 0.28));
}

.journey-panel__badge {
    position: absolute;
    top: 40px;
    left: 40px;
    display: grid;
    width: 60px;
    height: 60px;
    place-items: center;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 17px 17px 17px 5px;
    background: rgba(255,255,255,0.1);
    font-family: "Manrope", sans-serif;
    font-size: 25px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.journey-panel p {
    max-width: 400px;
    margin-bottom: 18px;
    font-family: "Manrope", sans-serif;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.45;
}

.journey-panel > span {
    color: rgba(255, 255, 255, 0.57);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.journey-stat {
    position: absolute;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 16px 20px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 15px 15px 15px 5px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
}

.journey-stat strong {
    font-family: "Manrope", sans-serif;
    font-size: 34px;
}

.journey-stat span {
    color: rgba(255,255,255,0.64);
    font-size: 10px;
    line-height: 1.4;
}

.journey-copy h2 {
    max-width: 600px;
    margin-bottom: 21px;
    font-size: clamp(38px, 4.4vw, 58px);
}

.journey-copy > p {
    max-width: 600px;
    margin-bottom: 37px;
    color: rgba(255, 255, 255, 0.67);
    font-size: 17px;
}

.journey-list {
    display: grid;
    gap: 17px;
    margin-bottom: 34px;
}

.journey-list > div {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 15px;
    padding-bottom: 17px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.journey-list > div > span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    color: #a8e2ff;
    background: rgba(112, 212, 255, 0.1);
    font-size: 10px;
    font-weight: 800;
}

.journey-list strong {
    display: block;
    margin-bottom: 3px;
    font-size: 14px;
}

.journey-list p {
    color: rgba(255,255,255,0.57);
    font-size: 13px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--purple-700);
    font-weight: 800;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.text-link--light {
    color: #a8e2ff;
}

.news-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 24px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.news-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md) var(--radius-md) var(--radius-md) 7px;
    background: #fff;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-sm);
}

.news-card__visual {
    display: grid;
    height: 160px;
    place-items: center;
    background:
        radial-gradient(circle at 70% 20%, rgba(255,255,255,0.32), transparent 26%),
        linear-gradient(145deg, var(--purple-700), var(--blue-600));
}

.news-card__visual span {
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 18px;
    color: #fff;
    background: rgba(255,255,255,0.1);
    font-family: "Manrope", sans-serif;
    font-size: 25px;
    font-weight: 800;
}

.news-card__body {
    padding: 24px;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 11px;
    color: var(--ink-soft);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.meta-row span {
    color: var(--purple-700);
}

.news-card h3 {
    margin-bottom: 10px;
    font-size: 19px;
}

.news-card p {
    color: var(--ink-soft);
    font-size: 13px;
}

.event-card,
.calendar-panel {
    align-self: stretch;
    padding: 30px;
    border-radius: var(--radius-md) var(--radius-md) var(--radius-md) 7px;
    color: #fff;
    background: var(--purple-950);
}

.event-card h3,
.calendar-panel h2 {
    margin: 9px 0 25px;
    font-size: 25px;
}

.event-list {
    display: grid;
}

.event-item {
    display: grid;
    align-items: center;
    grid-template-columns: 54px 1fr;
    gap: 14px;
    padding: 16px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.event-item time {
    display: grid;
    min-height: 52px;
    place-items: center;
    align-content: center;
    border-radius: 12px 12px 12px 4px;
    color: var(--purple-900);
    background: #fff;
    line-height: 1;
}

.event-item time strong {
    font-family: "Manrope", sans-serif;
    font-size: 17px;
}

.event-item time span {
    margin-top: 4px;
    color: var(--purple-700);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.event-item > div strong,
.event-item > div span {
    display: block;
}

.event-item > div strong {
    margin-bottom: 5px;
    font-size: 13px;
}

.event-item > div span {
    color: rgba(255,255,255,0.56);
    font-size: 10px;
}

.section--cta {
    padding-top: 55px;
}

.cta-panel {
    display: grid;
    align-items: end;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    overflow: hidden;
    padding: 58px;
    border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 9px;
    color: #fff;
    background:
        radial-gradient(circle at 95% 5%, rgba(91, 190, 255, 0.34), transparent 28%),
        linear-gradient(135deg, var(--purple-800), var(--purple-950));
}

.cta-panel h2 {
    max-width: 720px;
    margin-bottom: 0;
    font-size: clamp(34px, 4vw, 50px);
}

.cta-panel__action p {
    margin-bottom: 20px;
    color: rgba(255,255,255,0.67);
}

.site-footer {
    padding: 78px 0 24px;
    color: #fff;
    background: #171020;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.75fr 0.75fr 1fr;
    gap: 55px;
    padding-bottom: 60px;
}

.brand--light {
    color: #fff;
}

.brand--light .brand__copy strong {
    color: #fff;
}

.brand--light .brand__copy small {
    color: #a8e2ff;
}

.footer-brand > p {
    max-width: 330px;
    margin: 22px 0;
    color: rgba(255,255,255,0.58);
    font-size: 13px;
}

.motto-chip {
    display: inline-flex;
    padding: 8px 11px;
    border: 1px solid rgba(255,255,255,0.11);
    border-radius: 30px;
    color: #b9a7e6;
    background: rgba(255,255,255,0.04);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-heading {
    margin-bottom: 20px;
    font-size: 13px;
    letter-spacing: 0.05em;
}

.footer-links {
    display: grid;
    gap: 11px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a {
    color: rgba(255,255,255,0.55);
    font-size: 12px;
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
}

.footer-action p {
    margin-bottom: 20px;
    color: rgba(255,255,255,0.55);
    font-size: 12px;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    justify-content: space-between;
    align-items: center;
    padding-top: 23px;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.38);
    font-size: 10px;
}

.footer-bottom p {
    margin: 0;
}

.page-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 85% 25%, rgba(104, 191, 255, 0.3), transparent 28%),
        linear-gradient(125deg, var(--purple-950), var(--purple-700));
}

.page-hero::after {
    position: absolute;
    right: -100px;
    bottom: -190px;
    width: 470px;
    height: 470px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 50%;
    box-shadow: 0 0 0 55px rgba(255,255,255,0.025), 0 0 0 115px rgba(255,255,255,0.018);
    content: "";
}

.page-hero--blue {
    background:
        radial-gradient(circle at 85% 25%, rgba(191, 143, 255, 0.36), transparent 28%),
        linear-gradient(125deg, #123b78, var(--blue-700));
}

.page-hero--admissions {
    background:
        radial-gradient(circle at 90% 25%, rgba(78, 182, 255, 0.36), transparent 28%),
        linear-gradient(125deg, #351260, #6726b7);
}

.page-hero--news {
    background:
        radial-gradient(circle at 88% 20%, rgba(132, 105, 237, 0.36), transparent 28%),
        linear-gradient(125deg, #122a50, #1c68a8);
}

.page-hero--contact {
    background:
        radial-gradient(circle at 85% 20%, rgba(83, 187, 255, 0.3), transparent 30%),
        linear-gradient(125deg, #281046, #4e2088);
}

.page-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 850px;
    padding-block: 100px 110px;
}

.page-hero h1 {
    max-width: 820px;
    margin-bottom: 22px;
    font-size: clamp(44px, 5vw, 67px);
}

.page-hero p {
    max-width: 690px;
    margin-bottom: 0;
    color: rgba(255,255,255,0.7);
    font-size: 18px;
}

.story-grid,
.curriculum-grid,
.admissions-grid,
.contact-grid {
    display: grid;
    grid-template-columns: 0.88fr 1.12fr;
    gap: 90px;
}

.display-sm {
    margin-bottom: 0;
    font-size: clamp(34px, 4vw, 49px);
}

.prose {
    color: var(--ink-soft);
    font-size: 17px;
}

.prose p {
    margin-bottom: 24px;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.mission-card {
    min-height: 390px;
    padding: 50px;
    border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 9px;
    color: #fff;
}

.mission-card--purple {
    background:
        radial-gradient(circle at 90% 10%, rgba(91, 190, 255, 0.35), transparent 29%),
        linear-gradient(145deg, var(--purple-950), var(--purple-700));
}

.mission-card--blue {
    background:
        radial-gradient(circle at 90% 10%, rgba(170, 123, 255, 0.4), transparent 29%),
        linear-gradient(145deg, #103d75, var(--blue-600));
}

.mission-card > span,
.inline-cta span,
.admission-note > div > span,
.student-welcome > div > span {
    display: block;
    margin-bottom: 45px;
    color: rgba(255,255,255,0.66);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.mission-card h2 {
    max-width: 510px;
    margin-bottom: 20px;
    font-size: 34px;
}

.mission-card p {
    max-width: 520px;
    color: rgba(255,255,255,0.68);
}

.expect-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-block: 1px solid var(--line);
}

.expect-grid article {
    padding: 33px 27px;
    border-right: 1px solid var(--line);
}

.expect-grid article:first-child {
    border-left: 1px solid var(--line);
}

.expect-grid article > span,
.steps-grid article > span {
    color: var(--purple-500);
    font-size: 10px;
    font-weight: 800;
}

.expect-grid h3 {
    margin: 42px 0 12px;
    font-size: 19px;
}

.expect-grid p {
    color: var(--ink-soft);
    font-size: 13px;
}

.inline-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 40px 45px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md) var(--radius-md) var(--radius-md) 7px;
    background: var(--surface-soft);
}

.inline-cta span {
    margin-bottom: 5px;
    color: var(--purple-600);
}

.inline-cta h2 {
    margin-bottom: 0;
    font-size: 26px;
}

.academic-track {
    display: grid;
    align-items: center;
    grid-template-columns: 1fr 80px 1fr;
}

.track-card {
    min-height: 430px;
    padding: 46px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 9px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.track-card--dark {
    color: #fff;
    border-color: transparent;
    background:
        radial-gradient(circle at 90% 10%, rgba(67, 171, 255, 0.3), transparent 25%),
        var(--purple-950);
}

.track-card__head {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 45px;
}

.track-card__head > span {
    display: grid;
    width: 65px;
    height: 65px;
    place-items: center;
    border-radius: 18px 18px 18px 6px;
    color: var(--purple-700);
    background: var(--purple-100);
    font-family: "Manrope", sans-serif;
    font-size: 20px;
    font-weight: 800;
}

.track-card--dark .track-card__head > span {
    color: #fff;
    background: rgba(255,255,255,0.12);
}

.track-card__head small {
    color: var(--ink-soft);
    font-weight: 700;
}

.track-card--dark .track-card__head small {
    color: rgba(255,255,255,0.54);
}

.track-card h2 {
    margin-bottom: 15px;
    font-size: 34px;
}

.track-card > p {
    color: var(--ink-soft);
}

.track-card--dark > p {
    color: rgba(255,255,255,0.64);
}

.check-list {
    display: grid;
    gap: 12px;
    margin: 25px 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 28px;
    font-size: 13px;
}

.check-list li::before {
    position: absolute;
    top: 2px;
    left: 0;
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border-radius: 50%;
    color: var(--purple-700);
    background: var(--purple-100);
    content: "✓";
    font-size: 9px;
    font-weight: 900;
}

.track-card--dark .check-list li {
    color: rgba(255,255,255,0.8);
}

.track-card--dark .check-list li::before {
    color: #8ee0ff;
    background: rgba(112, 212, 255, 0.12);
}

.track-connector {
    position: relative;
    z-index: 2;
    display: grid;
    width: 80px;
    height: 80px;
    place-items: center;
    margin-inline: auto;
    border: 8px solid #fff;
    border-radius: 50%;
    color: var(--purple-700);
    background: var(--purple-100);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.level-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.level-pill {
    display: grid;
    min-height: 150px;
    align-content: space-between;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 15px 15px 15px 5px;
    background: #fff;
}

.level-pill > span {
    color: var(--purple-500);
    font-size: 10px;
    font-weight: 800;
}

.level-pill strong {
    font-family: "Manrope", sans-serif;
    font-size: 19px;
}

.level-pill small {
    color: var(--ink-soft);
    font-size: 9px;
}

.lead-copy {
    max-width: 520px;
    margin-top: 23px;
    color: var(--ink-soft);
    font-size: 17px;
}

.subject-panel {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md) var(--radius-md) var(--radius-md) 7px;
    box-shadow: var(--shadow-sm);
}

.subject-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    color: #fff;
    background: var(--purple-900);
    font-size: 12px;
}

.subject-panel__head strong {
    display: grid;
    width: 33px;
    height: 33px;
    place-items: center;
    border-radius: 9px;
    background: rgba(255,255,255,0.12);
}

.subject-list {
    display: grid;
}

.subject-list > div {
    display: grid;
    align-items: center;
    grid-template-columns: 80px 1fr;
    gap: 15px;
    padding: 20px 25px;
    border-top: 1px solid var(--line);
}

.subject-list > div:first-child {
    border-top: 0;
}

.subject-list span {
    color: var(--purple-600);
    font-size: 10px;
    font-weight: 800;
}

.subject-list strong {
    font-size: 14px;
}

.empty-copy {
    padding: 20px 25px;
    color: var(--ink-soft);
    font-size: 13px;
}

.empty-state {
    display: grid;
    gap: 5px;
    padding: 24px;
    border: 1px dashed #cfc8dc;
    border-radius: 14px;
    color: var(--ink-soft);
    background: var(--surface-soft);
    font-size: 13px;
}

.empty-state strong {
    color: var(--ink);
    font-size: 15px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.steps-grid article {
    min-height: 280px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md) var(--radius-md) var(--radius-md) 7px;
    background: #fff;
    transition: transform 180ms ease, border-color 180ms ease;
}

.steps-grid article:hover {
    border-color: var(--purple-500);
    transform: translateY(-4px);
}

.steps-grid h3 {
    margin: 80px 0 12px;
    font-size: 20px;
}

.steps-grid p {
    color: var(--ink-soft);
    font-size: 13px;
}

.requirement-card {
    padding: 16px 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md) var(--radius-md) var(--radius-md) 7px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.requirement-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.requirement-list li {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 15px;
    padding-block: 22px;
    border-top: 1px solid var(--line);
}

.requirement-list li:first-child {
    border-top: 0;
}

.requirement-list li > span {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 50%;
    color: var(--purple-700);
    background: var(--purple-100);
    font-size: 9px;
    font-weight: 800;
}

.requirement-list strong {
    display: block;
    margin-bottom: 4px;
}

.requirement-list p {
    color: var(--ink-soft);
    font-size: 12px;
}

.admission-note {
    display: grid;
    align-items: center;
    grid-template-columns: 70px 1fr auto;
    gap: 28px;
    padding: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md) var(--radius-md) var(--radius-md) 7px;
}

.admission-note__mark {
    display: grid;
    width: 66px;
    height: 66px;
    place-items: center;
    border-radius: 19px 19px 19px 6px;
    color: #fff;
    background: linear-gradient(145deg, var(--purple-700), var(--blue-600));
    font-family: "Manrope", sans-serif;
    font-size: 24px;
    font-weight: 800;
}

.admission-note > div > span {
    margin-bottom: 4px;
    color: var(--purple-600);
}

.admission-note h2 {
    margin-bottom: 7px;
    font-size: 25px;
}

.admission-note p {
    color: var(--ink-soft);
    font-size: 13px;
}

.content-with-sidebar {
    display: grid;
    align-items: start;
    grid-template-columns: 1fr 350px;
    gap: 55px;
}

.news-list {
    display: grid;
}

.news-row {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 27px;
    padding: 30px 0;
    border-top: 1px solid var(--line);
}

.news-row:last-child {
    border-bottom: 1px solid var(--line);
}

.news-row__date {
    display: grid;
    min-height: 88px;
    place-items: center;
    align-content: center;
    border-radius: 15px 15px 15px 5px;
    color: #fff;
    background: var(--purple-900);
}

.news-row__date strong {
    font-family: "Manrope", sans-serif;
    font-size: 28px;
    line-height: 1;
}

.news-row__date span {
    margin-top: 5px;
    color: #bdabe7;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.category-chip {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 4px 8px;
    border-radius: 30px;
    color: var(--purple-700);
    background: var(--purple-100);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.news-row h3 {
    margin-bottom: 8px;
    font-size: 23px;
}

.news-row p {
    color: var(--ink-soft);
    font-size: 14px;
}

.calendar-panel {
    position: sticky;
    top: 108px;
}

.calendar-panel .text-link {
    margin-top: 20px;
}

.contact-grid {
    align-items: start;
}

.contact-copy {
    position: sticky;
    top: 125px;
}

.contact-copy > p {
    max-width: 470px;
    margin: 23px 0 35px;
    color: var(--ink-soft);
    font-size: 17px;
}

.contact-reasons {
    display: grid;
    gap: 16px;
}

.contact-reasons > div {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
}

.contact-reasons > div > span {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 10px 10px 10px 4px;
    color: var(--purple-700);
    background: var(--purple-100);
    font-size: 11px;
    font-weight: 800;
}

.contact-reasons strong {
    display: block;
    font-size: 13px;
}

.contact-reasons p {
    color: var(--ink-soft);
    font-size: 11px;
}

.form-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md) var(--radius-md) var(--radius-md) 7px;
    background: #fff;
    box-shadow: var(--shadow-lg);
}

.form-card__head {
    padding: 27px 32px;
    color: #fff;
    background: var(--purple-950);
}

.form-card__head span {
    display: block;
    font-family: "Manrope", sans-serif;
    font-size: 21px;
    font-weight: 800;
}

.form-card__head p {
    color: rgba(255,255,255,0.55);
    font-size: 11px;
}

.contact-form,
.login-form {
    display: grid;
    gap: 19px;
    padding: 32px;
}

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

.contact-form label,
.login-form label {
    display: grid;
    gap: 7px;
    color: #3c3748;
    font-size: 11px;
    font-weight: 800;
}

.contact-form input,
.contact-form textarea,
.login-form input {
    width: 100%;
    border: 1px solid #dcd8e4;
    border-radius: 10px;
    color: var(--ink);
    background: #fff;
    font-size: 14px;
    font-weight: 400;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.contact-form input,
.login-form input {
    height: 48px;
    padding: 0 14px;
}

.contact-form textarea {
    min-height: 145px;
    padding: 13px 14px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus,
.login-form input:focus {
    border-color: var(--purple-500);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(124, 74, 217, 0.1);
}

.form-honeypot {
    position: absolute;
    left: -10000px;
}

.form-note {
    color: var(--ink-soft);
    font-size: 10px;
    text-align: center;
}

.form-errors {
    margin: 24px 32px 0;
    padding: 14px 17px;
    border: 1px solid #f5b1ab;
    border-radius: 10px;
    color: var(--danger);
    background: #fff6f5;
    font-size: 12px;
}

.form-errors p,
.form-errors ul {
    margin-bottom: 0;
}

.login-section {
    min-height: 720px;
    padding-block: 85px;
    color: #fff;
    background:
        radial-gradient(circle at 15% 20%, rgba(33, 131, 223, 0.25), transparent 24%),
        linear-gradient(130deg, var(--purple-950), #29114d 60%, #143767);
}

.login-grid {
    display: grid;
    align-items: center;
    grid-template-columns: 1fr 460px;
    gap: 100px;
}

.login-intro h1 {
    max-width: 610px;
    margin-bottom: 20px;
    font-size: clamp(46px, 5vw, 67px);
}

.login-intro > p {
    max-width: 580px;
    color: rgba(255,255,255,0.65);
    font-size: 17px;
}

.security-note {
    display: flex;
    max-width: 480px;
    gap: 14px;
    margin-top: 37px;
    padding-top: 25px;
    border-top: 1px solid rgba(255,255,255,0.12);
}

.security-note > span {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    color: #95e3ff;
    background: rgba(112,212,255,0.1);
    font-weight: 900;
}

.security-note strong {
    display: block;
    margin-bottom: 3px;
    font-size: 13px;
}

.security-note p {
    color: rgba(255,255,255,0.55);
    font-size: 11px;
}

.login-card {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 25px 25px 25px 8px;
    color: var(--ink);
    background: #fff;
    box-shadow: 0 30px 90px rgba(0,0,0,0.24);
}

.login-card__head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 31px 32px 0;
}

.login-card__head h2 {
    margin-bottom: 2px;
    font-size: 25px;
}

.login-card__head p {
    color: var(--ink-soft);
    font-size: 11px;
}

.login-help {
    padding: 0 32px 28px;
    color: var(--ink-soft);
    font-size: 11px;
    text-align: center;
}

.login-help a {
    color: var(--purple-700);
    font-weight: 700;
}

.dashboard-shell {
    min-height: 700px;
    padding-block: 70px 100px;
    background: var(--surface-soft);
}

.dashboard-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.dashboard-head h1 {
    margin-bottom: 10px;
    font-size: clamp(35px, 4vw, 50px);
}

.dashboard-head p {
    color: var(--ink-soft);
}

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

.metric-card {
    display: grid;
    min-height: 155px;
    align-content: space-between;
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: 17px 17px 17px 6px;
    background: #fff;
}

.metric-card > span,
.metric-card small {
    color: var(--ink-soft);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.metric-card strong {
    color: var(--purple-800);
    font-family: "Manrope", sans-serif;
    font-size: 39px;
}

.portal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.portal-grid--two {
    grid-template-columns: repeat(2, 1fr);
}

.portal-card {
    min-height: 240px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 17px 17px 17px 6px;
    background: #fff;
}

.portal-card > span {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 30px;
    color: #7b748a;
    background: #eeecf2;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.portal-card--ready > span {
    color: var(--success);
    background: #e2f5ee;
}

.portal-card h2 {
    margin: 52px 0 10px;
    font-size: 22px;
}

.portal-card p {
    color: var(--ink-soft);
    font-size: 13px;
}

.dashboard-panel {
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: #fff;
}

.dashboard-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    color: #fff;
    background: var(--purple-950);
}

.dashboard-panel__head span {
    color: #a8e2ff;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.dashboard-panel__head h2 {
    margin: 4px 0 0;
    font-size: 23px;
}

.dashboard-panel__head > strong {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 13px;
    background: rgba(255,255,255,0.1);
    font-size: 20px;
}

.assignment-table {
    padding: 10px 30px 22px;
}

.assignment-table__row {
    display: grid;
    grid-template-columns: 0.7fr 1.5fr 0.3fr;
    gap: 20px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
}

.assignment-table__head {
    color: var(--ink-soft);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
}

.assignment-table small {
    color: var(--purple-600);
    font-weight: 800;
}

.student-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 43px;
    border-radius: var(--radius-md);
    color: #fff;
    background:
        radial-gradient(circle at 90% 20%, rgba(78, 180, 255, 0.32), transparent 23%),
        linear-gradient(135deg, var(--purple-950), var(--purple-700));
}

.student-welcome > div > span {
    margin-bottom: 5px;
}

.student-welcome h2 {
    margin-bottom: 5px;
    font-size: 34px;
}

.student-welcome p {
    color: rgba(255,255,255,0.6);
}

.student-welcome__mark {
    display: grid;
    width: 90px;
    height: 90px;
    place-items: center;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 26px 26px 26px 8px;
    background: rgba(255,255,255,0.1);
    font-family: "Manrope", sans-serif;
    font-size: 40px;
    font-weight: 800;
}

.error-page {
    display: grid;
    min-height: 630px;
    place-items: center;
    background: var(--purple-50);
}

.error-page__inner {
    max-width: 680px;
    padding-block: 80px;
    text-align: center;
}

.error-page__inner > span {
    display: block;
    margin-bottom: 5px;
    color: var(--purple-500);
    font-family: "Manrope", sans-serif;
    font-size: 80px;
    font-weight: 800;
    line-height: 1;
}

.error-page h1 {
    margin-bottom: 15px;
    font-size: 41px;
}

.error-page p {
    margin-bottom: 25px;
    color: var(--ink-soft);
}

[data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 600ms ease, transform 600ms ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1060px) {
    .site-nav {
        gap: 0;
    }

    .site-nav > a:not(.button) {
        padding-inline: 8px;
        font-size: 13px;
    }

    .hero__grid {
        grid-template-columns: 1fr 400px;
        gap: 36px;
    }

    .hero-card--classes {
        left: 0;
    }

    .hero-card--values {
        right: 0;
    }

    .journey-grid,
    .story-grid,
    .curriculum-grid,
    .admissions-grid,
    .contact-grid {
        gap: 55px;
    }

    .footer-grid {
        grid-template-columns: 1.4fr repeat(2, 0.8fr);
    }

    .footer-action {
        grid-column: 1 / -1;
        max-width: 480px;
    }

    .expect-grid,
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .expect-grid article:nth-child(3) {
        border-left: 1px solid var(--line);
    }

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

    .content-with-sidebar {
        gap: 30px;
        grid-template-columns: 1fr 320px;
    }
}

@media (max-width: 860px) {
    .topbar__inner p:first-child {
        display: none;
    }

    .topbar__inner {
        justify-content: center;
    }

    .nav-toggle {
        display: block;
    }

    .nav-toggle[aria-expanded="true"] > span:nth-child(2) {
        transform: translateY(6px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] > span:nth-child(3) {
        opacity: 0;
    }

    .nav-toggle[aria-expanded="true"] > span:nth-child(4) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .site-nav {
        position: absolute;
        inset: 100% 0 auto;
        display: grid;
        max-height: 0;
        overflow: hidden;
        border-bottom: 1px solid var(--line);
        background: #fff;
        opacity: 0;
        transition: max-height 240ms ease, opacity 180ms ease;
    }

    .site-nav.is-open {
        max-height: calc(100vh - 70px);
        overflow-y: auto;
        opacity: 1;
    }

    .site-nav > a:not(.button) {
        padding: 17px 24px;
        border-top: 1px solid var(--line);
        font-size: 15px;
    }

    .site-nav > a:not(.button)::after {
        display: none;
    }

    .nav-portal {
        margin: 14px 20px 22px;
    }

    .hero__grid {
        grid-template-columns: 1fr;
        padding-block: 70px 60px;
    }

    .hero-visual {
        width: min(100%, 560px);
        margin-inline: auto;
    }

    .proof-strip__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .proof-strip__grid > div:first-child,
    .proof-strip__grid > div:nth-child(3) {
        border-left: 1px solid var(--line);
    }

    .proof-strip__grid > div {
        border-bottom: 1px solid var(--line);
    }

    .section-heading--split {
        display: grid;
        gap: 20px;
    }

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

    .value-card {
        min-height: 280px;
    }

    .value-icon {
        margin-bottom: 35px;
    }

    .journey-grid {
        grid-template-columns: 1fr;
        gap: 55px;
    }

    .journey-visual {
        width: min(100%, 600px);
        margin-inline: auto;
    }

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

    .cta-panel {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .story-grid,
    .curriculum-grid,
    .admissions-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-copy {
        position: static;
    }

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

    .academic-track {
        grid-template-columns: 1fr;
    }

    .track-connector {
        margin-block: -10px;
    }

    .admission-note {
        grid-template-columns: 70px 1fr;
    }

    .admission-note .button {
        grid-column: 2;
        justify-self: start;
    }

    .content-with-sidebar {
        grid-template-columns: 1fr;
    }

    .calendar-panel {
        position: static;
    }

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

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

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

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

@media (max-width: 620px) {
    .container {
        width: min(calc(100% - 28px), var(--container));
    }

    .site-header__inner {
        min-height: 70px;
    }

    .hero__grid {
        min-height: auto;
        padding-block: 58px 40px;
    }

    .hero h1 {
        font-size: 43px;
    }

    .hero__copy > p {
        font-size: 16px;
    }

    .hero__actions .button {
        width: 100%;
    }

    .hero-visual {
        min-height: 470px;
    }

    .hero-card--main {
        top: 48px;
        right: 0;
        width: 94%;
    }

    .hero-card--classes {
        left: 0;
    }

    .hero-card--values {
        right: 0;
        bottom: 15px;
    }

    .hero-card--float {
        min-width: 195px;
    }

    .hero-card__content {
        padding: 30px 26px 32px;
    }

    .hero-card__content h2 {
        font-size: 30px;
    }

    .proof-strip__grid {
        grid-template-columns: 1fr 1fr;
    }

    .proof-strip__grid > div {
        padding: 17px 14px;
    }

    .section {
        padding-block: 75px;
    }

    .section--compact {
        padding-block: 48px;
    }

    .section-heading {
        margin-bottom: 34px;
    }

    .section-heading h2 {
        font-size: 34px;
    }

    .value-card {
        padding: 28px;
    }

    .journey-visual {
        min-height: 440px;
    }

    .journey-panel {
        inset: 0 12px 40px 0;
        padding: 27px;
        border-radius: 31% 18px 27% 7px;
    }

    .journey-panel p {
        font-size: 17px;
    }

    .journey-panel__badge {
        top: 28px;
        left: 28px;
    }

    .journey-copy h2 {
        font-size: 38px;
    }

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

    .cta-panel {
        padding: 37px 28px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px 20px;
    }

    .footer-brand,
    .footer-action {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        display: grid;
        gap: 5px;
    }

    .page-hero__inner {
        padding-block: 75px 82px;
    }

    .page-hero h1 {
        font-size: 42px;
    }

    .page-hero p {
        font-size: 16px;
    }

    .mission-card {
        min-height: 350px;
        padding: 36px 28px;
    }

    .mission-card h2 {
        font-size: 29px;
    }

    .expect-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .expect-grid article,
    .expect-grid article:nth-child(3) {
        border-left: 1px solid var(--line);
    }

    .inline-cta {
        display: grid;
        padding: 30px 24px;
    }

    .track-card {
        min-height: auto;
        padding: 33px 26px;
    }

    .track-card__head {
        margin-bottom: 32px;
    }

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

    .level-pill {
        min-height: 130px;
        padding: 16px;
    }

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

    .admission-note {
        grid-template-columns: 1fr;
        padding: 30px 24px;
    }

    .admission-note .button {
        grid-column: auto;
        width: 100%;
    }

    .news-row {
        grid-template-columns: 70px 1fr;
        gap: 18px;
    }

    .news-row__date {
        min-height: 74px;
    }

    .contact-form,
    .login-form {
        padding: 25px 22px;
    }

    .form-card__head {
        padding-inline: 22px;
    }

    .form-errors {
        margin-inline: 22px;
    }

    .login-section {
        padding-block: 60px;
    }

    .login-intro h1 {
        font-size: 42px;
    }

    .login-card__head {
        padding-inline: 22px;
    }

    .login-help {
        padding-inline: 22px;
    }

    .dashboard-head {
        display: grid;
        align-items: start;
    }

    .metric-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .metric-card {
        min-height: 135px;
        padding: 20px;
    }

    .student-welcome {
        padding: 30px 24px;
    }

    .student-welcome__mark {
        display: none;
    }

    .assignment-table {
        padding-inline: 18px;
        overflow-x: auto;
    }

    .assignment-table__row {
        min-width: 500px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }

    /* Part C — keep the interaction feedback, drop the movement: buttons and
       cards still change colour / border / shadow on hover, focus and press,
       but no translate. */
    .button:hover,
    .button:active,
    .staff-portal a.staff-card:hover,
    .staff-portal .staff-card--module:hover,
    .staff-portal .staff-metric--link:hover,
    .staff-portal .staff-main button:active,
    .staff-portal .staff-filters button:active,
    .staff-portal .staff-inline-form button:active,
    .staff-portal .staff-topbar .staff-account form button:active,
    .staff-portal .staff-topbar .staff-account__link:active {
        transform: none;
    }
}

@media print {
    .topbar,
    .site-header,
    .site-footer,
    .button,
    .nav-toggle {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }

    .section,
    .page-hero__inner {
        padding-block: 30px;
    }
}

/* Staff portal foundation */
.staff-portal{background:#f6f5fa}.staff-layout{display:grid;min-height:100vh;grid-template-columns:250px minmax(0,1fr)}.staff-sidebar{padding:24px 16px;color:#fff;background:linear-gradient(180deg,#28104e,#3b176d)}.staff-brand{display:flex;align-items:center;gap:11px;padding:8px;color:#fff;text-decoration:none}.staff-brand strong,.staff-brand small{display:block}.staff-brand small,.staff-sidebar__role{color:#cbbced;font-size:10px;font-weight:700;text-transform:uppercase}.staff-sidebar__role{margin:34px 8px 10px;letter-spacing:.08em}.staff-nav{display:grid;gap:4px}.staff-nav a,.staff-nav span{display:flex;justify-content:space-between;min-height:42px;padding:0 12px;border-radius:9px;color:#e9e1f9;font-size:13px;font-weight:700;text-decoration:none}.staff-nav a:hover,.staff-nav a:focus-visible,.staff-nav a[aria-current=page]{color:#fff;background:#ffffff24;outline:0}.staff-nav span{color:#b6a6d6;cursor:not-allowed}.staff-nav span small{font-size:9px}.staff-workspace{display:flex;flex-direction:column;min-width:0}.staff-workspace>.staff-main{flex:1 0 auto}.staff-topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:72px;padding:0 34px;border-bottom:1px solid #e4e0eb;background:#fff}
/* Topbar school identity lockup — same full-logo language as the sidebar (schoolIdentityMark('topbar')):
   a light logo surface, purple school name, muted academic-context line. It shrinks with the viewport
   but is never hidden outright; the name and context each ellipsis rather than overflow. */
.staff-topbar__identity{display:flex;align-items:center;gap:11px;min-width:0}
.staff-topbar__identity>.brand__logo{flex:0 0 auto}
.staff-topbar__identity p{display:grid;min-width:0;margin:0;font-size:12px}
.staff-topbar__identity strong{color:var(--purple-800);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.staff-topbar__context{color:#756f82;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.staff-topbar__context--compact{display:none}
.staff-account small{color:#756f82;font-size:10px}.staff-topbar>.staff-account{flex:0 0 auto}.staff-footer{padding:16px 34px;border-top:1px solid #e4e0eb;background:#fff}.dev-credit{margin:0;color:#756f82;font-size:11px}.dev-credit a{color:var(--purple-700);font-weight:700;text-decoration:none}.dev-credit a:hover,.dev-credit a:focus-visible{text-decoration:underline}.site-footer .dev-credit{color:rgba(255,255,255,.5)}.site-footer .dev-credit a{color:#c6b6ec}.staff-account{display:flex;align-items:center;gap:9px}.staff-account>span,.staff-count{display:grid;place-items:center;color:#fff;background:#6a1b9a;font-weight:800}.staff-account>span{width:33px;height:33px;border-radius:50%;font-size:12px}.staff-account__id div{display:grid}.staff-account strong{font-size:12px}.staff-account button{margin-left:10px;border:0;color:#5b21b6;background:transparent;font:inherit;font-size:11px;font-weight:800;cursor:pointer}.staff-menu-toggle{display:none}.staff-main{width:min(100% - 56px,1220px);margin:0 auto;padding:42px 0 64px}.staff-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:28px;margin-bottom:28px}.staff-page-head h1{margin:3px 0 8px;font-size:clamp(30px,4vw,45px)}.staff-page-head>div>p:last-child,.staff-card p,.staff-empty-state p{color:#706a7b;font-size:13px}.staff-eyebrow{margin:0;color:#6a1b9a;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.academic-context{display:grid;min-width:200px;padding:17px 18px;border:1px solid #e4e0eb;border-radius:13px;background:#fff}.academic-context span,.staff-metric span,.staff-metric small{color:#756f82;font-size:9px;font-weight:800;text-transform:uppercase}.academic-context strong{margin-top:6px;color:#3b176d;font-size:15px}.academic-context small{color:#1767b0;font-weight:700}.academic-context--empty strong,.academic-context--empty small{color:#706a7b}.staff-flash,.staff-alert{display:flex;gap:10px;margin:0 34px;padding:13px 17px;border-radius:0 0 10px 10px;font-size:13px}.staff-flash--success{color:#126b4a;background:#e3f6ed}.staff-flash--error,.staff-alert{color:#a23b35;background:#fff0ee}.staff-alert{display:grid;margin:0 0 24px;border:1px solid #f3c3bf}.staff-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.staff-metric,.staff-card,.staff-table-card{border:1px solid #e4e0eb;border-radius:14px;background:#fff;box-shadow:0 6px 20px #29144c09}.staff-metric{display:grid;min-height:142px;align-content:space-between;padding:20px}.staff-metric strong{color:#4c167a;font-family:Manrope,sans-serif;font-size:35px}.staff-card-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.staff-card-grid--two{grid-template-columns:repeat(2,1fr);margin-top:18px}.staff-card{min-height:220px;padding:25px}.staff-card h2{margin:45px 0 9px;font-size:21px}.staff-badge{display:inline-flex;padding:5px 8px;border-radius:20px;color:#706a7b;background:#efedf3;font-size:9px;font-weight:800;text-transform:uppercase}.staff-badge--ready{color:#13734f;background:#e2f5ec}.staff-badge--blue{color:#1767b0;background:#e8f3ff}.staff-table-card{overflow:hidden}.staff-card-head{display:flex;align-items:center;justify-content:space-between;padding:23px 26px;border-bottom:1px solid #e4e0eb}.staff-card-head h2{margin:4px 0 0;font-size:22px}.staff-count{width:39px;height:39px;border-radius:10px}.staff-table-wrap{overflow-x:auto}.staff-table{width:100%;border-collapse:collapse;min-width:520px}.staff-table th,.staff-table td{padding:16px 26px;border-bottom:1px solid #eeeaf3;text-align:left;font-size:13px}.staff-table thead th{color:#756f82;background:#faf9fc;font-size:10px;text-transform:uppercase}.staff-empty-state{padding:48px 26px;text-align:center}.staff-empty-state strong{display:block;font-size:16px}@media(max-width:900px){.staff-layout{grid-template-columns:1fr}.staff-sidebar{position:fixed;z-index:20;inset:0 auto 0 0;width:min(280px,85vw);transform:translateX(-105%);transition:transform .2s ease;box-shadow:20px 0 40px #0003}.staff-sidebar.is-open{transform:translateX(0)}.staff-menu-toggle{display:block;border:1px solid #ddd5e7;border-radius:8px;padding:8px 10px;color:#4c167a;background:#fff;font:inherit;font-size:11px;font-weight:800}.staff-main{width:min(100% - 36px,1220px)}.staff-topbar{padding:0 18px}.staff-topbar__identity{gap:9px}.staff-topbar__identity .brand__logo--topbar{flex-basis:34px;width:34px;height:34px}.staff-topbar__identity strong{font-size:11px}.staff-metrics{grid-template-columns:repeat(2,1fr)}.staff-card-grid{grid-template-columns:1fr}}@media(max-width:600px){.staff-account__id div{display:none}.staff-account button{margin-left:2px}.staff-topbar{min-height:64px}.staff-topbar__identity{gap:8px}.staff-topbar__identity .brand__logo--topbar{flex-basis:30px;width:30px;height:30px;padding:2px}.staff-topbar__context--full{display:none}.staff-topbar__context--compact{display:block}.staff-page-head{display:grid;align-items:start}.academic-context{width:100%}.staff-main{padding-top:28px}.staff-metrics{gap:10px}.staff-metric{min-height:120px;padding:16px}.staff-metric strong{font-size:29px}.staff-card-head{padding:19px}.staff-table th,.staff-table td{padding:14px 18px}.staff-flash{margin:0 18px}}
/* Smallest phones: keep logo + full institution name (priority 1 & 2) — let the name wrap
   rather than truncate, and drop the secondary context line before hiding any identity. */
@media(max-width:400px){.staff-topbar{padding-inline:12px}.staff-topbar__identity{gap:7px}.staff-topbar__identity .brand__logo--topbar{flex-basis:28px;width:28px;height:28px}.staff-topbar__identity strong{font-size:10px;line-height:1.2;white-space:normal}.staff-topbar__context{display:none}}
.staff-subnav,.staff-pagination{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}.staff-subnav a,.staff-pagination a{padding:9px 12px;border:1px solid #ddd5e7;border-radius:9px;color:#4c167a;background:#fff;font-size:12px;font-weight:800;text-decoration:none}.staff-subnav a[aria-current=page],.staff-pagination a[aria-current=page]{color:#fff;background:#4c167a}.staff-form{display:grid;gap:18px;padding:26px}.staff-form label{display:grid;gap:7px;color:#3c3748;font-size:12px;font-weight:800}.staff-form input,.staff-form select,.staff-filters input,.staff-filters select{min-height:44px;padding:0 12px;border:1px solid #dcd8e4;border-radius:9px;background:#fff}.staff-form-actions,.staff-filters{display:flex;align-items:end;flex-wrap:wrap;gap:10px}.staff-inline-form{display:inline}.staff-inline-form button,.staff-filters button{border:0;color:#5b21b6;background:transparent;font:inherit;font-size:12px;font-weight:800;cursor:pointer}.staff-pagination{padding:18px 24px;margin:0;border-top:1px solid #eeeaf3}

.staff-relationship-filters{margin-bottom:18px}.staff-form--inline{grid-template-columns:repeat(3,minmax(0,1fr)) auto;align-items:end}@media(max-width:900px){.staff-form--inline{grid-template-columns:1fr 1fr}}@media(max-width:600px){.staff-form--inline{grid-template-columns:1fr}}
.staff-form textarea{width:100%;padding:12px;border:1px solid #dcd8e4;border-radius:9px;background:#fff;resize:vertical;font:inherit}.staff-form input:focus,.staff-form select:focus,.staff-form textarea:focus{border-color:#6a1b9a;outline:3px solid #6a1b9a18}.staff-form label small,.staff-table-note{display:block;margin-top:4px;color:#756f82;font-size:10px;font-weight:500}.staff-detail-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;padding:26px;margin:0}.staff-detail-list div,.staff-message{padding:18px;border:1px solid #eeeaf3;border-radius:10px;background:#faf9fc}.staff-detail-list dt{color:#756f82;font-size:10px;font-weight:800;text-transform:uppercase}.staff-detail-list dd{margin:6px 0 0;overflow-wrap:anywhere;font-size:13px}.staff-message{margin:0 26px}.staff-message h3{margin-top:0}.staff-message p{margin-bottom:0;white-space:normal;overflow-wrap:anywhere}.staff-form--status{grid-template-columns:minmax(180px,320px) auto;align-items:end}@media(max-width:800px){.staff-detail-list{grid-template-columns:1fr 1fr}.staff-form--status{grid-template-columns:1fr}}@media(max-width:500px){.staff-detail-list{grid-template-columns:1fr}}
.staff-list-line{display:block}.staff-list-line+.staff-list-line{margin-top:4px}.teacher-entry-card,.teacher-profile-metrics{margin-top:18px}.teacher-profile-metrics{grid-template-columns:repeat(3,1fr)}@media(max-width:900px){.teacher-profile-metrics{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){.teacher-profile-metrics{grid-template-columns:1fr}}
.attendance-register-head{gap:18px}.attendance-register-actions{padding:20px 26px}.attendance-register-actions span{color:#706a7b;font-size:11px}.staff-table select{min-height:36px;padding:0 8px;border:1px solid #dcd8e4;border-radius:8px;background:#fff}.teacher-week{display:grid;gap:18px}.teacher-day{overflow:hidden}@media(max-width:700px){.attendance-register-head{align-items:flex-start;flex-direction:column}.attendance-register-head .staff-filters{width:100%}.attendance-register-actions{align-items:flex-start;flex-direction:column}}
.assignment-detail-actions{padding:20px 26px}
.result-status-reason{margin:20px 26px;padding:16px;border-left:4px solid #6a1b9a;background:#f7f3fb}.result-status-reason p{margin:5px 0 0}.result-submit-form{display:flex;align-items:center;flex-wrap:wrap;gap:10px;padding:20px 26px;border-top:1px solid #eeeaf3}.result-submit-form span{color:#706a7b;font-size:11px}.result-review-actions{display:grid;gap:12px;padding:22px 26px;border-top:1px solid #eeeaf3}.result-review-actions .staff-form{padding:0}.result-history{margin-top:18px}
.result-entry-head{gap:18px}.result-score-limits{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.result-score-limits span{padding:8px 10px;border-radius:8px;color:#706a7b;background:#f4f1f8;font-size:11px}.result-score-limits strong{color:#3b176d}.result-entry-table{min-width:820px}.result-entry-table input{width:86px;min-height:38px;padding:0 9px;border:1px solid #dcd8e4;border-radius:8px;font:inherit}.result-entry-table input:focus{border-color:#6a1b9a;outline:3px solid #6a1b9a18}.result-unentered{color:#756f82;font-size:10px}@media(max-width:700px){.result-entry-head{align-items:flex-start;flex-direction:column}.result-score-limits{justify-content:flex-start}}

.report-card-preview{max-width:900px;margin:0 auto;border:1px solid #dcd8e4;border-radius:14px;background:#fff;box-shadow:0 8px 30px #29144c12;overflow:hidden}
.report-card-heading{padding:34px 38px 28px;border-bottom:4px solid #6a1b9a;text-align:center}.report-card-heading h1{margin:5px 0 4px;font-size:clamp(28px,4vw,40px)}.report-card-heading p:last-child{margin:0;color:#706a7b}
.report-card-identity{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;margin:0;border-bottom:1px solid #e4e0eb}.report-card-identity div{padding:18px;border-right:1px solid #eeeaf3}.report-card-identity div:last-child{border-right:0}.report-card-identity dt{color:#756f82;font-size:9px;font-weight:800;text-transform:uppercase}.report-card-identity dd{margin:6px 0 0;font-size:12px;font-weight:800;overflow-wrap:anywhere}
.report-card-results h2{margin:0;padding:23px 26px;border-bottom:1px solid #e4e0eb;font-size:21px}.report-card-results .staff-table th,.report-card-results .staff-table td{padding-block:14px}.report-card-note{padding:18px 26px;color:#706a7b;background:#faf9fc;font-size:10px}.report-card-note p{margin:0}
@media(max-width:760px){.report-card-identity{grid-template-columns:1fr 1fr}.report-card-identity div{border-bottom:1px solid #eeeaf3}.report-card-identity div:last-child{grid-column:1/-1}.report-card-heading{padding-inline:22px}}
@media print{.staff-sidebar,.staff-topbar,.staff-flash,.staff-footer,.report-card-controls{display:none!important}.staff-layout,.staff-workspace{display:block}.staff-main{width:100%;padding:0}.report-card-preview{max-width:none;border:0;border-radius:0;box-shadow:none}.report-card-heading{padding-top:0}.report-card-results .staff-table-wrap{overflow:visible}.report-card-results .staff-table{min-width:0}.report-card-results tr{break-inside:avoid}.report-card-note{background:#fff}}

.student-portal .staff-sidebar{background:linear-gradient(180deg,#28104e,#274c91)}.student-portal .staff-nav a[aria-current=page]{background:#ffffff2e}.student-page-head{align-items:center}.student-page-head h1{max-width:760px}.student-metrics{grid-template-columns:repeat(3,1fr)}.student-metric--class strong{font-size:24px;line-height:1.2;overflow-wrap:anywhere}.student-dashboard-grid{margin-top:0}.student-summary-card{min-height:245px}.student-summary-card h2{margin-top:34px}.student-summary-card>a{display:inline-block;margin:10px 12px 0 0;color:#5b21b6;font-size:12px;font-weight:800}.student-profile-list{grid-template-columns:repeat(3,minmax(0,1fr))}.student-readonly-note{margin:0;padding:18px 26px;border-top:1px solid #eeeaf3;color:#706a7b;background:#faf9fc;font-size:11px}
.student-assignment-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.student-assignment-card{padding:24px;border:1px solid #e4e0eb;border-radius:14px;background:#fff;box-shadow:0 6px 20px #29144c09}.student-assignment-card>div{display:flex;flex-wrap:wrap;gap:7px}.student-assignment-card h2{margin:18px 0 7px;font-size:20px}.student-assignment-card h2 a,.student-assignment-card>a{color:#4c167a;text-decoration:none}.student-assignment-card h2 a:hover,.student-assignment-card>a:hover{text-decoration:underline}.student-assignment-card p{color:#706a7b;font-size:12px}.student-assignment-card .student-assignment-meta{color:#1767b0;font-weight:800}.student-assignment-card dl{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}.student-assignment-card dt{color:#756f82;font-size:9px;font-weight:800;text-transform:uppercase}.student-assignment-card dd{margin:4px 0 0;font-size:11px}.student-assignment-card>a{font-size:12px;font-weight:800}.student-badge--past{color:#9b4038;background:#fff0ee}.student-assignment-detail .staff-message{margin-bottom:24px}.student-week{margin-top:0}
@media(max-width:850px){.student-profile-list{grid-template-columns:1fr 1fr}.student-assignment-list{grid-template-columns:1fr}}@media(max-width:700px){.student-metrics{grid-template-columns:1fr}.student-profile-list{grid-template-columns:1fr}.student-assignment-card{padding:19px}.student-assignment-card dl{grid-template-columns:1fr}.student-page-head{align-items:start}}
.student-record-filters{grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) auto}.student-results .staff-card-head p{margin:5px 0 0;color:#706a7b;font-size:12px}.student-results .staff-table,.student-report-list .staff-table{min-width:680px}.student-record-actions{display:flex;flex-wrap:wrap;gap:10px}.student-record-actions a{font-weight:800;text-decoration:none}.student-record-actions a:hover{text-decoration:underline}.student-report-list .staff-empty-state{min-height:220px}
@media(max-width:700px){.student-record-filters{grid-template-columns:1fr}.student-record-actions{min-width:150px}.student-portal .report-card-preview{border-radius:10px}.student-portal .report-card-heading{padding-inline:20px}}

/* CBT authoring */
.cbt-author-form fieldset{display:grid;gap:10px;margin:0;padding:18px;border:1px solid #e4e0eb;border-radius:10px}.cbt-author-form legend{padding:0 6px;color:#3c3748;font-size:12px;font-weight:800}.cbt-author-form fieldset>p{margin:0 0 4px;color:#706a7b;font-size:11px}.cbt-option-row{grid-template-columns:auto auto minmax(0,1fr);align-items:center}.cbt-option-row>input[type=radio]{min-height:auto}.cbt-option-letter{font-weight:800;color:#6a1b9a}.cbt-inline-radio{display:flex;align-items:center;gap:8px;font-size:12px}.cbt-inline-radio input{width:16px;height:16px;min-height:auto}.cbt-inline-radio span{color:#706a7b;font-weight:400}
.cbt-passage-fieldset [data-passage-panel][hidden],.cbt-type-fieldset [data-cbt-type-panel][hidden]{display:none}
.cbt-materials-panel{margin-top:16px}.cbt-material-list{display:grid;gap:14px;margin:0 0 16px;padding:0;list-style:none}.cbt-material-list>li{padding:14px;border:1px solid #e4e0eb;border-radius:10px}.cbt-material-thumb,.cbt-material-staged img,.student-cbt-material-image{display:block;max-width:100%;height:auto;margin:8px 0;border:1px solid #e4e0eb;border-radius:8px}.cbt-material-thumb{max-height:180px;width:auto}.student-cbt-material-image{max-height:360px}
.cbt-material-table-wrap{overflow-x:auto;margin:8px 0}.cbt-material-table{border-collapse:collapse;font-size:12px}.cbt-material-table th,.cbt-material-table td{border:1px solid #d9d4e2;padding:5px 9px;text-align:left}.cbt-material-table th{background:#f6f3fb;font-weight:800}
.cbt-table-editor-grid{border-collapse:collapse;margin:8px 0}.cbt-table-editor-grid td{border:1px solid #d9d4e2;padding:2px}.cbt-table-editor-grid input{width:110px;min-height:34px;border:0;padding:4px 6px}.cbt-table-editor-controls{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:6px}.cbt-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.cbt-checkbox{grid-template-columns:auto 1fr!important;align-items:center;justify-content:start}.cbt-checkbox input{min-height:auto;width:18px;height:18px}.cbt-readiness{margin-top:18px;padding:24px 26px}.cbt-readiness h2{margin:5px 0 12px}.cbt-readiness ul{margin:0;padding-left:20px;color:#a23b35;font-size:12px}.cbt-builder-list{display:grid;gap:0;margin:0;padding:0;list-style:none;counter-reset:cbt-question}.cbt-builder-list>li{counter-increment:cbt-question;border-bottom:1px solid #eeeaf3}.cbt-builder-list article{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:20px;padding:24px 26px}.cbt-builder-question h3{margin:12px 0;font-size:16px}.cbt-builder-question h3:before{content:counter(cbt-question) '. ';color:#6a1b9a}.cbt-builder-question ol{display:grid;gap:7px;margin:0;padding-left:24px;color:#706a7b;font-size:12px}.cbt-correct-option{color:#13734f;font-weight:800}.cbt-builder-actions{display:flex;align-items:start;gap:7px}.cbt-builder-actions button,.cbt-eligible-list button{border:1px solid #ddd5e7;border-radius:8px;padding:7px 9px;color:#5b21b6;background:#fff;font:inherit;font-size:10px;font-weight:800;cursor:pointer}.cbt-eligible-list{display:grid}.cbt-eligible-list article{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 26px;border-top:1px solid #eeeaf3}.cbt-eligible-list p{margin:8px 0 0;font-size:12px}.cbt-eligible-list .button{min-width:70px}.cbt-eligible-list+.staff-empty-state{border-top:1px solid #eeeaf3}
@media(max-width:700px){.cbt-form-grid{grid-template-columns:1fr}.cbt-builder-list article{grid-template-columns:1fr;padding:20px}.cbt-builder-actions{flex-wrap:wrap}.cbt-eligible-list article{align-items:flex-start;padding:16px 20px}.cbt-author-form fieldset{padding:14px}}
/* Student CBT runtime */
.student-cbt-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.student-cbt-card{padding:24px;border:1px solid #e4e0eb;border-radius:14px;background:#fff;box-shadow:0 6px 20px #29144c09}.student-cbt-card__top{display:flex;flex-wrap:wrap;gap:7px}.student-cbt-card h2{margin:18px 0 5px;font-size:21px}.student-cbt-card>p{margin:0;color:#706a7b;font-size:12px}.student-cbt-card dl{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}.student-cbt-card dt{color:#756f82;font-size:9px;font-weight:800;text-transform:uppercase}.student-cbt-card dd{margin:4px 0 0;font-size:11px}.student-cbt-detail .staff-message{margin-bottom:20px}.student-cbt-start{display:flex;align-items:center;padding:22px 26px}.student-cbt-start strong{color:#706a7b;font-size:12px}.student-cbt-runtime{overflow:hidden;border:1px solid #e4e0eb;border-radius:14px;background:#fff;box-shadow:0 8px 28px #29144c10}.student-cbt-runtime__header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 26px;border-bottom:1px solid #e4e0eb}.student-cbt-runtime__header h2{margin:5px 0 8px}.student-cbt-runtime__header p:last-child{margin:0;color:#706a7b;font-size:11px}.student-cbt-runtime [data-cbt-retry]{margin-left:5px;border:0;color:#5b21b6;background:transparent;font:inherit;font-weight:800;cursor:pointer}.student-cbt-timer{display:grid;min-width:170px;padding:14px 18px;border-radius:11px;color:#fff;background:#3b176d;text-align:center}.student-cbt-timer span,.student-cbt-timer small{font-size:9px;font-weight:800;text-transform:uppercase}.student-cbt-timer strong{margin:3px 0;font-family:Manrope,sans-serif;font-size:28px}.student-cbt-question-nav{display:flex;gap:8px;overflow-x:auto;padding:14px 26px;border-bottom:1px solid #eeeaf3;background:#faf9fc}.student-cbt-question-nav a{display:grid;flex:0 0 38px;height:38px;place-items:center;border:1px solid #dcd8e4;border-radius:9px;color:#4c167a;background:#fff;font-size:11px;font-weight:800;text-decoration:none}.student-cbt-question-nav a.is-answered{border-color:#78caaa;color:#126b4a;background:#e3f6ed}.student-cbt-questions{display:grid;gap:18px;padding:26px}.student-cbt-question{scroll-margin-top:20px;margin:0;padding:22px;border:1px solid #e4e0eb;border-radius:12px}.student-cbt-question legend{max-width:100%;padding:0 8px;font-size:15px;font-weight:800}.student-cbt-question legend span{display:block;margin-bottom:6px;color:#6a1b9a;font-size:9px;text-transform:uppercase}.student-cbt-options{display:grid;gap:10px;margin-top:10px}.student-cbt-options label{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:12px;min-height:52px;padding:10px 14px;border:1px solid #e4e0eb;border-radius:10px;cursor:pointer}.student-cbt-options label:has(input:checked){border-color:#6a1b9a;background:#f7f3fb}.student-cbt-options input{width:19px;height:19px}.student-cbt-options span{font-size:13px}.student-cbt-submit{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 26px;border-top:1px solid #e4e0eb;background:#faf9fc}.student-cbt-submit p{margin:0;color:#706a7b;font-size:11px}.student-cbt-final .student-readonly-note{margin-top:0}
/* Omega Phase L — one active question at a time + passage / shared material. Progressive:
   without .is-enhanced every .student-cbt-stage is shown (no-JS fallback). */
.student-cbt-question-nav a.is-current{border-color:#6a1b9a;color:#fff;background:#6a1b9a}
.student-cbt-stage{display:grid;gap:16px}
.student-cbt-stage[hidden]{display:none}
.student-cbt-runtime.is-enhanced .student-cbt-stage--grouped{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);align-items:start}
.student-cbt-passage{align-self:stretch}
.student-cbt-passage__inner{position:sticky;top:16px;max-height:70vh;overflow:auto;padding:18px 20px;border:1px solid #e4e0eb;border-left:4px solid #8250df;border-radius:12px;background:#faf7fe}
.student-cbt-passage__body{white-space:pre-wrap;font-size:13px;line-height:1.6}
.student-cbt-passage__toggle{margin-bottom:8px}
.student-cbt-option-letter{font-weight:800;color:#6a1b9a}
.student-cbt-pager{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 26px;border-top:1px solid #eeeaf3;background:#faf9fc}
.student-cbt-pager span{font-size:12px;font-weight:800;color:#4c167a}
.student-cbt-pager .button[disabled]{opacity:.45;pointer-events:none}
@media(max-width:760px){.student-cbt-runtime.is-enhanced .student-cbt-stage--grouped{grid-template-columns:1fr}.student-cbt-passage__inner{position:static;max-height:none}}
@media(max-width:760px){.student-cbt-list{grid-template-columns:1fr}.student-cbt-runtime__header{align-items:stretch;flex-direction:column}.student-cbt-timer{width:100%}.student-cbt-questions{padding:18px}.student-cbt-question{padding:17px}.student-cbt-submit{align-items:stretch;flex-direction:column}.student-cbt-submit .button{width:100%}.student-cbt-card{padding:20px}}@media(max-width:480px){.student-cbt-card dl{grid-template-columns:1fr}.student-cbt-question-nav{padding-inline:18px}.student-cbt-options label{min-height:58px}.student-cbt-runtime__header{padding:20px}}
/* CBT grading and results */
.cbt-integration-notice{margin:0 0 18px}.cbt-result-filters{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));align-items:end}.cbt-results-table{min-width:980px}.cbt-result-score{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:0 26px 26px}.cbt-result-score>div{display:grid;gap:7px;padding:22px;border:1px solid #e4e0eb;border-radius:12px;background:#faf9fc}.cbt-result-score span{color:#756f82;font-size:9px;font-weight:800;text-transform:uppercase}.cbt-result-score strong{color:#4c167a;font-family:Manrope,sans-serif;font-size:28px}.student-readonly-note a{color:#5b21b6;font-weight:800}@media(max-width:900px){.cbt-result-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.cbt-result-filters,.cbt-result-score{grid-template-columns:1fr}}

/* Stage 13A settings and configurable school logo */
/* Prime Peculiar College identity logo surface — see schoolIdentityMark(). The official
   full logo ships on a white background, so it always sits on its own clean light surface:
   contained (object-fit), aspect-ratio preserved, never cropped or stretched, a subtle
   purple-tinted hairline and a controlled radius. Only the size varies by context. */
.brand__logo{display:grid;flex:0 0 48px;width:48px;height:48px;place-items:center;box-sizing:border-box;padding:5px;overflow:hidden;border:1px solid var(--panel-border);border-radius:12px;background:#fff}.brand__logo img{display:block;width:100%;height:100%;object-fit:contain}.brand__logo--auth{flex-basis:64px;width:64px;height:64px;padding:8px;border-radius:15px}.brand__logo--compact{flex-basis:34px;width:34px;height:34px;padding:3px;border-radius:9px}.brand__logo--topbar{flex-basis:38px;width:38px;height:38px;padding:3px;border-radius:9px}.staff-brand .brand__logo,.staff-brand .brand__logo--sidebar{flex-basis:40px;width:40px;height:40px;padding:4px;border-radius:9px}@media(max-width:600px){.brand__logo--auth{flex-basis:52px;width:52px;height:52px}}.staff-brand>span:last-child{min-width:0}.staff-brand strong{max-width:155px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.brand__copy{min-width:0}.brand__copy strong{max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.brand__copy small{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.settings-subnav{position:sticky;z-index:2;top:8px}.settings-section{margin-bottom:20px;scroll-margin-top:80px}.settings-form+.settings-form{border-top:1px solid #eeeaf3}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.settings-logo-preview{display:block;width:64px;height:64px;object-fit:contain;border:1px solid #e4e0eb;border-radius:12px;background:#fff}.settings-result-form .staff-form-actions span{color:#706a7b;font-size:11px}
.grade-band-editor{margin:0;padding:0;border:0}.grade-band-editor legend{font-weight:800;font-size:13px}.grade-band-table input{width:100%}.grade-band-table td:last-child{width:1%;white-space:nowrap}.grade-band-advanced{margin:10px 0}.grade-band-advanced summary{cursor:pointer;color:#5b21b6;font-size:11px;font-weight:800}.grade-band-hint{margin:8px 0 0;color:#b3261e;font-size:11px}
.settings-boundary{margin:0}.settings-boundary p{line-height:1.6}@media(max-width:700px){.settings-grid{grid-template-columns:1fr}.settings-subnav{position:static}.brand__copy strong{max-width:170px}.brand__copy small{max-width:180px}}

.staff-nav__badge{display:grid!important;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;color:#28104e!important;background:#fff;font-size:9px!important}.notification-page-head form{flex:0 0 auto}.notification-list{display:grid;gap:12px}.notification-item{padding:22px 24px;border:1px solid #e4e0eb;border-radius:14px;background:#fff;box-shadow:0 6px 20px #29144c09}.notification-item--unread{border-left:4px solid #1e88e5;background:#f8fbff}.notification-item>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px}.notification-item time,.notification-detail time{color:#756f82;font-size:11px}.notification-item h2{margin:14px 0 7px;font-size:19px}.notification-item h2 a{color:#3b176d;text-decoration:none}.notification-item h2 a:hover,.notification-item h2 a:focus-visible{text-decoration:underline}.notification-item p,.notification-detail__body>p{color:#5f5969;font-size:13px;line-height:1.65}.notification-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:18px}.notification-actions form{display:inline-flex}.notification-actions>a,.notification-actions form:not(:has(.button)) button{border:0;padding:0;color:#5b21b6;background:transparent;font:inherit;font-size:12px;font-weight:800;text-decoration:none;cursor:pointer}.notification-detail__body{padding:26px}.notification-detail__body>p{margin:0 0 16px;font-size:15px}.notification-list+.staff-pagination{margin-top:18px;border:1px solid #eeeaf3;border-radius:12px;background:#fff}@media(max-width:600px){.notification-page-head form{width:100%}.notification-page-head form .button{width:100%}.notification-item{padding:19px}.notification-item>div:first-child{align-items:flex-start}.notification-detail__body{padding:20px}.notification-actions{align-items:stretch}.notification-actions form:has(.button){width:100%}.notification-actions .button{width:100%}}
/* Stage 5B.6 — canonical avatar badge + dashboard module cards */
.avatar-badge{display:grid;place-items:center;flex-shrink:0;width:33px;height:33px;border-radius:50%;overflow:hidden;color:#fff;background:#6a1b9a;font-weight:800;font-size:12px;line-height:1}
.avatar-badge--photo{background:#efedf3}
.avatar-badge img{width:100%;height:100%;object-fit:cover;display:block}
.avatar-badge--identity{width:60px;height:60px;font-size:20px}
.staff-account__id{display:flex;align-items:center;gap:9px;color:inherit;text-decoration:none}
.staff-account__id:hover strong,.staff-account__id:focus-visible strong{text-decoration:underline}
.staff-page-head__identity{display:flex;align-items:center;gap:16px}
.staff-card-grid--modules{grid-template-columns:repeat(auto-fill,minmax(216px,1fr))}
.staff-card--module{display:flex;flex-direction:column;gap:7px;min-height:0;padding:20px 22px;color:inherit;text-decoration:none;transition:box-shadow .15s ease,transform .15s ease}
.staff-card--module h2{margin:0;font-size:17px}
.staff-card--module p{margin:0}
.staff-card--module:hover,.staff-card--module:focus-visible{outline:0;transform:translateY(-2px);box-shadow:0 10px 26px #29144c1f}
@media(max-width:600px){.staff-page-head__identity{gap:12px}.avatar-badge--identity{width:48px;height:48px;font-size:16px}}

/* Stage 5B.6C — Change password link in the authenticated staff account menu */
.staff-account__link{margin-left:6px;color:#5b21b6;font:inherit;font-size:11px;font-weight:800;text-decoration:none;white-space:nowrap}
.staff-account__link:hover,.staff-account__link:focus-visible{text-decoration:underline;outline:0}
@media(max-width:600px){.staff-account__link{margin-left:2px}}

/* ============================================================================
   Stage 5B.6E - Staff Portal modern purple card & form visual system.
   Central, class-based. Retains the Prime Peculiar purple identity; adds a
   refined (not heavy) purple border to meaningful content groups, consistent
   white / very-light-lilac surfaces, and one form treatment. Scoped to the
   Staff Portal shell (.staff-portal / .staff-main) so public site CSS is
   untouched.
   ========================================================================= */

/* ---- Canonical panel primitives ---------------------------------------- */
.staff-panel,
.staff-portal .staff-table-card,
.staff-portal .staff-card,
.staff-portal .staff-metric {
    border: 1px solid var(--panel-border);
    border-radius: var(--panel-radius);
    background: var(--panel-surface);
    box-shadow: var(--panel-shadow);
}
.staff-panel--soft { background: var(--panel-surface-soft); }
.staff-panel__header,
.staff-portal .staff-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--panel-border);
}
.staff-panel__header h2 { margin: 0; font-size: 20px; }
.staff-panel__body { padding: 24px; }

.staff-portal a.staff-card,
.staff-portal .staff-card--module {
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.staff-portal a.staff-card:hover,
.staff-portal .staff-card--module:hover,
.staff-portal a.staff-card:focus-visible,
.staff-portal .staff-card--module:focus-visible {
    border-color: var(--panel-border-strong);
    box-shadow: var(--panel-shadow-hover);
}

/* ---- Page heading block ---------------------------------------------------- */
.staff-portal .staff-page-head { align-items: flex-start; }
.staff-portal .staff-page-head h1 { font-size: clamp(26px, 3.4vw, 38px); color: var(--ink); }
.staff-portal .staff-eyebrow { color: var(--purple-700); }

/* ---- Identity / info cards (Profile is the reference implementation) ----- */
.staff-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 20px;
    padding: 0;
}
.staff-info-card,
.staff-data-field {
    display: grid;
    gap: 6px;
    padding: 16px 18px;
    border: 1px solid var(--panel-border);
    border-radius: var(--panel-radius-sm);
    background: var(--panel-surface-soft);
}
.staff-info-card dt,
.staff-info-card .staff-info-card__label,
.staff-data-field__label {
    margin: 0;
    color: var(--ink-soft);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.staff-info-card dd,
.staff-info-card .staff-info-card__value,
.staff-data-field__value {
    margin: 0;
    color: var(--ink);
    font-size: 16px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

/* ---- Form sections (fieldsets read as cards, even with one field) -------- */
.staff-portal .contact-fieldset,
.staff-form-section {
    margin: 0 0 18px;
    padding: 20px 22px;
    border: 1px solid var(--panel-border);
    border-radius: var(--panel-radius-sm);
    background: var(--panel-surface);
}
.staff-portal .contact-fieldset > legend,
.staff-form-section > legend,
.staff-form-section > h3 {
    padding: 0 6px;
    margin-left: -6px;
    color: var(--purple-800);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* ---- One form treatment: inputs / selects / textareas / file ------------ */
.staff-main .contact-form,
.staff-main .staff-form { display: grid; gap: 16px; }
.staff-main .contact-form label,
.staff-main .staff-form label,
.staff-form-section label {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
}
.staff-main .contact-form input:not([type="checkbox"]):not([type="radio"]),
.staff-main .contact-form select,
.staff-main .contact-form textarea,
.staff-main .staff-form input:not([type="checkbox"]):not([type="radio"]),
.staff-main .staff-form select,
.staff-main .staff-form textarea,
.staff-main .staff-filters input,
.staff-main .staff-filters select,
.staff-form-section input:not([type="checkbox"]):not([type="radio"]),
.staff-form-section select,
.staff-form-section textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px 13px;
    border: 1px solid var(--field-border);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
}
.staff-main .contact-form textarea,
.staff-main .staff-form textarea,
.staff-form-section textarea { min-height: 96px; resize: vertical; line-height: 1.55; }
.staff-main .contact-form input[type="file"],
.staff-form-section input[type="file"] { padding: 9px 12px; background: var(--panel-surface-soft); }
.staff-main .contact-form input:focus-visible,
.staff-main .contact-form select:focus-visible,
.staff-main .contact-form textarea:focus-visible,
.staff-main .staff-form input:focus-visible,
.staff-main .staff-form select:focus-visible,
.staff-main .staff-form textarea:focus-visible,
.staff-main .staff-filters input:focus-visible,
.staff-main .staff-filters select:focus-visible,
.staff-form-section input:focus-visible,
.staff-form-section select:focus-visible,
.staff-form-section textarea:focus-visible {
    outline: none;
    border-color: var(--purple-600);
    box-shadow: 0 0 0 3px var(--field-focus-ring);
}
.staff-main .contact-form input[readonly],
.staff-main .contact-form input:disabled,
.staff-main .staff-form input[readonly],
.staff-form-section input[readonly] {
    background: var(--surface-soft);
    color: var(--ink-soft);
    cursor: not-allowed;
}
.staff-main .contact-form input[aria-invalid="true"],
.staff-form-section input[aria-invalid="true"] {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.14);
}
.staff-portal .checkbox-label,
.staff-portal label.checkbox-label {
    grid-auto-flow: column;
    justify-content: start;
    align-items: center;
    gap: 9px;
    font-weight: 500;
}

.staff-portal .staff-hint,
.staff-main .contact-form .staff-hint {
    margin: 2px 0 0;
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.5;
}
.staff-portal .profile-avatar-preview { margin: 0 0 12px; }
.staff-portal .profile-avatar-preview img,
.staff-info-card__value img {
    border-radius: 12px;
    border: 1px solid var(--panel-border);
    object-fit: cover;
}

/* ---- Name / primary-value emphasis in tables --------------------------- */
.staff-portal .staff-table tbody th { font-weight: 700; color: var(--ink); }
.staff-portal .staff-table tbody td { color: var(--ink-soft); }
.staff-portal .staff-table tbody tr:hover { background: var(--panel-surface-soft); }
.staff-portal .staff-table th,
.staff-portal .staff-table td { border-bottom: 1px solid var(--panel-border); }
.staff-portal .staff-table thead th { background: var(--panel-surface-soft); color: var(--ink-soft); }

/* ---- Badges: compact, refined ---------------------------------------- */
.staff-portal .staff-badge {
    border: 1px solid var(--panel-border);
    background: var(--panel-surface-soft);
    color: var(--purple-800);
    border-radius: 999px;
    letter-spacing: .05em;
}
.staff-portal .staff-badge--ready { border-color: rgba(19, 121, 91, 0.28); background: #e8f6ef; color: var(--success); }
.staff-portal .staff-badge--blue { border-color: rgba(23, 105, 194, 0.28); background: var(--blue-50); color: var(--blue-700); }

/* ---- Alerts: keep semantic colour, add the subtle purple frame ------- */
.staff-portal .staff-alert { border-radius: var(--panel-radius-sm); }
.staff-portal .form-errors,
.staff-portal .form-success,
.staff-portal [data-form-error] { border-radius: var(--panel-radius-sm); }

/* ---- Actions row spacing ------------------------------------------------ */
.staff-portal .credential-actions,
.staff-portal .form-actions,
.staff-portal .staff-form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---- Auth-shell (Change Password / login card) form parity ----------- */
.staff-auth-page .login-form input,
.page-login .login-card .login-form input {
    border: 1px solid var(--field-border);
    border-radius: 10px;
}
.staff-auth-page .login-form input:focus-visible,
.page-login .login-card .login-form input:focus-visible {
    outline: none;
    border-color: var(--purple-600);
    box-shadow: 0 0 0 3px var(--field-focus-ring);
}

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 900px) {
    .staff-info-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .staff-info-grid { grid-template-columns: 1fr; }
    .staff-panel__header,
    .staff-portal .staff-card-head { padding: 16px 18px; }
    .staff-portal .contact-fieldset,
    .staff-form-section { padding: 16px 16px; }
    .staff-panel__body { padding: 18px; }
}

/* ---- Stage 5B.6E: breathing room for panels whose content is a direct child --- */
.staff-portal .staff-table-card > h2,
.staff-portal .staff-table-card > p,
.staff-portal .staff-table-card > .staff-filters,
.staff-portal .staff-table-card > .contact-form,
.staff-portal .staff-table-card > form:not(.staff-filters) { padding-left: 24px; padding-right: 24px; }
.staff-portal .staff-table-card > h2 { padding-top: 22px; margin-bottom: 4px; }
.staff-portal .staff-table-card > .staff-filters { padding-top: 16px; padding-bottom: 16px; }
.staff-portal .staff-table-card > .contact-form,
.staff-portal .staff-table-card > form:not(.staff-filters) { padding-top: 18px; padding-bottom: 22px; }
.staff-portal .staff-table-card > .staff-panel__body { padding: 24px; }
@media (max-width: 600px) {
    .staff-portal .staff-table-card > h2,
    .staff-portal .staff-table-card > p,
    .staff-portal .staff-table-card > .staff-filters,
    .staff-portal .staff-table-card > .contact-form,
    .staff-portal .staff-table-card > form:not(.staff-filters) { padding-left: 16px; padding-right: 16px; }
    .staff-portal .staff-table-card > .staff-panel__body { padding: 18px; }
}

/* ================================================================
   Stage 5B.6F — Staff action button contract
   Every actionable button / button-like link across staff.cybytez.app
   must look clickable and carry a visible border. Four canonical
   variants (Primary, Secondary, Ghost, Danger) all bordered, plus a
   bounded fallback that upgrades legacy raw <button> / <a class="button">
   controls in the staff shell. The menu toggle, sidebar nav links and
   the account-identity link are deliberately NOT matched — no single
   aggressive global selector.
   ================================================================ */

/* -- Canonical variants: all carry a visible border ------------------ */
.button--primary {
    border-color: var(--purple-800);
}

.button--secondary {
    border-color: rgba(91, 33, 182, 0.45);
    color: var(--purple-800);
    background: var(--purple-50);
}

.button--secondary:hover {
    border-color: var(--purple-700);
    background: var(--purple-100);
}

.button--ghost {
    border-color: rgba(91, 33, 182, 0.38);
}

.button--danger {
    border-color: #7f1a12;
    color: #fff;
    background: var(--danger);
}

.button--danger:hover {
    border-color: #63140e;
    background: #9a1e14;
}

/* A bare .button with no variant must never render as plain text —
   give it the Secondary treatment so links such as "Back to People"
   and "Cancel" stay clearly bordered. */
.button:not([class*="button--"]) {
    border-color: rgba(91, 33, 182, 0.45);
    color: var(--purple-800);
    background: var(--purple-50);
}

.button:not([class*="button--"]):hover {
    border-color: var(--purple-700);
    background: var(--purple-100);
}

/* -- Bounded staff-shell fallback ----------------------------------- */
/* Legacy raw controls that predate the canonical classes: Filter bars,
   inline table actions (Activate / Deactivate / Publish / Remove /
   Generate charges / Link student), Sign out, Change password, and the
   notification action row. Scoped to known containers; the menu toggle
   and sidebar nav are never in scope. */
.staff-portal .staff-main button:not([class*="button--"]):not(.staff-menu-toggle):not(.staff-badge),
.staff-portal .staff-main a.button:not([class*="button--"]),
.staff-portal .staff-filters button:not([class*="button--"]),
.staff-portal .staff-inline-form button:not([class*="button--"]),
.staff-portal .staff-topbar .staff-account form button,
.staff-portal .staff-topbar .staff-account__link,
.staff-portal .notification-actions form:not(:has(.button)) button,
.staff-portal .notification-actions > a:not(.button) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 15px;
    border: 1px solid rgba(91, 33, 182, 0.45);
    border-radius: 10px 10px 10px 3px;
    color: var(--purple-800);
    background: var(--purple-50);
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.staff-portal .staff-main button:not([class*="button--"]):not(.staff-menu-toggle):not(.staff-badge):hover,
.staff-portal .staff-main a.button:not([class*="button--"]):hover,
.staff-portal .staff-filters button:not([class*="button--"]):hover,
.staff-portal .staff-inline-form button:not([class*="button--"]):hover,
.staff-portal .staff-topbar .staff-account form button:hover,
.staff-portal .staff-topbar .staff-account__link:hover,
.staff-portal .notification-actions form:not(:has(.button)) button:hover,
.staff-portal .notification-actions > a:not(.button):hover {
    border-color: var(--purple-700);
    background: var(--purple-100);
}

/* Topbar Sign out / Change password read as quiet white ghosts. */
.staff-portal .staff-topbar .staff-account form button,
.staff-portal .staff-topbar .staff-account__link {
    margin-left: 6px;
    min-height: 36px;
    padding: 8px 13px;
    color: var(--purple-800);
    background: #fff;
    white-space: nowrap;
}

@media (max-width: 600px) {
    .staff-portal .staff-topbar .staff-account form button,
    .staff-portal .staff-topbar .staff-account__link {
        margin-left: 4px;
        padding: 7px 10px;
    }
}

/* Stage 5B.6H — clickable Finance oversight metric + fee-item row builder */
.staff-portal .staff-metric--link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.staff-portal .staff-metric--link:hover,
.staff-portal .staff-metric--link:focus-visible {
    border-color: var(--panel-border-strong);
    box-shadow: var(--panel-shadow-hover);
    transform: translateY(-2px);
}
.staff-portal .staff-metric--link strong { color: #4c167a; }
.staff-portal .fee-item-rows { border: 1px solid var(--panel-border); border-radius: var(--panel-radius-sm); padding: 16px; margin: 6px 0 4px; }
.staff-portal .fee-item-rows legend { padding: 0 6px; color: var(--purple-800); font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.staff-portal .fee-item-rows .staff-table th,
.staff-portal .fee-item-rows .staff-table td { padding: 8px 10px; }
.staff-portal .fee-item-rows input { width: 100%; min-height: 40px; padding: 0 10px; border: 1px solid var(--field-border); border-radius: 8px; background: #fff; font: inherit; }
.staff-portal .fee-item-actions { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-top: 12px; }
.staff-portal .fee-item-library { display: grid; gap: 6px; font-size: 12px; font-weight: 800; color: #3c3748; }
.staff-portal .fee-item-library select { min-height: 40px; padding: 0 10px; border: 1px solid var(--field-border); border-radius: 8px; background: #fff; }

/* ================================================================
   Stage 5B.6I — independently scrollable staff sidebar navigation,
   desktop hide/show with a persisted UI preference, and a topbar
   notification bell synchronized with the sidebar unread badge.
   ================================================================ */

/* -- The sidebar is a flex column; ONLY its nav list scrolls -------- */
.staff-portal .staff-layout {
    min-height: 100vh;
    min-height: 100dvh;
}
.staff-portal .staff-sidebar {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.staff-portal .staff-brand,
.staff-portal .staff-sidebar__role {
    flex: 0 0 auto;
}
.staff-portal .staff-sidebar .staff-nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}
.staff-portal .staff-sidebar .staff-nav::-webkit-scrollbar { width: 8px; }
.staff-portal .staff-sidebar .staff-nav::-webkit-scrollbar-track { background: transparent; }
.staff-portal .staff-sidebar .staff-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22);
    border-radius: 999px;
}
.staff-portal .staff-sidebar .staff-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.38);
}

/* -- One always-visible, bordered navigation toggle (Stage 5B.6F chrome) -- */
.staff-portal .staff-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid rgba(91, 33, 182, 0.30);
    border-radius: 10px 10px 10px 3px;
    color: var(--purple-800);
    background: #fff;
    font: inherit;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease;
}
.staff-portal .staff-menu-toggle:hover,
.staff-portal .staff-menu-toggle:focus-visible {
    border-color: var(--purple-600);
    background: var(--purple-50);
}
.staff-portal .staff-menu-toggle__icon { display: block; }

/* -- Desktop: viewport-tall sticky sidebar + hide/show ------------- */
@media (min-width: 901px) {
    .staff-portal .staff-sidebar {
        position: sticky;
        top: 0;
        align-self: start;
        height: 100vh;
        height: 100dvh;
        transition: transform 0.2s ease;
    }
    .staff-nav-collapsed .staff-portal .staff-layout {
        grid-template-columns: 0 minmax(0, 1fr);
    }
    .staff-nav-collapsed .staff-portal .staff-sidebar {
        transform: translateX(-100%);
        visibility: hidden;
        pointer-events: none;
    }
    .staff-nav-collapsed .staff-portal .staff-main {
        width: min(100% - 80px, 1400px);
    }
}

/* -- Mobile drawer: keep the current behaviour, add independent list scroll -- */
@media (max-width: 900px) {
    .staff-portal .staff-sidebar { height: 100%; }
    /* The collapse preference is inert on mobile — the drawer is driven by .is-open only. */
    .staff-nav-collapsed .staff-portal .staff-sidebar { transform: translateX(-105%); }
    .staff-nav-collapsed .staff-portal .staff-sidebar.is-open { transform: translateX(0); }
}

/* -- Topbar notification bell ------------------------------------- */
.staff-portal .staff-bell {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(91, 33, 182, 0.30);
    border-radius: 10px 10px 10px 3px;
    color: var(--purple-800);
    background: #fff;
    text-decoration: none;
    transition: border-color 160ms ease, background 160ms ease;
}
.staff-portal .staff-bell:hover,
.staff-portal .staff-bell[aria-current="page"] {
    border-color: var(--purple-600);
    background: var(--purple-50);
}
.staff-portal .staff-bell:focus-visible {
    outline: 3px solid rgba(33, 131, 223, 0.48);
    outline-offset: 2px;
}
.staff-portal .staff-bell__icon { display: block; }
.staff-portal .staff-bell__badge {
    position: absolute;
    top: -6px;
    right: -6px;
    display: grid;
    place-items: center;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--blue-600);
    color: #fff;
    font-family: "Manrope", "DM Sans", sans-serif;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}
@media (max-width: 600px) {
    .staff-portal .staff-account { gap: 7px; }
    .staff-portal .staff-bell { width: 34px; height: 34px; }
}

/* ================================================================
   Part C — unified interaction feedback
   One place for coherent button states (default / hover / focus-visible /
   active / disabled) across the canonical .button system and the bounded
   staff-shell fallback, plus a subtle "this surface is alive" hover on
   non-clickable bounded cards. Restrained: one small translateY on press;
   colour / border / shadow carry the rest. Transforms are dropped under
   prefers-reduced-motion (see that block above); colour feedback stays.
   ================================================================ */

/* -- Canonical .button: pressed + focus-visible + disabled ---------- */
.button:active {
    transform: translateY(1px);
}
.button--primary:active {
    box-shadow: 0 4px 12px rgba(91, 33, 182, 0.22);
}
.button--white:active,
.button--secondary:active,
.button--danger:active,
.button:not([class*="button--"]):active {
    box-shadow: none;
}
.button:focus-visible {
    outline: 3px solid rgba(33, 131, 223, 0.5);
    outline-offset: 2px;
}
.button:disabled,
.button[disabled],
.button[aria-disabled="true"] {
    opacity: 0.55;
    box-shadow: none;
    cursor: not-allowed;
}
.button:disabled:hover,
.button[disabled]:hover,
.button[aria-disabled="true"]:hover,
.button:disabled:active,
.button[disabled]:active,
.button[aria-disabled="true"]:active {
    transform: none;
    box-shadow: none;
}

/* -- Bounded staff-shell fallback: pressed + focus-visible + disabled -- */
.staff-portal .staff-main button:not([class*="button--"]):not(.staff-menu-toggle):not(.staff-badge):active,
.staff-portal .staff-main a.button:not([class*="button--"]):active,
.staff-portal .staff-filters button:not([class*="button--"]):active,
.staff-portal .staff-inline-form button:not([class*="button--"]):active,
.staff-portal .staff-topbar .staff-account form button:active,
.staff-portal .staff-topbar .staff-account__link:active,
.staff-portal .notification-actions form:not(:has(.button)) button:active,
.staff-portal .notification-actions > a:not(.button):active {
    transform: translateY(1px);
    border-color: var(--purple-700);
    background: var(--purple-100);
}
.staff-portal .staff-main button:not([class*="button--"]):not(.staff-menu-toggle):not(.staff-badge):focus-visible,
.staff-portal .staff-filters button:not([class*="button--"]):focus-visible,
.staff-portal .staff-inline-form button:not([class*="button--"]):focus-visible,
.staff-portal .staff-topbar .staff-account form button:focus-visible,
.staff-portal .staff-topbar .staff-account__link:focus-visible {
    outline: 3px solid rgba(33, 131, 223, 0.5);
    outline-offset: 2px;
}
.staff-portal .staff-main button:not([class*="button--"]):disabled,
.staff-portal .staff-main button:not([class*="button--"])[aria-disabled="true"],
.staff-portal .staff-filters button:not([class*="button--"]):disabled,
.staff-portal .staff-inline-form button:not([class*="button--"]):disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.staff-portal .staff-main button:not([class*="button--"]):disabled:hover,
.staff-portal .staff-filters button:not([class*="button--"]):disabled:hover,
.staff-portal .staff-inline-form button:not([class*="button--"]):disabled:hover {
    transform: none;
}

/* -- Non-clickable bounded cards acknowledge the pointer -----------
   "This part of the interface is alive", not "this is clickable": no
   pointer cursor, no lift, no fake affordance — a slightly stronger
   purple hairline and a touch more shadow. Genuinely interactive cards
   (a.staff-card, .staff-card--module, .staff-metric--link) keep their own
   stronger, lifted hover defined earlier. */
.staff-portal .staff-info-card,
.staff-portal .staff-data-field,
.staff-portal .academic-context,
.staff-portal .staff-message,
.staff-portal .staff-detail-list > div,
.staff-portal .staff-metric:not(a):not(.staff-metric--link),
.staff-portal .staff-card:not(a):not(.staff-card--module) {
    transition: border-color 140ms ease, box-shadow 140ms ease;
}
.staff-portal .staff-info-card:hover,
.staff-portal .staff-data-field:hover,
.staff-portal .academic-context:hover,
.staff-portal .staff-message:hover,
.staff-portal .staff-detail-list > div:hover,
.staff-portal .staff-metric:not(a):not(.staff-metric--link):hover,
.staff-portal .staff-card:not(a):not(.staff-card--module):hover {
    border-color: var(--panel-border-strong);
    box-shadow: var(--panel-shadow-hover);
}

/* ================================================================
   Part D — notification bell popover + grouped collapsible navigation.
   Reuses the Part A/C purple-on-light system and Part C interaction
   states. No competing visual system. Movement is dropped under
   prefers-reduced-motion (global rule); colour/border feedback stays.
   ================================================================ */

/* -- Bell popover ------------------------------------------------------ */
.staff-bell-wrap { position: relative; display: flex; align-items: center; }

.notification-popover {
    position: absolute;
    z-index: 200;
    top: calc(100% + 10px);
    right: 0;
    width: min(92vw, 360px);
    max-height: min(72vh, 560px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--panel-border-strong);
    border-radius: 14px 14px 14px 6px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(40, 24, 70, 0.22);
    color: var(--ink);
}
.notification-popover[hidden] { display: none; }
.notification-popover__head {
    flex: 0 0 auto;
    padding: 14px 16px;
    border-bottom: 1px solid var(--panel-border);
    background: var(--panel-surface-soft);
}
.notification-popover__head h2 { margin: 0; font-size: 14px; color: var(--purple-800); }
.notification-popover__list { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.notification-popover__empty { margin: 0; padding: 26px 16px; text-align: center; color: var(--ink-soft); font-size: 13px; }
.notification-popover__item {
    position: relative;
    display: grid;
    gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
}
.notification-popover__item:last-child { border-bottom: 0; }
.notification-popover__item--unread { background: var(--purple-50); }
.notification-popover__item--unread::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--purple-500);
}
.notification-popover__dot {
    position: absolute;
    top: 15px; right: 14px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--blue-600);
}
.notification-popover__link {
    display: grid;
    gap: 3px;
    color: inherit;
    text-decoration: none;
}
.notification-popover__link:hover .notification-popover__title,
.notification-popover__link:focus-visible .notification-popover__title { text-decoration: underline; }
.notification-popover__meta {
    color: var(--purple-700);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}
.notification-popover__title { font-size: 13px; font-weight: 700; padding-right: 14px; }
.notification-popover__message {
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.notification-popover__item time { color: var(--ink-soft); font-size: 10px; }
.notification-popover__markread { margin-top: 2px; }
.notification-popover__markread button {
    border: 1px solid rgba(91, 33, 182, 0.4);
    border-radius: 8px;
    padding: 5px 10px;
    color: var(--purple-800);
    background: #fff;
    font: inherit;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}
.notification-popover__markread button:hover { border-color: var(--purple-700); background: var(--purple-100); }
.notification-popover__markread button:active { transform: translateY(1px); }
.notification-popover__markread button:disabled { opacity: 0.55; cursor: not-allowed; }
.notification-popover__all {
    flex: 0 0 auto;
    display: block;
    padding: 12px 16px;
    border-top: 1px solid var(--panel-border);
    color: var(--purple-700);
    background: var(--panel-surface-soft);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    text-align: center;
}
.notification-popover__all:hover, .notification-popover__all:focus-visible { text-decoration: underline; }
.notification-popover__error { margin: 0; padding: 10px 16px; color: var(--danger); background: #fff6f5; font-size: 12px; }
.notification-popover__error[hidden] { display: none; }
.notification-popover__open-form { display: none; }

@media (max-width: 560px) {
    .notification-popover {
        position: fixed;
        top: 66px;
        left: 8px;
        right: 8px;
        width: auto;
        max-height: 76vh;
    }
}

/* -- Grouped collapsible sidebar navigation -------------------------- */
.staff-portal .staff-nav__controls {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    padding: 0 4px;
}
.staff-portal .staff-nav__control {
    flex: 1 1 auto;
    padding: 6px 8px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    color: #e9e1f9;
    background: rgba(255, 255, 255, 0.06);
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: border-color 150ms ease, background 150ms ease;
}
.staff-portal .staff-nav__control:hover,
.staff-portal .staff-nav__control:focus-visible {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.14);
    outline: 0;
}
.staff-portal .staff-nav__control:active { transform: translateY(1px); }

.staff-portal .staff-nav__controls[hidden] { display: none; }
.staff-portal .staff-nav-group { margin-bottom: 4px; }
/* The shared `.staff-nav span` rule (disabled "Coming soon" look) must not reach the
   toggle's own label span. */
.staff-portal .staff-nav-group__toggle .staff-nav-group__label {
    display: inline;
    min-height: 0;
    padding: 0;
    color: inherit;
    background: none;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    cursor: inherit;
}
.staff-portal .staff-nav-group__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 34px;
    padding: 6px 10px;
    border: 0;
    border-radius: 8px;
    color: #cbbced;
    background: transparent;
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 150ms ease, color 150ms ease;
}
.staff-portal .staff-nav-group__toggle:hover,
.staff-portal .staff-nav-group__toggle:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    outline: 0;
}
.staff-portal .staff-nav-group__chevron {
    flex: 0 0 auto;
    transition: transform 160ms ease;
}
.staff-portal .staff-nav-group.is-collapsed .staff-nav-group__chevron { transform: rotate(-90deg); }
.staff-portal .staff-nav-group__items { display: grid; gap: 4px; padding-bottom: 4px; }
.staff-portal .staff-nav-group__items[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
    .staff-portal .staff-nav-group__chevron,
    .notification-popover__markread button:active,
    .staff-portal .staff-nav__control:active { transition: none; transform: none; }
}

/* ================================================================
   Part E — canonical list pagination control (Previous / Page X of Y /
   Next). Extends the existing .staff-pagination container; no parallel
   system. Steps read as restrained ghost actions and inherit the Part C
   default / hover / focus-visible / active / disabled behaviour. A single
   page renders no nav at all (renderPagination() returns '').
   ================================================================ */
.staff-portal .staff-pagination {
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.staff-pagination__status {
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 700;
}
.staff-pagination .staff-pagination__step {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 16px;
    border: 1px solid rgba(91, 33, 182, 0.38);
    border-radius: 10px 10px 10px 3px;
    color: var(--purple-800);
    background: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}
.staff-pagination .staff-pagination__step[rel="next"] { border-radius: 10px 10px 3px 10px; }
.staff-pagination .staff-pagination__step:hover {
    border-color: var(--purple-700);
    background: var(--purple-100);
}
.staff-pagination .staff-pagination__step:focus-visible {
    outline: 3px solid rgba(33, 131, 223, 0.5);
    outline-offset: 2px;
}
.staff-pagination .staff-pagination__step:active { transform: translateY(1px); }
.staff-pagination .staff-pagination__step.is-disabled {
    opacity: 0.5;
    border-color: var(--line);
    color: var(--ink-soft);
    cursor: default;
    pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
    .staff-pagination .staff-pagination__step:active { transform: none; }
}
@media (max-width: 600px) {
    .staff-portal .staff-pagination { justify-content: center; gap: 8px; }
    .staff-pagination__status { order: -1; width: 100%; text-align: center; }
}

/* ================================================================
   Part F — People: Add-person menu, Parent/Guardian child
   expansion, and the student-intake form helpers. Extends the
   existing staff panel/form system; no parallel component set.
   ================================================================ */
.people-add-menu { position: relative; }
.people-add-menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; }
.people-add-menu > summary::-webkit-details-marker { display: none; }
.people-add-menu > summary::after { content: "\25be"; margin-left: 8px; font-size: 0.8em; }
.people-add-menu[open] > summary::after { content: "\25b4"; }
.people-add-menu__list {
    position: absolute; right: 0; z-index: 30; min-width: 220px; margin-top: 6px; padding: 6px;
    display: grid; gap: 2px;
    background: #fff; border: 1px solid var(--line, #e4e0eb); border-radius: 10px 10px 10px 3px;
    box-shadow: 0 10px 26px rgba(41, 20, 76, 0.14);
}
.people-add-menu__list a {
    display: block; padding: 9px 12px; border-radius: 8px; color: var(--purple-800, #4c167a);
    font-size: 13px; font-weight: 700; text-decoration: none;
}
.people-add-menu__list a:hover, .people-add-menu__list a:focus-visible { background: var(--purple-100, #f3ecfb); outline: 0; }

.staff-card-head__actions { display: flex; flex-wrap: wrap; gap: 8px; }

.people-children-panel > td { background: #faf9fc; }
.people-children-panel .staff-table { min-width: 640px; }
.people-link-form { margin-top: 12px; flex-wrap: wrap; gap: 8px; }

.staff-check-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 6px 0; }
.staff-check-row > span { flex: 1 1 220px; font-size: 13px; }

/* Administration — Special Access (temporary delegation). Reuses staff-form / staff-table /
   staff-badge / staff-check-row; only the collapsible area picker is local. */
.special-access-areas { display: grid; gap: 8px; }
.special-access-module { border: 1px solid #e4e0eb; border-radius: 10px; background: #faf9fc; }
.special-access-module > summary { padding: 12px 16px; font-weight: 800; color: #3b176d; font-size: 13px; cursor: pointer; }
.special-access-module[open] > summary { border-bottom: 1px solid #e4e0eb; }
.special-access-area { padding: 8px 16px 12px; }
.special-access-area + .special-access-area { border-top: 1px solid #eeeaf3; }
.special-access-area__label { margin: 6px 0 2px; color: #756f82; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.special-access-area .staff-check-row > span small { color: #756f82; font-weight: 600; }

/* School Community — Add Parent/Guardian server-paginated student selector. Reuses the shared
   .staff-table / .staff-pagination / .staff-empty-state patterns; only the search row + a
   couple of table tweaks are local. */
.parent-student-picker__search { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; }
.parent-student-picker__search label { font-size: 12px; font-weight: 800; color: #3c3748; }
.parent-student-picker__search input { flex: 1 1 240px; min-height: 44px; padding: 0 12px; border: 1px solid #dcd8e4; border-radius: 9px; background: #fff; }
.parent-student-picker__meta { margin: 4px 0 10px; color: #706a7b; font-size: 12px; }
.parent-student-picker__table { min-width: 640px; }
.parent-student-picker__table td:first-child { width: 1%; white-space: nowrap; }
.parent-student-picker__table input[type="checkbox"] { width: 18px; height: 18px; }
.parent-student-picker__table select { min-height: 36px; padding: 0 8px; border: 1px solid #dcd8e4; border-radius: 8px; background: #fff; }
.parent-student-picker .staff-pagination { margin-top: 4px; border: 1px solid #eeeaf3; border-radius: 12px; background: #fff; }
.parent-student-picker .staff-pagination__step { border: 1px solid #ddd5e7; border-radius: 9px; padding: 9px 12px; color: #4c167a; background: #fff; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.parent-student-picker .staff-pagination__step.is-disabled,
.parent-student-picker .staff-pagination__step:disabled { color: #a49db6; background: #f4f2f8; cursor: not-allowed; }

.staff-subgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 10px; }

.staff-hint-list { margin: 0 0 16px; padding-left: 20px; color: var(--ink-soft, #706a7b); font-size: 13px; }
.staff-hint-list li { margin: 4px 0; }

@media (max-width: 600px) {
    .people-add-menu__list { right: auto; left: 0; }
}

/* ================================================================
   Part G — public Admission form. Extends the existing .contact-form
   / .form-row public form language; fieldsets read as section cards
   with purple identity headings, consistent with Parts A and C.
   ================================================================ */
.admission-form fieldset {
    margin: 0 0 20px;
    padding: 22px 22px 8px;
    border: 1px solid #e4e0eb;
    border-radius: 14px;
    background: #fff;
}
.admission-form legend {
    padding: 0 8px;
    color: #6a1b9a;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.admission-form .form-hint {
    margin: 0 0 14px;
    color: #706a7b;
    font-size: 13px;
}
.admission-form input[readonly] {
    background: #f6f5fa;
    color: #706a7b;
}

/* ================================================================
   Part H — Category dimension. Small additions only; the Category
   selectors reuse the existing form controls and the Academic Setup
   list/table styles.
   ================================================================ */
.level-pill__categories {
    display: block;
    margin-top: 4px;
    color: #6a1b9a;
    font-weight: 700;
}
.staff-relationship-place select { min-width: 130px; }

/* ============================================================================
   Part M1 — Staff shell orientation controls and navigation-group hierarchy.
   ========================================================================== */
.staff-portal .staff-topbar {
    position: sticky;
    top: 0;
    z-index: 90;
    padding-right: 20px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    transition: min-height 160ms ease, padding 160ms ease, box-shadow 160ms ease;
}
.staff-portal .staff-header-collapse-toggle,
.staff-portal .staff-sidebar-edge-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid rgba(91, 33, 182, 0.38);
    border-radius: 10px 10px 10px 3px;
    color: var(--purple-800);
    background: #fff;
    box-shadow: 0 5px 15px rgba(40, 16, 78, 0.12);
    cursor: pointer;
    transition: border-color 150ms ease, background 150ms ease, left 200ms ease;
}
.staff-portal .staff-header-collapse-toggle:hover,
.staff-portal .staff-sidebar-edge-toggle:hover {
    border-color: var(--purple-600);
    background: var(--purple-50);
}
.staff-portal .staff-header-collapse-toggle:focus-visible,
.staff-portal .staff-sidebar-edge-toggle:focus-visible {
    outline: 3px solid rgba(33, 131, 223, 0.5);
    outline-offset: 2px;
}
.staff-header-collapse-toggle__expand,
.staff-sidebar-edge-toggle__expand { display: none; }
.staff-header-collapsed .staff-header-collapse-toggle__collapse,
.staff-nav-collapsed .staff-sidebar-edge-toggle__collapse { display: none; }
.staff-header-collapsed .staff-header-collapse-toggle__expand,
.staff-nav-collapsed .staff-sidebar-edge-toggle__expand { display: block; }

.staff-header-collapsed .staff-portal .staff-topbar {
    min-height: 46px;
    padding-block: 4px;
    box-shadow: 0 5px 18px rgba(40, 16, 78, 0.08);
}
.staff-header-collapsed .staff-portal .staff-topbar > .staff-account { display: none; }
.staff-header-collapsed .staff-portal .staff-topbar__identity .brand__logo--topbar {
    flex-basis: 30px;
    width: 30px;
    height: 30px;
    padding: 2px;
}
.staff-header-collapsed .staff-portal .staff-topbar__context { display: none; }
.staff-header-collapsed .staff-portal .settings-subnav { top: 54px; }

.staff-portal .staff-menu-toggle { display: none; }
.staff-portal .staff-sidebar-edge-toggle {
    position: fixed;
    z-index: 110;
    top: 86px;
    left: 231px;
    border-radius: 999px;
}
.staff-nav-collapsed .staff-portal .staff-sidebar-edge-toggle { left: 8px; }

.staff-portal .staff-nav-group {
    margin: 0 0 10px;
    padding: 4px;
    border: 1px solid rgba(214, 190, 255, 0.25);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
}
.staff-portal .staff-nav-group.is-current {
    border-color: rgba(220, 202, 255, 0.62);
    background: rgba(255, 255, 255, 0.10);
}
.staff-portal .staff-nav-group.is-current .staff-nav-group__toggle { color: #fff; }
.staff-portal .staff-nav-group__items { padding: 1px 2px 4px; }
.staff-portal .staff-nav-group__items a[aria-current="page"] {
    box-shadow: inset 3px 0 0 #8fc9ff;
    background: rgba(255, 255, 255, 0.20);
}
.staff-portal .staff-nav-group__toggle:focus-visible {
    outline: 2px solid rgba(143, 201, 255, 0.9);
    outline-offset: 1px;
}

.staff-portal .staff-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 18px;
}
.staff-portal .staff-footer .copyright-notice { margin: 0; color: #756f82; font-size: 11px; }
.settings-subnav { top: 80px; }
.settings-logo-current { display: grid; justify-items: end; gap: 6px; color: var(--ink-soft); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.settings-footer-preview { padding: 10px 12px; border: 1px solid var(--panel-border); border-radius: 10px; background: var(--panel-surface-soft); }

@media (max-width: 900px) {
    .staff-portal .staff-menu-toggle { display: inline-flex; }
    .staff-portal .staff-sidebar-edge-toggle { display: none; }
    .staff-portal .staff-topbar { padding-right: 14px; }
}
@media (max-width: 700px) {
    .settings-subnav { position: static; }
}
@media (max-width: 600px) {
    .staff-portal .staff-header-collapse-toggle { width: 34px; height: 34px; }
    .staff-header-collapsed .staff-portal .staff-topbar { min-height: 44px; }
    .staff-header-collapsed .staff-portal .staff-topbar__identity strong { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
    .staff-portal .staff-topbar,
    .staff-portal .staff-header-collapse-toggle,
    .staff-portal .staff-sidebar-edge-toggle { transition: none; }
}
/* Omega Phase J — Leadership & succession workspace. */
.staff-portal .plain-list { margin: 0; padding-left: 1.1rem; }
.staff-portal .staff-alert--success { border-color: #1c7c4a; background: #eafaf1; color: #14532d; }
.staff-portal .staff-table-card--danger { border-color: #b42318; box-shadow: 0 0 0 1px rgba(180, 35, 24, .12); }
.staff-portal .staff-table-card--danger .staff-eyebrow { color: #b42318; }
.staff-portal .staff-detail__panel { margin-top: 1rem; padding: 1rem; border: 1px solid #d0d5dd; border-radius: 8px; background: #fcfcfd; }
.staff-portal .staff-detail__panel code { background: #fff2f0; padding: .1rem .35rem; border-radius: 4px; }

/* Omega Phase L8 — dedicated Examinations application (exams.<domain>). Reuses the staff
   panel/table/badge system; only the top-level shell and login/landing surfaces are new. */
.exams-app { min-height: 100vh; margin: 0; color: #2c2438; background: #f6f5fa; display: flex; flex-direction: column; }
.exams-header { border-bottom: 1px solid #e4e0eb; background: linear-gradient(90deg, #28104e, #3b176d); color: #fff; }
.exams-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 34px; }
.exams-brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.exams-brand__copy { display: grid; }
.exams-brand__copy strong { font-size: 14px; }
.exams-brand__copy small { color: #cbbced; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.exams-header__account { display: flex; align-items: center; gap: 12px; font-size: 12px; color: #e9e1f9; }
.exams-header__account a { color: #fff; font-weight: 800; font-size: 11px; text-decoration: none; }
.exams-header__account a:hover, .exams-header__account a:focus-visible { text-decoration: underline; }
.exams-nav { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 26px; border-bottom: 1px solid #e4e0eb; background: #fff; }
.exams-nav a { padding: 8px 12px; border-radius: 9px; color: #4c167a; font-size: 12px; font-weight: 700; text-decoration: none; }
.exams-nav a:hover, .exams-nav a:focus-visible { background: #f1ecfa; outline: 0; }
.exams-nav a[aria-current="page"] { color: #fff; background: #6a1b9a; }
.exams-main { flex: 1 0 auto; width: min(100% - 48px, 1120px); margin: 0 auto; padding: 40px 0 64px; }
.exams-footer { padding: 16px 34px; border-top: 1px solid #e4e0eb; background: #fff; color: #756f82; font-size: 11px; }
.exams-app--minimal .exams-nav { display: none; }
.exams-app--minimal .exams-main { width: min(100% - 40px, 620px); padding-top: 56px; }
.exams-login { max-width: 460px; margin: 0 auto; padding: 30px; border: 1px solid #e4e0eb; border-radius: 14px; background: #fff; box-shadow: 0 8px 28px #29144c10; }
.exams-login h1 { margin: 0 0 10px; font-size: 24px; }
.exams-login > p { color: #706a7b; font-size: 13px; }
.exams-login-form { display: grid; gap: 14px; margin-top: 18px; }
.exams-login-form label { display: grid; gap: 6px; font-size: 12px; font-weight: 700; color: #3c3748; }
.exams-login-form input { min-height: 42px; padding: 0 12px; border: 1px solid #dcd8e4; border-radius: 9px; font: inherit; }
.exams-login-form input:focus { border-color: #6a1b9a; outline: 3px solid #6a1b9a1f; }
.exams-login-alt { margin-top: 16px; color: #756f82; font-size: 12px; }
.exams-login-alt a { color: #5b21b6; font-weight: 700; text-decoration: none; }
.exams-login-alt a:hover, .exams-login-alt a:focus-visible { text-decoration: underline; }
.exams-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.exams-card { display: grid; align-content: start; gap: 8px; min-height: 150px; padding: 22px; border: 1px solid #e4e0eb; border-radius: 14px; background: #fff; box-shadow: 0 6px 20px #29144c09; color: inherit; text-decoration: none; }
.exams-card:hover, .exams-card:focus-visible { border-color: #6a1b9a; outline: 0; }
.exams-card h2 { margin: 0; font-size: 18px; color: #3b176d; }
.exams-card p { margin: 0; color: #706a7b; font-size: 12px; }
@media (max-width: 800px) {
    .exams-header, .exams-footer { padding-left: 18px; padding-right: 18px; }
    .exams-main { width: min(100% - 32px, 1120px); }
    .exams-card-grid { grid-template-columns: 1fr; }
}
