:root {
  color-scheme: dark;
  --bg: #101310;
  --panel: #181d19;
  --line: #303a31;
  --muted: #9ca99d;
  --text: #edf1e9;
  --accent: #c0e79a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 system-ui, sans-serif;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 48px 20px;
}
main { width: min(100%, 460px); }
.brand { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 21px; font-weight: 650; margin-bottom: 28px; }
.logo { display: grid; place-items: center; width: 30px; height: 32px; border-radius: 9px; background: var(--accent); color: #182212; font-size: 26px; font-weight: 800; line-height: 1; }
.access-card { padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel); box-shadow: 0 16px 60px #0002; }
.eyebrow { font-size: 10px; letter-spacing: 1.8px; color: var(--accent); margin: 0 0 12px; }
h1 { font-size: clamp(28px, 6vw, 34px); font-weight: 550; letter-spacing: -1px; line-height: 1.2; margin: 0 0 14px; }
.intro { margin: 0 0 30px; color: var(--muted); }
label { font-weight: 600; font-size: 13px; }
.hint { font-size: 12px; color: var(--muted); margin: 6px 0 12px; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, summary:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.key-field { display: flex; align-items: center; gap: 4px; padding: 4px; background: var(--bg); border: 1px solid #46533e; border-radius: 10px; }
.key-field:focus-within { border-color: var(--accent); }
.key-field:has([aria-invalid=true]) { border-color: #e6907c; }
input { width: 100%; min-width: 0; background: transparent; border: 0; color: var(--text); padding: 10px 8px; font-size: 16px; }
input::placeholder { color: var(--muted); font-size: 14px; }
input:focus-visible { outline-offset: -2px; border-radius: 5px; }
#toggle-key { flex-shrink: 0; min-height: 44px; min-width: 52px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 12px; }
#toggle-key:hover { background: #263122; color: var(--text); }
.primary { margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--accent); background: var(--accent); color: #17240d; font-weight: 600; font-size: 14px; }
.primary:hover { background: #d4f5b5; }
.primary:disabled { cursor: wait; opacity: .75; }
.session-note { text-align: center; font-size: 11px; color: var(--muted); margin: 12px 0 0; }
.key-help { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }
summary { cursor: pointer; color: #cbd8c5; padding: 8px 0; min-height: 44px; }
summary:hover { color: var(--accent); }
.help-content p { margin: 12px 0; }
pre { padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; }
code { font-family: ui-monospace, monospace; }
.secondary { padding: 10px 12px; min-height: 44px; border: 1px solid #46533e; border-radius: 8px; background: #202a1d; color: #d7e5ce; font-size: 12px; }
.secondary:hover { border-color: var(--accent); }
.error { padding: 12px; border-radius: 8px; border: 1px solid #805343; background: #35241e; color: #f5c1b2; font-size: 13px; }
.footer-note { color: var(--muted); text-align: center; font-size: 11px; margin: 22px 0 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
[hidden] { display: none !important; }
@media (max-width: 480px) {
  body { padding: 28px 16px; }
  .brand { margin-bottom: 22px; }
  .access-card { padding: 26px 22px; border-radius: 16px; }
}
