/* ════════════════════════════════════════════════════════════════════════
   DS Stat Card — metric tile (My Day / Pipeline summary / Insights).
   Macro: ds_stat_card. Tokens only (tokens.css). Responsive + touch.
   ════════════════════════════════════════════════════════════════════════ */
.ds-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--sp-4) var(--sp-5);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text);
}
.ds-stat--link {
  min-height: 44px;
  cursor: pointer;
  transition: box-shadow .15s ease, transform .15s ease;
}
.ds-stat--link:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.ds-stat--link:active { transform: translateY(0); }
.ds-stat--link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.ds-stat-icon  { color: var(--muted); margin-bottom: var(--sp-1); line-height: 0; }
.ds-stat-value { font-size: var(--text-2xl); font-weight: 800; letter-spacing: -1px; line-height: 1.1; }
.ds-stat-label { font-size: var(--text-sm); color: var(--muted); font-weight: 500; }
.ds-stat-delta { font-size: var(--text-xs); font-weight: 700; margin-top: 2px; }
.ds-stat-delta--up   { color: var(--success); }
.ds-stat-delta--down { color: var(--error); }
.ds-stat-delta--flat { color: var(--muted); }
.ds-stat-sub   { font-size: var(--text-xs); color: var(--muted); margin-top: 2px; }

/* accent left-border variants */
.ds-stat--brand   { border-left: 3px solid var(--accent); }
.ds-stat--success { border-left: 3px solid var(--success); }
.ds-stat--warning { border-left: 3px solid var(--warning); }
.ds-stat--danger  { border-left: 3px solid var(--error); }
