:root{color-scheme:light dark;--bg:#f6f7fa;--surface:#fff;--surface2:#f2f4f8;--text:#151923;--muted:#697283;--line:#e5e8ee;--accent:#171923;--accentText:#fff;--accentSoft:#ebeef4;--green:#18855c;--red:#c6474a;--shadow:0 24px 75px rgba(24,35,57,.105);--radius:16px;--focus:#5c7ae8}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,"Segoe UI",-apple-system,BlinkMacSystemFont,"Noto Sans",Arial,sans-serif;font-size:14px;line-height:1.5}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{outline:3px solid var(--focus);outline-offset:3px}input,textarea,select{color:var(--text)}[hidden]{display:none!important}.muted,.muted-label{color:var(--muted)}.eyebrow{font-size:10px;font-weight:800;letter-spacing:1.75px;color:#7a8191}.brand{display:inline-flex;align-items:center;gap:10px;font-size:17px;font-weight:500;letter-spacing:-.5px;white-space:nowrap}.brand strong{font-weight:800}.brand-pic{width:35px;height:35px;display:block;border-radius:9px;overflow:hidden;background:#fff;border:1px solid var(--line)}.brand img{width:100%;height:100%;object-fit:cover}.btn{border-radius:8px;border:1px solid transparent;min-height:39px;padding:9px 16px;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:700;transition:transform .12s,box-shadow .12s,background .12s;text-align:center}.btn:hover:not(:disabled){transform:translateY(-1px)}.btn:disabled{opacity:.55;cursor:not-allowed}.btn.primary{background:var(--accent);color:var(--accentText)}.btn.primary:hover{box-shadow:0 5px 16px rgba(19,25,37,.2)}.btn.light{background:var(--surface);color:var(--text);border-color:var(--line)}.btn.contrast{background:white;color:#171923}.btn.small{min-height:33px;padding:6px 12px;font-size:12px}.text-input{width:100%;border:1px solid #ced4df;border-radius:7px;background:var(--surface);height:44px;padding:11px 13px;outline:none;transition:box-shadow .15s,border-color .15s}.text-input:focus{border-color:#6a79b6;box-shadow:0 0 0 3px rgba(104,126,214,.13)}textarea.text-input{height:auto;min-height:85px;resize:vertical}.text-input::placeholder{color:#9aa2af}.action-row{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-top:25px}.action-row.align-right{justify-content:flex-end}.form-error{color:var(--red);font-size:12px;background:rgba(198,71,74,.08);padding:10px 12px;border-radius:7px;margin-top:12px}.lang-control{display:inline-flex;align-items:center;gap:7px;color:var(--muted);font-size:12px;white-space:nowrap}.lang-control svg{height:15px;width:15px;fill:none;stroke:currentColor;stroke-width:1.65}.lang-control select{border:0;background:transparent;color:inherit;font-size:12px;cursor:pointer;max-width:132px;appearance:none;outline-offset:4px}.lang-control .chevron{font-size:16px;line-height:10px}.footer-links{display:flex;align-items:center;gap:11px;flex-wrap:wrap;font-size:11px;color:var(--muted)}.footer-links a:hover{color:var(--text);text-decoration:underline}.footer-links .dot{color:#b0b5bf}
/* Sign-in surfaces */
.auth-page{min-height:100vh;background:radial-gradient(ellipse 500px 420px at 14% 13%,rgba(221,228,245,.62),transparent 95%),radial-gradient(ellipse 670px 450px at 92% 95%,rgba(213,220,237,.58),transparent 95%),#f7f8fa}.auth-stage{min-height:100vh;position:relative;display:flex;align-items:center;justify-content:center;padding:64px 20px 72px}.auth-stack{width:min(100%,440px);position:relative;z-index:1}.auth-card{background:var(--surface);box-shadow:var(--shadow);border:1px solid rgba(218,223,233,.85);border-radius:9px;min-height:450px;padding:34px 36px 0;position:relative;overflow:hidden}.auth-card .brand{margin-bottom:30px}.auth-topline{display:flex;align-items:center;justify-content:space-between;gap:5px;margin-bottom:11px}.live-indicator{font-size:10px;color:var(--muted);font-weight:700}.live-indicator span{display:inline-block;border-radius:50%;width:6px;height:6px;background:#2eae7d;margin-inline-end:3px;box-shadow:0 0 0 3px rgba(46,174,125,.12)}.auth-card h1{font-size:28px;line-height:1.23;letter-spacing:-.85px;margin:15px 0 8px;font-weight:750}.auth-card h2{font-size:18px}.lead{font-size:13px;color:var(--muted);margin:0 0 27px}.input-title{display:block;font-size:12px;font-weight:650;margin-bottom:7px}.auth-input{border:0;border-bottom:1px solid #aeb6c4;border-radius:0;padding:12px 0;height:42px}.auth-input:focus{border:0;border-bottom:2px solid #4a5b8b;box-shadow:none}.service-context{margin-top:11px;font-size:12px;display:flex;align-items:center;gap:5px;min-height:20px}.service-context #serviceName{font-weight:700}.mini-service-icon{height:17px;width:17px;margin-inline-start:5px;border-radius:4px;object-fit:cover}.text-action{background:transparent;border:0;padding:0;color:#385b9e;margin-top:15px;font-size:12px;text-decoration:underline;text-underline-offset:2px}.auth-actions{display:flex}.auth-step{min-height:245px}.auth-step .action-row{margin-bottom:30px}.inline-back{border:0;background:transparent;color:var(--muted);font-size:12px;display:flex;align-items:center;gap:8px;margin-bottom:21px;padding:0;max-width:100%;overflow:hidden;text-overflow:ellipsis}.inline-back span:first-child{font-size:19px}.input-group{position:relative}.input-group .text-input{padding-inline-end:65px}.reveal{position:absolute;inset-inline-end:0;top:0;height:44px;background:none;border:0;padding:0 12px;color:#556078;font-size:11px}.remember{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px;margin-top:14px;cursor:pointer}.remember input{accent-color:var(--accent);width:15px;height:15px}.auth-bottom{border-top:1px solid var(--line);min-height:55px;margin:22px -36px 0;padding:17px 36px;display:flex;align-items:center;gap:7px;font-size:11px;color:#667487;letter-spacing:.15px}.auth-bottom svg{height:16px;width:16px;stroke:currentColor;fill:none;stroke-width:1.5}.auth-loading{height:245px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center}.auth-loading h2{font-size:18px;margin:17px 0 4px}.auth-loading p{color:var(--muted);font-size:12px}.windows-spinner{position:relative;width:43px;height:43px;animation:spin 1.35s linear infinite}.windows-spinner i{position:absolute;top:3px;left:calc(50% - 2.3px);width:4.6px;height:4.6px;border-radius:50%;background:#4c5c7d;transform-origin:2.3px 18px;transform:rotate(calc(var(--i)*45deg));opacity:calc(.15 + var(--i)*.1)}.windows-spinner.small-spin{width:32px;height:32px}.windows-spinner.small-spin i{transform-origin:2.3px 14px}.code-input{text-align:center;letter-spacing:8px;font-size:24px;font-weight:700}.below-card{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:17px;min-height:22px}.auth-footnote{position:absolute;bottom:25px;font-size:11px;letter-spacing:1.1px;color:#9098a6;text-transform:uppercase}.modal-shade{position:fixed;inset:0;background:rgba(17,23,34,.42);display:grid;place-items:center;padding:20px;z-index:50;backdrop-filter:blur(4px)}.dialog{width:min(100%,390px);background:var(--surface);border-radius:13px;box-shadow:0 20px 80px rgba(0,0,0,.23);padding:28px}.dialog-alert{height:43px;width:43px;display:grid;place-items:center;border:2px solid #d16a48;color:#d16a48;border-radius:50%;font-size:23px;font-weight:750}.dialog h2{font-size:21px;margin:15px 0 8px}.dialog p{color:var(--muted);font-size:13px}.contact-block{border:1px solid var(--line);background:var(--surface2);padding:12px 14px;border-radius:9px;display:flex;flex-direction:column;gap:2px}.contact-block a{color:#4874c6;font-size:12px;overflow-wrap:anywhere}.consent-card .auth-bottom{margin-top:33px}.service-identity{display:flex;align-items:center;gap:15px;padding:17px 15px;background:var(--surface2);border-radius:10px;border:1px solid var(--line);margin:12px 0 18px}.service-identity img{width:49px;height:49px;object-fit:cover;border-radius:12px;background:#fff;border:1px solid var(--line)}.service-identity h2{font-size:16px;letter-spacing:-.3px;margin:3px 0 0}.scope-list{display:flex;flex-direction:column;gap:10px;margin-bottom:10px}.scope-entry{display:flex;align-items:center;gap:10px;background:var(--surface2);padding:12px;border-radius:8px;font-size:13px}.scope-entry span:first-child{width:20px;height:20px;border-radius:6px;background:#e4e8f2;display:grid;place-items:center;color:#53637a;font-size:12px}
/* Account + administration layout */
.dashboard-page{min-height:100vh}.app-shell{display:flex;min-height:100vh}.sidebar{width:245px;flex:0 0 245px;background:var(--surface);border-inline-end:1px solid var(--line);display:flex;flex-direction:column;position:sticky;top:0;height:100vh;z-index:10}.sidebar-top{padding:26px 21px 28px}.sidebar-sub{margin:18px 0 0 45px;font-size:10px;font-weight:800;letter-spacing:1.6px;color:#9ba3af}.nav{padding:0 12px;display:flex;flex-direction:column;gap:4px}.nav-link{border:0;border-radius:9px;padding:11px 12px;background:transparent;display:flex;align-items:center;gap:10px;text-align:start;color:#687284;font-weight:600;font-size:12.5px;min-height:42px;width:100%}.nav-link:hover{background:var(--surface2);color:var(--text)}.nav-link.active{background:var(--accentSoft);color:var(--text);font-weight:800}.nav-icon{font-size:16px;width:21px;text-align:center;color:inherit}.sidebar-bottom{margin-top:auto;padding:20px 12px 22px}.nav-link.danger{color:#b65352}.sidebar-knox{display:block;font-size:10px;color:#929ba9;margin:20px 15px 0}.dashboard-main{flex:1;min-width:0;display:flex;flex-direction:column}.app-topbar{height:78px;border-bottom:1px solid var(--line);background:var(--surface);display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 42px}.crumb{font-size:13px;font-weight:750}.topbar-right{display:flex;align-items:center;gap:22px}.account-pill{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:24px;padding:5px 12px 5px 5px;font-weight:700;font-size:11px}.account-pill img,.account-pill #topInitial{width:25px;height:25px;border-radius:50%;object-fit:cover}.account-pill #topInitial{display:grid;place-items:center;background:#272b36;color:#fff;font-size:12px}.mobile-menu{display:none;background:none;border:0;font-size:23px;color:var(--text)}.page-body{padding:37px 42px 65px;max-width:1270px;width:100%;margin:0 auto;flex:1}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:31px}.page-heading h1{margin:7px 0 7px;font-size:30px;letter-spacing:-1px;line-height:1.2}.page-heading p{font-size:13px;color:var(--muted);margin:0}.status-chip{display:inline-flex;align-items:center;gap:5px;border-radius:50px;background:#e9f7ef;color:#23865c;font-size:11px;font-weight:750;padding:8px 12px;white-space:nowrap}.hero-panel{background:linear-gradient(115deg,#1a1d27,#333849 64%,#4b5260);border-radius:17px;padding:30px 34px;display:flex;align-items:center;justify-content:space-between;min-height:230px;overflow:hidden;color:#fff;position:relative}.hero-panel:before{content:"";position:absolute;right:-50px;top:-170px;height:440px;width:440px;border:1px solid #ffffff24;border-radius:50%;box-shadow:0 0 0 50px #ffffff08,0 0 0 105px #ffffff05}.hero-copy{position:relative;z-index:1}.hero-tag{font-size:10px;color:#bcc7d7;letter-spacing:1.65px;font-weight:800}.hero-panel h2{font-size:29px;line-height:1.18;margin:13px 0 8px;letter-spacing:-.7px}.hero-panel p{color:#ced4df;font-size:13px;margin:0 0 22px}.hero-avatar{height:120px;width:120px;border:4px solid #ffffff3a;background:#ffffff1a;border-radius:50%;display:grid;place-items:center;position:relative;z-index:1;font-size:55px;font-weight:800}.hero-avatar img{height:100%;width:100%;object-fit:cover;border-radius:50%}.metric-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:21px 0}.info-tile{background:var(--surface);border:1px solid var(--line);padding:19px 21px;min-height:107px;border-radius:12px}.info-tile span{display:block;color:var(--muted);font-size:10px;font-weight:850;letter-spacing:1px;margin-bottom:10px}.info-tile strong{font-size:25px;letter-spacing:-.5px}.card{background:var(--surface);border:1px solid var(--line);border-radius:13px;padding:24px;margin:0 0 18px}.card.soft{background:var(--surface2)}.card h3{font-size:17px;letter-spacing:-.3px;margin:0 0 18px}.card h4{margin:0 0 5px;font-size:15px}.card-head{display:flex;align-items:center;justify-content:space-between;gap:15px}.card-head h3{margin-bottom:15px}.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 28px}.detail-grid>div,.detail-rows>div{display:flex;flex-direction:column;gap:5px;min-width:0}.detail-grid span,.detail-rows span{font-size:11px;color:var(--muted)}.detail-grid strong,.detail-rows strong{overflow-wrap:anywhere;font-size:13px}.detail-rows{display:grid;gap:19px;margin-top:22px}.two-column{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(260px,.9fr);gap:17px;align-items:start}.avatar-editor{display:flex;align-items:center;gap:18px;padding:19px;background:var(--surface2);border-radius:11px}.avatar-editor p{font-size:11px;color:var(--muted);margin:4px 0 10px}.portrait{width:82px;height:82px;border-radius:50%;display:grid;place-items:center;flex:0 0 82px;background:#303847;color:#fff;font-size:32px;font-weight:800;overflow:hidden}.portrait img{width:100%;height:100%;object-fit:cover}.notice{background:var(--surface);color:var(--muted);padding:13px;border-radius:8px;font-size:12px;border:1px solid var(--line);margin-top:22px}.item-list{display:flex;flex-direction:column;gap:10px;margin-top:15px}.item{display:flex;align-items:center;gap:13px;background:var(--surface2);border:1px solid var(--line);padding:13px 16px;border-radius:10px}.item-icon{flex:0 0 40px;height:40px;background:var(--surface);border:1px solid var(--line);display:grid;place-items:center;border-radius:10px;color:#667182;font-weight:800}.item-icon img{width:100%;height:100%;object-fit:cover;border-radius:10px}.item-main{flex:1;min-width:0}.item-main strong{display:block;font-size:13px;overflow-wrap:anywhere}.item-main span{display:block;color:var(--muted);font-size:11px;overflow-wrap:anywhere}.item-actions{display:flex;gap:6px}.dashboard-footer{border-top:1px solid var(--line);padding:18px 42px;display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:11px;color:var(--muted);background:var(--surface)}.initial-loader{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;background:var(--bg);z-index:30;gap:15px;color:var(--muted);font-size:13px}.copy-row,.inline-field{display:flex;align-items:center;gap:10px}.copy-row code{background:var(--surface2);padding:12px;border-radius:7px;overflow-wrap:anywhere;min-width:0;flex:1}.status-text{font-size:12px;color:var(--muted);margin:12px 0}.status-text.good{color:var(--green)}.admin-badge{border:1px solid #c5cbd6;font-size:10px;letter-spacing:1px;border-radius:5px;padding:6px 9px;font-weight:850}.quick-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:18px}.table-wrap{overflow-x:auto}.data-table{width:100%;border-collapse:collapse;text-align:start}.data-table th{font-size:10px;text-align:start;color:var(--muted);text-transform:uppercase;letter-spacing:.7px;padding:13px 10px;border-bottom:1px solid var(--line)}.data-table td{font-size:12px;padding:12px 10px;border-bottom:1px solid var(--line)}.data-table tr:last-child td{border-bottom:none}.pill{font-size:10px;border-radius:20px;background:var(--surface2);padding:4px 9px;font-weight:800;white-space:nowrap}.pill.active{background:#e7f6ee;color:#27865d}.pill.inactive{background:#fbeaec;color:#b14a53}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.form-grid label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:650;min-width:0}.form-grid label.wide,.form-grid fieldset.wide,.form-footer{grid-column:1/-1}.form-grid fieldset{border:1px solid var(--line);border-radius:9px;padding:14px}.form-grid legend{font-size:12px;font-weight:700;padding:0 5px}.scope-grid{display:flex;flex-wrap:wrap;gap:10px}.scope-grid label{border:1px solid var(--line);padding:7px 9px;border-radius:8px;font-size:12px;display:inline-flex;flex-direction:row;align-items:center;gap:6px}.form-footer{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:9px;margin-top:5px}.admin-view .card{margin-bottom:20px}.admin-view .card p{font-size:13px}.admin-view .text-input{font-size:13px}.file-button{width:max-content}.toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);min-width:230px;max-width:92vw;background:#262d3b;color:white;border-radius:10px;box-shadow:0 10px 35px #0003;padding:13px 18px;text-align:center;font-size:12px;z-index:90}.toast.error{background:#a83e47}.policy-header{max-width:1150px;margin:auto;padding:26px 24px;display:flex;align-items:center;justify-content:space-between}.policy-header>div{display:flex;align-items:center;gap:20px}.policy-main{max-width:800px;margin:45px auto 80px;padding:0 24px}.policy-main h1{font-size:37px;letter-spacing:-1px}.policy-main section{margin:36px 0;line-height:1.8}.policy-main section h2{font-size:17px}.policy-main p{color:var(--muted)}.policy-footer{max-width:1120px;border-top:1px solid var(--line);padding:22px 24px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:11px}.not-found{min-height:100vh;display:flex;align-items:center;justify-content:center;gap:15px;flex-direction:column}.not-found h1{font-size:72px;letter-spacing:-4px;margin:10px 0 0}.not-found p{color:var(--muted)}
@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:1000px){.sidebar{width:220px;flex-basis:220px}.app-topbar{padding:0 25px}.page-body{padding:30px 25px 45px}.dashboard-footer{padding:18px 25px}}@media(max-width:760px){.sidebar{position:fixed;top:0;bottom:0;left:0;z-index:40;transform:translateX(-105%);transition:transform .25s;box-shadow:12px 0 30px #0001;max-width:280px}.sidebar.mobile-open{transform:translateX(0)}.dashboard-main{width:100%}.mobile-menu{display:block}.app-topbar{height:64px;padding:0 18px}.topbar-right{gap:9px}.account-pill #topUsername{display:none}.account-pill{padding-inline-end:5px}.page-body{padding:28px 18px 48px}.page-heading{align-items:flex-start}.page-heading h1{font-size:25px}.status-chip{font-size:10px}.metric-row{gap:9px}.info-tile{padding:15px 13px}.info-tile span{font-size:9px}.info-tile strong{font-size:20px}.two-column{grid-template-columns:1fr}.dashboard-footer{padding:17px 18px}.hero-panel{padding:25px 23px;min-height:210px}.hero-panel h2{font-size:23px}.hero-avatar{width:90px;height:90px;font-size:36px}.card{padding:19px}.form-grid{grid-template-columns:1fr}}@media(max-width:490px){.auth-stage{padding:26px 14px 55px;align-items:flex-start}.auth-stack{margin-top:16px}.auth-card{padding:27px 25px 0;min-height:440px}.auth-card .brand{margin-bottom:27px}.auth-card h1{font-size:25px}.auth-bottom{margin-inline:-25px;padding-inline:25px}.below-card{align-items:flex-start;flex-direction:column;gap:14px;margin:18px 7px}.auth-footnote{display:none}.page-heading .status-chip{display:none}.hero-avatar{width:72px;height:72px}.hero-panel{gap:10px}.metric-row{grid-template-columns:1fr 1fr}.info-tile:last-child{grid-column:1/-1}.detail-grid{grid-template-columns:1fr}.footer-links{gap:8px}.item{align-items:flex-start}.item-actions{flex-wrap:wrap}.policy-header{gap:12px}.policy-header .brand span{display:none}}
/* RTL mirrors layout while leaving login identifiers, numeric codes, and cryptography legible */
[dir=rtl] .auth-input,[dir=rtl] .code-input{direction:ltr;text-align:start}[dir=rtl] .sidebar{border-inline-end:0;border-inline-start:1px solid var(--line)}[dir=rtl] .nav-link{text-align:right}[dir=rtl] .data-table th{text-align:right}[dir=rtl] .inline-back span:first-child{transform:scaleX(-1)}


/* AVA Passport Main - original calm Microsoft-inspired layout restored.
   Design-only layer: preserves IDs, forms, endpoints and the admin console. */
:root{color-scheme:light;--bg:#f7f8fa;--surface:#fff;--surface2:#f6f7f9;--text:#232833;--muted:#7a818e;--line:#e7e9ed;--accent:#292e39;--accentText:#fff;--accentSoft:#f9edf0;--shadow:0 20px 55px rgba(40,47,65,.085),0 5px 15px rgba(40,47,65,.035);--brand:#bf344d;--brandSoft:#f8edf0;--radius:15px}
body{font-family:'Segoe UI Variable','Segoe UI',Inter,'Helvetica Neue',Arial,'Noto Sans Arabic','Noto Sans SC',sans-serif;-webkit-font-smoothing:antialiased;font-size:14px;color:var(--text)}
.btn{border-radius:7px;min-height:40px;font-weight:650;font-size:13px;box-shadow:none}
.btn.primary{background:#2b303a;color:#fff;box-shadow:0 3px 9px rgba(24,30,42,.12)}.btn.primary:hover:not(:disabled){background:#414854}.btn.light{background:#f5f6f8;color:#343b47;border-color:#e6e9ef}.btn.light:hover:not(:disabled){background:#e9ecf1}.btn.contrast{background:#2b303a;color:#fff;border-color:#2b303a}.btn.contrast:hover:not(:disabled){background:#414854}
.text-input{border:1px solid #dce1e7;background:#fff;border-radius:7px;min-height:43px;padding:10px 13px;box-shadow:none;transition:border-color .18s,box-shadow .18s}.text-input:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(191,52,77,.10);outline:none}
.auth-page{background:radial-gradient(ellipse 45% 45% at 3% 4%,rgba(238,228,235,.9),transparent 95%),radial-gradient(ellipse 43% 52% at 97% 96%,rgba(222,232,241,.7),transparent 95%),radial-gradient(ellipse 40% 35% at 65% 4%,#fdfcfc,transparent 95%),#f6f7f9;position:relative;overflow-x:hidden}
.auth-page::before,.auth-page::after{content:'';pointer-events:none;position:fixed;width:500px;height:500px;border:1px solid rgba(144,157,177,.08);transform:rotate(45deg);z-index:0}.auth-page::before{top:-300px;left:-180px}.auth-page::after{bottom:-365px;right:-160px}
.auth-stage{padding:54px 18px 66px;min-height:100dvh}.auth-stack{width:min(100%,464px)}.auth-card{border-radius:15px;border:1px solid rgba(219,223,228,.82);padding:39px 43px 0;box-shadow:var(--shadow);min-height:464px;overflow:hidden;animation:ava-rise .35s ease-out both}.auth-card .brand{font-size:19px;letter-spacing:-.65px;margin-bottom:27px;gap:11px}.brand-pic{width:46px;height:46px;border-radius:9px;border-color:#eceef0;flex-shrink:0}.auth-card .brand-pic{width:46px;height:46px}.auth-card .brand img{object-fit:cover}
.step-progress{display:flex;align-items:center;gap:5px;width:49px;height:3px;margin:0 0 25px}.step-progress span{flex:1;height:3px;background:#e9ebef;border-radius:2px;transition:background .2s}.step-progress span:first-child{background:var(--brand)}#loginCard:has(#passwordStage:not([hidden])) .step-progress span:last-child,#loginCard:has(#totpStage:not([hidden])) .step-progress span:last-child{background:var(--brand)}
.auth-topline{margin-bottom:12px;justify-content:flex-start}.auth-topline .eyebrow{color:#b5374e;letter-spacing:1.55px;font-size:10px;font-weight:750;display:flex;align-items:center;gap:8px}.auth-topline .eyebrow:before{content:'';width:5px;height:5px;flex-shrink:0;background:var(--brand);border-radius:50%}.live-indicator{display:none}
.auth-card h1{font-size:34px;line-height:1.16;font-weight:675;letter-spacing:-1.2px;margin:0 0 12px}.auth-card .lead{color:#676f7b;font-size:14px;line-height:1.65;margin:0 0 27px}.input-title{font-size:12px;font-weight:650;letter-spacing:.1px;margin:0 0 8px}.auth-card .auth-input,.auth-card .input-group .text-input{border:0;border-radius:0;border-bottom:1.5px solid #abb2bc;box-shadow:none;padding:5px 0 11px;height:40px;min-height:40px;font-size:15px;background:transparent}.auth-card .auth-input:focus,.auth-card .input-group .text-input:focus{border:0;border-bottom:2px solid var(--brand);outline:none;box-shadow:none}.auth-card .text-input::placeholder{color:#a0a6af}.auth-card .input-group .text-input{padding-inline-end:44px}
.service-context{font-size:11px;line-height:1.6;min-height:24px;color:#7c838e;margin-top:9px}.service-context #serviceName{color:#353b45;font-weight:700}.text-action{font-size:11.5px;line-height:1.6;color:#ad3048;text-decoration:none;margin-top:14px;font-weight:600}.text-action:hover{text-decoration:underline}.auth-step{min-height:246px}.auth-step .action-row{margin:30px 0 27px}.action-row.align-right{justify-content:flex-end}.auth-step .btn.primary{min-width:105px}.auth-step .btn.light{min-width:105px}.remember{font-size:12px;color:#555d68}.inline-back{margin:-6px 0 23px;font-size:12px}.inline-back:hover{color:var(--brand)}.auth-loading{height:246px}.windows-spinner i{background:#ba3e57}
.auth-bottom{margin:26px 0 0;padding:17px 0 18px;border-top:1px solid #eceef1;color:#969ca6;font-size:10.5px;letter-spacing:0}.auth-bottom svg{height:17px;width:17px}.below-card{margin:17px 4px 0;min-height:32px}.footer-links,.lang-control{color:#848c99;font-size:10.5px}.lang-control select{font-size:11px;color:#5b626d}.auth-footnote{font-weight:740;right:34px;left:auto;bottom:24px;font-size:9px;letter-spacing:1.65px;color:#a3a9b2}.auth-footnote:before{content:'';display:inline-block;vertical-align:middle;width:24px;height:1px;background:#adb3bc;margin-right:10px}.dialog{border:1px solid #e5e8ec;box-shadow:0 26px 85px rgba(23,30,44,.18);border-radius:14px}.dialog-alert{border-color:var(--brand);color:var(--brand)}
/* Earlier clean account-center layout, lighter and less dashboard-heavy. */
.dashboard-page{background:#f7f8fa}.sidebar{background:#fff;width:253px;flex-basis:253px;border-inline-end:1px solid #e9ecf0}.sidebar-top{padding:30px 22px 31px}.sidebar-top .brand{font-size:17px}.sidebar-top .brand-pic{width:40px;height:40px}.sidebar-sub{margin:36px 0 0 11px;font-size:10px;letter-spacing:1.4px;color:#a2a7b0;font-weight:760}.nav{padding:0 14px;gap:4px}.nav-link{border-radius:9px;min-height:44px;padding:12px 13px;color:#67717e;font-size:12.5px;font-weight:590;gap:12px}.nav-link:hover{background:#f6f7f9}.nav-link.active{background:var(--brandSoft);color:#a32d44;font-weight:730}.nav-icon{font-size:17px}.sidebar-bottom{padding:15px 15px 22px}.sidebar-knox{color:#969ca7;font-size:10.5px}.app-topbar{height:74px;background:#fff;border-bottom:1px solid #ebedf0;padding:0 clamp(23px,5vw,68px)}.crumb{color:#757c87;font-size:12px;font-weight:610}.account-pill{border-color:#e7eaf0}.account-pill #topInitial{background:#292f39}.page-body{width:100%;max-width:1340px;margin:0 auto;padding:46px clamp(25px,5vw,68px) 45px}.page-heading{margin-bottom:29px;gap:14px}.page-heading .eyebrow{color:#b4384e;letter-spacing:1.5px;font-size:10px;font-weight:760}.page-heading h1{font-size:31px;letter-spacing:-.95px;font-weight:690;line-height:1.18}.page-heading p{color:#7e8590;font-size:13px}.status-chip{background:#eaf6ef;color:#328767;border-radius:20px;font-size:10.5px;font-weight:660}.admin-badge{background:#f9edf0;border:1px solid #f0dfe5;color:#9e3047;letter-spacing:1px;border-radius:18px}
.hero-panel{min-height:182px;border:1px solid #eaedf0;border-radius:13px;background:linear-gradient(105deg,#fff 0%,#fff 47%,#f8f5f7 100%);color:#252b35;padding:27px 32px;box-shadow:0 5px 20px rgba(24,35,58,.025)}.hero-panel:before{content:'';position:absolute;right:-72px;top:-210px;width:410px;height:410px;border-radius:50%;border:1px solid rgba(176,132,148,.12);box-shadow:0 0 0 53px rgba(185,143,160,.025),0 0 0 102px rgba(185,143,160,.025)}.hero-tag{font-size:9.5px;letter-spacing:1.5px;color:#b4384f;font-weight:750}.hero-panel h2{font-size:26px;margin:10px 0 7px;color:#252b35;font-weight:690}.hero-panel p{font-size:12.5px;color:#7a808b;margin:0 0 17px}.hero-avatar{height:94px;width:94px;border:3px solid #fff;background:#2d3440;color:#fff;box-shadow:0 4px 14px #25334916;font-size:37px}.metric-row{gap:14px;margin-top:15px}.info-tile{border-radius:11px;border:1px solid #eaedf0;background:#fff;padding:20px 22px;min-height:103px}.info-tile span{font-size:10px;letter-spacing:1.2px;color:#959aa4}.info-tile strong{font-size:24px;font-weight:650}.card{border:1px solid #e9ebef;border-radius:12px;background:#fff;padding:23px 25px;box-shadow:0 5px 20px rgba(24,35,58,.018)}.card.soft{background:#f8f9fa}.card h3{font-size:16px;font-weight:670}.item{background:#f9fafb;border-color:#edeff2}.item-icon{background:#fff;border:1px solid #eceef1}.detail-grid span,.detail-rows span{color:#9a9fa9}.detail-grid strong,.detail-rows strong{color:#333a45}.dashboard-footer{background:#fff;border-top:1px solid #ebedf0;color:#8a919d;font-size:11px}
/* Admin: same restrained layout and structure, no new navigation model. */
.admin-page .page-body{max-width:1340px}.admin-page .card{margin-bottom:16px}.admin-page .metric-row{margin:0 0 18px}.admin-page .quick-actions{gap:9px}.admin-page .quick-actions .btn{min-height:39px}.admin-page .data-table th{font-size:10px;letter-spacing:.75px;color:#8d949e}.admin-page .data-table td{font-size:12px}.admin-page .form-grid{gap:17px}.admin-page .card h3{font-size:16px}.admin-page .status-chip{background:#f8edf0;color:#ad3550}
@keyframes ava-rise{from{opacity:.5;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1000px){.sidebar{width:220px;flex-basis:220px}.page-body{padding:32px 25px 40px}}
@media(max-width:760px){.sidebar{width:252px;flex-basis:252px}.auth-stage{padding-top:40px}.page-body{padding:27px 18px 43px}.page-heading h1{font-size:26px}.hero-panel{min-height:165px;padding:25px}.hero-avatar{height:75px;width:75px}.app-topbar{height:66px;padding:0 18px}.info-tile{padding:15px}.auth-footnote{display:none}}
@media(max-width:490px){.auth-page{background:#f8f9fb}.auth-stage{align-items:flex-start;padding:22px 12px 42px}.auth-stack{margin-top:9px}.auth-card{padding:31px 27px 0;min-height:445px}.auth-card .brand{margin-bottom:26px}.auth-card h1{font-size:29px}.auth-card .lead{font-size:13px}.auth-bottom{margin:19px 0 0;padding:15px 0 17px}.below-card{margin:16px 6px 0;align-items:flex-start;gap:10px}.hero-panel{gap:9px}.hero-avatar{height:66px;width:66px}.hero-panel h2{font-size:22px}.hero-panel p{font-size:12px}.metric-row{grid-template-columns:1fr 1fr}.info-tile:last-child{grid-column:1/-1}.info-tile{min-height:80px}.page-heading{margin-bottom:22px}}
@media(prefers-reduced-motion:reduce){.auth-card{animation:none}.windows-spinner{animation-duration:3s}}


/* AVA Passport v2, original light palette retained */
:root{color-scheme:light}
.otp-login-hint{font-size:10.8px;color:#858b97;line-height:1.5;margin:8px 0 6px}
.record-notes{padding:13px;background:#f8f9fb;border:1px solid #eaecf1;border-radius:9px;font-size:12px;line-height:1.8;color:#596272}
.admin-action-box{border-top:1px solid #e9ecf0;margin-top:23px;padding:20px 0 0}
.admin-action-box h4{margin:0 0 7px;font-size:14px}
.admin-action-box details{margin-top:16px;padding:14px;border:1px solid #eceef1;border-radius:9px;background:#fbfbfc}
.admin-action-box summary{cursor:pointer;font-weight:650}
.admin-action-box details p{margin:12px 0}
.token-display{background:#f6f7fa;border:1px solid #e3e6eb;border-radius:8px;padding:15px;overflow-wrap:anywhere;line-height:2;font-size:14px;user-select:all}
.token-display code{font-weight:650;letter-spacing:.4px}
.developer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px}
.developer-grid .card{margin-bottom:0}
.developer-grid h3{font-size:15px}
.code-output{background:#f7f8fb;border:1px solid #e7e9ed;border-radius:8px;padding:14px;font-size:11.5px;white-space:pre-wrap;overflow-wrap:anywhere;min-height:76px;max-height:280px;overflow:auto;color:#343b48}
.credential-card{margin-top:17px}
@media(max-width:760px){.developer-grid{grid-template-columns:1fr}.token-display{font-size:12px}.admin-page #editUserPanel .form-grid{grid-template-columns:1fr}}
