/* Self-contained shell UI: system fonts only, no network assets. */
:root{color-scheme:dark;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#18191b;color:#f1f1f2;font-synthesis:none;text-rendering:optimizeLegibility}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;min-height:100svh;display:grid;place-items:center;padding:clamp(1rem,5vw,3rem);line-height:1.6}
.card{width:100%;max-width:30rem;padding:clamp(1.5rem,6vw,3rem);background:#202124;border:1px solid #34363a;border-radius:1.5rem;box-shadow:0 16px 64px #00000024}
.brand{display:flex;align-items:center;gap:.6rem;margin-bottom:2.5rem;color:#c4c5c8;font-size:.75rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase}
.brand-mark{width:.55rem;height:.55rem;border-radius:50%;background:currentColor}
.state{display:flex;align-items:center;gap:.6rem;margin-bottom:1rem;color:#bfc1c6;font-size:.8rem;font-weight:500;letter-spacing:.02em}
.state-icon{width:1.25rem;height:1.25rem;display:inline-grid;place-items:center;border:1px solid currentColor;border-radius:50%;font-size:.75rem;line-height:1}
.error .state{color:#f09b9e}
h1{margin:0 0 .85rem;font-size:clamp(1.35rem,4vw,1.65rem);line-height:1.3;letter-spacing:-.035em;font-weight:600;overflow-wrap:anywhere}
p{margin:0;color:#b6b8be;font-size:.9375rem;line-height:1.75;overflow-wrap:anywhere}
button{display:block;width:100%;min-height:2.875rem;margin-top:2rem;padding:.75rem 1rem;border:1px solid #62656b;border-radius:.75rem;background:#e2e3e5;color:#202124;font:inherit;font-size:.875rem;font-weight:600;line-height:1.4;cursor:pointer;transition:background-color .15s,border-color .15s}
button:hover{background:#fff;border-color:#fff}
button:active{background:#c9cbd0}
button:focus-visible{outline:3px solid #b8c9f5;outline-offset:4px}
.error button{background:#C8383C;border-color:#d65357;color:#fff}
.error button:hover{background:#ae2e33;border-color:#ef9699}
.error button:active{background:#97282c}
.spinner{width:1rem;height:1rem;border:2px solid #51545b;border-top-color:#dedfe2;border-radius:50%;animation:spin 1s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:360px){.card{border-radius:1rem}.brand{margin-bottom:2rem}}
@media(prefers-reduced-motion:reduce){.spinner{animation:none}button{transition:none}}
@media(forced-colors:active){button:focus-visible{outline-color:Highlight}.spinner{border-color:GrayText;border-top-color:CanvasText}}