/* =========================================================
   Growth Detector — Extended styles for new screens
   Em Andamento · Aprendizado de KPIs · ICP · Agente IA
========================================================= */

/* ---------- Live screen (Em Andamento) ---------- */

/* Outer shell: cycle rail + control room */
.gd-live-shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  align-items: stretch;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* Cycle rail (left) */
.gd-cycle-rail {
  border-right: 1px solid var(--line);
  background: var(--bg-0);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.gd-cycle-rail-head {
  padding: 14px 14px 8px;
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0;
  background: var(--bg-0); z-index: 1;
}
.gd-rail-tabs { display: flex; gap: 2px; }
.gd-rail-tab {
  flex: 1;
  padding: 7px 10px;
  background: transparent; border: 1px solid transparent;
  color: var(--ink-3);
  font-size: 11px; font-weight: 500;
  cursor: pointer; border-radius: 5px;
  transition: all 0.15s;
  white-space: nowrap;
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.gd-rail-tab:hover { color: var(--ink-1); background: var(--bg-2); }
.gd-rail-tab.active { color: var(--brand); background: rgba(255,45,120,0.08); border-color: rgba(255,45,120,0.2); }
.gd-rail-tab .count {
  font: 600 9px/1 "JetBrains Mono", monospace;
  padding: 2px 5px; border-radius: 3px;
  background: var(--bg-2); color: var(--ink-2);
}
.gd-rail-tab.active .count { background: rgba(255,45,120,0.15); color: var(--brand); }

.gd-cycle-list {
  flex: 1; overflow-y: auto;
  padding: 8px;
  display: flex; flex-direction: column; gap: 6px;
}
.gd-rail-empty { padding: 24px 12px; font-size: 12px; color: var(--ink-3); text-align: center; }

.gd-cycle-item {
  text-align: left;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 6px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  width: 100%;
  font-family: inherit;
  color: inherit;
}
.gd-cycle-item:hover {
  border-color: var(--ink-3);
  background: var(--bg-2);
}
.gd-cycle-item.active {
  border-color: var(--brand);
  border-left-color: var(--brand);
  background: rgba(255,45,120,0.05);
}
.gd-cycle-item.state-testing { border-left-color: var(--testing); }
.gd-cycle-item.state-pending_verdict { border-left-color: var(--pending); }
.gd-cycle-item.active.state-testing { border-left-color: var(--brand); }

.gd-cycle-item-top {
  display: flex; justify-content: space-between; align-items: center;
}
.gd-cycle-item-top .id { font-size: 10px; color: var(--ink-2); font-weight: 500; }
.gd-cycle-item-title {
  font-size: 12px; font-weight: 500; color: var(--ink-0);
  line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.gd-cycle-item-state { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gd-cycle-state-pill {
  font: 600 9px/1 "JetBrains Mono", monospace;
  text-transform: uppercase; letter-spacing: 0.04em;
  padding: 3px 7px; border-radius: 3px;
  display: inline-flex; align-items: center; gap: 4px;
}
.gd-cycle-state-pill.testing { color: var(--testing); background: rgba(0,144,255,0.10); }
.gd-cycle-state-pill.pending { color: var(--pending); background: rgba(245,158,11,0.10); }
.gd-cycle-item-state .progress-text { font-size: 10px; }

.gd-cycle-item-progress { }
.gd-cycle-item-progress .track {
  height: 3px; background: var(--bg-3); border-radius: 2px; overflow: hidden;
}
.gd-cycle-item-progress .fill {
  height: 100%; background: var(--brand);
  transition: width 0.4s;
}
.gd-cycle-item.state-pending_verdict .gd-cycle-item-progress .fill { background: var(--pending); }

.gd-cycle-item-foot {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10px; color: var(--ink-3);
}
.gd-cycle-item-foot .kpis { display: flex; align-items: center; gap: 5px; }
.gd-cycle-item-foot .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ink-3);
}
.gd-cycle-item-foot .dot.all-hit { background: var(--pos); }
.gd-cycle-item-foot .dot.partial { background: var(--pending); }
.gd-cycle-item-foot .dot.miss    { background: var(--neg); }

/* Cycle room (center+right) */
.gd-cycle-room {
  display: flex; flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
}

.gd-live-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 45, 120, 0.08);
  border: 1px solid rgba(255, 45, 120, 0.25);
  color: var(--brand);
  font: 600 10px/1 "JetBrains Mono", monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.gd-live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 rgba(255, 45, 120, 0.6);
  animation: livePulse 1.6s ease-out infinite;
}
.gd-live-dot.small { width: 6px; height: 6px; }
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 45, 120, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(255, 45, 120, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 45, 120, 0); }
}

.gd-live-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  padding: 20px 28px 24px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 45, 120, 0.02), transparent);
}
.gd-live-id {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; color: var(--ink-2);
  margin-bottom: 8px;
}
.gd-live-id .sep { color: var(--ink-3); }
.gd-live-title {
  font-size: 20px; font-weight: 600; line-height: 1.3;
  color: var(--ink-0); margin: 0 0 8px;
  max-width: 60ch;
}
.gd-live-meta {
  display: flex; gap: 8px; align-items: center;
  font-size: 12px; color: var(--ink-2);
}
.gd-live-meta .sep { color: var(--ink-3); }
.gd-live-meta strong { color: var(--ink-1); font-weight: 500; }

.gd-live-hero-right { display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.gd-live-progress { }
.gd-live-progress-label {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--ink-2); margin-bottom: 6px;
  font-weight: 500;
}
.gd-live-progress-track {
  position: relative;
  height: 8px; border-radius: 4px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.gd-live-progress-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, var(--brand), #C0185A);
  transition: width 0.6s ease;
}
.gd-live-progress-tick {
  position: absolute; top: 0; bottom: 0;
  width: 1px; background: rgba(255,255,255,0.05);
}
.gd-live-budget { display: flex; flex-direction: column; gap: 6px; }
.gd-live-budget .lbl {
  font: 600 10px/1 "JetBrains Mono", monospace;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-3);
}
.gd-live-budget .val { font-size: 14px; }
.gd-live-budget .val .amt { color: var(--ink-0); font-weight: 600; }
.gd-live-budget-bar {
  height: 4px; border-radius: 2px;
  background: var(--bg-2); overflow: hidden;
}
.gd-live-budget-bar .fill {
  height: 100%; background: var(--ink-2);
}

.gd-live-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 0;
  align-items: start;
}
.gd-live-metrics {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px; padding: 18px 14px 18px 28px;
}

/* Metric compare card */
.gd-mc {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color 0.2s;
}
.gd-mc.hit { border-color: rgba(255, 45, 120, 0.3); }
.gd-mc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.gd-mc-label { font-size: 13px; color: var(--ink-1); font-weight: 500; }
.gd-mc-target {
  font-size: 10px; color: var(--ink-3); margin-top: 2px;
}
.gd-mc-flag {
  font: 600 9px/1 "JetBrains Mono", monospace;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 999px; white-space: nowrap;
}
.gd-mc-flag.hit  { color: var(--pos);     background: var(--pos-bg);     border: 1px solid var(--pos-line); }
.gd-mc-flag.miss { color: var(--testing); background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.2); }

.gd-mc-compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; }
.gd-mc-col {
  padding: 10px 12px;
  border-radius: 8px;
  display: flex; flex-direction: column; gap: 4px;
  background: var(--bg-2);
  border: 1px solid var(--line);
}
.gd-mc-col.partial.good { border-color: rgba(34,197,94,0.25); background: rgba(34,197,94,0.04); }
.gd-mc-col.partial.bad  { border-color: rgba(239,68,68,0.25);  background: rgba(239,68,68,0.04); }
.gd-mc-col-label {
  display: flex; align-items: center; gap: 6px;
  font: 600 10px/1 "JetBrains Mono", monospace;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ink-3);
}
.gd-mc-col-label .frozen-ico,
.gd-mc-col-label .live-ico {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink-3);
}
.gd-mc-col-label .live-ico { background: var(--brand); animation: livePulse 1.6s ease-out infinite; }
.gd-mc-val {
  font-size: 18px; font-weight: 600; color: var(--ink-0);
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.gd-mc-delta { font-size: 11px; font-weight: 500; }
.gd-mc-delta.up   { color: var(--pos); }
.gd-mc-delta.down { color: var(--neg); }
.gd-mc-foot { font-size: 10px; }
.gd-mc-vs {
  display: flex; align-items: center; justify-content: center;
  font: 600 10px/1 "JetBrains Mono", monospace;
  color: var(--ink-3); padding: 0 4px;
}
.mini-spark { display: block; margin-top: 4px; }

/* Target progress row */
.gd-mc-target-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}
.gd-mc-target-bar-wrap { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.gd-mc-target-bar-track {
  height: 5px; border-radius: 999px;
  background: var(--bg-3);
  overflow: hidden;
}
.gd-mc-target-bar-fill {
  height: 100%; border-radius: 999px;
  background: var(--testing);
  transition: width .4s ease;
}
.gd-mc-target-bar-fill.hit { background: var(--brand); }
.gd-mc-target-bar-labels {
  display: flex; justify-content: space-between;
  font: 500 9px/1 "JetBrains Mono", monospace;
  color: var(--ink-3);
}
.gd-mc-gap {
  font: 600 10px/1 "JetBrains Mono", monospace;
  white-space: nowrap;
}
.gd-mc-gap.good { color: var(--pos); }
.gd-mc-gap.bad  { color: var(--neg); }

.gd-mc-overlay { padding: 4px 0; }
.gd-mc-overlay-legend {
  display: flex; gap: 16px; flex-wrap: wrap;
  margin-top: 6px;
  font: 500 10px/1 "JetBrains Mono", monospace;
  color: var(--ink-2);
}
.gd-mc-overlay-legend i {
  display: inline-block; width: 14px; height: 2px;
  vertical-align: middle; margin-right: 4px;
}
.gd-mc-overlay-legend i.dash { border-top: 1px dashed var(--ink-2); }
.gd-mc-overlay-legend i.solid { background: var(--pos); }
.gd-mc-overlay-legend i.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

.gd-mc-live { display: flex; flex-direction: column; gap: 8px; }
.gd-mc-live-val {
  font-size: 28px; font-weight: 600; color: var(--ink-0);
  display: flex; align-items: center; gap: 10px;
}
.gd-mc-live-val .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand); animation: livePulse 1.6s ease-out infinite;
}
.gd-mc-live-row {
  display: flex; gap: 14px;
  font: 500 10px/1 "JetBrains Mono", monospace;
  color: var(--ink-2);
}
.gd-mc-live-row .good { color: var(--pos); }
.gd-mc-live-row .bad  { color: var(--neg); }

