/* ============================================================
   Assistant V2 — full-page UI
   Modern, professional, dark-mode-ready. No bundler, no preprocessor.
   ============================================================ */

/* ---------- Design tokens (light) ---------- */
:root {
  /* Brand */
  --asst-brand: #16a34a;
  --asst-brand-strong: #15803d;
  --asst-brand-soft: rgba(22, 163, 74, 0.08);
  --asst-brand-soft-2: rgba(22, 163, 74, 0.16);

  /* Surfaces */
  --asst-bg: #fafaf9;
  --asst-bg-elevated: #ffffff;
  --asst-bg-sidebar: #f4f4f3;
  --asst-bg-hover: rgba(15, 23, 42, 0.04);

  /* Typography */
  --asst-text: #1c1d1f;
  --asst-text-muted: #6b7280;
  --asst-text-faint: #9ca3af;
  --asst-text-on-brand: #ffffff;

  /* Borders */
  --asst-border: rgba(15, 23, 42, 0.08);
  --asst-border-strong: rgba(15, 23, 42, 0.16);

  /* Bubbles */
  --asst-bubble-user-bg: #f1f5f9;
  --asst-bubble-user-text: #0f172a;
  --asst-bubble-assistant-bg: transparent;
  --asst-bubble-assistant-text: #1c1d1f;

  /* Accents */
  --asst-accent-success: #16a34a;
  --asst-accent-warning: #d97706;
  --asst-accent-danger: #dc2626;

  /* Effects */
  --asst-shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 1px rgba(15, 23, 42, 0.02);
  --asst-shadow-card: 0 4px 16px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);
  --asst-shadow-lifted: 0 12px 32px rgba(15, 23, 42, 0.12);
  --asst-skeleton: rgba(15, 23, 42, 0.08);
  --asst-skeleton-highlight: rgba(255, 255, 255, 0.72);

  /* Layout */
  --asst-sidebar-width: 260px;
  --asst-sidebar-width-collapsed: 0px;
  --asst-topbar-height: 56px;
  --asst-content-max-width: 768px;
  --asst-radius-sm: 6px;
  --asst-radius-md: 10px;
  --asst-radius-lg: 14px;
  --asst-radius-xl: 20px;

  /* Typography */
  --asst-font-body: "Inter", "Public Sans", "Source Sans 3", "Noto Sans", system-ui, sans-serif;
  --asst-font-display: "Source Serif 4", "Libre Baskerville", Georgia, serif;
  --asst-font-mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
}

/* ---------- Dark theme ---------- */
html[data-theme="dark"] {
  --asst-brand: #22c55e;
  --asst-brand-strong: #16a34a;
  --asst-brand-soft: rgba(34, 197, 94, 0.14);
  --asst-brand-soft-2: rgba(34, 197, 94, 0.24);

  --asst-bg: #1a1b1e;
  --asst-bg-elevated: #232427;
  --asst-bg-sidebar: #18191b;
  --asst-bg-hover: rgba(255, 255, 255, 0.05);

  --asst-text: #e9eaec;
  --asst-text-muted: #9aa0a6;
  --asst-text-faint: #6b7280;

  --asst-border: rgba(255, 255, 255, 0.08);
  --asst-border-strong: rgba(255, 255, 255, 0.18);

  --asst-bubble-user-bg: #2a2c30;
  --asst-bubble-user-text: #e9eaec;
  --asst-bubble-assistant-text: #e9eaec;

  --asst-shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.4);
  --asst-shadow-card: 0 4px 16px rgba(0, 0, 0, 0.4);
  --asst-shadow-lifted: 0 12px 32px rgba(0, 0, 0, 0.5);
  --asst-skeleton: rgba(255, 255, 255, 0.09);
  --asst-skeleton-highlight: rgba(255, 255, 255, 0.08);
}

/* ---------- Reset + base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: var(--asst-font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--asst-text);
  background: var(--asst-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.assistant-body {
  overflow: hidden;
}

button { font-family: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.5; }
[hidden] { display: none !important; }

.assistant-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.assistant-spinner {
  display: inline-block;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: assistant-spin 0.8s linear infinite;
}

button.is-pending {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.assistant-skeleton {
  display: block;
  border-radius: var(--asst-radius-sm);
  background:
    linear-gradient(90deg, transparent, var(--asst-skeleton-highlight), transparent),
    var(--asst-skeleton);
  background-size: 220% 100%, 100% 100%;
  animation: assistant-skeleton-wave 1.35s ease-in-out infinite;
}

@keyframes assistant-skeleton-wave {
  from { background-position: 180% 0, 0 0; }
  to { background-position: -40% 0, 0 0; }
}

.assistant-composer__stop {
  background: var(--asst-accent-danger);
  color: #fff;
}

a { color: inherit; text-decoration: none; }

/* ---------- Layout shell ---------- */
.assistant-shell {
  display: grid;
  grid-template-columns: var(--asst-sidebar-width) 1fr;
  height: 100vh;
  overflow: hidden;
  background: var(--asst-bg);
}

