/* cairo-arabic-wght-normal */
@font-face {
  font-family: Cairo;
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url(fonts/cairo-arabic-wght-normal.woff2) format('woff2');
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC,U+102E0-102FB,U+10E60-10E7E,U+10EC2-10EC4,U+10EFC-10EFF,U+1EE00-1EE03,U+1EE05-1EE1F,U+1EE21-1EE22,U+1EE24,U+1EE27,U+1EE29-1EE32,U+1EE34-1EE37,U+1EE39,U+1EE3B,U+1EE42,U+1EE47,U+1EE49,U+1EE4B,U+1EE4D-1EE4F,U+1EE51-1EE52,U+1EE54,U+1EE57,U+1EE59,U+1EE5B,U+1EE5D,U+1EE5F,U+1EE61-1EE62,U+1EE64,U+1EE67-1EE6A,U+1EE6C-1EE72,U+1EE74-1EE77,U+1EE79-1EE7C,U+1EE7E,U+1EE80-1EE89,U+1EE8B-1EE9B,U+1EEA1-1EEA3,U+1EEA5-1EEA9,U+1EEAB-1EEBB,U+1EEF0-1EEF1;
}

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

/* cairo-latin-wght-normal */
@font-face {
  font-family: Cairo;
  font-style: normal;
  font-display: swap;
  font-weight: 200 1000;
  src: url(fonts/cairo-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
:root {
    color-scheme: light;
    --canvas: #f6f4f8;
    --surface: #fff;
    --navy: #452563;
    --ink: #2d2440;
    --muted: #655c72;
    --soft: #6d637b;
    --line: #e7e0ed;
    --blue: #653a96;
    --blue-dark: #542b81;
    --blue-soft: #efe7f9;
    --radius: 15px;
    --shadow: 0 4px 14px #4f306410;
    --sidebar: 252px;
    --font: Cairo, system-ui, sans-serif;
    --text-caption: .8125rem;
    --text-small: .875rem;
    --text-label: .9375rem;
    --text-body: 1rem;
    --header-height: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 var(--text-body)/1.65 var(--font); }
button, input, select, textarea { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .2em; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
svg { flex: none; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid #976cc9; outline-offset: 3px; }
main:focus { outline: none; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 30; inset-block-start: 12px; inset-inline-start: 12px; padding: 9px 16px; background: #fff; border-radius: 8px; }
[dir='rtl'] .mirror-rtl { transform: scaleX(-1); }
.console { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); grid-template-rows: var(--header-height) minmax(calc(100vh - var(--header-height)), 1fr); }
.sidebar { grid-row: 2; grid-column: 1; background: #fff; color: var(--ink); border-inline-end: 1px solid var(--line); z-index: 5; min-width: 0; }
.sidebar-inner { position: sticky; inset-block-start: var(--header-height); height: calc(100dvh - var(--header-height)); overflow: auto; display: flex; flex-direction: column; padding: 16px 13px 13px; scrollbar-width: thin; scrollbar-color: #d5c5e1 #fff; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: inherit; width: fit-content; }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; flex: none; background: #6e48a2; color: #fff; border-radius: 13px; box-shadow: inset 0 0 0 1px #ffffff28; }
.brand-wordmark { display: grid; align-content: center; line-height: 1.15; }
.brand-wordmark strong { font-size: 23px; font-weight: 850; }
.brand-wordmark small { color: var(--muted); margin-block-start: 5px; font-size: var(--text-caption); font-weight: 650; }
.tenant-label { display: flex; align-items: center; gap: 10px; padding: 10px; margin-block-end: 16px; border: 1px solid #eadff2; background: #faf7fc; border-radius: 11px; min-width: 0; }
.tenant-avatar { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 9px; background: #eee4f7; color: #63418a; flex: none; }
.tenant-label-copy { display: grid; overflow: hidden; }
.tenant-label-copy > * { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tenant-label strong { font-size: var(--text-label); font-weight: 800; }
.tenant-label small { font-size: var(--text-caption); color: var(--muted); }
.sidebar-nav { display: grid; gap: 13px; }
.nav-group { display: grid; gap: 2px; }
.nav-group > p { padding-inline: 10px; margin-block-end: 2px; color: #6b5c7b; font-size: var(--text-caption); font-weight: 750; }
.nav-link { appearance: none; display: flex; width: 100%; gap: 10px; align-items: center; padding: 7px 11px; border: 0; background: transparent; color: #49405b; border-radius: 8px; text-align: start; min-height: 38px; font-weight: 700; font-size: var(--text-label); }
.nav-link svg { color: #776489; }
.nav-link:hover { background: #f8f4fb; text-decoration: none; color: #51277b; }
.nav-link.current { background: #efe5f7; color: #572d80; font-weight: 820; }
.nav-link.current svg { color: #6b3a98; }
.sidebar-footer { margin-block-start: auto; padding-block-start: 10px; }
.sidebar-footer .nav-link { border-block-start: 1px solid var(--line); border-start-start-radius: 0; border-start-end-radius: 0; }
.sidebar-close, .menu-trigger, .mobile-backdrop { display: none !important; }
.console-main { grid-column: 2; grid-row: 2; min-width: 0; }
.topbar { position: sticky; inset-block-start: 0; z-index: 9; grid-column: 1 / -1; grid-row: 1; height: var(--header-height); padding-inline: clamp(15px, 2.5vw, 35px); background: var(--navy); color: #fff; box-shadow: 0 2px 8px #38234c20; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.topbar-start, .topbar-end { display: flex; align-items: center; gap: 13px; min-width: 0; }
.topbar-start { font-size: var(--text-label); }
.topbar-brand { min-inline-size: calc(var(--sidebar) - clamp(15px, 2.5vw, 35px)); min-height: 39px; padding-inline-end: 12px; border-inline-end: 1px solid #ffffff2c; color: #fff; }
.topbar-brand .brand-mark { width: 36px; height: 36px; border-radius: 10px; background: #fff2; }
.topbar-brand .brand-mark svg { width: 29px; height: 29px; }
.topbar-brand .brand-wordmark small { color: #e5d4ed; }
.topbar-brand .brand-wordmark strong { font-size: 20px; }
.topbar-current { color: #fff7ff; font-weight: 720; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-end { gap: 9px; }
.icon-button { display: inline-grid; place-items: center; width: 37px; height: 37px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); padding: 0; flex: none; }
.icon-button:hover { background: #f4eef9; color: var(--blue-dark); }
.topbar .icon-button, .topbar .button.locale-switch { border: 1px solid #ffffff39; color: #fff; background: #ffffff0c; }
.topbar .icon-button:hover, .topbar .button.locale-switch:hover { background: #ffffff26; }
.account-link { display: flex; align-items: center; gap: 8px; color: #fff; font-size: var(--text-label); font-weight: 750; padding-inline-start: 10px; border-inline-start: 1px solid #ffffff39; min-width: 0; }
.account-name { max-inline-size: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-avatar { width: 33px; height: 33px; display: grid; place-items: center; flex: none; background: #eee2f8; color: #5e3087; border-radius: 50%; font-size: var(--text-body); font-weight: 820; }
.content { max-width: 1520px; margin-inline: auto; padding: 26px clamp(18px, 3vw, 38px) 45px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; max-inline-size: 100%; min-height: 40px; padding: 8px 15px; border: 1px solid transparent; border-radius: 9px; text-align: center; font-size: var(--text-label); line-height: 1.45; font-weight: 680; color: var(--ink); background: var(--surface); }
.button:hover { text-decoration: none; }
.button.primary { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 2px 5px #653a9628; }
.button.primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.button.secondary { border-color: #e2d9ea; color: #4d415f; }
.button.secondary:hover, .button.quiet:hover { background: #f4eef9; color: var(--blue-dark); }
.button.quiet { color: #593287; background: transparent; }
.button.danger { color: #a83030; background: #fff3f2; }
.button.danger:hover { background: #ffe4e0; }
.button.small { min-height: 34px; padding: 6px 10px; font-size: var(--text-small); }
.button.locale-switch { min-height: 37px; padding: 6px 8px; color: var(--muted); white-space: nowrap; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-block-end: 22px; }
.page-heading h1 { font-size: clamp(1.75rem, 3.2vw, 2.35rem); line-height: 1.32; font-weight: 800; overflow-wrap: anywhere; }
.page-heading p { color: var(--muted); font-size: var(--text-body); margin-block-start: 8px; }
.page-actions { display: flex; gap: 8px; align-items: center; flex: none; }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.panel + .panel { margin-block-start: 16px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 20px; border-block-end: 1px solid var(--line); }
.panel-head h2 { font-size: 1.125rem; line-height: 1.4; font-weight: 760; }
.panel-head a { display: inline-flex; align-items: center; flex: none; gap: 5px; font-size: var(--text-small); font-weight: 680; }
.alert { margin-block-end: 16px; border: 1px solid; border-radius: 10px; padding: 10px 14px; font-size: var(--text-label); }
.alert.success { display: flex; align-items: center; gap: 8px; background: #eaf9f1; border-color: #b9e6d0; color: #176247; }
.alert.error { background: #fff4f3; border-color: #f2c9c4; color: #8f2f2b; }
.alert.error ul { margin: 5px 0 0; padding-inline-start: 22px; }
.dashboard-intro { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-width: 0; margin-block-end: 18px; padding: 3px 0; }
.dashboard-intro h1 { color: var(--ink); font-size: clamp(27px, 4vw, 40px); font-weight: 850; line-height: 1.25; letter-spacing: -.026em; overflow-wrap: anywhere; }
.dashboard-intro p { color: var(--muted); margin-block-start: 4px; }
.dashboard-date { display: inline-flex; flex: none; align-items: center; gap: 7px; padding: 6px 10px; border: 1px solid #e8ddef; border-radius: 9px; background: #f9f5fc; color: #603984; font-size: var(--text-small); font-weight: 750; }
.banner-button { padding-inline: 13px; background: #f2e8fa; color: #552884; }
.banner-button:hover { background: #ead9f5; }
.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-block: 0 16px; }
.metric-card { display: flex; align-items: center; gap: 11px; min-width: 0; min-height: 85px; padding: 12px 14px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); }
a.metric-card:hover { border-color: #c6acd9; color: #4b266d; text-decoration: none; }
.metric-arrow { color: var(--soft); margin-inline-start: auto; }
.icon-tile { display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 11px; color: #623791; background: #efe7f9; }
.icon-tile.compact { width: 33px; height: 33px; border-radius: 9px; }
.icon-tile.metric-users, .icon-tile.metric-active_students { background: #e6f6f5; color: #176e6a; }
.icon-tile.metric-roles, .icon-tile.metric-active_enrollments { background: #f0ebfb; color: #6543a2; }
.icon-tile.metric-files, .icon-tile.metric-pending_admissions { background: #fff1e1; color: #865420; }
.metric-copy { display: grid; min-width: 0; }
.metric-label { font-size: var(--text-label); color: var(--muted); font-weight: 750; line-height: 1.3; }
.metric-copy strong { font-size: 28px; font-weight: 900; letter-spacing: -.035em; line-height: 1.25; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.dashboard-grid { display: grid; margin-block-end: 15px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; align-items: start; }
.dashboard-operations { grid-template-columns: minmax(0, 1.6fr) minmax(235px, 1fr); }
.dashboard-grid > .panel { margin-block-start: 0; }
.dashboard-grid > .panel:only-child, .dashboard-workspace-totals { grid-column: 1 / -1; }
.dashboard-recent { grid-template-columns: repeat(auto-fit, minmax(min(290px, 100%), 1fr)); }
.dashboard-panel:has(.dashboard-panel-head) { overflow: hidden; }
.dashboard-panel-head { min-height: 48px; padding: 9px 13px; border: 0; background: #623c81; color: #fff; }
.dashboard-panel-head h2 { display: flex; align-items: center; gap: 8px; min-width: 0; color: #fff; font-size: 15px; font-weight: 790; }
.dashboard-panel-head a { color: #fff; }
.dashboard-panel-head a:hover { color: #f1e1fa; }
.dashboard-panel-head :focus-visible { outline-color: #f5dcff; }
.dashboard-trend-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 9px; padding: 13px 14px 8px; }
.dashboard-trend-total { display: flex; align-items: baseline; gap: 7px; color: var(--muted); font-size: var(--text-small); }
.dashboard-trend-total strong { color: var(--ink); font-size: 26px; font-weight: 850; line-height: 1; }
.dashboard-period { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dashboard-period .field select { min-height: 34px; padding: 4px 8px; font-size: var(--text-small); }
.dashboard-chart { display: grid; gap: 5px; padding: 8px 14px 13px; margin: 0; list-style: none; }
.dashboard-chart li { display: grid; grid-template-columns: minmax(60px, .38fr) minmax(36px, 1fr) minmax(17px, auto); gap: 8px; align-items: center; line-height: 1.4; font-size: var(--text-small); }
.chart-label { color: var(--muted); }
.chart-count { text-align: end; color: var(--ink); font-weight: 780; }
.dashboard-chart meter { display: block; width: 100%; height: 10px; background: none; }
.dashboard-chart meter::-webkit-meter-bar { border: 0; border-radius: 12px; background: #eee5f3; }
.dashboard-chart meter::-webkit-meter-optimum-value { border-radius: 12px; background: #8454ad; }
.dashboard-chart meter::-moz-meter-bar { border-radius: 12px; background: #8454ad; }
.dashboard-action-list { margin: 0; padding: 5px 8px; list-style: none; }
.dashboard-action-list li + li { border-block-start: 1px solid #eee8f2; }
.dashboard-action-list a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; min-height: 39px; padding: 6px 7px; border-radius: 7px; color: #4c3b60; font-weight: 740; }
.dashboard-action-list a:hover { background: #f8f0fa; text-decoration: none; }
.dashboard-action-list a > svg { color: #78628c; }
.workspace-totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px 7px; }
.workspace-totals li + li { border-block-start: 0; }
.workspace-totals li + li a { border-inline-start: 1px solid var(--line); }
.workspace-totals a strong { color: var(--ink); font-weight: 840; }
.summary-list, .notification-list { list-style: none; padding: 0; margin: 0; }
.summary-list > li { display: flex; gap: 10px; align-items: center; padding: 11px 17px; min-height: 63px; }
.summary-list > li + li { border-block-start: 1px solid var(--line); }
.summary-copy { display: grid; flex: 1; min-width: 0; gap: 1px; }
.summary-copy a, .summary-copy strong { color: var(--ink); font-size: var(--text-label); font-weight: 680; overflow-wrap: anywhere; }
.summary-copy small { color: var(--soft); font-size: var(--text-caption); }
.empty { display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; justify-content: center; padding: 30px 20px; color: var(--muted); min-height: 150px; }
.empty-icon { width: 46px; height: 46px; background: #f3eef8; }
.badge { display: inline-flex; align-items: center; justify-content: center; gap: 5px; width: fit-content; min-height: 25px; padding: 3px 8px; background: #eef1f5; color: #4e5c72; border-radius: 999px; white-space: nowrap; font-size: var(--text-caption); line-height: 1.25; font-weight: 700; }
.badge.positive { background: #e5f6ee; color: #176347; }
.badge.pending { background: #fff2d7; color: #7d4b13; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.field { display: grid; align-content: start; gap: 6px; min-width: 0; }
.field label, .field-label, .permissions-fieldset legend { font-size: var(--text-label); font-weight: 680; color: var(--ink); }
.field input, .field select, .field-static { width: 100%; min-width: 0; min-height: 45px; padding: 8px 11px; background: #fff; border: 1px solid #dcd2e7; border-radius: 9px; color: var(--ink); }
.field input::placeholder { color: #6e637d; opacity: 1; }
.field input:focus, .field select:focus { border-color: #9874bd; }
.field input[aria-invalid='true'], .field select[aria-invalid='true'] { border-color: #b94b42; }
.field input[type='file'] { padding: 5px 7px; }
.field input[type='file']::file-selector-button { border: 0; margin-inline-end: 8px; padding: 5px 9px; color: #60368b; background: #eee7f6; border-radius: 6px; font: inherit; font-weight: 600; cursor: pointer; }
.field-static { display: block; background: #f6f4f8; color: var(--muted); overflow-wrap: anywhere; }
.field-hint { color: var(--muted); font-size: var(--text-small); }
.required { color: #944038; }
.toolbar { padding: 13px 16px; display: flex; gap: 8px; flex-wrap: wrap; border-block-end: 1px solid var(--line); }
.toolbar .field { position: relative; min-width: 115px; }
.toolbar-search { flex: 1 1 200px; }
.toolbar-search input { padding-inline-start: 34px; }
.toolbar-search svg { position: absolute; inset-inline-start: 10px; inset-block-start: 12px; color: #6f5f84; pointer-events: none; }
.table-scroll { overflow-x: auto; overscroll-behavior-inline: contain; }
.data-table { width: 100%; border-collapse: collapse; text-align: start; min-width: 510px; }
.data-table th, .data-table td { padding: 12px 14px; text-align: start; }
.data-table thead { background: #f8f6fa; color: #60536f; font-size: var(--text-small); }
.data-table thead th { font-weight: 700; white-space: nowrap; }
.data-table tbody tr { border-block-start: 1px solid #ece5f1; }
.data-table tbody tr:hover { background: #fbf9fc; }
.data-table tbody th, .data-table tbody td { font-size: var(--text-label); }
.table-identity { display: flex; align-items: center; gap: 9px; }
.table-identity strong { font-weight: 680; overflow-wrap: anywhere; }
.table-identity small { display: block; font-weight: 400; color: var(--muted); overflow-wrap: anywhere; }
.data-table .table-actions { text-align: end; }
.table-actions .actions { justify-content: flex-end; }
.mono { font-family: ui-monospace, SFMono-Regular, monospace; font-size: .87em; }
.tag { background: #f0eaf5; color: #5e516d; padding: 3px 7px; border-radius: 6px; white-space: nowrap; }
.actions { display: flex; gap: 5px; align-items: center; }
.table-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px; padding: 10px 15px; min-height: 49px; border-block-start: 1px solid var(--line); font-size: var(--text-small); color: var(--muted); }
.pager { display: flex; align-items: center; gap: 5px; justify-content: flex-end; }
.pager .button { min-height: 30px; padding: 5px 8px; font-size: var(--text-small); }
.editor-panel { max-inline-size: 1000px; }
.editor-form { display: grid; gap: 17px; padding: 20px clamp(15px, 2.4vw, 25px); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-footer { padding-block-start: 15px; border-block-start: 1px solid var(--line); display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.permissions-fieldset { min-inline-size: 0; margin: 0; border: 0; padding: 0; }
.permissions-fieldset legend { padding: 0; margin-block-end: 8px; }
.permissions-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.permission-choice { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.permission-choice:has(:checked) { border-color: #cdb8e0; background: #f6effa; }
.permission-choice input, .checkbox input { width: 15px; height: 15px; margin: 0; flex: none; accent-color: var(--blue); }
.group-note { align-self: end; padding-block-end: 9px; }
.notification-item { padding: 15px 18px; display: flex; align-items: start; gap: 12px; }
.notification-item + .notification-item { border-block-start: 1px solid var(--line); }
.notification-item.unread { background: #f7f2fa; }
.notification-item:first-child { border-start-start-radius: inherit; border-start-end-radius: inherit; }
.notification-list { border-radius: inherit; }
.notification-body { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.notification-body h2 { font-size: var(--text-body); font-weight: 730; }
.notification-body p { font-size: var(--text-label); color: var(--muted); margin-block: 3px; }
.notification-body time { font-size: var(--text-small); color: var(--soft); }
.upload-panel { padding: 15px 16px; }
.upload-form { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.upload-form .field { flex: 1 1 270px; max-inline-size: 460px; }
.upload-form .button { margin-block-start: 1px; }
.plan-panel { max-inline-size: 740px; }
.plan-intro { display: flex; gap: 15px; padding: 21px; align-items: start; }
.plan-intro p { color: var(--muted); font-size: var(--text-label); }
.plan-intro h2 { font-size: 28px; font-weight: 750; }
.plan-details { margin: 0; padding: 17px 21px; border-block-start: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-details dd { margin: 0; }
.auth-body { background: #fff; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr); }
.auth-main { min-width: 0; display: flex; flex-direction: column; }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 26px clamp(20px, 4.2vw, 54px); }
.auth-card { max-inline-size: 474px; width: 100%; margin: auto; padding: 22px 27px 42px; }
.auth-card h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.2; font-weight: 780; letter-spacing: -.04em; }
.auth-intro { margin-block: 10px 22px; color: var(--muted); }
.stack-form { display: grid; gap: 12px; }
.stack-form > .button.primary { width: 100%; min-height: 44px; margin-block-start: 4px; }
.auth-options { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: var(--text-small); }
.checkbox { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.auth-footer { text-align: center; color: var(--muted); border-block-start: 1px solid var(--line); margin-block-start: 22px; padding-block-start: 14px; }
.auth-footer a, .auth-options a { font-weight: 680; }
.auth-aside { position: relative; isolation: isolate; overflow: hidden; background: #4c2b67; color: #edf3ff; display: grid; align-content: end; padding: clamp(26px, 5vw, 68px); min-height: 540px; }
.auth-aside-content { position: relative; z-index: 1; }
.auth-aside-content p { max-inline-size: 410px; color: #e8d8f3; }
.auth-aside-content .auth-aside-title { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.28; font-weight: 780; color: #fff; margin-block: 15px 10px; }
.auth-aside-rule { display: block; background: #d0b2ec; width: 42px; height: 3px; border-radius: 3px; }
.auth-art i { position: absolute; inset: 50% auto auto 50%; width: var(--ring); aspect-ratio: 1; border: 1px solid #c3a3e64e; border-radius: 50%; transform: translate(-50%, -50%); }
.auth-art span { position: absolute; inset: 50% auto auto 50%; aspect-ratio: 1; display: grid; place-items: center; border: 1px solid #ddc3f978; background: #754d93; color: #f4e6ff; border-radius: 24px; transform: translate(-50%, -50%) rotate(-11deg); box-shadow: 0 18px 45px #31124460; }
.auth-art { position: absolute; width: 350px; aspect-ratio: 1; inset: 38% auto auto 50%; translate: -50% -50%; }
.auth-art i:nth-child(1) { --ring: 165px; }
.auth-art i:nth-child(2) { --ring: 240px; }
.auth-art i:nth-child(3) { --ring: 320px; }
.auth-art span { width: 126px; }
@media (max-width: 1100px) {
    :root { --sidebar: 223px; }
    .metrics-grid { gap: 10px; }
    .metric-card { padding: 11px; }
}
@media (max-width: 850px) {
    .console { display: block; }
    .sidebar { position: fixed; inset: 0; inset-inline-end: auto; width: min(278px, 88vw); visibility: hidden; transform: translateX(-100%); transition: transform .18s ease, visibility .18s; z-index: 11; }
    [dir='rtl'] .sidebar { transform: translateX(100%); }
    .sidebar.open { visibility: visible; transform: none; }
    .sidebar-inner { inset-block-start: 0; height: 100dvh; padding-block-start: 56px; }
    .topbar-brand { min-inline-size: 0; }
    .sidebar-close { display: inline-grid !important; position: absolute; inset-block-start: 10px; inset-inline-end: 13px; background: #f5eef9; color: #63398b; border-color: #ebdff2; }
    .menu-trigger { display: inline-grid !important; }
    .mobile-backdrop:not([hidden]) { display: block !important; position: fixed; inset: 0; width: 100%; height: 100%; z-index: 10; background: #2c143c96; border: 0; }
    body.drawer-open { overflow: hidden; }
    .auth-art { inset-block-start: 29%; }
}
@media (max-width: 620px) {
    .content { padding-inline: 12px; padding-block-start: 13px; }
    .topbar { height: 58px; padding-inline: 11px; gap: 8px; }
    .topbar-start, .topbar-end { gap: 7px; }
    .topbar-end { flex-shrink: 0; }
    .topbar-brand .brand-wordmark, .account-name { display: none; }
    .topbar-brand { min-height: 34px; padding-inline-end: 7px; }
    .topbar-brand .brand-mark { width: 34px; height: 34px; }
    .top-notifications { display: none; }
    .account-link { padding-inline-start: 7px; }
    .dashboard-intro { align-items: start; flex-direction: column; gap: 7px; margin-block-end: 12px; }
    .metric-card { gap: 7px; min-height: 73px; padding: 9px; }
    .metric-card .icon-tile { width: 32px; height: 32px; }
    .metric-card .icon-tile svg { width: 17px; height: 17px; }
    .metric-label { font-size: var(--text-small); }
    .metric-copy strong { font-size: 24px; }
    .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-grid { grid-template-columns: 1fr; }
    .workspace-totals { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .workspace-totals li:nth-child(odd) a { border-inline-start: 0; }
    .page-heading { flex-direction: column; align-items: start; margin-block-end: 16px; gap: 10px; }
    .form-grid, .permissions-grid { grid-template-columns: 1fr; }
    .notification-item { flex-wrap: wrap; padding: 12px; }
    .notification-item .notification-body { flex-basis: 70%; }
    .notification-item > form, .notification-item > .badge { margin-inline-start: 54px; }
    .auth-shell { display: block; }
    .auth-top { padding: 18px 20px; }
    .auth-card { margin-block-start: 14px; padding-inline: 22px; }
    .auth-aside { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }

.academic-hero { position: relative; isolation: isolate; display: flex; align-items: center; min-height: 193px; overflow: hidden; margin-block-end: 16px; padding: 23px clamp(18px, 3vw, 32px); border-radius: 17px; background: #522d70; color: #fff; }
.academic-hero-copy { max-width: 620px; position: relative; z-index: 1; }
.academic-hero h1 { font-size: clamp(27px, 4vw, 40px); font-weight: 770; line-height: 1.25; letter-spacing: -.035em; }
.academic-hero p { color: #efe0f8; margin-block-start: 8px; }
.academic-hero-copy a { margin-block-start: 13px; }
.academic-hero-art { position: absolute; inset-inline-end: clamp(60px, 12vw, 161px); inset-block-start: 50%; display: grid; place-items: center; width: 105px; aspect-ratio: 1; transform: translateY(-50%) rotate(-9deg); color: #f2e0fb; border: 1px solid #ddc3f978; border-radius: 19px; background: #765096; box-shadow: 0 12px 26px #30113b55, 0 0 0 21px #d9b7f120, 0 0 0 48px #d9b7f10d; }
.academic-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.academic-sections > .panel { margin-block-start: 0; }
.academic-section { scroll-margin-block-start: 14px; }
.academic-section-head { display: flex; align-items: start; gap: 12px; padding: 15px 16px 12px; }
.academic-section-head h2 { font-size: 16px; font-weight: 720; }
.academic-section-head p { color: var(--muted); font-size: var(--text-small); margin-block-start: 2px; }
.academic-icon-calendar { color: #623791; background: #efe7f9; }
.academic-icon-structure { color: #6947a8; background: #f1ebfb; }
.academic-icon-curriculum { color: #16736d; background: #e8f5f2; }
.academic-icon-operations { color: #825119; background: #fff0df; }
.academic-resource-list { padding: 0 8px 8px; margin: 0; list-style: none; }
.academic-resource-list li + li { border-block-start: 1px solid #f0eaf5; }
.academic-resource-link { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; column-gap: 10px; min-height: 41px; padding: 7px 8px; border-radius: 8px; color: var(--ink); font-size: var(--text-label); font-weight: 620; }
.academic-resource-link:hover { text-decoration: none; color: var(--blue-dark); background: #f7f0fa; }
.academic-resource-icon, .academic-resource-arrow { color: #766688; }
.academic-resource-count { min-width: 23px; padding-inline: 5px; border-radius: 5px; background: #f0eaf5; color: #5a496a; font-size: var(--text-caption); font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.academic-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-block-end: 11px; color: var(--muted); font-size: var(--text-small); }
.academic-breadcrumb a { display: inline-flex; align-items: center; gap: 6px; }
.academic-breadcrumb [aria-current] { color: var(--ink); font-weight: 640; }
.academic-table { min-width: 580px; }
.academic-table-identity { min-inline-size: 147px; }
.academic-table th:first-child { width: 29%; }
.academic-record-details { display: flex; flex-wrap: wrap; gap: 5px 15px; margin: 0; }
.academic-record-details > div { padding-inline-end: 4px; max-inline-size: 230px; }
.academic-record-details dt { color: var(--muted); font-size: var(--text-caption); }
.academic-record-details dd { margin: 0; color: var(--ink); font-size: var(--text-small); overflow-wrap: anywhere; }
.academic-code { color: var(--muted); }
.academic-field-wide { grid-column: 1 / -1; }
.academic-checkbox { width: fit-content; min-height: 41px; align-self: end; margin-block-start: 24px; }
.academic-enrollment { min-width: 0; border: 1px solid var(--line); border-radius: 11px; padding: 13px; margin: 0; }
.academic-enrollment legend { display: inline-flex; align-items: center; padding-inline: 5px; gap: 6px; color: #523760; font-size: var(--text-body); font-weight: 700; }
.academic-enrollment > p { color: var(--muted); font-size: var(--text-small); margin-block-end: 10px; }
.academic-multi-hint { margin-block-end: 8px; }
.field textarea { display: block; resize: vertical; width: 100%; min-width: 0; min-height: 70px; padding: 8px 11px; background: #fff; border: 1px solid #dcd2e7; border-radius: 9px; color: var(--ink); }
.field textarea[aria-invalid='true'] { border-color: #b94b42; }
.field-error { color: #8f2f2b; font-size: var(--text-small); }
.academic-settings-list { margin: 0; padding: 5px 18px; }
.academic-settings-list > div { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-block: 11px; }
.academic-settings-list > div + div { border-block-start: 1px solid var(--line); }
.academic-settings-list dd { margin: 0; font-weight: 620; }
@media (max-width: 1060px) { .academic-hero-art { inset-inline-end: 69px; opacity: .55; } }
@media (max-width: 620px) {
    .academic-hero { min-height: 170px; }
    .academic-hero-art { inset-inline-end: -33px; opacity: .33; }
    .academic-sections { grid-template-columns: 1fr; }
    .academic-checkbox { margin-block-start: 0; }
}
.field .permission-choice input[type='checkbox'] { min-height: 15px; padding: 0; }
.academic-hero-defaults { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 10px 0 0; }
.academic-hero-defaults div { display: grid; gap: 2px; }
.academic-hero-defaults dt { color: #e5ceef; font-size: var(--text-caption); }
.academic-hero-defaults dd { margin: 0; color: #fff; font-size: var(--text-label); font-weight: 650; }
@media (max-width: 620px) {
    .academic-table, .academic-table tbody { display: block; min-width: 0; }
    .academic-table thead { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
    .academic-table tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 9px; align-items: start; padding: 11px 13px; }
    .academic-table tbody th, .academic-table tbody td { padding: 0; }
    .academic-table tbody th:first-child { grid-column: 1; grid-row: 1; inline-size: 100%; min-inline-size: 0; }
    .academic-table tbody td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
    .academic-table tbody td:nth-child(3) { grid-column: 2; grid-row: 1; justify-self: end; }
    .academic-table tbody .table-actions { grid-column: 2; grid-row: 3; }
    .academic-table-identity, .academic-table-identity > span:last-child { min-inline-size: 0; }
}
