:root {
  color-scheme: light;
  --ink: #252639;
  --muted: #77788d;
  --accent: #6860d9;
  --accent-soft: #efedff;
  --border: #e8e8ef;
  --panel: #fff;
  --surface: #fafafc;
  --shadow: 0 4px 22px #2626470b, 0 1px 4px #26264708;
  --danger: #c74c4c;
  --danger-soft: #fff1f1;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: var(--ink);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--surface); }
button, input, select, textarea { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button:disabled, button[aria-disabled="true"] { cursor: default; opacity: .45; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #a9a4f3; outline-offset: 2px; }
input[type="checkbox"] { accent-color: var(--accent); }
.brand { font-size: 19px; font-weight: 760; letter-spacing: -.9px; color: var(--ink); text-decoration: none; }
.brand span { color: var(--accent); }
.subtle { color: var(--muted); font-size: 12px; }
.primary-button { border: 0; background: var(--accent); border-radius: 9px; padding: 12px 20px; color: white; font-weight: 550; }
.primary-button:hover:not(:disabled) { filter: brightness(.96); }
.quiet-button { border: 1px solid transparent; background: transparent; border-radius: 8px; padding: 7px 9px; font-size: 12px; white-space: nowrap; }
.quiet-button:hover { background: var(--surface); }
.quiet-button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
.toggle-label { display: flex; gap: 7px; align-items: center; color: var(--muted); font-size: 12px; }
.surface-card { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); }
.field-label { display: block; font-size: 13px; font-weight: 550; margin-bottom: 9px; }
.text-field { width: 100%; min-width: 0; border: 1px solid var(--border); border-radius: 9px; padding: 12px 14px; background: var(--panel); color: var(--ink); }
.text-field::placeholder { color: #9a9bad; }
.text-field:focus { border-color: var(--accent); }
.danger { color: var(--danger); }
.error-message { padding: 12px 15px; border: 1px solid #f0d5d5; border-radius: 9px; background: var(--danger-soft); color: #a63737; line-height: 1.6; overflow-wrap: anywhere; }
.error-message:empty { display: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.public-page { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 28px 18px; background-image: radial-gradient(circle, #d5d5e3 .8px, transparent .9px); background-size: 20px 20px; }
.entry-card { width: min(440px, 100%); padding: 36px; border-radius: 22px; box-shadow: 0 15px 80px #30304c13; }
.entry-card .brand { display: inline-block; margin-bottom: 30px; font-size: 23px; }
.entry-card h1 { margin: 0 0 12px; font-size: 25px; line-height: 1.25; letter-spacing: -.6px; overflow-wrap: anywhere; }
.entry-description { margin: 0 0 28px; color: var(--muted); line-height: 1.6; }
.entry-description:empty { display: none; }
.entry-card form { margin-top: 24px; }
.entry-card .primary-button { width: 100%; margin-top: 16px; min-height: 44px; }
.entry-card .error-message { margin-bottom: 24px; }
.entry-footer { display: block; margin-top: 24px; color: var(--muted); text-align: center; font-size: 12px; line-height: 1.6; }
a.entry-footer { text-decoration: none; }
a.entry-footer:hover { color: var(--accent); }
.key-entry { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 18px; text-align: center; letter-spacing: 1px; text-transform: uppercase; }
.entry-symbol { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px; border-radius: 15px; background: var(--accent-soft); color: var(--accent); font-size: 28px; }
@media (max-width: 480px) {
  input.text-field { font-size: 16px; }
  .entry-card { padding: 27px 22px; }
  .entry-card h1 { font-size: 22px; }
  .key-entry { font-size: 16px; letter-spacing: .4px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