/* Live side (feed + queue) */
.gd-live-side {
  border-left: 1px solid var(--line);
  padding: 18px 18px;
  display: flex; flex-direction: column; gap: 18px;
  position: sticky; top: 0;
}
.gd-live-section { }
.gd-live-section-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px;
}
.gd-live-section-head h4 {
  font-size: 11px; font-weight: 600; color: var(--ink-1);
  letter-spacing: 0.04em; text-transform: uppercase;
  margin: 0;
}
.gd-live-feed {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
  max-height: 360px; overflow-y: auto;
}
.gd-live-feed li {
  display: grid; grid-template-columns: 42px 18px 1fr;
  gap: 6px; align-items: start;
  padding: 6px 0;
  font-size: 11px; color: var(--ink-1);
  border-bottom: 1px solid var(--line);
}
.gd-live-feed li:last-child { border-bottom: none; }
.gd-feed-time { color: var(--ink-3); font-size: 10px; padding-top: 1px; }
.gd-feed-mark {
  width: 16px; height: 16px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font: 600 9px/1 "JetBrains Mono", monospace;
  background: var(--bg-2); color: var(--ink-2);
}
.gd-feed-mark.ai         { background: rgba(255,45,120,0.10); color: var(--brand); }
.gd-feed-mark.checkpoint { background: var(--pos-bg); color: var(--pos); }
.gd-feed-mark.metric     { background: rgba(0, 144, 255, 0.10); color: var(--testing); }
.gd-feed-msg { line-height: 1.4; }

/* ---------- Hypothesis info panel (side column) ---------- */
.gd-hyp-panel { gap: 0; }

/* Objective card — destaque principal */
.gd-hyp-objective-card {
  margin-bottom: 2px;
  padding: 10px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 2px solid var(--c-clara);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.gd-hyp-objective-label {
  font: 600 9px/1 var(--font-mono);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--c-clara); opacity: 0.8;
  margin-bottom: 5px;
}
.gd-hyp-objective-text {
  font-size: 12px; font-weight: 500; line-height: 1.45;
  color: var(--ink-0);
}

/* Seções internas — separadas por border-top */
.gd-hyp-row {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
}
.gd-hyp-row-label {
  font: 600 9px/1 var(--font-mono);
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3);
}

/* Garimpo — mark igual ao live feed */
.gd-hyp-garimpo-head { display: flex; align-items: flex-start; gap: 7px; }
.gd-hyp-garimpo-mark {
  flex-shrink: 0; margin-top: 1px;
  width: 16px; height: 16px; border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  font: 600 9px/1 var(--font-mono);
  background: rgba(255, 45, 120, 0.10); color: var(--brand);
}
.gd-hyp-garimpo-status { font-size: 11px; color: var(--ink-2); line-height: 1.45; }
.gd-hyp-garimpo-ai {
  padding: 7px 9px;
  background: rgba(255, 45, 120, 0.04);
  border: 1px solid rgba(255, 45, 120, 0.12);
  border-radius: var(--r-sm);
  font-size: 11px; line-height: 1.5; color: var(--ink-1);
}

/* Hipótese (statement) */
.gd-hyp-stmt-text { font-size: 11px; line-height: 1.55; color: var(--ink-2); }

/* Evidência */
.gd-hyp-ev-row {
  display: grid; grid-template-columns: 1fr auto auto;
  gap: 8px; align-items: center;
  padding: 5px 0;
  font-size: 11px;
  border-bottom: 1px solid var(--line);
}
.gd-hyp-ev-row:last-child { border-bottom: none; }
.ev-signal { color: var(--ink-2); }
.ev-value  { font-family: var(--font-mono); font-size: 10px; color: var(--ink-1); }
.ev-delta  { font-family: var(--font-mono); font-size: 10px; min-width: 36px; text-align: right; }
.ev-delta.pos   { color: var(--pos); }
.ev-delta.neg   { color: var(--neg); }
.ev-delta.muted { color: var(--ink-3); }

/* Rodapé com link ClickUp */
.gd-hyp-footer {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: flex-end;
}
.gd-hyp-clickup {
  display: inline-flex; align-items: center; gap: 5px;
  font: 500 11px/1 var(--font-mono);
  color: var(--ink-3); text-decoration: none;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-2);
  transition: color .15s, background .15s, border-color .15s;
}
.gd-hyp-clickup:hover { color: var(--ink-1); background: var(--bg-3); border-color: var(--line-strong); }

.gd-live-queue {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.gd-live-queue li {
  padding: 10px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.gd-live-queue .qid { font-size: 10px; color: var(--ink-3); }
.gd-live-queue .qtitle { font-size: 12px; color: var(--ink-1); margin: 4px 0 6px; line-height: 1.35; }
.gd-live-queue .qstate { display: flex; }
.badge {
  font: 600 9px/1 "JetBrains Mono", monospace;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 4px 8px; border-radius: 999px;
}
.badge.yellow { color: var(--pending); background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.2); }
.badge.blue   { color: var(--testing); background: rgba(0,144,255,0.08);  border: 1px solid rgba(0,144,255,0.2); }
.badge.gray   { color: var(--ink-2);   background: var(--bg-2); border: 1px solid var(--line); }


/* ---------- KPI Learning ---------- */

.gd-kpi-alerts {
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px 28px;
}

/* Alert card — mesmo padrão do gd-mc */
.gd-kpi-alert {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .2s;
}
.gd-kpi-alert.sev-high   { border-color: var(--neg-line); }
.gd-kpi-alert.sev-medium { border-color: var(--pending-line); }

/* Header: pill + nome + timestamp */
.gd-alert-head {
  display: flex; align-items: center; gap: 8px;
}
.gd-alert-sev-pill {
  font: 600 9px/1 var(--font-mono);
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 999px; white-space: nowrap; flex-shrink: 0;
}
.gd-alert-sev-pill.high   { color: var(--neg);     background: var(--neg-bg);     border: 1px solid var(--neg-line); }
.gd-alert-sev-pill.medium { color: var(--pending); background: var(--pending-bg); border: 1px solid var(--pending-line); }
.gd-alert-sev-pill.low    { color: var(--pos);     background: var(--pos-bg);     border: 1px solid var(--pos-line); }
.gd-alert-metric {
  font-size: 13px; font-weight: 600; color: var(--ink-0);
  flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gd-alert-since { font-size: 10px; color: var(--ink-3); flex-shrink: 0; }

/* Stats — 3 células contidas (padrão gd-mc-col) */
.gd-alert-stats {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px;
}
.gd-alert-stat {
  padding: 8px 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: flex; flex-direction: column; gap: 3px;
}
.gd-alert-stat-lbl {
  font: 600 9px/1 var(--font-mono);
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ink-3);
}
.gd-alert-stat-val {
  font-size: 14px; font-weight: 600; color: var(--ink-0);
  font-family: var(--font-mono);
}
.gd-alert-stat-val.good  { color: var(--pos); }
.gd-alert-stat-val.bad   { color: var(--neg); }
.gd-alert-stat-val.muted { color: var(--ink-2); }

/* Footer: mensagem + ações inline */
.gd-alert-footer {
  display: flex; align-items: flex-end; gap: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.gd-alert-msg {
  flex: 1; margin: 0;
  font-size: 12px; color: var(--ink-2); line-height: 1.5;
}
.gd-alert-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* Bench cards */
.gd-bench-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px; padding: 18px 28px;
}
.gd-bench-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
}
.gd-bench-head { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; }
.gd-bench-name { font-size: 14px; font-weight: 600; color: var(--ink-0); }
.gd-bench-cpl { margin-bottom: 14px; }
.gd-bench-cpl-main { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.gd-bench-cpl-main .lbl { font-size: 11px; color: var(--ink-2); }
.gd-bench-cpl-main .val { font-size: 20px; font-weight: 600; color: var(--ink-0); }
.gd-bench-percentile { }
.gd-bench-percentile .bar {
  position: relative;
  height: 6px; background: linear-gradient(90deg, rgba(255,45,120,0.06), rgba(255,45,120,0.18), rgba(255,45,120,0.06));
  border-radius: 3px;
  border: 1px solid var(--line);
}
.gd-bench-percentile .median {
  position: absolute; top: -2px; bottom: -2px; width: 1.5px;
  background: var(--ink-1);
}
.gd-bench-percentile .p25,
.gd-bench-percentile .p75 {
  position: absolute; top: -3px; bottom: -3px; width: 2px;
  background: var(--ink-3);
}
.gd-bench-percentile .market {
  position: absolute; top: -4px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--brand);
  transform: translate(-50%, 0);
  box-shadow: 0 0 0 2px var(--bg-1);
}
.gd-bench-percentile .bar-labels {
  display: flex; justify-content: space-between;
  margin-top: 6px;
  font-size: 9px; color: var(--ink-3);
}
.gd-bench-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  padding-top: 12px; border-top: 1px solid var(--line);
}
.gd-bench-row > div { display: flex; flex-direction: column; gap: 2px; }
.gd-bench-row .lbl { font: 600 9px/1 "JetBrains Mono", monospace; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; }
.gd-bench-row .val { font-size: 13px; font-weight: 600; color: var(--ink-0); }
.gd-bench-row .val.good { color: var(--pos); }
.gd-bench-row .val.bad  { color: var(--neg); }
.gd-bench-source {
  margin-top: 10px;
  font-size: 10px; color: var(--ink-3);
  font-style: italic;
}

/* Campaign type table */
.gd-camp-table {
  margin: 18px 28px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.gd-camp-head, .gd-camp-row {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr 1fr 1fr;
  gap: 16px;
  padding: 12px 18px;
  align-items: center;
}
.gd-camp-head {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  font: 600 10px/1 "JetBrains Mono", monospace;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ink-3);
}
.gd-camp-row { border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-1); }
.gd-camp-row:last-child { border-bottom: none; }
.gd-camp-row .name { font-weight: 500; color: var(--ink-0); }
.gd-camp-row .good { color: var(--pos); }
.gd-camp-row .bad  { color: var(--neg); }
.conv-bar {
  display: inline-block; position: relative; width: 100%; max-width: 80px;
  height: 6px; background: var(--bg-2);
  border-radius: 3px; overflow: visible;
}
.conv-bar .conv-mine {
  display: block; height: 100%; border-radius: 3px;
  background: var(--brand);
}
.conv-bar .conv-market {
  position: absolute; top: -2px; bottom: -2px; width: 1.5px;
  background: var(--ink-2);
}