.assistant-shell.is-sidebar-collapsed {
  grid-template-columns: 0px 1fr;
}

.assistant-shell.is-sidebar-collapsed .assistant-sidebar {
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
}

/* ---------- Sidebar ---------- */
.assistant-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--asst-bg-sidebar);
  border-right: 1px solid var(--asst-border);
  transition: transform 200ms ease, opacity 200ms ease;
}

.assistant-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--asst-border);
}

.assistant-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--asst-text);
  font-weight: 600;
}

.assistant-brand__mark img {
  width: 24px;
  height: 24px;
  display: block;
}

.assistant-brand__label {
  font-size: 14px;
  letter-spacing: 0.04em;
}

.assistant-new-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px;
  padding: 10px 14px;
  border: 1px solid var(--asst-border-strong);
  background: var(--asst-bg-elevated);
  color: var(--asst-text);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--asst-radius-md);
  box-shadow: var(--asst-shadow-soft);
  transition: background 120ms ease, border-color 120ms ease;
}

.assistant-new-btn:hover {
  background: var(--asst-brand-soft);
  border-color: var(--asst-brand);
  color: var(--asst-brand-strong);
}

.assistant-thread-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 8px 16px;
  min-height: 0;
}

.assistant-thread-skeleton {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
}

.assistant-skeleton--thread { height: 10px; }

.assistant-skeleton--thread-action {
  width: 20px;
  height: 20px;
  margin-left: auto;
  border-radius: 50%;
}

.assistant-thread-list__group-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--asst-text-faint);
  padding: 12px 10px 6px;
}

.assistant-thread-item {
  display: flex;
  align-items: center;
  gap: 2px;
  width: 100%;
  padding: 0 4px 0 12px;
  margin-bottom: 2px;
  border-radius: var(--asst-radius-sm);
  color: var(--asst-text);
  transition: background 100ms ease;
}

.assistant-thread-item:hover { background: var(--asst-bg-hover); }
.assistant-thread-item.is-active {
  background: var(--asst-brand-soft);
  color: var(--asst-brand-strong);
}
.assistant-thread-item.is-loading { background: var(--asst-bg-hover); }
.assistant-thread-item.is-active .assistant-thread-item__main { font-weight: 500; }

/* The selectable label fills the row; the title truncates with an ellipsis. */
.assistant-thread-item__main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  background: none;
  border: 0;
  padding: 8px 0;
  color: inherit;
  font-size: 13.5px;
  line-height: 1.35;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.assistant-thread-item__main .assistant-spinner {
  width: 12px;
  height: 12px;
  border-width: 1.5px;
}

.assistant-thread-item__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* A background conversation the assistant is still writing to. A pulsing dot
   rather than a spinner: it sits at the end of a row the user is not looking
   at, so it must read as a status, not compete for attention. */
.assistant-thread-item__generating {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--asst-accent, currentColor);
  animation: assistant-thread-pulse 1.4s ease-in-out infinite;
}

@keyframes assistant-thread-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50%      { opacity: 1;    transform: scale(1); }
}

/* Hovering the row reveals its actions; keep the dot from colliding with them. */
.assistant-thread-item:hover .assistant-thread-item__generating,
.assistant-thread-item:focus-within .assistant-thread-item__generating {
  margin-right: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .assistant-thread-item__generating { animation: none; opacity: 0.9; }
}

/* Per-row actions: hidden until the row is hovered or focused. */
.assistant-thread-item__actions {
  display: flex;
  align-items: center;
  gap: 1px;
  flex: 0 0 auto;
  opacity: 0;
  transition: opacity 100ms ease;
}
.assistant-thread-item:hover .assistant-thread-item__actions,
.assistant-thread-item:focus-within .assistant-thread-item__actions {
  opacity: 1;
}

.assistant-thread-item__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: var(--asst-radius-sm);
  background: none;
  color: var(--asst-text-muted);
  cursor: pointer;
  font-size: 13px;
  transition: background 100ms ease, color 100ms ease;
}
.assistant-thread-item__action:hover {
  background: rgba(127, 127, 127, 0.18);
  color: var(--asst-text);
}
.assistant-thread-item__action--danger:hover {
  color: var(--asst-accent-danger);
}

.assistant-thread-list__empty {
  padding: 24px 16px;
  color: var(--asst-text-faint);
  font-size: 13px;
  text-align: center;
}

.assistant-thread-list__error .assistant-btn { margin-top: 8px; }

.assistant-sidebar__footer {
  border-top: 1px solid var(--asst-border);
  padding: 12px 16px;
}

.assistant-footer-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--asst-text-muted);
  font-size: 13px;
  padding: 6px 8px;
  border-radius: var(--asst-radius-sm);
  transition: background 100ms ease, color 100ms ease;
}

.assistant-footer-link:hover {
  background: var(--asst-bg-hover);
  color: var(--asst-text);
}

