:root { color-scheme: light dark; --bg: #fff; --fg: #14181f; --muted: #5b6573; --line: #d9dee6; --accent: #0b6bcb; --err: #b42318; --ok: #067647; }
@media (prefers-color-scheme: dark) { :root { --bg: #0f1319; --fg: #e8ecf2; --muted: #9aa5b4; --line: #2a323d; --accent: #4da3ff; --err: #ff8a80; --ok: #6fd3a0; } button:not(.secondary) { color: #0f1319; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.5 system-ui, sans-serif; }
header, main, footer { max-width: 44rem; margin: 0 auto; padding: 1rem 16px; }
header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-bottom: 1px solid var(--line); }
nav a { color: var(--accent); margin-inline-end: 1rem; }
h1 { font-size: 1.6rem; margin: 1.5rem 0 .5rem; }
h2 { font-size: 1.2rem; margin: 1.5rem 0 .5rem; }
.muted { color: var(--muted); }
button { font: inherit; padding: .55rem 1rem; border: 1px solid var(--accent); background: var(--accent); color: #fff; border-radius: .4rem; cursor: pointer; }
button.secondary { background: transparent; color: var(--accent); }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
fieldset { border: 1px solid var(--line); border-radius: .5rem; margin: 1rem 0; }
label { display: block; margin: .4rem 0; }
dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1rem; }
dt { color: var(--muted); }
dd { margin: 0; overflow-wrap: anywhere; }
code, pre { font-family: ui-monospace, monospace; overflow-wrap: anywhere; white-space: pre-wrap; }
.msg { padding: .5rem .75rem; border-radius: .4rem; border: 1px solid var(--line); margin: 1rem 0; }
.msg.error { border-color: var(--err); color: var(--err); }
.keybox { border: 2px solid var(--ok); padding: .75rem; border-radius: .5rem; margin: 1rem 0; }
[hidden] { display: none !important; }
