:root{--ink:var(--text-primary);--navy:var(--brand-navy);--teal:var(--brand-teal);--muted:var(--text-secondary);--line:var(--border);--wash:var(--page);color:var(--ink);font:var(--text-base)/var(--line-base) var(--font-ui)}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a{cursor:pointer}a{color:var(--teal)}button,input,select{border:1px solid var(--input-border);border-radius:var(--radius-control);background:var(--paper);color:var(--ink);padding:8px 12px;min-height:var(--control-height);font-size:var(--text-sm);line-height:22px}button:hover{background:var(--wash)}button:disabled{opacity:.55;cursor:wait}.primary{background:var(--navy);color:white;border-color:var(--navy);font-weight:600}.primary:hover{background:var(--brand-hover)}label{display:block;margin:14px 0}label>input:not([type=checkbox]),label>select{width:100%;display:block;margin-top:5px}input:focus-visible,button:focus-visible,a:focus-visible,select:focus-visible{outline:2px solid var(--focus-ring);outline-offset:2px}[hidden]{display:none!important}h1,h2,h3,p{margin-top:0}h1{font-size:var(--text-page);line-height:var(--line-page);font-weight:600}h2{font-size:var(--text-section);line-height:var(--line-section);font-weight:600}.split{min-height:100dvh;display:grid;grid-template-columns:1fr 1fr}.brand{background:var(--navy);color:white;display:flex;flex-direction:column;justify-content:center;padding:clamp(24px,6vw,110px);position:relative;overflow:hidden}.brand img{width:min(270px,65%);z-index:1}.brand h1{font-size:clamp(25px,3vw,48px);margin:30px 0 0}.brand p{color:var(--on-dark);font-family:var(--font-brand);font-size:var(--text-card)}.vessels{width:100%;height:160px;margin-top:30px}.entry{display:grid;place-items:center;padding:32px}.entry>div{width:min(100%,365px)}.entry .primary{width:100%;margin:12px 0}.password{display:flex;align-items:center}.password input{min-width:0;flex:1}.password button{margin-left:6px}.text{border:0;color:var(--teal);padding-inline:0}.error,[role=alert]{color:var(--error-ink);overflow-wrap:anywhere}.split{animation:appear .24s ease-out}@keyframes appear{from{opacity:.65}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}@media(max-width:720px){.split{display:block}.brand{padding:24px}.brand img{width:123px}.brand h1{margin:10px 0 2px;font-size:23px}.brand p{margin:0;font-size:var(--text-xs)}.vessels{display:none}.entry{padding:28px 20px}.entry h1{font-size:26px}}
header.bar{background:var(--navy);color:white;display:flex;align-items:center;gap:18px;padding:15px clamp(16px,5vw,80px)}.bar img{width:100px}.bar a{margin-left:auto;color:white}.console{max-width:1240px;margin:auto;padding:28px 20px}.toolbar,nav,.stats{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.stats{margin:22px 0;gap:16px}.stat{padding:12px 20px;border-left:3px solid var(--teal);background:var(--wash)}.stat b{display:block;font-size:26px}.scroll{overflow:auto}table{border-collapse:collapse;width:100%;font-size:14px}th,td{text-align:left;border-bottom:1px solid var(--line);padding:12px 8px;white-space:nowrap}th{color:var(--muted)}dialog{width:min(650px,96vw);max-height:90dvh;padding:24px;border:1px solid var(--line);border-radius:var(--radius-dialog);color:var(--ink)}dialog::backdrop{background:#092b41aa}fieldset{margin:14px 0;border:1px solid var(--line);border-radius:6px}.choices{max-height:245px;overflow:auto}.choices label{margin:5px 0}.choices input{min-height:0}output,pre{white-space:pre-wrap;overflow-wrap:anywhere}nav{margin:18px 0}nav button[aria-current=true]{color:white;background:var(--navy)}

#roles,#audit,#history,#logins{overflow-x:auto}#history td:last-child,#audit td:last-child{white-space:normal;overflow-wrap:anywhere;min-width:130px}.choices label{min-height:30px}.choices input{width:17px;height:17px;vertical-align:middle}.vessels{animation:trace-in .7s ease-out both}@keyframes trace-in{from{opacity:0;transform:translateX(-6px)}}.entry summary{padding-block:8px;color:var(--muted);cursor:pointer}
#saved,#seed{overflow-wrap:anywhere}#policy{max-width:460px}.brand p{position:relative}

/* Shared V5.2.0 tokens refine the existing authentication and account layouts. */

body{background:var(--paper)}
.entry h1,.console h1{letter-spacing:-.025em;line-height:1.25}
.entry label{font-size:var(--text-sm);font-weight:500}

#login[aria-busy=true] #submit{cursor:progress}
input[name=otp]{font-variant-numeric:tabular-nums;letter-spacing:.21em}
.entry [role=alert]:not(:empty){padding:var(--gap-2) var(--gap-3);background:var(--error-bg);color:var(--error-ink);border-radius:var(--radius-control)}
.entry [role=status]:not(:empty){font-size:var(--text-sm);color:var(--neutral-700)}
.console .stats{gap:0;border-block:1px solid var(--neutral-200)}
.console .stat{border-left:0;padding:var(--gap-4) var(--gap-6);border-radius:0;box-shadow:none}
.console .stat+.stat{border-left:1px solid var(--neutral-200)}
.console td,.console th{font-variant-numeric:tabular-nums}
:where(a,button,input,select,summary,textarea):focus-visible{outline:2px solid var(--analytic-blue);outline-offset:3px}
button:disabled{opacity:.58;cursor:not-allowed}
button:not(:disabled):active{filter:brightness(.94)}
@media(prefers-reduced-motion:reduce){.vessels{animation:none}button{transition:none}}

.brand h1 {font-family:var(--p3-font-heading);font-weight:var(--p3-heading-weight)}
.brand h1 span {font-family:var(--p3-font-brand);font-weight:400}
