@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');

body.portal-shell{--portal-ink:#173f43;--portal-teal:#087566;--portal-teal-deep:#07565a;--portal-mint:#e5f1ed;--portal-pale:#f3f7f4;--portal-gold:#c9a45e;--portal-line:#d7e5df;--portal-muted:#607876;background:#f1f6f3;color:var(--portal-ink);font-family:'IBM Plex Sans Arabic',sans-serif}
.portal-shell .topbar{background:linear-gradient(105deg,#07545a,#08736c);box-shadow:0 5px 20px #124d4a24;min-height:72px}
.portal-shell .brand-title{display:none}.portal-shell .top-actions{gap:0}.portal-shell .top-actions>*{display:none}
.portal-shell .portal-language{display:inline-flex!important;align-items:center;gap:7px;color:#eef8f3}
.portal-language label{font-size:12px}.portal-language select{font:inherit;color:#123f41;background:#eff8f4;border:1px solid #a8cec0;border-radius:9px;padding:7px 25px 7px 9px;min-height:40px}
.portal-shell main{width:min(1210px,calc(100% - 40px));padding:30px 0 58px}
.portal-shell .site-footer{background:#edf4f0;color:#536d6b}
.portal-shell .site-footer span:first-child{font-weight:600}
.portal-shell .portal-view{animation:portal-in .35s ease both}
@keyframes portal-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.portal-shell .portal-hero{min-height:405px;display:grid;grid-template-columns:1.02fr .98fr;align-items:center;overflow:hidden;border:1px solid #d9e8e1;border-radius:25px;background:linear-gradient(105deg,#f9fbf8 0%,#e9f2ed 50%,#d7e9e1 100%);box-shadow:0 15px 38px #174f4820;position:relative}
.portal-hero-copy{padding:clamp(26px,5vw,62px);position:relative;z-index:1}
.portal-kicker{color:#16796d;font-weight:700;letter-spacing:.04em;font-size:13px}
.portal-hero h1{font-size:clamp(34px,5.1vw,57px);line-height:1.25;letter-spacing:-1px;color:#11454a;margin:9px 0 14px}
.portal-hero p{font-size:16px;line-height:1.9;color:#546e6c;max-width:545px;margin:0 0 25px}
.portal-art{height:100%;min-height:340px;background:linear-gradient(90deg,#e9f2ed00,#e0eee6aa),url('/static/reference-hero.png') center/cover no-repeat;position:relative}
.portal-art:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#e9f2ed,transparent 35%)}
.portal-cta-row{display:flex;gap:10px;flex-wrap:wrap}
.portal-shell .portal-btn{display:inline-flex;min-height:50px;align-items:center;justify-content:center;gap:9px;padding:11px 20px;border:1px solid transparent;border-radius:12px;background:#087566;color:#fff;font:700 15px 'IBM Plex Sans Arabic',sans-serif;text-decoration:none;cursor:pointer;transition:transform .18s,background .18s,box-shadow .18s;box-shadow:0 6px 16px #08756624}
.portal-shell .portal-btn:hover{background:#075f58;transform:translateY(-2px)}
.portal-btn svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.portal-shell .portal-btn:focus-visible,.portal-shell a:focus-visible,.portal-shell button:focus-visible,.portal-shell input:focus-visible,.portal-shell select:focus-visible{outline:3px solid #79bda8;outline-offset:3px}
.portal-shell .portal-btn.secondary{background:#f8fbf8;color:#16534f;border-color:#a9cfc0;box-shadow:none}
.portal-shell .portal-btn.secondary:hover{background:#e4f1eb}
.portal-roles{display:grid;grid-template-columns:repeat(3,1fr);gap:13px;margin:24px 0 28px}
.portal-role{border:1px solid var(--portal-line);border-radius:17px;background:#fbfdfb;padding:20px;text-align:right;display:flex;align-items:center;gap:14px;cursor:pointer;color:var(--portal-ink);font:inherit;min-height:112px;transition:transform .18s,border-color .18s,background .18s;box-shadow:0 7px 20px #234f4410}
.portal-role:hover{transform:translateY(-2px);border-color:#81b5a3;background:#f4faf6}
.portal-role-mark{flex:0 0 48px;height:48px;border-radius:14px;display:grid;place-items:center;background:#e6f3ed;color:#167365}
.portal-role-mark svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.portal-role strong{display:block;font-size:17px;color:#17494a}.portal-role small{display:block;color:#687c78;font-size:12px;margin-top:3px;line-height:1.6}
.portal-principles{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0 0}.portal-principles span{border:1px solid #d6e4dc;border-radius:999px;padding:7px 12px;color:#59716d;background:#f8fbf8;font-size:12px}
.portal-login{width:min(560px,100%);margin:8px auto;background:#fbfdfb;border:1px solid var(--portal-line);border-radius:20px;padding:clamp(22px,5vw,38px);box-shadow:0 16px 40px #214f4420}
.portal-login h1{font-size:27px;color:#16484a;margin:4px 0}.portal-login>p{font-size:14px;color:var(--portal-muted);margin:5px 0 18px;line-height:1.8}
.portal-login .portal-field{display:grid;gap:6px;margin:14px 0}.portal-field label{font-size:13px;font-weight:700}.portal-field input{border:1px solid #c9dbd3;background:#fff;border-radius:10px;padding:12px 13px;min-height:48px;color:#204343}
.portal-check{display:flex;gap:10px;align-items:flex-start;margin:14px 0;color:#516966;font-size:13px;line-height:1.7}.portal-check input{margin-top:6px;accent-color:#087566}
.portal-alert{padding:11px 13px;border:1px solid #e9c5bc;border-radius:10px;background:#fff3ef;color:#8b4138;margin:13px 0;font-size:13px}
.portal-auth-switch{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-top:16px;font-size:13px;color:var(--portal-muted)}
.portal-auth-switch button,.portal-back{border:0;background:none;color:#087566;text-decoration:underline;text-underline-offset:3px;cursor:pointer;font:inherit;font-weight:700;padding:5px}
.portal-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:5px 0 20px}
.portal-heading h1{font-size:clamp(27px,4vw,38px);color:#16484a;margin:2px 0}.portal-heading p{margin:0;color:var(--portal-muted);font-size:14px}
.portal-progress{display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px;margin-top:13px}.portal-progress-track{height:9px;border-radius:10px;background:#e1ece6;overflow:hidden}.portal-progress-track span{height:100%;display:block;background:#68aa8f;border-radius:10px}
.portal-progress strong{font:600 13px 'IBM Plex Sans Arabic',sans-serif;color:#17695f}
.portal-actions-grid{display:grid;grid-template-columns:1.12fr 1fr 1fr;gap:13px}
.portal-action{min-height:160px;border:1px solid var(--portal-line);border-radius:17px;background:#fbfdfb;padding:19px;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:14px;box-shadow:0 7px 20px #234f440c}
.portal-action.primary-action{background:#e6f2ec;border-color:#c1ddd0}.portal-action h2{font-size:17px;color:#17494a;margin:0}.portal-action p{font-size:12px;color:#667a76;margin:3px 0 0;line-height:1.7}.portal-action .portal-btn{font-size:13px;min-height:42px;padding:8px 14px}
.portal-action.is-unavailable{background:#f5f7f4;border-style:dashed}.portal-action.is-unavailable .portal-btn{background:#e7ece8;color:#75827c;border-color:#d8e0dc;box-shadow:none;cursor:not-allowed}
.portal-note{margin:18px 0;padding:12px 15px;border-right:3px solid #c9a45e;background:#fff9ea;color:#715b31;border-radius:10px;font-size:13px;line-height:1.8}
.portal-units{margin-top:25px}.portal-units h2{font-size:21px;color:#17494a;margin:0 0 11px}.portal-unit-list{display:grid;gap:9px}
.portal-unit{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 15px;background:#fbfdfb;border:1px solid var(--portal-line);border-radius:12px}.portal-unit strong{display:block;color:#17494a}.portal-unit small{color:#6a7d78}
.portal-error,.portal-empty{border:1px solid var(--portal-line);background:#f9fcfa;border-radius:16px;padding:28px;text-align:center;color:var(--portal-muted);line-height:1.8}.portal-error h2,.portal-empty h2{color:#17494a;margin:0 0 5px}
.portal-loading{display:grid;gap:12px}.portal-skeleton{height:92px;border-radius:14px;background:linear-gradient(100deg,#e3ece7 20%,#f2f6f3 40%,#e3ece7 60%);background-size:300% 100%;animation:portal-shimmer 1.45s ease infinite}
@keyframes portal-shimmer{to{background-position:-130% 0}}
.prerequisite-note{padding:7px 10px;margin:8px 0!important;background:#fff8e8;border-right:3px solid #c9a45e;color:#735d35!important;border-radius:6px}
@media(max-width:760px){.portal-shell main{width:calc(100% - 28px);padding:18px 0 38px}.portal-shell .topbar{min-height:63px}.portal-shell .brand{font-size:18px}.portal-shell .brand-mark{width:35px;height:35px}.portal-shell .portal-language label{display:none}.portal-shell .portal-language select{min-height:38px}.portal-hero{grid-template-columns:1fr;min-height:0}.portal-hero-copy{padding:27px 23px 22px}.portal-hero h1{font-size:36px}.portal-hero p{font-size:14px}.portal-art{grid-row:1;height:170px;min-height:170px;background-position:center 48%}.portal-art:after{background:linear-gradient(180deg,#e9f2ed,transparent 30%)}.portal-roles{grid-template-columns:1fr;gap:9px;margin:17px 0 23px}.portal-role{min-height:88px;padding:14px}.portal-role strong{font-size:16px}.portal-actions-grid{grid-template-columns:1fr;gap:9px}.portal-action{min-height:132px;padding:16px}.portal-heading{align-items:flex-start;flex-direction:column}.portal-heading .portal-btn{width:100%}.portal-login{margin:0 auto}.portal-cta-row .portal-btn{flex:1 1 100%}}
@media(max-width:760px){.portal-shell .portal-hero{grid-template-columns:1fr;min-height:0}}
@media(prefers-reduced-motion:reduce){.portal-shell *, .portal-shell *:before,.portal-shell *:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
