/* ============================================================================
   Agents console — chrome for the four-agent team.
   Design language ported from the Agami website (agami-website):
     brand #2B38FC · ink #1A1A1A/#444 · page #FBFCFE · glass-cards with
     brand-tinted borders + brand hover shadow · Inter Tight display · brand
     "ping" status dots. Hub chrome + home are styled here, plus a thin
     hub-token layer (KPI cards, headings, states) that deliberately restyles
     the mounted Context/Operations/Quality workspaces; those keep their
     admin/training *layout* but pick up the hub look.
   ========================================================================== */

:root {
    --color-brand: 43 56 252;          /* #2B38FC */
    --color-brand-dark: 11 87 208;     /* #0B57D0 */
    --color-brand-accent: 0 153 255;   /* #0099FF */
    --color-brand-soft: 210 219 241;   /* #D2DBF1 */
    --color-ink: 26 26 26;             /* #1A1A1A */
    --color-ink-base: 68 68 68;        /* #444444 */
    --color-ink-muted: 134 138 139;    /* #868A8B */
    --color-surface-page: 251 252 254; /* #FBFCFE */

    --font-display: 'Cal Sans', 'Inter Tight', 'Inter Tight Variable', 'Inter Variable', system-ui, sans-serif;
    --agents-shadow-card: 0 1px 2px rgba(16,24,40,.04), 0 4px 16px rgba(16,24,40,.06);
    --agents-shadow-hover: 0 4px 12px rgba(16,24,40,.06), 0 12px 32px rgba(43,56,252,.12);

    /* Re-point Bootstrap primary + links to the Agami brand across the console. */
    --bs-primary: #2B38FC;
    --bs-primary-rgb: 43,56,252;
    --bs-link-color: #2B38FC;
    --bs-link-color-rgb: 43,56,252;
    --bs-link-hover-color: #0B57D0;
}

body { background: rgb(var(--color-surface-page)); }
#admin-main .btn-primary { --bs-btn-bg: #2B38FC; --bs-btn-border-color: #2B38FC; --bs-btn-hover-bg: #0B57D0; --bs-btn-hover-border-color: #0B57D0; --bs-btn-active-bg: #0B57D0; }
#admin-main .btn-outline-primary { --bs-btn-color: #2B38FC; --bs-btn-border-color: #2B38FC; --bs-btn-hover-bg: #2B38FC; --bs-btn-hover-border-color: #2B38FC; }

/* ── Chrome ───────────────────────────────────────────────────────────────── */
.agents-navbar { border-bottom: 1px solid rgb(var(--color-brand) / .08); background: rgb(var(--color-surface-page)); }
.agents-navbar .admin-console-label { font-family: var(--font-display); letter-spacing: -.01em; }

.agents-trust {
    display: flex; align-items: baseline; gap: .4rem;
    padding: .25rem .75rem; border-radius: 999px;
    border: 1px solid rgb(var(--color-brand) / .18);
    background: rgb(var(--color-brand) / .06);
}
.agents-trust-val { font-weight: 700; font-size: 1rem; color: rgb(var(--color-brand-dark)); font-variant-numeric: tabular-nums; }
.agents-trust-label { font-size: .66rem; text-transform: uppercase; letter-spacing: .14em; color: rgb(var(--color-brand-dark) / .7); font-weight: 600; }

/* ── Agent rail (top-level nav) ───────────────────────────────────────────── */
.agent-rail { gap: .3rem; border-bottom: 1px solid var(--bs-border-color); padding-bottom: .6rem; align-items: center; }
.agent-rail .nav-link {
    border: 1px solid transparent; border-radius: 999px; padding: .42rem 1rem;
    font-weight: 600; font-size: .92rem; color: rgb(var(--color-ink-base));
    display: flex; align-items: center; gap: .4rem;
}
.agent-rail .nav-link:hover { color: rgb(var(--color-brand-dark)); background: rgb(var(--color-brand) / .06); }
.agent-rail .nav-link.active {
    color: rgb(var(--color-brand-dark));
    background: rgb(var(--color-brand) / .08);
    border-color: rgb(var(--color-brand) / .22);
}
.agent-rail .rail-glyph { font-size: 1rem; line-height: 1; }
.tc-tab-badge { margin-left: .35rem; border-radius: 999px; padding: .05rem .45rem; font-size: .7rem; font-weight: 700; }

