.termix-dashboard {
  display: flex;
  width: 100%;
  min-height: 507px;
  margin-top: 30px;
  padding: 40px 57px;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  background: var(--mockup-01-default);
}

.termix-dashboard-tabs {
  display: flex;
  width: 318px;
  max-width: 100%;
  min-height: 38px;
  padding: 4px 8px;
  align-items: center;
  gap: 2px;
  border-radius: 28px;
  background: var(--navigation-control-bg);
}

.termix-dashboard-tab {
  position: relative;
  display: inline-flex;
  min-height: 30px;
  padding: 6px 12px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 24px;
  background: transparent;
  color: var(--text-subtler);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  transition: color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

.termix-dashboard-tab:not(:last-child)::after {
  position: absolute;
  top: 6px;
  right: -2px;
  width: 1px;
  height: 18px;
  background: currentColor;
  content: "";
  opacity: 0.08;
}

.termix-dashboard-tab:hover:not(.is-active) {
  color: var(--text-subtle);
}

.termix-dashboard-tab.is-active {
  z-index: 1;
  background: var(--navigation-control-selected);
  box-shadow: 0 2px 8px rgb(0 0 0 / 6%);
  color: var(--navigation-control-selected-fg);
}

.termix-dashboard-tab.is-active::after,
.termix-dashboard-tab:has(+ .is-active)::after {
  opacity: 0;
}

.termix-dashboard-tab:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 2px;
}

.termix-dashboard-frame {
  overflow: hidden;
  width: 586px;
  max-width: 100%;
  margin: 0;
  padding: 4px;
  border-radius: 6px;
  background: var(--mockup-01-bold);
}

.termix-dashboard-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  aspect-ratio: 8 / 5;
  object-fit: contain;
  transition: opacity 100ms ease;
}

.termix-dashboard-image.is-changing {
  opacity: 0.55;
}

@media (max-width: 760px) {
  .termix-dashboard {
    min-height: 0;
    padding: 28px 16px;
    gap: 18px;
  }

  .termix-dashboard-tabs {
    width: 100%;
    padding-inline: 5px;
    justify-content: center;
  }

  .termix-dashboard-tab {
    min-width: 0;
    padding-inline: 9px;
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  .termix-dashboard-tab {
    padding-inline: 7px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .termix-dashboard-tab,
  .termix-dashboard-image {
    transition: none;
  }
}
