:root {
  color-scheme: dark;
  --base: #101518;
  --surface: #151c20;
  --line: #39484e;
  --ink: #e8eeef;
  --muted: #a6b4bb;
  --accent: #6edac2;
  --state: #e9bd80;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--base); color: var(--ink); font-size: 15px; line-height: 1.5; }
.frame { width: min(calc(100% - 32px), 410px); margin-inline: auto; }
.topbar { border-bottom: 1px solid var(--line); }
.brand { padding-block: 14px; font-weight: 650; }
.brand span { border-left: 1px solid var(--line); margin-inline-start: 8px; padding-inline-start: 10px; color: var(--muted); font-size: 13px; font-weight: 450; }
main { padding-block: clamp(23px, 7vh, 56px) 32px; }
.panel { padding: clamp(16px, 6vw, 27px); border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
h1 { margin: 0 0 4px; font-size: 25px; line-height: 1.2; letter-spacing: -.025em; }
p { margin: 0 0 16px; color: var(--muted); }
#status { color: var(--state); }
#status:empty { margin: 0; }
form { display: grid; gap: 8px; }
label { font-weight: 560; }
input, button { font: inherit; }
input:not([type="checkbox"]) { width: 100%; min-height: 42px; padding: 7px 9px; margin-bottom: 3px; border: 1px solid var(--line); border-radius: 5px; background: var(--base); color: var(--ink); }
input[type="checkbox"] { margin: 0; accent-color: var(--accent); }
.remember { display: flex; gap: 8px; align-items: center; padding-block: 3px 0; }
.hint { margin: 0 0 4px; color: var(--muted); font-size: 13px; }
button { min-height: 42px; padding: 6px 12px; border: 1px solid transparent; border-radius: 5px; background: var(--accent); color: var(--base); font-weight: 650; cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
.secondary { display: grid; place-content: center; min-height: 42px; border: 1px solid var(--line); border-radius: 5px; background: transparent; color: var(--ink); font-weight: 550; text-decoration: none; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
#setup-secret { display: block; overflow-wrap: anywhere; padding: 7px 9px; border: 1px solid var(--line); border-radius: 5px; background: var(--base); color: var(--ink); }
#setup-link { margin-bottom: 8px; }
