/* Tenders Admin — minimalist styling. No framework, no build step. */
:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --border: #e1e5ea;
  --text: #1f2328;
  --muted: #6e7781;
  --primary: #0969da;
  --primary-dim: #0969da33;
  --accent: #cf222e;
  --green: #1a7f37;
  --warn: #9a6700;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.topbar {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 14px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.topbar h1 { margin: 0; font-size: 18px; font-weight: 600; }
.totals { color: var(--muted); font-size: 13px; }

.tabs {
  display: flex; gap: 4px; padding: 6px 24px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.tab {
  padding: 8px 14px;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  font-size: 13px;
}
.tab.active {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border);
  font-weight: 600;
}
.tab .count {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  background: var(--primary-dim);
  color: var(--primary);
  border-radius: 10px;
  font-size: 11px;
}

.filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 12px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.filters input, .filters select, .filters button {
  font: inherit;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: white;
}
.filters input[type="search"] { min-width: 240px; }
.filters input[type="text"] { min-width: 140px; }
.filters select[multiple] { min-width: 160px; max-width: 240px; height: 34px; }
.filters button { cursor: pointer; }
.filters button#apply { background: var(--primary); color: white; border-color: var(--primary); }
.filters button#reset { background: white; color: var(--muted); }

.results { padding: 16px 24px 60px; }
.results-meta {
  display: flex; align-items: center; gap: 12px;
  color: var(--muted); font-size: 13px;
  margin-bottom: 8px;
}
.results-meta .spacer { flex: 1; }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
thead th {
  background: #f1f3f5;
  border-bottom: 1px solid var(--border);
  text-align: left;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
thead th .sort-arrow {
  font-size: 10px; color: var(--muted);
}
tbody td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
tbody tr:hover { background: #fafbfc; }
tbody td.numeric { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tbody td.title-cell { max-width: 380px; }
tbody td.title-cell a { color: var(--primary); text-decoration: none; font-weight: 500; }
tbody td.title-cell a:hover { text-decoration: underline; }
tbody td.title-cell .meta { color: var(--muted); font-size: 12px; margin-top: 3px; }

.pill {
  display: inline-block;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 10px;
  white-space: nowrap;
}
.pill-EU { background: #1a7f3722; color: var(--green); }
.pill-BELOW_EU { background: #9a670022; color: var(--warn); }
.pill-WORKS { background: #fff4ce; color: #735c00; }
.pill-SUPPLIES { background: #ddf4ff; color: #0550ae; }
.pill-SERVICES { background: #ddf4ff; color: #0969da; }
.pill-MIXED { background: #fff1e5; color: #9a3412; }
.pill-PMC { background: #f3e8ff; color: #6b21a8; }
.pill-PIN { background: #ddf4ff; color: var(--primary); }
.pill-TENDER { background: #1a7f3722; color: var(--green); }
.pill-VEAT { background: #fff4ce; color: #735c00; }
.pill-AWARD { background: #cf222e22; color: var(--accent); }
.pill-MODIFICATION { background: #fff1e5; color: #9a3412; }
.pill-COMPLETION { background: #e2e8f0; color: #1e293b; }
.pill-OTHER { background: #f0f0f0; color: var(--muted); }

/* Per-tender FSM stage pills (intel.tenders.lifecycle_stage). EXCLUDED is the
   out-of-scope terminal the pre-LLM gate routes non-construction notices to —
   styled to stand out. The rest track normal pipeline progress. */
.pill-stage-EXCLUDED { background: #cf222e22; color: var(--accent); }
.pill-stage-FAILED { background: #cf222e22; color: var(--accent); }
.pill-stage-INGESTED { background: #f0f0f0; color: var(--muted); }
.pill-stage-NORMALIZED { background: #ddf4ff; color: var(--primary); }
.pill-stage-DOCS_DOWNLOADING,
.pill-stage-DOCS_DOWNLOADED,
.pill-stage-DOCS_EXTRACTING,
.pill-stage-DOCS_EXTRACTED { background: #fff4ce; color: #735c00; }
.pill-stage-LLM_EXTRACTING,
.pill-stage-LLM_EXTRACTED { background: #f3e8ff; color: #6b21a8; }
.pill-stage-SYNCED { background: #1a7f3722; color: var(--green); }
.pill-stage-NOTIFIED { background: #1a7f3722; color: var(--green); }

/* Change-notice (BT-758) badge — small red flag next to the title. */
.change-badge {
  display: inline-block;
  padding: 1px 6px;
  margin-left: 6px;
  font-size: 10px;
  font-weight: 700;
  background: var(--accent);
  color: white;
  border-radius: 3px;
  letter-spacing: 0.04em;
}

/* Lifecycle modal — legal-form / directive / pin-sub annotations.
   These complement the kind pill: a PIN-as-CFC notice shows
   `TENDER PIN cfc-general Dir 2014/25`. */
.lc-formchip, .lc-dirchip, .lc-pinsub, .lc-change-reason {
  display: inline-block;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 600;
  border-radius: 10px;
  margin-left: 4px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
}
.lc-dirchip { background: #ddf4ff; color: #0550ae; border-color: transparent; }
.lc-pinsub  { background: #fff1e5; color: #9a3412; border-color: transparent; }
.lc-change-reason { background: var(--accent); color: white; border-color: transparent; }
.lc-group-count {
  display: inline-block; padding: 1px 7px;
  font-size: 11px; font-weight: 700;
  background: #1a7f37; color: white;
  border-radius: 10px; margin-left: 4px;
}
.lc-deadline {
  background: #fff8e1;
  border-left: 3px solid #facc15;
  padding: 4px 8px;
  margin-top: 4px;
  border-radius: 3px;
  color: #735c00;
  font-weight: 500;
}
.lc-strategic {
  color: #1a7f37;
  font-weight: 500;
  margin-top: 4px;
}

.confidence {
  display: inline-block;
  width: 36px; height: 6px;
  background: #e1e5ea;
  border-radius: 3px;
  position: relative;
}
.confidence::after {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--green);
  border-radius: 3px;
}

.pagination {
  display: flex; align-items: center; gap: 12px;
  margin-top: 12px; justify-content: center;
}
.pagination button {
  padding: 6px 14px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 5px;
  cursor: pointer;
  font: inherit;
}
.pagination button:disabled { color: var(--muted); cursor: not-allowed; opacity: 0.5; }
.pagination #page-info { color: var(--muted); font-size: 13px; }

footer {
  position: fixed; bottom: 0; left: 0; right: 0;
  padding: 8px 24px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
footer a { color: var(--primary); text-decoration: none; }

/* Candidate-prediction modal */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
}
.modal {
  background: var(--surface);
  border-radius: 8px;
  max-width: 900px;
  width: 90%;
  max-height: 80vh;
  display: flex; flex-direction: column;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}
.modal-head button {
  background: transparent; border: 0; font-size: 22px; cursor: pointer; color: var(--muted);
  line-height: 1;
}
.modal-body { padding: 16px 20px; overflow: auto; }
.modal-body p { margin: 0 0 12px; }
.cand-table { width: 100%; border-collapse: collapse; }
.cand-table th, .cand-table td {
  padding: 8px 10px; border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.cand-table thead th {
  background: #f1f3f5; font-size: 11px; text-transform: uppercase;
  text-align: left; color: var(--muted); font-weight: 600;
}
.cand-table td.numeric { text-align: right; font-variant-numeric: tabular-nums; }
.cand-link { color: var(--primary); text-decoration: none; font-size: 12px; }
.cand-link:hover { text-decoration: underline; }
.lc-link { color: var(--primary); text-decoration: none; font-size: 11px; margin-left: 4px; }
.lc-link:hover { text-decoration: underline; }
.inf-link { color: var(--primary); text-decoration: none; font-size: 12px; margin-left: 2px; }
.inf-link:hover { text-decoration: underline; }
.inf-link.inf-ready { color: #6b21a8; font-weight: 600; }

/* Inference modal */
.inf-row-summary {
  background: #f7f8fa; border: 1px solid var(--border); border-radius: 6px;
  padding: 10px 12px; margin-bottom: 14px;
}
.inf-row-summary .meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.inf-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.inf-tile {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 6px; padding: 10px 12px;
}
.inf-tile-label {
  font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.inf-tile-value { font-size: 18px; font-weight: 600; margin-top: 4px; }
.inf-tile-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.inf-empty {
  background: #fff8e1; border: 1px solid #facc15;
  border-radius: 6px; padding: 14px;
}
.inf-empty p { margin: 0 0 10px; }
.inf-empty code {
  background: #fefae0; padding: 2px 4px; border-radius: 3px;
  font-size: 11px;
}
.inf-steps li { margin-bottom: 6px; }
.inf-comparables { padding-left: 18px; }
.inf-comparables li { margin-bottom: 8px; font-size: 13px; }
.inf-provenance {
  margin-top: 16px; padding-top: 10px;
  border-top: 1px dashed var(--border); font-size: 11px;
}
#inf-body h4 {
  margin: 16px 0 6px; font-size: 13px; font-weight: 600;
}

/* Lifecycle modal */
.lc-modal-inner { max-width: 820px; }
.lc-summary { margin-bottom: 12px; }
.lc-summary .meta { font-size: 12px; color: var(--muted); }
.lc-stages {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
  padding: 10px 12px; margin-bottom: 18px;
  background: #f7f8fa; border: 1px solid var(--border); border-radius: 6px;
}
.lc-stage { font-size: 11px; padding: 2px 8px; border-radius: 10px; }
.lc-stage.absent { opacity: 0.30; filter: grayscale(0.5); }
.lc-arrow { color: var(--muted); font-size: 12px; padding: 0 2px; }
.lc-timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.lc-timeline::before {
  content: "";
  position: absolute; left: 11px; top: 6px; bottom: 6px;
  width: 2px; background: var(--border);
}
.lc-item {
  position: relative; padding-left: 32px; padding-bottom: 18px;
}
.lc-item:last-child { padding-bottom: 0; }
.lc-dot {
  position: absolute; left: 4px; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  box-shadow: 0 0 0 1px var(--border);
}
.lc-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
}
.lc-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: 12px; color: var(--muted); margin-bottom: 4px;
}
.lc-meta .lc-date { font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.lc-title { font-size: 13px; font-weight: 500; }
.lc-title a { color: var(--primary); text-decoration: none; }
.lc-title a:hover { text-decoration: underline; }
.lc-refs {
  margin-top: 6px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.lc-ref {
  display: inline-block; font-size: 11px; color: var(--muted);
  padding: 2px 7px; background: #f1f3f5; border-radius: 3px;
}
.lc-ref .lc-bt {
  display: inline-block; margin-left: 4px;
  font-size: 9px; padding: 0 4px;
  background: var(--primary-dim); color: var(--primary);
  border-radius: 2px; letter-spacing: 0.04em; font-weight: 600;
}
.lc-foot { font-size: 11px; color: var(--muted); margin-top: 16px; }

/* Data quality panel */
.dq-warn { color: var(--warn); }
.dq-bad  { color: var(--accent); font-weight: 600; }
.dq-samples { margin: 24px 0 0; }
.dq-samples:last-child { margin-bottom: 80px; }
.dq-samples h3 { font-size: 13px; color: var(--muted); margin-top: 20px; font-weight: 600; }
.dq-sample-table { width: 100%; border-collapse: collapse; background: var(--surface);
  border: 1px solid var(--border); border-radius: 6px; font-size: 12px; }
.dq-sample-table th, .dq-sample-table td {
  padding: 6px 8px; border-bottom: 1px solid var(--border); text-align: left;
}
.dq-sample-table thead th { background: #f1f3f5; font-weight: 600; color: var(--muted); }

/* DQ headline tiles */
.dq-headline { margin: 0 0 18px; }
.dq-headline h3 {
  font-size: 13px; font-weight: 600; color: var(--muted);
  margin: 0 0 10px;
}
.dq-headline h3 .meta { font-size: 11px; color: var(--muted); font-weight: 400; }
.dq-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.dq-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
}
.dq-tile-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.dq-tile-value {
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.dq-tile-pct {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 4px;
}
.dq-tile-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

/* Login page — single centred card. Reuses the SPA palette so the login
   feels like the same product, not a separate page. */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 28px 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.login-card h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}
.login-sub {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
}
.login-card label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
.login-card input {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  background: var(--bg);
}
.login-card input:focus {
  outline: 2px solid var(--primary-dim);
  border-color: var(--primary);
}
.login-card button {
  margin-top: 14px;
  padding: 9px 14px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.login-card button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.login-error {
  margin-top: 6px;
  padding: 8px 10px;
  background: #fdecea;
  border: 1px solid #f5c2c0;
  color: var(--accent);
  border-radius: 6px;
  font-size: 13px;
}

/* ---------------------------------------------------------------- admin */
.admin-shell { min-height: 100vh; }
.admin-topbar {
  display: flex; align-items: center; gap: 24px;
  padding: 12px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.admin-brand a { color: var(--text); font-weight: 600; text-decoration: none; }
.admin-nav { display: flex; gap: 16px; }
.admin-nav a { color: var(--muted); text-decoration: none; font-size: 13px; }
.admin-nav a:hover { color: var(--primary); }
.admin-main { padding: 20px 24px 80px; max-width: 1200px; margin: 0 auto; }
.admin-page-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 16px;
}
.admin-page-head h1 { margin: 0; font-size: 20px; }

.admin-table { width: 100%; border-collapse: collapse; background: var(--surface);
  border: 1px solid var(--border); border-radius: 6px; font-size: 13px; }
.admin-table th, .admin-table td {
  padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left;
  vertical-align: top;
}
.admin-table thead th { background: #f1f3f5; font-weight: 600; color: var(--muted); }
.admin-table td.numeric, .admin-table th.numeric { text-align: right; font-variant-numeric: tabular-nums; }

.admin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 16px 18px;
  margin-top: 20px;
}
.admin-card h2 { margin: 0 0 12px; font-size: 16px; }
.admin-card h3 { margin: 16px 0 6px; font-size: 14px; color: var(--muted); }

.admin-form { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.admin-form label { display: flex; flex-direction: column; gap: 4px; }
.admin-form label > span, .admin-form-label {
  font-size: 12px; color: var(--muted); font-weight: 600;
}
.admin-form input, .admin-form textarea, .admin-form select {
  padding: 7px 9px; border: 1px solid var(--border); border-radius: 4px;
  font: inherit; background: var(--surface); color: var(--text);
}
.admin-form textarea { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12px; }
.admin-form input:focus, .admin-form textarea:focus, .admin-form select:focus {
  outline: 2px solid var(--primary-dim); outline-offset: -1px;
}

.admin-btn {
  display: inline-block; padding: 6px 12px;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 4px;
  font: inherit; cursor: pointer; text-decoration: none;
}
.admin-btn:hover:not(:disabled) { background: #f1f3f5; }
.admin-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.admin-btn-primary { background: var(--primary); color: white; border-color: var(--primary); }
.admin-btn-primary:hover:not(:disabled) { background: #0860c8; }

.admin-pill {
  display: inline-block; padding: 1px 7px; font-size: 11px;
  border-radius: 3px; font-weight: 600; letter-spacing: 0.02em;
  background: #f1f3f5; color: var(--muted);
}
.admin-pill-active { background: #dcffe4; color: var(--green); }
.admin-pill-beta { background: #fff8c5; color: var(--warn); }
.admin-pill-deprecated { background: #fdecea; color: var(--accent); }
.admin-pill-fallback_only { background: #ddf4ff; color: var(--primary); }
.admin-pill-owner-intel { background: #ddf4ff; color: var(--primary); }
.admin-pill-owner-auftragr { background: #f1f3f5; color: var(--text); }

.admin-chip-row { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0; }
.admin-chip {
  display: inline-block; padding: 2px 7px; font-size: 11px;
  background: #f1f3f5; border-radius: 3px; color: var(--text);
}

.admin-error {
  margin: 8px 0; padding: 8px 10px;
  background: #fdecea; border: 1px solid #f5c2c0; color: var(--accent);
  border-radius: 4px; font-size: 13px;
}
.admin-error-inline { color: var(--accent); font-size: 12px; }
.admin-info {
  margin: 8px 0; padding: 8px 10px;
  background: #dcffe4; border: 1px solid #b9e3c4; color: var(--green);
  border-radius: 4px; font-size: 13px;
}
.admin-muted { color: var(--muted); font-size: 13px; }
.admin-meta { color: var(--muted); font-size: 12px; }

.admin-json {
  background: #f1f3f5; padding: 10px; border-radius: 4px;
  font-size: 12px; max-height: 360px; overflow: auto;
  white-space: pre; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* PR C — backfill + lifecycle dashboard layout primitives */
.admin-mode-tabs {
  display: flex; gap: 16px; padding-bottom: 6px;
  border-bottom: 1px solid var(--border); margin-bottom: 6px;
}
.admin-mode-tabs label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.admin-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-chip-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 8px; border: 1px solid var(--border); border-radius: 12px;
  font-size: 12px; cursor: pointer; background: #fff;
}
.admin-chip-toggle:hover { border-color: var(--primary); }
.admin-checkbox-row { display: flex; align-items: center; gap: 6px; }
.admin-checkbox-row > span { display: none; }

.admin-card-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.admin-card-head h2 { margin: 0; }

.admin-kv {
  display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px;
  margin: 12px 0; font-size: 13px;
}
.admin-kv > div { display: contents; }
.admin-kv dt { color: var(--muted); font-weight: 500; }
.admin-kv dd { margin: 0; }

/* ---- monitoring dashboard (/admin/monitoring) ---- */
.kpi-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px; margin: 12px 0;
}
.kpi-card { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; background: #fff; }
.kpi-card .kpi-value { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.kpi-card .kpi-label { font-size: 12px; color: var(--muted); margin-top: 2px; }
.kpi-card.kpi-bad .kpi-value { color: var(--accent); }
.kpi-card.kpi-warn .kpi-value { color: var(--warn); }

.bar-track {
  display: inline-block; vertical-align: middle; margin-left: 6px;
  width: 72px; height: 8px; background: #eef1f4; border-radius: 3px; overflow: hidden;
}
.bar-fill { display: block; height: 100%; background: var(--primary); border-radius: 3px; }
.bar-fill.bar-bad { background: var(--accent); }

.status-chip {
  display: inline-block; padding: 1px 8px; border-radius: 10px;
  font-size: 12px; border: 1px solid var(--border); background: #fff;
}
.status-chip.chip-ok { color: var(--green); border-color: var(--green); }
.status-chip.chip-warn { color: var(--warn); border-color: var(--warn); }
.status-chip.chip-bad { color: var(--accent); border-color: var(--accent); }
