/* Original Al Razi / Natco assets, with an accessible purple-and-gold interface. */
:root{
 --brand-purple:#67258c;--brand-purple-deep:#491969;--brand-purple-soft:#f3edf8;
 --brand-gold:#b47b23;--brand-gold-soft:#fff6e5;--natco-blue:#385fb4;--natco-red:#ce2630;
 --ink:#2e203b;--muted:#776b80;--teal:var(--brand-purple);--teal-dark:var(--brand-purple-deep);
 --teal-soft:var(--brand-purple-soft);--line:#e9e2ee;--canvas:#f8f7fb;
 --amber:#8d5d13;--amber-soft:#fff5df;--blue:var(--natco-blue);--blue-soft:#edf1fc;
 --red:#ad344b;--red-soft:#fff0f3;--sidebar:268px;
}
body{background:var(--canvas)}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline-color:#9363b1}
a{color:var(--brand-purple)}
.sidebar{background:#fff;color:#483755;border-inline-end:1px solid var(--line);box-shadow:-3px 0 24px #3c1a5805;padding:23px 17px 20px}
.brand{gap:10px;padding:0 12px 23px;flex-wrap:wrap;justify-content:center;border-bottom:1px solid var(--line)}
.brand-symbol{background:var(--brand-purple);border-color:#8d54aa;box-shadow:none;border-radius:12px}
.brand-name{color:var(--brand-purple-deep);font-size:1.45rem;letter-spacing:0}
.brand-caption{color:var(--muted);font-size:.875rem;line-height:1.8}
.brand-logos{display:flex;align-items:center;justify-content:center;gap:20px;width:100%;min-width:0}
.brand-logos img{display:block;max-width:100%;height:auto}
.brand-logos .logo-alrazi,.brand-logos .alrazi-logo{width:160px;height:96px;object-fit:cover;object-position:50% 60%}
.brand-logos .logo-natco,.brand-logos .natco-logo{width:110px;max-height:58px;object-fit:contain}
.sidebar .brand-logos{flex-direction:column;gap:12px;margin-bottom:9px}
.sidebar .brand-logos .logo-natco,.sidebar .brand-logos .natco-logo{width:100px;max-height:46px}
.nav-caption{color:#928299;font-size:.8125rem;padding-top:23px}
.nav-item{color:#67586f;border-radius:10px;font-size:.9375rem;min-height:48px}
.nav-item:hover{background:#f8f5fb;color:var(--brand-purple)}
.nav-item.active{background:#f0e8f7;border-color:#e6d8ef;color:var(--brand-purple-deep);font-weight:600}
.nav-item.active:before{background:#bf8a35;inset-inline-start:-17px;top:14px;bottom:14px;width:4px}
.nav-item.active svg{color:var(--brand-purple)}
.nav-count{background:#ece3f4;color:#70388d}
.sidebar-bottom{border-top-color:var(--line);padding:17px 10px 0}
.private-label{color:#57445f;font-size:.9rem}.private-label svg{color:var(--brand-purple)}
.sidebar-bottom p{color:#8a7b92;font-size:.8125rem}
.topbar{border-top:3px solid var(--brand-purple);height:85px;box-shadow:0 2px 8px #30204003}
.avatar{background:#f4edf9;color:var(--brand-purple);border-color:#e5d7ee}
.page-heading{margin-bottom:26px}.eyebrow{color:var(--brand-purple);font-weight:600;letter-spacing:0}
h1{letter-spacing:-.025em;font-weight:700;color:#35203f}
h2,h3{color:#3b2747}
.button{border-radius:9px;font-size:.9rem;min-height:43px}
.button.primary{background:var(--brand-purple);border-color:var(--brand-purple);box-shadow:0 4px 10px #67258c12}
.button.primary:hover{background:var(--brand-purple-deep);border-color:var(--brand-purple-deep)}
.button.light{background:#f2eaf8;border-color:#e9ddf1;color:var(--brand-purple)}
.button:hover{background:#f8f4fb}.button.primary:hover{background:var(--brand-purple-deep)}
.button.subtle{color:var(--brand-purple)}
.button.danger{color:var(--red);border-color:#f0d6df}
.panel,.service-card,.protocol-card,.stat,.stat-card,.card{border-color:var(--line);border-radius:13px;box-shadow:0 3px 15px #38234604}
.stat,.stat-card{border-top:3px solid #ede3f4;min-height:150px}
.stat-icon{background:var(--brand-purple-soft);color:var(--brand-purple)}
.stat-title{color:#776580;font-size:.875rem}.stat-number{color:#3d2450;font-size:2.125rem}
.stat-foot{color:#8a7b92;font-size:.8125rem}
.notice{background:#fffaf0;border-color:#f0e1c4;border-radius:11px}
.notice strong,.notice>svg{color:#8b621e}.notice p{color:#927749}
.notice.info{background:#f5f0fa;border-color:#e5d9ef}.notice.info strong,.notice.info p,.notice.info>svg{color:#6b4382}
.service-card{position:relative;padding:23px;min-height:270px}
.service-card:hover{border-color:#cdb5df;box-shadow:0 6px 20px #52227108}
.service-card h3{color:#4c2861}.service-card p{line-height:1.9}
.service-top svg,.quick-icon{color:var(--brand-purple)}
.service-card:before{content:'';position:absolute;inset-inline-start:23px;top:0;width:32px;height:3px;background:#c69446;border-radius:0 0 3px 3px}
.service-summary{background:#f6f1fa;border-color:#e8dbef;color:#6d4b82}
.quick-card{border-color:var(--line);border-radius:11px}.quick-card:hover{border-color:#d5bbdf;box-shadow:0 4px 18px #4f23600a}.quick-icon{background:#f3edf8}
.badge.teal{background:#f0e8f7;color:#6b338a}.badge.blue{color:var(--natco-blue)}
.chip.active{background:#f1e9f7;border-color:#d6bfe4;color:var(--brand-purple)}
.tab.active{color:var(--brand-purple);border-bottom-color:var(--brand-purple)}
input,select,textarea{border-color:#e3dce8;font-size:.9375rem}
input:hover,select:hover,textarea:hover{border-color:#cab3d8}
input:focus,select:focus,textarea:focus{border-color:#9363b1}
input:disabled,select:disabled,textarea:disabled{background:#f6f3f8}
.checkbox-field input{accent-color:var(--brand-purple)}
th{background:#faf8fc;color:#82708e;font-size:.875rem}td{border-bottom-color:#f0eaf4;font-size:.875rem}
tbody tr[data-open]:hover{background:#fcfaff}.filters,.tabs,.table-foot,.panel-heading{border-color:var(--line)}
.person-circle{background:#f2ecf7;color:#8958a2}
.doc-item.complete{background:#faf7fc}.doc-item.complete .doc-check{color:var(--brand-purple);border-color:#dac5e7;background:#f2e9f8}
.doc-check{border-color:#e2d6e9}.detail-description{color:#6d5b79}
.approval-box{background:#f7f2fb;border-color:#e6d7ef}.approval-box.pending{background:#fffaf0;border-color:#eddfc1}
.approval-box p{color:#7b6b83}.info-list{background:#faf8fc;border-color:#e9dfef}.info-row{border-color:#eae0f0}
.timeline:before{background:#e4d7eb}.timeline-mark{background:#e9d9f3;outline-color:#dfc9ed}
.empty-graphic:before{background:#f3edf8;border-color:#ebdff2}.empty-graphic:after{border-color:#decae9}.empty-graphic svg{color:#9c70b5}
.readiness-banner{background:#fcfaff;border-color:#d9c5e6}.department-bar span{background:var(--brand-purple)}
.pending-icon{border-color:#e1d7e8;color:#9d86ad}
.scenario-card .guard{color:var(--brand-purple);border-top-color:#eee5f4}
.toast{background:#4a2362;box-shadow:0 8px 25px #4e236322}.toast svg{color:#efd9a0}
dialog{border:1px solid #e4d7ed;border-radius:17px;box-shadow:0 25px 100px #3414463b}
dialog::backdrop{background:#2d153b6b;backdrop-filter:blur(4px)}
.modal-head{border-top:4px solid var(--brand-purple);border-bottom-color:var(--line)}
.modal-head .icon-button{background:#f6f1fa;color:#825b96}.modal-foot{background:#fcfaff;border-top-color:var(--line)}
.field label{font-size:.9rem}.field-help{font-size:.8125rem;line-height:1.9}.required{color:var(--brand-purple)}
.footer{color:#93849b;border-top:1px solid var(--line);padding-top:18px}
/* Entry, registration, access review and integration settings. */
.auth-shell{min-height:100dvh;display:grid;grid-template-columns:minmax(320px,1fr) minmax(480px,1.2fr);background:#fff}
.auth-aside{padding:clamp(28px,5vw,80px);display:flex;flex-direction:column;justify-content:center;background:linear-gradient(145deg,#4a1969,#6d2b8d);color:#fff;position:relative;overflow:hidden}
.auth-aside:after{content:'';position:absolute;width:270px;height:270px;border:1px solid #ffffff14;border-radius:50%;inset-inline-end:-135px;bottom:-70px;pointer-events:none}
.auth-aside h1,.auth-aside h2,.auth-aside h3{color:#fff}.auth-aside h1{font-size:2rem;line-height:1.8;margin-top:28px}.auth-aside p{color:#e8d9f0;max-width:440px;font-size:1rem;line-height:2.1;margin-top:18px}
.auth-aside .eyebrow{color:#f2d18e}.auth-aside .brand-logos{justify-content:flex-start;background:#fff;border-radius:13px;padding:12px 20px;width:fit-content;max-width:100%}
.auth-aside .brand-logos .logo-alrazi,.auth-aside .brand-logos .alrazi-logo{width:158px;height:94px}
.auth-main{display:flex;justify-content:center;align-items:center;padding:clamp(26px,5vw,70px)}
.auth-card{width:100%;max-width:670px}.auth-card>.brand-logos{margin-bottom:30px}.auth-card h1{font-size:1.7rem}.auth-card h2{font-size:1.5rem;margin-bottom:12px}.auth-card>p{color:var(--muted);margin:10px 0 25px}
.auth-card .form-grid{gap:18px}.auth-card .button.primary{min-height:47px;padding-inline:28px}
.auth-card .auth-actions{margin-top:25px;display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.auth-card .status-banner{margin:22px 0}
.status-banner{display:flex;align-items:flex-start;gap:13px;padding:16px 19px;border-radius:11px;background:#f5eefb;border:1px solid #e5d8ef;color:#6c4682;line-height:1.95;font-size:.9rem}
.status-banner strong{display:block;color:#50266a}.status-banner.warning{background:#fff8e9;border-color:#eddfbf;color:#8b6c32}.status-banner.success{background:#f0f8f4;border-color:#d6e9df;color:#39694d}.status-banner.error{background:#fff1f4;border-color:#eed7df;color:#993950}
.permission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:17px}
.permission-grid label{display:flex;align-items:flex-start;gap:10px;padding:13px 14px;border:1px solid var(--line);border-radius:9px;background:#fcfaff;font-size:.875rem;line-height:1.9;cursor:pointer}
.permission-grid label:has(input:checked){background:#f3eaf9;border-color:#d9c2e7;color:var(--brand-purple)}
.permission-grid input[type=checkbox]{width:18px;height:18px;min-height:18px;margin:5px 0 0;accent-color:var(--brand-purple);flex-shrink:0}
.user-card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:21px;display:flex;flex-direction:column;gap:14px;min-width:0}
.user-card h3{color:#4e2964}.user-card .user-meta{display:grid;gap:6px;color:var(--muted);font-size:.875rem;overflow-wrap:anywhere}
.user-card .user-actions{display:flex;gap:8px;flex-wrap:wrap;padding-top:13px;border-top:1px solid var(--line)}
.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:21px;align-items:start}
.settings-grid>.panel,.settings-grid>.card{min-width:0}.settings-grid .field{margin-bottom:17px}
.settings-grid .wide{grid-column:1/-1}.settings-grid .checklist{display:grid;gap:10px;font-size:.9rem;color:var(--muted)}
.settings-grid code{background:#f5f1f8;border-radius:5px;padding:2px 6px;overflow-wrap:anywhere}
.settings-note{padding:15px 18px;background:#f9f5fc;border:1px solid #e9dff0;border-radius:9px;font-size:.875rem;line-height:1.95;color:#7d638c}
.account-summary{display:flex;align-items:center;gap:12px;min-width:0}.account-summary .account-name{font-size:.9rem;font-weight:600;color:#503660}.account-summary .account-role{font-size:.8125rem;color:var(--muted)}
.brand-hero{display:flex;justify-content:space-between;gap:25px;align-items:center;padding:25px 28px;background:linear-gradient(110deg,#f3eafa,#fff 70%);border:1px solid #e6d8ef;border-radius:14px;margin-bottom:24px}
.brand-hero h2{font-size:1.35rem;color:#54266c}.brand-hero p{font-size:.9rem;color:#84708e;margin-top:5px}.brand-hero .brand-logos{width:auto;flex-shrink:0}
.notification-preview{padding:18px;border:1px solid #d6e9dc;border-radius:12px;background:#f5faf6;white-space:pre-wrap;line-height:2;font-size:.9375rem}
@media(min-width:1600px){:root{--sidebar:280px}}
@media(max-width:1200px){:root{--sidebar:238px}.sidebar{padding-inline:13px}.nav-item{font-size:.875rem;padding-inline:11px;gap:10px}.nav-item.active:before{inset-inline-start:-13px}.brand-name{font-size:1.3rem}.brand-hero{padding:22px}.brand-hero .brand-logos{gap:12px}.brand-hero .logo-alrazi{width:135px;height:81px}.brand-hero .logo-natco{width:90px}}
@media(max-width:960px){:root{--sidebar:0px}.sidebar{width:268px}.auth-shell{grid-template-columns:1fr}.auth-aside{padding:30px 28px}.auth-aside h1{font-size:1.6rem;margin-top:16px}.auth-aside p{max-width:none;margin-top:9px}.auth-main{padding:32px 25px}.auth-aside .brand-logos{gap:14px}.auth-aside .brand-logos .logo-alrazi{width:133px;height:80px}.auth-aside .brand-logos .logo-natco{width:90px}.settings-grid{grid-template-columns:1fr}.brand-hero{align-items:flex-start}.brand-hero .brand-logos{display:none}}
@media(max-width:700px){.topbar{height:76px}.auth-aside{padding:24px 21px}.auth-aside h1{font-size:1.4rem}.auth-aside p{font-size:.9rem}.auth-main{padding:27px 19px}.auth-card h1,.auth-card h2{font-size:1.4rem}.auth-card .form-grid{gap:15px}.auth-card .auth-actions{align-items:stretch;flex-direction:column}.auth-actions .button{width:100%}.permission-grid{grid-template-columns:1fr}.user-card{padding:17px}.settings-grid{gap:17px}.brand-hero{padding:19px}.brand-hero h2{font-size:1.15rem}.brand-logos{gap:14px}.brand-logos .logo-alrazi,.brand-logos .alrazi-logo{width:138px;height:83px}.brand-logos .logo-natco,.brand-logos .natco-logo{width:97px}.status-banner{padding:14px;font-size:.875rem}.stat,.stat-card{min-height:136px}.footer{padding-top:16px}}
@media print{.brand-hero{display:none}.auth-aside{background:#fff;color:#222}.auth-aside h1,.auth-aside p{color:#222}.sidebar,.topbar{display:none}.panel,.service-card,.protocol-card,.stat{box-shadow:none}}

.sidebar{overflow-y:auto}.text-button{font:inherit;border:0;background:transparent;color:var(--brand-purple);cursor:pointer;padding:3px 0;text-decoration:underline}.status-banner>svg{width:21px;height:21px;min-width:21px;margin-top:5px}.auth-actions{display:flex;gap:12px;flex-wrap:wrap}

.welcome-shell{max-width:1280px;margin:auto;padding:0 35px 30px}.welcome-header{min-height:120px;display:flex;align-items:center;justify-content:space-between;gap:25px;border-bottom:1px solid var(--line)}.welcome-header .brand-logos{width:auto}.welcome-header nav{display:flex;gap:12px;flex-wrap:wrap}.welcome-hero{display:grid;grid-template-columns:1.2fr 1fr;gap:65px;align-items:center;padding:70px 0}.welcome-hero h1{font-size:2.65rem;line-height:1.65;margin:15px 0 22px}.welcome-hero p{font-size:1.05rem;line-height:2.1;color:var(--muted)}.welcome-hero .auth-actions{margin-top:25px}.welcome-hero .field-help{font-size:.875rem;margin-top:18px}.welcome-highlight{background:linear-gradient(145deg,#4a1969,#742a99);padding:38px 32px;border-radius:22px;color:#fff;box-shadow:0 16px 38px #67258c15}.welcome-highlight>span{color:#efcb8b}.welcome-highlight h2{font-size:1.9rem;color:white;margin:24px 0 18px}.welcome-highlight p{color:#e3d6ec;font-size:1rem}.welcome-flow{display:grid;gap:10px;margin-top:24px}.welcome-flow span{padding:13px 16px;background:#ffffff12;border:1px solid #ffffff20;border-radius:8px;font-size:.9375rem}.welcome-departments{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin-bottom:40px}.welcome-departments article{background:#fff;padding:24px;border:1px solid var(--line);border-radius:13px;border-top:3px solid #c28a39}.welcome-departments svg{width:28px;height:28px;color:var(--brand-purple);margin-bottom:16px}.welcome-departments h3{font-size:1.1rem}.welcome-departments p{font-size:.9375rem;line-height:1.9;color:var(--muted);margin-top:9px}.welcome-tools{padding:30px;background:#fff;border:1px solid var(--line);border-radius:13px;margin-bottom:35px}.welcome-tools h2{font-size:1.3rem}.welcome-tools p{color:var(--muted);margin:12px 0 20px;line-height:1.9}.welcome-shell .footer{margin-top:30px}.auth-main .form-divider{margin:25px 0}#server-storage-form .field{margin-bottom:18px}
@media(max-width:960px){.welcome-shell{padding-inline:25px}.welcome-hero{gap:28px;padding-block:45px}.welcome-hero h1{font-size:2rem}.welcome-highlight{padding:28px}.welcome-highlight h2{font-size:1.5rem}.welcome-departments{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.welcome-header{min-height:105px}.welcome-header .logo-alrazi{width:130px;height:78px}.welcome-header .logo-natco{width:90px}}
@media(max-width:700px){.welcome-shell{padding-inline:18px}.welcome-header{flex-direction:column;gap:10px;padding:15px 0 20px}.welcome-header nav{justify-content:center}.welcome-hero{grid-template-columns:1fr;gap:25px;padding-block:35px}.welcome-hero h1{font-size:1.9rem}.welcome-hero p{font-size:1rem}.welcome-highlight{padding:25px}.welcome-departments{gap:12px}.welcome-departments article{padding:17px}.welcome-departments h3{font-size:1rem}.welcome-tools{padding:21px}.top-actions [data-nav=account] span{display:none}.top-actions .button{padding-inline:10px}.top-actions{gap:6px}.welcome-shell .auth-actions .button{flex:1;justify-content:center}.auth-main{align-items:flex-start}}

.auth-aside>.button{color:var(--brand-purple);background:#fff;border-color:#e5d7ee}
.connection-panel{border:1px solid var(--line);border-radius:12px;background:#fff;padding:18px 20px;margin-top:22px;font-size:.9375rem;line-height:1.9}.connection-origin{display:block;overflow-wrap:anywhere;color:var(--muted);font-size:.875rem}.connection-panel [data-connection-feedback]{margin-top:8px;color:var(--muted)}[data-connection-feedback][data-state=ready]{color:#176b50}[data-connection-feedback][data-state=error]{color:#b32442}.connection-panel .auth-actions{gap:8px;margin-top:12px}.connection-panel .field-help{margin-top:14px}.connection-presets{margin-bottom:20px}.auth-card>.connection-panel{margin-top:25px}.connection-panel .button{font-size:.875rem}