/* Trend */
.gd-trend { padding: 32px 40px 48px; display: flex; flex-direction: column; gap: 40px; }
.gd-trend-card, .gd-trend-mini {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
}
.gd-trend-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.gd-trend-head h4 { font-size: 13px; font-weight: 600; color: var(--ink-0); margin: 0; }
.gd-trend-legend { display: flex; gap: 18px; margin-top: 8px; font-size: 11px; color: var(--ink-2); }
.gd-trend-legend span { display: inline-flex; align-items: center; gap: 6px; }
.gd-trend-legend i { display: inline-block; width: 14px; }
.gd-trend-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.gd-trend-mini-head { display: flex; gap: 12px; align-items: baseline; margin-bottom: 8px; }
.gd-trend-mini-head h5 {
  font-size: 11px; font-weight: 600; color: var(--ink-2);
  letter-spacing: 0.04em; text-transform: uppercase;
  margin: 0; flex: 1;
}

/* Insights */
.gd-insights { display: flex; flex-direction: column; gap: 10px; padding: 18px 28px; }
.gd-insight {
  display: grid; grid-template-columns: 32px 1fr;
  gap: 14px; align-items: start;
  padding: 14px 18px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.gd-insight-mark {
  width: 28px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,45,120,0.08); color: var(--brand);
}
.gd-insight-text { font-size: 13px; line-height: 1.5; color: var(--ink-1); }
.gd-insight-meta { display: flex; gap: 16px; align-items: center; margin-top: 8px; }
.gd-conf { display: flex; align-items: center; gap: 8px; font-size: 11px; }
.gd-conf .bar {
  width: 60px; height: 4px; background: var(--bg-2);
  border-radius: 2px; overflow: hidden;
}
.gd-conf .bar .fill { height: 100%; background: var(--brand); }


/* ---------- ICP ---------- */

.gd-icp { padding: 20px 28px; display: flex; flex-direction: column; gap: 18px; }
.gd-icp-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.gd-icp-head h3 { font-size: 18px; font-weight: 600; color: var(--ink-0); margin: 0 0 4px; line-height: 1.3; }
.gd-icp-score { display: flex; align-items: center; gap: 14px; }
.gd-icp-score .lbl { font: 600 10px/1 "JetBrains Mono", monospace; color: var(--ink-3); letter-spacing: 0.06em; text-transform: uppercase; }
.gd-icp-score .hint { font-size: 10px; color: var(--ink-3); margin-top: 4px; }

.gd-icp-rules {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.gd-icp-rules-head, .gd-icp-rule {
  display: grid; grid-template-columns: 2fr 1.2fr 130px;
  gap: 18px;
  padding: 12px 22px;
  align-items: center;
}
.gd-icp-rules-head {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  font: 600 10px/1 "JetBrains Mono", monospace;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ink-3);
}
.gd-icp-rule { border-bottom: 1px solid var(--line); }
.gd-icp-rule:last-child { border-bottom: none; }
.gd-icp-rule .rule .text { font-size: 13px; color: var(--ink-0); margin-bottom: 2px; }
.gd-icp-rule .rule .note { font-size: 11px; color: var(--ink-3); }
.gd-icp-rule .cov { display: flex; align-items: center; gap: 10px; }
.gd-icp-rule .cov .bar {
  flex: 1; height: 5px; background: var(--bg-2); border-radius: 3px; overflow: hidden;
}
.gd-icp-rule .cov .bar .fill {
  height: 100%; background: var(--brand);
}
.gd-icp-rule.status-warn .cov .bar .fill { background: var(--pending); }
.gd-icp-rule.status-fail .cov .bar .fill { background: var(--neg); }
.gd-icp-flag {
  font: 600 10px/1 "JetBrains Mono", monospace;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 5px 10px; border-radius: 999px;
  white-space: nowrap; display: inline-block;
}
.gd-icp-flag.ok   { color: var(--pos);     background: var(--pos-bg);     border: 1px solid var(--pos-line); }
.gd-icp-flag.warn { color: var(--pending); background: rgba(245,158,11,0.10); border: 1px solid rgba(245,158,11,0.2); }
.gd-icp-flag.fail { color: var(--neg);     background: var(--neg-bg);     border: 1px solid var(--neg-line); }

