@import url("/css/fonts.css");
@font-face{font-family:Taj;src:url('/assets/noto-sans-arabic.ttf');font-weight:100 900;font-display:swap}*{box-sizing:border-box}body{margin:0;background:var(--tone-ivory-soft);color:var(--tone-green-900);font:15px/1.9 Taj,Tahoma,Arial,sans-serif}button,input,textarea,select{font:inherit}a{color:inherit}button,a.btn{min-height:44px;padding:9px 17px;border:1px solid var(--tone-border-control);border-radius:9px;background:var(--brand-white);color:var(--tone-green-900);cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:6px}button.primary{background:var(--tone-green-850);color:var(--brand-white);border-color:var(--tone-green-850)}button:disabled{opacity:.55;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--tone-focus-gold);outline-offset:3px}header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px max(20px,calc((100vw - 1200px)/2));background:var(--tone-green-850);color:var(--brand-white)}header .identity{display:flex;gap:14px;align-items:center}header img{width:76px;height:64px;object-fit:contain}h1{font-size:23px;line-height:1.7;margin:0}h2{font-size:21px;margin:0 0 12px}h3{font-size:16px;margin:0}p{margin:6px 0 16px}.tools{display:flex;flex-wrap:wrap;gap:8px;align-items:center}select{padding:9px;border:1px solid var(--tone-border-select);border-radius:7px;background:var(--brand-white);min-height:44px;color:var(--tone-green-900)}nav{display:flex;gap:9px;flex-wrap:wrap;margin:25px 0}nav button[aria-current=page]{background:var(--tone-green-850);color:var(--brand-white)}main{max-width:1200px;margin:auto;padding:0 22px 36px}section.card,.card{background:var(--brand-white);border:1px solid var(--tone-border-card);border-radius:14px;padding:24px;margin:18px 0}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.metric{font-size:34px;font-weight:600}.muted{color:var(--tone-green-muted);font-size:13px}.notice{padding:13px 18px;border-inline-start:4px solid var(--tone-gold-rule);background:var(--tone-gold-note-soft);border-radius:7px;margin:15px 0}.error{color:var(--tone-error)}.list{display:grid;gap:12px}.item{padding:18px;border:1px solid var(--tone-border-item);border-radius:10px;overflow-wrap:anywhere}.item p{white-space:pre-wrap}.item-head{display:flex;justify-content:space-between;align-items:start;gap:12px}.badge{font-size:12px;padding:3px 10px;border-radius:20px;background:var(--tone-green-soft)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.full{grid-column:1/-1}label{display:grid;gap:6px;font-size:14px}input,textarea{width:100%;border:1px solid var(--tone-border-input);border-radius:7px;padding:11px;font-size:16px;background:var(--brand-white)}textarea{min-height:110px;resize:vertical}dialog{width:min(680px,calc(100vw - 30px));max-height:90dvh;overflow:auto;border:0;border-radius:14px;padding:25px}dialog::backdrop{background:var(--tone-dialog-scrim)}.end{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}footer{max-width:1200px;margin:auto;padding:20px 22px;display:flex;gap:12px;align-items:center;border-top:1px solid var(--tone-border-neutral)}footer img{width:36px;height:36px;object-fit:contain}.gate{max-width:700px;margin:60px auto}.secretary-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px}pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit}.saved{color:var(--tone-green-700)}@media(max-width:700px){header{padding:18px;flex-wrap:wrap}header img{width:58px;height:52px}h1{font-size:19px}main{padding:0 14px 25px}.grid,.secretary-columns,.form-grid{grid-template-columns:1fr}.full{grid-column:auto}section.card,.card{padding:18px}.tools{width:100%}.item-head{flex-wrap:wrap}nav{gap:7px}nav button{flex:1 0 auto;font-size:13px}footer{font-size:12px}}
/* Mobile form controls must shrink within their cards, including long labels. */
.student-welcome{background:var(--tone-ink-800)!important;color:var(--tone-gold-note)}.student-welcome h2{margin-block:10px 20px}.progress-unit{max-width:310px;margin-bottom:16px}.student-metrics .card{margin:0}.progress-card{text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px}.progress-ring{width:122px;height:122px;flex:none;display:grid;place-items:center;border-radius:50%;background:conic-gradient(var(--tone-focus-gold) var(--progress),var(--tone-neutral-warm) 0);position:relative}.progress-ring:before{content:"";position:absolute;inset:10px;border-radius:50%;background:var(--brand-white)}.progress-ring strong{position:relative;font-size:27px;color:var(--tone-ink-800)}.student-milestones .card{display:flex;flex-direction:column;gap:5px;width:100%;margin:0}.student-timeline{list-style:none;padding:0}.student-timeline li{display:grid;grid-template-columns:105px minmax(0,1fr);gap:16px;padding:20px 0;border-bottom:1px solid var(--tone-border-warm)}.student-timeline time{font-size:12px;color:var(--tone-green-muted)}.student-timeline p{margin-bottom:5px}@media(max-width:700px){.student-metrics{grid-template-columns:1fr 1fr;gap:10px}.student-metrics>.card:last-child{grid-column:1/-1}.progress-ring{width:100px;height:100px}.student-metrics h3{font-size:13px}.student-metrics .card{padding:16px 8px}.student-milestones{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.student-milestones .card{padding:10px 4px;font-size:12px}.student-milestones .metric{font-size:26px}.student-timeline li{grid-template-columns:1fr;gap:4px}}
header>* ,.identity,.tools,main,.form-grid>*{min-width:0}select{max-width:100%;width:auto;font-size:16px}input,textarea{max-width:100%;min-width:0}footer{flex-wrap:wrap}header .identity{flex:1 1 240px}header .identity h1{overflow-wrap:anywhere}@media(max-width:700px){.tools select{flex:1 1 140px}.end{flex-wrap:wrap}.form-grid select{width:100%}header{padding-top:max(18px,env(safe-area-inset-top))}main{padding-bottom:calc(25px + env(safe-area-inset-bottom))}}

/* Umayr approved portal theme, keeping all server-backed account behavior. */

body{background:var(--tone-neutral-100);color:var(--tone-ink-900);font-family:"Noto Naskh Arabic",Tahoma,serif}header{background:var(--tone-navy-900);color:var(--tone-gold-200)}header h1{font-family:Amiri,serif}header img{width:70px;height:52px}.card,section.card{border-color:var(--tone-border-translucent);border-radius:20px}button.primary,nav button[aria-current=page]{background:var(--tone-navy-900);border-color:var(--tone-navy-900);color:var(--tone-gold-200)}button,a.btn,select{font-family:"Noto Naskh Arabic",Tahoma,serif}.student-welcome{background:var(--tone-navy-900)!important}.progress-ring{background:conic-gradient(var(--tone-gold-500) var(--progress),var(--tone-progress-track) 0)}footer img{width:120px;height:70px}.student-milestones .card{border-radius:16px}
