/* =========================================================
   Compact dashboard in the homepage hero
   ========================================================= */

.hero-media {
  perspective: 1400px;
  isolation: isolate;
}

.hero-media::before {
  content: none;
}

.hero-media::after {
  content: none;
}

.hero-dashboard {
  --hero-dashboard-line: rgba(11, 13, 26, 0.25);
  position: relative;
  z-index: 2;
  width: min(570px, 100%);
  height: 345px;
  box-sizing: border-box;
  font-family: var(--font);
  font-variant-numeric: tabular-nums;
  border: 1px solid rgba(11, 13, 26, 0.27);
  border-radius: 11px;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(11, 13, 26, 0.08),
    0 9px 20px -8px rgba(11, 13, 26, 0.24);
  transform: none;
  transform-origin: center;
  overflow: hidden;
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s ease;
}

.hero-dashboard::before {
  content: none;
}

.hero-dashboard::after {
  content: none;
}

.hero-media:hover .hero-dashboard {
  transform: translateY(-4px);
  box-shadow:
    0 2px 4px rgba(11, 13, 26, 0.09),
    0 12px 24px -9px rgba(11, 13, 26, 0.26);
}

.hero-dashboard-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  background: #fff;
  box-shadow: none;
}

.hero-dashboard-sidebar {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 10px 10px;
  border-right: 1px solid var(--line);
  background: var(--surface);
}

.hero-dashboard-nav-item {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 28px;
  padding: 5px 7px;
  border-radius: 5px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 400;
}

.hero-dashboard-nav-item svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  stroke-width: 1.5;
}

.hero-dashboard-nav-item.is-active {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-weight: 500;
  box-shadow: inset 0 0 0 1px rgba(11, 13, 26, 0.045);
}

.hero-dashboard-user {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding: 9px 1px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.56rem;
  font-weight: 600;
  white-space: nowrap;
}

.hero-dashboard-avatar {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(11, 13, 26, 0.11);
  border-radius: 50%;
  background: #fff;
  font-size: 0.49rem;
  font-weight: 700;
}

.hero-dashboard-main {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: start;
  gap: 11px;
  padding: 15px;
  background: #fff;
}

.hero-dashboard-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.hero-dashboard-stat {
  padding: 9px 11px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  box-shadow: inset 0 0 0 0.5px var(--hero-dashboard-line);
}

.hero-dashboard-stat > span {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 500;
  line-height: 1.35;
}

.hero-dashboard-stat p {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: #27804b;
  font-size: 0.56rem;
  font-weight: 600;
  line-height: 1.3;
}

.hero-dashboard-stat strong {
  color: var(--ink);
  font-size: 0.98rem;
  letter-spacing: -0.03em;
}

.hero-dashboard-call {
  min-height: 0;
  padding: 9px 11px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  box-shadow: inset 0 0 0 0.5px var(--hero-dashboard-line);
}

.hero-dashboard-call-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.hero-dashboard-call-identity {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.hero-dashboard-call-icon {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 5px;
  background: var(--surface);
  color: var(--muted);
}

.hero-dashboard-call-icon svg {
  width: 12px;
  height: 12px;
}

.hero-dashboard-call-identity > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.hero-dashboard-call-identity h3 {
  color: var(--muted);
  font-size: 0.56rem;
  font-weight: 500;
  line-height: 1.3;
}

.hero-dashboard-call-identity strong {
  color: var(--ink);
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.35;
}

.hero-dashboard-call-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  color: var(--faint);
  font-size: 0.56rem;
  line-height: 1.35;
  white-space: nowrap;
}

.hero-dashboard-summary {
  margin-top: 10px;
  padding: 2px 0 3px;
}

.hero-dashboard-summary > div {
  min-width: 0;
}

.hero-dashboard-summary-label {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 0.56rem;
  font-weight: 600;
  line-height: 1.3;
}

.hero-dashboard-summary p {
  color: var(--ink);
  font-size: 0.56rem;
  line-height: 1.4;
}

.hero-dashboard-card {
  padding: 11px 12px 12px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  box-shadow: inset 0 0 0 0.5px var(--hero-dashboard-line);
}

.hero-dashboard-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}

.hero-dashboard-card-head h3 {
  font-size: 0.7rem;
  font-weight: 600;
}

.hero-dashboard-field {
  margin-bottom: 8px;
}

.hero-dashboard-field:last-child {
  margin-bottom: 0;
}

.hero-dashboard-field label {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 0.58rem;
  font-weight: 600;
}

.hero-dashboard-input {
  width: 100%;
  min-height: 31px;
  padding: 7px 9px;
  border: 0;
  border-radius: 5px;
  background: #fff;
  box-shadow: inset 0 0 0 0.5px var(--hero-dashboard-line);
  color: var(--body);
  font-size: 0.58rem;
  line-height: 1.45;
}

.hero-dashboard-choices {
  display: flex;
  gap: 5px;
}

.hero-dashboard-choice {
  min-height: 27px;
  padding: 0 11px;
  border: 0;
  border-radius: 5px;
  background: #fff;
  box-shadow: inset 0 0 0 0.5px var(--hero-dashboard-line);
  color: var(--body);
  font-family: inherit;
  font-size: 0.58rem;
}

.hero-dashboard-choice.is-selected {
  box-shadow: inset 0 0 0 0.5px rgba(3, 2, 36, 0.55);
  color: var(--ink);
  font-weight: 600;
}

.hero-dashboard-stat p,
.hero-dashboard [data-dashboard-phone],
.hero-dashboard [data-dashboard-time],
.hero-dashboard [data-dashboard-summary] {
  transition:
    opacity 0.26s ease,
    transform 0.26s ease;
}

.hero-dashboard .is-data-fading {
  opacity: 0;
  transform: translateY(2px);
}

.hero-dashboard-glow {
  display: none;
}

@media (max-width: 980px) {
  .hero-dashboard {
    width: min(570px, 92vw);
    transform: none;
  }
}

@media (max-width: 620px) {
  .hero-dashboard {
    width: min(440px, 92vw);
    height: 340px;
  }

  .hero-dashboard-shell {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .hero-dashboard-sidebar {
    align-items: center;
    padding-inline: 8px;
  }

  .hero-dashboard-nav-item span,
  .hero-dashboard-user span:last-child {
    display: none;
  }

  .hero-dashboard-nav-item {
    width: 32px;
    justify-content: center;
    padding-inline: 5px;
  }

  .hero-dashboard-user {
    justify-content: center;
    width: 100%;
    padding-inline: 0;
  }

  .hero-dashboard-main {
    gap: 8px;
    padding: 12px;
  }

}

@media (max-width: 430px) {
  .hero-dashboard {
    height: 330px;
  }

  .hero-dashboard-main {
    gap: 7px;
    padding: 10px;
  }

  .hero-dashboard-stats {
    gap: 6px;
  }

  .hero-dashboard-stat {
    padding: 7px 8px;
  }

  .hero-dashboard-call {
    padding: 7px 8px;
  }

  .hero-dashboard-summary {
    margin-top: 6px;
  }

  .hero-dashboard-card {
    padding: 8px 9px;
  }

  .hero-dashboard-card-head,
  .hero-dashboard-field {
    margin-bottom: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-dashboard {
    transition: none;
  }

  .hero-dashboard-stat p,
  .hero-dashboard [data-dashboard-phone],
  .hero-dashboard [data-dashboard-time],
  .hero-dashboard [data-dashboard-summary] {
    transition: none;
  }

  .hero-media:hover .hero-dashboard {
    transform: none;
  }
}
