:root {
  color-scheme: light;
  font: 15px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  --ink: #1b2720;
  --muted: #526459;
  --accent: #206448;
  --border: #d4ded5;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100dvh;
  padding: 32px 16px;
  display: grid;
  place-items: center;
  color: var(--ink);
  background: #f4f6f3;
}
.security-panel {
  width: min(100%, 470px);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(20px, 5vw, 32px);
  background: #fff;
  box-shadow: 0 12px 45px #14251c10;
}
.security-brand { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; }
h1 { margin: 16px 0 6px; font-size: 27px; line-height: 1.25; }
h2 { margin: 0; font-size: 19px; }
p { margin: 4px 0; color: var(--muted); }
p:empty { display: none; }
form, #backup { display: grid; gap: 13px; margin-top: 19px; }
label { display: grid; gap: 5px; font-weight: 550; }
input, select, button, .continue {
  font: inherit;
  color: inherit;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #bdcec2;
  border-radius: 8px;
  background: #fff;
}
input, select { width: 100%; display: block; }
button, .continue { cursor: pointer; font-weight: 650; }
.primary, .continue { background: var(--accent); border-color: var(--accent); color: white; }
button:hover, .continue:hover { filter: brightness(.92); }
button:disabled { opacity: .65; cursor: wait; }
:focus-visible { outline: 2px solid #43876a; outline-offset: 2px; }
.qr { display: block; width: 212px; height: 212px; margin: 0 auto; image-rendering: pixelated; }
#setup-key, pre { font-family: ui-monospace, Menlo, monospace; overflow-wrap: anywhere; }
pre { margin: 0; white-space: pre-wrap; padding: 12px; border-radius: 8px; background: #eff5ef; }
.error { color: #8d2f25; background: #fff2ee; padding: 9px 11px; border-radius: 8px; margin-top: 12px; }
#notice { color: var(--accent); margin-top: 12px; }
footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
a { color: var(--accent); text-underline-offset: 3px; }
.continue { text-align: center; text-decoration: none; }