.agents-views { padding-top: 1.4rem; }

/* ── Home: hero + brand glow + trust ring ─────────────────────────────────── */
.agents-hero { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.agents-hero::before {
    content: ""; position: absolute; top: -40px; left: 8%; width: 620px; height: 320px;
    background: rgb(var(--color-brand) / .06); filter: blur(80px); border-radius: 999px;
    pointer-events: none; z-index: 0;
}
.agents-hero > * { position: relative; z-index: 1; }
.agents-hero-title { font-family: var(--font-display); font-size: 2rem; font-weight: 700; letter-spacing: -.02em; color: rgb(var(--color-ink)); margin-bottom: .3rem; }
.agents-hero-sub { color: rgb(var(--color-ink-base)); margin-bottom: 0; max-width: 48ch; }
.agents-hero-trust { text-align: center; }
.trust-ring {
    width: 96px; height: 96px; border-radius: 50%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: #fff; border: 4px solid rgb(var(--color-brand)); margin: 0 auto;
    box-shadow: var(--agents-shadow-card);
}
.trust-ring.warn { border-color: #f59e0b; }
.trust-ring.bad  { border-color: #ef4444; }
.trust-ring-val { font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; line-height: 1; color: rgb(var(--color-ink)); font-variant-numeric: tabular-nums; }
.trust-ring-label { font-size: .64rem; text-transform: uppercase; letter-spacing: .14em; color: rgb(var(--color-ink-muted)); font-weight: 600; }
.trust-ring-cap { font-size: .72rem; color: rgb(var(--color-ink-muted)); margin-top: .45rem; }

/* ── Roster grid (glass-cards, brand-led) ─────────────────────────────────── */
.roster-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 991px) { .roster-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .roster-grid { grid-template-columns: 1fr; } }

.agent-card {
    text-align: left; background: #fff;
    border: 1px solid rgb(var(--color-brand) / .10);
    border-radius: 16px; padding: 1.15rem 1.15rem 1.1rem; cursor: pointer;
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
    box-shadow: var(--agents-shadow-card); position: relative;
    /* <button> vertically centers its content — when the grid stretches all
       cards to the tallest one, shorter cards' content floats mid-card.
       Explicit column flex keeps content top-aligned... */
    display: flex; flex-direction: column; align-items: stretch;
}
/* ...and the stat rows anchor to the card bottom so all four cards align. */
.agent-card .agent-metric,
.agent-card .agent-mini-stats { margin-top: auto; }
.agent-card .agent-role { margin-bottom: .85rem; }
.agent-card:hover { transform: translateY(-3px); box-shadow: var(--agents-shadow-hover); border-color: rgb(var(--color-brand) / .30); }

.agent-card-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: .65rem; }
.agent-glyph {
    font-size: 1.3rem; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 11px; background: rgb(var(--color-brand) / .09);
}

/* ── SVG line icons (paths ported from the Agami website) ─────────────────── */
.ag-ic { display: inline-block; vertical-align: middle; width: 1.25rem; height: 1.25rem; }
.agent-rail .rail-glyph { display: inline-flex; align-items: center; }
.agent-rail .rail-glyph .ag-ic { width: 16px; height: 16px; }
.agent-glyph { color: rgb(var(--color-brand)); }
.agent-glyph .ag-ic { width: 22px; height: 22px; }
.ap-glyph { display: inline-flex; align-items: center; color: rgb(var(--color-brand)); }
.ap-glyph .ag-ic { width: 22px; height: 22px; }
.agents-approval-row .ap-glyph .ag-ic { width: 18px; height: 18px; }
.agent-name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: rgb(var(--color-ink)); letter-spacing: -.01em; }
.agent-role { font-size: .8rem; color: rgb(var(--color-ink-base)); margin: .2rem 0 .85rem; min-height: 2.6em; line-height: 1.35; }
.agent-metric { display: flex; align-items: baseline; gap: .45rem; }
.agent-metric-val { font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; color: rgb(var(--color-ink)); font-variant-numeric: tabular-nums; }
.agent-metric-lbl { font-size: .72rem; color: rgb(var(--color-ink-muted)); }

