.dash {
  position: relative;
}

.dash__glow {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 90px;
  bottom: -40px;
  background: radial-gradient(closest-side, rgba(0, 135, 68, 0.28), transparent);
  filter: blur(40px);
  pointer-events: none;
}

.dash__frame {
  position: relative;
  padding: 10px;
  border: 1px solid #dcede3;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.3));
  box-shadow: 0 60px 120px -60px rgba(0, 60, 30, 0.45);
}

.dash__window {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--opt-line);
  border-radius: 18px;
  background-color: var(--opt-white);
  text-align: left;
}

.dash__icon {
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dash__topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--opt-line-soft);
}

.dash__logo {
  flex: 0 0 auto;
  width: auto;
  height: 28px;
}

.dash__collapse {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-left: 60px;
  border: 1px solid var(--opt-line);
  border-radius: 8px;
  font-size: 12px;
  color: var(--opt-muted-strong);
}

.dash__search {
  flex: 0 1 420px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--opt-line);
  border-radius: 10px;
  background-color: #fafcfb;
  color: var(--opt-muted);
}

.dash__search-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  white-space: nowrap;
  color: #8a988f;
}

.dash__kbd {
  padding: 1px 6px;
  border: 1px solid var(--opt-line);
  border-radius: 6px;
  background-color: var(--opt-white);
  font-size: 11px;
  color: var(--opt-muted-strong);
}

.dash__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  color: var(--opt-ink);
}

.dash__bell {
  position: relative;
  display: flex;
}

.dash__bell-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--opt-live);
}

.dash__avatar {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: var(--opt-green);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--opt-white);
}

.dash__avatar--sm {
  width: 32px;
  height: 32px;
}

.dash__avatar--lg {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
}

.dash__avatar-status {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 8px;
  height: 8px;
  border: 2px solid var(--opt-white);
  border-radius: 50%;
  background-color: var(--opt-live);
  box-sizing: content-box;
}

.dash__body {
  display: flex;
}

.dash__sidebar {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  padding: 14px 12px;
  border-right: 1px solid var(--opt-line-soft);
}

.dash__workspace {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--opt-line-soft);
  border-radius: 10px;
  color: var(--opt-ink);
}

.dash__workspace-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--opt-line);
  border-radius: 8px;
}

.dash__workspace-name {
  flex: 1;
  font-size: 13.5px;
  font-weight: 500;
}

.dash__workspace-caret {
  font-size: 11px;
  color: var(--opt-muted-strong);
}

.dash__group-label {
  margin: 14px 0 0;
  padding: 0 12px 4px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--opt-ink);
}

.dash__nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13.5px;
  color: var(--opt-body);
}

.dash__nav-item .dash__icon {
  color: var(--opt-muted);
}

.dash__nav-item--active {
  padding-block: 10px;
  background: linear-gradient(90deg, #eef4f0 0%, var(--opt-mint) 50%, #eef4f0 100%);
  font-weight: 500;
  color: var(--opt-ink);
}

.dash__nav-item--active .dash__icon {
  color: var(--opt-ink);
}

.dash__user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--opt-line-soft);
}

.dash__user-copy {
  min-width: 0;
}

.dash__user-name {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--opt-ink);
}

.dash__user-mail {
  margin: 0;
  font-size: 11.5px;
  color: var(--opt-muted);
}

.dash__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  background-color: #fcfdfc;
}

.dash__card {
  height: 100%;
  min-width: 0;
  padding: 16px;
  border: 1px solid #e6efe9;
  border-radius: 12px;
  background-color: var(--opt-white);
}

.dash__card--welcome {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1.5px dashed #dce5e0;
}

.dash__card--promo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  border-color: #efe7da;
  background: linear-gradient(110deg, #fbf6ee, #f6f1ea);
}

.dash__title {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--opt-ink);
}

.dash__title--sm {
  font-size: 14px;
}

.dash__install-copy .dash__title--sm {
  font-size: 14.5px;
}

.dash__install-copy .dash__nowrap {
  white-space: nowrap;
}

.dash__meta {
  font-size: 12.5px;
}

.dash__meta {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--opt-muted-strong);
}

.dash__promo-copy {
  flex: 1 1 220px;
  min-width: 0;
}

.dash__promo-copy .dash__meta {
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.5;
}

.dash__stores {
  display: flex;
  gap: 6px;
}

.dash__store {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px 5px 8px;
  border: 1px solid #a6a6a6;
  border-radius: 7px;
  background-color: #000;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--opt-white);
}

.dash__store-icon {
  flex: 0 0 auto;
}

.dash__store-text {
  display: block;
}

.dash__store-note {
  display: block;
  font-size: 7px;
  font-weight: 400;
  opacity: 0.85;
}

.dash__install {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #dce8f0;
  border-radius: 12px;
  background-color: #f3f7fa;
}

.dash__install-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--opt-line);
  border-radius: 10px;
  background-color: var(--opt-white);
  color: var(--opt-ink);
}

.dash__install-copy {
  flex: 1 1 240px;
  min-width: 0;
}

.dash__install-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dash__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid var(--opt-line);
  border-radius: 7px;
  background-color: var(--opt-white);
  font-size: 12.5px;
  color: var(--opt-ink);
}

.dash__chip--primary {
  padding: 8px 12px;
  border-color: var(--opt-green);
  background-color: var(--opt-green);
  font-weight: 500;
  color: var(--opt-white);
}

.dash__stat-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.dash__stat-icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background-color: #f3f6f4;
  color: var(--opt-ink);
}

.dash__stat-label {
  margin: 0;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--opt-muted);
}

.dash__stat-value {
  margin: 2px 0 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--opt-ink);
}

