/* â”€â”€ chat.css                                 Chat turns, messages, markdown, streaming indicator â”€â”€ */
.chat-turn-group {
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Make the user prompt sticky so it suspends at the top on scroll till the AI response finishes */
.chat-turn-group .chat-turn.user {
  position: relative;
  top: auto;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: auto;
  padding: 0;
  margin-top: 0;
}

[data-theme="dark"] .chat-turn-group .chat-turn.user {
  background: transparent;
}

/* Ensure subsequent elements scroll nicely behind the sticky header */
.chat-turn-group .chat-turn.assistant {
  position: relative;
  z-index: 10;
}

.chat-turn {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 4px;
  animation: turn-in 0.28s ease;
}

@keyframes turn-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.turn-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 22px;
  flex-shrink: 0;
  padding-top: 0px; /* Reset padding to align perfectly with vertically centered header */
}

.rail-node {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 7px;
}

.rail-node.user-node {
  color: #71717a;
  background: #f4f4f5;
  border: 1px solid #e4e4e7;
}

.rail-node.user-node svg {
  display: block;
  width: 14px;
  height: 14px;
}

.rail-node.agent-node {
  color: var(--text);
  background: #fff;
  border: 1px solid #e8eaed;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.06);
}

.rail-node.agent-node svg,
.rail-node.agent-node .agent-brand-img {
  display: block;
  width: 13px;
  height: 13px;
}

.rail-line {
  flex: 1;
  width: 2px;
  min-height: 16px;
  margin-top: 6px;
  margin-bottom: 2px;
  border-radius: 2px;
  background: var(--outline);
}

.chat-turn:last-child .rail-line {
  opacity: 0;
}

.turn-content {
  flex: 1;
  min-width: 0;
  padding: 0 0 18px;
}

.turn-header {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  margin-bottom: 6px;
  height: 22px; /* Match the height of the 22px avatar node */
}

.chat-turn.user .turn-kicker {
  color: #78716c;
}

.turn-kicker {
  color: var(--accent-text);
  font: 600 10px/1 var(--font-display);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.chat-turn.assistant .turn-kicker {
  color: var(--text);
  font-size: 11px;
  letter-spacing: -0.01em;
  text-transform: none;
}

.streaming-pill {
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
}

.chat-turn.is-streaming .streaming-pill,
.chat-turn.is-waiting .streaming-pill {
  display: inline-flex;
}

.chat-turn.is-waiting .turn-body.agent-response:empty {
  display: none;
}

.loading-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 8px;
}

.loading-dots span {
  width: 4px;
  height: 4px;
  background: #78716c;
  border-radius: 50%;
  animation: loading-dot 1.1s ease-in-out infinite;
}

.loading-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.loading-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes loading-dot {
  0%, 70%, 100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  35% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.turn-header-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
  min-width: 0;
}

.revert-btn {
  background: none;
  border: 1px solid transparent;
  padding: 4px;
  color: var(--muted);
  cursor: pointer;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 13px;
  opacity: 1; /* Always visible */
}

.revert-btn:hover {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--outline);
}

:root[data-theme="dark"] .revert-btn:hover {
  background: var(--surface-2);
  border-color: var(--outline);
}

