/* Data display: stat tiles, trend, sparkline, progress ring, activity list. */
.stat { display: grid; gap: var(--space-1); padding: var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-card); background: var(--color-surface); }
.stat__label { font-size: var(--text-xs); color: var(--color-text-muted); }
.stat__value { font-size: var(--text-3xl); font-weight: var(--weight-bold); letter-spacing: var(--tracking-tight); line-height: 1.1; font-variant-numeric: tabular-nums; }
.trend { font-size: var(--text-xs); font-weight: var(--weight-medium); color: var(--color-primary); font-variant-numeric: tabular-nums; }
.trend--down { color: var(--color-danger); }

/* Big figure (template: "5+ Module"). */
.figure { display: grid; gap: var(--space-1); }
.figure__value { font-size: var(--text-5xl); font-weight: var(--weight-bold); letter-spacing: var(--tracking-tight); line-height: 1; color: var(--color-primary); }
.figure__label { font-size: var(--text-lg); color: var(--color-text-muted); }

.sparkline { display: block; width: 100%; height: auto; }
.sparkline__area { fill: var(--color-primary); fill-opacity: 0.16; stroke: none; }
.sparkline__line { fill: none; stroke: var(--color-primary); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }

.ring { display: inline-grid; place-items: center; position: relative; width: 4rem; height: 4rem; flex: none; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring__track { fill: none; stroke: var(--color-border-strong); stroke-width: 4; }
.ring__value { fill: none; stroke: var(--color-primary); stroke-width: 4; stroke-linecap: round; }
.ring__label { font-size: var(--text-sm); font-weight: var(--weight-bold); font-variant-numeric: tabular-nums; }
.insight { display: flex; gap: var(--space-4); align-items: center; }
.insight__title { font-weight: var(--weight-semibold); }
.insight__text { font-size: var(--text-sm); color: var(--color-text-muted); }

/* Activity list: title, one line below, status on the right (template: "Heute im Verlag"). */
.activity { list-style: none; padding: 0; }
.activity__item { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3) 0; border-top: 1px solid var(--color-border); }
.activity__item:first-child { border-top: 0; }
.activity__item > div { min-width: 0; }  /* a long URL in a title or text wraps instead of widening the row */
.activity__title { font-size: var(--text-sm); font-weight: var(--weight-semibold); overflow-wrap: anywhere; }
.activity__meta { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 0.125rem; overflow-wrap: anywhere; }

/* Change log of a contact (U-0036): a collapsible card, each change as label and old → new. */
.change-log > summary { cursor: pointer; font-weight: var(--weight-semibold); }
.change-log[open] > summary { margin-bottom: var(--space-3); }
.change-list { display: grid; gap: var(--space-1); margin-top: var(--space-2); font-size: var(--text-sm); }
.change-list__row { display: grid; gap: 0; }
.change-list__row dt { color: var(--color-text-muted); }
.change-list__row dd { margin: 0; overflow-wrap: anywhere; white-space: pre-line; }
.change-list del { color: var(--color-text-muted); }
.change-list ins { text-decoration: none; }
@media (min-width: 576px) {
  .change-list__row { grid-template-columns: minmax(8rem, 12rem) 1fr; gap: var(--space-3); }
}
