
:root { color-scheme: light dark; --bg: #ffffff; --fg: #14171a; --muted: #4a5560; --line: #c4ccd4; --accent: #0b5cad; --danger: #a4161a; --card: #f3f5f7; }
@media (prefers-color-scheme: dark) { :root { --bg: #101418; --fg: #eef1f4; --muted: #b4bec8; --line: #3a444e; --accent: #7db8f5; --danger: #ff8a8d; --card: #1a2027; } }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, sans-serif; background: var(--bg); color: var(--fg); }
header { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--line); }
h1 { font-size: 1.25rem; margin: 0; }
h2 { font-size: 1.1rem; margin: 1.2rem 0 0.5rem; }
main { padding: 16px 20px; max-width: 1100px; margin: 0 auto; }
#status { padding: 0 20px; min-height: 1.5rem; max-width: 1100px; margin: 8px auto 0; }
.error { color: var(--danger); font-weight: 600; }
.ok { color: var(--accent); font-weight: 600; }
.muted { color: var(--muted); }
button, input, textarea, select { font: inherit; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; min-height: 40px; }
button { cursor: pointer; background: var(--accent); color: var(--bg); border-color: var(--accent); font-weight: 600; }
button.secondary { background: var(--card); color: var(--fg); border-color: var(--line); }
button.danger { background: var(--danger); border-color: var(--danger); }
button:disabled { opacity: 0.5; cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
label { display: block; font-weight: 600; margin: 12px 0 4px; }
input, textarea { width: 100%; max-width: 520px; }
textarea { min-height: 90px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; margin: 12px 0; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: ui-monospace, monospace; font-size: 0.9rem; }
.sev { font-weight: 700; }
img.qr { width: 200px; height: 200px; background: #fff; padding: 8px; border-radius: 6px; }
