:root { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #23252a; background: #f7f8fa; --surface: #fff; --line: #e3e5e9; --muted: #666b75; --primary: #252931; --accent: #f0f2f5; --danger: #a02929; font-synthesis: none; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; }
button, .button, select { min-height: 44px; padding: 10px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: inherit; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; text-align: center; line-height: 1.4; }
button:hover, .button:hover { background: var(--accent); }
button:disabled { opacity: .5; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #5c83e5; outline-offset: 3px; }
.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.primary:hover { background: #424956; }
.danger { color: var(--danger); }
.link { border: 0; background: none; text-decoration: underline; text-underline-offset: 4px; }
.topbar { min-height: 76px; padding: 16px max(24px, calc((100vw - 1120px) / 2)); border-bottom: 1px solid var(--line); background: var(--surface); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { font-weight: 750; font-size: 22px; letter-spacing: -.7px; text-decoration: none; }
main { max-width: 1120px; margin: auto; padding: 48px 24px max(56px, env(safe-area-inset-bottom)); }
.introduction { max-width: 660px; margin-bottom: 30px; }
h1 { font-size: clamp(26px, 4vw, 36px); letter-spacing: -1px; margin: 0 0 12px; }
h2 { font-size: 21px; margin: 0 0 20px; }
h3 { font-size: 16px; margin: 18px 0 12px; }
p { line-height: 1.65; }
.muted { color: var(--muted); font-size: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; min-width: 0; }
.auth { max-width: 520px; }
form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; font-size: 14px; }
.field input { border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: inherit; min-width: 0; width: 100%; min-height: 46px; padding: 10px 12px; font-size: 16px; }
.auth-links, .actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.auth-links { margin: 18px -8px -8px; }
.notice { border-radius: 12px; padding: 16px; background: #e9f5ee; margin-bottom: 22px; line-height: 1.6; }
.error { color: var(--danger); background: #fff0ef; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 28px; }
.tabs .selected { background: var(--primary); color: #fff; }
.account-heading, .section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.section-head { margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.identity { font-weight: 650; overflow-wrap: anywhere; }
.device-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.badge { display: inline-block; border-radius: 20px; padding: 6px 10px; background: var(--accent); font-size: 13px; }
.badge.online { background: #e2f4e9; color: #206a42; }
.device-id { overflow-wrap: anywhere; }
.security-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.callout { border-left: 3px solid #ca9c39; padding: 12px 16px; background: var(--accent); line-height: 1.6; }
.rows { list-style: none; padding: 0; margin: 0; }
.rows li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.rows li:last-child { border-bottom: 0; }
.rows li > div { min-width: 0; }
.rows code { overflow-wrap: anywhere; }
.dialog { max-width: 540px; width: calc(100% - 32px); max-height: calc(100dvh - 32px); border: 1px solid var(--line); border-radius: 16px; padding: 0; background: var(--surface); color: inherit; }
.dialog::backdrop { background: #13172380; }
.dialog-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { margin: 0; }
.dialog-body { padding: 20px 24px 28px; overflow-y: auto; max-height: calc(100dvh - 130px); }
.recovery { max-width: 660px; }
.codes { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; list-style: none; padding: 18px; background: var(--accent); border-radius: 12px; }
.codes code { overflow-wrap: anywhere; user-select: all; }
.check { display: flex; gap: 12px; align-items: center; line-height: 1.5; margin: 24px 0; }
.check input { width: 22px; height: 22px; flex-shrink: 0; }
@media (max-width: 600px) { .topbar { padding: 12px 16px; gap: 12px; align-items: flex-start; } .topbar .actions { justify-content: flex-end; } .topbar .actions button { max-width: 150px; } main { padding: 28px 16px max(32px, env(safe-area-inset-bottom)); } .card { padding: 20px; } .dialog { margin: 0; width: 100%; max-width: none; height: 100dvh; max-height: 100dvh; border-radius: 0; } .dialog-body { max-height: calc(100dvh - 96px); padding-bottom: max(28px, env(safe-area-inset-bottom)); } }
@media (prefers-color-scheme: dark) { :root { color: #e9eaee; background: #14161a; --surface: #1d2026; --line: #363a43; --muted: #aeb4be; --primary: #3b4458; --accent: #292e37; --danger: #ffa9a4; } .notice { background: #22392d; } .error { background: #3c2427; } .badge.online { background: #223c2d; color: #a5dfbb; } }
