/* =============================================================================
   components.css | VerifAIer Enterprise Dashboard UI v1 · Phase 2
   Reusable component library. Depends on the design tokens declared in
   dashboard.css (load dashboard.css first). No external requests, no CDN.
   Production-quality, executive/enterprise polish, responsive + accessible.
   ============================================================================= */

/* ── Layout utilities ──────────────────────────────────────────────────────── */
.vd-flex { display: flex; }
.vd-flex-col { display: flex; flex-direction: column; }
.vd-inline-flex { display: inline-flex; }
.vd-items-center { align-items: center; }
.vd-items-start { align-items: flex-start; }
.vd-items-end { align-items: flex-end; }
.vd-justify-between { justify-content: space-between; }
.vd-justify-center { justify-content: center; }
.vd-justify-end { justify-content: flex-end; }
.vd-wrap { flex-wrap: wrap; }
.vd-flex-1 { flex: 1 1 auto; min-width: 0; }
.vd-gap-1 { gap: var(--s-1); }
.vd-gap-2 { gap: var(--s-2); }
.vd-gap-3 { gap: var(--s-3); }
.vd-gap-4 { gap: var(--s-4); }
.vd-gap-5 { gap: var(--s-5); }
.vd-gap-6 { gap: var(--s-6); }
.vd-grow { flex-grow: 1; }
.vd-mt-2 { margin-top: var(--s-2); }
.vd-mt-3 { margin-top: var(--s-3); }
.vd-mt-4 { margin-top: var(--s-4); }
.vd-mb-2 { margin-bottom: var(--s-2); }
.vd-mb-4 { margin-bottom: var(--s-4); }
.vd-mb-5 { margin-bottom: var(--s-5); }
.vd-w-full { width: 100%; }
.vd-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vd-hidden { display: none !important; }
.vd-text-muted { color: var(--text-muted); }
.vd-text-secondary { color: var(--text-secondary); }
.vd-text-sm { font-size: var(--text-sm); }
.vd-text-xs { font-size: var(--text-xs); }
.vd-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.vd-grid--4 { grid-template-columns: repeat(4, 1fr); }
.vd-grid--auto { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* ── Section header ────────────────────────────────────────────────────────── */
.vd-section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-4);
}
.vd-section-header__title { font-size: var(--text-lg); font-weight: var(--fw-semibold); color: var(--text-primary); letter-spacing: -0.01em; }
.vd-section-header__desc { font-size: var(--text-sm); color: var(--text-muted); margin-top: 2px; }
.vd-section-header__actions { display: flex; gap: var(--s-2); flex-wrap: wrap; }

