/* AMISA 37 — organized learning-first dashboard inspired by course-catalog usability patterns.
   Scoped to the new home shell; legacy pages, routes, data, roles and handlers remain intact. */
.am37{--a37-bg:#0d2030;--a37-card:#132f43;--a37-stroke:rgba(130,176,198,.25);--a37-white:#f3fafc;--a37-muted:#adc3d1;--a37-aqua:#2acdb2;--a37-gold:#e6bb74;direction:rtl;display:flex;flex-direction:column;gap:27px;min-width:0;color:var(--a37-white);font-family:'Noto Sans Arabic','Noto Kufi Arabic',Tahoma,Arial,sans-serif}
.am37 *{box-sizing:border-box}
.am37 button{font-family:inherit;cursor:pointer}
.am37 .am37-top{background:linear-gradient(111deg,#12344b 0%,#102739 49%,#0c4549 100%);border:1px solid #25576a;border-radius:22px;padding:27px 31px;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:175px}
.am37 .am37-top:after{content:'';position:absolute;left:-50px;top:-105px;width:290px;height:290px;border:1px solid #68c6bc27;border-radius:50%;pointer-events:none;box-shadow:0 0 0 39px #58a8a407,0 0 0 80px #58a8a40a}
.am37 .am37-eyebrow{display:inline-flex;color:#79ead1;font-weight:800;font-size:11px;letter-spacing:.2px;margin-bottom:12px}
.am37 .am37-top h1{font-size:clamp(24px,2.55vw,34px);color:#fff;margin:0 0 12px;line-height:1.45;letter-spacing:-.4px;font-weight:850}
.am37 .am37-top p{color:#bdd2dd;font-size:13px;line-height:1.95;max-width:520px;margin:0}
.am37 .am37-top-actions{position:relative;z-index:1;display:flex;flex-direction:column;gap:10px;min-width:177px}
.am37 .am37-mainbtn{border:1px solid #30d9c3;background:linear-gradient(140deg,#14cbb2,#0ea28e);color:#05272d;font-size:13px;font-weight:900;border-radius:11px;padding:13px 15px;white-space:nowrap}
.am37 .am37-secondary{border:1px solid #376478;background:rgba(13,34,52,.65);color:#eaf6fc;font-size:12px;font-weight:750;border-radius:11px;padding:12px 14px;white-space:nowrap}
.am37 .am37-mainbtn:hover,.am37 .am37-secondary:hover,.am37 .am37-card:hover,.am37 .am37-mini:hover{filter:brightness(1.12);transform:translateY(-2px)}
.am37 .am37-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:15px}
.am37 .am37-heading h2{margin:0;color:var(--a37-white);font-weight:850;font-size:18px;line-height:1.55}
.am37 .am37-heading p{margin:4px 0 0;color:var(--a37-muted);font-size:12px;line-height:1.8}
.am37 .am37-index{display:inline-grid;place-items:center;width:30px;height:30px;border:1px solid #37677a;background:#193a4d;color:#70e5cf;border-radius:9px;font-size:12px;font-weight:900;margin-left:8px}
.am37 .am37-more{border:none;background:none;color:#7aecd6;padding:7px 0;font-size:12px;font-weight:800;white-space:nowrap}
.am37 .am37-chooser #amisa35Path{margin:0;border:1px solid #28586b;box-shadow:none;background:linear-gradient(135deg,#102b40,#0d273a);border-radius:17px;padding:22px 23px}
.am37 .am37-chooser .ah35-heading{margin-bottom:15px;align-items:center}
.am37 .am37-chooser .ah35-heading h1{font-size:18px!important;line-height:1.6;margin:0 0 4px;color:#f6fcff!important}
.am37 .am37-chooser .ah35-heading p{font-size:11px;color:#a9c6d5!important;line-height:1.85}
.am37 .am37-chooser .ah35-eyebrow{color:#5fdfc8;font-size:10px}
.am37 .am37-chooser .ah35-step{font-size:10px;border-radius:24px;background:#163d4b;border:1px solid #28586b;color:#bcece6}
.am37 .am37-chooser .ah35-types{gap:12px}
.am37 .am37-chooser .ah35-type{background:#17374d!important;border-color:#2c586c!important;border-radius:13px!important;padding:15px!important;min-height:91px}
.am37 .am37-chooser .ah35-type.is-active{background:#075b5c!important;border-color:#38d6bd!important;box-shadow:inset 0 0 0 1px #2ed5b581}
.am37 .am37-chooser .ah35-type b{font-size:15px;color:#fff!important}
.am37 .am37-chooser .ah35-type small{font-size:10px;color:#b1d0dc!important}
.am37 .am37-chooser .ah35-types>button>span{font-size:23px}
.am37 .am37-chooser .ah35-fields{gap:10px;margin-top:16px}
.am37 .am37-chooser .ah35-field{min-width:0}
.am37 .am37-chooser .ah35-field>span{font-size:11px;font-weight:750;color:#c7e5ee}
.am37 .am37-chooser select{background:#10263b!important;border:1px solid #356174!important;color:#e9f6fb!important;min-height:44px;border-radius:10px!important;font-size:12px!important;font-family:inherit}
.am37 .am37-chooser .ah35-subject{background:#183a4d!important;color:#e4f6fb!important;border-color:#396b7a!important;min-height:43px}
.am37 .am37-chooser .ah35-subject.is-active{border-color:#21cbb5!important;background:#0b5c5e!important}
.am37 .am37-chooser .ah35-lecture{background:#173246!important;color:#e5f4f8!important;border-color:#386376!important}
.am37 .am37-chooser .ah35-foot{color:#9ab7c3}
.am37 .am37-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.am37 .am37-card{background:linear-gradient(155deg,#1a3b51,#123044);border:1px solid var(--a37-stroke);border-radius:15px;min-height:140px;padding:19px 17px;text-align:right;display:flex;flex-direction:column;align-items:flex-start;gap:8px;transition:transform .18s,filter .18s}
.am37 .am37-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#0a5c60;border:1px solid #207879;color:#b8fff0;font-size:21px}
.am37 .am37-card:nth-child(2) .am37-icon{background:#394069;border-color:#60658b;color:#e0dcff}
.am37 .am37-card:nth-child(3) .am37-icon{background:#5d4427;border-color:#79613e;color:#ffdfa6}
.am37 .am37-card:nth-child(4) .am37-icon{background:#1b4e65;border-color:#347189;color:#d7f0ff}
.am37 .am37-card b{font-size:13px;color:#f7fdff;font-weight:850;line-height:1.7}
.am37 .am37-card small{font-size:11px;color:#a8c3d1;line-height:1.65}
.am37 .am37-support{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.am37 .am37-mini{border:1px solid #325b6e;background:#112b40;border-radius:12px;min-height:66px;display:flex;align-items:center;text-align:right;gap:12px;padding:11px 13px;transition:transform .18s,filter .18s}
.am37 .am37-mini i{font-style:normal;flex:none;background:#244c5c;display:grid;place-items:center;width:36px;height:36px;border-radius:10px;color:#b4f4e6;font-size:18px}
.am37 .am37-mini b{display:block;font-size:12px;color:#e9f5fb;line-height:1.7}
.am37 .am37-mini small{font-size:10px;color:#96b7c7;display:block;margin-top:1px}
.am37 .am37-focus{background:#0b2537;border:1px solid #214c60;border-radius:17px;padding:20px 22px}
.am37 .am37-focus .lux-midgrid{display:block;margin:0}
.am37 .am37-focus .lux-card{border:0;background:transparent;padding:0;box-shadow:none}
.am37 .am37-focus .lux-card .lux-section-heading{margin-bottom:13px}
.am37 .am37-focus .lux-card .lux-section-heading h2{font-size:17px}
.am37 .am37-focus .lux-tasklist{margin:0}
.am37 .am37-footer-note{font-size:11px;line-height:1.95;color:#8caab9;border-top:1px solid #234a5d;padding:13px 2px 0}
.am37 a:focus-visible,.am37 button:focus-visible,.am37 select:focus-visible{outline:3px solid #59e5d2;outline-offset:3px}
/* Simplify duplicate labels and redundant shortcuts on homepage only. */
.am37 .am37-chooser .ah35-heading{display:none!important}
#main:has(.am37) > .am30-shortcuts{display:none!important}
/* Compress only the student's sidebar: keep every legacy route in the services menu. */
body:has(.am37) #lux-extra{display:none!important}
body:has(.am37) #navTwo .navitem{font-size:12px}
@media(max-width:1000px){.am37 .am37-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.am37 .am37-support{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.am37{gap:23px}.am37 .am37-top{padding:19px;min-height:auto;flex-direction:column;align-items:stretch;border-radius:17px}.am37 .am37-top h1{font-size:25px}.am37 .am37-top p{font-size:12px}.am37 .am37-top-actions{flex-direction:row;min-width:0;gap:9px}.am37 .am37-top-actions>button{flex:1;white-space:normal;padding:11px 8px;font-size:11px}.am37 .am37-heading{align-items:start}.am37 .am37-heading h2{font-size:16px}.am37 .am37-chooser #amisa35Path{padding:16px 14px;border-radius:15px}.am37 .am37-chooser .ah35-heading{flex-direction:column;align-items:flex-start;gap:7px}.am37 .am37-chooser .ah35-heading h1{font-size:17px!important}.am37 .am37-chooser .ah35-types{gap:9px}.am37 .am37-chooser .ah35-type{padding:12px 9px!important;min-height:90px}.am37 .am37-chooser .ah35-type b{font-size:13px}.am37 .am37-grid{gap:9px}.am37 .am37-card{padding:15px 13px;min-height:125px}.am37 .am37-card b{font-size:12px}.am37 .am37-card small{font-size:10px}.am37 .am37-support{gap:8px}.am37 .am37-mini{padding:10px;gap:8px;min-height:64px}.am37 .am37-mini i{width:31px;height:31px}.am37 .am37-mini b{font-size:11px}.am37 .am37-mini small{font-size:9px}.am37 .am37-focus{padding:16px}}
@media(max-width:340px){.am37 .am37-support{grid-template-columns:1fr}.am37 .am37-top h1{font-size:22px}}
