:root { --ink: #1f1830; --paper: #fbf7ef; --accent: #ff6b4a; --night: #1a1033; --muted: #6c6478; --ok: #2c8c5a; color-scheme: light; }
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--night); color: var(--ink); font: 17px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; }
.stage { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; background: var(--night); }
.fallback { min-height: 100%; padding: max(24px, env(safe-area-inset-top)) 16px 32px; background: var(--paper); max-width: 640px; margin: 0 auto; }
.fallback h1 { font-size: 1.6rem; margin: 0.4em 0; }
.fallback ol { padding-left: 1.2em; } .fallback li { margin: 0.4em 0; } .fallback li.completed button { text-decoration: line-through; }
button, .button { font: inherit; border: 0; border-radius: 999px; padding: 0.75em 1.3em; background: var(--accent); color: #fff; cursor: pointer; text-decoration: none; display: inline-block; }
button:disabled { opacity: 0.5; cursor: default; } button.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px #d8d0e2; } button.link { background: none; color: var(--muted); text-decoration: underline; padding: 0.4em; }
.sheets { position: fixed; inset: 0; z-index: 10; display: grid; align-items: end; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(16, 10, 30, 0.55); }
.sheet { position: relative; background: var(--paper); border-radius: 24px 24px 0 0; padding: 24px 16px max(24px, env(safe-area-inset-bottom)); max-width: 560px; width: 100%; margin: 0 auto; max-height: 92vh; overflow: auto; }
.sheet h2 { margin: 0 0 0.3em; font-size: 1.35rem; } .sheet .lede { color: var(--muted); margin-top: 0; }
.form label { display: block; margin: 0.8em 0; font-weight: 600; } .form input[type=email], .form input[type=password], .sheet input[type=url] { display: block; width: 100%; margin-top: 0.3em; font: inherit; padding: 0.7em 0.8em; border-radius: 12px; border: 2px solid #d8d0e2; background: #fff; }
.form .check { font-weight: 400; display: flex; gap: 0.6em; align-items: flex-start; } .form .check input { margin-top: 0.25em; width: 1.1em; height: 1.1em; }
.row { display: flex; gap: 0.6em; justify-content: flex-end; margin-top: 1em; flex-wrap: wrap; }
.error { color: #b3261e; } .status { color: var(--muted); min-height: 1.4em; }
.busy { display: flex; align-items: center; gap: 0.8em; } .orb { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff6c8, #ffb02e); animation: pulse 1s ease-in-out infinite alternate; }
@keyframes pulse { to { transform: scale(1.35); opacity: 0.7; } }
@media (prefers-reduced-motion: reduce) { .orb { animation: none; } }
details { margin-top: 1em; } summary { cursor: pointer; color: var(--muted); }
