:root {
  --bg: #f5f7fb;
  --surface: #fff;
  --text: #111827;
  --muted: #6b7280;
  --primary: #0f766e;
  --border: #dbe2ea;
  --success: #166534;
  --danger: #b91c1c;
  --warn: #b45309;
}
* { box-sizing: border-box; }
body { margin:0; font-family: "Segoe UI", Tahoma, sans-serif; background: linear-gradient(180deg,#eef2f7,#f8fbff); color: var(--text);}
.container { width:min(1100px,92vw); margin: 0 auto; }
.topbar { background:#0b1729; color:#fff; padding:14px 0; margin-bottom:22px; }
.brand { color:#fff; font-weight:700; text-decoration:none; font-size:1.2rem; }
.nav a { color:#d3deee; text-decoration:none; margin-left:14px; }
.row { display:flex; align-items:center; }
.between { justify-content:space-between; }
.gap { gap:10px; }
.wrap { flex-wrap:wrap; }
.grid { display:grid; gap:14px; margin-bottom:16px; }
.grid.two { grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); }
.grid.four { grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); }
.card { background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:16px; margin-bottom:16px; box-shadow:0 1px 3px rgba(17,24,39,.04); }
.narrow { max-width:520px; margin:auto; }
.btn { background:var(--primary); color:white; border:none; border-radius:8px; padding:9px 13px; text-decoration:none; cursor:pointer; display:inline-block;}
.btn.ghost { background:transparent; border:1px solid var(--border); color:var(--text); }
.btn.small { padding:6px 10px; font-size:.86rem; }
.inline { display:inline; }
.alert { border-radius:8px; padding:10px 12px; margin-bottom:14px; }
.alert.success { background:#dcfce7; color:#14532d; }
.alert.error { background:#fee2e2; color:#7f1d1d; }
.alert.info { background:#dbeafe; color:#1e3a8a; }
.table { width:100%; border-collapse:collapse; }
.table th, .table td { border-bottom:1px solid var(--border); text-align:left; padding:10px; vertical-align: top;}
.badge { border-radius:999px; padding:2px 8px; font-size:.75rem; color:#fff; text-transform:uppercase; letter-spacing:.04em; }
.badge.green { background:var(--success); }
.badge.red { background:var(--danger); }
.badge.amber { background:var(--warn); }
.badge.blue { background:#1d4ed8; }
.badge.gray { background:#374151; }
.muted { color:var(--muted); }
.metric { font-size:1.8rem; margin:0; font-weight:700; }
label { display:block; margin-bottom:10px; font-weight:600; }
input, select, textarea { width:100%; border:1px solid var(--border); border-radius:8px; padding:9px; margin-top:6px; }
pre { white-space:pre-wrap; background:#f8fafc; padding:10px; border-radius:8px; border:1px solid var(--border); }
.truncate { max-width:330px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.status-line { display:flex; gap:4px; flex-wrap:wrap; }
.dot { width:12px; height:12px; border-radius:50%; display:inline-block; }
.dot.green { background:#16a34a; }
.dot.red { background:#dc2626; }
.dot.amber { background:#d97706; }
.footer { color:var(--muted); text-align:center; padding:20px 0; }
@media (max-width: 768px) {
  .nav { display:flex; flex-wrap:wrap; gap:8px; justify-content:flex-end; }
  .truncate { max-width:160px; }
}
