:root{font-family:Arial,Helvetica,sans-serif;color:#fff;background:#fff;font-size:16px;font-synthesis:none;--blue:#152d64;--muted:#c3cee5;--focus:#a7c5ff}
*{box-sizing:border-box}body{margin:0;min-width:280px}[hidden]{display:none!important}
main{position:relative;isolation:isolate;min-height:100dvh;display:flex;justify-content:center;align-items:center;padding:48px 20px}
main::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:url('/static/internal-mapping.png') center / min(1100px,150vw) auto no-repeat;opacity:.1}
.panel{width:100%;max-width:460px;background:var(--blue);border:1px solid #1c3976;border-radius:18px;padding:36px 38px 28px;box-shadow:0 14px 44px #10275b20}
.brand{font-size:1rem;font-weight:700;letter-spacing:.13em;color:#dce5f8;margin-bottom:28px}.description{color:var(--muted);font-size:.94rem;line-height:1.55;margin:0}
label{display:block;font-size:.875rem;font-weight:600;margin:0 0 9px}input,button{font:inherit}input{width:100%;min-width:0;color:#162744;border:1px solid #d7dfed;border-radius:7px;background:#fff;padding:13px 14px;font-size:.94rem;line-height:1.4}input::placeholder{color:#78869c}input:focus-visible,button:focus-visible{outline:3px solid var(--focus);outline-offset:3px}#email{margin-bottom:21px}
button{cursor:pointer;font-weight:600}button:disabled{cursor:wait;opacity:.65}.primary{width:100%;min-height:47px;display:flex;align-items:center;justify-content:center;gap:10px;border:1px solid #fff;border-radius:7px;padding:12px 18px;background:#fff;color:#173269;font-size:.94rem;margin-top:25px;transition:background .15s}.primary:hover{background:#e9effb;border-color:#e9effb}
textarea{display:block;width:100%;min-width:0;resize:vertical;min-height:200px;max-height:420px;overflow-wrap:anywhere;border:1px solid #7189b3;border-radius:7px;background:#213c72;color:#e2ebff;padding:14px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.875rem;line-height:1.6}textarea:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.account{position:relative;border-top:1px solid #ffffff21;margin-top:25px;padding-top:16px;color:var(--muted);font-size:.875rem}
.account-toggle{display:flex;align-items:center;gap:8px;max-width:100%;border:0;border-radius:6px;background:transparent;color:var(--muted);padding:6px 0;font-size:.875rem;font-weight:400;text-align:left;line-height:1.5}.account-toggle:hover,.account-toggle[aria-expanded="true"]{color:#fff}.account-toggle span{overflow-wrap:anywhere}.account-toggle>svg{width:14px;height:14px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.5;transition:transform .15s}.account-toggle[aria-expanded="true"]>svg{transform:rotate(180deg)}
.account-popover{position:absolute;bottom:calc(100% - 4px);left:0;z-index:5;width:min(290px,100%);padding:18px;border:1px solid #e0e6f0;border-radius:12px;background:#fff;color:#182b50;box-shadow:0 12px 38px #07163730;font-size:.875rem}.account-profile{display:flex;align-items:center;gap:12px}.account-profile>div{min-width:0}.account-profile strong{display:block;font-size:.94rem;line-height:1.4;overflow-wrap:anywhere}.account-avatar{display:grid;place-items:center;width:40px;height:40px;flex-shrink:0;border-radius:50%;background:#edf2fc;color:#34548a}.account-avatar svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round}.account-status{display:flex;align-items:center;gap:6px;margin-top:4px;color:#74819a;font-size:.75rem}.account-status>span{width:6px;height:6px;border-radius:50%;background:#3b9271}.account-access{display:flex;align-items:center;justify-content:space-between;margin-top:18px;color:#62718a}.account-role{border-radius:5px;background:#edf2fc;color:#34548a;padding:4px 8px;font-size:.75rem;font-weight:600}.account-description{margin:6px 0 16px;color:#7a879b;font-size:.75rem}.account-signout{display:flex;align-items:center;gap:8px;width:100%;padding:11px 0 0;border:0;border-top:1px solid #e7ecf4;background:transparent;color:#29477a;text-align:left;font-size:.875rem}.account-signout:hover{color:#152d64}.account-signout svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.text-button{border:0;background:transparent;padding:5px 0;color:#fff;text-decoration:underline;text-underline-offset:3px;font-size:.875rem;white-space:nowrap}.text-button:hover{color:#bfceeb}
.message,.error{font-size:.875rem;line-height:1.5;margin:17px 0 0}.message{color:#d9e7ff}.error{background:#fff0f0;color:#842b36;border-radius:6px;padding:10px 12px}.spinner{width:15px;height:15px;border:2px solid #17326930;border-top-color:#173269;border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:480px){main{padding:28px 16px}.panel{padding:28px 25px 25px;border-radius:14px}}
@media(prefers-reduced-motion:reduce){.spinner{animation:none}}

select{width:100%;font:inherit;color:#fff;background:#213c72;border:1px solid #7189b3;border-radius:7px;padding:12px 14px;margin-bottom:18px}select:disabled{opacity:1;cursor:default}details{border:1px solid #7189b3;border-radius:7px}summary{cursor:pointer;padding:13px 14px;font-size:.94rem;font-weight:600}summary:focus-visible{outline:3px solid var(--focus);outline-offset:3px}details textarea{border:0;border-top:1px solid #7189b3;border-radius:0 0 7px 7px}