/* ── Toolbar ───────────────────────────────────────────────────────────────── */
.vd-toolbar {
  display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap;
  padding: var(--s-3) var(--s-4); background: var(--bg-surface);
  border: 1px solid var(--border-default); border-radius: var(--r-lg);
  margin-bottom: var(--s-5);
}
.vd-toolbar__group { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.vd-toolbar__spacer { flex: 1 1 auto; }

/* ── Buttons (extends .vd-btn from dashboard.css) ──────────────────────────── */
.vd-btn { line-height: 1; white-space: nowrap; user-select: none; }
.vd-btn:disabled, .vd-btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }
.vd-btn--lg { padding: var(--s-3) var(--s-5); font-size: var(--text-base); }
.vd-btn--danger { background: var(--color-red); color: #fff; }
.vd-btn--danger:hover { opacity: 0.9; color: #fff; }
.vd-btn--subtle { background: var(--bg-elevated); color: var(--text-secondary); border-color: var(--border-default); }
.vd-btn--subtle:hover { background: var(--bg-overlay); color: var(--text-primary); }
.vd-btn__icon { width: 16px; height: 16px; display: inline-flex; }
.vd-btn__icon svg { width: 16px; height: 16px; }
.vd-iconbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--r-md); color: var(--text-secondary);
  border: 1px solid transparent; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.vd-iconbtn:hover { background: var(--bg-elevated); color: var(--text-primary); }
.vd-iconbtn svg { width: 18px; height: 18px; }
.vd-btn-group { display: inline-flex; border: 1px solid var(--border-default); border-radius: var(--r-md); overflow: hidden; }
.vd-btn-group > button {
  padding: var(--s-2) var(--s-3); font-size: var(--text-sm); color: var(--text-secondary);
  background: var(--bg-surface); border-right: 1px solid var(--border-default); transition: background var(--t-fast), color var(--t-fast);
}
.vd-btn-group > button:last-child { border-right: none; }
.vd-btn-group > button:hover { background: var(--bg-elevated); color: var(--text-primary); }
.vd-btn-group > button[aria-pressed="true"] { background: var(--color-green-bg); color: var(--color-green); }

/* ── Forms ─────────────────────────────────────────────────────────────────── */
.vd-field { display: flex; flex-direction: column; gap: var(--s-2); margin-bottom: var(--s-4); }
.vd-label { font-size: var(--text-sm); font-weight: var(--fw-medium); color: var(--text-secondary); }
.vd-label__req { color: var(--color-red); margin-left: 2px; }
.vd-input, .vd-select, .vd-textarea {
  width: 100%; background: var(--bg-input); color: var(--text-primary);
  border: 1px solid var(--border-default); border-radius: var(--r-md);
  padding: var(--s-2) var(--s-3); font-size: var(--text-sm); transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.vd-input::placeholder, .vd-textarea::placeholder { color: var(--text-muted); }
.vd-input:focus, .vd-select:focus, .vd-textarea:focus {
  outline: none; border-color: var(--border-green); box-shadow: 0 0 0 3px var(--color-green-bg);
}
.vd-textarea { min-height: 92px; resize: vertical; line-height: 1.5; }
.vd-select {
  appearance: none; -webkit-appearance: none; padding-right: var(--s-8);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238494a7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right var(--s-3) center;
}
.vd-help { font-size: var(--text-xs); color: var(--text-muted); }
.vd-field--error .vd-input, .vd-field--error .vd-select, .vd-field--error .vd-textarea { border-color: var(--color-red); }
.vd-field__error { font-size: var(--text-xs); color: var(--color-red); }

/* Checkbox / radio */
.vd-check { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--text-sm); color: var(--text-secondary); cursor: pointer; }
.vd-check input { width: 16px; height: 16px; accent-color: var(--color-green); cursor: pointer; }

/* Switch */
.vd-switch { display: inline-flex; align-items: center; gap: var(--s-3); font-size: var(--text-sm); color: var(--text-secondary); cursor: pointer; }
.vd-switch__track {
  position: relative; width: 40px; height: 22px; border-radius: var(--r-full);
  background: var(--bg-overlay); border: 1px solid var(--border-default); transition: background var(--t-base);
  flex-shrink: 0;
}
.vd-switch__track::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--text-secondary); transition: transform var(--t-base), background var(--t-base);
}
.vd-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.vd-switch input:checked + .vd-switch__track { background: var(--color-green-bg); border-color: var(--border-green); }
.vd-switch input:checked + .vd-switch__track::after { transform: translateX(18px); background: var(--color-green); }
.vd-switch input:focus-visible + .vd-switch__track { outline: 2px solid var(--color-green); outline-offset: 2px; }

/* ── Search bar (standalone) ───────────────────────────────────────────────── */
.vd-searchbar {
  display: flex; align-items: center; gap: var(--s-2); background: var(--bg-input);
  border: 1px solid var(--border-default); border-radius: var(--r-md);
  padding: var(--s-2) var(--s-3); min-width: 200px; color: var(--text-muted);
}
.vd-searchbar:focus-within { border-color: var(--border-green); box-shadow: 0 0 0 3px var(--color-green-bg); }
.vd-searchbar svg { width: 15px; height: 15px; flex-shrink: 0; }
.vd-searchbar input { flex: 1; min-width: 0; background: none; border: none; color: var(--text-primary); font-size: var(--text-sm); }
.vd-searchbar input::placeholder { color: var(--text-muted); }
.vd-searchbar input:focus { outline: none; }

/* ── Filter chips ──────────────────────────────────────────────────────────── */
.vd-chips { display: inline-flex; gap: var(--s-2); flex-wrap: wrap; }
.vd-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-xs);
  font-weight: var(--fw-medium); color: var(--text-secondary); background: var(--bg-elevated);
  border: 1px solid var(--border-default); border-radius: var(--r-full);
  padding: var(--s-1) var(--s-3); transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.vd-chip:hover { border-color: var(--border-strong); color: var(--text-primary); }
.vd-chip[aria-pressed="true"] { background: var(--color-green-bg); border-color: var(--border-green); color: var(--color-green); }
.vd-chip__count { font-family: var(--font-mono); opacity: 0.7; }

