/* ════════════════════════════════════════════════════════════════
   DASHBOARD REDESIGN — handcrafted sub-tabbed layout (DESIGN.md §31)
   Premium skin: a dark per-tab "vital signs" hero band over elevated
   light cards. The hero band is deliberately fixed-dark (a feature
   card) across themes; the light cards flow from theme tokens.
   ════════════════════════════════════════════════════════════════ */

.dash-redesign { display: flex; flex-direction: column; }

/* Sticky sub-nav — stays accessible while the dashboard scrolls. Mirrors the
   Campaigns .cam-sticky pattern: glass strip pinned to the top of the content
   scroll window, full-bleed to the 32px content gutters. `display:flex` so the
   underline baseline spans the whole bar. */
.dash-subnav.utabs {
  display: flex;
  position: sticky;
  top: var(--shell-sticky-top);
  z-index: 10;
  margin: 0 -32px 16px;
  padding: 10px 32px 0;
  background: var(--header-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ── Dark vital-signs hero band ────────────────────────────────── */
.dash-hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 16px;
  color: #f7f8f8;
  background:
    radial-gradient(130% 160% at 100% 0%, rgba(239, 83, 134, 0.22) 0%, rgba(243, 119, 113, 0.11) 32%, transparent 62%),
    #141516;
  box-shadow: 0 16px 44px rgba(10, 10, 12, 0.18), 0 4px 14px rgba(10, 10, 12, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.dash-hero-shine {
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
}
.dash-hero-row {
  display: flex; flex-wrap: wrap; gap: 20px;
  align-items: center; justify-content: space-between;
}
.dash-hero-verdict { min-width: 220px; }
.dash-hero-vline { display: flex; align-items: center; gap: 9px; margin-bottom: 6px; }
.dash-hero-dot {
  width: 9px; height: 9px; border-radius: 99px; flex: none;
  background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
}
.dash-hero--warn .dash-hero-dot { background: #fbbf24; box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.16); }
.dash-hero--danger .dash-hero-dot { background: #f87171; box-shadow: 0 0 0 4px rgba(248, 113, 113, 0.16); }
.dash-hero-word { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.dash-hero-sentence { font-size: 12.5px; color: #aab0bb; max-width: 340px; line-height: 1.45; }

.dash-hero-kpis { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.dash-hero-div { width: 1px; height: 46px; background: rgba(255, 255, 255, 0.09); }
.dash-hero-kpi-label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.07em;
  font-weight: 500; color: #868d99;
}
.dash-hero-kpi-value {
  font-variant-numeric: tabular-nums; font-weight: 700; letter-spacing: -0.012em;
  font-size: 22px; margin: 4px 0 2px; color: #f7f8f8;
}
.dash-hero-kpi-value.is-warn { color: #fbbf24; }
.dash-hero-kpi-value.is-danger { color: #f87171; }
.dash-hero-kpi-sub { font-size: 11px; color: #868d99; }
.dash-hero-kpi-sub.is-up { color: #34d399; font-weight: 500; }
.dash-hero-kpi-sub.is-down { color: #f87171; font-weight: 500; }
.dash-hero-kpi-sub.is-warn { color: #fbbf24; font-weight: 500; }
.dash-hero-kpi-sub.is-danger { color: #f87171; font-weight: 500; }
.dash-hero-kpi-sub.is-muted { color: #868d99; }

/* ── Premium light cards ───────────────────────────────────────── */
/* Module cards in the redesign get a larger radius + soft elevation.
   No overflow:hidden here — module tooltips (pacing graph etc.) must
   be free to escape the card bounds. */
.dash-redesign .dash-module {
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(10, 10, 12, 0.06), 0 2px 6px rgba(10, 10, 12, 0.04);
}
.dash-redesign .dash-module:hover {
  box-shadow: 0 8px 26px rgba(10, 10, 12, 0.09), 0 2px 8px rgba(10, 10, 12, 0.05);
  border-color: var(--border2);
}

/* Self-contained premium card (Needs your attention) — safe to clip. */
.dash-pcard {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(10, 10, 12, 0.06), 0 2px 6px rgba(10, 10, 12, 0.04);
}
.dash-pcard-shine {
  position: absolute; top: 0; left: 0; right: 0; height: 1px; z-index: 1;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 45%, transparent), transparent);
}

/* ── Layout grids ──────────────────────────────────────────────── */
.dash-ov-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 16px; align-items: start;
}
.dash-ov-main { display: flex; flex-direction: column; gap: 16px; }
.dash-ov-side { display: flex; flex-direction: column; gap: 16px; }
.dash-ov-strip { margin-bottom: 16px; }
@media (max-width: 900px) { .dash-ov-grid { grid-template-columns: 1fr; } }

/* ── Needs your attention ──────────────────────────────────────── */
.dash-attn { padding: 16px 18px; }
.dash-attn-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.dash-attn-title { font-weight: 600; font-size: 14px; color: var(--text); }
.dash-attn-count {
  font-size: 11px; color: var(--text2);
  background: var(--surface3, var(--bg2)); border-radius: 99px;
  padding: 2px 9px; font-weight: 500;
}
.dash-attn-empty { font-size: 12.5px; color: var(--text2); padding: 14px 0 4px; }
.dash-attn-row { display: flex; gap: 12px; padding: 13px 0; border-top: 1px solid var(--border); }
.dash-attn-row:first-of-type { margin-top: 6px; }
.dash-attn-dot { width: 8px; height: 8px; border-radius: 99px; margin-top: 5px; flex: none; }
.dash-attn-dot--danger { background: var(--red); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 14%, transparent); }
.dash-attn-dot--warn { background: var(--amber); box-shadow: 0 0 0 3px color-mix(in srgb, var(--amber) 14%, transparent); }
.dash-attn-dot--good { background: var(--green); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 14%, transparent); }
.dash-attn-dot--info { background: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 14%, transparent); }
.dash-attn-body { flex: 1; min-width: 0; }
.dash-attn-row-title { font-size: 13px; font-weight: 500; color: var(--text); }
.dash-attn-row-detail { font-size: 11.5px; color: var(--text2); margin: 2px 0 5px; }
.dash-attn-link {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--accent); font-weight: 500; font-size: 11.5px; font-family: inherit;
}
.dash-attn-link:hover { text-decoration: underline; }
