/* Vertical Intelligence house style: dark neutral ground, bright high-contrast
   text, gold/amber accent only. Nothing under 12px. */

:root {
  --bg: #0e0f11;
  --panel: #16181b;
  --panel-2: #1c1f23;
  --line: #2a2d31;
  --text: #eceee9;
  --text-dim: #9a9c96;
  --accent: #d9a441;
  --accent-dim: #8a6a2c;
  --good: #6faf6a;
  --bad: #c0574a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

.layout {
  display: flex;
  min-height: 100vh;
}

/* Left navigation */
.sidenav {
  width: 210px;
  flex-shrink: 0;
  background: var(--panel);
  border-right: 1px solid var(--line);
  padding: 22px 0;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 12px;
}

.brand-vertical {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 600;
}

.brand-product {
  font-size: 17px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.5px;
}

.nav-item {
  display: block;
  padding: 10px 20px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  border-left: 3px solid transparent;
}

.nav-item:hover { color: var(--text); }

.nav-item.active {
  color: var(--text);
  border-left-color: var(--accent);
  background: var(--panel-2);
}

/* Main content */
.content {
  flex: 1;
  padding: 34px 42px;
  max-width: 1180px;
}

.surface { display: none; }
.surface.active { display: block; }

h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 22px;
}

h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 26px 0 12px;
}

/* Empty states: honest, quiet */
.empty-state {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
  max-width: 620px;
}

.empty-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.empty-body {
  font-size: 14px;
  color: var(--text-dim);
}

/* Shared primitives for later passes */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}

th {
  text-align: left;
  color: var(--text-dim);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}

td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}

.num { text-align: right; font-variant-numeric: tabular-nums; }
.up { color: var(--good); }
.down { color: var(--bad); }
.accent { color: var(--accent); }
.dim { color: var(--text-dim); }
.evidence { font-size: 12px; color: var(--text-dim); }

/* Data status strip: visible above every surface */
.data-status {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  align-items: baseline;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 24px;
  font-size: 13px;
}

.strip-none { color: var(--text-dim); }
.strip-link { color: var(--accent); text-decoration: none; font-weight: 600; }
.strip-link:hover { text-decoration: underline; }
.strip-item { color: var(--text); font-variant-numeric: tabular-nums; }

.strip-label {
  color: var(--text-dim);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-right: 4px;
}

/* Data page: ingest controls and validation report */
.panel-first { margin-top: 0; }
.hint { font-size: 13px; color: var(--text-dim); margin: 6px 0 14px; }

.file-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.file-row label {
  width: 150px;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 600;
}

.file-row input[type="file"] { font-size: 13px; color: var(--text-dim); }

.ingest-actions { display: flex; gap: 12px; margin-top: 18px; }

.btn {
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.btn:hover { border-color: var(--text-dim); }

.btn-accent {
  background: var(--accent);
  color: #14120c;
  border-color: var(--accent);
}

.btn-accent:hover { background: #e5b45a; border-color: #e5b45a; }

.alert-dismiss { float: right; padding: 5px 12px; font-size: 12px; }

.report-row { font-size: 14px; padding: 6px 0; }
.report-bad { color: var(--bad); }

.report-rejects {
  margin: 4px 0 10px 20px;
  font-size: 13px;
  color: var(--text-dim);
}

.nav-sep { border-top: 1px solid var(--line); margin: 12px 0; }

/* Daily Brief */
.brief-date { font-size: 13px; color: var(--text-dim); margin-bottom: 18px; }

.snapshot { display: flex; flex-wrap: wrap; gap: 14px; }

.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 18px;
  min-width: 200px;
}

.stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.stat-value { font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-sub { font-size: 13px; color: var(--text-dim); }

.obs-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: 8px;
  padding: 12px 18px;
  margin-bottom: 10px;
}

.obs-card.sev-high { border-left-color: var(--bad); }
.obs-card.sev-medium { border-left-color: var(--accent); }
.obs-card.sev-info { border-left-color: var(--text-dim); }

.sev-chip { font-size: 12px; font-weight: 700; letter-spacing: 2px; }
.sev-high .sev-chip { color: var(--bad); }
.sev-medium .sev-chip { color: var(--accent); }
.sev-info .sev-chip { color: var(--text-dim); }

.obs-stmt { font-size: 15px; margin: 4px 0 6px; }

/* Inventory page controls */
.controls-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 12px;
  font-size: 13px;
  color: var(--text-dim);
}
.controls-row input[type="number"] {
  width: 64px;
  padding: 4px 6px;
  font-size: 13px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.hint-inline { font-size: 13px; color: var(--text-dim); }
