:root {
  --home-nav-h: 44px;
}

body.has-home-nav {
  padding-top: 44px;
}

.home-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: #1d1d1f;
  height: 44px;
  overflow: hidden;
  transition: height 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-nav-inner {
  width: 60%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  height: 44px;
  padding: 0;
  flex-shrink: 0;
}

.home-nav-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  text-decoration: none;
  flex-shrink: 0;
}

.home-nav-logo img {
  height: 40px;
  width: auto;
  display: block;
}

.home-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: 24px;
  min-width: 0;
}

.home-nav-link {
  color: #c3c3c3;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
  display: inline-flex;
  align-items: center;
}

.home-nav-link:hover {
  color: #ffffff;
}

.home-nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  flex-shrink: 0;
}

.home-nav-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  background: transparent;
  color: #c3c3c3;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease;
}

.home-nav-icon-btn:hover,
.home-nav-icon-btn[aria-expanded="true"] {
  color: #ffffff;
}

.home-nav-icon-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.home-lang-dropdown {
  position: fixed;
  z-index: 200;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
  display: none;
  flex-direction: column;
  overflow: hidden;
  min-width: 200px;
  max-height: 360px;
  overflow-y: auto;
  scrollbar-width: none;
}

.home-lang-dropdown::-webkit-scrollbar {
  display: none;
}

.home-lang-dropdown.open {
  display: flex;
}

.home-lang-drop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 400;
  color: #1d1d1f;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  transition: background 0.12s;
}

.home-lang-drop-item:hover {
  background: #f3f4f6;
}

.home-lang-drop-item.is-active {
  font-weight: 600;
  color: #ea69a6;
}

.home-nav-lang-btn {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border: 1px solid #424245;
  border-radius: 6px;
  background: transparent;
  color: #c3c3c3;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}

.home-nav-lang-btn:hover,
.home-nav-lang-btn[aria-expanded="true"] {
  color: #ffffff;
  border-color: #86868b;
}

.home-nav-bar {
  width: 100%;
  height: var(--home-nav-h);
  flex-shrink: 0;
}

.home-nav-inner--mobile {
  display: none;
}

.home-nav-mobile-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.home-nav-mobile-links {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.home-nav-mobile-link {
  color: #c3c3c3;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.home-nav-mobile-link:hover,
.home-nav-mobile-link:focus-visible {
  color: #ffffff;
}

.home-nav-mobile-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 8px;
}

.home-nav-mobile-right .nav-btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  max-width: min(52vw, 220px);
  height: 44px;
  padding: 0 6px;
  margin: 0;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 1;
  min-width: 0;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.home-nav-mobile-right .nav-btn-google:hover {
  color: #ffffff;
  opacity: 0.88;
}

.home-nav-mobile-right .nav-btn-google:disabled,
.home-nav-mobile-right .nav-btn-google.is-loading {
  opacity: 0.65;
}

.home-nav-mobile-right .nav-btn-google svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: block;
  overflow: visible;
}

.home-nav-mobile-right .nav-btn-google span {
  display: block;
  line-height: 1;
  padding: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #ffffff;
  -webkit-text-fill-color: #ffffff;
}

.home-nav-mobile-right .home-nav-studio-link {
  height: 32px;
  padding: 0 10px;
  font-size: 11px;
}

.home-nav-actions .nav-btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 32px;
  padding: 0 11px;
  background: #1d1d1f;
  color: #ffffff;
  border: 1px solid #1d1d1f;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.home-nav-actions .nav-btn-google:hover {
  background: #333336;
  border-color: #333336;
}

.home-nav-actions .nav-btn-google:disabled,
.home-nav-actions .nav-btn-google.is-loading {
  opacity: 0.65;
  cursor: wait;
}

.home-nav-actions .nav-btn-google svg {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
}

.home-nav-studio-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 11px;
  background: #ffffff;
  color: #111111;
  border: 1px solid #424245;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s ease;
}

.home-nav-studio-link:hover {
  background: #f5f5f7;
}

@media (max-width: 768px) {
  .home-nav-inner--desktop {
    display: none !important;
  }

  .home-nav-inner--mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: none;
    margin: 0;
    height: var(--home-nav-h);
    padding: 0 max(10px, env(safe-area-inset-right)) 0 max(10px, env(safe-area-inset-left));
    gap: 0;
    box-sizing: border-box;
  }
}

@media (max-width: 380px) {
  .home-nav-mobile-links {
    gap: 8px;
  }

  .home-nav-mobile-link {
    font-size: 11px;
  }

  .home-nav-mobile-right .nav-btn-google {
    font-size: 10px;
    gap: 5px;
    padding: 0 4px;
  }
}
