/* Custom styles beyond Tailwind */

.tier-duplicate {
  border-color: rgba(239, 68, 68, 0.4);
  background-color: rgba(239, 68, 68, 0.03);
}

.tier-likely {
  border-color: rgba(245, 158, 11, 0.4);
  background-color: rgba(245, 158, 11, 0.03);
}

.tier-related {
  border-color: rgba(59, 130, 246, 0.4);
  background-color: rgba(59, 130, 246, 0.03);
}

.tier-badge-duplicate {
  background-color: rgba(239, 68, 68, 0.1);
  color: rgb(185, 28, 28);
}

.tier-badge-likely {
  background-color: rgba(245, 158, 11, 0.1);
  color: rgb(146, 64, 14);
}

.tier-badge-related {
  background-color: rgba(59, 130, 246, 0.1);
  color: rgb(29, 78, 216);
}

.pipeline-step {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid rgba(0,0,0,0.12);
  color: rgba(0,0,0,0.5);
  background: white;
  transition: all 0.2s;
}

.pipeline-step.active {
  background: black;
  color: white;
  border-color: black;
}

.pipeline-step.done {
  background: rgba(0,0,0,0.06);
  color: rgba(0,0,0,0.6);
  border-color: rgba(0,0,0,0.1);
}

.prose-sm p { margin-bottom: 0.75rem; }
.prose-sm h2, .prose-sm h3 { font-weight: 500; margin: 1rem 0 0.5rem; }
.prose-sm ul { list-style: disc; padding-left: 1.25rem; margin-bottom: 0.75rem; }
.prose-sm li { margin-bottom: 0.25rem; }
.prose-sm code { font-size: 0.8em; background: rgba(0,0,0,0.06); padding: 0.1em 0.3em; border-radius: 3px; }

/* Source panel */
.source-card {
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 0.75rem;
  padding: 0.875rem;
  background: white;
}

.source-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.source-status-dot.connected { background: #22c55e; }
.source-status-dot.unavailable { background: #9ca3af; }
.source-status-dot.error { background: #ef4444; }

.tool-call-line {
  padding: 0.25rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}

.tool-call-line:last-child { border-bottom: none; }

/* Sources panel expand/collapse transition */
#sourcesPanelBody {
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.25s ease;
}

#sourcesPanelBody.hidden {
  max-height: 0;
  opacity: 0;
}

/* Linear connect card */
.linear-connect-card {
  border: 1px dashed rgba(0,0,0,0.2);
  border-radius: 0.75rem;
  padding: 1rem;
  background: rgba(0,0,0,0.01);
  margin-top: 1rem;
}

.linear-connect-card .linear-icon {
  width: 24px;
  height: 24px;
  background: #5E6AD2;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
