/* Topic bubbles under a project tab's chat tabs (public/chat-threads.js, drawn in app.js). One quiet row that
   scrolls sideways; each bubble looks small but keeps a 44px tap target. No entrance animation: the row is redrawn
   with the chat and must never blink. */
.topic-bubbles { flex: none; display: flex; gap: 2px; margin: -8px 0 8px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.topic-bubbles::-webkit-scrollbar { display: none; }
.topic-bubble {
  flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; border: 0; background: none;
  color: var(--ink-2); font: inherit; font-size: 13px; cursor: pointer;
}
.topic-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--line-2);
  border-radius: 999px; background: var(--wash); white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.topic-name { max-width: 14em; overflow: hidden; text-overflow: ellipsis; }
.topic-bubble:hover .topic-pill { color: var(--ink); background: var(--fill-2); }
.topic-bubble[aria-pressed="true"] .topic-pill { background: var(--butter-soft); border-color: var(--butter-edge); color: var(--butter-ink); font-weight: 600; }
.topic-bubble.quiet .topic-pill { border-style: dashed; color: var(--ink-3); }
.topic-bubble.quiet[aria-pressed="true"] .topic-pill { border-style: solid; color: var(--butter-ink); }
.topic-bubble:focus-visible { outline: none; }
.topic-bubble:focus-visible .topic-pill { outline: 2px solid var(--pen); outline-offset: 1px; }
.topic-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--rust); }

/* Under a picked topic: one quiet button to mark it done or open it again. */
.topic-foot { display: flex; justify-content: center; flex: none; }
.topic-act {
  min-height: 44px; padding: 0 18px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--card);
  color: var(--ink-2); font: inherit; font-size: 14px; cursor: pointer;
}
.topic-act:hover { color: var(--ink); background: var(--hover); }
.topic-act:focus-visible { outline: 2px solid var(--pen); outline-offset: 1px; }

@media (max-width: 430px) {
  .topic-name { max-width: 10em; }
}

@media (prefers-reduced-motion: reduce) {
  .topic-pill { transition: none; }
}
