#agentsConsole {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  background: #0c0d10;
  color: #f4f1ea;
  overflow: auto;
  padding: 28px 32px 48px;
}

body.agents-console-open #agentsConsole { display: block !important; }
body.agents-console-open #caseBoard { display: none !important; }
body.agents-console-open #startOverlay { display: none !important; }

.agents-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.agents-head h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 32px;
  font-weight: 500;
}
.agents-counts {
  margin: 6px 0 0;
  color: rgba(244, 241, 234, 0.62);
  font-size: 14px;
}
.agents-close {
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}
.agents-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}
.agents-filters {
  display: flex;
  gap: 6px;
}
.agents-filters button,
.agents-actions button {
  border: 0;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 13px;
}
.agents-filters button.is-on {
  background: #f4f1ea;
  color: #111;
}
.agents-search {
  flex: 1 1 180px;
  min-width: 160px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: inherit;
  border-radius: 10px;
  padding: 8px 12px;
}
.agents-group { margin-bottom: 28px; }
.agents-group h3 {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.5);
}
.agents-row {
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.03);
}
.agents-row-main {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.agents-title {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  padding: 0;
  cursor: text;
  text-align: left;
}
.agents-title-input {
  font: inherit;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: inherit;
  border-radius: 8px;
  padding: 2px 8px;
}
.agents-pill {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.08);
}
.agents-pill--running { background: rgba(120, 190, 130, 0.22); }
.agents-pill--awaiting_credits,
.agents-pill--clarifying,
.agents-pill--awaiting_extend { background: rgba(220, 180, 90, 0.22); }
.agents-pill--completed { background: rgba(255, 255, 255, 0.1); }
.agents-pill--failed,
.agents-pill--cancelled { background: rgba(200, 90, 80, 0.2); }
.agents-meta,
.agents-step,
.agents-with {
  font-size: 13px;
  color: rgba(244, 241, 234, 0.58);
}
.agents-with { margin: 6px 0 0; }
.agents-actions { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.agents-expand {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 14px;
}
.agents-expand h4 {
  margin: 0 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(244, 241, 234, 0.5);
}
.agents-expand p,
.agents-activity {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
}
.agents-activity { padding-left: 16px; }
.agents-activity-item time {
  display: inline-block;
  min-width: 3.4em;
  margin-right: 8px;
  color: rgba(244, 241, 234, 0.38);
  font-variant-numeric: tabular-nums;
}
.agents-activity-item em {
  margin-left: 8px;
  font-style: normal;
  color: rgba(244, 241, 234, 0.45);
}
.agents-activity-item--tool {
  color: rgba(244, 241, 234, 0.7);
}
.agents-activity-item--text {
  color: rgba(244, 241, 234, 0.78);
}
.agents-activity-item--thinking {
  color: rgba(244, 241, 234, 0.48);
  font-style: italic;
}
.agents-activity-item--status {
  color: rgba(244, 241, 234, 0.55);
}
.agents-activity-item--error {
  color: rgba(220, 120, 110, 0.95);
}
.agents-empty {
  color: rgba(244, 241, 234, 0.5);
}
.chat-qa-actions--choices {
  display: flex;
  gap: 8px;
}
.chat-qa-choice {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
}

@media (max-width: 720px) {
  #agentsConsole { padding: 18px 16px 32px; }
  .agents-head h2 { font-size: 26px; }
}