/* ── Pagination ────────────────────────────────────────────────────────────── */
.vd-pagination { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.vd-pagination__info { font-size: var(--text-xs); color: var(--text-muted); margin-right: auto; }
.vd-page {
  min-width: 32px; height: 32px; padding: 0 var(--s-2); display: inline-flex;
  align-items: center; justify-content: center; border-radius: var(--r-md);
  font-size: var(--text-sm); color: var(--text-secondary); border: 1px solid var(--border-default);
  background: var(--bg-surface); transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.vd-page:hover:not(:disabled):not([aria-current="page"]) { background: var(--bg-elevated); color: var(--text-primary); }
.vd-page[aria-current="page"] { background: var(--color-green); color: var(--text-inverse); border-color: var(--color-green); font-weight: var(--fw-semibold); }
.vd-page:disabled { opacity: 0.4; pointer-events: none; }
.vd-page svg { width: 16px; height: 16px; }

/* ── Domain badges (extend .vd-badge) ──────────────────────────────────────── */
.vd-badge--sm { font-size: 9px; padding: 2px 7px; }
.vd-badge--lg { font-size: var(--text-xs); padding: 5px 11px; }
.vd-badge--solid { border-color: transparent; }
.vd-badge--green.vd-badge--solid  { background: var(--color-green); color: var(--text-inverse); }
.vd-badge--green.vd-badge--solid::before,
.vd-badge--yellow.vd-badge--solid::before,
.vd-badge--red.vd-badge--solid::before,
.vd-badge--blue.vd-badge--solid::before { background: currentColor; }
.vd-badge--yellow.vd-badge--solid { background: var(--color-yellow); color: var(--text-inverse); }
.vd-badge--red.vd-badge--solid    { background: var(--color-red); color: #fff; }
.vd-badge--blue.vd-badge--solid   { background: var(--color-blue); color: var(--text-inverse); }
.vd-badge--purple { color: var(--color-purple); }

/* Semantic level → color mappings.
   Trust:      trusted→green acceptable→blue caution→yellow untrusted→red unknown→muted
   Compliance: complete/satisfied→green partial→yellow incomplete/not_satisfied→red unknown→muted
   Risk:       low→green medium→yellow high→red critical→red unknown→muted
   Quality:    excellent→green good→blue fair→yellow poor→red unknown→muted */
.vd-badge--trust-trusted, .vd-badge--compliance-complete, .vd-badge--compliance-satisfied,
.vd-badge--risk-low, .vd-badge--quality-excellent { color: var(--color-green); }
.vd-badge--trust-acceptable, .vd-badge--quality-good { color: var(--color-blue); }
.vd-badge--trust-caution, .vd-badge--compliance-partial, .vd-badge--risk-medium,
.vd-badge--quality-fair { color: var(--color-yellow); }
.vd-badge--trust-untrusted, .vd-badge--compliance-incomplete, .vd-badge--compliance-not_satisfied,
.vd-badge--risk-high, .vd-badge--risk-critical, .vd-badge--quality-poor { color: var(--color-red); }
.vd-badge--trust-unknown, .vd-badge--compliance-unknown, .vd-badge--risk-unknown,
.vd-badge--quality-unknown { color: var(--text-muted); }

/* ── Meter (score bar) ─────────────────────────────────────────────────────── */
.vd-meter { height: 8px; background: var(--bg-overlay); border-radius: var(--r-full); overflow: hidden; }
.vd-meter__fill { height: 100%; border-radius: var(--r-full); background: var(--color-green); transition: width var(--t-base); }
.vd-meter__fill--yellow { background: var(--color-yellow); }
.vd-meter__fill--red { background: var(--color-red); }
.vd-meter__fill--blue { background: var(--color-blue); }
.vd-meter__fill--muted { background: var(--text-muted); }

/* ── Metric widget (KPI + trend) ───────────────────────────────────────────── */
.vd-metric {
  background: var(--bg-surface); border: 1px solid var(--border-default);
  border-radius: var(--r-xl); padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3);
}
.vd-metric__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); }
.vd-metric__label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.vd-metric__icon { width: 32px; height: 32px; border-radius: var(--r-md); display: inline-flex; align-items: center; justify-content: center; background: var(--color-green-bg); color: var(--color-green); }
.vd-metric__icon svg { width: 18px; height: 18px; }
.vd-metric__value { font-size: var(--text-3xl); font-weight: var(--fw-bold); color: var(--text-primary); line-height: 1; font-variant-numeric: tabular-nums; }
.vd-metric__foot { display: flex; align-items: center; gap: var(--s-2); font-size: var(--text-xs); color: var(--text-muted); }
.vd-metric__trend { display: inline-flex; align-items: center; gap: 3px; font-weight: var(--fw-semibold); }
.vd-metric__trend--up { color: var(--color-green); }
.vd-metric__trend--down { color: var(--color-red); }
.vd-metric__trend--flat { color: var(--text-muted); }
.vd-metric__trend svg { width: 13px; height: 13px; }

