*{box-sizing:border-box}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#f5f7fb;color:#10233f}a{text-decoration:none;color:inherit}.app-shell{display:grid;grid-template-columns:260px 1fr;min-height:100vh}.sidebar{background:linear-gradient(180deg,#083f70,#052a50);color:#fff;padding:22px 16px;position:sticky;top:0;height:100vh}.brand{display:flex;gap:12px;align-items:center;padding:0 8px 22px;border-bottom:1px solid #ffffff20}.brand img{width:52px;height:52px;object-fit:contain;background:#fff;border-radius:12px}.brand strong{display:block;font-size:13px}.brand span{display:block;font-size:14px;opacity:.85;margin-top:3px}.sidebar nav{display:flex;flex-direction:column;gap:5px;padding-top:18px}.sidebar nav a,.sidebar nav span{padding:10px 12px;border-radius:9px;font-size:14px;opacity:.93}.sidebar nav a:hover,.sidebar nav a.active{background:#fff;color:#0a477e;font-weight:700}.nav-section{font-size:10px;letter-spacing:.12em;opacity:.55;margin:13px 12px 2px}.sidebar-footer{position:absolute;bottom:20px;left:28px;font-size:12px;opacity:.65}main{min-width:0}.topbar{height:72px;background:#fff;border-bottom:1px solid #e6eaf1;display:flex;align-items:center;gap:18px;padding:0 28px;position:sticky;top:0;z-index:5}.menu{display:none}.search{background:#f5f7fb;color:#7d8aa0;border:1px solid #e8ecf2;padding:11px 16px;border-radius:10px;flex:1;max-width:520px}.lang{margin-left:auto;background:#eef4fb;padding:8px 11px;border-radius:18px;font-size:12px}.lang span{margin-left:8px}.profile{display:flex;flex-direction:column;font-size:13px}.profile small{color:#7d8aa0}.logout{border:1px solid #d9e1ea;background:#fff;padding:8px 11px;border-radius:8px}.content{padding:28px}.page-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.page-head h1{margin:0 0 5px;font-size:26px}.page-head p{margin:0;color:#748198}.pill{background:#eaf2ff;border:1px solid #cfdef5;color:#1e5b9c;padding:8px 12px;border-radius:999px;font-size:12px;font-weight:700}.pill.warn{background:#fff7db;color:#8c6500;border-color:#f0df9d}.kpis{display:grid;grid-template-columns:repeat(6,1fr);gap:14px;margin-bottom:18px}.card{background:#fff;border:1px solid #e6eaf1;border-radius:14px;box-shadow:0 4px 16px #143f6b0a;padding:18px}.kpi span{display:block;color:#6c788b;font-size:12px}.kpi strong{font-size:28px;display:block;margin:8px 0}.kpi small{color:#8e99a8}.grid-2{display:grid;grid-template-columns:1.7fr 1fr;gap:18px;margin-bottom:18px}.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.card-title{display:flex;justify-content:space-between;align-items:center}.card-title h2{font-size:16px}.card-title a,.card-title span{font-size:12px;color:#3977bc}.chart-bars{height:180px;display:flex;align-items:flex-end;gap:16px;border-bottom:1px solid #e4e9ef;padding:14px 12px 0}.chart-bars i{display:block;flex:1;background:linear-gradient(180deg,#1c8bd1,#0b5fa5);border-radius:5px 5px 0 0}.chart-labels{display:flex;justify-content:space-between;color:#8b96a6;font-size:11px;padding-top:8px}.alerts{display:flex;flex-direction:column;gap:9px;margin-top:14px}.alert{padding:12px 14px;border-radius:9px;font-size:13px}.alert.warning{background:#fff7dd;color:#806000}.alert.danger{background:#fff0f0;color:#9e2a2a}.alert.info{background:#eaf4ff;color:#236397}.action-card h3{margin-top:0}.action-card p{color:#728097;line-height:1.55}.primary-link{color:#0b67b1;font-weight:700;font-size:13px}.success-text{color:#16865a;font-weight:700;font-size:13px}.primary{border:0;background:#0c67ad;color:#fff;padding:10px 15px;border-radius:9px;font-weight:700}.table-card{padding:0;overflow:hidden}table{border-collapse:collapse;width:100%}th,td{text-align:left;padding:14px 16px;border-bottom:1px solid #edf0f4;font-size:13px}th{background:#f8fafc;color:#647086;font-size:11px;text-transform:uppercase;letter-spacing:.04em}.status{background:#e9f8f1;color:#147a53;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:700}.info-banner{background:#edf6ff;border:1px solid #cfe4f8;color:#285f8d;border-radius:10px;padding:13px 15px;font-size:13px;margin-bottom:16px;line-height:1.5}.login-page{min-height:100vh;background:linear-gradient(135deg,#062f57,#0d609d);display:grid;place-items:center;padding:20px}.login-card{width:min(430px,100%);background:#fff;border-radius:18px;padding:30px;box-shadow:0 24px 70px #00172d66}.login-brand{text-align:center}.login-brand img{width:130px;height:90px;object-fit:contain}.login-brand h1{font-size:21px;margin:12px 0 5px}.login-brand p{color:#798597;margin:0 0 22px}.login-card label{display:block;font-size:12px;font-weight:700;margin:14px 0}.login-card input{width:100%;margin-top:7px;padding:12px;border:1px solid #dbe2eb;border-radius:9px}.login-card .primary{width:100%;margin-top:6px}.demo-note{margin-top:18px;padding:12px;border-radius:9px;background:#f5f7fb;color:#657389;font-size:12px;line-height:1.55}.error-page{text-align:center;padding:100px 20px}.error-page h1{font-size:64px;margin:0}.error-page a{color:#0b67b1;font-weight:700}@media(max-width:1100px){.kpis{grid-template-columns:repeat(3,1fr)}.grid-3{grid-template-columns:1fr}.grid-2{grid-template-columns:1fr}}@media(max-width:800px){.app-shell{grid-template-columns:1fr}.sidebar{position:fixed;left:-280px;z-index:20;width:260px;transition:.2s}.sidebar.open{left:0}.menu{display:block}.profile{display:none}.content{padding:18px}.kpis{grid-template-columns:repeat(2,1fr)}.topbar{padding:0 14px}.search{display:none}.page-head{align-items:flex-start;flex-direction:column}.table-card{overflow:auto}table{min-width:720px}}
.button-link{display:inline-flex;align-items:center;justify-content:center}.secondary{border:1px solid #cfd9e5;background:#fff;color:#24415f;padding:10px 15px;border-radius:9px;font-weight:700}.text-link{color:#0b67b1;font-weight:700;font-size:13px}.public-page{min-height:100vh;background:linear-gradient(145deg,#eef4fa,#f9fbfd);padding:34px 18px}.public-shell{width:min(1080px,100%);margin:0 auto}.public-shell.narrow{width:min(620px,100%)}.public-brand{display:flex;align-items:center;gap:14px;justify-content:center;margin-bottom:20px;color:#123454}.public-brand img{width:76px;height:68px;object-fit:contain}.public-brand strong{display:block;font-size:16px;letter-spacing:.02em}.public-brand span{display:block;text-align:center;margin-top:4px}.public-card{background:#fff;border:1px solid #e1e8f0;border-radius:18px;box-shadow:0 16px 55px #123b6412;padding:28px}.admission-head{border-bottom:1px solid #edf0f4;padding-bottom:18px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px 20px}.form-grid .full{grid-column:1/-1}.form-grid label,.status-form label{font-size:12px;font-weight:700;color:#28425f}.form-grid input,.form-grid select,.form-grid textarea,.status-form input,.inline-form select{width:100%;margin-top:7px;padding:11px 12px;border:1px solid #d8e1eb;border-radius:9px;background:#fff;color:#172d47;font:inherit}.form-grid textarea{resize:vertical}.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus,.status-form input:focus{outline:2px solid #a9d0f1;border-color:#5a9bd1}.form-grid label>small{display:block;color:#7b8898;margin-top:5px;font-weight:400}.field-error{color:#b42b2b!important}.section-title{font-size:15px;font-weight:800;color:#0d4f86;border-bottom:1px solid #edf1f5;padding:18px 0 9px;margin-top:5px}.section-title span{float:right;font-weight:600;color:#61748a}.consent{display:flex!important;gap:10px;align-items:flex-start;padding:12px;background:#f7fafc;border-radius:9px}.consent input{width:auto!important;margin-top:2px}.form-actions,.success-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:8px}.success-card{text-align:center;padding:44px}.success-icon{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;margin:0 auto 16px;background:#e9f8f1;color:#14845a;font-size:32px;font-weight:800}.application-number{display:inline-flex;flex-direction:column;gap:6px;background:#eff6ff;border:1px solid #cee2f6;padding:16px 25px;border-radius:12px;margin:14px 0}.application-number span{font-size:11px;color:#65768a;text-transform:uppercase;letter-spacing:.08em}.application-number strong{font-size:22px;color:#0d578e}.muted{color:#728097}.status-form{display:grid;gap:15px;margin:20px 0}.status-result{border:1px solid #cfe2f5;background:#f1f7fd;border-radius:12px;padding:18px;margin-top:18px;display:flex;flex-direction:column;gap:8px}.status-result span,.status-result small{color:#718095}.status-result strong{font-size:20px;color:#0b5f9d}.inline-form{display:flex;gap:7px;align-items:center}.inline-form select{margin:0;min-width:130px;padding:7px}.small-button{border:0;background:#0c67ad;color:#fff;border-radius:7px;padding:8px 10px;font-size:11px;font-weight:700}.status-submitted{background:#eaf4ff;color:#236397}.status-under_review{background:#fff6db;color:#836100}.status-accepted,.status-enrolled{background:#e9f8f1;color:#147a53}.status-rejected{background:#fff0f0;color:#9e2a2a}@media(max-width:700px){.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.public-card{padding:20px}.section-title span{float:none;display:block;margin-top:3px}.form-actions{justify-content:stretch}.form-actions>*{flex:1}.admission-head{align-items:flex-start}}
.manage-form{margin-bottom:18px}.manage-form h3{margin-top:0}.form-grid.compact{gap:12px 16px}.table-input{width:95px;padding:7px 8px;border:1px solid #d9e1ea;border-radius:7px}.table-input.wide{width:100%;min-width:180px}.table-input.short{width:75px}
.roles-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.role-card h3{margin-top:0}.permission-list{display:flex;flex-wrap:wrap;gap:7px}.permission-list span{font-size:11px;padding:6px 8px;border-radius:999px;background:#eff5fb;color:#386181}@media(max-width:1000px){.roles-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:650px){.roles-grid{grid-template-columns:1fr}}
.login-links{display:flex;justify-content:center;gap:18px;margin-top:16px}.login-links a{color:#0b67b1;font-size:12px;font-weight:700}

/* Milestone 2 operational UI */
.sidebar{overflow-y:auto}.sidebar-footer{position:sticky;bottom:0;margin-top:16px;background:#052a50;padding:10px 12px;left:auto}
.global-flash{margin-bottom:18px}.alert.success{background:#e9f8f1;color:#147a53}.alert.danger{background:#fff0f0;color:#9e2a2a}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.stat-card{background:#fff;border:1px solid #e6eaf1;border-radius:14px;padding:17px}.stat-card span{font-size:12px;color:#738196}.stat-card strong{display:block;font-size:25px;margin-top:7px}.stat-card small{color:#8a96a6}
.tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}.tabs a{background:#fff;border:1px solid #dfe6ee;border-radius:9px;padding:9px 12px;font-size:12px;font-weight:700;color:#365773}.tabs a.active{background:#0c67ad;color:#fff;border-color:#0c67ad}
.badge{display:inline-block;padding:5px 8px;border-radius:999px;font-size:11px;font-weight:700;background:#eef4fb;color:#386181}.badge.open,.badge.active,.badge.achieved,.badge.paid,.badge.published,.badge.approved,.badge.present{background:#e9f8f1;color:#147a53}.badge.at_risk,.badge.partial,.badge.submitted,.badge.warning,.badge.late,.badge.medium{background:#fff6db;color:#836100}.badge.high,.badge.rejected,.badge.overdue,.badge.absent{background:#fff0f0;color:#9e2a2a}.badge.low{background:#eaf4ff;color:#236397}
.metric-row{display:flex;justify-content:space-between;gap:14px;padding:9px 0;border-bottom:1px solid #edf0f4}.metric-row:last-child{border-bottom:0}.metric-row span{color:#718095}.metric-row b{color:#183653}
.stack{display:flex;flex-direction:column;gap:12px}.split{display:grid;grid-template-columns:1fr 1fr;gap:18px}.progress{height:8px;background:#edf1f5;border-radius:999px;overflow:hidden}.progress i{display:block;height:100%;background:#0c67ad;border-radius:inherit}.timeline{display:flex;flex-direction:column;gap:10px}.timeline-item{border-left:3px solid #cfe0ef;padding:9px 12px;background:#f8fafc;border-radius:0 9px 9px 0}.timeline-item b{display:block;font-size:13px}.timeline-item small{color:#7b8797}
.form-grid.compact select,.form-grid.compact input,.form-grid.compact textarea{width:100%;margin-top:7px;padding:10px;border:1px solid #d8e1eb;border-radius:8px;background:#fff}.form-grid.compact textarea{min-height:80px}.manage-form[hidden]{display:none}
.notice{padding:12px 14px;border-radius:9px;background:#f6f9fc;color:#587087;font-size:12px;border:1px solid #e2e9f0}.money{font-variant-numeric:tabular-nums}.danger-text{color:#a42a2a}.success-text2{color:#147a53}.empty{padding:30px;text-align:center;color:#7b8797}
.chat-box{background:#f7fafc;border:1px solid #e2e8f0;border-radius:12px;padding:16px;margin:14px 0}.chat-answer{background:#eaf4ff;color:#234e75;padding:14px;border-radius:10px;line-height:1.6}.source-note{font-size:11px;color:#78869a;margin-top:7px}
@media(max-width:1000px){.stats-grid{grid-template-columns:repeat(2,1fr)}.split{grid-template-columns:1fr}}@media(max-width:600px){.stats-grid{grid-template-columns:1fr}.card{padding:14px}}

/* M3 bilingual navigation and bidirectional layouts */
.lang-switch{display:inline-flex;gap:2px;background:#eef4fb;padding:4px;border-radius:999px;align-items:center;margin-inline-start:auto;white-space:nowrap}
.lang-switch button{border:0;background:transparent;color:#4b627d;padding:7px 11px;border-radius:999px;cursor:pointer;font:600 12px/1.3 inherit}
.lang-switch button.selected{color:#fff;background:#0c67ad}
html[dir=rtl] body{font-family:"Noto Naskh Arabic","Noto Sans Arabic",Tahoma,Arial,sans-serif}
html[dir=rtl] .app-shell{grid-template-columns:260px minmax(0,1fr)}
html[dir=rtl] .sidebar,html[dir=rtl] .content,html[dir=rtl] .card,html[dir=rtl] input:not([type=number]):not([type=date]):not([type=time]):not([type=datetime-local]),html[dir=rtl] select,html[dir=rtl] textarea{text-align:right}
html[dir=rtl] th,html[dir=rtl] td{text-align:right}
html[dir=rtl] .sidebar-footer{left:auto;right:16px}
html[dir=rtl] .timeline-item{border-left:0;border-right:3px solid #cfe0ef;border-radius:9px 0 0 9px}
html[dir=rtl] .lang-switch{margin-inline-start:auto}
html[dir=rtl] .section-title span{float:left}
html[dir=rtl] .chart-bars,html[dir=rtl] .chart-labels{direction:ltr}
html[dir=rtl] .grid-2,html[dir=rtl] .grid-3,html[dir=rtl] .stats-grid{direction:rtl}
html[dir=rtl] .badge,html[dir=rtl] .money,html[dir=rtl] input[type=number],html[dir=rtl] input[type=date],html[dir=rtl] input[type=time],html[dir=rtl] input[type=datetime-local]{font-variant-numeric:tabular-nums}
@media(max-width:800px){html[dir=rtl] .app-shell{grid-template-columns:minmax(0,1fr)}html[dir=rtl] .sidebar{left:auto;right:-280px}html[dir=rtl] .sidebar.open{left:auto;right:0}html[dir=rtl] .topbar{gap:8px}html[dir=rtl] .lang-switch{margin-inline-start:auto}}
@media print{.sidebar,.topbar,.form-actions,.menu{display:none!important}.app-shell{display:block}.content{padding:0}.card{box-shadow:none;break-inside:avoid}.document-preview{break-inside:avoid}}
.guest-lang{position:fixed;top:12px;right:16px;z-index:15;box-shadow:0 2px 14px #123b6440}html[dir=rtl] .guest-lang{right:auto;left:16px}.export-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 20px}.export-actions a{display:inline-flex;align-items:center;justify-content:center;padding:9px 12px;font-weight:700;background:#eaf3fc;border:1px solid #cbdff3;border-radius:9px;color:#145587;font-size:12px}.export-actions a:hover{background:#d7eaf9}
.chart-empty{min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;text-align:center;color:#5a6c82;padding:25px}.chart-empty strong{font-size:15px;color:#27445f}.chart-empty span{font-size:13px;line-height:1.5;max-width:410px}.chart-labels span{flex:1;min-width:0;text-align:center;overflow-wrap:anywhere;font-size:10px}

/* Access-controlled record search, with keyboard and mobile support. */
.topbar form.search{display:flex;align-items:center;gap:8px;padding:5px 7px;min-width:0}
.topbar .search input{min-width:0;width:100%;flex:1;border:0;background:transparent;padding:7px;color:#10233f;font:inherit;outline-offset:2px}
.topbar .search button{border:0;background:#0c67ad;color:#fff;border-radius:7px;padding:9px 13px;font-weight:700;cursor:pointer}
.record-search-form label{display:block;font-weight:700;font-size:13px;margin-bottom:9px}
.record-search-fields{display:flex;gap:9px;margin-bottom:18px}
.record-search-fields input{flex:1;min-width:0;border:1px solid #cbd8e8;border-radius:9px;padding:12px;font:inherit}
.search-group{padding-top:17px;border-top:1px solid #e6eaf1;margin-top:18px}
.search-group .table-card{overflow-x:auto}
@media(max-width:800px){.topbar{height:auto;min-height:72px;flex-wrap:wrap;row-gap:8px;padding-block:10px}.topbar form.search{display:flex;order:8;max-width:none;width:100%;flex-basis:100%;margin:0}.record-search-fields{flex-wrap:wrap}.record-search-fields input{min-width:170px}}
@media(max-width:375px){.topbar form.search button{padding:8px;font-size:12px}.topbar form.search input{font-size:13px}.record-search-fields button{width:100%}}

/* WCAG 2.1 AA: readable auxiliary text and keyboard-accessible mobile data tables. */
.login-brand p{color:#4b596b}
.form-grid label>small{color:#4b596b}
.page-head p{color:#4b596b}
.stat-card span{color:#4b596b}
.stat-card small{color:#4b596b}
.table-card:focus-visible{outline:3px solid #125ca1;outline-offset:2px}

/* Accessibility audit: auxiliary labels and summary metrics meet WCAG AA contrast. */
.metric-row span,.metric-row small,.metric-row span small,
.chart-labels,.muted,.kpi small,.card-title span,
.stat-card small,.info-banner small{color:#43556d}
.badge{color:#284761}
.table-card:focus-visible,.card[role="region"]:focus-visible{
  outline:3px solid #125ca1;outline-offset:2px
}
.timeline-item small,.action-card p{color:#43556d}

/* Phase 1 audited: readable authenticated topbar identity at all viewports. */
.profile small,.topbar small{color:#374e6d}

/* Forgot password recovery link, accessible within the existing login card. */
.auth-recovery-link{text-align:end;margin:11px 0 6px;font-size:13px;font-weight:650;color:#075b9c}
.auth-recovery-link a:focus-visible,.login-links a:focus-visible{outline:3px solid #125ca1;outline-offset:3px}

/* Arabic/English long academic tables must scroll INSIDE their cards on mobile. */
.grid-2 > *, .grid-3 > *, .stats-grid > * {min-width:0;}
.table-card {max-width:100%;overflow-x:auto;}
@media(max-width:1100px){.grid-2,.grid-3{grid-template-columns:minmax(0,1fr);}}
@media(max-width:800px){.content,.content > *, .grid-2,.grid-3 {min-width:0;max-width:100%;}}