.dash__meter {
  height: 4px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 99px;
  background-color: var(--opt-line-soft);
}

.dash__meter-fill {
  width: 20%;
  height: 100%;
  border-radius: 99px;
  background-color: var(--opt-green);
}

.dash__legend {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  font-size: 11px;
  color: var(--opt-muted-strong);
}

.dash__legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.dash__dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--opt-green);
}

.dash__dot--muted {
  background-color: #cfd8d3;
}

.dash__spark {
  height: 26px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 6px;
  background: linear-gradient(180deg, #f3faf6, var(--opt-white));
}

.dash__spark-path {
  vector-effect: non-scaling-stroke;
}

.dash__spark-line {
  display: block;
  width: 200%;
  height: 26px;
  fill: none;
  stroke: var(--opt-green);
  stroke-width: 1.6;
  stroke-linejoin: round;
}

.dash__typing {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background-color: #f3f6f4;
  font-size: 11px;
  color: var(--opt-muted-strong);
}

.dash__typing-dots {
  display: flex;
  gap: 3px;
}

.dash__typing-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--opt-green);
}

.dash__stat-note {
  margin: 12px 0 0;
  font-size: 11.5px;
  color: var(--opt-muted);
}

.dash__stat-link {
  margin: 8px 0 0;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--opt-green);
}

.dash__list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--opt-line-soft);
}

.dash__list-label {
  margin: 0;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--opt-muted-strong);
}

.dash__list-limit {
  margin: 0;
  font-size: 11px;
  color: var(--opt-muted);
}

.dash__list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-block: 14px;
}

.dash__site-name {
  margin: 0;
  font-size: 13.5px;
  color: var(--opt-ink);
}

.dash__site-url {
  margin: 0;
  font-size: 11.5px;
  color: var(--opt-muted);
}

.dash__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 7px;
  background-color: var(--opt-mint);
  font-size: 12px;
  font-weight: 500;
  color: var(--opt-green);
}

.dash__list-foot {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--opt-line-soft);
  font-size: 12px;
  font-weight: 500;
  text-align: right;
  color: var(--opt-green);
}

.dash__plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dash__plan-name {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--opt-ink);
}

.dash__plan-state {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--opt-green);
}

.dash__plan-price {
  margin: 8px 0 0;
  font-size: 22px;
  font-weight: 500;
  color: var(--opt-ink);
}

.dash__plan-note {
  margin: 6px 0 0;
  font-size: 12.5px;
  color: #3e4943;
}

.dash__bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 30px;
  margin-top: 12px;
}

.dash__bar {
  flex: 1;
  height: 100%;
  border-radius: 3px 3px 0 0;
  background-color: var(--opt-line-green);
}

.dash__bar--mid {
  background-color: #9ed9b8;
}

.dash__bar--strong {
  background-color: var(--opt-green);
}

.dash__plan-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #e6efe9;
  border-radius: 10px;
}

.dash__plan-foot-title {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--opt-muted-strong);
}

.dash__plan-foot-meta {
  font-size: 10.5px;
  color: #8a988f;
}

.dash__plan-foot-tag {
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 6px;
  background-color: var(--opt-mint);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--opt-green);
}

.dash__toast {
  position: absolute;
  top: 120px;
  right: -10px;
  z-index: 3;
  animation: dash-float 6s ease-in-out infinite;
}

.dash__toast-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid #dcede3;
  border-radius: 14px;
  background-color: var(--opt-white);
  box-shadow: 0 24px 50px -24px rgba(0, 60, 30, 0.45);
  text-align: left;
}

.dash__toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background-color: var(--opt-green);
  color: var(--opt-white);
}

.dash__ticker {
  min-width: 150px;
  height: 34px;
  overflow: hidden;
}

.dash__ticker-track {
  animation: dash-ticker 9s ease-in-out infinite;
}

.dash__ticker-item {
  height: 34px;
}

.dash__ticker-label {
  margin: 0;
  font-size: 11px;
  color: var(--opt-muted);
}

.dash__ticker-value {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--opt-ink);
}

@keyframes dash-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@keyframes dash-ticker {
  0%,
  26% {
    transform: translateY(0);
  }

  33%,
  59% {
    transform: translateY(-34px);
  }

  66%,
  92% {
    transform: translateY(-68px);
  }

  100% {
    transform: translateY(-102px);
  }
}

@media (max-width: 1199.98px) {
  .dash__toast {
    top: -22px;
    right: 12px;
  }
}

/* Below the desktop layout the floating status card would cover the dashboard's own top bar. */
@media (max-width: 991.98px) {
  .dash__toast {
    display: none;
  }

  .dash__sidebar,
  .dash__collapse {
    display: none;
  }

  .dash__main {
    padding: 14px;
  }
}

/* Stacked into one column here, the extra cards only make the preview very tall. */
@media (max-width: 767.98px) {
  .dash__row--billing,
  .dash__row--stats > :nth-child(n + 2) {
    display: none;
  }

  /* Install card: icon beside the title, then the three buttons in an even grid
     (the main one full width, the other two side by side) instead of a ragged wrap. */
  .dash__install {
    align-items: flex-start;
  }

  .dash__install-copy {
    flex: 1 1 0;
  }

  .dash__install-actions {
    flex: 1 1 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .dash__install-actions .dash__chip {
    justify-content: center;
    white-space: nowrap;
  }

  .dash__install-actions .dash__chip--primary {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575.98px) {
  .dash__frame {
    padding: 6px;
    border-radius: 20px;
  }

  .dash__topbar {
    padding: 10px 12px;
  }

  .dash__search {
    display: none;
  }

}

@media (prefers-reduced-motion: reduce) {
  .dash__toast,
  .dash__ticker-track {
    animation: none;
  }
}