/* ---------- Main + topbar ---------- */
.assistant-main {
  display: grid;
  grid-template-rows: var(--asst-topbar-height) 1fr auto;
  min-height: 0;
  overflow: hidden;
  background: var(--asst-bg);
}

.assistant-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-bottom: 1px solid var(--asst-border);
  background: var(--asst-bg);
}

.assistant-topbar__sidebar-toggle {
  display: none;
}

.assistant-shell.is-sidebar-collapsed .assistant-topbar__sidebar-toggle {
  display: inline-flex;
}

.assistant-topbar__context {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  font-size: 13px;
  color: var(--asst-text-muted);
}

.assistant-topbar__label {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--asst-text-faint);
}

.assistant-topbar__project {
  color: var(--asst-text);
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.assistant-topbar__sep { color: var(--asst-text-faint); }
.assistant-topbar__source { color: var(--asst-text-muted); }

.assistant-topbar__project.is-loading,
.assistant-topbar__source.is-loading {
  color: transparent;
  border-radius: 4px;
  background:
    linear-gradient(90deg, transparent, var(--asst-skeleton-highlight), transparent),
    var(--asst-skeleton);
  background-size: 220% 100%, 100% 100%;
  animation: assistant-skeleton-wave 1.35s ease-in-out infinite;
}

.assistant-topbar__project.is-loading { width: 136px; }
.assistant-topbar__source.is-loading { width: 176px; }

.assistant-topbar__thread {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.assistant-topbar__thread.is-pending::after {
  content: "";
  width: 13px;
  height: 13px;
  border: 2px solid var(--asst-text-muted);
  border-right-color: transparent;
  border-radius: 50%;
  animation: assistant-spin 0.8s linear infinite;
}

.assistant-topbar__thread-title {
  background: none;
  border: 0;
  padding: 4px 8px;
  border-radius: var(--asst-radius-sm);
  color: var(--asst-text);
  font-weight: 500;
  font-size: 14px;
  max-width: 360px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: text;
  transition: background 100ms ease, box-shadow 100ms ease;
}

.assistant-topbar__thread-title:hover {
  background: var(--asst-bg-hover);
}

.assistant-topbar__thread-title:focus,
.assistant-topbar__thread-title.is-editing {
  outline: 0;
  background: var(--asst-bg-elevated);
  box-shadow: 0 0 0 2px var(--asst-brand-soft-2);
}

.assistant-topbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.assistant-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  background: none;
  color: var(--asst-text-muted);
  border-radius: var(--asst-radius-md);
  font-size: 18px;
  transition: background 100ms ease, color 100ms ease;
}

.assistant-icon-btn:hover {
  background: var(--asst-bg-hover);
  color: var(--asst-text);
}

.assistant-auto-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border: 1px solid var(--asst-border-strong);
  border-radius: 999px;
  background: var(--asst-bg-elevated);
  color: var(--asst-text);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 100ms ease, border-color 100ms ease, color 100ms ease;
}

.assistant-auto-pill:hover {
  background: var(--asst-brand-soft);
  border-color: var(--asst-brand);
  color: var(--asst-brand-strong);
}

.assistant-auto-pill i {
  font-size: 14px;
  color: var(--asst-brand);
}

.assistant-auto-pill__count {
  font-weight: 700;
}

.assistant-auto-pill__label {
  color: var(--asst-text-muted);
}

.assistant-auto-pill:hover .assistant-auto-pill__label {
  color: var(--asst-brand-strong);
}

.assistant-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--asst-brand-soft);
  color: var(--asst-brand-strong);
  font-size: 16px;
}

/* ---------- Conversation stream ---------- */
.assistant-conversation {
  overflow-y: auto;
  /* Never let inner content grow the scroll area horizontally: wide tables
     scroll inside .assistant-tablewrap__scroll, code blocks inside their
     <pre>. Without this, one wide element (possibly scrolled out of view)
     adds a phantom full-width horizontal scrollbar to the conversation. */
  overflow-x: hidden;
  padding: 24px 24px 8px;
  scroll-behavior: smooth;
}

.assistant-stream {
  max-width: var(--asst-content-max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-bottom: 12px;
}

.assistant-msg--skeleton { min-height: 90px; }

.assistant-msg-skeleton__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 2px;
}

.assistant-skeleton--avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
}

.assistant-skeleton--eyebrow {
  width: 72px;
  height: 8px;
  margin-bottom: 3px;
}

.assistant-skeleton--line {
  height: 11px;
  max-width: 100%;
}

.assistant-welcome {
  max-width: var(--asst-content-max-width);
  margin: clamp(8vh, 12vh, 14vh) auto 0;
  text-align: center;
  padding: 24px;
}

.assistant-welcome__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--asst-brand-soft);
  color: var(--asst-brand-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.assistant-welcome__title {
  font-family: var(--asst-font-display);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  margin: 0 0 10px;
  color: var(--asst-text);
}

.assistant-welcome__subtitle {
  color: var(--asst-text-muted);
  font-size: 15px;
  margin: 0 0 28px;
}

.assistant-welcome__suggestions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  max-width: 640px;
  margin: 0 auto;
}