/* Segments */
.gd-seg-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px; padding: 18px 28px;
}
.gd-seg-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: 10px;
  padding: 16px;
}
.gd-seg-card.status-ideal      { border-left-color: var(--pos); }
.gd-seg-card.status-good       { border-left-color: var(--brand); }
.gd-seg-card.status-borderline { border-left-color: var(--pending); }
.gd-seg-card.status-poor       { border-left-color: var(--neg); }
.gd-seg-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.gd-seg-name { font-size: 13px; font-weight: 600; color: var(--ink-0); line-height: 1.3; max-width: 24ch; }
.gd-seg-fit { display: flex; flex-direction: column; align-items: flex-end; }
.gd-seg-fit .big { font-size: 24px; font-weight: 600; color: var(--ink-0); }
.gd-seg-fit .lbl { font: 600 9px/1 "JetBrains Mono", monospace; color: var(--ink-3); letter-spacing: 0.06em; }
.fit-ideal      .big { color: var(--pos); }
.fit-borderline .big { color: var(--pending); }
.fit-poor       .big { color: var(--neg); }
.gd-seg-bar {
  position: relative; height: 5px;
  background: var(--bg-2); border-radius: 3px;
  margin-bottom: 12px;
}
.gd-seg-bar .fill { height: 100%; background: var(--brand); border-radius: 3px; }
.gd-seg-card.status-ideal      .gd-seg-bar .fill { background: var(--pos); }
.gd-seg-card.status-borderline .gd-seg-bar .fill { background: var(--pending); }
.gd-seg-card.status-poor       .gd-seg-bar .fill { background: var(--neg); }
.gd-seg-bar .thr {
  position: absolute; top: -2px; bottom: -2px; width: 1.5px;
  background: var(--ink-2);
}
.gd-seg-row { display: flex; gap: 16px; margin-bottom: 12px; }
.gd-seg-row > div { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.gd-seg-row .lbl { font: 600 9px/1 "JetBrains Mono", monospace; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; }
.gd-seg-row .val { font-size: 13px; font-weight: 600; color: var(--ink-0); }
.gd-seg-tag { font-size: 11px; color: var(--ink-2); }

/* Drift */
.gd-drift { padding: 20px 28px; }
.gd-drift-explain {
  background: var(--bg-1); border: 1px solid var(--line); border-radius: 8px;
  padding: 14px 16px; margin-bottom: 18px;
}
.gd-drift-explain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.gd-drift-src-tag {
  font: 600 9px/1 "JetBrains Mono", monospace; letter-spacing: 0.08em;
  padding: 3px 7px; border-radius: 3px; display: inline-block; margin-bottom: 6px;
}
.gd-drift-src-tag.theor { color: var(--ink-2); background: var(--bg-3); }
.gd-drift-src-tag.obs   { color: var(--brand); background: rgba(255,45,120,0.10); }
.gd-drift-src-body { font-size: 12px; color: var(--ink-2); line-height: 1.5; }
.gd-drift-src-body strong { color: var(--ink-1); font-weight: 500; }
.gd-drift-edit-btn {
  display: block; margin-top: 8px;
  background: transparent; border: 1px solid var(--line); border-radius: 5px;
  color: var(--ink-1); font-size: 11px; padding: 5px 10px; cursor: pointer;
  font-family: inherit;
}
.gd-drift-edit-btn:hover { border-color: var(--brand); color: var(--brand); }
@media (max-width: 980px) { .gd-drift-explain-grid { grid-template-columns: 1fr; gap: 14px; } }
.gd-drift-head { margin-bottom: 14px; }
.gd-drift-head h4 { font-size: 14px; font-weight: 600; color: var(--ink-0); margin: 0 0 4px; }
.gd-drift-list {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.gd-drift-row {
  display: grid;
  grid-template-columns: 140px 1.5fr 80px 1.5fr 1.5fr;
  gap: 16px; align-items: center;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.gd-drift-row:last-child { border-bottom: none; }
.gd-drift-row .axis {
  font: 600 11px/1.3 "Inter Tight", sans-serif;
  color: var(--ink-1); text-transform: uppercase; letter-spacing: 0.04em;
}
.gd-drift-row .lbl { font: 600 9px/1 "JetBrains Mono", monospace; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; display: block; margin-bottom: 3px; }
.gd-drift-row .theor .val { color: var(--ink-2); }
.gd-drift-row .obs .val { color: var(--ink-0); font-weight: 500; }
.gd-drift-row .note { font-size: 11px; color: var(--ink-3); line-height: 1.4; }
.gd-drift-arr {
  display: flex; flex-direction: column; align-items: center;
  font: 600 10px/1 "JetBrains Mono", monospace;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.gd-drift-arr .ico { font-size: 22px; line-height: 1; margin-bottom: 4px; }
.gd-drift-arr .lbl { color: inherit; }

/* Signals */
.gd-signals { display: flex; flex-direction: column; gap: 8px; padding: 18px 28px; }
.gd-signal {
  display: grid; grid-template-columns: 28px 1fr auto;
  gap: 14px; align-items: center;
  padding: 12px 18px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.gd-signal-mark {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 14px;
}
.gd-signal.kind-in  .gd-signal-mark { background: var(--pos-bg); color: var(--pos); }
.gd-signal.kind-out .gd-signal-mark { background: var(--neg-bg); color: var(--neg); }
.gd-signal-head { display: flex; gap: 10px; align-items: baseline; }
.gd-signal-head .who { font-size: 13px; font-weight: 500; color: var(--ink-0); }
.gd-signal-reason { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.gd-signal-tag {
  font: 600 10px/1 "JetBrains Mono", monospace;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ink-2);
}
.gd-signal.kind-in  .gd-signal-tag { color: var(--pos); }
.gd-signal.kind-out .gd-signal-tag { color: var(--neg); }


/* ---------- Agent config ---------- */

.gd-agent-shell {
  display: grid; grid-template-columns: 240px 1fr;
  gap: 0;
  align-items: start;
}
.gd-agent-nav {
  border-right: 1px solid var(--line);
  padding: 18px 14px;
  display: flex; flex-direction: column; gap: 2px;
  position: sticky; top: 0;
}
.gd-agent-navitem {
  text-align: left;
  padding: 9px 12px;
  border-radius: 6px;
  background: transparent; border: none;
  color: var(--ink-2); font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.gd-agent-navitem:hover { background: var(--bg-2); color: var(--ink-1); }
.gd-agent-navitem.active {
  background: rgba(255,45,120,0.08);
  color: var(--brand); font-weight: 500;
}

.gd-agent-modecard {
  margin-top: 18px; padding: 14px 12px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.gd-agent-modecard .lbl {
  font: 600 9px/1 "JetBrains Mono", monospace;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-3); margin-bottom: 8px;
}
.gd-agent-modecard .modes { display: flex; gap: 4px; margin-bottom: 8px; }
.gd-mode {
  flex: 1;
  padding: 6px 8px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--bg-2); color: var(--ink-2);
  font-size: 10px; font-weight: 500;
  cursor: pointer;
}
.gd-mode.active { color: var(--ink-0); background: var(--bg-3); border-color: var(--ink-3); }
.gd-mode.mode-cautious   { border-color: rgba(34,197,94,0.4); color: var(--pos); background: var(--pos-bg); }
.gd-mode.mode-balanced   { border-color: rgba(255,45,120,0.4); color: var(--brand); background: rgba(255,45,120,0.08); }
.gd-mode.mode-aggressive { border-color: rgba(245,158,11,0.4); color: var(--pending); background: rgba(245,158,11,0.08); }
.gd-agent-modecard .hint { font-size: 11px; color: var(--ink-3); line-height: 1.4; }

.gd-agent-body { padding: 18px 28px 60px; }
.gd-agent-section h4 {
  font-size: 13px; font-weight: 600; color: var(--ink-0);
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}
.gd-agent-section > p { font-size: 12px; color: var(--ink-2); line-height: 1.5; margin: 0 0 4px; max-width: 70ch; }

.gd-model-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.gd-model-card {
  text-align: left;
  padding: 14px;
  border-radius: 8px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.gd-model-card:hover { border-color: var(--ink-3); }
.gd-model-card.active { border-color: var(--brand); background: rgba(255,45,120,0.04); }
.gd-model-card .name { font-size: 13px; font-weight: 600; color: var(--ink-0); margin-bottom: 4px; }
.gd-model-card .meta { display: flex; gap: 6px; font: 500 10px/1 "JetBrains Mono", monospace; color: var(--ink-3); margin-bottom: 4px; }
.gd-model-card .note { font-size: 11px; color: var(--ink-2); line-height: 1.4; }

/* Range slider */
.gd-range {
  width: 100%;
  -webkit-appearance: none;
  height: 4px; background: var(--bg-2);
  border-radius: 2px; outline: none;
  margin-top: 6px;
}
.gd-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--brand); cursor: pointer;
  box-shadow: 0 0 0 3px rgba(255,45,120,0.15);
}
.gd-range::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--brand); cursor: pointer; border: none;
  box-shadow: 0 0 0 3px rgba(255,45,120,0.15);
}
.gd-range.thin { height: 3px; margin: 6px 0; max-width: 240px; }
.gd-range-labels {
  display: flex; justify-content: space-between;
  font-size: 10px; margin-top: 6px;
}

.gd-tone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 700px; }

.gd-halluc-banner {
  display: grid; grid-template-columns: 1fr 1.5fr;
  gap: 18px; align-items: center;
  padding: 18px 22px; margin-bottom: 24px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.gd-halluc-meter { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.gd-halluc-meter .track { display: flex; gap: 3px; }
.gd-halluc-meter .seg {
  width: 16px; height: 24px; border-radius: 2px;
  background: var(--bg-2); border: 1px solid var(--line);
}
.gd-halluc-meter .seg.on.low  { background: var(--pos); border-color: var(--pos); }
.gd-halluc-meter .seg.on.med  { background: var(--brand); border-color: var(--brand); }
.gd-halluc-meter .seg.on.high { background: var(--pending); border-color: var(--pending); }
.gd-halluc-meter .num { font-size: 22px; font-weight: 600; color: var(--ink-0); }
.gd-halluc-msg h5 { font-size: 13px; font-weight: 600; margin: 0 0 4px; color: var(--ink-0); }
.gd-halluc-msg p { font-size: 12px; color: var(--ink-2); margin: 0; line-height: 1.5; }

/* Rules toggle list */
.gd-rules-list { display: flex; flex-direction: column; gap: 1px; background: var(--line); border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.gd-rule {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  background: var(--bg-1);
  gap: 14px;
}
.gd-rule.locked { background: var(--bg-2); }
.gd-rule-name { font-size: 13px; font-weight: 500; color: var(--ink-0); margin-bottom: 2px; }
.gd-rule-desc { font-size: 11px; color: var(--ink-2); line-height: 1.4; }
.gd-toggle {
  width: 36px; height: 20px;
  background: var(--bg-3); border-radius: 999px;
  position: relative; cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
.gd-toggle::after {
  content: ""; position: absolute; left: 2px; top: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--ink-2); transition: left 0.2s, background 0.2s;
}
.gd-toggle.on { background: var(--brand); }
.gd-toggle.on::after { left: 18px; background: #0F141B; }
.gd-toggle.locked { opacity: 0.6; cursor: not-allowed; }

/* Permissions */
.gd-perms { display: flex; flex-direction: column; gap: 1px; background: var(--line); border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.gd-perm {
  display: grid; grid-template-columns: 1fr auto;
  gap: 18px; align-items: center;
  padding: 14px 18px;
  background: var(--bg-1);
}
.gd-perm-name { font-size: 13px; font-weight: 500; color: var(--ink-0); margin-bottom: 2px; }
.gd-perm-desc { font-size: 11px; color: var(--ink-2); line-height: 1.4; }
.gd-perm-levels { display: flex; gap: 4px; }
.gd-perm-lvl {
  padding: 6px 10px; border-radius: 4px;
  font: 600 10px/1 "JetBrains Mono", monospace;
  text-transform: uppercase; letter-spacing: 0.04em;
  background: var(--bg-2); color: var(--ink-2);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.15s;
}
.gd-perm-lvl:hover { color: var(--ink-1); }
.gd-perm-lvl.active.lvl-auto    { background: var(--pos-bg); color: var(--pos); border-color: var(--pos-line); }
.gd-perm-lvl.active.lvl-review  { background: rgba(245,158,11,0.10); color: var(--pending); border-color: rgba(245,158,11,0.3); }
.gd-perm-lvl.active.lvl-human   { background: rgba(0,144,255,0.10); color: var(--testing); border-color: rgba(0,144,255,0.3); }
.gd-perm-lvl.active.lvl-blocked { background: var(--neg-bg); color: var(--neg); border-color: var(--neg-line); }

/* Budget card */
.gd-budget-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  max-width: 640px;
}
.gd-budget-card .head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 14px; }
.gd-budget-card .lbl { font: 600 10px/1 "JetBrains Mono", monospace; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.gd-budget-card .val { font-size: 24px; font-weight: 600; color: var(--ink-0); }
.gd-budget-card .val .muted { color: var(--ink-3); font-weight: 400; font-size: 14px; }
.gd-budget-card .bar {
  position: relative; height: 8px;
  background: var(--bg-2); border-radius: 4px; overflow: visible;
  margin-bottom: 16px;
}
.gd-budget-card .bar .fill { height: 100%; border-radius: 4px; transition: width 0.4s; }
.gd-budget-card .bar .alert-marker {
  position: absolute; top: -3px; bottom: -3px;
  width: 1.5px; background: var(--neg);
}
.gd-budget-card .grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  padding-top: 14px; border-top: 1px solid var(--line);
}
.gd-budget-card .grid > div { display: flex; flex-direction: column; gap: 3px; }

/* Audit table */
.gd-audit-table {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 12px;
}
.gd-audit-head, .gd-audit-row {
  display: grid; grid-template-columns: 90px 70px 80px 1fr 70px 80px;
  gap: 14px; align-items: start;
  padding: 10px 16px;
  font-size: 12px;
}
.gd-audit-head {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  font: 600 10px/1 "JetBrains Mono", monospace;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ink-3);
}
.gd-audit-row { border-bottom: 1px solid var(--line); color: var(--ink-1); }
.gd-audit-row:last-child { border-bottom: none; }
.gd-audit-row.blocked { background: rgba(239,68,68,0.03); }
.gd-audit-row .good { color: var(--pos); }
.gd-audit-row .bad  { color: var(--neg); }
.gd-audit-prompt { font-size: 12px; line-height: 1.4; }
.gd-audit-prompt .reason { font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.gd-audit-kind {
  display: inline-block;
  padding: 3px 7px; border-radius: 4px;
  font: 600 10px/1 "JetBrains Mono", monospace;
  text-transform: uppercase; letter-spacing: 0.04em;
  background: var(--bg-2); color: var(--ink-2);
}
.gd-audit-kind.kind-query   { background: rgba(0,144,255,0.10); color: var(--testing); }
.gd-audit-kind.kind-tool    { background: rgba(255,45,120,0.10); color: var(--brand); }
.gd-audit-kind.kind-refusal { background: var(--neg-bg); color: var(--neg); }
.gd-audit-kind.kind-alert   { background: rgba(245,158,11,0.10); color: var(--pending); }

/* Generic helpers */
.gd-field { display: flex; flex-direction: column; gap: 6px; }
.gd-field label {
  font: 600 10px/1 "JetBrains Mono", monospace;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ink-3);
}
.gd-btn.sm { padding: 5px 10px; font-size: 11px; }
.gd-btn.sm.primary { background: var(--brand); color: #0F141B; border-color: var(--brand); }
.gd-btn.danger { color: var(--neg); border-color: var(--neg-line); background: var(--neg-bg); }

.gd-plat-logo {
  width: 28px; height: 28px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font: 600 11px/1 "JetBrains Mono", monospace;
  background: var(--bg-2); color: var(--ink-1);
  flex-shrink: 0;
}
.gd-plat-logo.google     { background: rgba(234,67,53,0.12); color: var(--p-google); }
.gd-plat-logo.meta       { background: rgba(24,119,242,0.12); color: var(--p-meta); }
.gd-plat-logo.linkedin   { background: rgba(10,102,194,0.15); color: var(--p-linkedin); }
.gd-plat-logo.rd_station { background: rgba(0,165,113,0.12); color: var(--p-rd); }
.gd-plat-logo.hubspot    { background: rgba(255,122,89,0.12); color: #FF7A59; }
.gd-plat-logo.ga4        { background: rgba(246,168,3,0.12); color: #F6A803; }
.gd-plat-logo.lxp        { background: rgba(255,45,120,0.10); color: var(--brand); }

.muted { color: var(--ink-3); }
.good  { color: var(--pos); }
.bad   { color: var(--neg); }

/* Responsive guard for narrow viewports */
@media (max-width: 1280px) {
  .gd-live-shell { grid-template-columns: 280px 1fr; }
  .gd-live-grid { grid-template-columns: 1fr; }
  .gd-live-side { border-left: none; border-top: 1px solid var(--line); position: static; }
  .gd-live-metrics { grid-template-columns: 1fr; }
  .gd-agent-shell { grid-template-columns: 1fr; }
  .gd-agent-nav { border-right: none; border-bottom: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; position: static; }
  .gd-trend-mini-grid { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .gd-live-shell { grid-template-columns: 1fr; }
  .gd-cycle-rail { border-right: none; border-bottom: 1px solid var(--line); max-height: 280px; }
}
/* Darwin AI — Redesign
   Three direções: cockpit, dossiê, bancada. Camada por cima do styles do projeto. */

/* ============================================================
   SHARED — Darwin character (avatar + sinais vitais)
============================================================ */
.dw-char {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dw-char-svg { display: block; }
.dw-char-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--brand);
  opacity: 0;
  pointer-events: none;
  animation: dw-pulse 2.4s ease-out infinite;
}
.dw-char-pulse.delay { animation-delay: 1.2s; }
@keyframes dw-pulse {
  0%   { transform: scale(.95); opacity: .55; }
  70%  { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.6);  opacity: 0; }
}

.dw-vital-dot {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px var(--bg-0), 0 0 8px rgba(255,45,120,0.6);
  bottom: 0; right: 0;
  animation: dw-blink 1.6s ease-in-out infinite;
}
.dw-vital-dot.idle  { background: var(--ink-2); animation: none; box-shadow: 0 0 0 3px var(--bg-0); }
.dw-vital-dot.alert { background: var(--pending); }
@keyframes dw-blink {
  0%, 100% { transform: scale(1);   box-shadow: 0 0 0 3px var(--bg-0), 0 0 8px rgba(255,45,120,0.6); }
  50%      { transform: scale(.78); box-shadow: 0 0 0 3px var(--bg-0), 0 0 14px rgba(255,45,120,0.95); }
}

/* Speech bubble (modo demonstração) */
.dw-bubble {
  position: relative;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px 13px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-1);
  max-width: 360px;
}
.dw-bubble::before {
  content: "";
  position: absolute;
  left: -7px; top: 18px;
  width: 12px; height: 12px;
  background: var(--bg-1);
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}
.dw-bubble .lead {
  font: 600 9.5px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--brand);
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 6px;
}
.dw-bubble .lead::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--brand); animation: dw-blink 1.6s ease-in-out infinite;
}
.dw-bubble .ghost {
  display: inline-block;
  width: 4px; height: 14px;
  background: var(--brand);
  vertical-align: -2px;
  margin-left: 2px;
  animation: dw-caret 1s steps(2) infinite;
}
@keyframes dw-caret { 50% { opacity: 0; } }

/* Status strip — used in cockpit + dossiê */
.dw-status-strip {
  display: flex; align-items: center; gap: 10px;
  font: 600 10px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-2);
}
.dw-status-strip .pip {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(255,45,120,0.15);
  animation: dw-blink 1.6s ease-in-out infinite;
}
.dw-status-strip .sep { width: 1px; height: 11px; background: var(--line); }
.dw-status-strip .label { color: var(--ink-3); }
.dw-status-strip .val   { color: var(--ink-0); }
.dw-status-strip .val.brand { color: var(--brand); }

