/* ════════════════════════════════════════════════════════════════════════════
   Portway Work — tokens + base design system
   Calm "paper" system extracted from the live app, refactored so per-tenant
   branding = a handful of --b-* tokens (accent · ink/paper · meta-font · logo).
   Status/semantic colours are GLOBAL (not brand) so contrast never depends on
   tenant colour. JS-contract class names preserved (.tab-content, .list-item …).
   ════════════════════════════════════════════════════════════════════════════ */

:root {
  /* type */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* semantic / status — constant across tenants */
  --ink-strong: #1c1c1c;
  --c-blue: #378ADD;  --c-blue-ink: #0C447C;  --c-blue-soft: #E6F1FB;
  --c-purple: #3C3489; --c-purple-soft: #EEEDFE;
  --c-green: #0F6E56;  --c-green-soft: #E1F5EE;
  --c-amber: #854F0B;  --c-amber-soft: #FAEEDA;
  --c-red: #A32D2D;    --c-red-soft: #FCEBEB;

  /* radii / spacing / shadow */
  --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-pill: 999px;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px;
  --shadow-pop: 0 12px 40px rgba(28,28,28,0.16);
  --shadow-sheet: 0 -8px 30px rgba(28,28,28,0.12);
  --dur: 180ms; --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --touch: 44px;
}

/* ── The Lab (default tenant) — deep brand-green (#003808) / system-sans ───── */
[data-theme="thelab"] {
  --b-accent: #003808;            /* The Lab brand-grøn (fra logoet) */
  --b-accent-ink: #002a06;
  --b-accent-soft: #E7EFE8;
  --b-ink: #1c1c1c;
  --b-paper: #fafaf7;
  --b-surface: #ffffff;
  --b-line: #d3d1c7;
  --b-line-soft: #f1efe8;
  --b-muted: #888780;
  --b-font-meta: var(--font-sans);
  --b-focus: rgba(0,56,8,0.28);
  --b-avatar-bg: #E7EFE8;
  --b-avatar-fg: #003808;
}

/* ── hellum.it — green / mono-accent ─────────────────────────────────────── */
[data-theme="hellum"] {
  --b-accent: #2faa2f;            /* slightly deepened for AA on paper */
  --b-accent-ink: #1f7a1f;
  --b-accent-soft: #e7f6e7;
  --b-ink: #353532;
  --b-paper: #faf8f3;
  --b-surface: #ffffff;
  --b-line: rgba(53,53,50,0.16);
  --b-line-soft: rgba(53,53,50,0.08);
  --b-muted: #6e6e6a;
  --b-font-meta: var(--font-mono);   /* medium mono identity */
  --b-focus: rgba(61,204,61,0.32);
  --b-avatar-bg: #e7f6e7;
  --b-avatar-fg: #1f7a1f;
}

/* ════════════════════════════════════ base ═══════════════════════════════ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--font-sans);
  background: #ECEAE2;                 /* neutral stage behind the app */
  color: var(--b-ink);
  font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* icon size floor — standalone icons without a contextual size stay 16px */
svg.ic { width: 16px; height: 16px; flex-shrink: 0; display: inline-block; vertical-align: middle; }

/* The app itself paints brand paper */
.pw-app {
  background: var(--b-paper);
  color: var(--b-ink);
  container-type: inline-size;
  container-name: app;
  min-height: 100%;
}
.app { max-width: 1280px; margin: 0 auto; padding: 24px; }

