:root { color-scheme: light dark; font: 16px/1.55 system-ui, sans-serif; --surface: #fff; --background: #f3f2f8; --text: #242239; --muted: #5e5a71; --accent: #5048a9; --soft: #efedf9; --line: #ddd9ea; }
@media (prefers-color-scheme: dark) { :root { --surface: #211f2b; --background: #13121a; --text: #f3efff; --muted: #c6c0d7; --accent: #c5baff; --soft: #302b45; --line: #474159; } }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 20px; background: var(--background); color: var(--text); }
.device-panel { width: min(100%, 480px); padding: clamp(20px, 6vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; }
header a { color: var(--accent); font-size: .9rem; }
h1 { font-size: clamp(1.5rem, 5vw, 2rem); letter-spacing: -.025em; line-height: 1.2; margin: 19px 0 9px; }
p { color: var(--muted); margin: 0 0 16px; }
[data-status]:empty { display: none; }
.device-preview { margin: 18px auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; width: fit-content; max-width: 100%; }
.device-preview img, .device-preview video { display: block; max-width: 100%; height: auto; }
.device-preview video { max-height: 50vh; background: #181620; }
.device-verification { display: grid; padding: 12px 16px; margin: 15px 0; background: var(--soft); border-radius: 12px; }
.device-code { color: var(--text); font-size: 1.9rem; line-height: 1.4; letter-spacing: .19em; font-variant-numeric: tabular-nums; }
.device-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.device-actions button { padding: 9px 14px; min-height: 44px; background: var(--accent); color: var(--surface); border: 1px solid transparent; border-radius: 10px; font: inherit; font-weight: 650; cursor: pointer; }
.device-actions button.secondary { background: var(--soft); color: var(--text); border-color: var(--line); }
.device-actions button:disabled { opacity: .65; cursor: wait; }
.device-destinations { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.device-destinations a { display: block; padding: 9px 14px; background: var(--soft); color: var(--text); border: 1px solid var(--line); border-radius: 10px; font-weight: 650; text-decoration: none; }
.device-destinations a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