/* ============================================================
   DIRECTION 1 — COCKPIT (sticky persona, todas seções visíveis)
============================================================ */
.dw-cockpit {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  padding: 22px 28px 32px;
  align-items: start;
}

.dw-pilot {
  position: sticky;
  top: 18px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.dw-pilot-head {
  padding: 18px 18px 14px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(255,45,120,0.10), transparent 65%),
    var(--bg-1);
  border-bottom: 1px solid var(--line);
}
.dw-pilot-id { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.dw-pilot-id .name { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.1; }
.dw-pilot-id .role { font: 500 10px/1.2 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-top: 4px; }

.dw-pilot-vitals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.dw-pilot-vitals .v {
  display: flex; flex-direction: column; gap: 3px;
}
.dw-pilot-vitals .lbl { font: 600 9px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); }
.dw-pilot-vitals .val { font-size: 19px; font-weight: 600; color: var(--ink-0); font-family: var(--font-mono); line-height: 1; }
.dw-pilot-vitals .val.acc { color: var(--brand); }

.dw-pilot-mode {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.dw-pilot-mode .lbl { font: 600 9px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); margin-bottom: 8px; }
.dw-mode-stack { display: flex; flex-direction: column; gap: 4px; }
.dw-mode-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: var(--ink-2);
  transition: all .15s;
}
.dw-mode-row:hover { background: var(--bg-2); color: var(--ink-1); }
.dw-mode-row.active { background: var(--bg-2); border-color: var(--brand); color: var(--ink-0); }
.dw-mode-row .swatch {
  width: 8px; height: 24px; border-radius: 2px;
  background: var(--bg-3); flex-shrink: 0;
}
.dw-mode-row.active.cautious   .swatch { background: var(--testing); }
.dw-mode-row.active.balanced   .swatch { background: var(--brand); }
.dw-mode-row.active.aggressive .swatch { background: var(--pending); }
.dw-mode-row .name { font-size: 12.5px; font-weight: 600; }
.dw-mode-row .desc { font-size: 10.5px; color: var(--ink-3); margin-top: 2px; line-height: 1.3; }
.dw-mode-row.active .desc { color: var(--ink-2); }
.dw-mode-row .meta { display: flex; flex-direction: column; flex: 1; min-width: 0; }

.dw-pilot-bubble {
  padding: 14px 18px 16px;
  background: var(--bg-2);
}
.dw-pilot-bubble .lead {
  font: 600 9px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--brand);
  margin-bottom: 7px;
  display: flex; align-items: center; gap: 6px;
}
.dw-pilot-bubble .lead::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--brand); animation: dw-blink 1.6s ease-in-out infinite;
}
.dw-pilot-bubble .text { font-size: 12px; line-height: 1.5; color: var(--ink-1); min-height: 36px; }
.dw-pilot-bubble .text .ghost { display: inline-block; width: 3px; height: 12px; background: var(--brand); vertical-align: -2px; margin-left: 2px; animation: dw-caret 1s steps(2) infinite; }
.dw-pilot-bubble .nav-toggle {
  margin-top: 10px;
  display: flex; align-items: center; gap: 4px;
}
.dw-pilot-bubble .demo-btn {
  flex: 1;
  font: 600 10px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 7px 8px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .15s;
}
.dw-pilot-bubble .demo-btn.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.dw-pilot-bubble .demo-btn:hover:not(.on) { color: var(--ink-0); border-color: var(--ink-3); }

/* Sections — tab nav + single visible card on right */
.dw-sections { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dw-cockpit-nav {
  display: flex; flex-wrap: nowrap; gap: 6px;
  padding: 6px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.dw-cockpit-nav::-webkit-scrollbar { display: none; }
.dw-cockpit-tab {
  flex: 1; min-width: 120px; flex-shrink: 0;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .15s;
  text-align: left;
}
.dw-cockpit-tab .num {
  font: 600 10px/1 var(--font-mono);
  color: var(--ink-3);
  letter-spacing: .08em;
  flex-shrink: 0;
}
.dw-cockpit-tab .lbl {
  font-size: 12.5px; font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dw-cockpit-tab:hover { color: var(--ink-0); background: var(--bg-2); }
.dw-cockpit-tab.active {
  background: var(--bg-2);
  border-color: var(--line);
  color: var(--ink-0);
  box-shadow: inset 0 -2px 0 var(--brand);
}
.dw-cockpit-tab.active .num { color: var(--brand); }

.dw-card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .2s;
}
.dw-card.focus { border-color: var(--brand); box-shadow: 0 0 0 1px rgba(255,45,120,0.18); }
.dw-card-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.dw-card-head .num {
  font: 600 10px/1 var(--font-mono);
  color: var(--brand);
  letter-spacing: .08em;
}
.dw-card-head .title { font-size: 15px; font-weight: 600; color: var(--ink-0); letter-spacing: -0.01em; }
.dw-card-head .desc  { font-size: 11.5px; color: var(--ink-2); margin-left: auto; }
.dw-card-body { padding: 18px 22px 22px; }
.dw-card-body h5 {
  font: 600 10px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-3);
  margin: 0 0 10px;
}
.dw-card-body h5 + .gd-rules-list,
.dw-card-body h5 + .gd-perms,
.dw-card-body h5 + .gd-model-grid { margin-bottom: 18px; }
.dw-card-body h5:not(:first-child) { margin-top: 22px; }

/* Hero strip on top */
.dw-cockpit-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 22px 28px 18px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60% 100% at 0% 50%, rgba(255,45,120,0.08), transparent 70%),
    var(--bg-0);
}
.dw-cockpit-hero .blurb {
  font-size: 13.5px; line-height: 1.55;
  color: var(--ink-1);
  max-width: 640px;
}
.dw-cockpit-hero .blurb em { color: var(--brand); font-style: normal; font-weight: 600; }
.dw-cockpit-hero .stats {
  display: flex; gap: 28px;
}
.dw-cockpit-hero .stat { text-align: right; }
.dw-cockpit-hero .stat .v { font: 600 24px/1 var(--font-mono); color: var(--ink-0); }
.dw-cockpit-hero .stat .v.brand { color: var(--brand); }
.dw-cockpit-hero .stat .l { font: 500 9.5px/1.3 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-top: 4px; }

/* ============================================================
   DIRECTION 2 — DOSSIÊ (employee card + dossier tabs)
============================================================ */
.dw-dossie {
  padding: 22px 28px 32px;
  display: flex; flex-direction: column; gap: 22px;
}

.dw-employee-card {
  display: grid;
  grid-template-columns: 168px 1fr 280px;
  gap: 24px;
  padding: 22px;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}