/* ════════════════════════════════════ topbar ═════════════════════════════ */
.topbar {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 0 16px;
}
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand-logo { display: flex; align-items: center; height: 24px; }
.brand-logo .wordmark {
  font-weight: 800; font-size: 21px; letter-spacing: 2px; color: var(--b-ink);
  white-space: nowrap;
}
.brand-logo .wordmark .slash { color: var(--b-muted); margin: 0 4px; font-weight: 600; }
.brand-logo img { height: 22px; width: auto; display: block; }
.brand-divider { width: 1px; height: 26px; background: var(--b-line); flex-shrink: 0; }
.brand-stack { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-size: 14px; font-weight: 500; line-height: 1.2; color: var(--b-ink); }
.brand-sub {
  font-size: 11.5px; color: var(--b-muted); line-height: 1.3;
  font-family: var(--b-font-meta); white-space: nowrap;
}
.topbar-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.sync-btn {
  font-size: 12px; padding: 7px 12px; min-height: 36px;
  background: var(--b-surface); color: var(--b-ink);
  border: 0.5px solid var(--b-line); border-radius: var(--r-sm); cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px; font-weight: 500; white-space: nowrap;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.sync-btn:hover { background: var(--b-paper); border-color: var(--b-muted); }
.sync-btn .ic { width: 15px; height: 15px; }

.tenant-badge {
  font-size: 12px; padding: 5px 11px; border-radius: var(--r-sm);
  background: var(--b-accent-soft); color: var(--b-accent-ink);
  font-family: var(--b-font-meta); white-space: nowrap;
}
.tenant-badge.dryrun { background: var(--c-amber-soft); color: var(--c-amber); }
.tenant-badge.license { background: var(--b-surface); color: var(--b-ink); border: 1px solid var(--b-line); }
.status-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; padding: 5px 11px; border-radius: var(--r-sm);
  background: var(--c-green-soft); color: var(--c-green); font-weight: 500;
  font-family: var(--b-font-meta);
}
.status-live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-green); }

/* overflow menu trigger (mobile) */
.topbar-overflow { display: none; }

/* ════════════════════════════════════ tab-nav ════════════════════════════ */
.tab-nav {
  display: flex; gap: 4px; border-bottom: 1px solid var(--b-line); margin-bottom: 24px;
}
.tab-btn {
  padding: 10px 18px; font-size: 14px; font-weight: 500; color: var(--b-muted);
  background: transparent; border: none; border-bottom: 2px solid transparent;
  margin-bottom: -1px; cursor: pointer; white-space: nowrap; min-height: var(--touch);
  transition: color var(--dur) var(--ease);
}
.tab-btn:hover { color: var(--b-ink); }
.tab-btn.active { color: var(--b-ink); border-bottom-color: var(--b-ink); }

.tab-content { display: none; }
.tab-content.active { display: block; }

/* ════════════════════════════════ master–detail ══════════════════════════ */
.layout {
  display: grid; grid-template-columns: 380px 1fr; gap: 24px; min-height: 600px;
  position: relative;
}
.list-panel {
  background: var(--b-surface); border: 0.5px solid var(--b-line);
  border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column;
  align-self: start;
}
.list-header {
  padding: 14px 16px; border-bottom: 0.5px solid var(--b-line);
  display: flex; justify-content: space-between; align-items: center;
}
.list-header h2 { font-size: 14px; font-weight: 500; white-space: nowrap; }
.list-meta {
  padding: 8px 16px; font-size: 11px; color: var(--b-muted);
  border-bottom: 0.5px solid var(--b-line);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--b-font-meta);
}
.list-meta a { color: var(--b-accent); text-decoration: none; cursor: pointer; }
.list-meta span, .list-meta a { white-space: nowrap; }
.list-meta a:hover { text-decoration: underline; }
.search-box { padding: 12px 16px; border-bottom: 0.5px solid var(--b-line); }
.search-box input {
  width: 100%; padding: 9px 12px; border: 0.5px solid var(--b-line);
  border-radius: var(--r-sm); font-size: 13px; outline: none; font-family: inherit;
  background: var(--b-surface); color: var(--b-ink);
}
.search-box input:focus { border-color: var(--b-accent); box-shadow: 0 0 0 3px var(--b-focus); }
.list-items { overflow-y: auto; max-height: 640px; }

