:root, [data-theme="vibrant"] {
  --canvas: #07061a; --surface: rgba(255,255,255,.06); --line: rgba(255,255,255,.12);
  --text: #f4f2ff; --text-2: rgba(244,242,255,.66); --text-3: rgba(244,242,255,.4);
  --accent: #b23cff; --accent-2: #ff4f9a; --error: #ff5564; --on-accent: #fff;
  --title-font: ui-serif, "New York", Georgia, serif; --body-font: system-ui, -apple-system, "Segoe UI", sans-serif;
  --background: radial-gradient(1200px 800px at 10% 0%, #2b1a7a 0%, transparent 60%), radial-gradient(900px 700px at 100% 100%, #5a1550 0%, transparent 60%), #07061a;
  color-scheme: dark;
}
[data-theme="paper"] {
  --canvas: #f5efe3; --surface: rgba(107,84,59,.07); --line: rgba(107,84,59,.18);
  --text: #2a2521; --text-2: #665e55; --text-3: #8f877d;
  --accent: #b05230; --accent-2: #c6663f; --error: #c63430; --on-accent: #fff;
  --background: #f5efe3; color-scheme: light;
}
[data-theme="minimal"] {
  --canvas: #2b2d30; --surface: #232528; --line: #3b3e43;
  --text: #e8e6dd; --text-2: #999ca2; --text-3: #71747a;
  --accent: #b48cff; --accent-2: #b48cff; --error: #e5737e; --on-accent: #2b2d30;
  --title-font: ui-monospace, "SF Mono", Menlo, Consolas, monospace; --body-font: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --background: #2b2d30; color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { min-height: 100vh; background: var(--background); background-attachment: fixed; color: var(--text); font: 16px/1.5 var(--body-font); display: flex; flex-direction: column; }
a { color: inherit; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; background: var(--canvas); padding: 8px 12px; border-radius: 8px; }
.site-header, .site-footer { display: flex; align-items: center; gap: 20px; padding: 18px 32px; flex-wrap: wrap; }
.site-header nav { display: flex; gap: 18px; align-items: center; margin-left: auto; flex-wrap: wrap; }
.site-header nav a { text-decoration: none; color: var(--text-2); }
.site-header nav a:hover { color: var(--text); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; text-decoration: none; }
.brand img { border-radius: 8px; }
.site-footer { margin-top: auto; color: var(--text-3); font-size: 14px; }
.site-footer form { margin-left: auto; }
main { width: 100%; max-width: 1100px; margin: 0 auto; padding: 32px; flex: 1; }
h1, h2, h3 { font-family: var(--title-font); line-height: 1.15; }
.home h1 { font-size: clamp(32px, 6vw, 56px); max-width: 16ch; margin: 48px 0 16px; }
.lead { font-size: 20px; color: var(--text-2); max-width: 60ch; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0; }
.note { color: var(--text-3); }
.button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; font: inherit; cursor: pointer; }
.button.primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--on-accent); border-color: transparent; }
.button:hover { filter: brightness(1.08); }
button.link { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; padding: 0; }
.message { text-align: center; padding-top: 80px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.auth { max-width: 460px; }
.auth.message { max-width: 620px; }
.auth-form { display: flex; flex-direction: column; gap: 16px; margin: 24px 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field input { background: var(--surface); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 11px 14px; font: inherit; }
.field input[aria-invalid="true"] { border-color: var(--error); }
.field small { font-size: 13px; }
.problem { color: var(--error); }
p.problem { padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, var(--error) 12%, transparent); }
.choice { display: flex; gap: 10px; align-items: center; }
.small { font-size: 14px; }
form.inline { display: inline; }
.auth-form .button { align-self: flex-start; }
.account { max-width: 720px; }
.account-section { padding: 20px 24px; margin: 18px 0; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.account-section h2 { margin-top: 0; font-size: 22px; }
.account-section .auth-form { margin: 12px 0 0; max-width: 420px; }
.account-section.danger { border-color: color-mix(in srgb, var(--error) 50%, transparent); }
.button.danger { background: var(--error); color: #fff; border-color: transparent; }
.notice { padding: 10px 14px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 14%, transparent); }
.device-list, .event-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.device-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.event-list li { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.badge { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: var(--on-accent); }
.legal { max-width: 760px; }
.access-card { margin-top: 24px; padding: 8px 28px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.access-tabs { display: flex; margin: 0 -28px 20px; border-bottom: 1px solid var(--line); }
.access-tabs a { flex: 1; text-align: center; padding: 14px 8px; text-decoration: none; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.access-tabs a[aria-current="page"] { color: var(--text); font-weight: 600; border-bottom-color: var(--accent); }
.access-tabs a:hover { color: var(--text); }
.download { max-width: 760px; }
.download-section { margin-top: 36px; }
.install-steps { padding-left: 22px; display: flex; flex-direction: column; gap: 10px; }
.install-steps li::marker { color: var(--accent); font-weight: 700; }