.turn-badges {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.turn-badges:empty {
  display: none;
}

.turn-badge {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 7px;
  border: 1px solid transparent;
  border-radius: 4px;
  font: 600 9px/1 var(--font-body);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.turn-badge-skill {
  color: #5f6368;
  background: rgba(60, 64, 67, 0.08);
  border-color: rgba(60, 64, 67, 0.12);
}

.turn-badge-debug {
  color: #7b1fa2;
  background: #f3e8fd;
  border-color: #e1bee7;
}

.turn-badge-react {
  color: #1565c0;
  background: #e8f0fe;
  border-color: #c6dafc;
}

.turn-badge-python {
  color: #0d652d;
  background: #e6f4ea;
  border-color: #ceead6;
}

.turn-badge-css {
  color: #c2185b;
  background: #fce8f3;
  border-color: #f8bbd0;
}

.turn-badge-db {
  color: #5d4037;
  background: #efebe9;
  border-color: #d7ccc8;
}

.turn-badge-api {
  color: #00695c;
  background: #e0f2f1;
  border-color: #b2dfdb;
}

.turn-badge-motion {
  color: #e65100;
  background: #fff3e0;
  border-color: #ffe0b2;
}

.turn-badge-phase {
  color: #174ea6;
  background: #e8f0fe;
  border-color: #c6dafc;
  text-transform: none;
  letter-spacing: 0.01em;
}

.turn-time {
  color: #9aa0a6;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}

.turn-body {
  font-size: 13.5px;
  line-height: 1.68;
  word-break: break-word;
}

.chat-turn.user .turn-body.user-brief {
  padding: 10px 12px;
  color: #57534e;
  background: #f4f4f5;
  border: 0;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.62;
  letter-spacing: -0.01em;
}

.chat-turn.assistant .turn-body.agent-response {
  padding: 10px 14px;
  color: #3c4043;
  background: transparent;
}

.chat-turn.assistant .turn-body.agent-response:not(:last-child) {
  padding-bottom: 2px;
  font-size: 13px;
  color: var(--muted);
}

.activity-feed-wrapper + .turn-body.agent-response {
  margin-top: 4px;
}

.chat-turn.is-streaming .turn-body.agent-response.streaming:not(:empty) {
  border-radius: 8px;
}

.agent-tool-state-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 2px;
  margin-bottom: 2px;
}

.agent-tool-state-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}

.tool-state-icon {
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.7;
}

.tool-state-text {
  color: var(--text);
  font-weight: 400;
  font-style: italic;
}

.agent-tool-state-row.connection-restored {
  color: #137333;
}
.agent-tool-state-row.connection-restored .tool-state-icon {
  color: #137333;
  opacity: 1;
}
.agent-tool-state-row.connection-restored .tool-state-text {
  color: #137333;
  font-weight: 500;
}

[data-theme="dark"] .agent-tool-state-row.connection-restored {
  color: #81c995;
}
[data-theme="dark"] .agent-tool-state-row.connection-restored .tool-state-icon,
[data-theme="dark"] .agent-tool-state-row.connection-restored .tool-state-text {
  color: #81c995;
}

.agent-working-placeholder {
  /* Retained for generic streaming logic */
  font-style: italic;
}

/* Agent thought process (<think> blocks) */
.agent-thought-slider {
  margin: 8px 0;
  border: 1px solid var(--outline);
  border-radius: 8px;
  background: var(--surface-2, #f8f9fa);
  overflow: hidden;
}

.agent-thought-slider summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  cursor: pointer;
  user-select: none;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  list-style: none;
}

.agent-thought-slider summary::-webkit-details-marker {
  display: none;
}

.agent-thought-slider summary .thought-icon {
  display: flex;
  align-items: center;
  opacity: 0.6;
}

.agent-thought-slider summary .thought-label {
  flex: 1;
}

.agent-thought-slider summary .thought-chevron {
  transition: transform 0.2s ease;
  font-size: 14px;
}

.agent-thought-slider[open] summary .thought-chevron {
  transform: rotate(90deg);
}

.agent-thought-slider .thought-content {
  padding: 0 12px 10px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  border-top: 1px solid var(--outline);
  padding-top: 10px;
  margin-top: 0;
}

.agent-thought-slider[open] .thought-content {
  display: block;
}

.thought-content p {
  margin: 0 0 6px;
}

.thought-content p:last-child {
  margin-bottom: 0;
}


.turn-body p {
  margin: 0 0 10px;
}

.turn-body p:last-child {
  margin-bottom: 0;
}

.turn-body ul,
.turn-body ol {
  margin: 0 0 10px;
  padding-left: 20px;
}

.turn-body code {
  padding: 2px 5px;
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: #f1f3f4;
  border-radius: 4px;
}

.chat-turn.user .turn-body code {
  color: #52525b;
  background: rgba(255, 255, 255, 0.7);
}

/* Markdown Tables Styling */
.turn-body table {
  display: table;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13px;
  line-height: 1.5;
  border-spacing: 0;
  border-radius: 8px;
  border-style: hidden; /* Hide outer double borders from table element */
  box-shadow: 0 0 0 1px var(--outline); /* Clean outer border with radius */
  overflow: hidden;
}

.turn-body th,
.turn-body td {
  padding: 10px 14px;
  border: 1px solid var(--outline);
  text-align: left;
}

.turn-body th {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
}

.turn-body tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.015);
}

[data-theme="dark"] .turn-body tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

/* Markdown hr (Horizontal Rule) Styling */
.turn-body hr {
  border: 0;
  border-top: 1px solid var(--outline);
  margin: 16px 0;
  height: 0;
}

.turn-body pre {
  overflow: auto;
  margin: 10px 0 0;
  padding: 12px;
  background: #f6f8fa;
  border: 1px solid #e8eaed;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
}

.turn-body pre code {
  padding: 0;
  background: transparent;
}

.chat-turn.is-streaming .turn-body.agent-response.streaming .agent-working-placeholder::after,
.chat-turn.is-streaming .turn-body.agent-response.streaming .agent-tool-state-row .tool-state-text::after,
.chat-turn.is-streaming .turn-body.agent-response.streaming:not(:has(.agent-working-placeholder)) > :last-child:not(pre):not(.agent-tool-state-row)::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: text-bottom;
  background: currentColor;
  border-radius: 1px;
  opacity: 0.4;
  transform: skewX(-15deg);
  animation: cursor-blink 0.9s step-end infinite;
}