.assistant-suggestion {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  background: var(--asst-bg-elevated);
  border: 1px solid var(--asst-border);
  border-radius: var(--asst-radius-md);
  padding: 12px 14px;
  color: var(--asst-text);
  font-size: 13.5px;
  line-height: 1.4;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.assistant-suggestion:hover {
  border-color: var(--asst-brand);
  background: var(--asst-brand-soft);
  transform: translateY(-1px);
}

.assistant-suggestion i {
  color: var(--asst-brand-strong);
  flex-shrink: 0;
}

/* ---------- Messages ---------- */
.assistant-msg {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.assistant-msg__avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  background: var(--asst-brand-soft);
  color: var(--asst-brand-strong);
}

.assistant-msg--user .assistant-msg__avatar {
  background: var(--asst-bubble-user-bg);
  color: var(--asst-bubble-user-text);
}

.assistant-msg__body {
  flex: 1;
  min-width: 0;
}

.assistant-msg__role {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--asst-text-faint);
  margin-bottom: 4px;
}

.assistant-msg__progress {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--asst-text-muted);
  font-size: 13px;
  line-height: 1.4;
}

.assistant-msg__progress .assistant-spinner {
  width: 13px;
  height: 13px;
  border-width: 1.5px;
  color: var(--asst-brand-strong);
}

.assistant-msg__progress-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.assistant-msg__progress-dots i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
  animation: assistant-progress-dot 1.2s ease-in-out infinite;
}

.assistant-msg__progress-dots i:nth-child(2) { animation-delay: 0.16s; }
.assistant-msg__progress-dots i:nth-child(3) { animation-delay: 0.32s; }

@keyframes assistant-progress-dot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 0.9; transform: translateY(-2px); }
}

.assistant-msg__notice {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 10px 0 0;
  color: var(--asst-text-muted);
  font-size: 12.5px;
}

.assistant-msg__notice--error { color: var(--asst-accent-danger); }

/* Recovery action under an error notice (e.g. "Réessayer" on a run stopped by
   a connection drop or the server deadline). */
.assistant-msg__notice-actions {
  display: flex;
  gap: 8px;
  margin: 8px 0 0;
}

/* Copy-message button: invisible at rest, revealed on message hover or
   keyboard focus; short success/failure feedback via icon + color swap. */
.assistant-msg__copy {
  border: none;
  background: transparent;
  padding: 1px 5px;
  margin-left: 8px;
  border-radius: 6px;
  color: var(--asst-text-faint);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  vertical-align: middle;
  transition: opacity 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.assistant-msg:hover .assistant-msg__copy,
.assistant-msg__copy:focus-visible {
  opacity: 1;
}

.assistant-msg__copy:hover {
  color: var(--asst-text);
  background: var(--asst-brand-soft);
}

.assistant-msg__copy--done {
  color: var(--asst-accent-success);
  opacity: 1;
}

.assistant-msg__copy--failed {
  color: var(--asst-accent-danger);
  opacity: 1;
}

/* Join path line on proposal cards: long chains must wrap, not overflow. */
.assistant-artifact__joinpath {
  margin-top: 6px;
  overflow-wrap: anywhere;
}

/* Footer actions row under each message (second copy affordance). */
.assistant-msg__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
}

.assistant-msg__actions .assistant-msg__copy {
  margin-left: 0;
  font-size: 13px;
  padding: 3px 6px;
}

/* Copyable Markdown tables: wrapper + floating button (top-right), revealed
   when hovering the table itself. The inner scroller contains wide tables —
   they scroll in place instead of overflowing the whole conversation (which
   showed a full-width horizontal scrollbar, with the culprit table possibly
   scrolled out of view). */
.assistant-tablewrap {
  position: relative;
  max-width: 100%;
  margin: 0 0 12px;
}

.assistant-tablewrap__scroll {
  overflow-x: auto;
}

.assistant-tablewrap table {
  margin: 0;
}

.assistant-tablewrap .assistant-table-copy {
  position: absolute;
  top: 2px;
  right: 2px;
  margin-left: 0;
  background: var(--asst-brand-soft);
}

.assistant-tablewrap:hover .assistant-table-copy,
.assistant-tablewrap .assistant-table-copy:focus-visible {
  opacity: 1;
}

/* "Copier le JSON" inside the technical-details disclosure: always readable
   once the block is open (no hover-reveal there). */
.assistant-json-copy {
  margin: 6px 0 2px;
  margin-left: 0;
  opacity: 0.75;
}

.assistant-json-copy:hover {
  opacity: 1;
}

.assistant-msg__content {
  font-size: 15px;
  line-height: 1.65;
  color: var(--asst-text);
  word-wrap: break-word;
}

.assistant-msg--user .assistant-msg__content {
  background: var(--asst-bubble-user-bg);
  color: var(--asst-bubble-user-text);
  padding: 12px 16px;
  border-radius: var(--asst-radius-lg);
  display: inline-block;
  max-width: 100%;
  white-space: pre-wrap;
}

