* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #1d232a; background: #f4f5f7; }
.banner { background: #b3261e; color: #fff; padding: 10px 14px; font-weight: 600; text-align: center; }
header { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 10px 14px; background: #fff; border-bottom: 1px solid #dde1e6; }
nav { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
nav a { color: #0b57d0; text-decoration: none; }
main { max-width: 1100px; margin: 0 auto; padding: 14px; }
h1 { font-size: 1.4rem; margin: 6px 0 14px; }
h2 { font-size: 1.15rem; margin-top: 24px; }
.card { background: #fff; border: 1px solid #dde1e6; border-radius: 10px; padding: 14px; display: grid; gap: 12px; max-width: 640px; }
.card.user { max-width: none; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 10px; }
label { display: grid; gap: 4px; font-weight: 500; }
label.small { display: flex; gap: 6px; align-items: center; font-weight: 400; font-size: .95rem; }
input, select, textarea, button { font: inherit; padding: 10px; border: 1px solid #b8bfc7; border-radius: 8px; width: 100%; background: #fff; }
input[type=checkbox] { width: auto; }
button { background: #0b57d0; color: #fff; border: 0; font-weight: 600; cursor: pointer; min-height: 44px; }
button.link { background: none; color: #0b57d0; padding: 0; min-height: 0; width: auto; font-weight: 400; }
form.inline { display: inline; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.filters > * { width: auto; flex: 1 1 160px; }
.error { background: #fde7e9; color: #8c1d18; padding: 10px; border-radius: 8px; }
.ok { background: #e6f4ea; color: #0d652d; padding: 10px; border-radius: 8px; }
.warn { color: #8a5300; }
.muted { color: #5f6b76; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: #fff; font-size: .9rem; }
th, td { border-bottom: 1px solid #e3e6ea; padding: 6px 8px; text-align: left; vertical-align: top; }
.hash { font-family: ui-monospace, monospace; font-size: .8rem; word-break: break-all; }
.history { font-size: .9rem; }
