/* =====================================================
   CALL DATA tab (Phase 2.5) + INSIGHTS stub page
   ===================================================== */

.call-data-picker {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.5rem 0 1rem;
  font-size: 0.875rem;
}
.call-data-picker select {
  padding: 0.4rem 0.6rem;
  background: var(--bg-1);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  min-width: 16rem;
}

.call-data-card .card-body {
  padding: 1rem 1.25rem;
}
.call-data-card .card-body p + dl {
  margin-top: 0.5rem;
}
.call-data-card .card-body dl.kv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem 1rem;
  margin: 0;
}
@media (min-width: 720px) {
  .call-data-card .card-body dl.kv-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.kv-grid > div { display: grid; grid-template-columns: 10rem 1fr; gap: 0.5rem; }
.kv-grid dt { color: var(--text-secondary); font-size: 0.8125rem; }
.kv-grid dd { margin: 0; color: var(--text-primary); font-size: 0.9375rem; }

.call-data-card .chip-row {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.call-data-card .bullet-list {
  margin: 0 0 0 1.25rem;
  color: var(--text-primary);
}
.call-data-card .bullet-list li { margin-bottom: 0.25rem; }

.call-data-flags .card-header h3 { color: #fca5a5; }
[data-theme="light"] .call-data-flags .card-header h3 { color: #b91c1c; }

.call-data-footer {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem;
  padding: 0.75rem 0.25rem 1.5rem;
}

/* Inline edit forms inside a card body */
.call-data-form {
  display: flex; flex-direction: column; gap: 0.75rem;
  padding: 0;
}
.call-data-form label {
  display: flex; flex-direction: column; gap: 0.25rem;
  font-size: 0.8125rem; color: var(--text-secondary);
}
.call-data-form input[type="text"],
.call-data-form input[type="number"],
.call-data-form select {
  padding: 0.45rem 0.6rem;
  background: var(--bg-2);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
}
.call-data-form .form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
  gap: 0.5rem;
  align-items: end;
}
.call-data-form .form-section {
  border-top: 1px dashed var(--border);
  padding-top: 0.75rem;
}
.call-data-form .form-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.5rem;
}
.call-data-form .form-section-label {
  font-weight: 500; color: var(--text-primary); font-size: 0.875rem;
}

/* =====================================================
   INSIGHTS stub page
   ===================================================== */

.insights-stub {
  max-width: 40rem;
  margin: 2rem auto;
}
.insights-stub .card-body {
  padding: 1.5rem;
}
.insights-progress {
  height: 12px;
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin: 0.5rem 0 1rem;
}
.insights-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #60a5fa, #8b5cf6);
  transition: width 0.3s ease;
}
.insights-feature-list {
  list-style: disc;
  padding-left: 1.25rem;
  color: var(--text-secondary);
  margin: 0.5rem 0 1rem;
}
.insights-feature-list li { margin-bottom: 0.25rem; }

.insights-guide-body {
  max-height: 65vh;
  overflow-y: auto;
  padding-right: 0.5rem;
}
.insights-guide-body h1,
.insights-guide-body h2,
.insights-guide-body h3 { margin-top: 1.2rem; }
.insights-guide-body h1:first-child,
.insights-guide-body h2:first-child { margin-top: 0; }
.insights-guide-body pre {
  background: var(--bg-2);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-size: 0.8125rem;
}
.insights-guide-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85em;
}
.insights-guide-body ul,
.insights-guide-body ol { margin-left: 1.25rem; }