.dw-employee-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 36px;
  background: var(--brand);
}
.dw-emp-portrait {
  position: relative;
  margin-top: 8px;
  width: 144px; height: 144px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 4px solid var(--bg-1);
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
}
.dw-emp-meta { padding-top: 28px; min-width: 0; }
.dw-emp-meta .super {
  font: 600 10px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.dw-emp-meta h2 { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 4px; line-height: 1.05; }
.dw-emp-meta .role { font-size: 13px; color: var(--ink-2); margin-bottom: 14px; }
.dw-emp-meta .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.dw-emp-tag {
  font: 600 10px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--ink-1);
  border: 1px solid var(--line);
}
.dw-emp-tag.brand { background: rgba(255,45,120,0.10); border-color: rgba(255,45,120,0.30); color: var(--brand); }

.dw-emp-side {
  display: flex; flex-direction: column; gap: 12px;
  padding: 18px 16px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 28px;
}
.dw-emp-side .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.dw-emp-side .lbl { font: 600 9.5px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); }
.dw-emp-side .val { font-size: 12px; color: var(--ink-0); font-weight: 500; text-align: right; }
.dw-emp-side .val.brand { color: var(--brand); }

.dw-emp-hr { border-top: 1px solid var(--line); margin: 4px 0; }

/* Dossier — left rail tabs, right body, with story intro on each section */
.dw-dossier-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  min-height: 600px;
}
.dw-dossier-rail {
  background: var(--bg-2);
  border-right: 1px solid var(--line);
  padding: 18px 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.dw-dossier-rail .head {
  font: 600 9.5px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-3);
  padding: 6px 10px 12px;
}
.dw-dossier-tab {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  padding: 10px 10px;
  border: none;
  background: transparent;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  color: var(--ink-2);
  align-items: start;
  transition: all .15s;
}
.dw-dossier-tab:hover { background: var(--bg-3); color: var(--ink-0); }
.dw-dossier-tab.active { background: var(--bg-1); color: var(--ink-0); }
.dw-dossier-tab .num {
  font: 600 10px/1 var(--font-mono);
  color: var(--ink-3);
  letter-spacing: .04em;
  padding-top: 2px;
}
.dw-dossier-tab.active .num { color: var(--brand); }
.dw-dossier-tab .name { font-size: 12.5px; font-weight: 600; line-height: 1.2; }
.dw-dossier-tab .sub  { font-size: 10.5px; color: var(--ink-3); margin-top: 2px; line-height: 1.3; }

.dw-dossier-body { padding: 26px 32px 32px; min-width: 0; }
.dw-dossier-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.dw-dossier-intro .copy h3 {
  font-size: 22px; font-weight: 600; letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: var(--ink-0);
}
.dw-dossier-intro .copy .super {
  font: 600 10px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--brand);
  margin-bottom: 10px;
}
.dw-dossier-intro .copy p {
  font-size: 13px;
  color: var(--ink-1);
  line-height: 1.55;
  margin: 0;
}
.dw-dossier-intro .quote {
  background: var(--bg-2);
  border-left: 2px solid var(--brand);
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-1);
  border-radius: 0 8px 8px 0;
  position: relative;
}
.dw-dossier-intro .quote .who {
  font: 600 9.5px/1 var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-3);
  margin-bottom: 8px;
  display: block;
}

/* ============================================================
   DIRECTION 3 — BANCADA (lab bench, gauges, three zones)
============================================================ */
.dw-bench {
  padding: 22px 28px 32px;
  display: flex; flex-direction: column; gap: 18px;
}

