/* ==================== THINKING ACCORDION & BUDGET PILL BADGE ==================== */
.thinking-accordion {
  margin: 10px 0 14px 0;
  border-radius: var(--radius-md, 8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 22, 34, 0.65);
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.thinking-accordion[open] {
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(18, 22, 34, 0.85);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.thinking-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  cursor: pointer;
  user-select: none;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted, #94a3b8);
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.15s ease, color 0.15s ease;
  list-style: none;
}

.thinking-header::-webkit-details-marker {
  display: none;
}

.thinking-header:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main, #f8fafc);
}

.thinking-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.thinking-icon {
  font-size: 13px;
  color: var(--accent-cyan, #38bdf8);
  animation: pulseBrain 2.5s infinite ease-in-out;
}

@keyframes pulseBrain {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

.thinking-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.thinking-meta {
  font-size: 11px;
  color: var(--text-dim, #64748b);
  font-family: var(--font-mono, monospace);
  margin-left: 6px;
}

.thinking-chevron {
  font-size: 10px;
  color: var(--text-dim, #64748b);
  transition: transform 0.2s ease;
}

.thinking-accordion[open] .thinking-chevron {
  transform: rotate(180deg);
}

.thinking-body {
  padding: 10px 14px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12.5px;
  line-height: 1.6;
  color: #cbd5e1;
  font-family: var(--font-sans, sans-serif);
  max-height: 350px;
  overflow-y: auto;
  white-space: pre-wrap;
}

.thinking-budget-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  min-height: 18px;
  max-height: 18px;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono, monospace);
  line-height: 18px;
  white-space: nowrap;
  box-sizing: border-box;
}

.thinking-budget-pill.pill-active {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.4);
}

.thinking-budget-pill.pill-off {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.thinking-budget-pill.pill-auto {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
}

