@font-face { font-family: "Desk Sans"; src: url("/fonts/desk-sans.woff2") format("woff2"); font-weight: 200 900; font-stretch: 75% 125%; font-display: swap; }
:root {
  color-scheme: light;
  --wash: #e9edf1; --paper: #fff; --paper-2: #f7f9fb;
  --ink: #18212c; --ink-2: #465263; --ink-3: #6f7a8a; --ink-4: #a9b1bc;
  --muted: #465263; --rule: #18212c14; --rule-2: #18212c24;
  --blue: #213e74; --action: #2d57a3; --action-hi: #3b67b8; --blue-soft: #e7ecf6;
  --red: #d03b3b; --lift: 0 1px 2px #18212c0f, 0 18px 40px -26px #18212c59;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--wash); font: 14px/20px "Desk Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; font-feature-settings: "ss01"; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
button, a, input, summary { touch-action: manipulation; }
input { min-width: 0; }
h1 { margin: 0; font-size: 30px; line-height: 36px; font-weight: 760; letter-spacing: -.03em; }
h2 { margin: 0; font-size: 17px; line-height: 23px; font-weight: 700; letter-spacing: -.015em; }
p { color: var(--ink-3); }
:focus-visible { outline: 2px solid #9fb2d6; outline-offset: 3px; }
[hidden] { display: none !important; }
.ic { width: 18px; height: 18px; flex: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -100px; padding: 12px; background: white; z-index: 200; border-radius: 8px; }
.skip-link:focus { top: 8px; }
.validation-summary-valid, .field-validation-valid { display: none; }
.desk-body { overflow: hidden; }
.desk-app { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 14px; height: 100dvh; padding: 14px; }
.desk-app.without-nav { grid-template-columns: minmax(0, 1fr); max-width: 960px; margin: auto; }
.nav-panel { display: grid; grid-template-columns: 54px minmax(0, 1fr); min-height: 0; border-radius: 18px; background: #f5f7f9; box-shadow: var(--lift), 0 0 0 1px var(--rule); }
.module-rail { position: relative; z-index: 5; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 0; border-radius: 18px 0 0 18px; background: #e3e8ee; box-shadow: inset -1px 0 var(--rule); }
.module-brand { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px; border-radius: 12px; background: var(--ink); box-shadow: 0 1px 2px #18212c40, 0 8px 16px -8px #18212cb3; }
.module-brand svg { width: 24px; height: 24px; }
.asquala-mark { display: block; object-fit: contain; }
.module-brand .asquala-mark { width: 28px; height: 28px; filter: brightness(0) invert(1); }
.module-links { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.module-link { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: var(--ink-3); padding: 0; }
.module-link .ic { width: 20px; height: 20px; }
.module-link:hover { background: #ffffffd9; color: var(--ink); text-decoration: none; }
.module-link.is-current { color: white; background: linear-gradient(180deg, var(--action-hi), var(--action)); box-shadow: 0 0 0 3px #ffffffe6, 0 8px 16px -6px #213e7499; }
.mobile-module-label, .mobile-menu-button { display: none; }
.account-menu { position: relative; margin-top: auto; }
.account-menu > summary { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: white; font-size: 12px; font-weight: 700; cursor: pointer; box-shadow: 0 0 0 3px #ffffffb3; list-style: none; }
.account-menu > summary::-webkit-details-marker { display: none; }
.account-popover { position: absolute; left: 48px; bottom: 0; width: 225px; padding: 16px; background: white; border-radius: 12px; box-shadow: 0 8px 32px #18212c26, 0 0 0 1px var(--rule); overflow-wrap: anywhere; }
.account-popover > b, .account-popover > span { display: block; }
.account-popover > b { font-weight: 650; }
.account-popover > span { color: var(--ink-3); font-size: 12.5px; margin-top: 3px; }
.account-popover form { border-top: 1px solid var(--rule); margin-top: 12px; padding-top: 10px; }
.account-popover button { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); padding: 4px 0; }
.context-menu { min-width: 0; padding: 16px 12px 14px; }
.school-identity { display: flex; align-items: center; gap: 10px; padding: 0 4px; }
.school-emblem { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: #fff; color: var(--ink-2); font-size: 12px; font-weight: 650; box-shadow: 0 0 0 1px var(--rule-2); }
.school-identity b { display: block; font-size: 14px; line-height: 19px; font-weight: 680; overflow-wrap: anywhere; }
.school-identity div > span { display: block; font-size: 12.5px; line-height: 17px; color: var(--ink-3); }
.module-heading { margin: 26px 6px 2px; }
.module-heading h2 { font-size: 22px; line-height: 28px; font-weight: 760; letter-spacing: -.03em; }
.menu-group-label { margin: 22px 8px 6px; color: var(--ink-3); font-size: 12.5px; line-height: 16px; font-weight: 500; }
.context-links { display: flex; flex-direction: column; gap: 2px; }
.context-links a { display: flex; align-items: center; gap: 9px; min-height: 34px; padding: 6px 9px; border-radius: 9px; color: var(--ink-2); font-size: 13.5px; line-height: 18px; }
.context-links a > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.context-links a:hover { text-decoration: none; background: #fff; }
.context-links a.is-current { background: var(--blue-soft); color: var(--blue); font-weight: 650; }
.context-links .ic { width: 17px; height: 17px; color: var(--ink-3); }
.context-links a.is-current .ic { color: var(--blue); }
.menu-square { width: 7px; height: 7px; flex: none; border-radius: 2px; background: var(--ink-4); margin: 0 5px; }
.is-current .menu-square { background: var(--blue); }
.menu-add { display: inline-flex; align-items: center; gap: 9px; padding: 9px; margin-top: 4px; color: var(--ink-3); font-size: 13px; }
.menu-add .ic { width: 16px; height: 16px; }
.menu-search { position: relative; display: flex; align-items: center; margin-top: 14px; }
.menu-search .ic { position: absolute; left: 11px; width: 15px; height: 15px; color: var(--ink-3); pointer-events: none; }
.menu-search input { width: 100%; height: 36px; padding: 0 10px 0 33px; border: 0; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink); font: inherit; font-size: 13.5px; }
.menu-search input::placeholder { color: var(--ink-3); }
.menu-search input:hover { box-shadow: inset 0 0 0 1px var(--rule-2); }
.module-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.module-add { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: var(--ink-3); }
.module-add:hover { background: #fff; color: var(--blue); text-decoration: none; }
.context-links a small.menu-tag { margin-left: auto; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.context-links a.is-current small.menu-tag { color: var(--blue); }
.desk-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; min-height: 0; }
.desk-main.has-notes { grid-template-columns: minmax(0, 1fr) 270px; }
.sheet { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; background: var(--paper); border-radius: 18px; box-shadow: var(--lift), 0 0 0 1px var(--rule); }
.sheet-head { flex: none; padding: 18px 24px 0; }
.breadcrumb { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 12.5px; line-height: 19px; }
.breadcrumb a { color: inherit; }
.breadcrumb > span { color: var(--ink-4); }
.sheet-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; margin-top: 4px; }
.sheet-title h1 { overflow-wrap: anywhere; min-width: 0; }
.title-meta { color: var(--ink-2); font-size: 13.5px; }
.head-action { margin-left: auto; align-self: center; }
.head-action-group { display: flex; align-items: center; gap: 8px; }
.primary-action { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 32px; padding: 7px 12px; border-radius: 9px; background: linear-gradient(180deg, var(--action-hi), var(--action)); color: #fff; font-size: 13px; line-height: 18px; font-weight: 650; text-decoration: none; box-shadow: 0 1px 2px #213e744d, inset 0 1px #ffffff29, 0 6px 14px -9px #2d57a3e6; }
.primary-action:hover { color: #fff; text-decoration: none; background: linear-gradient(180deg, #4471c3, var(--action-hi)); }
.primary-action .ic { width: 15px; height: 15px; }
.secondary-action { padding: 7px 11px; border-radius: 8px; background: #edf1f6; color: var(--ink-2); font-size: 13px; }
.sheet-tabs { display: flex; gap: 2px; margin-top: 12px; border-bottom: 1px solid var(--rule); }
.sheet-tabs a { position: relative; padding: 9px 12px 11px; color: var(--ink-3); font-size: 13.5px; white-space: nowrap; }
.sheet-tabs a:hover { text-decoration: none; color: var(--ink); }
.sheet-tabs a[aria-current="page"] { color: var(--ink); font-weight: 650; }
.sheet-tabs a[aria-current="page"]::after { content: ""; position: absolute; bottom: -1px; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--ink); }
.heading-rule { border-bottom: 1px solid var(--rule); margin-top: 18px; }
.sheet-body { flex: 1; min-height: 0; overflow: auto; padding: 0 24px 28px; scrollbar-width: thin; }
.section-heading { display: flex; align-items: center; gap: 12px; margin: 26px 0 14px; }
.section-heading > span { margin-left: auto; font-size: 12.5px; color: var(--ink-3); }
.register { width: 100%; border-collapse: collapse; text-align: left; font-variant-numeric: tabular-nums; }
.register th { position: sticky; top: 0; z-index: 1; background: white; color: var(--ink-3); font-size: 12.5px; line-height: 18px; font-weight: 450; border-bottom: 1px solid var(--rule-2); padding: 8px; }
.register td { padding: 14px 8px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.register tbody tr:hover:not(:has(.empty-register)) { background: var(--paper-2); }
.register .row-number { width: 45px; color: var(--ink-4); font-size: 12px; }
.register .status-column { width: 112px; }
.register .row-arrow { width: 34px; }
.row-arrow a { display: grid; place-items: center; width: 28px; height: 28px; color: var(--ink-4); }
.row-arrow .ic { width: 15px; height: 15px; }
.record-link { color: var(--ink); font-weight: 650; overflow-wrap: anywhere; }
.written { color: var(--blue); font-weight: 550; font-variant-numeric: tabular-nums; }
.record-status { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); font-size: 12.5px; white-space: nowrap; }
.record-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }
.register .empty-register { padding: 70px 12px 86px; text-align: center; }
.empty-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 18px; color: var(--ink-3); background: var(--paper-2); border-radius: 14px; }
.empty-icon .ic { width: 27px; height: 27px; stroke-width: 1.4; }
.empty-register h3 { margin: 0 0 7px; font-size: 17px; line-height: 23px; font-weight: 650; letter-spacing: -.02em; }
.empty-register p { margin: 0; color: var(--ink-3); font-size: 13px; }
.record-section { max-width: 100%; }
.record-fields { margin: 0; }
.record-fields > div, .field-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); align-items: center; gap: 16px; min-height: 54px; border-top: 1px solid var(--rule); }
.record-fields > div:last-child, .field-row:last-child { border-bottom: 1px solid var(--rule); }
.record-fields dt, .field-row > label { color: var(--ink-3); font-size: 13.5px; line-height: 19px; }
.record-fields dd { margin: 0; padding: 13px 0; overflow-wrap: anywhere; }
.field-value { min-width: 0; padding: 5px 0; }
.ruled-form input:not([type="hidden"]) { display: block; max-width: 420px; width: 100%; padding: 8px 10px; margin-left: -10px; border: 0; border-radius: 6px; background: transparent; color: var(--blue); font-size: 14px; line-height: 21px; font-weight: 550; outline: 0; }
.ruled-form input::placeholder { color: var(--ink-4); font-weight: 400; }
.ruled-form input:hover { background: var(--paper-2); }
.ruled-form input:focus-visible { background: var(--paper-2); box-shadow: 0 0 0 2px #9fb2d6; }
.ruled-form .input-validation-error { background: #fbecea; }
.field-validation-error { display: block; margin: 3px 0; font-size: 12.5px; line-height: 18px; color: var(--red); }
.sheet-errors.validation-summary-errors { margin: 20px 0; padding: 12px 16px; color: var(--red); background: #fbecea; border-radius: 8px; font-size: 13px; }
.sheet-errors ul { margin: 0; padding-left: 16px; }
.record-return { margin-top: 18px; font-size: 13px; }
.record-return a, .sheet-footer a, .notes-link { display: inline-flex; align-items: center; gap: 7px; }
.record-return .ic, .sheet-footer .ic { width: 15px; height: 15px; }
.sheet-footer { display: flex; align-items: center; gap: 12px; flex: none; min-height: 43px; padding: 10px 24px; border-top: 1px solid var(--rule); font-size: 12.5px; color: var(--ink-3); background: #fbfcfd; }
.sheet-footer > span { margin-left: auto; }
.history-section { margin-top: 34px; }
.record-history { list-style: none; padding: 0; margin: 0; }
.record-history li { position: relative; display: flex; gap: 15px; min-height: 68px; padding: 10px 0; }
.record-history li:not(:last-child)::after { content: ""; position: absolute; left: 4px; top: 23px; bottom: -14px; border-left: 1px solid var(--rule-2); }
.history-marker { position: relative; z-index: 1; width: 9px; height: 9px; flex: none; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px #fff; margin-top: 5px; }
.record-history b { display: block; font-weight: 550; font-size: 13.5px; line-height: 20px; }
.record-history time { display: flex; gap: 12px; color: var(--ink-3); font-size: 12.5px; line-height: 20px; }
.record-history time > span { color: var(--ink-4); }
.record-history .history-empty { color: var(--ink-3); font-size: 13px; }
.record-notes { align-self: start; padding: 18px 16px; border-radius: 16px; background: var(--paper); box-shadow: var(--lift), 0 0 0 1px var(--rule); }
.record-notes h2, .details-drawer h2 { margin: 0 0 16px; font-size: 13.5px; line-height: 19px; font-weight: 650; letter-spacing: 0; }
.quiet-danger { padding: 7px 10px; color: #ac3030; background: #fbecea; border-radius: 7px; font-size: 12.5px; }
.notes-link { font-size: 13px; }
.details-trigger, .mobile-context-bar { display: none; }
dialog { border: 0; color: var(--ink); background: white; box-shadow: 0 16px 50px #18212c33; }
dialog::backdrop { background: #18212c3d; }
.context-drawer { position: fixed; inset: 0 auto 0 0; width: min(310px, 88vw); max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border-radius: 0 18px 18px 0; overflow: auto; }
.context-drawer .context-menu { padding-top: 24px; }
.context-drawer .school-identity { padding-right: 22px; }
.drawer-close { position: absolute; right: 10px; top: 10px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--ink-3); }
.drawer-close:hover { background: var(--paper-2); }
.details-drawer { position: fixed; inset: 12px 12px 12px auto; margin: 0; padding: 24px 20px; width: min(340px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); border-radius: 16px; overflow: auto; }
.details-drawer h2 { padding-right: 28px; }
@media (max-width: 1379px) {
  .desk-main.has-notes { grid-template-columns: minmax(0, 1fr); }
  .record-notes { display: none; }
  .details-trigger { display: inline-flex; }
}
@media (max-height: 760px) and (min-width: 701px) {
  .context-menu { padding-top: 14px; }
  .module-heading { margin-top: 18px; }
  .menu-group-label { margin-top: 14px; }
  .campus-links a { min-height: 28px; padding-top: 3px; padding-bottom: 3px; }
}
@media (max-width: 1000px) and (min-width: 701px) {
  .desk-app { grid-template-columns: 250px minmax(0, 1fr); }
  .sheet-title .title-meta { flex-basis: 100%; }
}
@media (max-width: 700px) {
  .desk-body { overflow: auto; }
  .desk-app { display: block; min-height: 100dvh; height: auto; padding: 8px 8px 78px; }
  .nav-panel { display: contents; }
  .desktop-context { display: none; }
  .module-rail { position: fixed; inset: auto 0 0; z-index: 20; flex-direction: row; justify-content: space-around; gap: 10px; height: 62px; padding: 0 16px env(safe-area-inset-bottom); border-radius: 0; background: #f4f6f9; box-shadow: 0 -1px var(--rule-2); }
  .module-brand { display: none; }
  .module-links { flex-direction: row; flex: 1; justify-content: space-around; gap: 2px; }
  .module-link { width: 52px; height: 46px; border-radius: 9px; gap: 1px; align-content: center; }
  .module-link.is-current { background: var(--blue-soft); color: var(--blue); box-shadow: none; }
  .mobile-module-label { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; line-height: 14px; }
  .mobile-menu-button { display: grid; }
  .account-menu { margin: 0 12px; }
  .account-menu > summary { width: 32px; height: 32px; font-size: 11px; }
  .account-popover { left: auto; right: -6px; bottom: 48px; }
  .desk-main { display: block; }
  .sheet { min-height: calc(100dvh - 86px); border-radius: 14px; overflow: visible; }
  .mobile-context-bar { display: flex; padding: 9px 14px 0; }
  .mobile-context-bar button { display: inline-flex; align-items: center; gap: 7px; padding: 3px 0; color: var(--ink-3); font-size: 12.5px; }
  .mobile-context-bar .ic { width: 16px; height: 16px; }
  .sheet-head { padding: 10px 16px 0; }
  .sheet-title { gap: 7px 10px; }
  .sheet-title h1 { font-size: 25px; line-height: 31px; }
  .sheet-title .title-meta { flex-basis: 100%; font-size: 13px; }
  .head-action { margin-left: 0; }
  .sheet-title .head-action-group { flex-basis: 100%; }
  .primary-action { min-height: 38px; padding: 9px 12px; }
  .sheet-tabs { margin-top: 10px; }
  .sheet-tabs a { padding-left: 8px; padding-right: 8px; font-size: 13px; }
  .sheet-tabs a[aria-current="page"]::after { left: 8px; right: 8px; }
  .sheet-body { overflow: visible; padding: 0 16px 24px; }
  .section-heading { margin-top: 24px; }
  .register .row-number { width: 28px; padding-left: 0; padding-right: 4px; font-size: 11.5px; }
  .register .status-column { width: 80px; }
  .register .row-arrow { width: 22px; padding-left: 0; padding-right: 0; }
  .row-arrow a { width: 22px; }
  .register td { padding-left: 5px; padding-right: 5px; }
  .register .empty-register { padding: 46px 4px 54px; }
  .empty-register h3 { font-size: 16px; }
  .empty-register p { max-width: 240px; margin: auto; }
  .field-row { grid-template-columns: 1fr; gap: 3px; padding: 12px 0; }
  .field-value { padding: 0; }
  .ruled-form input:not([type="hidden"]) { max-width: 100%; padding-top: 7px; padding-bottom: 7px; }
  .record-fields > div { grid-template-columns: minmax(100px, 1fr) minmax(0, 1.4fr); gap: 12px; }
  .sheet-footer { padding: 10px 16px; margin-top: auto; font-size: 12px; }
  .sheet-footer > span { display: none; }
  .context-drawer { height: calc(100dvh - 62px); bottom: 62px; }
}

/* Sign-in is an entry spread, separate from the school workspace shell. */
.auth-body { -webkit-font-smoothing: antialiased; font-feature-settings: "ss01"; }
.auth-page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-frame { width: 1020px; max-width: 100%; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border-radius: 22px; background: white; box-shadow: 0 1px 2px #18212c0a, 0 24px 60px -38px #18212c66, 0 0 0 1px #d6dee8; }
.auth-welcome { position: relative; padding: 42px 44px 28px; background: #f5f7fa; display: flex; flex-direction: column; }
.auth-brand { display: inline-flex; align-items: center; gap: 10px; width: fit-content; color: var(--ink); font-size: 22px; line-height: 30px; font-weight: 740; letter-spacing: -.02em; text-decoration: none; }
.auth-brand b { font-weight: inherit; }
.auth-brand-tile { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--ink); box-shadow: 0 1px 2px #18212c26, 0 8px 16px -10px #18212c99; }
.auth-brand-tile svg { width: 24px; height: 24px; }
.auth-brand-tile .asquala-mark { width: 26px; height: 26px; filter: brightness(0) invert(1); }
.auth-story { margin-top: 42px; }
.auth-story h2 { margin: 0 0 14px; font-size: 34px; line-height: 1.18; font-weight: 750; letter-spacing: -.035em; }
.auth-story p { margin: 0; font-size: 14px; line-height: 23px; color: #6f7a8a; }
.register-art { width: 100%; height: auto; max-height: 240px; margin: 20px auto 0; }
.auth-caption { margin: auto 0 0; padding-top: 10px; color: #6f7a8a; font-size: 12px; line-height: 18px; }
.auth-sheet { display: flex; flex-direction: column; justify-content: center; padding: 54px 54px 44px; }
.auth-sheet h1 { margin: 0 0 8px; font-size: 28px; line-height: 35px; font-weight: 760; letter-spacing: -.03em; }
.auth-intro { margin: 0; color: #6f7a8a; font-size: 14px; line-height: 21px; }
.auth-form { display: block; max-width: none; margin: 28px 0 0; }
.auth-field + .auth-field { margin-top: 19px; }
.auth-field label { display: block; margin: 0 0 7px; color: #465263; font-size: 13px; line-height: 18px; font-weight: 560; }
.auth-field input { display: block; width: 100%; box-sizing: border-box; min-height: 44px; padding: 11px 12px; border: 0; border-radius: 9px; background: #fff; box-shadow: inset 0 0 0 1px #18212c26; font-size: 14px; line-height: 22px; outline: 0; }
.auth-field input:focus-visible { outline: none; box-shadow: inset 0 0 0 1px #213e74, 0 0 0 3px #e7ecf6; }
.auth-field .input-validation-error { box-shadow: inset 0 0 0 1px #d03b3b; }
.password-control { position: relative; }
.password-control input { padding-right: 65px; }
.password-toggle { position: absolute; right: 4px; top: 4px; min-height: 36px; min-width: 52px; margin: 0; padding: 6px 10px; border-radius: 6px; background: transparent; color: #465263; font-size: 12px; font-weight: 550; }
.password-toggle:hover { background: #f1f4f8; }
.auth-submit { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin: 24px 0 0; padding: 11px 14px; border-radius: 9px; font-size: 14px; line-height: 22px; font-weight: 650; background: linear-gradient(180deg, #3b67b8, #2d57a3); box-shadow: 0 1px 2px #213e7440, inset 0 1px #ffffff29, 0 6px 14px -9px #2d57a3cc; }
.auth-submit:hover { background: linear-gradient(180deg, #4471c3, #3b67b8); }
.auth-submit svg { width: 17px; height: 17px; }
.auth-help { margin-top: 30px; padding-top: 20px; border-top: 1px solid #18212c14; font-size: 12.5px; line-height: 19px; }
.auth-help b { color: #465263; font-size: 13px; font-weight: 600; }
.auth-help p { margin: 3px 0 0; color: #6f7a8a; }
.auth-footer { margin-top: 24px; color: #6f7a8a; text-align: center; font-size: 12px; line-height: 19px; }
.auth-errors.validation-summary-errors { margin: 0 0 20px; padding: 12px 14px; border-radius: 8px; background: #fbecea; color: #a92a2a; font-size: 13px; line-height: 20px; }
.auth-errors ul { margin: 0; padding-left: 16px; }
@media (max-width: 850px) {
  .auth-page { padding: 28px 20px; }
  .auth-frame { width: 430px; display: block; overflow: visible; background: transparent; box-shadow: none; }
  .auth-welcome { padding: 0 0 26px; background: none; align-items: center; }
  .auth-story, .register-art, .auth-caption { display: none; }
  .auth-sheet { padding: 32px 28px; border-radius: 18px; background: white; box-shadow: 0 1px 2px #18212c0a, 0 20px 50px -34px #18212c66, 0 0 0 1px #d6dee8; }
}
@media (max-width: 400px) { .auth-sheet { padding: 28px 22px; } }

/* Source-parity SchoolBranch fields; capacity is the existing count/cap pair. */
.capacity-column { width: 140px; }
.capacity-cell { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink-3); }
.capacity-cell b { color: var(--ink); font-weight: 650; }
.capacity-cell progress { display: block; width: 110px; height: 4px; margin-top: 8px; border: 0; border-radius: 4px; overflow: hidden; background: #e9edf1; color: var(--blue); }
.capacity-cell progress::-webkit-progress-bar { background: #e9edf1; }
.capacity-cell progress::-webkit-progress-value { background: var(--blue); }
.secondary-cell { color: var(--ink-3); font-size: 12.5px; overflow-wrap: anywhere; }
.contact-cell > span { display: block; }
.campus-register td { overflow-wrap: anywhere; }
.campus-register td:first-child { width: 25%; }
.campus-register td:nth-child(2) { width: 28%; }
.delete-record-link { display: inline-flex; align-items: center; gap: 8px; color: #ac3030; font-size: 13px; }
.delete-warning { max-width: 600px; font-size: 13px; line-height: 20px; margin: 24px 0 16px; }
.ruled-form input[type="number"] { max-width: 180px; }

/* Create/edit pages: a focused form with a separate guidance column. */
.form-layout { display: grid; grid-template-columns: minmax(0, 680px) minmax(190px, 230px); justify-content: center; gap: 48px; padding: 26px 0 12px; }
.entry-editor { min-width: 0; }
.form-intro { margin: 0 0 26px; color: var(--ink-2); font-size: 13.5px; line-height: 21px; }
.form-intro > span { display: block; margin-top: 5px; color: var(--ink-3); font-size: 12.5px; }
.required-mark { color: #af6520; margin-left: 2px; }
.form-section { padding: 0; margin: 0 0 28px; scroll-margin-top: 24px; }
.form-section-heading { margin-bottom: 15px; }
.form-section-heading h2 { font-size: 15px; line-height: 22px; font-weight: 680; }
.form-section-heading p { margin: 4px 0 0; font-size: 12.5px; }
.form-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; align-items: start; }
.form-field { min-width: 0; }
.form-field > label { display: block; margin-bottom: 7px; color: var(--ink-2); font-size: 13px; line-height: 18px; font-weight: 560; }
.form-field > :is(input, select, textarea) { display: block; width: 100%; min-height: 42px; border: 1px solid #cbd3df; border-radius: 8px; background: white; padding: 9px 12px; color: var(--ink); font-size: 14px; line-height: 22px; outline: 0; transition: border-color .12s, box-shadow .12s; }
.form-field > :is(input, select, textarea):hover { border-color: #9aa8bb; }
.form-field > :is(input, select, textarea):focus { border-color: var(--action); box-shadow: 0 0 0 3px #2d57a319; }
.field-hint { margin: 6px 0 0; color: var(--ink-3); font-size: 12px; line-height: 18px; }
.form-field:has(.field-validation-error) { --validation-ink: #b52d32; --validation-line: #dc787b; --validation-wash: #fff5f4; --validation-focus: #d03b3b1f; }
.form-field[data-validation-tone="warning"]:has(.field-validation-error) { --validation-ink: #925316; --validation-line: #d79a45; --validation-wash: #fffbf1; --validation-focus: #d79a4526; }
.form-field > :is(input, select, textarea).input-validation-error { border-color: var(--validation-line); background: var(--validation-wash); }
.form-field > :is(input, select, textarea).input-validation-error:focus { box-shadow: 0 0 0 3px var(--validation-focus); }
.form-field .field-validation-error { display: flex; align-items: baseline; gap: 6px; color: var(--validation-ink); font-size: 12px; line-height: 18px; margin: 7px 0 0; }
.form-field .field-validation-error::before { content: "!"; display: inline-grid; place-items: center; width: 13px; height: 13px; flex: none; border-radius: 50%; background: var(--validation-ink); color: white; font-size: 10px; line-height: 13px; font-weight: 700; }
.form-feedback { --feedback-ink: #a92a30; --feedback-line: #efc4c6; --feedback-wash: #fff5f4; display: flex; gap: 12px; padding: 16px 18px; margin: 0 0 26px; border: 1px solid var(--feedback-line); border-radius: 10px; background: var(--feedback-wash); color: var(--feedback-ink); scroll-margin-top: 18px; }
.form-feedback[data-validation-tone="warning"] { --feedback-ink: #8a5016; --feedback-line: #eed4a3; --feedback-wash: #fffbf1; }
.form-feedback > .ic { width: 20px; height: 20px; margin-top: 1px; }
.form-feedback h2 { margin: 0 0 5px; font-size: 13.5px; line-height: 21px; font-weight: 680; letter-spacing: 0; }
.form-feedback ul { margin: 0; padding-left: 17px; }
.form-feedback li { padding: 2px 0; font-size: 12.5px; line-height: 19px; }
.form-feedback a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.form-feedback:focus { outline: 2px solid var(--feedback-line); outline-offset: 3px; }
.form-actions { display: flex; align-items: center; gap: 20px; margin-top: 6px; padding-top: 20px; border-top: 1px solid var(--rule); }
.form-actions .primary-action { min-height: 38px; padding: 9px 16px; }
.form-cancel { font-size: 13px; color: var(--ink-2); }
.form-guide { align-self: start; position: sticky; top: 26px; padding: 18px 0 0 24px; border-left: 1px solid var(--rule); }
.guide-heading { display: flex; align-items: center; gap: 8px; color: var(--ink-3); }
.guide-heading .ic { width: 17px; height: 17px; }
.guide-heading h2 { font-size: 13px; line-height: 20px; font-weight: 650; letter-spacing: 0; }
.form-guide section { margin-top: 22px; }
.form-guide h3 { font-size: 12.5px; line-height: 19px; font-weight: 600; margin: 0 0 5px; color: var(--ink-2); }
.form-guide p { margin: 0; font-size: 12.5px; line-height: 20px; color: var(--ink-3); }
.form-guide nav { display: flex; flex-direction: column; align-items: start; gap: 8px; margin-top: 26px; font-size: 12.5px; }
@media (max-width: 1199px) {
  .form-layout { grid-template-columns: minmax(0, 680px); gap: 24px; }
  .form-guide { position: static; border-left: 0; border-top: 1px solid var(--rule); padding: 20px 0 0; }
  .form-guide section { display: inline-block; vertical-align: top; width: 31%; padding-right: 12px; margin-top: 15px; }
  .form-guide nav { flex-direction: row; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
}
@media (max-width: 800px) {
  .form-fields { grid-template-columns: minmax(0, 1fr); }
  .form-guide section { display: block; width: auto; }
}

/* Grades and sections */
.form-field > select { appearance: auto; cursor: pointer; }
.form-field-wide { grid-column: 1 / -1; }
.check-field { align-self: end; padding-bottom: 10px; }
.check-field label { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-2); font-size: 14px; cursor: pointer; }
.check-field input { width: 17px; height: 17px; accent-color: var(--action); }
.form-notice { margin: 0 0 18px; padding: 10px 14px; border-radius: 8px; background: var(--paper-2); font-size: 13px; line-height: 20px; }
.form-notice a { margin-left: 10px; color: var(--action); font-weight: 600; }
.number-column { width: 90px; text-align: right; }
.register th.number-column { text-align: right; }
.row-actions { width: 130px; text-align: right; white-space: nowrap; }
.row-actions a { margin-left: 14px; font-size: 12.5px; color: var(--action); }
.row-actions a.danger-link { color: #ac3030; }
.grade-register td:first-child { width: 24%; }
.group-title { margin: 28px 0 8px; font-size: 14px; line-height: 20px; font-weight: 680; }
.section-register .grade-cell { width: 24%; text-align: left; padding: 14px 8px; color: var(--ink); font-size: 14px; font-weight: 600; position: static; background: transparent; border-bottom: 1px solid var(--rule); }
.section-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.section-badge { display: inline-flex; align-items: baseline; gap: 8px; padding: 5px 11px; border: 1px solid var(--rule-2); border-radius: 999px; background: white; color: var(--ink); font-size: 13px; }
.section-badge b { font-weight: 650; }
.section-badge span { color: var(--ink-3); font-size: 12px; }
a.section-badge:hover { border-color: var(--action); }
.standalone-empty { padding: 70px 12px 86px; text-align: center; }