.dw-bench-habitat {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 22px 26px;
  background:
    repeating-linear-gradient(0deg,  transparent 0 24px, rgba(255,255,255,0.02) 24px 25px),
    repeating-linear-gradient(90deg, transparent 0 24px, rgba(255,255,255,0.02) 24px 25px),
    var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 14px;
  position: relative;
}
.dw-bench-habitat::before {
  content: "ESPÉCIME · DARWIN AI";
  position: absolute; top: 10px; left: 16px;
  font: 600 9px/1 var(--font-mono); letter-spacing: .12em;
  color: var(--ink-3);
}
.dw-bench-habitat::after {
  content: "C-47 · D2";
  position: absolute; top: 10px; right: 16px;
  font: 600 9px/1 var(--font-mono); letter-spacing: .12em;
  color: var(--brand);
}
.dw-bench-pet {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding-top: 14px;
}
.dw-bench-pet .name {
  font: 600 10px/1 var(--font-mono); letter-spacing: .08em;
  color: var(--ink-2);
  text-transform: uppercase;
}
.dw-bench-readout { display: flex; flex-direction: column; gap: 4px; }
.dw-bench-readout .row {
  display: grid; grid-template-columns: 110px 1fr 60px; gap: 12px; align-items: center;
}
.dw-bench-readout .row .l {
  font: 600 9.5px/1 var(--font-mono);
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-3);
}
.dw-bench-readout .row .v {
  font: 600 12px/1 var(--font-mono);
  color: var(--ink-0);
  text-align: right;
}
.dw-bench-readout .row .v.brand { color: var(--brand); }
.dw-bench-readout .bar {
  height: 4px;
  background: var(--bg-2);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.dw-bench-readout .bar > span {
  position: absolute; top: 0; left: 0; bottom: 0;
  background: var(--brand);
  border-radius: 2px;
}
.dw-bench-readout .bar.warn > span { background: var(--pending); }

.dw-gauge {
  width: 110px; height: 110px;
  position: relative;
}
.dw-gauge svg { display: block; }
.dw-gauge .num {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.dw-gauge .num .v { font: 600 22px/1 var(--font-mono); color: var(--ink-0); }
.dw-gauge .num .l { font: 600 8.5px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-top: 4px; }

/* Three zones layout */
.dw-bench-zones {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}
.dw-bench-zone {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex; flex-direction: column;
}
.dw-bench-zone .zhead {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.dw-bench-zone .zhead .marker {
  width: 4px; height: 18px; border-radius: 2px; background: var(--brand);
}
.dw-bench-zone .zhead .title { font-size: 13px; font-weight: 600; color: var(--ink-0); }
.dw-bench-zone .zhead .sub   { font: 500 10px/1 var(--font-mono); text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); margin-left: auto; }
.dw-bench-zone .zbody { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.dw-bench-zone .zsection-label {
  font: 600 9.5px/1 var(--font-mono);
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--ink-3);
  display: flex; align-items: center; justify-content: space-between;
}
.dw-bench-zone .zsection-label .v { color: var(--ink-1); font-size: 11px; }

/* Compact rule list (used inside bench zones) */
.dw-bench-zone .gd-rules-list { border-radius: 8px; }
.dw-bench-zone .gd-rule { padding: 10px 12px; }
.dw-bench-zone .gd-rule-name { font-size: 12px; }
.dw-bench-zone .gd-rule-desc { font-size: 10.5px; }

.dw-bench-zone .gd-perm { padding: 10px 12px; grid-template-columns: 1fr; gap: 8px; }
.dw-bench-zone .gd-perm-name { font-size: 12px; }
.dw-bench-zone .gd-perm-desc { font-size: 10.5px; }

/* Make model grid/budget/audit fit narrower bench zones */
.dw-bench-zone .gd-model-grid { grid-template-columns: 1fr; gap: 8px; }
.dw-bench-zone .gd-model-card { padding: 12px; }
.dw-bench-zone .gd-budget-card { padding: 16px; max-width: 100%; }
.dw-bench-zone .gd-budget-card .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
.dw-bench-zone .gd-audit-table { font-size: 10px; }
.dw-bench-zone .gd-audit-head, .dw-bench-zone .gd-audit-row {
  grid-template-columns: 60px 60px 1fr 60px; gap: 8px; padding: 8px 10px;
}
.dw-bench-zone .gd-audit-head > div:nth-child(3),
.dw-bench-zone .gd-audit-row  > div:nth-child(3) { display: none; }
/* Show user, kind, prompt, status — collapse tokens & user into single col */
.dw-bench-zone .gd-audit-head > div:nth-child(5),
.dw-bench-zone .gd-audit-row  > div:nth-child(5) { display: none; }

/* ============================================================
   Density tweaks
============================================================ */
.dw-density-compact .dw-card-body { padding: 14px 18px 16px; }
.dw-density-compact .dw-card-head { padding: 11px 16px; }
.dw-density-compact .gd-rule { padding: 10px 14px; }
.dw-density-compact .dw-cockpit { gap: 18px; padding: 16px 22px 24px; }
.dw-density-compact .dw-employee-card { padding: 18px; }
.dw-density-compact .dw-bench { gap: 14px; padding: 16px 22px 24px; }

/* ============================================================
   Accent palette tweak — overrides --brand-locally
============================================================ */
.dw-accent-cyan  { --brand: #5EE6F0; --brand-soft: #9FF1F8; --brand-dim: #3892A0; }
.dw-accent-amber { --brand: #FFB454; --brand-soft: #FFD08A; --brand-dim: #B07827; }
.dw-accent-violet{ --brand: #A78BFA; --brand-soft: #C7B6FF; --brand-dim: #6E5BB8; }
/* ============================================================
   GROWTH CHAT REDESIGN — shared + 3 directions
============================================================ */

.gc-root { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.gc-root .gd-page-header { flex-shrink: 0; }

/* ============================================================
   DARWIN HEADER STRIP
============================================================ */
.gc-darwin-strip {
  display: flex; justify-content: space-between; align-items: center;
  gap: 18px; padding: 14px 24px;
  background:
    radial-gradient(circle at 8% 50%, rgba(255,45,120,0.06), transparent 50%),
    var(--bg-1);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.gc-darwin-strip .left { display: flex; align-items: center; gap: 14px; }
.gc-darwin-strip .meta .name {
  font-size: 16px; font-weight: 600; color: var(--ink-0); letter-spacing: -0.01em;
}
.gc-darwin-strip .meta .name .ver {
  font: 500 10px/1 var(--font-mono); color: var(--ink-3); margin-left: 6px;
}
.gc-darwin-strip .meta .role {
  display: flex; align-items: center; gap: 8px; margin-top: 4px;
  font: 500 11px/1 var(--font-mono); color: var(--ink-2);
  text-transform: uppercase; letter-spacing: .05em;
}
.gc-darwin-strip .meta .role .pip {
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 0 3px rgba(255,45,120,0.2);
  animation: gc-pulse 2s ease-in-out infinite;
}
.gc-darwin-strip .meta .role .brand { color: var(--brand); font-weight: 600; }
.gc-darwin-strip .meta .role .sep {
  width: 3px; height: 3px; border-radius: 50%; background: var(--ink-3);
}
.gc-darwin-strip .right .kpi { text-align: right; }
.gc-darwin-strip .right .kpi .v {
  font: 600 22px/1 var(--font-mono); color: var(--brand);
}
.gc-darwin-strip .right .kpi .l {
  font: 500 9.5px/1.3 var(--font-mono); text-transform: uppercase;
  letter-spacing: .08em; color: var(--ink-3); margin-top: 4px;
}
@keyframes gc-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255,45,120,0.18); }
  50%      { box-shadow: 0 0 0 6px rgba(255,45,120,0.05); }
}

/* ============================================================
   THREAD + MESSAGES
============================================================ */
.gc-thread {
  display: flex; flex-direction: column;
  min-width: 0; min-height: 0;
  background: var(--bg-0);
}
.gc-msgs {
  flex: 1; overflow-y: auto;
  padding: 22px 28px;
  display: flex; flex-direction: column; gap: 16px;
}

.gc-msg-row { display: flex; }
.gc-msg-row.user { justify-content: flex-end; }
.gc-msg-row.bot  { justify-content: flex-start; }

.gc-msg.user {
  max-width: 70%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px 12px 4px 12px;
  padding: 10px 14px;
  font-size: 13px; line-height: 1.5; color: var(--ink-0);
}

.gc-bot-bubble {
  max-width: 78%;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-left: 2px solid var(--brand);
  border-radius: 4px 12px 12px 12px;
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.gc-bot-bubble.loading {
  flex-direction: row; align-items: center; gap: 10px; padding: 10px 14px;
}

.gc-block-text {
  font-size: 13px; line-height: 1.55; color: var(--ink-1); margin: 0;
}
.gc-block-text strong { color: var(--ink-0); font-weight: 600; }
.gc-block-text code {
  font: 500 11.5px/1.4 var(--font-mono);
  background: var(--bg-2); border: 1px solid var(--line);
  padding: 1px 5px; border-radius: 4px; color: var(--brand);
}

.gc-block-bullets {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 6px;
}
.gc-block-bullets li {
  font-size: 12.5px; line-height: 1.5; color: var(--ink-1);
  padding-left: 16px; position: relative;
}
.gc-block-bullets li::before {
  content: ""; position: absolute; left: 4px; top: 8px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--brand);
}
.gc-block-bullets li strong { color: var(--ink-0); font-weight: 600; }
.gc-block-bullets li code {
  font: 500 11px/1.4 var(--font-mono);
  background: var(--bg-2); padding: 1px 4px; border-radius: 3px; color: var(--brand);
}

.gc-block-quote {
  margin: 0; padding: 8px 12px;
  background: var(--bg-2); border-left: 2px solid var(--ink-3);
  border-radius: 0 6px 6px 0;
  font-size: 12.5px; line-height: 1.5; color: var(--ink-2);
  font-style: italic;
}

/* Sources strip */
.gc-block-sources {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  padding-top: 4px; border-top: 1px dashed var(--line);
  margin-top: 2px;
}
.gc-block-sources .lead {
  font: 600 9px/1 var(--font-mono); color: var(--ink-3);
  text-transform: uppercase; letter-spacing: .08em; margin-right: 4px;
}

/* Source chips */
.gc-src {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px; border-radius: 999px;
  font: 600 10px/1 var(--font-mono);
  background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-1);
}
.gc-src .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3);
}
.gc-src-meta     { background: rgba(24,119,242,0.10); color: #6BAEF5; border-color: rgba(24,119,242,0.25); }
.gc-src-meta     .dot { background: #1877F2; }
.gc-src-google   { background: rgba(234,67,53,0.10); color: #F08F84; border-color: rgba(234,67,53,0.25); }
.gc-src-google   .dot { background: #EA4335; }
.gc-src-linkedin { background: rgba(10,102,194,0.12); color: #6FA8E0; border-color: rgba(10,102,194,0.3); }
.gc-src-linkedin .dot { background: #0A66C2; }
.gc-src-rd       { background: rgba(0,165,113,0.12); color: #4FCBA0; border-color: rgba(0,165,113,0.3); }
.gc-src-rd       .dot { background: #00A571; }
.gc-src-ga4      { background: rgba(246,168,3,0.12); color: #F2BB45; border-color: rgba(246,168,3,0.3); }
.gc-src-ga4      .dot { background: #F6A803; }
.gc-src-hubspot  { background: rgba(255,122,89,0.12); color: #FFA48F; border-color: rgba(255,122,89,0.3); }
.gc-src-hubspot  .dot { background: #FF7A59; }
.gc-src-matrix   { background: rgba(255,45,120,0.10); color: var(--brand); border-color: rgba(255,45,120,0.25); }
.gc-src-matrix   .dot { background: var(--brand); }

/* Inline metric card */
.gc-metric {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 10px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.gc-metric .lbl {
  font: 600 9.5px/1 var(--font-mono); text-transform: uppercase;
  letter-spacing: .08em; color: var(--ink-3); margin-bottom: 6px;
}
.gc-metric .row { display: flex; align-items: baseline; gap: 8px; }
.gc-metric .val {
  font: 600 20px/1 var(--font-mono); color: var(--ink-0);
}
.gc-metric .delta {
  font: 600 11px/1 var(--font-mono);
}
.gc-spark { display: block; flex-shrink: 0; }

/* Status badges (history + responses) */
.gc-status {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 7px; border-radius: 4px;
  font: 600 9.5px/1 var(--font-mono);
  text-transform: uppercase; letter-spacing: .04em;
}
.gc-status-hypothesis { background: rgba(255,45,120,0.10); color: var(--brand); border: 1px solid rgba(255,45,120,0.25); }
.gc-status-pending    { background: rgba(245,158,11,0.10); color: var(--pending); border: 1px solid rgba(245,158,11,0.3); }
.gc-status-exported   { background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--line); }

.gc-tag {
  display: inline-flex; padding: 2px 6px; border-radius: 3px;
  font: 500 9.5px/1.2 var(--font-mono); color: var(--ink-3);
  background: var(--bg-2); border: 1px solid var(--line);
}

/* Action bar — bottom of bot bubble */
.gc-actions {
  display: flex; gap: 4px; flex-wrap: wrap;
  padding-top: 4px; border-top: 1px dashed var(--line); margin-top: 2px;
}
.gc-actions button {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 9px; background: transparent; border: 1px solid var(--line);
  border-radius: 4px; color: var(--ink-2);
  font: 500 11px/1 var(--font-tight, "Inter Tight"); cursor: pointer;
  transition: all .12s;
}
.gc-actions button:hover { color: var(--brand); border-color: var(--brand); background: rgba(255,45,120,0.06); }
.gc-actions button .ico { font-size: 11px; }

/* Typing indicator */
.gc-typing { display: inline-flex; align-items: center; gap: 4px; }
.gc-typing span {
  width: 5px; height: 5px; border-radius: 50%; background: var(--brand);
  animation: gc-dot 1.2s ease-in-out infinite;
}
.gc-typing span:nth-child(2) { animation-delay: .15s; }
.gc-typing span:nth-child(3) { animation-delay: .3s; }
.gc-bot-bubble.loading .thinking {
  font: 500 11px/1 var(--font-mono); color: var(--ink-3);
  text-transform: uppercase; letter-spacing: .05em;
}
@keyframes gc-dot {
  0%, 80%, 100% { opacity: .3; transform: scale(.7); }
  40%           { opacity: 1; transform: scale(1); }
}

/* ============================================================
   COMPOSER
============================================================ */
.gc-composer {
  flex-shrink: 0; padding: 14px 24px 18px;
  border-top: 1px solid var(--line); background: var(--bg-1);
  display: flex; flex-direction: column; gap: 8px;
}
.gc-composer .hint {
  display: flex; align-items: center; gap: 6px;
  font: 500 10px/1 var(--font-mono); text-transform: uppercase;
  letter-spacing: .06em; color: var(--ink-3);
}
.gc-composer .hint .pip {
  width: 5px; height: 5px; border-radius: 50%; background: var(--brand);
}
.gc-composer .input-row {
  display: grid; grid-template-columns: 1fr 38px; gap: 10px; align-items: end;
}
.gc-composer textarea {
  resize: none; min-height: 42px; max-height: 140px;
  padding: 11px 14px; font-size: 13px; line-height: 1.5;
  background: var(--bg-0); border: 1px solid var(--line);
  border-radius: 8px; color: var(--ink-0); font-family: inherit;
  transition: border-color .15s;
}
.gc-composer textarea:focus { outline: none; border-color: var(--brand); }
.gc-composer .send {
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--brand); color: var(--brand-ink); border: none;
  font-size: 18px; font-weight: 700; cursor: pointer;
  transition: opacity .15s;
}
.gc-composer .send:hover:not(:disabled) { opacity: .85; }
.gc-composer .send:disabled { opacity: .3; cursor: not-allowed; }
.gc-composer .quick {
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
}
.gc-composer .quick .lbl {
  font: 500 10px/1 var(--font-mono); text-transform: uppercase;
  letter-spacing: .06em; color: var(--ink-3);
}
.gc-composer .quick button {
  padding: 5px 9px; background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 4px; color: var(--ink-2);
  font: 500 11px/1 var(--font-tight, "Inter Tight"); cursor: pointer;
  transition: all .12s;
}
.gc-composer .quick button:hover { color: var(--ink-0); border-color: var(--ink-3); }

/* ============================================================
   HISTORY (right rail) — enriched
============================================================ */
.gc-side {
  display: flex; flex-direction: column;
  background: var(--bg-1); border-left: 1px solid var(--line);
  min-height: 0; overflow: hidden;
}
.gc-side-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 13px 14px 11px; border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.gc-side-head .lbl {
  font: 600 11px/1 var(--font-mono); text-transform: uppercase;
  letter-spacing: .06em; color: var(--ink-2);
}
.gc-side-head .newconv {
  padding: 4px 10px; background: transparent; border: 1px solid var(--line);
  border-radius: 4px; color: var(--ink-2);
  font: 500 11px/1 var(--font-mono); cursor: pointer;
}
.gc-side-head .newconv:hover { color: var(--brand); border-color: var(--brand); }

.gc-hist {
  flex: 1; overflow-y: auto;
  padding: 8px 8px 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.gc-hist-search {
  position: sticky; top: 0; background: var(--bg-1); padding: 4px 4px 8px;
  z-index: 1;
}
.gc-hist-search input {
  width: 100%; padding: 8px 10px;
  background: var(--bg-0); border: 1px solid var(--line);
  border-radius: 6px; color: var(--ink-1);
  font-size: 12px; font-family: inherit;
}
.gc-hist-search input:focus { outline: none; border-color: var(--brand); }
.gc-hist-search input::placeholder { color: var(--ink-3); }

.gc-hist-group { display: flex; flex-direction: column; gap: 4px; }
.gc-hist-group > .head {
  display: flex; align-items: center; gap: 6px;
  padding: 4px 8px; font: 600 9.5px/1 var(--font-mono);
  text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3);
}

.gc-conv {
  display: flex; flex-direction: column; gap: 4px;
  padding: 9px 10px; border-radius: 6px;
  background: transparent; border: 1px solid transparent;
  text-align: left; cursor: pointer;
  transition: background .12s, border-color .12s;
}
.gc-conv:hover { background: var(--bg-2); }
.gc-conv.active { background: var(--bg-2); border-color: var(--brand); box-shadow: 0 0 0 1px rgba(255,45,120,0.15); }
.gc-conv.pinned::before {
  content: ""; position: absolute;
}
.gc-conv .row1 {
  display: flex; justify-content: space-between; align-items: baseline; gap: 6px;
}
.gc-conv .row1 .title {
  font-size: 12px; color: var(--ink-1); font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  flex: 1; min-width: 0; line-height: 1.35;
}
.gc-conv.active .row1 .title { color: var(--ink-0); }
.gc-conv .row1 .time {
  font: 500 9.5px/1 var(--font-mono); color: var(--ink-3); flex-shrink: 0;
}
.gc-conv .preview {
  font-size: 11px; line-height: 1.4; color: var(--ink-3);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.gc-conv .row3 { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }

/* ============================================================
   EMPTY STATE — 3 cols
============================================================ */
.gc-empty {
  flex: 1; display: flex; flex-direction: column; gap: 24px;
  padding: 28px 12px;
  max-width: 1080px; margin: 0 auto; width: 100%;
}
.gc-empty .hero {
  display: flex; gap: 18px; align-items: center;
  padding: 18px 22px; background: var(--bg-1);
  border: 1px solid var(--line); border-radius: 14px;
  background:
    radial-gradient(circle at 12% 50%, rgba(255,45,120,0.08), transparent 55%),
    var(--bg-1);
}
.gc-empty .hero .copy h2 {
  font-size: 22px; font-weight: 600; color: var(--ink-0);
  margin: 0 0 6px; letter-spacing: -0.02em;
}
.gc-empty .hero .copy p {
  font-size: 13px; line-height: 1.5; color: var(--ink-2); margin: 0;
}
.gc-empty .hero .copy strong { color: var(--brand); font-weight: 600; }

.gc-empty-cols {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px;
}
.gc-empty-cols .col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.gc-empty-cols .col > .head {
  font: 600 10px/1 var(--font-mono); text-transform: uppercase;
  letter-spacing: .08em; color: var(--ink-3); padding: 0 4px 4px;
}
.gc-empty-card {
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
  padding: 12px 14px;
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: 8px; text-align: left; cursor: pointer;
  transition: all .12s;
}
.gc-empty-card:hover { border-color: var(--brand); background: rgba(255,45,120,0.04); }
.gc-empty-card .card-title {
  font-size: 12.5px; font-weight: 500; color: var(--ink-0); line-height: 1.4;
}
.gc-empty-card .card-snip {
  font-size: 11.5px; color: var(--ink-2); line-height: 1.5;
}
.gc-empty-card.sugg {
  flex-direction: row; justify-content: space-between; align-items: center;
}
.gc-empty-card.sugg .q { font-size: 12px; color: var(--ink-1); line-height: 1.4; }
.gc-empty-card.sugg .ar { color: var(--ink-3); font-family: var(--font-mono); }
.gc-empty-card.sugg:hover .ar { color: var(--brand); }

.gc-tpl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gc-tpl {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px;
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: 8px; text-align: left; cursor: pointer;
  transition: all .12s;
}
.gc-tpl:hover { border-color: var(--brand); }
.gc-tpl .ico { font-size: 18px; line-height: 1; flex-shrink: 0; }
.gc-tpl .meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gc-tpl .intent {
  font: 600 9.5px/1 var(--font-mono); text-transform: uppercase;
  letter-spacing: .06em; color: var(--brand);
}
.gc-tpl .q {
  font-size: 11.5px; color: var(--ink-2); line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

/* ============================================================
   DIRECTION 1 — CONSOLE
============================================================ */
.gc-console { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.gc-console-body {
  flex: 1; display: grid; grid-template-columns: 1fr 280px;
  min-height: 0; overflow: hidden;
}

/* ============================================================
   DIRECTION 2 — BRIEFING
============================================================ */
.gc-briefing {
  flex: 1; display: grid; grid-template-columns: 280px 1fr 280px;
  min-height: 0; overflow: hidden;
}
.gc-thread.tall { /* same */ }

.gc-copilot {
  background: var(--bg-1); border-right: 1px solid var(--line);
  padding: 18px 16px;
  display: flex; flex-direction: column; gap: 14px;
  overflow-y: auto;
}
.gc-copilot-card {
  background: var(--bg-0); border: 1px solid var(--line);
  border-radius: 10px; padding: 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.gc-copilot-card:first-child {
  align-items: center; text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,45,120,0.10), transparent 55%),
    var(--bg-0);
}
.gc-copilot-card .name {
  font-size: 17px; font-weight: 600; color: var(--ink-0); letter-spacing: -0.01em;
  margin-top: 6px;
}
.gc-copilot-card .role {
  font: 500 10px/1.3 var(--font-mono); text-transform: uppercase;
  letter-spacing: .06em; color: var(--ink-3);
}
.gc-copilot-card .bubble {
  margin-top: 10px; padding: 10px 12px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-left: 2px solid var(--brand);
  border-radius: 4px 8px 8px 8px;
  font-size: 12px; line-height: 1.5; color: var(--ink-1); text-align: left;
}
.gc-copilot-card .bubble strong { color: var(--brand); }
.gc-copilot-card .head {
  font: 600 10px/1 var(--font-mono); text-transform: uppercase;
  letter-spacing: .08em; color: var(--ink-3); margin-bottom: 4px;
}
.gc-copilot-card.stats .row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12px; color: var(--ink-2);
  padding: 5px 0; border-bottom: 1px dashed var(--line);
}
.gc-copilot-card.stats .row:last-child { border-bottom: none; }
.gc-copilot-card.stats .row strong {
  font: 600 14px/1 var(--font-mono); color: var(--ink-0);
}
.gc-copilot-card.stats .row.alert strong { color: var(--pending); }

.gc-src-grid { display: flex; flex-wrap: wrap; gap: 5px; }
.gc-src-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; border-radius: 999px;
  font: 600 10px/1 var(--font-mono);
  background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-1);
}
.gc-src-pill .dot { width: 6px; height: 6px; border-radius: 50%; }
.gc-src-pill.src-meta     .dot { background: #1877F2; }
.gc-src-pill.src-google   .dot { background: #EA4335; }
.gc-src-pill.src-linkedin .dot { background: #0A66C2; }
.gc-src-pill.src-rd       .dot { background: #00A571; }
.gc-src-pill.src-ga4      .dot { background: #F6A803; }
.gc-src-pill.src-hubspot  .dot { background: #FF7A59; }
.gc-src-pill.src-matrix   .dot { background: var(--brand); }

/* ============================================================
   DIRECTION 3 — STREAM
============================================================ */
.gc-stream { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.gc-stream-rail {
  flex-shrink: 0;
  padding: 14px 24px 16px;
  background: var(--bg-1);
  border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px;
  max-height: 32vh; overflow-y: auto;
}
.gc-stream-rail .rail-section { display: flex; flex-direction: column; gap: 6px; }
.gc-stream-rail .rail-head {
  font: 600 9.5px/1 var(--font-mono); text-transform: uppercase;
  letter-spacing: .08em; color: var(--ink-3);
}
.gc-stream-rail .rail-row {
  display: flex; gap: 10px; overflow-x: auto;
  padding-bottom: 4px;
}
.rail-card {
  flex-shrink: 0; min-width: 220px; max-width: 240px;
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
  padding: 10px 12px;
  background: var(--bg-0); border: 1px solid var(--line);
  border-radius: 8px; text-align: left; cursor: pointer;
  transition: all .12s;
}
.rail-card:hover { border-color: var(--brand); }
.rail-card.active {
  border-color: var(--brand); box-shadow: 0 0 0 1px rgba(255,45,120,0.18);
  background: rgba(255,45,120,0.04);
}
.rail-card.pinned {
  background:
    linear-gradient(135deg, rgba(255,45,120,0.06), transparent 50%),
    var(--bg-0);
}
.rail-card .title {
  font-size: 12px; font-weight: 500; color: var(--ink-0); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.rail-card .time {
  font: 500 9.5px/1 var(--font-mono); color: var(--ink-3);
}
.rail-card.new {
  align-items: center; justify-content: center;
  border-style: dashed;
}
.rail-card.new .plus {
  font-size: 22px; color: var(--ink-3); line-height: 1;
}
.rail-card.new .title { color: var(--ink-3); text-align: center; }
.rail-card.new:hover .plus,
.rail-card.new:hover .title { color: var(--brand); }

/* ============================================================
   DENSITY
============================================================ */
.density-compact .gc-msgs { padding: 14px 20px; gap: 10px; }
.density-compact .gc-bot-bubble { padding: 11px 13px; gap: 8px; }
.density-compact .gc-composer { padding: 10px 18px 12px; }
.density-compact .gc-darwin-strip { padding: 10px 20px; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1280px) {
  .gc-briefing { grid-template-columns: 240px 1fr 240px; }
}
@media (max-width: 1080px) {
  .gc-briefing { grid-template-columns: 1fr; }
  .gc-briefing .gc-copilot,
  .gc-briefing .gc-side { display: none; }
  .gc-console-body { grid-template-columns: 1fr; }
  .gc-console-body .gc-side { display: none; }
  .gc-empty-cols { grid-template-columns: 1fr; }
}