/* Markdown rendered output */
.assistant-msg__content p {
  margin: 0 0 12px;
}
.assistant-msg__content p:last-child { margin-bottom: 0; }

.assistant-msg__content h1,
.assistant-msg__content h2,
.assistant-msg__content h3 {
  margin: 18px 0 10px;
  font-weight: 600;
  line-height: 1.3;
}
.assistant-msg__content h1 { font-size: 1.4rem; }
.assistant-msg__content h2 { font-size: 1.2rem; }
.assistant-msg__content h3 { font-size: 1.05rem; }

.assistant-msg__content ul,
.assistant-msg__content ol {
  margin: 0 0 12px;
  padding-left: 24px;
}
.assistant-msg__content li { margin-bottom: 4px; }

.assistant-msg__content code {
  font-family: var(--asst-font-mono);
  font-size: 0.88em;
  background: var(--asst-bg-hover);
  padding: 2px 5px;
  border-radius: 4px;
}

.assistant-msg__content pre {
  background: var(--asst-bg-sidebar);
  border: 1px solid var(--asst-border);
  border-radius: var(--asst-radius-md);
  padding: 12px 14px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 12px;
}

.assistant-msg__content pre code {
  background: none;
  padding: 0;
  font-size: inherit;
}

.assistant-msg__content blockquote {
  margin: 0 0 12px;
  padding: 6px 14px;
  border-left: 3px solid var(--asst-brand);
  color: var(--asst-text-muted);
  background: var(--asst-brand-soft);
  border-radius: 0 var(--asst-radius-sm) var(--asst-radius-sm) 0;
}

.assistant-msg__content table {
  border-collapse: collapse;
  margin: 0 0 12px;
  font-size: 13.5px;
}
.assistant-msg__content th,
.assistant-msg__content td {
  border: 1px solid var(--asst-border);
  padding: 6px 10px;
}
.assistant-msg__content th {
  background: var(--asst-bg-sidebar);
  text-align: left;
  font-weight: 600;
}

.assistant-msg__content a {
  color: var(--asst-brand-strong);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Typing cursor (during streaming) */
.assistant-msg__cursor {
  display: inline-block;
  width: 6px;
  height: 1em;
  background: var(--asst-brand);
  vertical-align: -2px;
  margin-left: 2px;
  animation: assistant-blink 1s steps(2, start) infinite;
  border-radius: 1px;
}

@keyframes assistant-blink {
  to { background: transparent; }
}

/* ---------- Artifact cards ---------- */
.assistant-artifact {
  margin-top: 14px;
  border-radius: var(--asst-radius-md);
  border: 1px solid var(--asst-border);
  background: var(--asst-bg-elevated);
  box-shadow: var(--asst-shadow-soft);
  overflow: hidden;
}

.assistant-artifact__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--asst-border);
  font-size: 13px;
  font-weight: 600;
  color: var(--asst-text);
}

.assistant-artifact__header i {
  font-size: 16px;
}

.assistant-artifact__body {
  padding: 12px 14px;
  font-size: 14px;
  color: var(--asst-text);
}

.assistant-artifact--qa .assistant-artifact__header { color: var(--asst-brand-strong); }
.assistant-artifact--qa .assistant-artifact__header i { color: var(--asst-brand); }

.assistant-artifact--save {
  border-color: var(--asst-brand);
}
.assistant-artifact--save .assistant-artifact__header {
  background: var(--asst-brand-soft);
  color: var(--asst-brand-strong);
}

.assistant-artifact--created {
  border-color: var(--asst-accent-success);
}
.assistant-artifact--created .assistant-artifact__header {
  background: var(--asst-brand-soft-2);
  color: var(--asst-brand-strong);
}

.assistant-artifact__meta {
  font-size: 12px;
  color: var(--asst-text-muted);
  margin: 4px 0 8px;
}

.assistant-artifact__quality-notice {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  margin: 10px 0 12px;
  padding: 9px 10px;
  border-left: 3px solid var(--asst-accent-warning);
  background: rgba(217, 119, 6, 0.1);
  color: var(--asst-text);
  font-size: 12.5px;
  line-height: 1.45;
}

.assistant-artifact__quality-notice > i {
  color: var(--asst-accent-warning);
  margin-top: 1px;
}

.assistant-artifact__quality-notice p {
  margin: 2px 0 0;
}

.assistant-artifact__quality-sources {
  color: var(--asst-text-muted);
}

.assistant-artifact__quality-sources code {
  white-space: normal;
  overflow-wrap: anywhere;
}

.assistant-artifact__actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

/* One table inside a multi-table save proposal. Each row is decided on its
   own, so it needs a visible boundary — otherwise the Accept button of table 2
   reads as belonging to table 1. */
.assistant-proposal {
  border: 1px solid var(--asst-border-strong);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: 12px;
}

.assistant-proposal + .assistant-proposal {
  margin-top: 10px;
}

