:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, sans-serif;
  background: #081e2b;
  color: #edf6fa;
  line-height: 1.55;
}

* { box-sizing: border-box; }
body { margin: 0; }
header { display: flex; justify-content: space-between; gap: 24px; padding: 22px max(24px, calc((100vw - 920px) / 2)); border-bottom: 1px solid #2a4553; }
a { color: #8bd8d0; }
.security-brand { display: inline-flex; align-items: center; gap: 12px; color: #edf6fa; text-decoration: none; }
.security-brand img { width: 52px; height: 52px; object-fit: contain; }
.security-brand strong { font-size: 1.05rem; letter-spacing: 0.02em; }
main { max-width: 920px; margin: 42px auto; padding: 0 24px 60px; }
h1 { font-size: clamp(28px, 5vw, 40px); margin-bottom: 8px; }
h2 { font-size: 22px; margin: 0 0 12px; }
h3 { margin-top: 28px; }
p { color: #b0c4ce; }
section { padding: 28px; border: 1px solid #2a4553; border-radius: 14px; margin: 24px 0; background: #102b3a; }
form { display: grid; gap: 16px; max-width: 560px; margin: 24px 0; }
label { display: grid; gap: 8px; font-weight: 600; }
input { font: inherit; padding: 12px; background: #091f2c; color: inherit; border: 1px solid #4d6a78; border-radius: 7px; min-width: 0; }
button { font: inherit; font-weight: 600; cursor: pointer; background: #8bd8d0; color: #081523; padding: 11px 18px; border: 0; border-radius: 7px; margin: 8px 12px 8px 0; }
button:disabled { opacity: 0.55; cursor: wait; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #efb46e; outline-offset: 4px; }
#notice:not(:empty) { padding: 15px; border-left: 3px solid #efb46e; background: #202738; color: #f7e4b0; }
output, pre { display: block; background: #091f2c; padding: 16px; overflow: auto; overflow-wrap: anywhere; border-radius: 7px; }

#setup-methods {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin: 24px 0;
}

.setup-method { min-width: 0; }
.setup-method h3 { margin: 0 0 10px; }
.setup-method p { margin: 0 0 14px; }
.manual-method output { margin-bottom: 8px; }

#setup-qr {
  width: min(100%, 260px);
  padding: 12px;
  border-radius: 10px;
  background: #fff;
  color: #081523;
}

#setup-qr svg { display: block; width: 100%; height: auto; }
.qr-unavailable { background: #202738 !important; color: #f7e4b0 !important; }
li { margin: 14px 0; }
[hidden] { display: none !important; }

@media (max-width: 600px) {
  #setup-methods { grid-template-columns: minmax(0, 1fr); }
  section { padding: 20px; }
  header { padding: 20px; }
  header span { display: none; }
  main { margin-top: 28px; padding-inline: 16px; }
  pre { font-size: 12px; }
}

/* Shared Blue hour typography. QR codes retain their white backing. */
header { align-items: center; }
.security-brand img { width: 38px; height: 38px; }
.security-brand strong { font-size: 1.125rem; font-weight: 600; letter-spacing: -.025em; }
h1, h2, h3 { font-weight: 600; line-height: 1.2; letter-spacing: -.025em; }
h1 { font-size: clamp(2rem, 3.45vw, 2.75rem); }
section { border-radius: 10px; }
