/* The3dogs assistant — local demo agent UI. Monochrome by design. */
.agent-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.agent-chat { display: flex; flex-direction: column; min-height: 560px; }
.agent-thread { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 4px 2px 12px; max-height: 52vh; }
.agent-msg { max-width: 92%; }
.agent-msg.is-user { align-self: flex-end; }
.agent-who { display: block; font-size: 9px; text-transform: uppercase; letter-spacing: .14em; color: var(--faint); margin-bottom: 5px; }
.agent-bubble {
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
  background: rgba(255,255,255, .02); color: var(--text-2); font-size: 12px; line-height: 1.6;
}
.agent-msg.is-agent .agent-bubble { background: rgba(255,255,255, .04); border-color: var(--line-2); color: var(--text); }
.agent-msg.is-user .agent-bubble { background: rgba(255,255,255, .09); border-color: var(--line-3); }
.agent-bullets { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.agent-bullet {
  display: flex; align-items: center; gap: 8px; text-align: left; width: 100%;
  padding: 9px 10px; border: 1px solid var(--line); border-radius: 9px;
  background: rgba(255,255,255, .015); color: var(--text-2); transition: background 150ms ease, border-color 150ms ease;
}
.agent-bullet:hover { background: rgba(255,255,255, .05); border-color: var(--line-3); }
.agent-bullet-label { font-size: 11.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent-bullet-detail { font-size: 9.5px; color: var(--faint); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent-bullet .ic { color: var(--faint); flex: 0 0 auto; }
.agent-prompts { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 0 10px; border-top: 1px solid var(--line); }
.agent-compose { display: flex; gap: 8px; }
.agent-compose .input { flex: 1; min-width: 0; }
.agent-suggestions { display: flex; flex-direction: column; }
.agent-suggestion {
  display: flex; align-items: center; gap: 11px; text-align: left; width: 100%;
  padding: 11px 2px; border-top: 1px solid var(--line); color: var(--text-2);
}
.agent-suggestion:first-child { border-top: 0; }
.agent-suggestion:hover .agent-sugg-title { color: var(--text); }
.agent-sugg-ic {
  width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2); background: rgba(255,255,255, .03); color: var(--text-2); flex: 0 0 auto;
}
.agent-sugg-ic.tone-red { color: #fff; }
.agent-sugg-ic.tone-violet { color: var(--faint); }
.agent-sugg-title { display: block; font-size: 12px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 150ms ease; }
.agent-sugg-reason { display: block; font-size: 9.5px; color: var(--faint); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent-sugg-score { font-size: 10px; color: var(--faint); font-variant-numeric: tabular-nums; }
.agent-signals { display: flex; flex-direction: column; gap: 10px; }
.agent-signal { padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255, .015); }
.agent-signal-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.agent-signal-title { font-size: 11.5px; color: var(--text); font-weight: 500; }
.agent-signal-reason { font-size: 10px; color: var(--muted); line-height: 1.55; margin: 6px 0 8px; }
.agent-code-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding-bottom: 12px; }
.agent-code-list { display: flex; flex-direction: column; }
.agent-code-row {
  display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-top: 1px solid var(--line); color: var(--text-2);
}
.agent-code-row:first-child { border-top: 0; }
.agent-code-ref { font-size: 9px; color: var(--faint); border: 1px solid var(--line-2); border-radius: 6px; padding: 3px 6px; white-space: nowrap; }
.agent-code-title { display: block; font-size: 11.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent-code-meta { display: block; font-size: 9.5px; color: var(--faint); margin-top: 2px; }
.agent-code-row .ic { color: var(--faint); flex: 0 0 auto; }

/* project code tab */
.repo-list { display: flex; flex-direction: column; gap: 9px; }
.repo-card { border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px; background: rgba(255,255,255,.015); }
.repo-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.repo-name { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text); }
.repo-name .ic { color: var(--faint); }
.repo-meta { font-size: 9.5px; color: var(--faint); margin-top: 5px; }
.gh-feed { display: flex; flex-direction: column; }
.gh-row { display: flex; align-items: flex-start; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); }
.gh-row:first-child { border-top: 0; }
.gh-ref { font-size: 9px; color: var(--faint); border: 1px solid var(--line-2); border-radius: 6px; padding: 3px 6px; white-space: nowrap; margin-top: 2px; }
.gh-title { display: block; font-size: 11.5px; color: var(--text); }
.gh-detail { display: block; font-size: 10px; color: var(--muted); line-height: 1.5; margin-top: 3px; }
.gh-meta { display: block; font-size: 9px; color: var(--faint); margin-top: 4px; }

/* linked AI briefs */
.brief-useful { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.brief-useful > span { font-size: 9px; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); }
.brief-useful a { font-size: 9.5px; color: var(--text-2); border: 1px solid var(--line-2); border-radius: 20px; padding: 3px 8px; }
.brief-useful a:hover { border-color: var(--line-3); color: var(--text); }

@media (max-width: 1040px) {
  .agent-grid { grid-template-columns: minmax(0, 1fr); }
  .agent-chat { min-height: 480px; }
  .agent-thread { max-height: 46vh; }
}
@media (max-width: 700px) {
  .agent-prompts { gap: 5px; }
  .agent-compose { flex-direction: column; }
  .agent-compose .btn { width: 100%; }
  .agent-bullet-detail { display: none; }
}
