@charset "UTF-8";
/* One coherent palette per signed-in division; Master uses the blue palette. */
.admin-body {
  --sidebar-width:266px; --header-height:66px;
  --primary:#2164e8; --primary-hover:#174db5; --primary-soft:#edf3ff; --accent:#3f7df1;
  --theme-hover:#f5f8ff; --theme-surface:#fafbff; --theme-border:#d9e5fa; --theme-border-strong:#abc3ee;
  --focus-ring:rgb(33 100 232 / 12%); --background:#f3f6fb; --border:#e2e7ef;
  --text:#253243; --ink:var(--text); --muted:#727b89; --line:var(--border);
  --green:var(--primary); --blue:var(--primary); --blue-dark:var(--primary-hover);
  --hero-start:var(--primary-hover); --hero-end:var(--primary);
  --hero-muted:#dce9ff; --hero-text:#e9f1ff;
  --sidebar-start:#0b234a; --sidebar-end:#143d72;
  --sidebar-sub:#bdcfe8; --sidebar-line:rgb(176 210 255 / 20%);
  --sidebar-active-line:#83b4ff; --sidebar-scroll:#3c5f90;
}
.admin-body[data-cbt-theme="sd"] {
  --primary:#008a09; --primary-hover:#007607; --primary-soft:#eaf8ef; --accent:#03ac0e;
  --theme-hover:#f4faf6; --theme-surface:#fafcfb; --theme-border:#dcefe2; --theme-border-strong:#a8cdb4;
  --focus-ring:rgb(0 138 9 / 12%); --background:#f4f8f5; --border:#e1eae4;
  --hero-muted:#ddf6e7; --hero-text:#edfbf2;
  --sidebar-start:#0a301a; --sidebar-end:#155936;
  --sidebar-sub:#c8e8d3; --sidebar-line:rgb(162 219 184 / 20%);
  --sidebar-active-line:#69c997; --sidebar-scroll:#447858;
}
.admin-body[data-cbt-theme="ma"] {
  --primary:#b85c0a; --primary-hover:#974904; --primary-soft:#fff2e7; --accent:#ef7b22;
  --theme-hover:#fff8f2; --theme-surface:#fffcf9; --theme-border:#f2dac6; --theme-border-strong:#e6bc97;
  --focus-ring:rgb(184 92 10 / 12%); --background:#fff8f2; --border:#eee2d8;
  --hero-muted:#ffe5d1; --hero-text:#fff0e4;
  --sidebar-start:#3a1b0b; --sidebar-end:#633112;
  --sidebar-sub:#f1d0b8; --sidebar-line:rgb(243 190 150 / 20%);
  --sidebar-active-line:#edaa77; --sidebar-scroll:#976444;
}
.admin-body[data-cbt-theme] {
  --hero-start:var(--primary-hover); --hero-end:var(--primary);
}
/* Shared signed-in workspace. Login keeps its own compact layout. */
.admin-body { --workspace-gutter:32px; }
.admin-body .admin-workspace, .admin-body .page-content { min-width:0; }
.admin-body .page-content { max-width:1680px; margin:0; padding:30px var(--workspace-gutter) 36px; }
.admin-body .topbar, .admin-body .page-footer { padding-left:var(--workspace-gutter); padding-right:var(--workspace-gutter); }
.admin-body .topbar .workspace-context { color:var(--muted); font-size:12px; font-weight:600; letter-spacing:0; }
.admin-body .topbar-title:not(.workspace-context) { display:none; }
.admin-body .sidebar { padding:24px 16px 18px; }
.admin-body .sidebar .brand { width:100%; gap:10px; }
.admin-body .sidebar .brand-copy { flex:1; }
.admin-body .sidebar .brand-copy strong { font-size:17px; line-height:1.45; letter-spacing:-.35px; overflow-wrap:anywhere; }
.admin-body .sidebar .brand-copy small { margin-top:5px; font-size:11px; line-height:1.5; }
.admin-body .sidebar .workspace-brand-copy strong { font-size:15px; font-weight:750; line-height:1.4; letter-spacing:-.2px; white-space:normal; word-break:normal; overflow-wrap:break-word; }
.admin-body .sidebar-label { margin:25px 12px 10px; }
.admin-body .nav-item { min-height:46px; font-size:13px; }
.admin-body .page-heading { align-items:center; gap:16px; margin-bottom:24px; }
.admin-body .page-heading > div:first-child { flex:1 1 250px; }
.admin-body .page-heading > .row-actions { flex:0 1 auto; justify-content:flex-end; margin-left:auto; }
.admin-body .page-heading h1 { margin:0 0 6px; font-size:26px; line-height:1.35; letter-spacing:-.6px; }
.admin-body .page-heading p { font-size:13px; }
.admin-body .row-actions { flex-wrap:wrap; gap:8px; min-width:0; }
.admin-body .row-actions .button, .admin-body .form-actions .button { max-width:100%; white-space:normal; }
.admin-body .data-panel { border-radius:12px; }
.admin-body .filter-bar { gap:12px; padding:20px 22px; }
.admin-body .filter-bar > div { flex:0 1 170px; min-width:0; }
.admin-body .filter-bar .filter-search { flex:1 1 240px; }
.admin-body .filter-bar input, .admin-body .filter-bar select { min-height:44px; font-size:13px; }
.admin-body .filter-bar .button, .admin-body .filter-reset { min-height:44px; }
.admin-body .data-table { font-size:13px; }
.admin-body .data-table th { font-size:11px; padding:14px 18px; background:var(--theme-surface); color:var(--muted); }
.admin-body .data-table td { padding:18px; }
.admin-body .data-table strong { min-width:0; }
.admin-body .table-pagination { font-size:12px; gap:12px; padding:18px 22px; }
.admin-body .pagination-buttons { flex-wrap:wrap; }
.admin-body .schedule-table td { max-width:260px; white-space:normal; overflow-wrap:anywhere; }
.student-selection-bar { display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; padding:16px 20px; border-top:1px solid var(--border); background:var(--theme-surface); }
.student-selection-labels { display:flex; align-items:center; flex-wrap:wrap; gap:12px; min-width:0; }
.student-select-all { display:flex; align-items:center; gap:10px; font-size:12px; cursor:pointer; min-height:44px; }
.student-selection-count { color:var(--muted); font-size:12px; }
.student-selection-bar input[type="checkbox"], .student-check-cell input, .student-mobile-check input { width:18px; height:18px; min-height:18px; margin:0; padding:0; flex-shrink:0; cursor:pointer; accent-color:var(--primary); }
.student-selection-actions { flex-wrap:wrap; min-width:0; }
.student-selection-actions .text-link { background:none; border:0; cursor:pointer; font:inherit; font-size:12px; min-height:44px; }
.student-selection-actions button:disabled { opacity:.45; cursor:default; }
.admin-body .student-list-table { table-layout:fixed; white-space:normal; }
.admin-body .student-list-table th, .admin-body .student-list-table td { padding-left:12px; padding-right:12px; overflow-wrap:anywhere; }
.admin-body .student-list-table .student-check-cell { width:42px; padding:12px; }
.student-list-table th:last-child { width:25%; }
.student-list-table th:nth-child(2) { width:18%; }
.student-list-table th:nth-child(4) { width:7%; }
.student-list-table th:nth-child(7) { width:9%; }
.person-row-actions { flex-wrap:wrap; gap:6px; }
.student-row-actions .button { white-space:nowrap; }
.student-mobile-check { display:flex; align-items:center; min-height:28px; }
.workspace-card-actions .person-row-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.workspace-card-actions .person-row-actions > a, .workspace-card-actions .person-row-actions > form { min-width:0; }
.admin-body .student-is-selected { background:var(--theme-surface); }
.workspace-mobile-list { display:none; }
.workspace-list-card { min-width:0; padding:20px; border:1px solid var(--border); border-radius:12px; background:var(--surface); }
.workspace-card-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
.workspace-card-heading > div, .workspace-card-heading h2 { flex:1; min-width:0; }
.workspace-card-heading h2 { font-size:16px; line-height:1.5; overflow-wrap:anywhere; }
.workspace-card-heading .review-badge, .workspace-card-heading .status-label { flex-shrink:0; max-width:145px; white-space:normal; }
.workspace-card-details { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:20px 0; }
.workspace-card-details > div { min-width:0; }
.workspace-card-details dt { color:var(--muted); font-size:12px; }
.workspace-card-details dd { margin:4px 0 0; font-size:14px; font-weight:650; overflow-wrap:anywhere; }
.workspace-card-details .workflow-muted { font-weight:400; }
.workspace-card-wide { grid-column:1 / -1; }
.workspace-card-note { padding:13px 14px; margin-bottom:16px; border-radius:8px; background:var(--theme-surface); border:1px solid var(--theme-border); }
.workspace-card-note strong { font-size:12px; }
.workspace-card-note p { margin-top:4px; font-size:13px; color:var(--muted); white-space:pre-wrap; overflow-wrap:anywhere; }
.admin-body .workspace-card-actions { padding-top:16px; margin-top:16px; border-top:1px solid var(--border); }
.admin-body .workspace-card-actions > a, .admin-body .workspace-card-actions > form { flex:1 1 100px; min-width:0; }
.admin-body .workspace-card-actions .button { width:100%; min-height:44px; font-size:13px; }
@media (min-width:1700px) { .admin-body { --workspace-gutter:40px; } }
@media (max-width:1199px) {
  .admin-body { --workspace-gutter:24px; }
  .admin-body .workspace-table-region { display:none; }
  .workspace-mobile-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; padding:20px; border-top:1px solid var(--border); background:var(--background); }
  .admin-body .page-heading > .row-actions { flex-wrap:wrap; }
}
@media (max-width:1023px) {
  .admin-body .sidebar { width:min(300px,calc(100vw - 32px)); padding:24px 18px; padding-top:calc(24px + env(safe-area-inset-top,0px)); padding-bottom:calc(18px + env(safe-area-inset-bottom,0px)); }
  .admin-body .sidebar-brand-row { gap:6px; }
  .admin-body .sidebar-close { flex-shrink:0; }
  .admin-body .topbar { gap:12px; }
  .admin-body .topbar-leading { gap:8px; }
  .admin-body .topbar-mobile-brand { font-size:16px; }
  .admin-body .topbar-account { gap:10px; flex-shrink:0; }
  .admin-body .page-heading > div:first-child { flex-basis:100%; }
  .admin-body .page-heading > .row-actions { margin-left:0; justify-content:flex-start; }
}
@media (max-width:767px) {
  .admin-body { --workspace-gutter:18px; --bottom-height:72px; }
  .admin-body .page-content { padding-top:24px; padding-bottom:28px; }
  .admin-body .topbar { padding-left:12px; padding-right:12px; }
  .admin-body .topbar-account { gap:7px; }
  .admin-body .topbar-user-name { display:none; }
  .admin-body .topbar-leading { gap:5px; }
  .admin-body .topbar-mobile-brand { gap:6px; font-size:14px; }
  .admin-body .access-badge { max-width:100px; overflow:hidden; font-size:10px; }
  .admin-body .page-heading { gap:16px; margin-bottom:20px; }
  .admin-body .page-heading h1 { font-size:23px; }
  .admin-body .page-heading > .row-actions { flex-basis:100%; width:100%; }
  .admin-body .workspace-heading-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .workspace-heading-actions > .button-primary { grid-column:1 / -1; }
  .admin-body .button { min-height:44px; }
  .admin-body .filter-bar { padding:18px; gap:10px; }
  .admin-body .filter-bar > div, .admin-body .filter-bar .filter-search, .admin-body .filter-bar .filter-class { flex:1 1 100%; min-width:0; }
  .admin-body input, .admin-body select, .admin-body textarea, .admin-body .field textarea, .admin-body .filter-bar input, .admin-body .filter-bar select { font-size:16px; }
  .admin-body .filter-bar > .button, .admin-body .filter-reset { flex:1 1 100px; justify-content:center; }
  .workspace-mobile-list { grid-template-columns:minmax(0,1fr); padding:16px; gap:14px; }
  .workspace-list-card { padding:18px; }
  .admin-body .table-pagination { padding:16px; }
  .admin-body .table-pagination > span { width:100%; }
  .admin-body .pagination-buttons { justify-content:space-between; width:100%; }
  .admin-body .mobile-nav-item { min-height:60px; font-size:10px; }
  .admin-body .workflow-tabs { margin-bottom:18px; }
  .admin-body .workflow-tabs a { padding:12px 11px; font-size:12px; }
  .admin-body .workflow-review, .admin-body .workflow-history, .admin-body .schedule-detail, .admin-body .schedule-select-panel { padding:18px; }
  .admin-body .schedule-detail dl, .admin-body .schedule-selection-grid { grid-template-columns:minmax(0,1fr); }
  .admin-body .schedule-choice input { min-height:18px; }
  .admin-body .bank-summary { flex-wrap:wrap; gap:12px; }
  .admin-body .bank-summary > span { max-width:100%; overflow-wrap:anywhere; }
}
@media (max-width:359px) {
  .admin-body { --workspace-gutter:14px; }
  .admin-body .topbar { gap:6px; padding-left:8px; padding-right:8px; }
  .admin-body .access-badge { max-width:85px; font-size:9px; }
  .admin-body .access-badge .icon { display:none; }
  .workspace-mobile-list { padding:12px; }
  .workspace-list-card { padding:16px; }
  .workspace-card-heading { flex-wrap:wrap; }
  .workspace-card-heading > div, .workspace-card-heading h2 { flex-basis:100%; }
}
.workflow-tabs { display:flex; gap:6px; margin:0 0 22px; overflow-x:auto; border-bottom:1px solid var(--border); }
.workflow-tabs a { flex-shrink:0; padding:13px 17px; color:var(--muted); text-decoration:none; border-bottom:3px solid transparent; font-size:13px; font-weight:650; }
.workflow-tabs a.active { color:var(--primary); border-color:var(--primary); }
.workflow-muted { display:block; margin-top:5px; color:var(--muted); font-size:11px; }
.review-badge { display:inline-flex; padding:6px 10px; border-radius:99px; font-size:11px; font-weight:650; background:#f0f1f3; color:#505964; white-space:nowrap; }
.review-approved,.review-published { color:var(--primary); background:var(--primary-soft); }
.review-submitted { color:#805109; background:#fff5da; }
.review-rejected,.review-cancelled { color:#a72f2f; background:#fff0ee; }
.workflow-review { display:flex; flex-wrap:wrap; align-items:center; gap:18px; justify-content:space-between; margin:22px 0; padding:24px; }
.workflow-review h2,.workflow-history h2 { font-size:16px; margin:0 0 9px; }
.workflow-review p,.workflow-history > p { color:var(--muted); font-size:13px; margin:0 0 16px; }
.workflow-review-form { flex:1; min-width:240px; }
.workflow-review-form textarea { width:100%; }
.workflow-review-form .row-actions { margin-top:16px; }
.workflow-preserve { white-space:pre-wrap; overflow-wrap:anywhere; }
.workflow-history { margin-top:22px; padding:24px; }
.workflow-history > summary { font-size:14px; font-weight:650; cursor:pointer; }
.workflow-history > div { padding:16px 0; border-bottom:1px solid var(--border); }
.workflow-history > div:last-child { border-bottom:0; }
.workflow-history > div span { display:block; color:var(--muted); font-size:12px; margin-top:5px; }
.workflow-history > div p { font-size:13px; }
.schedule-selection-grid { display:grid; grid-template-columns:1fr 1fr; gap:22px; margin-top:22px; }
.schedule-select-panel { min-width:0; margin:0; padding:22px; border:1px solid var(--border); }
.schedule-select-panel legend { float:left; width:100%; padding:0; margin-bottom:8px; font-size:16px; font-weight:700; }
.schedule-select-panel > p { clear:both; font-size:12px; color:var(--muted); line-height:1.7; }
.schedule-choice-list { max-height:330px; overflow-y:auto; }
.schedule-choice { display:flex; align-items:flex-start; gap:12px; padding:15px 0; border-bottom:1px solid var(--border); cursor:pointer; }
.schedule-choice:last-child { border-bottom:0; }
.schedule-choice input { width:18px; height:18px; min-height:18px; padding:0; flex-shrink:0; margin:1px 0 0; accent-color:var(--primary); }
.schedule-choice span { min-width:0; overflow-wrap:anywhere; }
.schedule-choice strong { display:block; font-size:13px; }
.schedule-choice small { display:block; margin-top:5px; font-size:11px; color:var(--muted); line-height:1.7; }
.schedule-empty { padding:20px 0; }
.schedule-submit { display:flex; align-items:center; justify-content:space-between; gap:18px; margin:22px 0; }
.schedule-submit p { color:var(--muted); font-size:13px; }
.schedule-detail { padding:28px; }
.schedule-detail dl { display:grid; grid-template-columns:1fr 1fr; gap:24px; margin:0 0 24px; }
.schedule-detail dt { font-size:12px; color:var(--muted); margin-bottom:7px; }
.schedule-detail dd { font-size:14px; font-weight:600; margin:0; overflow-wrap:anywhere; }
.schedule-cancel { margin-top:18px; }
.schedule-question { margin-top:16px; border-top:1px solid var(--border); padding-top:15px; }
.schedule-question > summary { cursor:pointer; font-weight:600; font-size:13px; padding:8px 0; }
.schedule-question .question-preview { padding:18px 0; border:0; box-shadow:none; }
@media (max-width:767px) {
  .schedule-selection-grid { grid-template-columns:1fr; }
  .schedule-detail { padding:22px; }
  .schedule-detail dl { grid-template-columns:1fr; gap:19px; }
  .schedule-submit { flex-direction:column; align-items:stretch; }
  .workflow-review { padding:20px; }
  .workflow-review-form { min-width:0; flex-basis:100%; }
  .workflow-tabs a { padding:12px; }
}

/* Keep these shell rules after the shared responsive form/table rules. */
.admin-body .sidebar {
  padding:23px 18px 17px;
  background:linear-gradient(170deg,var(--sidebar-start),var(--sidebar-end));
  color:#fff; border-right:1px solid var(--sidebar-line);
  scrollbar-color:var(--sidebar-scroll) transparent; scrollbar-width:thin;
}
.admin-body .sidebar .brand { gap:13px; padding:0 5px; }
.admin-body .sidebar .school-brand-logo { width:47px; height:47px; border-radius:50%; }
.admin-body .sidebar .brand-copy strong { color:#fff; }
.admin-body .sidebar .navy-brand-copy strong { font-size:22px; font-weight:800; line-height:1.15; letter-spacing:-.55px; }
.admin-body .sidebar .navy-brand-copy small { color:#fff; font-size:13px; font-weight:750; line-height:1.3; margin-top:3px; }
.admin-body .workspace-school-caption { color:var(--sidebar-sub); font-size:11px; font-weight:550; line-height:1.5; margin-top:5px; overflow-wrap:normal; }
.admin-body .sidebar-label, .admin-body .sidebar-school { display:none; }
.workspace-scope { display:flex; align-items:center; gap:10px; padding:10px 13px; margin:23px 0 21px; border:1px solid var(--sidebar-line); border-radius:9px; background:rgb(255 255 255 / 8%); color:var(--sidebar-sub); font-size:12px; font-weight:650; }
.workspace-scope .icon { width:16px; height:16px; }
.workspace-scope-dot { width:6px; height:6px; border-radius:50%; background:var(--accent); margin-left:auto; flex-shrink:0; }
.admin-body .sidebar-nav { gap:6px; }
.admin-body .sidebar-menu-group { display:flex; flex-direction:column; gap:4px; margin-top:14px; }
.admin-body .sidebar-group-title { margin:0 15px 3px; padding:0; color:var(--sidebar-sub); font-size:10px; font-weight:650; line-height:1.5; letter-spacing:1px; text-transform:uppercase; }
.admin-body .sidebar-menu-account { margin-top:16px; padding-top:12px; border-top:1px solid var(--sidebar-line); }
.admin-body .sidebar .nav-item { position:relative; min-height:48px; padding:11px 15px; gap:14px; border:1px solid transparent; border-radius:9px; color:#fff; font-size:13px; font-weight:700; }
.admin-body .sidebar .nav-item .icon { width:18px; height:18px; }
.admin-body .sidebar .nav-item span { min-width:0; }
.admin-body .sidebar .nav-item:hover { background:rgb(255 255 255 / 8%); color:#fff; }
.admin-body .sidebar .nav-item.active { background:var(--primary); border-color:var(--sidebar-active-line); color:#fff; box-shadow:inset 0 0 0 1px rgb(255 255 255 / 8%); font-weight:750; }
.admin-body .sidebar-bottom { padding-top:22px; }
.admin-body .sidebar-profile { padding:13px 3px 0; border:0; border-top:1px solid var(--sidebar-line); }
.admin-body .sidebar-profile small { color:var(--sidebar-sub); font-size:11px; }
.admin-body .sidebar .avatar { color:#fff; background:var(--primary); }
.admin-body .logout-button { width:100%; border-radius:8px; color:var(--sidebar-sub); font-size:12px; }
.admin-body .logout-button:hover { color:#fff; background:rgb(255 255 255 / 8%); }
.admin-body .sidebar-close { color:var(--sidebar-sub); }
.admin-body .sidebar-close:hover { color:#fff; background:rgb(255 255 255 / 8%); }
.admin-body .sidebar a:focus-visible, .admin-body .sidebar button:focus-visible { outline-color:var(--sidebar-active-line); }
.admin-body .topbar { justify-content:flex-start; gap:15px; padding:10px 23px 10px 17px; height:auto; min-height:66px; border-color:var(--border); }
.admin-body .topbar-leading { flex:0 0 auto; }
.workspace-collapse { display:grid; place-items:center; width:44px; height:44px; flex-shrink:0; padding:0; border-radius:9px; background:transparent; color:var(--muted); }
.workspace-collapse .icon, .admin-body .menu-toggle .icon { width:18px; height:18px; }
.workspace-collapse:hover, .admin-body .menu-toggle:hover { background:var(--primary-soft); color:var(--primary); }
.workspace-menu-search { display:flex; align-items:center; position:relative; flex:1 1 390px; min-width:0; max-width:390px; padding:0 14px; border:1px solid var(--theme-border-strong); border-radius:24px; background:var(--primary-soft); color:var(--primary); }
.workspace-menu-search:focus-within { outline:2px solid var(--primary); outline-offset:2px; }
.workspace-search-icon { width:17px; height:17px; }
.admin-body .workspace-menu-search input { min-width:0; width:100%; min-height:40px; padding:0 0 0 9px; border:0; border-radius:24px; background:transparent; color:var(--text); font-size:12px; box-shadow:none; outline:none; }
.admin-body .workspace-menu-search input::placeholder { color:var(--muted); }
.workspace-search-popover { position:absolute; top:calc(100% + 10px); left:0; right:0; min-width:0; max-height:min(400px,65vh); overflow-y:auto; padding:7px; border:1px solid var(--border); border-radius:13px; background:#fff; box-shadow:0 12px 32px rgb(15 23 42 / 16%); }
.workspace-search-popover ul { list-style:none; margin:0; padding:0; }
.workspace-search-popover a { display:flex; align-items:center; min-height:44px; padding:10px 12px; border-radius:7px; color:var(--text); font-size:13px; overflow-wrap:anywhere; }
.workspace-search-popover a:hover, .workspace-search-popover a[aria-selected="true"] { background:var(--primary-soft); }
.workspace-search-empty { padding:12px; color:var(--muted); font-size:12px; }
.admin-body .topbar-account { margin-left:auto; flex:0 1 auto; min-width:0; }
.workspace-profile { min-height:44px; gap:9px; }
.admin-body .workspace-profile .avatar { width:39px; height:39px; color:#fff; background:var(--primary); }
.workspace-profile-copy { display:flex; flex-direction:column; min-width:0; }
.admin-body .workspace-profile .topbar-user-name { display:block; max-width:180px; color:var(--text); font-size:12px; font-weight:700; }
.workspace-profile-copy small { font-size:11px; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:180px; }
.workspace-profile-chevron { width:15px; height:15px; color:var(--muted); margin-left:3px; }
.admin-body .page-heading { padding:25px; border-radius:17px; background:linear-gradient(105deg,var(--hero-start) 0%,var(--hero-end) 100%); color:#fff; }
.admin-body .page-heading h1 { font-size:27px; letter-spacing:-.8px; }
.admin-body .page-heading p { color:var(--hero-text); }
.admin-body .page-heading .eyebrow { color:var(--hero-muted); }
.admin-body .page-heading > .text-link { flex-shrink:0; min-height:44px; padding:10px 14px; border:1px solid rgb(255 255 255 / 45%); border-radius:8px; color:#fff; }
.admin-body .page-heading > .text-link:hover { background:rgb(255 255 255 / 12%); }
.admin-body .page-heading > .text-link:focus-visible { outline-color:#fff; }
.admin-body .page-heading > .button, .admin-body .page-heading > .row-actions { flex:0 1 auto; }
.admin-body .page-heading .button { box-shadow:0 2px 6px rgb(0 0 0 / 10%); }
.admin-body .page-heading .button-primary { border-color:rgb(255 255 255 / 45%); }
.admin-body .data-panel, .admin-body .panel, .admin-body .metric { border-color:var(--border); border-radius:13px; }
.admin-body .metric-icon { color:var(--primary); background:var(--primary-soft); }
.admin-body .page-footer { color:var(--muted); border-top:0; font-size:11px; gap:12px; }
.admin-body .menu-backdrop { background:rgb(15 23 42 / 38%); }
@media (min-width:1024px) {
  .admin-body.sidebar-compact { --sidebar-width:78px; }
  .sidebar-compact .sidebar { padding-left:12px; padding-right:12px; }
  .sidebar-compact .sidebar .brand { justify-content:center; padding:0 0 24px; }
  .sidebar-compact .sidebar .school-brand-logo { width:42px; height:42px; }
  .sidebar-compact .sidebar .brand-copy, .sidebar-compact .workspace-scope, .sidebar-compact .sidebar .nav-item > span, .sidebar-compact .sidebar-profile > div, .sidebar-compact .workspace-logout-label, .sidebar-compact .sidebar-group-title { display:none; }
  .sidebar-compact .sidebar-menu-group { margin-top:8px; padding-top:8px; border-top:1px solid var(--sidebar-line); }
  .sidebar-compact .sidebar .nav-item { justify-content:center; padding:11px 0; }
  .sidebar-compact .sidebar-profile { justify-content:center; }
  .sidebar-compact .logout-button { justify-content:center; padding:9px 0; }
}
@media (max-width:1023px) {
  .admin-body .sidebar { width:min(300px,calc(100vw - 32px)); padding:calc(23px + env(safe-area-inset-top,0px)) 18px calc(17px + env(safe-area-inset-bottom,0px)); box-shadow:14px 0 35px rgb(15 23 42 / 16%); }
  .admin-body .sidebar .brand { padding:0; gap:10px; }
  .admin-body .sidebar .school-brand-logo { width:44px; height:44px; }
  .workspace-collapse { display:none; }
  .admin-body .topbar { padding:calc(10px + env(safe-area-inset-top,0px)) 18px 10px 12px; }
  .admin-body .topbar-leading { flex:0 0 auto; }
  .admin-body .topbar-account { flex:0 0 auto; }
  .admin-body .page-heading > .row-actions { margin-left:0; }
}
@media (max-width:767px) {
  .admin-body .topbar { gap:9px; padding-left:10px; padding-right:12px; }
  .admin-body .topbar .workspace-profile-copy, .workspace-profile-chevron { display:none; }
  .admin-body .workspace-profile .avatar { width:39px; height:39px; }
  .admin-body .workspace-menu-search input { font-size:16px; }
  .workspace-menu-search { padding-left:12px; padding-right:9px; }
  .workspace-search-popover { width:max(100%,210px); max-width:calc(100vw - 76px); }
  .admin-body .page-heading { padding:22px; }
  .admin-body .page-heading h1 { font-size:23px; }
  .admin-body .page-heading > .row-actions { flex-basis:100%; }
}
@media (prefers-reduced-motion:reduce) { .admin-body .sidebar { transition:none; } }
.student-import-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; align-items:start; }
.student-import-panel { padding:26px; min-width:0; margin-bottom:22px; }
.student-import-panel h2 { font-size:18px; margin-bottom:12px; }
.student-import-panel > p { font-size:14px; line-height:1.8; margin-bottom:18px; color:var(--muted); }
.student-import-panel .field-help { margin-top:14px; }
.student-import-panel progress { display:block; width:100%; height:16px; accent-color:var(--primary); margin:14px 0 22px; }
.student-import-panel [data-import-error] { margin:18px 0; }
.student-class-guide { margin-top:24px; border-top:1px solid var(--border); padding-top:18px; }
.student-class-guide summary { font-size:14px; font-weight:650; cursor:pointer; }
.student-class-list { max-height:280px; overflow-y:auto; margin-top:14px; }
.student-class-list > div { display:flex; flex-wrap:wrap; justify-content:space-between; gap:10px; padding:12px 0; border-bottom:1px solid var(--border); font-size:13px; }
.student-import-data { margin-top:22px; }
.student-import-data .data-table { white-space:normal; }
.student-import-data .workspace-card-meta dd, .student-import-data .workspace-list-card h3 { overflow-wrap:anywhere; }
@media(max-width:1199px) { .student-import-grid { grid-template-columns:minmax(0,1fr); gap:0; } }
@media(max-width:767px) { .student-import-panel { padding:20px; } .student-import-panel .form-actions { flex-wrap:wrap; } .student-import-panel .form-actions > * { flex:1 1 100%; justify-content:center; } }


.student-preview-navigation { display:flex; flex-wrap:wrap; justify-content:space-between; gap:12px; margin:0 0 24px; font-size:13px; }
.student-card-preview-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr)); gap:24px; align-items:start; }
.student-preview-card { --card-color:#1d4ed8; container-type:inline-size; width:100%; max-width:520px; min-width:0; overflow:hidden; border:1px solid #dbe2ec; border-radius:14px; background:#fff; box-shadow:0 8px 24px #0f172a0c; color:#0f172a; }
.student-preview-sd { --card-color:#15803d; } .student-preview-ma { --card-color:#ea580c; }
.student-preview-card header { display:flex; align-items:center; gap:3.8cqw; height:23.4cqw; padding:2.1cqw 4.2cqw; color:#fff; background:var(--card-color); }
.student-preview-card header img { width:19.2cqw; height:19.2cqw; flex-shrink:0; object-fit:contain; border-radius:50%; }
.student-card-school { min-width:0; border-left:.25cqw solid #ffffffc9; padding-left:4cqw; display:grid; gap:.9cqw; }
.student-card-school span { display:block; font-size:3.1cqw; line-height:1.2; color:#fff; }
.student-card-school strong { display:block; font-size:4.3cqw; font-weight:800; line-height:1.25; color:#fff; }
.student-preview-card-body { min-height:35cqw; padding:2cqw 4.5cqw .5cqw; }
.student-card-kicker { font-size:2.6cqw; line-height:1; letter-spacing:.1cqw; font-weight:750; color:#64748b; }
.student-card-unit { display:block; width:fit-content; min-width:17cqw; margin-top:.8cqw; padding:.5cqw 3.5cqw; border-radius:20px; background:var(--card-color); color:#fff; font-size:3.7cqw; line-height:1; font-weight:800; text-align:center; }
.student-preview-card-body h2 { font-size:5cqw; line-height:1.18; font-weight:800; margin:1.3cqw 0 1.8cqw; overflow-wrap:anywhere; }
.student-preview-card-body dl { display:grid; grid-template-columns:33fr 27fr 40fr; gap:0; margin:0; }
.student-preview-card-body dl > div { min-width:0; padding-left:2.2cqw; border-left:1px solid #dbe2ec; }
.student-preview-card-body dl > div:first-child { padding-left:0; border-left:0; }
.student-preview-card-body dt { font-size:2.4cqw; line-height:1.2; color:#64748b; }
.student-preview-card-body dd { margin:.5cqw 0 0; font-size:3.25cqw; line-height:1.15; font-weight:750; overflow-wrap:anywhere; }
.student-preview-card-body dl.student-card-login { grid-template-columns:1fr 1fr; margin-top:1.5cqw; padding-top:.9cqw; border-top:1px solid #e2e8f0; }
.student-card-password { white-space:pre-wrap; font-variant-ligatures:none; }
.card-password-panel { margin-bottom:24px; }
.card-password-panel h2, .management-form > h2 { margin:0 0 16px; font-size:18px; }
.student-preview-card footer { display:flex; align-items:center; justify-content:center; gap:3cqw; padding:.9cqw 4.5cqw; min-height:4.9cqw; color:#64748b; font-size:2.5cqw; line-height:1.2; }
.student-preview-card footer span { overflow-wrap:anywhere; text-align:center; }
.student-preview-card footer::before, .student-preview-card footer::after { content:''; height:1px; flex:1; background:#cbd5e1; }
.student-preview-card--expanded .student-preview-card-body dl { grid-template-columns:1fr 1fr; gap:3cqw; }
.student-preview-card--expanded .student-preview-card-body dl > div { padding:0; border:0; }
.student-preview-card--expanded .student-preview-card-body { padding-bottom:3cqw; }
@media(max-width:479px) { .student-card-preview-grid { gap:16px; } }

.admin-body .teacher-list-table { table-layout:fixed; white-space:normal; }
.admin-body .teacher-list-table th, .admin-body .teacher-list-table td { overflow-wrap:anywhere; padding-left:12px; padding-right:12px; }
.teacher-list-table th:first-child { width:20%; } .teacher-list-table th:last-child { width:30%; } .teacher-list-table th:nth-child(3) { width:8%; } .teacher-list-table th:nth-child(5) { width:11%; }
.admin-body .class-list-table { table-layout:fixed; white-space:normal; }
.class-list-table th, .class-list-table td { overflow-wrap:anywhere; padding-left:12px; padding-right:12px; }
.class-list-table th:first-child { width:20%; } .class-list-table th:last-child { width:24%; } .class-list-table th:nth-child(2), .class-list-table th:nth-child(3) { width:8%; }
.schedule-delete-action { margin:0 0 24px; }
.workspace-card-meta { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 18px; margin:18px 0; }
.workspace-card-meta > div { min-width:0; }
.workspace-card-meta dt { font-size:11px; line-height:1.4; color:var(--muted); }
.workspace-card-meta dd { margin:4px 0 0; font-size:14px; line-height:1.5; font-weight:600; overflow-wrap:anywhere; }
.import-question-preview { padding: 22px 0; border-bottom: 1px solid var(--line, #e2e8f0); }
.import-question-preview:last-child { border-bottom: 0; }
.import-question-preview .preformatted { white-space: pre-wrap; overflow-wrap: anywhere; }
.import-question-preview .question-options > div { display: flex; gap: 12px; padding: 6px 0; }
.import-question-preview .question-options dd { margin: 0; overflow-wrap: anywhere; }
