/* Prophetic · Activité des Insights (colonnes empilées + légende vivante) — style de la homepage */
.property-stream-metrics.has-activity,
.property-followup-metrics.has-activity {
  display: block;
  text-transform: none;
  letter-spacing: 0;
}
.property-stream-metrics.has-activity > span,
.property-followup-metrics.has-activity > span { display: none; }    /* la légende reprend ces lignes */
.property-stream-metrics.has-activity[hidden],
.property-followup-metrics.has-activity[hidden] { display: none; }

.pia {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px 28px;
  color: #0a1217;
  font: 400 12px / 1.4 -apple-system, BlinkMacSystemFont, "SF Pro Text", Helvetica, Arial, sans-serif;
}
/* Graphe et légende côte à côte dès 560 px de panneau (panneau 3/4 : 639 px) ; seul, le graphe ne dépasse pas 460 px. */
.pia-chart { flex: 1 1 260px; max-width: 460px; min-width: 0; }
.pia-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.pia-grid { stroke: rgb(10 18 23 / 0.07); stroke-width: 1; }
.pia-axis { stroke: rgb(10 18 23 / 0.16); stroke-width: 1; }
.pia-tick { fill: rgb(10 18 23 / 0.45); font-size: 11px; font-variant-numeric: tabular-nums; }
.pia-band { fill: rgb(10 18 23 / 0.045); transition: opacity 0.15s ease; }
.pia-zone { cursor: default; }
.pia-col { transition: opacity 0.15s ease; }
.pia-enter .pia-col {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: pia-grow 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) both;
  animation-delay: var(--pia-d, 0ms);
}
@keyframes pia-grow { from { transform: scaleY(0); } }

.pia-legend { flex: 1 1 260px; max-width: 360px; min-width: 0; font-variant-numeric: tabular-nums; }
.pia-when { margin: 0; color: rgb(10 18 23 / 0.5); font-size: 11px; font-weight: 500; }
.pia-title {
  overflow: hidden;
  margin: 3px 0 0;
  color: #0a1217;
  font-size: 13.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pia-rows {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(0, auto);
  gap: 8px 12px;
  margin: 12px 0 0;
}
.pia-rows dt {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: rgb(10 18 23 / 0.62);
  font-size: 12.5px;
}
.pia-rows dd { margin: 0; color: #0a1217; font-size: 12.5px; font-weight: 600; text-align: right; }
.pia-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 999px;
  background: var(--pia-dot, #0a1217);
}
.pia-dot--hatch {
  background: repeating-linear-gradient(45deg, var(--pia-dot) 0 2px, color-mix(in srgb, var(--pia-dot) 28%, #fff) 2px 5px);
}
.pia-note { margin: 16px 0 0; color: rgb(10 18 23 / 0.5); font-size: 11.5px; line-height: 1.45; }

@media (max-width: 760px) {
  .pia-legend { flex-basis: 100%; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pia-enter .pia-col { animation: none !important; }
  .pia-col, .pia-band { transition: none !important; }
}
