/* The demo's access-code page (D-014), laid out like AlphaBot's PIN gate. A file, not inline:
   the site's policy is style-src 'self'. Colors are the app's default theme, Newton & Elk at Linen
   (John, 10-17), dark = its Dim shade; 44px targets. */
:root {
  --bg: #e7efee; --card: #f3f8f7; --ink: #232827; --muted: #576160; --rule: #c8d5d3;
  --field: #e7efee; --accent: #3c7c9d; --button: #232827; --on-button: #f3f8f7; --wrong: #b24a3a;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #202424; --card: #292f2e; --ink: #e0e9e7; --muted: #abbab7; --rule: #353e3c;
    --field: #202424; --accent: #6faece; --button: #e0e9e7; --on-button: #202424; --wrong: #e08a7c;
  }
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: var(--bg); color: var(--ink);
  font: 16px/1.5 "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}
.card {
  width: 100%; max-width: 360px; text-align: center; background: var(--card);
  border: 1px solid var(--rule); border-radius: 14px; padding: 32px 24px 24px;
}
.logo { display: block; margin: 0 auto 14px; }
h1 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.sub { margin: 2px 0 24px; font-size: 14px; color: var(--muted); }
label { display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.pin {
  width: 100%; min-height: 56px; padding: 8px 12px; text-align: center;
  font: 600 30px/1 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: 0.5em;
  text-indent: 0.5em; /* letter-spacing pads the right only; this re-centers the digits */
  color: var(--ink); background: var(--field); border: 1px solid var(--rule); border-radius: 10px;
}
.pin::placeholder { color: var(--muted); opacity: 0.6; }
.pin:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.wrong-pin { border-color: var(--wrong); }
.wrong { margin: 8px 0 0; font-size: 14px; color: var(--wrong); }
button {
  width: 100%; min-height: 48px; margin-top: 16px; font: inherit; font-weight: 600;
  color: var(--on-button); background: var(--button); border: 0; border-radius: 10px; cursor: pointer;
}
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.note { margin: 20px 0 0; font-size: 13px; color: var(--muted); }