.assistant-btn {
  padding: 6px 14px;
  border-radius: var(--asst-radius-sm);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background 120ms ease, border-color 120ms ease;
}

.assistant-btn--primary {
  background: var(--asst-brand);
  color: var(--asst-text-on-brand);
}
.assistant-btn--primary:hover { background: var(--asst-brand-strong); }

.assistant-btn--ghost {
  background: transparent;
  color: var(--asst-text-muted);
  border-color: var(--asst-border-strong);
}
.assistant-btn--ghost:hover {
  background: var(--asst-bg-hover);
  color: var(--asst-text);
}

.assistant-btn--danger {
  background: var(--asst-accent-danger);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.assistant-btn--danger:hover { filter: brightness(1.08); }

/* ---------- Modal (bulk-purge confirmation) ---------- */
.assistant-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.assistant-modal[hidden] { display: none; }

.assistant-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
}

.assistant-modal__panel {
  position: relative;
  width: min(540px, 100%);
  max-height: 80vh;
  background: var(--asst-bg-elevated);
  border-radius: var(--asst-radius-lg);
  box-shadow: var(--asst-shadow-lifted);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.assistant-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--asst-border);
}

.assistant-modal__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--asst-text);
}

.assistant-modal__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  font-size: 14px;
}

.assistant-modal-loading,
.assistant-modal-error {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--asst-text-muted);
  text-align: center;
}

.assistant-modal-error {
  flex-direction: column;
  color: var(--asst-accent-danger);
}

.assistant-modal__body ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.assistant-modal__body li {
  padding: 6px 10px;
  background: var(--asst-bg-hover);
  border-radius: var(--asst-radius-sm);
  font-family: var(--asst-font-mono);
  font-size: 12.5px;
  color: var(--asst-text);
}

.assistant-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--asst-border);
}

/* Optional assistant details: native disclosures keep tools and sources out of
   the reading flow until the user explicitly asks to inspect them. */
.assistant-disclosure {
  color: var(--asst-text-muted);
  font-size: 12.5px;
}

.assistant-disclosure__summary {
  min-height: 36px;
  padding: 6px 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--asst-text-muted);
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.assistant-disclosure__summary::-webkit-details-marker { display: none; }
.assistant-disclosure__summary::marker { content: ""; }

.assistant-disclosure__summary:hover { color: var(--asst-text); }

.assistant-disclosure__summary:focus-visible {
  outline: 2px solid var(--asst-brand);
  outline-offset: 2px;
  border-radius: var(--asst-radius-sm);
}

.assistant-disclosure__leading {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.assistant-disclosure__leading > i {
  flex-shrink: 0;
  color: var(--asst-text-faint);
}

.assistant-disclosure__label {
  overflow-wrap: anywhere;
}

.assistant-disclosure__chevron {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--asst-text-faint);
  transition: transform 150ms ease;
}

.assistant-disclosure[open] .assistant-disclosure__chevron {
  transform: rotate(90deg);
}

.assistant-disclosure__content {
  padding: 2px 0 10px;
}

.assistant-disclosure__heading {
  margin: 8px 0 5px;
  color: var(--asst-text);
  font-size: 11.5px;
  font-weight: 600;
}

/* One Codex-style work summary per assistant response. */
.assistant-toolcalls {
  margin: 4px 0 12px;
  border-bottom: 1px solid var(--asst-border);
}

.assistant-toolcalls__list,
.assistant-citations,
.assistant-quality-source-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.assistant-toolcalls__list {
  position: relative;
  gap: 7px;
  margin: 4px 0 0;
  padding: 4px 8px 10px 24px;
}

.assistant-toolcalls__list::before {
  content: "";
  position: absolute;
  top: 9px;
  bottom: 15px;
  left: 11px;
  width: 1px;
  background: var(--asst-border);
}

.assistant-toolcalls__process-item {
  position: relative;
  min-width: 0;
  padding: 3px 8px;
  color: var(--asst-text-muted);
  font-size: 12.5px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.assistant-toolcalls__process-item::before {
  content: "";
  position: absolute;
  top: 10px;
  left: -17px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--asst-bg-elevated);
  border-radius: 50%;
  background: var(--asst-text-faint);
}

.assistant-toolcalls__process-item > :first-child { margin-top: 0; }
.assistant-toolcalls__process-item > :last-child { margin-bottom: 0; }
.assistant-toolcalls__process-item pre,
.assistant-toolcalls__process-item table { max-width: 100%; overflow-x: auto; }

.assistant-toolcalls__item {
  display: flex;
  gap: 8px;
  font-family: var(--asst-font-mono);
  font-size: 12px;
  padding: 3px 8px;
  border-radius: var(--asst-radius-sm);
  background: var(--asst-bg-hover);
  position: relative;
}

.assistant-toolcalls__item::before {
  content: "";
  position: absolute;
  top: 10px;
  left: -17px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--asst-bg-elevated);
  border-radius: 50%;
  background: currentColor;
}