/* ── Data card additions ───────────────────────────────────────────────────── */
.vd-card--interactive { transition: border-color var(--t-fast), transform var(--t-fast); }
.vd-card--interactive:hover { border-color: var(--border-green); transform: translateY(-1px); }
.vd-card__footer { padding: var(--s-3) var(--s-5); border-top: 1px solid var(--border-subtle); display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); }
.vd-card__actions { display: flex; align-items: center; gap: var(--s-2); }

/* ── Tables (extend dashboard.css) ─────────────────────────────────────────── */
.vd-table--compact th, .vd-table--compact td { padding: var(--s-2) var(--s-3); }
.vd-table thead.vd-thead-sticky th { position: sticky; top: 0; background: var(--bg-surface); z-index: 1; }
.vd-th-sort { cursor: pointer; user-select: none; }
.vd-th-sort:hover { color: var(--text-secondary); }
.vd-th-sort::after { content: '↕'; margin-left: 6px; opacity: 0.4; font-size: 10px; }
.vd-th-sort[aria-sort="ascending"]::after { content: '↑'; opacity: 1; color: var(--color-green); }
.vd-th-sort[aria-sort="descending"]::after { content: '↓'; opacity: 1; color: var(--color-green); }
.vd-td-num { text-align: right; font-variant-numeric: tabular-nums; }
.vd-table tbody tr.vd-row-link { cursor: pointer; }

/* ── Tabs ──────────────────────────────────────────────────────────────────── */
.vd-tabs { display: flex; gap: var(--s-1); border-bottom: 1px solid var(--border-default); margin-bottom: var(--s-5); overflow-x: auto; }
.vd-tab {
  padding: var(--s-3) var(--s-4); font-size: var(--text-sm); font-weight: var(--fw-medium);
  color: var(--text-secondary); border-bottom: 2px solid transparent; margin-bottom: -1px;
  white-space: nowrap; transition: color var(--t-fast), border-color var(--t-fast);
}
.vd-tab:hover { color: var(--text-primary); }
.vd-tab[aria-selected="true"] { color: var(--color-green); border-bottom-color: var(--color-green); }
.vd-tabpanel[hidden] { display: none; }

/* ── States (empty / error / loading) ──────────────────────────────────────── */
.vd-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: var(--s-3); padding: var(--s-10) var(--s-5); color: var(--text-muted);
}
.vd-state__icon { width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-lg); background: var(--bg-elevated); color: var(--text-muted); }
.vd-state__icon svg { width: 24px; height: 24px; }
.vd-state__title { font-size: var(--text-base); font-weight: var(--fw-semibold); color: var(--text-secondary); }
.vd-state__text { font-size: var(--text-sm); color: var(--text-muted); max-width: 46ch; line-height: 1.55; }
.vd-state__actions { display: flex; gap: var(--s-2); margin-top: var(--s-2); flex-wrap: wrap; justify-content: center; }
.vd-state--error .vd-state__icon { background: var(--color-red-bg); color: var(--color-red); }
.vd-state--error .vd-state__title { color: var(--color-red); }

/* ── Loading skeletons ─────────────────────────────────────────────────────── */
.vd-skel { background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-overlay) 37%, var(--bg-elevated) 63%); background-size: 400% 100%; border-radius: var(--r-sm); animation: vd-shimmer 1.4s ease infinite; }
.vd-skel--text { height: 12px; margin-bottom: var(--s-3); }
.vd-skel--title { height: 18px; width: 45%; margin-bottom: var(--s-4); }
.vd-skel--circle { width: 40px; height: 40px; border-radius: 50%; }
.vd-skel--block { height: 88px; border-radius: var(--r-lg); }
.vd-skel--pill { height: 22px; width: 72px; border-radius: var(--r-full); }
.w-30 { width: 30%; } .w-50 { width: 50%; } .w-70 { width: 70%; } .w-90 { width: 90%; }
.vd-skel-row { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--border-subtle); }

