.home-view-switch {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  width: 228px;
  height: 38px;
  padding: 3px;
  color: #667085;
  background: #eef2f6;
  border: 1px solid #dce5ed;
  border-radius: 20px;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.home-view-switch button {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  padding: 0 8px;
  color: inherit;
  background: transparent;
  border: 0;
  border-radius: 17px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
}

.home-view-switch button[aria-checked="true"] {
  color: #087fb8;
  font-weight: 700;
}

.home-view-switch button:focus-visible {
  outline: 2px solid #45adcf;
  outline-offset: 1px;
}

.home-view-thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc((100% - 6px) / 3);
  background: #ffffff;
  border-radius: 17px;
  box-shadow: 0 1px 4px #15202a1a;
  pointer-events: none;
  transition: transform 180ms ease;
}

.home-view-switch--overlay {
  color: #dce8ee;
  background: rgba(12, 20, 28, 0.68);
  border-color: rgba(255, 255, 255, 0.24);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.home-view-switch--overlay .home-view-thumb {
  background: #d7f1eb;
}

.home-view-switch--overlay button[aria-checked="true"] {
  color: #173f3d;
}

.home-view-switch--mobile {
  width: 156px;
  height: 34px;
  padding: 2px;
  border-radius: 17px;
}

.home-view-switch--mobile button {
  border-radius: 15px;
  font-size: 11px;
}

.home-view-switch--mobile .home-view-thumb {
  top: 2px;
  bottom: 2px;
  left: 2px;
  width: calc((100% - 4px) / 3);
  border-radius: 15px;
}

@media (prefers-reduced-motion: reduce) {
  .home-view-thumb {
    transition: none;
  }
}