.list-item {
  padding: 12px 16px; border-bottom: 0.5px solid var(--b-line-soft); cursor: pointer;
  display: flex; align-items: center; gap: 11px; min-height: var(--touch);
  transition: background var(--dur) var(--ease);
}
.list-item:hover { background: var(--b-paper); }
.list-item.active { background: var(--b-accent-soft); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--b-avatar-bg); color: var(--b-avatar-fg);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 500; flex-shrink: 0;
}
.avatar.lg { width: 46px; height: 46px; font-size: 15px; }
.item-info { flex: 1; min-width: 0; }
.item-name { display: block; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-meta {
  display: block; font-size: 11px; color: var(--b-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-family: var(--b-font-meta);
}
.item-chevron { display: none; color: var(--b-muted); flex-shrink: 0; }
svg.item-chevron { display: none; }   /* beat the svg.ic floor on desktop */

/* ════════════════════════════════ detail panel ═══════════════════════════ */
.detail-panel {
  background: var(--b-surface); border: 0.5px solid var(--b-line);
  border-radius: var(--r-md); padding: 22px 26px; min-width: 0;
}
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 480px; color: var(--b-muted); font-size: 14px; gap: 12px; text-align: center;
}
.empty-state .ic { width: 40px; height: 40px; opacity: 0.4; }

.detail-back { display: none; }   /* mobile only */

.detail-head {
  display: flex; align-items: flex-start; gap: 14px;
  padding-bottom: 18px; border-bottom: 0.5px solid var(--b-line); margin-bottom: 20px;
}
.detail-id { min-width: 0; flex: 1; }
.detail-name { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.detail-sub {
  font-size: 13px; color: var(--b-muted); margin-top: 3px; font-family: var(--b-font-meta);
  word-break: break-word;
}
.detail-contact { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 9px; font-size: 12px; color: #444441; }
.detail-contact > span { display: inline-flex; align-items: center; gap: 6px; }
.detail-contact .ic { width: 14px; height: 14px; opacity: 0.5; }
.detail-contact .empty { color: #b8b6ad; font-style: italic; }
.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.section { margin-bottom: 24px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.section-title { font-size: 14px; font-weight: 500; white-space: nowrap; }
.section-title .count { color: var(--b-muted); font-weight: 400; }
.control-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* select / inline controls */
select.inline, .btn {
  font-family: inherit; font-size: 13px; padding: 7px 12px; min-height: 36px;
  background: var(--b-surface); border: 0.5px solid var(--b-line);
  border-radius: var(--r-sm); cursor: pointer; color: var(--b-ink);
}
.btn { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; white-space: nowrap; transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.btn:hover { background: var(--b-paper); }
.btn.primary { background: var(--b-ink); color: var(--b-surface); border-color: var(--b-ink); }
.btn.primary:hover { background: #000; }
.btn.danger { color: var(--c-red); border-color: #F7C1C1; }
.btn.danger:hover { background: var(--c-red-soft); }
.btn.small { font-size: 12px; padding: 5px 10px; min-height: 32px; }
.btn .ic { width: 15px; height: 15px; }

/* ════════════════════════════════ data table ═════════════════════════════ */
.data-wrap { /* desktop: plain table; mobile: cards (see responsive) */ }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  text-align: left; font-weight: 500; font-size: 11px; color: var(--b-muted);
  text-transform: uppercase; letter-spacing: 0.4px; padding: 8px 6px;
  border-bottom: 0.5px solid var(--b-line); font-family: var(--b-font-meta);
}
.data-table td { padding: 11px 6px; border-bottom: 0.5px solid var(--b-line-soft); vertical-align: middle; }
.data-table td .cal-name { font-weight: 500; }
.data-table .col-label { display: none; }   /* shown in mobile card mode */

.source-tag {
  display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: var(--r-sm);
  background: var(--b-line-soft); color: #444441; font-family: var(--b-font-meta);
}
.source-tag.direct { background: var(--c-blue-soft); color: var(--c-blue-ink); }
.source-tag.group  { background: var(--c-green-soft); color: var(--c-green); }
.source-tag.both   { background: var(--c-amber-soft); color: var(--c-amber); font-weight: 500; }
.source-tag.owner  { background: var(--c-purple-soft); color: var(--c-purple); }

.status-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; padding: 2px 8px; border-radius: var(--r-sm); font-family: var(--b-font-meta);
}
.status-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.9; }
.status-pill.completed { background: var(--c-green-soft); color: var(--c-green); }
.status-pill.offboarded { background: var(--b-line-soft); color: var(--b-muted); }
.status-pill.draft { background: var(--c-blue-soft); color: var(--c-blue-ink); }
.status-pill.deleted { background: var(--c-red-soft); color: var(--c-red); }

/* ════════════════════════════ validation banner ══════════════════════════ */
.validation-banner {
  padding: 12px 14px; border-radius: var(--r-sm); font-size: 13px; line-height: 1.5;
  display: flex; gap: 9px; align-items: flex-start; margin-bottom: 12px;
}
.validation-banner .ic { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.validation-banner.consistent { background: var(--c-green-soft); color: var(--c-green); border-left: 3px solid var(--c-green); }
.validation-banner.warning { background: var(--c-amber-soft); color: var(--c-amber); border-left: 3px solid #f59e0b; }
.validation-banner.error { background: var(--c-red-soft); color: var(--c-red); border-left: 3px solid #dc2626; }
.validation-banner.neutral { background: var(--b-line-soft); color: #4b5563; border-left: 3px solid #9ca3af; }
.validation-detail { font-size: 12px; color: #444441; display: grid; grid-template-columns: 130px 1fr; gap: 4px 8px; }
.validation-detail .label { color: var(--b-muted); }
.validation-detail .value { font-family: var(--font-mono); word-break: break-word; }
.validation-detail .value.empty { color: #b8b6ad; font-style: italic; }

/* ════════════════════════════════ matrix (desktop) ═══════════════════════ */
.matrix-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 8px; flex-wrap: wrap; }
.matrix-head h2 { font-size: 18px; font-weight: 500; }
.matrix-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 16px; }
.matrix-hint { font-size: 13px; color: var(--b-muted); margin: 0 0 16px; max-width: 760px; }

.matrix-container {
  background: var(--b-surface); border: 0.5px solid var(--b-line);
  border-radius: var(--r-md); overflow: auto; max-height: 72vh;
}
.matrix-table { border-collapse: collapse; width: 100%; font-size: 13px; }
.matrix-table th, .matrix-table td { border: 0.5px solid var(--b-line-soft); padding: 0; text-align: center; }
.matrix-table thead th {
  position: sticky; top: 0; z-index: 10; background: var(--b-paper);
  padding: 10px 12px; font-weight: 500; font-size: 12px; min-width: 92px;
}
.matrix-table thead th .cat-name { display: block; color: var(--b-ink); }
.matrix-table thead th .cat-usage { display: block; font-size: 10px; color: var(--b-muted); margin-top: 2px; font-family: var(--b-font-meta); }
.matrix-table thead th.role-header,
.matrix-table tbody td.role-cell {
  position: sticky; left: 0; z-index: 5; background: var(--b-surface);
  text-align: left; padding: 11px 14px; min-width: 184px; border-right: 1px solid var(--b-line);
}
.matrix-table thead th.role-header { background: var(--b-paper); z-index: 15; }
.matrix-table thead th.role-header .axis { display: block; font-size: 11px; font-weight: 400; color: var(--b-muted); font-family: var(--b-font-meta); }
.role-name { display: block; font-weight: 500; color: var(--b-accent-ink); }
.role-email { display: block; font-size: 11px; color: var(--b-muted); margin-top: 2px; font-family: var(--font-mono); }

.matrix-cell { width: 56px; height: 46px; cursor: pointer; transition: background 0.12s var(--ease); }
.matrix-cell:hover { background: var(--b-paper); }
.matrix-cell.on { background: var(--c-green-soft); }
.matrix-cell.on:hover { background: #cdeede; }
.matrix-cell .check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; background: var(--c-green); color: #fff;
}
.matrix-cell .check .ic { width: 14px; height: 14px; }

.matrix-table tbody tr.inactive td.role-cell { background: var(--b-paper); }
.matrix-table tbody tr.inactive .role-name { color: #9a9890; font-style: italic; }
.matrix-table tbody tr.inactive .role-email { color: #b3b1a7; }
.matrix-table tbody tr.inactive td.matrix-cell { background: var(--b-paper); cursor: default; }
.matrix-table tbody tr.inactive td.matrix-cell:hover { background: var(--b-paper); }

/* toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(8px);
  padding: 11px 18px; background: var(--b-ink); color: var(--b-surface);
  border-radius: var(--r-md); font-size: 13px; opacity: 0; transition: opacity var(--dur), transform var(--dur);
  pointer-events: none; z-index: 300; box-shadow: var(--shadow-pop);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success .tdot { color: #5fe0b0; }

/* ── Modal (overlay + centreret dialog) — confirm/offboard/onboard-flow (fase 3) ──
   Tilføjet da frontend-writes introducerede rigtige modaler; design-prototypen havde
   kun toasts. Bruger design-tokens så det matcher papir-udtrykket + per-tenant-tema. */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(28, 28, 28, 0.38);
  animation: pw-modal-fade var(--dur) var(--ease);
}
.modal {
  display: flex; flex-direction: column; overflow: hidden;
  width: 100%; max-width: 460px; max-height: calc(100vh - 48px);
  background: var(--b-surface); color: var(--b-ink);
  border: 1px solid var(--b-line); border-radius: var(--r-lg); box-shadow: var(--shadow-pop);
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 18px; border-bottom: 1px solid var(--b-line-soft);
}
.modal-title { font-weight: 600; font-size: 15px; }
.modal-close {
  background: none; border: none; cursor: pointer; font-size: 22px; line-height: 1;
  color: var(--b-muted); padding: 0 2px;
}
.modal-close:hover { color: var(--b-ink); }
.modal-body { padding: 18px; overflow-y: auto; }
.modal-footer {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 13px 18px; border-top: 1px solid var(--b-line-soft);
}
.modal-body input[type="text"], .modal-body input[type="email"], .modal-body select {
  display: block; width: 100%; min-height: 38px; padding: 9px 11px; box-sizing: border-box; margin-top: 5px;
  border: 1px solid var(--b-line); border-radius: var(--r-sm); outline: none;
  font-size: 13px; background: var(--b-paper); color: var(--b-ink); font-family: inherit; cursor: pointer;
}
.modal-body input { cursor: text; }
.modal-body textarea {
  width: 100%; box-sizing: border-box; margin-top: 5px; padding: 9px 11px; min-height: 120px; resize: vertical;
  border: 1px solid var(--b-line); border-radius: var(--r-sm); outline: none;
  font-size: 13px; line-height: 1.5; background: var(--b-paper); color: var(--b-ink); font-family: inherit;
}
.modal-body textarea:focus { border-color: var(--b-accent); background: var(--b-surface); box-shadow: 0 0 0 3px var(--b-focus); }
.modal-body input::placeholder { color: var(--b-muted); }
.modal-body input:focus, .modal-body select:focus { border-color: var(--b-accent); background: var(--b-surface); box-shadow: 0 0 0 3px var(--b-focus); }
.modal-body .pw-detail-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--b-line-soft); font-size: 13px; }
.modal-body .pw-detail-row .role-chip-x:hover { color: var(--c-red); }
@keyframes pw-modal-fade { from { opacity: 0 } to { opacity: 1 } }

/* ── Login-gate (fase 4b: Google-OAuth) — fuldskærms themed kort foran appen ── */
.login-gate {
  position: fixed; inset: 0; z-index: 400;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: var(--b-paper); color: var(--b-ink);
}
.login-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  width: 100%; max-width: 360px; padding: 36px 28px;
  background: var(--b-surface); border: 1px solid var(--b-line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-pop);
}
.login-title { font-size: 17px; font-weight: 600; margin-top: 18px; }
.login-sub { font-size: 12px; color: var(--b-muted); font-family: var(--b-font-meta); margin-top: 4px; }
.login-gsi { margin-top: 22px; display: flex; justify-content: center; min-height: 40px; }
.login-hint { font-size: 12px; color: var(--b-muted); margin-top: 14px; }
.login-err { font-size: 12px; color: var(--c-red); margin-top: 12px; min-height: 16px; }

/* Audit: kalender-adgang ud over rollen ("ekstra") — flag-tag + svag række-markering. */
.tag-extra { font-size: 10px; padding: 1px 7px; border-radius: var(--r-pill); background: var(--c-amber-soft); color: var(--c-amber); white-space: nowrap; }
.ph-chip { font-family: var(--font-mono, monospace); font-size: 11px; padding: 1px 6px; margin: 1px 0; border-radius: var(--r-sm); border: 1px solid var(--b-line); background: var(--b-surface); color: var(--b-accent-ink); cursor: pointer; }
.ph-chip:hover { background: var(--b-accent-soft); border-color: var(--b-accent); }
.data-table tr.extra-access td { background: var(--c-amber-soft); }
.data-table tr.extra-access td:first-child { box-shadow: inset 3px 0 0 var(--c-amber); }

/* Tenant-bred validerings-oversigt — klikbare tæl-chips over medarbejder-listen. */
.val-summary { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0 10px; }
.val-summary:empty { display: none; }
.val-chip { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 12px; padding: 4px 10px; border-radius: var(--r-pill); border: 1px solid transparent; cursor: pointer; background: var(--b-line-soft); color: #4b5563; transition: filter .12s, box-shadow .12s; }
.val-chip .n { font-weight: 600; }
.val-chip:hover { filter: brightness(0.97); }
.val-chip.active { box-shadow: 0 0 0 2px var(--b-surface), 0 0 0 3px currentColor; }
.val-chip.consistent { background: var(--c-green-soft); color: var(--c-green); }
.val-chip.warning { background: var(--c-amber-soft); color: var(--c-amber); }
.val-chip.error { background: var(--c-red-soft); color: var(--c-red); }
.val-chip.neutral { background: var(--b-line-soft); color: #4b5563; }
