
:root { color-scheme: dark; }
html, body { background: #070a0d; }
.card {
  background: linear-gradient(180deg, rgba(22,29,38,0.95), rgba(16,22,29,0.95));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
  padding: 1rem 1rem 1.1rem;
  box-shadow: 0 8px 28px rgba(0,0,0,0.25);
}
.card-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #e2e8f0;
  letter-spacing: 0.02em;
}
.field-label {
  display: block;
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 0.35rem;
}
.field-select {
  width: 100%;
  background: #0b1016;
  border: 1px solid rgba(255,255,255,0.12);
  color: #e2e8f0;
  border-radius: 0.7rem;
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
}
.field-select:focus {
  outline: 2px solid rgba(34,211,238,0.45);
  outline-offset: 1px;
}
.tab-btn { color: #94a3b8; font-weight: 500; }
.tab-btn[aria-selected="true"] {
  background: #0b1016;
  color: #f8fafc;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 6px 16px rgba(0,0,0,0.25);
}
.metric-card {
  background: #10161d;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.9rem;
  padding: 0.85rem 0.9rem;
  min-width: 0;
}
.metric-label { font-size: 11px; color: #94a3b8; }
.metric-value { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 1.15rem; font-weight: 600; color: #f1f5f9; margin-top: 0.15rem; word-break: break-all; }
.metric-sub { font-size: 11px; color: #64748b; margin-top: 0.2rem; }
.pos { color: #34d399; }
.neg { color: #fb7185; }
.muted { color: #94a3b8; }
.chart-box {
  width: 100%;
  position: relative;
  background: #0b1016;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 0.75rem;
  overflow: hidden;
}
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  min-width: 640px;
}
table.data th, table.data td {
  text-align: left;
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  white-space: nowrap;
}
table.data th {
  color: #94a3b8;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  user-select: none;
  position: sticky;
  top: 0;
  background: #10161d;
}
table.data th.no-sort { cursor: default; }
table.data tbody tr:hover { background: rgba(255,255,255,0.03); }
table.data td.num { font-family: "IBM Plex Mono", ui-monospace, monospace; text-align: right; }
table.data th.num { text-align: right; }
.empty {
  color: #64748b;
  font-size: 0.875rem;
  padding: 1rem 0.25rem;
}
.alloc-track {
  display: flex;
  height: 0.85rem;
  border-radius: 999px;
  overflow: hidden;
  background: #0b1016;
  border: 1px solid rgba(255,255,255,0.08);
}
.hist {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 88px;
}
.hist span {
  flex: 1;
  background: rgba(56,189,248,0.45);
  border-radius: 2px 2px 0 0;
  min-height: 1px;
}
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  font-size: 11px;
  border: 1px solid rgba(255,255,255,0.1);
  color: #cbd5e1;
}
