:root {
  --bg: #090d16;
  --surface: #111827;
  --border: #1f2937;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --emerald: #10b981;
  --amber: #f59e0b;
  --danger: #ef4444;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  scrollbar-gutter: stable;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  gap: 16px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; }
.logo { font-size: 28px; }
h1 { font-size: 18px; font-weight: 700; }
.badge { background: rgba(16,185,129,0.18); color: var(--emerald); padding: 2px 8px; border-radius: 6px; font-size: 12px; }
.subtitle { font-size: 12px; color: var(--muted); }
.search-box input {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  min-width: 260px;
  min-height: 48px;
}
.main-grid { padding: 20px 24px 80px; display: flex; flex-direction: column; gap: 20px; min-height: 0; }
.kpi-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}
.kpi-label { font-size: 12px; color: var(--muted); text-transform: uppercase; }
.kpi-val { font-size: 22px; font-weight: 700; margin-top: 6px; color: var(--emerald); }
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; min-height: 0; }
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.panel h2 { font-size: 15px; margin-bottom: 12px; }
.scroll-area { overflow-y: auto; max-height: 360px; scrollbar-gutter: stable; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.item-row {
  padding: 12px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.alert-high { border-left: 4px solid var(--danger); }
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  padding: 6px;
}
.nav-btn {
  background: transparent;
  color: var(--text);
  border: none;
  min-height: 48px;
  min-width: 48px;
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
}
