:root { color-scheme: dark; font-family: system-ui, sans-serif; background: #101923; color: #eef4ed; --line: #405564; --mint: #bcf2cf; }
* { box-sizing: border-box; }
body { margin: 0; }
header, main, footer { max-width: 1160px; margin: auto; padding: 24px; }
header { display: flex; justify-content: space-between; gap: 20px; align-items: center; border-bottom: 2px solid var(--line); }
h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0; }
h2 { font-size: 1.2rem; margin-top: 0; }
p { line-height: 1.6; }
.eyebrow { color: var(--mint); font-weight: 800; letter-spacing: .12em; font-size: .75rem; }
.muted, footer { color: #bdc9cd; font-size: .9rem; }
.panel, .record { padding: 24px; border: 2px solid var(--line); background: #182632; margin: 20px 0; box-shadow: 4px 4px 0 #070e15; }
.narrow { max-width: 520px; }
form, label { display: grid; gap: 10px; }
form { gap: 20px; }
label { font-weight: 600; }
input, select, textarea, button { font: inherit; border: 2px solid var(--line); padding: 12px; border-radius: 0; }
input, select, textarea { background: #0e1821; color: inherit; min-width: 0; width: 100%; }
button { background: var(--mint); color: #12221d; font-weight: 750; cursor: pointer; }
button:hover { filter: brightness(1.08); }
button:disabled { opacity: .5; cursor: not-allowed; }
.danger { background: #ffc0ab; }
:focus-visible { outline: 3px solid #ffdc7f; outline-offset: 3px; }
.toolbar, .pagination { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.toolbar p { flex: 1; }
.pagination { justify-content: center; margin: 24px 0; }
.record h2 { overflow-wrap: anywhere; color: var(--mint); }
dl { display: grid; grid-template-columns: minmax(100px, 160px) 1fr; gap: 8px 16px; }
dt { color: #bdc9cd; }
dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
code { overflow-wrap: anywhere; user-select: all; }
#qr-code { background: white; margin-bottom: 12px; }
#status { padding: 14px; border-left: 4px solid var(--mint); background: #1b2c33; white-space: pre-wrap; }
#status[data-error="true"] { border-color: #ffb59d; }
dialog { color: inherit; background: #182632; border: 2px solid var(--mint); max-width: 560px; width: calc(100% - 32px); padding: 24px; }
dialog::backdrop { background: #000b; }
[hidden] { display: none !important; }
@media (max-width: 600px) {
  header, main, footer { padding: 16px; }
  header { align-items: flex-start; }
  .panel, .record { padding: 16px; }
  dl { grid-template-columns: 1fr; }
  dd { margin-bottom: 8px; }
}