/* ── Modal dialog ──────────────────────────────────────────────────────────── */
.vd-modal { position: fixed; inset: 0; z-index: 120; display: none; align-items: center; justify-content: center; padding: var(--s-5); }
.vd-modal.is-open { display: flex; }
.vd-modal__backdrop { position: absolute; inset: 0; background: rgba(4,6,10,0.72); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.vd-modal__dialog {
  position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - var(--s-10));
  overflow: auto; background: var(--bg-surface); border: 1px solid var(--border-strong);
  border-radius: var(--r-xl); box-shadow: var(--shadow-lg); animation: vd-pop var(--t-base);
}
@keyframes vd-pop { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
.vd-modal__header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); padding: var(--s-5); border-bottom: 1px solid var(--border-subtle); }
.vd-modal__title { font-size: var(--text-lg); font-weight: var(--fw-semibold); color: var(--text-primary); }
.vd-modal__desc { font-size: var(--text-sm); color: var(--text-muted); margin-top: 2px; }
.vd-modal__body { padding: var(--s-5); }
.vd-modal__footer { display: flex; align-items: center; justify-content: flex-end; gap: var(--s-2); padding: var(--s-4) var(--s-5); border-top: 1px solid var(--border-subtle); }

/* ── Drawer (right slide-over) ─────────────────────────────────────────────── */
.vd-drawer { position: fixed; inset: 0; z-index: 120; display: none; }
.vd-drawer.is-open { display: block; }
.vd-drawer__backdrop { position: absolute; inset: 0; background: rgba(4,6,10,0.6); }
.vd-drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(440px, 92vw);
  background: var(--bg-surface); border-left: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform var(--t-base);
}
.vd-drawer.is-open .vd-drawer__panel { transform: translateX(0); }
.vd-drawer__header { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-5); border-bottom: 1px solid var(--border-subtle); flex-shrink: 0; }
.vd-drawer__title { font-size: var(--text-lg); font-weight: var(--fw-semibold); color: var(--text-primary); }
.vd-drawer__body { padding: var(--s-5); overflow-y: auto; flex: 1; }

/* Dialog close button */
.vd-close { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-md); color: var(--text-muted); flex-shrink: 0; }
.vd-close:hover { background: var(--bg-elevated); color: var(--text-primary); }
.vd-close svg { width: 18px; height: 18px; }

/* ── Toast notifications ───────────────────────────────────────────────────── */
.vd-toasts { position: fixed; bottom: var(--s-5); right: var(--s-5); z-index: 200; display: flex; flex-direction: column; gap: var(--s-3); max-width: min(380px, 92vw); }
.vd-toast {
  display: flex; align-items: flex-start; gap: var(--s-3); padding: var(--s-3) var(--s-4);
  background: var(--bg-elevated); border: 1px solid var(--border-default);
  border-left: 3px solid var(--text-muted); border-radius: var(--r-md);
  box-shadow: var(--shadow-md); animation: vd-toast-in var(--t-base);
}
.vd-toast.is-leaving { animation: vd-toast-out 160ms ease forwards; }
@keyframes vd-toast-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@keyframes vd-toast-out { to { opacity: 0; transform: translateX(16px); } }
.vd-toast--success { border-left-color: var(--color-green); }
.vd-toast--error { border-left-color: var(--color-red); }
.vd-toast--warning { border-left-color: var(--color-yellow); }
.vd-toast--info { border-left-color: var(--color-blue); }
.vd-toast__icon { flex-shrink: 0; margin-top: 1px; }
.vd-toast__icon svg { width: 18px; height: 18px; }
.vd-toast--success .vd-toast__icon { color: var(--color-green); }
.vd-toast--error .vd-toast__icon { color: var(--color-red); }
.vd-toast--warning .vd-toast__icon { color: var(--color-yellow); }
.vd-toast--info .vd-toast__icon { color: var(--color-blue); }
.vd-toast__body { flex: 1; min-width: 0; }
.vd-toast__title { font-size: var(--text-sm); font-weight: var(--fw-semibold); color: var(--text-primary); }
.vd-toast__msg { font-size: var(--text-xs); color: var(--text-secondary); margin-top: 2px; }

/* ── Definition / key-value list ───────────────────────────────────────────── */
.vd-kv { display: grid; grid-template-columns: max-content 1fr; gap: var(--s-2) var(--s-4); }
.vd-kv dt { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); align-self: center; }
.vd-kv dd { font-size: var(--text-sm); color: var(--text-primary); }

/* ── Responsive ────────────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .vd-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .vd-grid--4 { grid-template-columns: 1fr; }
  .vd-toolbar { align-items: stretch; }
  .vd-searchbar { min-width: 0; width: 100%; }
  .vd-toasts { left: var(--s-4); right: var(--s-4); bottom: var(--s-4); max-width: none; }
  .vd-kv { grid-template-columns: 1fr; gap: var(--s-1) 0; }
  .vd-kv dd { margin-bottom: var(--s-3); }
}