.agent-status { display: inline-flex; align-items: center; gap: .4rem; font-size: .72rem; color: rgb(var(--color-ink-muted)); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--color-ink-muted)); display: inline-block; position: relative; }
.agent-status.ok    .status-dot { background: #16a34a; }
.agent-status.work  .status-dot { background: rgb(var(--color-brand)); }
.agent-status.need  .status-dot { background: #f59e0b; }
.agent-status.work  .status-dot::after,
.agent-status.need  .status-dot::after {
    content: ""; position: absolute; inset: -3px; border-radius: 50%;
    background: inherit; opacity: .45; animation: agents-ping 1.5s cubic-bezier(0,0,.2,1) infinite;
}
@keyframes agents-ping { 75%, 100% { transform: scale(2); opacity: 0; } }

.agent-pending {
    margin-top: .7rem; font-size: .76rem; font-weight: 600;
    color: rgb(var(--color-brand-dark));
    background: rgb(var(--color-brand) / .08);
    border-radius: 8px; padding: .32rem .6rem;
}

/* ── Home strips + approvals ──────────────────────────────────────────────── */
.agents-strip-card { border: 1px solid rgb(var(--color-brand) / .10); border-radius: 16px; box-shadow: var(--agents-shadow-card); }
.agents-strip-card .card-title { font-family: var(--font-display); color: rgb(var(--color-ink)); }
.agents-approval-row, .agents-activity-row { display: flex; align-items: center; gap: .6rem; padding: .55rem 0; border-bottom: 1px solid var(--bs-border-color); }
.agents-approval-row:last-child, .agents-activity-row:last-child { border-bottom: 0; }
.agents-approval-row .ap-glyph, .agents-activity-row .ac-glyph { font-size: 1.05rem; }
.agents-approval-row .ap-body { flex: 1; }
.agents-approval-row .ap-title { font-weight: 600; font-size: .85rem; color: rgb(var(--color-ink)); }
.agents-activity-row .ac-body { flex: 1; font-size: .82rem; }
.agents-activity-row .ac-meta { font-size: .74rem; color: rgb(var(--color-ink-muted)); }

.approvals-list { display: flex; flex-direction: column; gap: .8rem; }
.approval-card {
    display: flex; align-items: center; gap: 1rem; background: #fff;
    border: 1px solid rgb(var(--color-brand) / .12); border-left: 4px solid rgb(var(--color-brand));
    border-radius: 14px; padding: 1.05rem 1.15rem; box-shadow: var(--agents-shadow-card);
}
.approval-card .ap-glyph { font-size: 1.5rem; }
.approval-card .ap-body { flex: 1; }
.approval-card .ap-title { font-weight: 700; color: rgb(var(--color-ink)); }
.approval-card .ap-sub { font-size: .82rem; color: rgb(var(--color-ink-base)); }

/* ── Context view (context-first framing; same tokens as the rest of the hub) ─ */
.ctx-zone-title { font-family: var(--font-display); font-weight: 700; color: rgb(var(--color-ink)); letter-spacing: -.01em; }

.ctx-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.ctx-chip {
    border: 1px solid rgb(var(--color-brand) / .18); border-radius: 999px;
    background: rgb(var(--color-brand) / .05); color: rgb(var(--color-ink-base));
    font-size: .8rem; padding: .28rem .8rem; cursor: pointer;
    transition: background .14s ease, border-color .14s ease;
}
.ctx-chip:hover { background: rgb(var(--color-brand) / .10); border-color: rgb(var(--color-brand) / .35); color: rgb(var(--color-brand-dark)); }
.ctx-chip b { font-family: var(--font-display); font-weight: 700; color: rgb(var(--color-ink)); font-variant-numeric: tabular-nums; }
.ctx-meta { font-size: .76rem; color: rgb(var(--color-ink-muted)); margin-top: .55rem; }

.ctx-panel { border: 1px solid rgb(var(--color-brand) / .10); border-radius: 16px; box-shadow: var(--agents-shadow-card); }
.ctx-empty {
    text-align: center; padding: 2rem 1rem; color: rgb(var(--color-ink-muted)); font-size: .88rem;
    border: 1px dashed rgb(var(--color-brand) / .25); border-radius: 14px;
    background: rgb(var(--color-brand) / .03);
}

/* Metrics rail — governed definitions */
.ctx-metric-rail { display: flex; flex-wrap: wrap; gap: .45rem; }
.ctx-metric-chip {
    border: 1px solid rgb(var(--color-brand) / .14); border-radius: 999px;
    background: #fff; color: rgb(var(--color-ink)); font-weight: 600; font-size: .8rem;
    padding: .3rem .85rem; cursor: pointer; box-shadow: var(--agents-shadow-card);
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
    display: inline-flex; align-items: center; gap: .4rem;
}
.ctx-metric-chip:hover { transform: translateY(-1px); box-shadow: var(--agents-shadow-hover); border-color: rgb(var(--color-brand) / .35); }
.ctx-metric-chip.active { border-color: rgb(var(--color-brand)); background: rgb(var(--color-brand) / .07); color: rgb(var(--color-brand-dark)); }
.ctx-metric-units { font-size: .68rem; font-weight: 500; color: rgb(var(--color-ink-muted)); }

#ctx-metric-detail {
    margin-top: .8rem; background: #fff;
    border: 1px solid rgb(var(--color-brand) / .12); border-left: 4px solid rgb(var(--color-brand));
    border-radius: 14px; padding: 1.05rem 1.15rem; box-shadow: var(--agents-shadow-card);
}
.ctx-metric-name { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: rgb(var(--color-ink)); }
.ctx-metric-desc { font-size: .84rem; color: rgb(var(--color-ink-base)); margin-top: .15rem; max-width: 88ch; }
.ctx-metric-facts { font-size: .74rem; color: rgb(var(--color-ink-muted)); margin-top: .3rem; }
.ctx-metric-sql-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: rgb(var(--color-brand-dark)); margin: .85rem 0 .3rem; }
.ctx-metric-sql {
    background: rgb(var(--color-brand) / .04); border: 1px solid rgb(var(--color-brand) / .10);
    border-radius: 10px; padding: .75rem .9rem; margin-bottom: 0;
    font-size: .78rem; line-height: 1.45; white-space: pre-wrap; word-break: break-word;
    color: rgb(var(--color-ink));
}
.ctx-metric-aliases { font-size: .78rem; color: rgb(var(--color-ink-muted)); margin-top: .7rem; display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.catalog-example-chip { font-size: .78rem; }

/* Agent lanes — the agents as actors on the context */
.ctx-lanes { display: flex; flex-direction: column; gap: .6rem; }
.ctx-lane {
    display: flex; align-items: center; gap: .95rem; text-align: left; width: 100%;
    background: #fff; border: 1px solid rgb(var(--color-brand) / .10); border-radius: 14px;
    padding: .8rem 1.05rem; cursor: pointer; box-shadow: var(--agents-shadow-card);
    transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.ctx-lane:hover { transform: translateY(-2px); box-shadow: var(--agents-shadow-hover); border-color: rgb(var(--color-brand) / .30); }
.ctx-lane-body { flex: 1; min-width: 0; }
.ctx-lane-name { font-family: var(--font-display); font-weight: 700; font-size: .98rem; color: rgb(var(--color-ink)); }
.ctx-lane-verb { font-family: var(--font-display); font-weight: 600; font-size: .8rem; color: rgb(var(--color-brand-dark)); margin-left: .3rem; }
.ctx-lane-sub { font-size: .78rem; color: rgb(var(--color-ink-base)); margin-top: .1rem; }
.ctx-lane-stats { display: flex; gap: 1.4rem; flex-shrink: 0; }
.ctx-stat { font-size: .72rem; color: rgb(var(--color-ink-muted)); display: flex; flex-direction: column; align-items: flex-end; }
.ctx-stat b { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: rgb(var(--color-ink)); font-variant-numeric: tabular-nums; }
@media (max-width: 767px) {
    .ctx-lane { flex-wrap: wrap; }
    .ctx-lane-stats { width: 100%; justify-content: flex-start; gap: 1.6rem; margin-top: .4rem; }
    .ctx-stat { align-items: flex-start; }
}

/* Activity attribution pill */
.ctx-act-agent {
    display: inline-flex; align-items: center; gap: .3rem; flex-shrink: 0;
    font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
    color: rgb(var(--color-brand-dark)); background: rgb(var(--color-brand) / .07);
    border-radius: 999px; padding: .16rem .55rem; min-width: 96px;
}
.ctx-act-agent .ag-ic { width: 13px; height: 13px; }

/* ════════════════════════════════════════════════════════════════════════════
   Hub tokens — the one design system for the whole hub (instrument-panel tune
   of the existing brand language). Scoped HERE, not custom.css: custom.css
   styles .kpi-card for index.html and must not pick these up. Standalone
   admin.html / training.html intentionally keep their old look (they don't
   load this file; they're e2e fixtures + legacy fallbacks).
   ══════════════════════════════════════════════════════════════════════════ */

/* One KPI card (restyles admin.css's .kpi-card wherever agents.css loads) */
.kpi-card {
    border: 1px solid rgb(var(--color-brand) / .10);
    border-radius: 16px;
    box-shadow: var(--agents-shadow-card);
    padding: 1rem 1.15rem;
    min-height: 0;
    background: #fff;
}
.kpi-card .kpi-value {
    font-family: var(--font-display);
    font-variant-numeric: tabular-nums;
    font-weight: 700;
}
.kpi-card .kpi-label { color: rgb(var(--color-ink-muted)); }

/* All hub headings carry the display font (incl. mounted Operations/Quality) */
.agents-views h5, .agents-views h6,
.agents-views .card-title { font-family: var(--font-display); letter-spacing: -.01em; }

/* ── Status spine — the org's pulse, persistent under the rail ────────────── */
.hub-spine {
    display: flex; flex-wrap: wrap; gap: .35rem 1.6rem;
    padding: .45rem .25rem; margin-top: .35rem;
    border-bottom: 1px solid rgb(var(--color-brand) / .08);
}
.hub-spine-item {
    display: inline-flex; align-items: center; gap: .45rem;
    border: 0; background: none; padding: .1rem .2rem; cursor: pointer;
    font-size: .76rem; color: rgb(var(--color-ink-muted));
    text-transform: uppercase; letter-spacing: .05em; font-weight: 600;
    border-radius: 6px;
}
.hub-spine-item:hover { color: rgb(var(--color-brand-dark)); background: rgb(var(--color-brand) / .05); }
.hub-spine-item b {
    font-family: var(--font-display); font-weight: 700; font-size: .95rem;
    color: rgb(var(--color-ink)); font-variant-numeric: tabular-nums;
}
.hub-spine-item .status-dot { background: #16a34a; }
.hub-spine-item.need .status-dot { background: #f59e0b; position: relative; }
.hub-spine-item.need .status-dot::after {
    content: ""; position: absolute; inset: -3px; border-radius: 50%;
    background: inherit; opacity: .45; animation: agents-ping 1.5s cubic-bezier(0,0,.2,1) infinite;
}

/* ── Inbox (navbar dropdown hosting the approvals work queue) ─────────────── */
.hub-nav-search, .hub-inbox-link { font-weight: 600; }
.hub-inbox-link { border: 0; background: none; }
.hub-inbox-menu { min-width: 380px; max-width: 92vw; padding: .85rem; border-radius: 14px; }
.hub-inbox-head {
    font-family: var(--font-display); font-weight: 700; font-size: .82rem;
    color: rgb(var(--color-ink)); margin-bottom: .6rem;
    text-transform: uppercase; letter-spacing: .06em;
}
.hub-inbox-menu .approval-card { box-shadow: none; padding: .8rem .9rem; }

/* ── Persona chips — the agents as actors on each work surface ────────────── */
.hub-persona-chip {
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .72rem; font-weight: 600; white-space: nowrap;
    color: rgb(var(--color-brand-dark)); background: rgb(var(--color-brand) / .06);
    border: 1px solid rgb(var(--color-brand) / .14);
    border-radius: 999px; padding: .22rem .65rem;
}
.hub-persona-chip .ag-ic { width: 13px; height: 13px; }

/* ── Analyst roster card mini-stats ───────────────────────────────────────── */
.agent-mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem .8rem; }
.agent-mini-stat { display: flex; flex-direction: column; font-size: .68rem; color: rgb(var(--color-ink-muted)); }
.agent-mini-stat b {
    font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
    color: rgb(var(--color-ink)); font-variant-numeric: tabular-nums;
}

/* ── State vocabulary: skeleton / empty / error ───────────────────────────── */
.hub-skeleton-line, .hub-skeleton-chip {
    display: inline-block; border-radius: 6px;
    background: linear-gradient(90deg,
        var(--bs-secondary-bg) 25%, var(--bs-tertiary-bg) 37%, var(--bs-secondary-bg) 63%);
    background-size: 400% 100%;
    animation: hub-shimmer 1.4s ease infinite;
}
.hub-skeleton-line { display: block; height: .85rem; margin: .45rem 0; width: 100%; }
.hub-skeleton-chip { height: 1.6rem; width: 7.5rem; border-radius: 999px; margin-right: .35rem; }
@keyframes hub-shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

.hub-empty {
    text-align: center; padding: 2rem 1rem; color: rgb(var(--color-ink-muted));
    border: 1px dashed rgb(var(--color-brand) / .25); border-radius: 14px;
    background: rgb(var(--color-brand) / .03); font-size: .88rem;
}
.hub-empty .ap-check { display: block; margin-bottom: .5rem; color: rgb(var(--color-brand)); }
.hub-empty .ap-check .ag-ic { width: 30px; height: 30px; }
.hub-empty-sm { padding: .8rem .6rem; border: 0; background: none; text-align: left; font-size: .82rem; }
.hub-error { color: var(--bs-danger-text-emphasis); font-size: .82rem; }

/* ── View-enter motion: one staggered reveal per view open ────────────────── */
.agents-views > .tab-pane.active > * {
    animation: hub-enter .32s cubic-bezier(.2,.7,.3,1) both;
}
.agents-views > .tab-pane.active > *:nth-child(2) { animation-delay: .05s; }
.agents-views > .tab-pane.active > *:nth-child(3) { animation-delay: .1s; }
.agents-views > .tab-pane.active > *:nth-child(4) { animation-delay: .15s; }
.agents-views > .tab-pane.active > *:nth-child(n+5) { animation-delay: .2s; }
@keyframes hub-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    .hub-skeleton-line, .hub-skeleton-chip { animation: none; }
    .agents-views > .tab-pane.active > * { animation: none; }
    .hub-spine-item.need .status-dot::after { animation: none; }
}

/* ── Dark mode niceties (cards stay legible) ──────────────────────────────── */
[data-bs-theme="dark"] body { background: #0f1115; }
[data-bs-theme="dark"] .agent-card,
[data-bs-theme="dark"] .approval-card,
[data-bs-theme="dark"] .ctx-lane,
[data-bs-theme="dark"] .ctx-metric-chip,
[data-bs-theme="dark"] #ctx-metric-detail,
[data-bs-theme="dark"] .kpi-card,
[data-bs-theme="dark"] .trust-ring { background: var(--bs-body-bg); }
[data-bs-theme="dark"] .agent-name,
[data-bs-theme="dark"] .agent-metric-val,
[data-bs-theme="dark"] .agents-hero-title,
[data-bs-theme="dark"] .ctx-zone-title,
[data-bs-theme="dark"] .ctx-chip b,
[data-bs-theme="dark"] .ctx-metric-chip,
[data-bs-theme="dark"] .ctx-metric-name,
[data-bs-theme="dark"] .ctx-metric-sql,
[data-bs-theme="dark"] .ctx-lane-name,
[data-bs-theme="dark"] .ctx-stat b,
[data-bs-theme="dark"] .hub-spine-item b,
[data-bs-theme="dark"] .agent-mini-stat b,
[data-bs-theme="dark"] .hub-inbox-head,
[data-bs-theme="dark"] .kpi-card .kpi-value,
[data-bs-theme="dark"] .trust-ring-val { color: var(--bs-emphasis-color); }