.assistant-toolcalls__item > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.assistant-toolcalls__item--ok { color: var(--asst-brand-strong); }
.assistant-toolcalls__item--err { color: var(--asst-accent-danger); }
.assistant-toolcalls__item--running { color: var(--asst-text-muted); }

/* The consolidated activity line sits immediately above the readable answer. */
.assistant-msg__body > .assistant-toolcalls + .assistant-msg__content,
.assistant-msg__body > .assistant-msg__content + .assistant-msg__content {
  margin-top: 10px;
}

.assistant-toolcalls__item--running .bi-arrow-repeat,
.assistant-toolcalls.is-running [data-disclosure-status-icon] {
  display: inline-block;
  animation: assistant-spin 0.9s linear infinite;
}

@keyframes assistant-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Sources are separated from the answer but remain one click away. */
.assistant-sources {
  margin-top: 12px;
  border-top: 1px solid var(--asst-border);
}

.assistant-citation,
.assistant-quality-source-list li {
  font-size: 12.5px;
  color: var(--asst-text-muted);
  padding: 4px 8px;
  border-radius: var(--asst-radius-sm);
  background: var(--asst-bg-hover);
  font-family: var(--asst-font-mono);
  overflow-wrap: anywhere;
}

.assistant-citation__table { color: var(--asst-brand-strong); font-weight: 600; }
.assistant-citation__path { color: var(--asst-text); }

.assistant-quality-source-list code {
  white-space: normal;
  overflow-wrap: anywhere;
}

.assistant-toolcalls__details {
  margin-top: 8px;
  font-size: 12px;
}

.assistant-toolcalls__details summary {
  cursor: pointer;
  color: var(--asst-text-faint);
  font-family: var(--asst-font-mono);
  font-size: 11px;
}

.assistant-toolcalls__details summary:hover { color: var(--asst-text-muted); }

