/* ── Active tab state ─────────────────────────────────────── */
.active-tab {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
  color: #1e40af;
  font-weight: 600;
}

/* ── Streaming cursor blink ───────────────────────────────── */
.streaming-cursor::after {
  content: '▋';
  animation: blink .7s step-end infinite;
  color: #3b82f6;
  font-size: .85em;
  margin-left: 1px;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ── Analysis result card tokens ─────────────────────────── */
.result-text {
  white-space: pre-wrap;
  font-size: .8125rem;
  line-height: 1.6;
  color: #374151;
}

/* ── Scrollbar styling (webkit) ──────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* ── File list chip ──────────────────────────────────────── */
.file-chip {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .375rem .75rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: .75rem;
  font-size: .8125rem;
  color: #1e40af;
}
.file-chip button {
  color: #93c5fd;
  transition: color .15s;
}
.file-chip button:hover { color: #1e40af; }

/* ── Progress ring (used in live results) ────────────────── */
.progress-ring circle {
  transition: stroke-dashoffset .4s ease;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}

/* ── Model result card header colours ───────────────────── */
.provider-openai    { background: #ecfdf5; border-color: #6ee7b7; }
.provider-anthropic { background: #fff7ed; border-color: #fdba74; }
.provider-google    { background: #eff6ff; border-color: #93c5fd; }
.provider-xai       { background: #f5f3ff; border-color: #c4b5fd; }

/* ── Slide-down animation for inline model settings ─────── */
[id^="settings-"] {
  transition: max-height .2s ease, opacity .2s ease;
}
