* { box-sizing: border-box; }
body {
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
	margin: 0;
	background: #f4f5f7;
	color: #1a1a1a;
}
nav {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	padding: 0.75rem 1.5rem;
	background: #1f2937;
	color: #fff;
}
nav a { color: #cbd5e1; text-decoration: none; font-weight: 500; }
nav a:hover { color: #fff; }
nav .spacer { flex: 1; }
nav button {
	background: transparent;
	color: #cbd5e1;
	border: 1px solid #475569;
	border-radius: 4px;
	padding: 0.25rem 0.75rem;
	cursor: pointer;
}
main { max-width: 1080px; margin: 0 auto; padding: 1.5rem; }
h1 { margin-top: 0; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
th, td { text-align: left; padding: 0.6rem 0.9rem; border-bottom: 1px solid #e5e7eb; font-size: 0.9rem; }
th { background: #eef0f3; font-weight: 600; }
tr:last-child td { border-bottom: none; }
.badge { display: inline-block; padding: 0.1rem 0.5rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.badge.active { background: #dcfce7; color: #166534; }
.badge.inactive { background: #fee2e2; color: #991b1b; }
form.inline { display: flex; gap: 0.5rem; margin: 1rem 0; flex-wrap: wrap; }
input, select, button.primary {
	padding: 0.5rem 0.75rem;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	font-size: 0.9rem;
}
button.primary { background: #1f2937; color: #fff; border-color: #1f2937; cursor: pointer; }
button.primary:hover { background: #111827; }
pre.result { background: #111827; color: #d1fae5; padding: 0.75rem 1rem; border-radius: 4px; overflow-x: auto; font-size: 0.85rem; }
.login { max-width: 320px; margin: 4rem auto; text-align: center; }
.login form { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1.5rem; }
.error { color: #b91c1c; min-height: 1.2em; }
code.small { font-size: 0.85em; color: #4b5563; }
.chip { padding: 0.45rem 0.8rem; border-radius: 999px; background: #e5e7eb; color: #111827; text-decoration: none; font-size: 0.85rem; align-self: center; }
.chip:hover { background: #d1d5db; }
form.inline label { display: flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; color: #4b5563; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0.75rem; margin: 1rem 0; }
.card { background: #fff; border-radius: 6px; padding: 0.8rem 1rem; box-shadow: 0 1px 2px rgba(0,0,0,0.06); }
.card .label { font-size: 0.75rem; text-transform: uppercase; color: #6b7280; letter-spacing: 0.03em; }
.card .value { font-size: 1.35rem; font-weight: 700; margin-top: 0.15rem; }
.card .sub { font-size: 0.78rem; color: #6b7280; }
.card.warn .value { color: #b91c1c; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.bar { background: #e5e7eb; border-radius: 3px; height: 8px; min-width: 80px; }
.bar > span { display: block; height: 100%; background: #2563eb; border-radius: 3px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 1rem; }
h2 { margin: 1.5rem 0 0.5rem; font-size: 1.1rem; }
.pos { color: #166534; } .neg { color: #b91c1c; } .muted { color: #6b7280; }
.badge.low { background: #fee2e2; color: #991b1b; }
.badge.ok { background: #dcfce7; color: #166534; }
.note { font-size: 0.8rem; color: #6b7280; margin-top: 0.5rem; }
main { max-width: 1280px; }
