:root {
  color-scheme: light;
  --ink: #202123;
  --muted: #666b73;
  --line: #e3e5e8;
  --accent: #1769c2;
  --accent-hover: #1259a6;
  --paper: #f7f7f5;
  --success: #eef8f2;
  --focus: #1769c2;
  font: 16px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--ink); }
header, main, footer { width: min(100% - 40px, 920px); margin-inline: auto; }
header { display: flex; align-items: center; justify-content: space-between; min-height: 64px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; color: inherit; font-size: 17px; font-weight: 720; letter-spacing: -.02em; text-decoration: none; }
.socket { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 9px; border: 1px solid #b9d4ef; border-radius: 50%; background: #edf6ff; color: var(--accent); font-size: 15px; }
.tag, .eyebrow { color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; }
main { min-height: calc(100vh - 144px); padding: 52px 0 64px; }
h1 { margin: 12px 0 20px; font-size: clamp(34px, 5vw, 48px); line-height: 1.12; letter-spacing: -.04em; }
#address { overflow-wrap: anywhere; font-size: clamp(25px, 4vw, 38px); }
h2 { margin: 0 0 12px; font-size: 20px; line-height: 1.3; letter-spacing: -.015em; }
h3 { font-size: 16px; }
a { color: var(--accent); }
.intro { max-width: 560px; margin-bottom: 34px; color: var(--muted); font-size: 18px; }
.onboarding { max-width: 680px; margin: 0 auto 44px; }
.claim-card, .panel { padding: 24px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.claim-card { max-width: 620px; }
#assistant-start { padding-bottom: 36px; border-bottom: 1px solid var(--line); }
#assistant-instruction { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.username-input { display: flex; align-items: stretch; margin-top: 5px; }
.username-input input { min-width: 0; margin: 0; border-radius: 7px 0 0 7px; }
.username-input span { display: flex; align-items: center; padding: 0 12px; border: 1px solid #9da3aa; border-left: 0; border-radius: 0 7px 7px 0; background: var(--paper); color: var(--muted); font-size: 14px; white-space: nowrap; }
.recover { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.recover summary, .advanced summary { color: var(--accent); cursor: pointer; font-weight: 650; }
.recover form { margin-top: 18px; }
.advanced { width: 100%; margin: -5px 0 16px; }
.advanced label { margin: 12px 0 0; }
.recovery-reminder { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 24px; padding: 20px; border: 1px solid #cce5d5; border-radius: 12px; background: var(--success); }
.recovery-reminder p { margin: 0 0 12px; color: var(--muted); }
.recovery-reminder input { margin-bottom: 6px; font-family: ui-monospace, monospace; }
.recovery-reminder button { flex: none; }
label { display: block; margin-bottom: 16px; font-size: 14px; font-weight: 650; }
input, textarea, select { color: var(--ink); font: inherit; }
input { display: block; width: 100%; margin-top: 5px; padding: 11px 12px; border: 1px solid #9da3aa; border-radius: 7px; background: #fff; }
textarea { display: block; width: 100%; min-height: 100px; margin: 8px 0 16px; padding: 12px; border: 1px solid #9da3aa; border-radius: 7px; }
input:focus, textarea:focus, select:focus, button:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.check { display: flex; align-items: center; gap: 8px; margin: 15px 0; }
.check input { width: auto; margin: 0; }
button { padding: 9px 15px; border: 1px solid var(--accent); border-radius: 7px; background: var(--accent); color: #fff; cursor: pointer; font: inherit; font-size: 14px; font-weight: 600; }
button:hover:not(:disabled) { border-color: var(--accent-hover); background: var(--accent-hover); }
button:disabled { opacity: .5; cursor: wait; }
button.secondary { border-color: var(--line); background: #fff; color: var(--ink); }
button.secondary:hover:not(:disabled) { border-color: #c9cdd2; background: var(--paper); }
small, .muted { color: var(--muted); font-size: 13px; }
.heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.inline { display: flex; align-items: end; gap: 15px; flex-wrap: wrap; }
.inline label { flex: 1; min-width: 130px; }
.inline button { margin-bottom: 16px; }
nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 16px; }
nav button { border-color: var(--line); background: #fff; color: var(--ink); }
nav button[aria-pressed=true] { border-color: var(--accent); background: #edf6ff; color: #104f91; }
.row, .message { padding: 16px 0; border-top: 1px solid var(--line); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.row small, .message strong, .message small { display: block; overflow-wrap: anywhere; }
.row button { margin-left: 8px; }
.message small { margin-top: 5px; }
.message a { display: block; margin-top: 12px; overflow-wrap: anywhere; color: var(--accent); }
.message pre, pre { padding: 14px; border-radius: 7px; background: var(--paper); font-size: 13px; overflow-wrap: anywhere; white-space: pre-wrap; }
code { font-size: 13px; overflow-wrap: anywhere; }
#new-key { margin-bottom: 24px; padding: 18px; border: 1px solid #cce5d5; border-radius: 8px; background: var(--success); }
#new-key input { margin-bottom: 12px; font-family: ui-monospace, monospace; }
#notice { padding: 12px 0; font-weight: 600; }
#notice[data-error=true] { color: #a42e29; }
footer { padding: 20px 0 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
[hidden] { display: none !important; }
@media (max-width: 680px) {
  header, main, footer { width: min(100% - 32px, 920px); }
  main { padding: 34px 0 48px; }
  .tag { display: none; }
  .row, .recovery-reminder { align-items: start; flex-direction: column; }
  .username-input { display: block; }
  .username-input input { border-radius: 7px; }
  .username-input span { padding: 6px 0 0; border: 0; background: transparent; }
  .recovery-reminder button { width: 100%; }
}
