/* Shared visual styles from the supplied home dashboard artboards. */
.home-dashboard *, .home-dashboard *::before, .home-dashboard *::after { box-sizing: border-box; margin: 0; padding: 0; }
.home-dashboard { margin: 0; background: #ffffff; font-family: var(--font-sans); color: #1b242c; -webkit-font-smoothing: antialiased; font-feature-settings: 'tnum' 1; }
.home-dashboard a { color: #4C45C0; text-decoration: none; }
.home-dashboard a:hover { color: #3b35a3; }
.home-dashboard .hpd-win { background: #ffffff; display: flex; flex-direction: column; border: 1px solid #e4e3ef; overflow: hidden; border-radius: 6px; }
.home-dashboard .hpd-win-bar { flex: none; height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 18px; border-bottom: 1px solid #eef1f5; background: #fbfbfd; }
.home-dashboard .hpd-dot { width: 12px; height: 12px; border-radius: 50%; }
.home-dashboard .hpd-win-body { flex: 1; min-height: 0; padding: 32px 40px 40px; display: flex; flex-direction: column; gap: 36px; }
.home-dashboard .hpd-win-body.hpd-small { padding: 28px 32px 32px; gap: 28px; }
.home-dashboard .hpd-win-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.home-dashboard .hpd-win-title { font-size: 20px; line-height: 1.25; font-weight: 500; letter-spacing: -0.3px; color: #1b242c; white-space: nowrap; }
.home-dashboard .hpd-win-meta { font-size: 13px; line-height: 1.5; font-weight: 400; color: #6b7585; white-space: nowrap; }
.home-dashboard .hpd-stat { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.home-dashboard .hpd-stat-label { font-size: 14px; line-height: 1.4; font-weight: 500; color: #4a545e; }
.home-dashboard .hpd-stat-value { font-size: 40px; line-height: 1.1; font-weight: 600; letter-spacing: -1px; color: #1b242c; white-space: nowrap; }
.home-dashboard .hpd-stat-value.hpd-accent { color: #4C45C0; }
.home-dashboard .hpd-stat-unit { font-size: 16px; line-height: 1; font-weight: 500; letter-spacing: 0; color: #6b7585; margin-left: 6px; }
.home-dashboard .hpd-stat-sub { font-size: 14px; line-height: 1.4; color: #6b7585; }
.home-dashboard .hpd-delta { font-size: 14px; line-height: 1; font-weight: 600; letter-spacing: 0; color: #1d7c4d; margin-left: 10px; }
.home-dashboard .hpd-section-label { font-size: 14px; line-height: 1.4; font-weight: 500; color: #1b242c; }
.home-dashboard .hpd-row-text { font-size: 16px; line-height: 1.4; color: #1b242c; }
.home-dashboard .hpd-row-value { font-size: 16px; line-height: 1.4; font-weight: 500; color: #1b242c; text-align: right; white-space: nowrap; }
.home-dashboard .hpd-row-muted { font-size: 14px; line-height: 1.4; color: #6b7585; text-align: right; white-space: nowrap; }
.home-dashboard .hpd-axis-label { font-size: 13px; line-height: 1.4; color: #6b7585; text-align: center; }
.home-dashboard .hpd-divider { border-left: 1px solid #e6e9f0; }
.home-dashboard .hpd-bar { height: 10px; background: #eef0f5; overflow: hidden; border-radius: 3px; }
.home-dashboard .hpd-bar > span { display: block; height: 100%; background: #4C45C0; border-radius: 3px; }
.home-dashboard .hpd-tbl { width: 100%; border-collapse: collapse; table-layout: fixed; }
.home-dashboard .hpd-tbl th { padding: 0 0 14px; font-size: 13px; line-height: 1.4; font-weight: 500; color: #6b7585; text-align: left; border-bottom: 1px solid #dee3e7; white-space: nowrap; }
.home-dashboard .hpd-tbl td { padding: 16px 0; font-size: 16px; line-height: 1.4; color: #1b242c; border-bottom: 1px solid #eef1f5; white-space: nowrap; }
.home-dashboard .hpd-tbl tbody tr:last-child td { border-bottom-color: #dee3e7; }
.home-dashboard .hpd-tbl th.hpd-r, .home-dashboard .hpd-tbl td.hpd-r { text-align: right; }
.home-dashboard .hpd-tbl th:not(:first-child), .home-dashboard .hpd-tbl td:not(:first-child) { padding-left: 28px; }
.home-dashboard .hpd-tbl tfoot td { font-weight: 600; border-bottom: 0; }
.home-dashboard .hpd-tag { display: inline-flex; align-items: center; justify-content: center; height: 26px; padding: 0 10px; font-size: 13px; line-height: 1; font-weight: 500; white-space: nowrap; border-radius: 4px; }

/* Scrollable by default; enhance to a fitted canvas after sizing succeeds. */
.home-dashboard {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: auto;
  text-align: left;
  border-radius: 6px;
}

.home-dashboard .home-dashboard__canvas {
  position: relative;
}

.home-dashboard.is-scaled {
  aspect-ratio: var(--dashboard-aspect-ratio);
  overflow: hidden;
}

.home-dashboard.is-scaled .home-dashboard__canvas {
  position: absolute;
  top: 0;
  left: 0;
  transform: scale(var(--dashboard-scale, 1));
  transform-origin: top left;
}


.page-homepage .hp-dashboard-panel {
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
  max-width: 100%;
  padding: 28px;
}
.page-homepage .hp-x2 .home-dashboard {
  margin-inline: auto;
  box-shadow: 0 24px 60px rgb(10 13 40 / 28%);
}
.page-homepage .hp-dashboard-panel .home-dashboard {
  flex: 0 1 auto;
  box-shadow: 0 16px 48px rgb(27 36 44 / 12%);
}
@media (max-width: 768px) {
  .page-homepage .hp-dashboard-panel { padding: 12px; }
}

/* Hero: compact metric cards, a stronger return highlight, and a single reveal. */
.home-dashboard--hero .hpd-win-bar {
  height: 36px;
  background: linear-gradient(90deg, #f3f2fc, #fafaff);
  border-bottom-color: #e4e1f4;
}
.home-dashboard--hero .hpd-win-body { padding: 20px 32px 24px; gap: 20px; }
.home-dashboard--hero .hpd-hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.home-dashboard--hero .hpd-hero-metric {
  padding: 14px 20px;
  gap: 6px;
  border: 1px solid #e9e7f3;
  border-radius: 6px;
  background: linear-gradient(135deg, #fafaff, #f2f1fa);
  box-shadow: 0 2px 4px rgb(35 27 95 / 3%);
}
.home-dashboard--hero .hpd-hero-metric--return {
  border-color: #5d53cc;
  background: linear-gradient(120deg, #3c339f, #6559d8);
  box-shadow: 0 6px 16px rgb(65 52 162 / 18%);
}
.home-dashboard--hero .hpd-hero-metric--return .hpd-stat-value { color: #fff; }
.home-dashboard--hero .hpd-hero-metric--return :is(.hpd-stat-label, .hpd-stat-sub) { color: #e6e2ff; }
.home-dashboard--hero .hpd-hero-chart { display: flex; flex-direction: column; gap: 12px; }
.home-dashboard--hero .hpd-hero-rows { display: flex; flex-direction: column; gap: 8px; }
.home-dashboard--hero .hpd-hero-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 54px;
  gap: 16px;
  align-items: center;
}
.home-dashboard--hero .hpd-bar {
  height: 12px;
  background: #efedf7;
}
.home-dashboard--hero .hpd-bar > span {
  background: linear-gradient(90deg, #8e83eb, #5145bf);
  transform-origin: left center;
}
.home-dashboard--hero .hpd-hero-row:first-child .hpd-bar > span {
  background: linear-gradient(90deg, #7666df, #4234ad);
}
.home-dashboard--hero .hpd-hero-metric:nth-child(2) { --metric-delay: 100ms; }
.home-dashboard--hero .hpd-hero-metric:nth-child(3) { --metric-delay: 200ms; }
.home-dashboard--hero .hpd-hero-row:nth-child(2) { --bar-delay: 80ms; }
.home-dashboard--hero .hpd-hero-row:nth-child(3) { --bar-delay: 160ms; }
.home-dashboard--hero .hpd-hero-row:nth-child(4) { --bar-delay: 240ms; }
.home-dashboard--hero .hpd-hero-row:nth-child(5) { --bar-delay: 320ms; }

@media (prefers-reduced-motion: no-preference) {
  .home-dashboard--hero.is-revealed .hpd-hero-metric {
    animation: home-metric-reveal 650ms cubic-bezier(.22, 1, .36, 1) var(--metric-delay, 0ms) backwards;
  }
  .home-dashboard--hero.is-revealed .hpd-bar > span {
    animation: home-bar-fill 1100ms cubic-bezier(.22, 1, .36, 1) calc(200ms + var(--bar-delay, 0ms)) backwards;
  }
}
@keyframes home-metric-reveal {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes home-bar-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Product charts reveal once as each dashboard enters the viewport. */
.home-dashboard--leaderboard .hpd-bar > span { transform-origin: left center; }
@media (prefers-reduced-motion: no-preference) {
  .home-dashboard.is-revealed:not(.home-dashboard--hero) .hpd-stat,
  .home-dashboard.is-revealed .hpd-motion-stage {
    animation: home-metric-reveal 650ms cubic-bezier(.22, 1, .36, 1) var(--motion-delay, 0ms) backwards;
  }
  .home-dashboard--leaderboard.is-revealed .hpd-bar > span {
    animation: home-bar-fill 950ms cubic-bezier(.22, 1, .36, 1) var(--motion-delay, 0ms) backwards;
  }
  .home-dashboard.is-revealed .hpd-motion-column {
    animation: home-column-reveal 1000ms cubic-bezier(.22, 1, .36, 1) var(--motion-delay, 0ms) backwards;
  }
  .home-dashboard.is-revealed .hpd-motion-area {
    animation: home-chart-sweep 1100ms cubic-bezier(.22, 1, .36, 1) 100ms backwards;
  }
  .home-dashboard.is-revealed .hpd-motion-line {
    stroke-dasharray: 1;
    animation: home-line-draw 1100ms cubic-bezier(.22, 1, .36, 1) 100ms backwards;
  }
  .home-dashboard.is-revealed .hpd-motion-point {
    animation: home-point-reveal 450ms ease-out var(--motion-delay, 0ms) backwards;
  }
}
@keyframes home-column-reveal {
  from { clip-path: inset(100% 0 0); }
  to { clip-path: inset(0); }
}
@keyframes home-chart-sweep {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0); }
}
@keyframes home-line-draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
@keyframes home-point-reveal {
  from { opacity: 0; }
  to { opacity: 1; }
}
