@font-face{font-family:"Bricolage Grotesque";font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/bricolage-grotesque-latin-600-normal.woff2?v=b34fc8c1ef) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Bricolage Grotesque";font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/bricolage-grotesque-latin-ext-600-normal.woff2?v=9903537bd1) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Bricolage Grotesque";font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/bricolage-grotesque-latin-700-normal.woff2?v=4c373ce3c1) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Bricolage Grotesque";font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/bricolage-grotesque-latin-ext-700-normal.woff2?v=25d714d702) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"IBM Plex Sans";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/ibm-plex-sans-latin-400-normal.woff2?v=3b646991d3) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"IBM Plex Sans";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/ibm-plex-sans-latin-ext-400-normal.woff2?v=c93d2a12aa) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"IBM Plex Sans";font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/ibm-plex-sans-latin-500-normal.woff2?v=0717336fb3) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"IBM Plex Sans";font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/ibm-plex-sans-latin-ext-500-normal.woff2?v=2846035d85) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"IBM Plex Sans";font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/ibm-plex-sans-latin-600-normal.woff2?v=8960851d69) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"IBM Plex Sans";font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/ibm-plex-sans-latin-ext-600-normal.woff2?v=b25dfd4f97) format("woff2");unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
:root {
  color-scheme: light dark;
  --ink: #16181D; --bg: #F6F4EF; --accent: #2E5BDB; --accent-ink: #FFFFFF; --accent-soft: #E4EBFB;
  --surface: #FFFFFF; --muted: #666B76; --line: #E3DFD6; --danger: #B3261E; --danger-soft: #FBE9E7; --ok: #1B7F4B;
  --shadow: 0 1px 2px rgba(22,24,29,.05), 0 12px 40px rgba(22,24,29,.08);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F6F4EF; --bg: #16181D; --accent: #7C9BFF; --accent-ink: #0F1115; --accent-soft: #232A44;
    --surface: #1E2128; --muted: #9A9FAA; --line: #2C3039; --danger: #FFB4AB; --danger-soft: #3A2220; --ok: #6FD39B;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 40px rgba(0,0,0,.35);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.5;
}
h1, .brand { font-family: "Bricolage Grotesque", "IBM Plex Sans", system-ui, sans-serif; letter-spacing: -.02em; }
.stage { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; }
.logo { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; font-size: 24px; font-weight: 700; color: var(--ink); text-decoration: none; }
.logo svg { width: 36px; height: 36px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
  padding: 36px 32px; width: 400px; max-width: 100%;
}
h1 { font-size: 24px; line-height: 1.2; margin: 0 0 14px; text-align: center; font-weight: 700; }
p { margin: 0 0 14px; }
.sub { color: var(--muted); font-size: 14px; text-align: center; }
.center { display: flex; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 999px;
  background: var(--accent-soft); font-size: 14px; margin: 0 auto 24px;
}
.chip svg { width: 26px; height: 26px; flex: none; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; padding: 13px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 500 15px "IBM Plex Sans", system-ui, sans-serif;
  cursor: pointer; text-decoration: none; margin-bottom: 10px; transition: border-color .15s, background .15s;
}
.btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent); filter: brightness(1.08); }
.btn-quiet { background: transparent; }
.btn-danger { color: var(--danger); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.secure { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 20px; }
.secure svg { width: 16px; height: 16px; flex: none; }
.foot { text-align: center; font-size: 12px; color: var(--muted); margin: 18px 0 0; }
.foot a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
label { display: block; font-size: 14px; font-weight: 500; margin: 0 0 6px; }
input[type="text"], input[type="password"] {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg);
  color: var(--ink); font: 500 20px "IBM Plex Sans", system-ui, sans-serif; letter-spacing: .12em; margin-bottom: 14px;
}
input.code { text-align: center; font-variant-numeric: tabular-nums; }
.alert { border-radius: 12px; padding: 10px 14px; font-size: 14px; margin: 0 0 16px; background: var(--danger-soft); color: var(--danger); }
.notice { border-radius: 12px; padding: 10px 14px; font-size: 14px; margin: 0 0 16px; background: var(--accent-soft); }
.qr { display: flex; justify-content: center; margin: 4px 0 14px; }
.qr svg { width: 200px; height: 200px; background: #fff; border-radius: 12px; padding: 8px; }
.key { display: block; text-align: center; font: 600 15px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em;
  background: var(--bg); border: 1px dashed var(--line); border-radius: 10px; padding: 10px; margin: 0 0 14px; word-break: break-all; user-select: all; }
.codes { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.codes li { font: 600 14px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 10px; text-align: center; user-select: all; }
.rows { margin: 0 0 18px; padding: 0; }
.rows div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.rows dt { color: var(--muted); }
.rows dd { margin: 0; text-align: right; word-break: break-word; }
.badge { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--accent-soft); }
.badge.on { color: var(--ok); }
.section { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.section h2 { font-size: 16px; margin: 0 0 8px; font-family: "Bricolage Grotesque", system-ui, sans-serif; }
.link { color: var(--accent); text-underline-offset: 3px; }
.small { font-size: 13px; color: var(--muted); }
form { margin: 0; }
@media (max-width: 480px) { .card { padding: 28px 20px; border-radius: 16px; } }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