@keyframes cursor-blink {
  50% { opacity: 0; }
}

.activity-feed {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.activity-feed:not(:empty) {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #e8eaed;
}

.activity-feed:not(:empty)::before {
  display: none;
}

.file-change-card,
.command-card,
.run-complete-banner,
.run-partial-banner,
.agent-stopped-banner,
.error-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.05);
  animation: card-in 0.25s ease;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.file-change-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  transition: background 0.12s;
}

.file-change-head[role="button"] {
  cursor: pointer;
}

.file-change-head[role="button"]:hover {
  background: #f8f9fa;
}

.file-change-icon-img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.file-change-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.file-change-path {
  overflow: hidden;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-change-badges {
  display: flex;
  align-items: center;
  gap: 5px;
}

.change-badge {
  padding: 1px 6px;
  border-radius: 4px;
  font: 600 9px/1.3 var(--font-body);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.badge-created { color: #137333; background: #e6f4ea; }
.badge-modified { color: #174ea6; background: #e8f0fe; }
.badge-deleted { color: #b3261e; background: #fce8e6; }
.badge-error { color: #b3261e; background: #fce8e6; }
.badge-stopped { color: #5f4300; background: #fef7e0; }

.line-stat {
  font: 500 10px/1 var(--font-mono);
}

.line-stat.add { color: #137333; }
.line-stat.del { color: #b3261e; }

.diff-toggle, .error-toggle {
  flex-shrink: 0;
  padding: 3px 8px;
  color: #5f6368;
  background: #f1f3f4;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font: 500 10px/1 var(--font-body);
}

.diff-toggle:hover, .error-toggle:hover {
  background: #e8f0fe;
}

.file-diff-panel {
  border-top: 1px solid var(--outline);
  background: #1e1e1e;
}

.file-change-error-panel {
  border-top: 1px solid #fad2cf;
  background: #fff5f5;
}

.file-change-error {
  padding: 10px 14px 12px;
  color: #b3261e;
  font-size: 12px;
  line-height: 1.45;
  white-space: pre-wrap;
  font-family: var(--font-mono, monospace);
  word-break: break-word;
}

.file-change-hint {
  margin: 8px 0 0;
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.5;
}

.file-change-card.is-error {
  border-color: #f5c2c1;
  background: #fff;
}

.diff-view {
  overflow: auto;
  max-height: 220px;
  padding: 8px 0;
  font: 500 11px/1.5 var(--font-mono);
}

.diff-line {
  display: flex;
  gap: 8px;
  padding: 1px 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

.diff-line.same { color: #9aa0a6; background: #252526; }
.diff-line.add { color: #b5cea8; background: rgba(155, 185, 85, 0.15); }
.diff-line.del { color: #f48771; background: rgba(244, 71, 71, 0.12); }

.diff-gutter {
  width: 14px;
  flex-shrink: 0;
  opacity: 0.8;
}

.diff-line code {
  color: inherit;
  background: transparent;
}

.command-card {
  font-size: 11px;
}

.command-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
}

.command-card-icon {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 16px !important;
}

.command-card-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.command-card-title {
  overflow: hidden;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.command-card-badges,
.command-card-meta .change-badge {
  align-self: flex-start;
}

.command-card-meta .change-badge .codicon-loading,
.tool-state-icon .thinking-spin,
.tool-state-icon.thinking-spin {
  animation: spin 0.8s linear infinite;
}

.command-spinner {
  flex-shrink: 0;
  color: #174ea6;
  font-size: 14px !important;
  animation: spin 0.8s linear infinite;
}

.command-card-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.cmd-inline {
  padding: 3px 8px;
  border-radius: 6px;
  font: 500 10px/1 var(--font-body);
}

.cmd-inline.cancel {
  color: var(--muted);
  background: transparent;
  border: 1px solid #e0e0e0;
}

.cmd-inline.run {
  color: var(--accent-foreground);
  background: var(--accent);
  border: 1px solid var(--accent);
}

.cmd-inline:hover {
  filter: brightness(0.97);
}

.command-card-cwd {
  margin: 0 10px 4px;
  color: var(--muted);
  font-size: 10px;
}

.command-card-cwd + .command-terminal {
  margin-top: 0;
}

.command-card-cwd code {
  color: var(--text);
  font-family: var(--font-mono);
}

.command-terminal {
  overflow: hidden;
  background: #1e1e1e;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Remove the line if terminal is empty or hidden */
.command-terminal:empty,
.command-terminal.hidden {
  display: none;
}

.command-input-wrap,
.command-body {
  margin: 0;
  overflow: auto;
  max-height: 168px;
  background: #1e1e1e;
  border: 0;
  border-radius: 0;
  scrollbar-width: thin;
  scrollbar-color: #555 #1e1e1e;
}

.command-terminal .command-body,
.command-terminal .command-input-wrap {
  background: transparent;
}

.command-input-wrap::-webkit-scrollbar,
.command-body::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.command-input-wrap::-webkit-scrollbar-thumb,
.command-body::-webkit-scrollbar-thumb {
  background: #555;
  border-radius: 4px;
}

.command-card .command-input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 0;
  height: auto;
  margin: 0;
  padding: 6px 10px;
  color: #d4d4d4;
  background: transparent;
  border: 0;
  border-radius: 0;
  font: 400 11px/1.5 var(--font-mono);
  line-height: 1.5;
  resize: none;
  overflow: auto;
  white-space: pre;
  word-break: normal;
}

.command-card .command-input.long-line {
  min-height: 0;
}

.command-card .command-input.multiline {
  min-height: 0;
  max-height: 160px;
  white-space: pre-wrap;
  word-break: break-word;
}

.command-line {
  margin: 0;
  padding: 6px 10px;
  color: #9cdcfe;
  background: transparent;
  border: 0;
  font: 400 11px/1.45 var(--font-mono);
  line-height: 1.45;
  white-space: pre;
  word-break: normal;
}

.command-output-panel {
  overflow: auto;
  max-height: 120px;
  margin: 0;
  padding: 4px 10px 8px;
  color: #d4d4d4;
  background: transparent;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font: 400 11px/1.4 var(--font-mono);
  white-space: pre-wrap;
  word-break: break-word;
}

.command-terminal .command-output-panel {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.command-card.is-error .command-output-panel {
  color: #f48771;
}

.output-toggle {
  flex-shrink: 0;
  padding: 3px 8px;
  color: #5f6368;
  background: #f1f3f4;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font: 500 10px/1 var(--font-body);
}

.output-toggle:hover {
  background: #e8eaed;
}

.command-card.is-error {
  border-color: #fad2cf;
}

.command-card.is-success {
  border-color: #ceead6;
}

.run-complete-banner {
  border-color: #ceead6;
  background: #f6faf7;
}

.run-complete-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
}

.run-complete-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: #137333;
  background: #e6f4ea;
  border-radius: 7px;
}

.run-complete-icon-wrap svg {
  display: block;
  width: 16px;
  height: 16px;
}

.run-complete-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.run-complete-title {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}

.run-complete-sub {
  color: #5f6368;
  font-size: 10px;
  line-height: 1.35;
}

.run-partial-banner {
  border-color: #fdd663;
  background: #fffbf0;
}

.run-partial-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
}

.run-partial-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: #5f4300;
  background: #fef7e0;
  border-radius: 7px;
}

.run-partial-icon-wrap svg {
  display: block;
  width: 12px;
  height: 12px;
}

.run-partial-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.run-partial-title {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}

.run-partial-sub {
  color: #5f6368;
  font-size: 10px;
  line-height: 1.35;
}

/* Compact stopped status — single quiet row, not a large status card */
.agent-stopped-banner {
  border: 1px solid color-mix(in srgb, var(--muted, #8b8f98) 35%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-2, #1e1f23) 88%, transparent);
  box-shadow: none;
}

.agent-stopped-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 5px 10px;
}

.agent-stopped-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: var(--muted, #8b8f98);
}

.agent-stopped-glyph svg {
  display: block;
  width: 10px;
  height: 10px;
}

.agent-stopped-label {
  flex-shrink: 0;
  color: var(--text-secondary, #c4c7ce);
  font: 600 11px/1.2 var(--font-display);
  letter-spacing: 0.01em;
}

.agent-stopped-sep {
  flex-shrink: 0;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--placeholder, #5c6069);
  opacity: 0.85;
}

.agent-stopped-detail {
  min-width: 0;
  overflow: hidden;
  color: var(--muted, #8b8f98);
  font: 400 11px/1.3 var(--font-body);
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Legacy selectors kept as no-ops if old markup is cached */
.agent-stopped-head,
.agent-stopped-icon-wrap,
.agent-stopped-meta,
.agent-stopped-title,
.agent-stopped-sub {
  display: contents;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: var(--muted);
  background: #f8f9fa;
  border: 1px solid #eef0f2;
  border-radius: 10px;
  font-size: 12px;
  transition: background 0.2s, border-color 0.2s;
}

.activity-item .codicon {
  flex-shrink: 0;
  font-size: 14px !important;
}

.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: inherit;
  line-height: 0;
}

.check-icon svg {
  display: block;
  width: 14px;
  height: 14px;
}

