* { box-sizing: border-box; }
body { margin: 0; font: 17px/1.5 "Segoe UI", system-ui, sans-serif; color: #1d2329; background: #f4f5f7; }
main { max-width: 1200px; margin: 0 auto; padding: 24px; }
h1 { font-size: 28px; margin: 0 0 16px; }
h2 { font-size: 20px; margin: 0 0 12px; }
a { color: #0b57d0; }
.muted { color: #5f6b76; }

.top { display: flex; align-items: center; gap: 24px; padding: 10px 24px; background: #1d2329; color: #fff; }
.top .brand { font-weight: 700; font-size: 19px; }
.top nav { display: flex; gap: 4px; flex: 1; }
.top nav a { color: #d8dde2; text-decoration: none; padding: 6px 12px; border-radius: 6px; }
.top nav a.on, .top nav a:hover { background: #3a434c; color: #fff; }
.logout { display: flex; align-items: center; gap: 10px; margin: 0; }

.banner { background: #c62828; color: #fff; font-weight: 600; padding: 14px 24px; font-size: 19px; }

.heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.tile { background: #fff; border-radius: 10px; padding: 16px 20px; border-left: 6px solid #9aa5b1; }
.tile .n { display: block; font-size: 40px; font-weight: 700; line-height: 1.1; }
.tile.in { border-color: #2e7d32; }
.tile.out { border-color: #6d4c41; }
.tile.none { border-color: #f9a825; }

.health { padding: 10px 16px; border-radius: 8px; margin-bottom: 16px; background: #e8f5e9; }
.health.bad { background: #ffebee; }
.health .warn { color: #b71c1c; font-weight: 600; }

table.list { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; margin-bottom: 24px; }
table.list th, table.list td { text-align: left; padding: 10px 14px; border-bottom: 1px solid #e3e6ea; vertical-align: top; }
table.list th { background: #eceff2; font-size: 15px; color: #3c4650; }
table.list tbody tr:hover { background: #f8f9fa; }

.status { display: inline-block; padding: 2px 10px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.status.in { background: #e8f5e9; color: #1b5e20; }
.status.out { background: #efebe9; color: #4e342e; }
.status.none { background: #fff8e1; color: #8d6e00; }
.status.misread { background: #fce4ec; color: #880e4f; }
.tag { font-size: 15px; font-weight: 400; background: #eceff2; padding: 2px 10px; border-radius: 999px; vertical-align: middle; }

.card { background: #fff; border-radius: 10px; padding: 20px 24px; margin-bottom: 20px; max-width: 640px; }
.card label { display: block; margin-bottom: 14px; }
.card input:not([type=checkbox]), .card select { display: block; width: 100%; font: inherit; padding: 8px 10px; margin-top: 4px; border: 1px solid #b8c0c8; border-radius: 6px; }
.card label.check { display: flex; align-items: center; gap: 8px; }
.login { margin: 60px auto; max-width: 420px; }
.error { background: #ffebee; color: #b71c1c; padding: 10px 14px; border-radius: 6px; }
.code { font: 700 44px/1.2 Consolas, monospace; letter-spacing: 4px; margin: 8px 0; }
form.inline { display: flex; gap: 8px; align-items: center; }
select { font: inherit; padding: 4px 8px; }

button { font: inherit; padding: 8px 16px; border-radius: 6px; border: 1px solid #b8c0c8; background: #fff; cursor: pointer; }
button.primary { background: #0b57d0; border-color: #0b57d0; color: #fff; }
button.danger { background: #c62828; border-color: #c62828; color: #fff; }
.day { margin-bottom: 8px; }
.nowrap { white-space: nowrap; }
