:root{color-scheme:light;--navy:#102c4c;--accent:#164c87;--ink:#172e49;--muted:#536980;--line:#d7e1ec;--page:#f0f4f8;--surface:#fff;--danger:#a52b43;--success:#226447;font:16px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--page);color:var(--ink)}
*{box-sizing:border-box}body{margin:0;min-height:100vh;min-height:100dvh;background:var(--page)}[hidden]{display:none!important}.app-header{background:var(--navy);color:white}.header-inner{max-width:960px;margin:auto;min-height:88px;padding:16px 24px;display:flex;align-items:center;gap:14px}.header-inner img{object-fit:contain;flex:none}.header-inner strong{display:block;font-size:22px;line-height:1.2;letter-spacing:.03em}.header-inner div>span{display:block;font-size:12px;color:#b8cde4;margin-top:3px}.local-badge{margin-left:auto;font-size:12px;color:#d7e8fb;border:1px solid #ffffff36;padding:6px 10px;border-radius:100px;white-space:nowrap}
main{width:min(100%,960px);margin:auto;padding:28px 24px 20px}h1,h2,p{overflow-wrap:anywhere}h1{font-size:clamp(25px,4vw,32px);line-height:1.2;letter-spacing:-.035em;margin:6px 0 14px}h2{font-size:21px;line-height:1.3;margin:8px 0 12px}p{margin:0 0 16px}.eyebrow{font-size:11px;font-weight:750;text-transform:uppercase;letter-spacing:.13em;color:var(--accent)}.muted,.small-note,small{color:var(--muted)}.small-note{font-size:13px;margin:22px 0 0}small{font-size:12px;margin-top:-4px}.auth-card{max-width:480px;margin:12px auto 28px;padding:28px;border:1px solid var(--line);border-radius:22px;background:var(--surface)}.auth-card>p{color:var(--muted);font-size:14px}.notice{padding:12px 16px;background:#e4eef8;border-radius:12px;font-size:14px;overflow-wrap:anywhere}.notice:empty{display:none}.form-error{padding:12px 14px;border-left:3px solid var(--danger);background:#fff1f3;color:#8a2338;font-size:14px;margin:14px 0 0}.page-heading,.section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.page-heading{margin-bottom:22px}.page-heading h1{margin-bottom:7px}.page-heading p{margin:0}.section-heading{margin:30px 0 14px}.section-heading h2{margin:4px 0}.section-heading p{font-size:13px;margin:5px 0 0}
form{display:grid;gap:10px}label{font-size:14px;font-weight:650}input{font:inherit;color:var(--ink);background:#f9fbfd;border:1px solid var(--line);border-radius:11px;padding:12px 13px;min-width:0;width:100%;min-height:48px;margin-bottom:5px}button{font-family:inherit;font-size:14px;font-weight:650;line-height:1.3;cursor:pointer;min-height:46px;border:1px solid var(--accent);border-radius:12px;padding:12px 18px;background:var(--accent);color:white;touch-action:manipulation;transition:background-color 140ms,transform 100ms}button:active:not(:disabled){transform:scale(.98)}button:disabled{opacity:.55;cursor:wait}button:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #70a9e0;outline-offset:3px}form>button{margin-top:8px}button.secondary{background:transparent;color:var(--accent);border-color:var(--line)}button.danger{background:var(--danger);border-color:var(--danger)}button.danger-outline{background:transparent;border-color:#d5a4ae;color:var(--danger)}.auth-tabs,.filter-group{display:flex;gap:8px;margin:18px 0}.auth-tabs button,.filter-group button{flex:1;background:transparent;color:var(--muted);border-color:var(--line)}.auth-tabs button[aria-pressed=true],.filter-group button[aria-pressed=true]{background:var(--navy);color:white;border-color:var(--navy)}.filter-group{max-width:360px;margin:0 0 18px}.state-card{padding:24px;border:1px solid var(--line);border-radius:20px;background:white}.state-card p{color:var(--muted);max-width:680px}.status-badge{display:inline-flex;align-items:center;padding:4px 10px;border-radius:100px;background:#e8eef6;color:var(--accent);font-size:12px;font-weight:700}.status-badge[data-status=approved]{background:#e4f2e9;color:var(--success)}.status-badge[data-status=pending]{background:#fff1d8;color:#7b5615}.status-badge:is([data-status=rejected],[data-status=revoked]){background:#fae8ec;color:#912940}
.users-list{display:grid;gap:12px}.user-card{border:1px solid var(--line);background:white;border-radius:16px;padding:20px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px 18px;align-items:center}.user-card h3{font-size:17px;margin:0 0 4px;overflow-wrap:anywhere}.user-email{font-size:13px;color:var(--muted);margin:0 0 10px;overflow-wrap:anywhere}.user-role{font-size:12px;color:var(--muted);margin-left:8px}.user-actions{display:flex;flex-wrap:wrap;gap:8px}.user-actions button{font-size:13px}.empty-state{border:1px dashed var(--line);border-radius:16px;padding:28px;text-align:center;color:var(--muted);background:#ffffff80}.error-retry{margin-top:12px}footer{font-size:12px;color:var(--muted);padding:24px 0 6px;text-align:center}dialog{width:min(440px,calc(100% - 32px));max-height:85dvh;overflow:auto;border:1px solid var(--line);border-radius:20px;padding:24px;color:var(--ink);background:white;box-shadow:0 18px 60px #102c4c2b}dialog::backdrop{background:#102c4c88}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}section:not([hidden]){animation:reveal 140ms ease-out}@keyframes reveal{from{opacity:.65;transform:translateY(3px)}to{opacity:1;transform:none}}
@media(max-width:560px){.header-inner{padding:14px 16px;gap:10px}.header-inner img{width:42px;height:42px}.local-badge{font-size:10px;padding:5px 8px}main{padding:20px 16px}.auth-card{padding:22px 18px;border-radius:18px;margin:0 auto 22px}.page-heading,.section-heading{gap:12px;flex-wrap:wrap}.page-heading>button{min-height:44px;padding:10px 13px}.state-card{padding:20px}.user-card{padding:18px;grid-template-columns:minmax(0,1fr)}.user-actions{width:100%}.user-actions button{flex:1;padding:11px 12px}.section-heading>button{padding:10px 14px}.dialog-actions button{flex:1;padding:12px}.filter-group{max-width:none}}
@media(prefers-reduced-motion:reduce){section:not([hidden]){animation:none}button{transition:none}}
