:root { --blue: #0076C8; --ink: #1f2933; --muted: #6b7785; --line: #e1e5ea; --bg: #f4f6f8; --ok: #1a7f37; --off: #b42318; }
* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.5; }
a { color: var(--blue); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.top { background: #fff; border-bottom: 3px solid var(--blue); margin-bottom: 24px; }
.top-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; min-height: 58px; }
.brand { font-size: 20px; font-weight: bold; text-decoration: none; }
.brand span { color: var(--muted); font-weight: normal; font-size: 15px; }
.admin .top { border-bottom-color: #334155; }
.nav { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.nav a { text-decoration: none; }
.inline { display: inline; }
button.link { background: none; border: 0; color: var(--blue); cursor: pointer; font: inherit; padding: 0; }
h1 { font-size: 24px; margin: 0 0 16px; }
h2 { font-size: 18px; margin: 0 0 12px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 20px; margin-bottom: 20px; }
.card.narrow { max-width: 460px; margin: 24px auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; align-items: start; }
label { display: block; margin-bottom: 12px; font-weight: bold; font-size: 14px; }
label small { font-weight: normal; display: block; }
label.check { font-weight: normal; }
input[type=text], input[type=email], input[type=password], input[type=search], select {
    display: block; width: 100%; margin-top: 4px; padding: 9px 10px; border: 1px solid #c5ccd3; border-radius: 6px; font: inherit; font-weight: normal; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.form-grid .wide { grid-column: 1 / -1; }
.btn { display: inline-block; background: var(--blue); color: #fff; border: 0; border-radius: 6px; padding: 10px 18px; font: inherit; font-weight: bold; cursor: pointer; text-decoration: none; }
.btn.small { padding: 6px 10px; font-size: 13px; font-weight: normal; margin: 2px 0; }
.btn.danger { background: var(--off); }
.alert { padding: 10px 14px; border-radius: 6px; margin-bottom: 16px; }
.alert.error { background: #fdecea; color: var(--off); border: 1px solid #f5c2bc; }
.alert.ok { background: #e7f5ec; color: var(--ok); border: 1px solid #b7e1c4; }
.muted { color: var(--muted); font-weight: normal; }
.table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); margin-bottom: 20px; }
.table th, .table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: #f8fafc; font-size: 13px; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; }
.badge.ok { background: #e7f5ec; color: var(--ok); }
.badge.off { background: #fdecea; color: var(--off); }
.details { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; margin: 0 0 16px; }
.details dt { color: var(--muted); }
.details dd { margin: 0; }
.head-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.filters input, .filters select { width: auto; margin: 0; }
.center { text-align: center; }
.qr { width: 220px; height: 220px; image-rendering: pixelated; }
.key { font-size: 17px; letter-spacing: 1px; background: #f1f5f9; padding: 6px 10px; border-radius: 6px; }
.hidden { display: none; }
.foot { color: var(--muted); font-size: 13px; padding: 24px 16px; }
@media (max-width: 700px) { .table { display: block; overflow-x: auto; } .details { grid-template-columns: 1fr; } }