.assistant-toolcalls__details pre {
  margin: 6px 0 0;
  font-size: 11px;
  max-height: 360px;
  /* Scroll + wrap: without these the JSON was visually truncated at the
     max-height and its long lines (e.g. table_html_template on one line)
     overflowed the card with no way to read the rest. */
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ---------- Composer (bottom input) ---------- */
.assistant-composer {
  /* Positioning context for the floating scroll-to-bottom button. */
  position: relative;
  padding: 12px 24px 18px;
  background: var(--asst-bg);
  border-top: 1px solid var(--asst-border);
}

/* Floating "jump to bottom" button (à la Claude) — anchored just above the
   composer so it stays put whatever the composer height (alert, attachments). */
.assistant-scroll-bottom {
  position: absolute;
  top: -48px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--asst-border-strong);
  background: var(--asst-bg-surface, var(--asst-bg));
  color: var(--asst-text-muted);
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  z-index: 5;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.assistant-scroll-bottom:hover {
  color: var(--asst-text);
  transform: translateX(-50%) translateY(-1px);
}

.assistant-scroll-bottom[hidden] { display: none; }

.assistant-composer__alert {
  max-width: var(--asst-content-max-width);
  margin: 0 auto 8px;
  padding: 10px 14px;
  border-radius: var(--asst-radius-md);
  font-size: 13px;
  background: rgba(217, 119, 6, 0.12);
  color: var(--asst-accent-warning);
  border: 1px solid rgba(217, 119, 6, 0.3);
}

.assistant-composer__attachments {
  max-width: var(--asst-content-max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.assistant-composer__attachments:empty { display: none; }

/* Per-conversation model picker — now sits in the composer bottom toolbar
   (Claude-style), left of the send button. */
.assistant-composer__model-loader {
  width: 132px;
  height: 28px;
  display: inline-flex;
  align-items: center;
}

.assistant-composer__model-loader[hidden] { display: none; }

.assistant-skeleton--model {
  width: 100%;
  height: 24px;
  border-radius: 999px;
}

.assistant-composer__model {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}
.assistant-composer__model[hidden] { display: none; }
.assistant-composer__model-select {
  max-width: 200px;
  padding: 4px 26px 4px 10px;
  border: 1px solid var(--asst-border-strong);
  border-radius: 999px;
  background: var(--asst-surface, transparent);
  color: var(--asst-text-muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  text-overflow: ellipsis;
  transition: border-color 120ms ease, color 120ms ease, background 120ms ease;
}
.assistant-composer__model-select:hover {
  border-color: var(--asst-brand);
  color: var(--asst-text);
}

/* Reasoning/thinking effort picker — sits next to the model picker, shown
   only for a model that declares supports_effort. */
.assistant-composer__effort {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}
.assistant-composer__effort[hidden] { display: none; }
.assistant-composer__effort-select {
  max-width: 160px;
  padding: 4px 26px 4px 10px;
  border: 1px solid var(--asst-border-strong);
  border-radius: 999px;
  background: var(--asst-surface, transparent);
  color: var(--asst-text-muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  text-overflow: ellipsis;
  transition: border-color 120ms ease, color 120ms ease, background 120ms ease;
}
.assistant-composer__effort-select:hover {
  border-color: var(--asst-brand);
  color: var(--asst-text);
}

.assistant-attachment-card {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  width: 96px;
  border: 1px solid var(--asst-border-strong);
  border-radius: var(--asst-radius-md);
  background: var(--asst-bg-elevated);
  overflow: hidden;
}

.assistant-attachment-card img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  display: block;
}

.assistant-attachment-card__meta {
  font-size: 10.5px;
  color: var(--asst-text-muted);
  padding: 4px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: var(--asst-bg-sidebar);
}

.assistant-attachment-card__remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  line-height: 1;
}

.assistant-attachment-card__remove:hover { background: rgba(0, 0, 0, 0.75); }

.assistant-composer__form--dragover {
  border-color: var(--asst-brand) !important;
  background: var(--asst-brand-soft);
  box-shadow: 0 0 0 4px var(--asst-brand-soft) !important;
}

/* User-message thumbnails (rendered in assistant bubbles for past messages) */
.assistant-msg__attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.assistant-msg__attachments a {
  display: block;
  border: 1px solid var(--asst-border);
  border-radius: var(--asst-radius-sm);
  overflow: hidden;
  width: 96px;
  height: 72px;
  transition: transform 100ms ease;
}

.assistant-msg__attachments a:hover { transform: scale(1.02); }

.assistant-msg__attachments img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Claude-style composer box: textarea on top (full width), a bottom toolbar
   with the attach button + model picker on the left and send on the right. */
.assistant-composer__form {
  max-width: var(--asst-content-max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  background: var(--asst-bg-elevated);
  border: 1px solid var(--asst-border-strong);
  border-radius: var(--asst-radius-xl);
  padding: 10px 12px 8px;
  box-shadow: var(--asst-shadow-soft);
  transition: border-color 100ms ease, box-shadow 100ms ease;
}

.assistant-composer__form:focus-within {
  border-color: var(--asst-brand);
  box-shadow: 0 0 0 4px var(--asst-brand-soft);
}

.assistant-composer__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.assistant-composer__toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.assistant-composer__attach,
.assistant-composer__send {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  font-size: 18px;
  flex-shrink: 0;
  transition: background 120ms ease;
}

.assistant-composer__attach {
  background: transparent;
  color: var(--asst-text-muted);
}
.assistant-composer__attach:not(:disabled):hover {
  background: var(--asst-bg-hover);
  color: var(--asst-text);
}

.assistant-composer__send {
  background: var(--asst-brand);
  color: var(--asst-text-on-brand);
}
.assistant-composer__send:not(:disabled):hover { background: var(--asst-brand-strong); }
.assistant-composer__send.assistant-composer__stop {
  background: var(--asst-accent-danger);
  color: #fff;
}

.assistant-table-preview {
  width: 100%;
  min-height: 320px;
  border: 1px solid var(--asst-border);
  border-radius: var(--asst-radius-sm);
  background: #fff;
}

.assistant-composer__input {
  width: 100%;
  border: 0;
  background: transparent;
  resize: none;
  padding: 4px 2px;
  font-family: var(--asst-font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--asst-text);
  outline: none;
  min-height: 24px;
  max-height: 220px;
}

.assistant-composer__input::placeholder { color: var(--asst-text-faint); }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .assistant-shell {
    grid-template-columns: 1fr;
  }
  .assistant-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: var(--asst-sidebar-width);
    z-index: 40;
    transform: translateX(-100%);
  }
  .assistant-shell.is-sidebar-open .assistant-sidebar {
    transform: translateX(0);
    box-shadow: var(--asst-shadow-lifted);
  }
  .assistant-topbar__sidebar-toggle { display: inline-flex; }
  .assistant-conversation { padding: 16px 12px 8px; }
  .assistant-composer { padding: 8px 12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .assistant-spinner,
  .assistant-skeleton,
  .assistant-topbar__project.is-loading,
  .assistant-topbar__source.is-loading,
  .assistant-topbar__thread.is-pending::after,
  .assistant-toolcalls__item--running .bi-arrow-repeat,
  .assistant-toolcalls.is-running [data-disclosure-status-icon],
  .assistant-msg__progress-dots i {
    animation: none !important;
  }
  .assistant-disclosure__chevron { transition: none; }
  .assistant-msg__progress-dots i { opacity: 0.55; }
  .assistant-conversation { scroll-behavior: auto; }
}

/* Scrollbar — discreet */
.assistant-conversation::-webkit-scrollbar,
.assistant-thread-list::-webkit-scrollbar {
  width: 8px;
}
.assistant-conversation::-webkit-scrollbar-thumb,
.assistant-thread-list::-webkit-scrollbar-thumb {
  background: var(--asst-border-strong);
  border-radius: 4px;
}
.assistant-conversation::-webkit-scrollbar-track,
.assistant-thread-list::-webkit-scrollbar-track {
  background: transparent;
}
