/* Variant: Dashboard — centred headline above a wide app dashboard on a soft glow.
   Hero markup in src/variants/dashboard; the rest is shared content. Light only. */

:root {
  --bg: #f7f7fb;
  --surface: #ffffff;
  --muted: #efeff6;
  --ink: #15142b;
  --ink-2: #57566f;
  --line: #e4e3ee;
  --accent: #5b5bd6;
  --accent-ink: #ffffff;
  --accent-soft: #ebebfd;
  --night: #15142b;
  --night-2: #222140;

  --ui-accent: #5b5bd6;
  --ui-img: #efeffd;
  --ui-tint-a: #e3e3fb;
  --ui-tint-b: #daf2e6;
  --ui-tint-c: #fdecd2;

  color-scheme: light;
}

.dsh-hero { overflow-x: clip; }
.dsh-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: clamp(3rem, 7vw, 5.5rem);
  text-align: center;
}
.dsh-title { max-width: 15ch; font-size: clamp(3rem, 6.6vw, 6.25rem); line-height: 0.96; letter-spacing: -0.05em; }
.dsh-hero .hero__lead { margin-top: 1.5rem; }
.dsh-hero .hero__actions { justify-content: center; align-self: center; margin-top: 2rem; }

.dsh {
  position: relative;
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  height: clamp(26rem, 44vw, 36rem);
  margin-top: clamp(3rem, 6vw, 4.5rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 50px 100px -50px rgba(60, 50, 160, 0.45), 0 0 0 8px rgba(255, 255, 255, 0.6);
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent);
  mask-image: linear-gradient(to bottom, #000 78%, transparent);
}
.dsh-hero > .wrap:last-child { position: relative; }
.dsh-hero > .wrap:last-child::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 8%;
  height: 70%;
  background: radial-gradient(closest-side, rgba(91, 91, 214, 0.35), rgba(255, 140, 200, 0.15) 60%, transparent);
  filter: blur(40px);
}

.dsh-side { padding: 18px 12px; border-right: 1px solid var(--line); background: #fbfbfe; }
.dsh-logo {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0 0 18px 6px;
  border-radius: 9px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
}
.dsh-side ul { display: grid; gap: 2px; padding: 0; list-style: none; }
.dsh-side li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--ink-2);
}
.dsh-side li.is-on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.dsh-ico { width: 14px; height: 14px; border-radius: 4px; background: currentColor; opacity: 0.45; }

.dsh-main { display: flex; flex-direction: column; gap: 14px; padding: 16px 20px; min-width: 0; }
.dsh-top { display: flex; justify-content: space-between; align-items: center; }
.dsh-search {
  width: min(40%, 18rem);
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--ink-2);
  text-align: left;
}

.dsh-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dsh-kpi { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; text-align: left; }
.dsh-kpi__label { font-size: 0.75rem; color: var(--ink-2); }
.dsh-kpi .sk--h { width: 45%; height: 16px; }
.dsh-spark { height: 28px; background: linear-gradient(180deg, rgba(91, 91, 214, 0.35), rgba(91, 91, 214, 0.05)); }
.dsh-spark--1 { clip-path: polygon(0 80%, 15% 60%, 30% 70%, 45% 40%, 60% 50%, 75% 25%, 90% 30%, 100% 10%, 100% 100%, 0 100%); }
.dsh-spark--2 { clip-path: polygon(0 60%, 20% 65%, 35% 45%, 50% 55%, 65% 30%, 80% 35%, 100% 20%, 100% 100%, 0 100%); background: linear-gradient(180deg, rgba(34, 170, 110, 0.35), rgba(34, 170, 110, 0.05)); }
.dsh-spark--3 { clip-path: polygon(0 70%, 12% 50%, 28% 55%, 42% 30%, 58% 40%, 72% 15%, 88% 25%, 100% 5%, 100% 100%, 0 100%); background: linear-gradient(180deg, rgba(240, 150, 60, 0.35), rgba(240, 150, 60, 0.05)); }

.dsh-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 12px; }
.dsh-panel { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; text-align: left; }
.dsh-panel__title { display: block; margin-bottom: 12px; font-size: 0.8125rem; font-weight: 600; }
.dsh-panel--table { grid-column: 1 / -1; }
.dsh-bars { display: flex; align-items: flex-end; gap: 8px; height: 8.5rem; }
.dsh-bars span { flex: 1; border-radius: 6px 6px 2px 2px; background: var(--accent); }
.dsh-bars span:nth-child(odd) { background: #a9a9f0; }
.dsh-bars span:nth-child(1) { height: 35%; } .dsh-bars span:nth-child(2) { height: 50%; }
.dsh-bars span:nth-child(3) { height: 42%; } .dsh-bars span:nth-child(4) { height: 62%; }
.dsh-bars span:nth-child(5) { height: 55%; } .dsh-bars span:nth-child(6) { height: 70%; }
.dsh-bars span:nth-child(7) { height: 64%; } .dsh-bars span:nth-child(8) { height: 78%; }
.dsh-bars span:nth-child(9) { height: 72%; } .dsh-bars span:nth-child(10) { height: 85%; }
.dsh-bars span:nth-child(11) { height: 80%; } .dsh-bars span:nth-child(12) { height: 95%; }
.dsh-doc { display: flex; align-items: center; gap: 10px; padding-block: 9px; border-bottom: 1px solid var(--line); }
.dsh-doc:last-child { border-bottom: 0; }
.dsh-doc__ico { flex: none; width: 18px; height: 22px; border-radius: 3px; background: #ffd9a8; clip-path: polygon(0 0, 70% 0, 100% 25%, 100% 100%, 0 100%); }
.dsh-doc .sk { flex: 1; }

@media (max-width: 47.99em) {
  .dsh { grid-template-columns: minmax(0, 1fr); }
  .dsh-side { display: none; }
  .dsh-kpi:nth-child(3) { display: none; }
  .dsh-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dsh-grid { grid-template-columns: minmax(0, 1fr); }
  .dsh-panel--docs { display: none; }
}

/* Shared sections */
.steps li::before { background: var(--accent); }
.tile--dark .focus strong { color: #b4b4ff; }
.faq summary::after { background: var(--accent-soft); color: var(--accent); }
.phscale__ticks { color: var(--ink-2); }
