/* Legibilidad del panel: datos a primera vista, metodología bajo demanda.
   Se carga después de styles.css y conserva los tokens y layouts existentes. */
.view .section-title { font-size: 16px; }
.view .section-title small, .view .section-title .muted,
.view .hint, .view .notes-title, .view .notes .shell,
.view .kpi .label, .view .kpi .extra,
.view .perfl,
.view .att-title, .view .att-chip,
.view .ring-label, .view .ring-base, .view .queue-legend,
.view .fp-name, .view .fp-pct, .view .fp-conv, .view .fp-base,
.view .pulse-label, .view .pulse-sub, .view .pulse-live,
.view .pt-top, .view .pt-hint, .view .chip-soft,
.view .funnel-note {
  font-size: 14px;
  line-height: 1.5;
}
.view .hint, .view .pt-hint, .view .ring-base,
.view .kpi .extra { color: var(--ink-2); }
.view .pt-hint, .view .pt-top span:first-child {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
.view .pulse-label { flex-wrap: wrap; }
.view .pulse-live { margin-left: 0; }
.view table, .view thead th { font-size: 14px; }
.view .tag-pill, .view .badge { font-size: 14px; }
.view .toolbar input, .view .toolbar select,
.view .btn, .view .chip, .view .pager,
.periodbar .chip, .periodbar .btn, .periodbar input { font-size: 14px; }
.view .fp-metric b { font-size: 24px; }
.view .att-chips { min-width: 0; }
.view .att-chip { max-width: 100%; flex-wrap: wrap; }

.measurement-details {
  margin: 12px 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.6;
}
.measurement-details > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  padding: 4px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  color: var(--ink-2);
}
.measurement-details > summary::-webkit-details-marker { display: none; }
.measurement-details > summary::after { content: "+"; margin-left: 4px; }
.measurement-details[open] > summary::after { content: "−"; }
.measurement-details > summary:hover { color: var(--accent-ink); }
.measurement-content {
  margin-top: 8px;
  padding: 16px;
  max-width: 80ch;
  border-left: 2px solid var(--line-strong);
  background: var(--surface-2);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  overflow-wrap: anywhere;
}
.measurement-content > * + * { margin-top: 8px; }
.measurement-facts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}
.measurement-facts .measurement-details { margin: 4px 0 0; }
.data-quality-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.data-quality-summary > div { display: flex; flex-direction: column; gap: 4px; }
.data-quality-summary b { font-size: 24px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.data-quality-summary span { font-size: 14px; color: var(--ink-2); }
.data-gap { color: var(--warn-ink); }
p.data-gap { margin-top: 12px; }

@media (max-width: 720px) {
  .data-quality-summary { gap: 20px; }
  .data-quality-summary > div { flex: 1 1 120px; }
  .measurement-content { padding: 12px; }
}

#ad-leads-dialog { width: min(1120px, calc(100vw - 32px)); max-width: 1120px; }
#ad-leads-dialog::backdrop { background: color-mix(in srgb, var(--ink) 38%, transparent); }
#ad-leads-dialog .ad-leads-table td, #ad-leads-dialog .ad-leads-table th,
#ad-leads-dialog .hint, #ad-leads-dialog .callchip { font-size: 14px; }
#ad-leads-dialog .chips { overflow-x: auto; }
