.flow-tabs {
  position: sticky;
  top: 64px;
  z-index: 45;
  width: 100%;
  align-self: stretch;
  background: rgba(248, 249, 250, 0.88);
  border-bottom: 1px solid rgba(196, 198, 205, 0.45);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 32px rgba(4, 22, 39, 0.035);
  overflow: visible;
}

.flow-tabs__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 10px 0;
  min-width: 0;
}

.flow-tabs__label {
  flex: 0 0 auto;
  color: #74777d;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 13px;
  line-height: 18px;
  font-weight: 800;
  letter-spacing: 0;
}

.flow-tabs__list {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(183, 200, 222, 0.62);
  border-radius: 14px;
  padding: 5px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  scroll-padding-inline: 8px;
  box-shadow: inset 0 2px 5px rgba(4, 22, 39, 0.03);
}

.flow-tabs__list::-webkit-scrollbar {
  display: none;
}

.flow-tabs__tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: #44474c;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
  padding: 8px 13px;
  text-decoration: none;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
  transition:
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease,
    opacity 180ms ease;
  isolation: isolate;
}

.flow-tabs__tab::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 8px;
  background: rgba(41, 102, 163, 0.08);
  opacity: 0;
  transition: opacity 180ms ease;
  z-index: -1;
}

.flow-tabs__tab:hover:not([aria-current="page"]) {
  background: rgba(210, 228, 251, 0.34);
  color: #041627;
}

.flow-tabs__tab:hover:not([aria-current="page"])::before {
  opacity: 1;
}

.flow-tabs__tab:active:not([aria-current="page"]),
.flow-tabs__tab--pressed:not([aria-current="page"]) {
  background: rgba(210, 228, 251, 0.48);
}

.flow-tabs__tab[aria-current="page"] {
  background: #041627;
  color: #ffffff;
  box-shadow: 0 7px 14px rgba(4, 22, 39, 0.18);
}

.flow-tabs__tab[aria-current="page"]::before {
  background: rgba(255, 255, 255, 0.12);
  opacity: 1;
}

.flow-tabs__tab--locked {
  opacity: 0.6;
  cursor: not-allowed;
}

.flow-tabs__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  color: currentColor;
  font-size: 20px;
  line-height: 20px;
  opacity: 0.86;
  transition: opacity 180ms ease;
}

.flow-tabs__tab:hover .flow-tabs__icon,
.flow-tabs__tab[aria-current="page"] .flow-tabs__icon {
  opacity: 1;
}

.flow-tabs__copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  line-height: 18px;
}

.flow-tabs__title {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.flow-tabs__label-text {
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.flow-tabs__meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  border-radius: 999px;
  background: rgba(4, 22, 39, 0.08);
  color: currentColor;
  font-size: 11px;
  line-height: 14px;
  font-weight: 800;
  padding: 3px 8px;
  opacity: 0.84;
}

.flow-tabs__tab[aria-current="page"] .flow-tabs__meta {
  background: rgba(255, 255, 255, 0.16);
  opacity: 1;
}

.flow-tabs__hint {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 999px;
  background: rgba(210, 228, 251, 0.58);
  border: 1px solid rgba(183, 200, 222, 0.65);
  padding: 8px 13px;
  color: #38485a;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
  transition: background-color 180ms ease, color 180ms ease;
}

.flow-tabs__hint:hover {
  background: #d2e4fb;
  color: #041627;
}

@media (max-width: 820px) {
  .flow-tabs {
    top: 60px;
  }

  .flow-tabs__inner {
    align-items: center;
    flex-direction: row;
    gap: 8px;
    width: min(100% - 32px, 1280px);
    padding: 7px 0;
  }

  .flow-tabs__label,
  .flow-tabs__hint,
  .flow-tabs__meta {
    display: none;
  }

  .flow-tabs__list {
    flex: 1 1 auto;
    width: 100%;
    padding: 4px;
    border-radius: 10px;
    justify-content: flex-start;
  }

  .flow-tabs__tab {
    min-height: 40px;
    padding: 8px 12px;
  }
}

@media (max-width: 520px) {
  .flow-tabs__inner {
    width: min(100% - 20px, 1280px);
  }

  .flow-tabs__tab {
    min-height: 42px;
    padding: 8px 11px;
    font-size: 13px;
  }

  .flow-tabs__icon {
    width: 18px;
    height: 18px;
    font-size: 18px;
  }
}

.flow-tabs__live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #ff3b30;
  border-radius: 50%;
  margin-right: 6px;
  box-shadow: 0 0 0 4px rgba(255, 59, 48, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  .flow-tabs__tab,
  .flow-tabs__tab::before,
  .flow-tabs__icon,
  .flow-tabs__hint,
  .flow-tabs__live-dot {
    animation: none;
    transition: none;
  }
}
