* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: #f2f3f5; color: #222; line-height: 1.45; }
nav.top { background: #4a4f57; color: #fff; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 0 12px; }
nav.top a, nav.top button.link { color: #e8eaed; text-decoration: none; padding: 12px 12px; display: inline-block; background: none; border: 0; font: inherit; cursor: pointer; }
nav.top a:hover, nav.top button.link:hover, nav.top a.active { background: #5e646d; color: #fff; }
nav.top .brand { font-weight: 600; margin-right: 12px; }
nav.top .spacer { flex: 1; }
nav.top .who { color: #c9ccd1; font-size: .9em; padding: 0 8px; }
nav.top form { display: inline; margin: 0; }
main { max-width: 980px; margin: 24px auto; padding: 0 16px; }
main.narrow { max-width: 420px; }
h1 { font-size: 1.5em; margin: 0 0 16px; }
h2 { font-size: 1.15em; margin: 24px 0 8px; }
.card { background: #fff; border: 1px solid #d9dce0; border-radius: 6px; padding: 18px; margin-bottom: 18px; }
label { display: block; font-weight: 600; margin: 12px 0 4px; }
input[type=text], input[type=password], input[type=number], select { width: 100%; padding: 8px 10px; border: 1px solid #b8bcc2; border-radius: 4px; font: inherit; background: #fff; }
input[type=checkbox] { margin-right: 6px; }
label.check { font-weight: normal; display: flex; align-items: center; }
button, .btn { background: #4a4f57; color: #fff; border: 0; border-radius: 4px; padding: 8px 16px; font: inherit; cursor: pointer; text-decoration: none; display: inline-block; }
button:hover, .btn:hover { background: #333840; }
button.danger { background: #a33; }
button.secondary, .btn.secondary { background: #e4e6e9; color: #222; }
.actions { margin-top: 16px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #e3e5e8; vertical-align: top; }
th { background: #e9ebee; font-weight: 600; }
td form { display: inline; }
.flash { padding: 10px 14px; border-radius: 4px; margin-bottom: 14px; }
.flash.ok { background: #e3f3e6; border: 1px solid #a9d5b1; }
.flash.error { background: #fbe5e5; border: 1px solid #e0a8a8; }
.hint { color: #555; font-size: .92em; }
.tag { display: inline-block; font-size: .8em; padding: 1px 8px; border-radius: 10px; background: #e4e6e9; }
.tag.off { background: #fbe5e5; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.1em; letter-spacing: .05em; }
.codes { columns: 2; background: #f6f7f8; border: 1px dashed #999; padding: 12px 18px; list-style: none; margin: 12px 0; }
.codes li { padding: 3px 0; }
.qr { text-align: center; } .qr img { width: 220px; height: 220px; }
.inline-form { display: flex; gap: 8px; margin-top: 8px; }
.inline-form input { flex: 1; }
.empty { color: #666; padding: 12px 0; }
main.wide { max-width: 1300px; }
.scroll { overflow-x: auto; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 14px; }
.filters > div { flex: 1 1 170px; }
.filters label { margin-top: 0; font-size: .9em; }
.pre { white-space: pre-line; }
.tags span { display: inline-block; font-size: .82em; padding: 1px 8px; margin: 0 4px 3px 0; border-radius: 10px; background: #e4e6e9; }
.notice { background: #fff6dc; border: 1px solid #e6d28a; border-radius: 4px; padding: 10px 14px; margin-bottom: 14px; }
dl.detail { display: grid; grid-template-columns: 240px 1fr; gap: 8px 16px; margin: 0; }
dl.detail dt { font-weight: 600; color: #444; }
dl.detail dd { margin: 0; white-space: pre-line; }
textarea { width: 100%; padding: 8px 10px; border: 1px solid #b8bcc2; border-radius: 4px; font: inherit; min-height: 80px; resize: vertical; }
.checks { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.old { color: #a33; text-decoration: line-through; }
.new { color: #1d6b2f; }
ul.changes { margin: 0; padding-left: 18px; }
.pager { margin: 12px 0; display: flex; gap: 10px; align-items: center; }
@media (max-width: 700px) { dl.detail { grid-template-columns: 1fr; } }
