:root{
  --wine:#12213b;--wine-deep:#0d1729;--wine-light:#1e40af;--gold:#2563eb;--gold-soft:#dbeafe;
  --ink:#172033;--muted:#64748b;--line:#e2e8f0;--surface:#fff;--canvas:#f8fafc;
  --green:#047857;--green-soft:#d1fae5;--red:#e11d48;--red-soft:#ffe4e6;
  --shadow:0 8px 24px rgba(15,23,42,.055);font-family:Inter,"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink)
}
html,body{direction:ltr}body{background:#f8fafc;font-size:14px;color:#172033}button,input,select,textarea{font-family:inherit}a{transition:color .18s ease}
/* Shared application frame */
.side-nav{width:258px;padding:22px 16px;background:#111e35;color:#edf4ff;box-shadow:8px 0 25px rgba(15,23,42,.08)}
.brand-lockup{gap:12px;padding:0 7px 20px;border-bottom-color:rgba(255,255,255,.12)}
.brand-lockup img{width:46px;height:46px;border-radius:14px}.brand-lockup b{font-size:.9rem;letter-spacing:.12em}.brand-lockup small{color:#a9b8d1}
.side-caption{margin:25px 10px 10px;color:#8393ad;font-size:.64rem;letter-spacing:.12em}
.side-nav nav{gap:5px}.side-link{position:relative;min-height:44px;padding:9px 11px;border-radius:11px;color:#b7c4d9;font-size:.8rem;font-weight:650}
.side-link:hover{background:rgba(255,255,255,.07);color:#fff}.side-link.active{background:linear-gradient(100deg,#2563eb,#3b82f6);color:#fff;box-shadow:0 7px 18px rgba(37,99,235,.25)}
.nav-icon{width:28px;height:28px;background:rgba(255,255,255,.08);color:#c6d7f5}.side-link.active .nav-icon{background:rgba(255,255,255,.16);color:#fff}.nav-icon svg{width:17px;height:17px}
.side-user{border-top-color:rgba(255,255,255,.12)}.avatar{background:#dbeafe;color:#1d4ed8}.side-logout{border-color:rgba(255,255,255,.14);color:#c3d0e4}.side-logout:hover{background:rgba(255,255,255,.08)}
.main-area{margin-left:258px}.topbar{height:78px;gap:18px;padding:0 clamp(16px,2.5vw,34px);border-bottom:1px solid #e8edf4;background:rgba(255,255,255,.94)}
.topbar-title{display:grid;min-width:205px}.topbar-title small{max-width:280px;overflow:hidden;color:#8290a6;font-size:.6rem;letter-spacing:.06em;text-overflow:ellipsis;white-space:nowrap}.topbar-title h1{font-size:1rem;font-weight:750;color:#172033}
.global-search{height:42px;width:min(390px,31vw);display:flex;align-items:center;gap:8px;margin-left:auto;padding:0 10px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc;transition:border-color .18s,box-shadow .18s,background .18s}
.global-search:focus-within{border-color:#93c5fd;background:#fff;box-shadow:0 0 0 4px rgba(37,99,235,.1)}.global-search .search-mark{color:#8290a6;font-size:1.2rem;line-height:1}
.global-search input[type=search]{width:100%;min-width:0;height:38px;padding:0;border:0;outline:0;background:transparent;color:#172033;font-size:.75rem}.global-search input::placeholder{color:#94a3b8}
.global-search kbd{flex:0 0 auto;padding:3px 6px;border:1px solid #dbe3ee;border-radius:6px;background:white;color:#64748b;font-family:inherit;font-size:.58rem;white-space:nowrap}
.topbar-actions{gap:8px;margin-left:0}.date-pill{padding:6px 9px;border:1px solid #e2e8f0;background:#fff;color:#64748b;font-size:.68rem}
.topbar-icon-button,.icon-button{position:relative;width:38px;height:38px;display:grid;place-items:center;border:1px solid #e2e8f0;border-radius:11px;background:#fff;color:#53647c;transition:.18s ease}.topbar-icon-button:hover,.icon-button:hover{border-color:#bfdbfe;background:#eff6ff;color:#2563eb}.topbar-icon-button svg{width:18px;height:18px}.topbar-icon-button i{position:absolute;top:8px;right:8px;width:6px;height:6px;border:1px solid white;border-radius:50%;background:#f59e0b}
.menu-anchor{position:relative}.profile-trigger{height:42px;display:flex;align-items:center;gap:8px;padding:3px 8px 3px 4px;border:1px solid transparent;border-radius:12px;background:transparent;color:#172033;text-align:left;transition:.18s ease}.profile-trigger:hover,.profile-trigger[aria-expanded=true]{border-color:#e2e8f0;background:#f8fafc}.profile-label{display:grid;max-width:145px}.profile-label b{overflow:hidden;color:#29364a;font-size:.68rem;text-overflow:ellipsis;white-space:nowrap}.profile-label small{color:#8793a4;font-size:.59rem}.profile-chevron{color:#8491a3;font-size:.85rem}.dropdown-panel{position:absolute;z-index:80;top:calc(100% + 9px);right:0;width:235px;padding:13px;border:1px solid #e2e8f0;border-radius:14px;background:#fff;box-shadow:0 18px 42px rgba(15,23,42,.14);animation:menuIn .16s ease both}.dropdown-panel[hidden]{display:none}.dropdown-panel strong{display:block;padding:3px 5px 10px;color:#172033;font-size:.79rem}.dropdown-panel a{display:block;padding:9px 8px;border-radius:8px;color:#526177;font-size:.72rem;font-weight:650}.dropdown-panel a:hover{background:#f1f5f9;color:#1d4ed8}.notification-panel{width:265px}.notification-panel p{margin:2px 5px 5px;color:#64748b;font-size:.7rem}
@keyframes menuIn{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:none}}
.menu-button{border:0;background:#eff6ff;color:#1d4ed8}.page-content{width:min(1440px,100%);padding:24px clamp(16px,2.5vw,34px) 14px}.app-footer{margin:0 clamp(16px,2.5vw,34px);border-color:#e2e8f0;color:#8b98ab;font-size:.64rem;letter-spacing:.02em}
/* Dashboard */
.welcome-banner{min-height:154px;padding:27px clamp(22px,3vw,38px);border-radius:20px;background:radial-gradient(circle at 83% -40%,rgba(191,219,254,.25),transparent 33%),linear-gradient(115deg,#17356c,#2563eb 72%,#3b82f6);box-shadow:0 14px 32px rgba(37,99,235,.16)}
.welcome-banner:after{left:auto;right:7%;top:-170px;width:350px;height:350px;border-color:rgba(255,255,255,.16);box-shadow:0 0 0 38px rgba(255,255,255,.025),0 0 0 76px rgba(255,255,255,.02)}
.welcome-banner .eyebrow{color:#bfdbfe}.welcome-banner h2{font-size:1.45rem;letter-spacing:-.02em}.welcome-banner p{color:#dbeafe;font-size:.8rem}.button-light{color:#1d4ed8;background:#fff;box-shadow:0 5px 16px rgba(15,23,42,.12)}
.quick-actions-section{margin:20px 0 4px}.quick-actions-heading{display:flex;align-items:end;justify-content:space-between;margin-bottom:10px}.quick-actions-heading .eyebrow{font-size:.59rem;color:#8794a8}.quick-actions-heading h2{margin:1px 0 0;color:#1e293b;font-size:.94rem;font-weight:750}
.quick-actions-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}.quick-action-card{min-height:76px;display:flex;align-items:center;gap:11px;padding:12px;border:1px solid #e2e8f0;border-radius:14px;background:#fff;box-shadow:0 2px 8px rgba(15,23,42,.025);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.quick-action-card:hover{transform:translateY(-3px);border-color:#bfdbfe;box-shadow:0 12px 24px rgba(37,99,235,.09)}.quick-action-card>span:nth-child(2){display:grid;min-width:0;gap:2px}.quick-action-card b{color:#233149;font-size:.72rem}.quick-action-card small{overflow:hidden;color:#8896aa;font-size:.61rem;text-overflow:ellipsis;white-space:nowrap}.quick-action-icon{width:37px;height:37px;flex:0 0 auto;display:grid;place-items:center;border-radius:11px;background:#eff6ff;color:#2563eb}.quick-action-icon svg{width:18px;height:18px}.quick-action-arrow{margin-left:auto;color:#9aa9bb;font-size:1rem;transition:transform .18s}.quick-action-card:hover .quick-action-arrow{transform:translateX(3px);color:#2563eb}.primary-action .quick-action-icon{background:#2563eb;color:#fff}
.stats-grid{gap:12px;margin:14px 0}.stat-card,.content-card,.detail-card,.document-card,.student-year-card{border:1px solid #e2e8f0;border-radius:16px;background:#fff;box-shadow:0 2px 9px rgba(15,23,42,.025);backdrop-filter:none;-webkit-backdrop-filter:none}
.stat-card{min-height:108px;padding:17px 16px;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}.stat-card:hover{transform:translateY(-4px);border-color:#d5e3f5;box-shadow:0 13px 25px rgba(15,23,42,.08)}.stat-card small{color:#64748b;font-size:.69rem;font-weight:650}.stat-card strong{margin-top:10px;color:#172033;font-size:1.65rem}.stat-icon{top:13px;right:14px;left:auto;width:32px;height:32px;background:#eff6ff;color:#2563eb}.stat-icon svg{width:17px;height:17px}.stat-icon.gold{background:#fffbeb;color:#d97706}.stat-icon.green{background:#ecfdf5;color:#059669}.stat-note{color:#94a3b8}
.content-card{margin-top:15px;padding:20px;border-radius:17px;box-shadow:0 2px 10px rgba(15,23,42,.025)}.section-heading{margin-bottom:15px}.section-heading h2{color:#1e293b;font-size:.94rem;font-weight:750}.section-heading p{color:#8491a3;font-size:.68rem}.section-kicker{border-color:#dbeafe;background:#eff6ff;color:#2563eb}.section-kicker svg{width:16px;height:16px}.text-link{color:#2563eb;font-size:.7rem}
/* Tables and status */
.table-wrap{border-color:#e2e8f0;border-radius:12px}.data-table{background:#fff}.data-table th,.data-table td{padding:10px 12px;text-align:left}.data-table thead th{background:#f8fafc;color:#718096;font-size:.65rem;letter-spacing:.01em}.data-table tbody td{color:#475569;font-size:.7rem}.data-table tbody tr{transition:background .16s ease}.data-table tbody tr:hover{background:#f8fafc}.data-table td b{color:#1e293b}.status-pill{padding:4px 9px;font-size:.61rem}.status-active{background:#d1fae5;color:#047857}.status-archived{background:#ffe4e6;color:#be123c}.status-pending{background:#fef3c7;color:#b45309}.table-actions{display:flex;align-items:center;gap:5px}.table-icon-action{width:31px;height:31px;display:grid;place-items:center;border:1px solid #e2e8f0;border-radius:9px;background:#fff;color:#64748b;transition:.17s ease}.table-icon-action svg{width:15px;height:15px}.table-icon-action:hover{border-color:#bfdbfe;background:#eff6ff;color:#2563eb;transform:translateY(-1px)}
/* Controls */
.button,.primary-button{border-radius:10px;font-weight:700;transition:transform .15s ease,box-shadow .2s ease,background .2s ease,border-color .2s ease}.button:active,.primary-button:active{transform:scale(.95)}.button-primary,.primary-button{background:linear-gradient(110deg,#2563eb,#3b82f6);color:#fff;box-shadow:0 5px 13px rgba(37,99,235,.16)}.button-primary:hover,.primary-button:hover{background:linear-gradient(110deg,#1d4ed8,#2563eb);box-shadow:0 10px 19px rgba(37,99,235,.22);transform:translateY(-1px)}.button-light:hover{background:#eff6ff;transform:translateY(-1px)}.button-outline{border-color:#dbe3ed;color:#334155;background:#fff}.button-outline:hover{border-color:#bfdbfe;background:#eff6ff;color:#1d4ed8}.button-danger{border-color:#fecdd3;background:#fff1f2;color:#be123c}
.field input,.field select,.filter-bar select,.search-input input{border-color:#dbe2ec;border-radius:10px;background:#fff;color:#1e293b}.field input:focus,.field select:focus,.filter-bar select:focus,.search-input:focus-within{border-color:#60a5fa;box-shadow:0 0 0 3px rgba(37,99,235,.1)}.field>span{color:#334155;font-size:.75rem}.field>span small,.field>small{color:#8794a7}.filter-bar{gap:8px}.filter-bar select{height:42px}.search-input{border-color:#dbe2ec}.search-input span{color:#94a3b8}.tag{background:#eff6ff;color:#1d4ed8}
/* Student record wizard */
.student-wizard-shell{width:min(100%,1080px);margin:0 auto}.wizard-progress{display:block;margin:2px 0 13px;padding:15px 18px 12px;border:1px solid #e2e8f0;border-radius:16px;background:#fff;backdrop-filter:none;color:#475569;box-shadow:0 2px 10px rgba(15,23,42,.025)}.wizard-progress-top{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#8794a8;font-size:.66rem}.wizard-progress-top b{color:#2563eb}.wizard-progress-top strong{color:#1e293b;font-size:.72rem}.wizard-progress-track{height:4px;margin:10px 0 12px;border-radius:8px;background:#eaf0f7;overflow:hidden}.wizard-progress-track span{width:20%;height:100%;display:block;border-radius:8px;background:linear-gradient(90deg,#2563eb,#60a5fa);transition:width .25s ease}
.wizard-step-list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}.wizard-step-marker{display:flex;align-items:center;gap:7px;min-width:0;padding:0;border:0;background:transparent;color:#97a3b4;text-align:left;cursor:pointer}.wizard-step-marker span{width:25px;height:25px;flex:0 0 auto;display:grid;place-items:center;border:1px solid #dce4ee;border-radius:50%;background:#fff;color:#8290a4;font-size:.65rem;font-weight:800;transition:.2s}.wizard-step-marker b{overflow:hidden;font-size:.61rem;font-weight:650;text-overflow:ellipsis;white-space:nowrap}.wizard-step-marker.is-current{color:#1d4ed8}.wizard-step-marker.is-current span{border-color:#2563eb;background:#2563eb;color:#fff;box-shadow:0 4px 10px rgba(37,99,235,.2)}.wizard-step-marker.is-current b{color:#1d4ed8}.wizard-step-marker.is-complete span{border-color:#a7f3d0;background:#ecfdf5;color:#047857}.wizard-step-marker.is-complete b{color:#475569}.wizard-step-marker:not(.is-current):hover span{border-color:#93c5fd;color:#2563eb}
.student-edit-form>.wizard-step{margin-top:0}.student-edit-form .wizard-step[hidden]{display:none!important}.wizard-step.is-active{display:block;animation:stepEnter .22s ease both}@keyframes stepEnter{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}.step-heading{display:flex;align-items:center;gap:12px;margin-bottom:20px}.step-heading>div{display:grid;gap:2px}.step-heading h2{margin:0;color:#1e293b;font-size:1rem}.step-heading p{margin:0;color:#8794a7;font-size:.68rem}.step-heading>.status-pill,.step-heading>.credit-chip{margin-left:auto}.step-number{width:39px;height:39px;flex:0 0 auto;display:grid;place-items:center;border-radius:12px;background:#eff6ff;color:#2563eb;font-size:.68rem;font-weight:850}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.form-grid-two{grid-template-columns:repeat(2,minmax(0,1fr))}.field-wide{grid-column:span 2}.field input,.field select{height:44px;font-size:.76rem}.field input[type=file]{height:auto}.form-actions{align-items:center;justify-content:space-between;gap:8px;margin-top:22px;padding-top:15px;border-top:1px solid #edf1f6}.wizard-actions .button-primary{margin-left:auto}.student-number-control{gap:7px}.student-number-control .button{font-size:.65rem}.academic-identity-grid{border-color:#e2e8f0;background:#f8fafc}.identity-strip,.summary-strip{border-color:#e2e8f0;background:#e2e8f0}.identity-strip>div,.summary-strip>div{background:#fff}.identity-strip small,.summary-strip small{color:#8794a7}.summary-strip b{color:#1d4ed8}.credit-chip{border-color:#dbeafe;background:#eff6ff;color:#1d4ed8;font-size:.62rem}.grade-mode-bar{gap:10px;margin:11px 0 13px;padding:11px 12px;border-color:#e2e8f0;border-radius:12px;background:#f8fafc}.grade-mode-bar>div{gap:1px}.grade-mode-bar>div b{color:#334155;font-size:.7rem}.grade-mode-bar>div small{font-size:.6rem}.grade-mode-bar label{color:#475569;font-size:.63rem}.grade-mode-bar input{accent-color:#2563eb}.grade-mode-bar output{color:#1d4ed8;font-size:.65rem;font-weight:750}.grade-year-tabs{display:flex;gap:6px;margin:12px 0 9px;padding:4px;border:1px solid #e5ebf2;border-radius:11px;background:#f8fafc}.grade-year-tab{min-height:34px;flex:1;padding:0 12px;border:0;border-radius:8px;background:transparent;color:#64748b;font-size:.68rem;font-weight:700;transition:.16s}.grade-year-tab:hover{background:#eff6ff;color:#2563eb}.grade-year-tab.is-active{background:#2563eb;color:#fff;box-shadow:0 3px 8px rgba(37,99,235,.18)}.grade-year-panel[hidden]{display:none!important}.grade-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 2px 9px}.grade-panel-heading h3{margin:0;color:#1e293b;font-size:.82rem}.grade-panel-heading span{color:#8794a7;font-size:.61rem}.year-average{background:#eff6ff;color:#1d4ed8;font-size:.62rem}.grade-table{min-width:610px}.grade-table th,.grade-table td{padding:8px 9px;text-align:left}.grade-table thead th{background:#f8fafc;color:#718096;font-size:.61rem}.grade-table tbody td{font-size:.67rem}.grade-table tbody tr:hover{background:#f8fafc}.grade-table td:first-child b{color:#334155}.grade-input{width:75px;height:32px;border-color:#dbe2ec;border-radius:8px}.grade-input:focus{border-color:#60a5fa;outline:3px solid rgba(37,99,235,.1)}.derived-value{color:#1d4ed8}.grade-table tfoot th,.grade-table tfoot td{background:#eff6ff;color:#1d4ed8}.scale-disclosure{margin-top:12px;border:1px solid #e2e8f0;border-radius:10px;background:#fff}.scale-disclosure summary{padding:9px 11px;color:#475569;font-size:.67rem;font-weight:700;cursor:pointer}.scale-disclosure .grading-scale{margin:0;padding:10px;border:0;border-top:1px solid #e2e8f0;border-radius:0;background:#f8fafc}.grading-scale span{background:#fff;color:#64748b;font-size:.56rem}.compact-note{margin:10px 0 0;color:#7b8798;font-size:.64rem}.wizard-actions .is-loading{opacity:.8}.button.is-loading:before{content:"";width:14px;height:14px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
/* Upload and final review */
.upload-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.upload-card{position:relative;min-height:106px;display:grid;grid-template-columns:auto 1fr;align-items:center;gap:5px 11px;padding:14px;border:1px dashed #cbd5e1;border-radius:13px;background:#fbfdff;cursor:pointer;transition:.18s}.upload-card:hover,.upload-card:focus-within{border-color:#60a5fa;background:#f5f9ff}.upload-card input[type=file]{grid-column:1/-1;width:100%;padding:7px;border:1px solid #e2e8f0;border-radius:8px;background:#fff;color:#64748b;font-size:.62rem}.upload-icon{width:37px;height:37px;display:grid;place-items:center;border-radius:11px;background:#eff6ff;color:#2563eb}.upload-icon svg{width:18px;height:18px}.upload-copy{display:grid;gap:3px}.upload-copy b{color:#334155;font-size:.7rem}.upload-copy small{color:#8794a7;font-size:.59rem}.file-name{grid-column:1/-1;overflow:hidden;color:#2563eb;font-size:.61rem;text-overflow:ellipsis;white-space:nowrap}.current-document{display:inline-block;margin-top:12px}.review-card{display:flex;align-items:center;gap:13px;margin-top:17px;padding:15px;border:1px solid #dbeafe;border-radius:13px;background:linear-gradient(110deg,#f8fbff,#eff6ff)}.review-card-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#2563eb;color:#fff}.review-card-icon svg{width:19px;height:19px}.review-card-content{display:grid;gap:4px;min-width:0}.review-card-content .eyebrow{color:#6091db;font-size:.55rem}.review-card-content>strong{overflow:hidden;color:#1e293b;font-size:.8rem;text-overflow:ellipsis;white-space:nowrap}.review-meta{display:flex;flex-wrap:wrap;gap:6px 13px;color:#64748b;font-size:.6rem}.review-meta span{direction:ltr;unicode-bidi:plaintext}.credentials-card{border-color:#fde68a;border-radius:14px;background:#fffbeb}.credentials-card b{color:#92400e}.credentials-card strong{color:#1e40af}
/* Login */
.login-page{background:#eef4fb url("/Assets/Bg.SVG") center/cover fixed no-repeat}.login-backdrop{background:linear-gradient(135deg,rgba(15,23,42,.8),rgba(30,64,175,.52),rgba(15,23,42,.75))}.login-layout{border:1px solid rgba(255,255,255,.55);border-radius:24px;box-shadow:0 30px 70px rgba(15,23,42,.23)}.login-layout-compact{grid-template-columns:.95fr 1.05fr}.login-visual{background:linear-gradient(155deg,rgba(20,43,86,.93),rgba(37,99,235,.9)),url("/Assets/Bg.SVG") center/cover}.login-visual:before,.login-visual:after{border-color:rgba(219,234,254,.22)}.login-school-name{color:#dbeafe}.login-seal{border-color:rgba(191,219,254,.65);color:#dbeafe}.login-panel{background:#fff}.login-heading p{color:#718096;font-size:.79rem}.login-tabs{background:#f1f5f9}.login-tab.active{color:#1d4ed8;box-shadow:0 2px 8px rgba(15,23,42,.08)}.login-form label{color:#334155;font-size:.74rem}.login-form input{border-color:#dbe2ec;border-radius:10px}.login-form input:focus{border-color:#60a5fa;box-shadow:0 0 0 3px rgba(37,99,235,.1)}.password-toggle{background:#eff6ff;color:#1d4ed8}.login-footer{border-color:#e2e8f0;color:#8794a7}.school-info-card{border-color:rgba(255,255,255,.2);background:rgba(255,255,255,.09);text-align:left}.school-info-card>div{font-size:.7rem}.school-info-card small{color:#cbd5e1}.school-info-card b{color:#fff}.school-gallery{border-color:rgba(255,255,255,.15)}.school-gallery small{color:#bfdbfe}.login-status{border-color:#bfdbfe;background:#eff6ff;color:#1d4ed8}.eyebrow{color:#3b82f6}
/* Forms and additional cards */
.notice{border-radius:11px}.notice-warning{border-color:#fde68a;background:#fffbeb;color:#92400e}.notice-error{border-color:#fecdd3;background:#fff1f2;color:#be123c}.notice-success{border-color:#a7f3d0;background:#ecfdf5;color:#047857}.notice-info{border-color:#bfdbfe;background:#eff6ff;color:#1d4ed8}.connection-state.connected{background:#d1fae5;color:#047857}.connection-state.disconnected{background:#fef3c7;color:#b45309}.setup-hint{color:#475569}.empty-state{border-color:#dbe3ed;background:#fbfdff}.empty-state b{color:#334155}.detail-cell{border-color:#e2e8f0;background:#fff}.import-preview{border-color:#e2e8f0;border-radius:14px;background:#fbfdff}.document-card{background:#fff}.document-mark{background:#eff6ff;color:#2563eb}.danger-zone{border-color:#fecdd3}.danger-zone h2{color:#be123c}.danger-zone p{color:#9f6673}.narrow-card{max-width:620px}
/* Student-facing pages share the same clear direction and palette */
.student-app .side-nav{background:#111e35}.student-app .profile-hero{box-shadow:0 14px 30px rgba(37,99,235,.13)}.student-app .year-average{background:#eff6ff;color:#1d4ed8}.student-app .document-mark{background:#eff6ff;color:#2563eb}
@media (max-width:1120px){.quick-actions-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.topbar-title{min-width:180px}.global-search{width:min(330px,28vw)}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:820px){.side-nav{transform:translateX(-105%);transition:transform .23s ease}.side-nav.is-open{transform:translateX(0)}.main-area{margin:0}.sidebar-backdrop{position:fixed;z-index:35;inset:0;display:block;background:rgba(15,23,42,.46);opacity:0;pointer-events:none;transition:opacity .2s}.sidebar-backdrop.is-open{opacity:1;pointer-events:auto}.topbar{height:auto;min-height:72px;flex-wrap:wrap;gap:9px;padding:11px 15px}.topbar-title{flex:1;min-width:0}.topbar-title small{display:none}.global-search{order:3;flex-basis:100%;width:100%;max-width:none;height:40px}.topbar-actions{margin-left:auto}.page-content{padding-top:17px}.profile-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.wizard-step-list{gap:5px}.wizard-step-marker{gap:5px}.wizard-step-marker b{font-size:.56rem}.side-user b{max-width:180px}}
@media (max-width:600px){body{font-size:14px}.topbar{padding:9px 11px}.topbar h1{font-size:.88rem}.topbar-actions{gap:5px}.date-pill{display:none}.profile-trigger{padding-right:3px}.profile-label,.profile-chevron{display:none}.profile-trigger .avatar{width:31px;height:31px}.global-search{height:39px}.global-search kbd{display:none}.page-content{padding:13px 11px 9px}.content-card{padding:16px 13px;border-radius:14px}.welcome-banner{min-height:0;align-items:flex-start;flex-direction:column;padding:21px 18px}.welcome-banner h2{font-size:1.2rem}.welcome-banner p{font-size:.72rem}.welcome-banner .button{align-self:flex-start}.quick-actions-grid{grid-template-columns:1fr 1fr;gap:7px}.quick-action-card{min-height:74px;gap:8px;padding:9px}.quick-action-icon{width:32px;height:32px}.quick-action-card b{font-size:.62rem}.quick-action-card small{font-size:.54rem}.quick-action-arrow{font-size:.8rem}.stats-grid{gap:8px;margin:11px 0}.stat-card{min-height:94px;padding:13px}.stat-card small{max-width:75%;font-size:.61rem}.stat-card strong{font-size:1.4rem}.stat-icon{top:10px;right:10px;width:27px;height:27px}.section-heading{align-items:flex-start}.section-heading p{max-width:250px}.form-grid,.form-grid-two{grid-template-columns:1fr}.field-wide{grid-column:auto}.form-actions{flex-direction:column-reverse;align-items:stretch}.form-actions .button{width:100%}.wizard-step-list{grid-template-columns:repeat(5,minmax(55px,1fr));overflow:auto;padding-bottom:3px}.wizard-step-marker{flex-direction:column;align-items:center;gap:3px}.wizard-step-marker b{max-width:60px;font-size:.5rem;text-align:center}.wizard-step-marker span{width:23px;height:23px}.wizard-progress{padding:12px 11px}.wizard-progress-top{font-size:.61rem}.wizard-progress-top strong{font-size:.66rem}.step-heading{gap:9px;margin-bottom:16px}.step-heading h2{font-size:.9rem}.step-heading p{font-size:.61rem}.grade-mode-bar{align-items:flex-start}.grade-mode-bar>div{width:100%;margin-right:0}.grade-mode-bar output{width:100%}.grade-mode-bar label{flex:1}.grade-year-tabs{gap:3px}.grade-year-tab{min-height:32px;padding:0 4px;font-size:.6rem}.grade-panel-heading{align-items:flex-start}.grade-panel-heading h3{font-size:.76rem}.grade-panel-heading span{font-size:.56rem}.upload-grid{grid-template-columns:1fr}.upload-card{min-height:100px}.credentials-card{grid-template-columns:1fr}.credentials-card>div{padding-top:3px}.identity-strip,.summary-strip{grid-template-columns:1fr 1fr}.danger-zone{align-items:flex-start;flex-direction:column}.danger-actions{width:100%}.danger-actions form,.danger-actions button{flex:1}.filter-bar{align-items:stretch;flex-wrap:wrap}.search-input{flex-basis:100%}.filter-bar select{flex:1;min-width:0}.import-preview-head{flex-direction:column}.preview-school{max-width:none;text-align:left}.import-action{align-items:flex-start;flex-direction:column}.compact-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.profile-hero{align-items:flex-start;flex-direction:column;min-height:0;padding:21px 18px}.profile-hero h2{font-size:1.2rem}.hero-number{margin:3px 0 0;text-align:left}.hero-watermark{right:-8%;width:140px}.academic-summary{grid-template-columns:1fr 1fr}.academic-summary article{min-height:80px;padding:10px}.cumulative-row{grid-template-columns:1fr}.document-card{grid-template-columns:auto 1fr;gap:11px}.document-card>a,.document-card>.status-pill{grid-column:1/-1;width:100%;max-width:none}.document-card .status-pill{display:flex;justify-content:center}.grading-scale span{font-size:.55rem}.login-page{padding:10px}.login-layout-compact{grid-template-columns:1fr;max-width:430px;border-radius:18px}.login-layout-compact .login-visual{min-height:0;padding:23px 18px 18px}.login-layout-compact .login-panel{padding:21px 19px}.login-layout-compact .login-logo{width:67px;height:67px;border-radius:15px}.login-school-title{margin-top:9px;font-size:.83rem}.school-info-card{gap:6px;margin-top:12px;padding:10px 12px}.school-gallery{margin-top:9px}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
