:root { --bg: #fbf8f3; --fg: #1d1a16; --muted: #6b6258; --accent: #8a1c1c; --line: #e2dbd0; color-scheme: light dark; }
@media (prefers-color-scheme: dark) { :root { --bg: #15120f; --fg: #f1ebe2; --muted: #a59a8c; --accent: #e0a63a; --line: #3a332b; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.5 system-ui, sans-serif; }
header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
header nav { display: flex; gap: 16px; align-items: center; }
.brand { font-weight: 700; font-size: 20px; color: var(--accent); text-decoration: none; }
main { max-width: 760px; margin: 0 auto; padding: 16px; }
label { display: block; margin: 12px 0; }
input, select { font: inherit; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: inherit; max-width: 100%; }
label input { display: block; width: 100%; margin-top: 4px; }
button, .button { font: inherit; padding: 8px 14px; border-radius: 6px; border: 0; background: var(--accent); color: #fff; cursor: pointer; text-decoration: none; display: inline-block; }
button.link { background: none; color: var(--accent); padding: 0; }
button.danger { background: #a33; }
form { margin: 0; }
table { width: 100%; border-collapse: collapse; margin: 12px 0; }
td, th { text-align: left; padding: 8px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
.error { color: #b00020; } .notice { color: #1b6e2a; }
.codes { columns: 2; font-family: ui-monospace, monospace; font-size: 18px; }
.tag { color: var(--muted); font-size: 14px; }
@media (max-width: 600px) { table, tbody, tr, td { display: block; } .codes { columns: 1; } }
