:root {
  color-scheme: dark;
  --background: #111820;
  --panel: #18212a;
  --line: #455466;
  --muted: #adbfce;
  --text: #f2f5f9;
  --accent: #e8b64d;
  font-family: "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--text); background: var(--background); }
header { border-bottom: 1px solid var(--line); padding: 1.15rem max(1rem, calc((100% - 72rem) / 2)); }
.brand { color: inherit; font-weight: 800; letter-spacing: .12em; font-size: 1.2rem; text-decoration: none; }
main { display: grid; place-items: start center; padding: clamp(1rem, 5vw, 4rem) 1rem; }
article { width: min(100%, 32rem); padding: clamp(1rem, 5vw, 2rem); background: var(--panel); border: 1px solid var(--line); border-radius: .65rem; }
h1, h2, h3, p { margin: 0 0 .85rem; }
h1 { font-size: clamp(1.65rem, 5vw, 2.25rem); line-height: 1.1; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1rem; }
p, dt, .hint { color: var(--muted); line-height: 1.55; }
.hint { margin: -.7rem 0 0; font-size: .83rem; }
#notice:empty { display: none; }
#notice[data-error="true"] { color: #ffadab; }
form { display: grid; gap: .95rem; margin-top: 1rem; }
label { display: grid; gap: .35rem; font-weight: 550; }
input, button { font: inherit; border-radius: .38rem; }
input { width: 100%; min-height: 2.8rem; padding: .5rem .75rem; background: var(--background); color: var(--text); border: 1px solid var(--line); }
button { appearance: none; min-height: 2.75rem; padding: .5rem .7rem; cursor: pointer; }
button:disabled { opacity: .65; cursor: wait; }
button, input, a, summary { outline-offset: 3px; }
:focus-visible { outline: 2px solid #f6ca70; }
.primary { background: var(--accent); color: #191c20; border: 1px solid var(--accent); font-weight: 700; }
.primary:hover { background: #f6ca70; }
.secondary, .switch button { background: transparent; color: var(--text); border: 1px solid var(--line); }
.secondary { width: 100%; margin-top: .65rem; }
.secondary:hover, .switch button:hover { background: #222f3b; }
.switch { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.switch button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
#google .secondary { margin-top: 0; }
#qr { display: block; max-width: 100%; height: auto; margin-block: .85rem; background: white; }
details { margin-block: .7rem; }
summary { cursor: pointer; width: fit-content; color: var(--accent); }
code, dd, li { overflow-wrap: anywhere; }
dl { display: grid; gap: .35rem; }
dd { margin: 0 0 .65rem; }
#codes { margin: 1rem 0; padding: .85rem; border: 1px solid var(--line); border-radius: .38rem; }
#code-list { padding-left: 1.25rem; font-family: ui-monospace, Consolas, monospace; font-size: .86rem; }
