[data-language-switcher] {
  position: relative;
  display: inline-flex;
  min-width: 0;
  flex: 0 0 auto;
  align-items: center;
}

.pico-language-button {
  display: inline-flex;
  width: 138px;
  height: 38px;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  border: 1px solid #dedede;
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  color: #262626;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
  font: 600 12px/1 Inter, Arial, sans-serif;
  letter-spacing: 0;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.pico-language-button:hover,
.pico-language-button[aria-expanded="true"] {
  border-color: #bfc4ca;
  background: #fff;
  box-shadow: 0 4px 14px rgba(17, 24, 39, .08);
}

.pico-language-button:focus-visible {
  outline: 3px solid rgba(22, 135, 232, .16);
  outline-offset: 2px;
}

.pico-language-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M2 12h20M12 2a15.3 15.3 0 0 1 0 20M12 2a15.3 15.3 0 0 0 0 20'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: .72;
}

.pico-language-current {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.pico-language-chevron {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-right: 1.5px solid #737373;
  border-bottom: 1.5px solid #737373;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .16s ease;
}

.pico-language-button[aria-expanded="true"] .pico-language-chevron {
  transform: translateY(2px) rotate(225deg);
}

.pico-language-menu {
  position: absolute;
  z-index: 1200;
  top: calc(100% + 9px);
  right: 0;
  width: 210px;
  padding: 6px;
  border: 1px solid #e2e4e7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(17, 24, 39, .14), 0 3px 10px rgba(17, 24, 39, .06);
  transform-origin: top right;
  animation: pico-language-menu-in .14s ease-out;
}

.pico-language-menu[hidden] {
  display: none !important;
}

.pico-language-option {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #333;
  text-align: left;
  cursor: pointer;
  transition: background-color .12s ease, color .12s ease;
}

.pico-language-option:hover,
.pico-language-option:focus-visible {
  outline: 0;
  background: #f4f5f6;
}

.pico-language-option.active {
  background: #edf6fd;
  color: #0969a9;
}

.pico-language-option-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.pico-language-option-label {
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pico-language-option-detail {
  color: #888;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
}

.pico-language-check {
  position: relative;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  opacity: 0;
}

.pico-language-check::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 4px;
  width: 5px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.pico-language-option.active .pico-language-check {
  opacity: 1;
}

.pico-mobile-language-switcher {
  display: none;
}

@keyframes pico-language-menu-in {
  from { opacity: 0; transform: translateY(-4px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-nav-actions {
  display: flex;
  min-width: 0;
  height: 100%;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  margin-left: auto;
}

.auth-nav-actions .auth-nav-links {
  min-width: 0;
}

.topbar-actions > [data-language-switcher] {
  margin-right: 2px;
}

@media (max-width: 1180px) {
  .site-header .header-inner > [data-language-switcher] {
    margin-left: auto;
  }

  .site-header .header-inner > .login-link,
  .site-header .header-inner > .menu-btn {
    margin-left: 0;
  }
}

@media (max-width: 820px) {
  .pico-mobile-language-switcher {
    display: inline-flex;
    margin-left: auto;
  }

  .home-menu,
  .docs-menu-button {
    margin-left: 0;
  }

  .home-actions [data-language-switcher] {
    display: none;
  }

  .docs-header-links [data-language-switcher] {
    display: none;
  }
}

@media (max-width: 640px) {
  .model-content {
    padding-left: 0;
  }

  .model-toolbar .toolbar-left,
  .model-toolbar .provider-select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .model-toolbar .provider-select select {
    width: 100%;
    min-width: 0;
  }

  .pico-language-button {
    width: 104px;
    height: 36px;
    gap: 7px;
    padding-inline: 9px;
    font-size: 11px;
  }

  .site-header .pico-language-button {
    width: 96px;
  }

  .site-header .login-link:not([hidden]) {
    display: inline-flex;
    min-width: max-content;
    flex: 0 0 auto;
    margin-left: 0;
    padding: 7px 10px;
    white-space: nowrap;
  }

  .app-shell .topbar-actions > [data-language-switcher] .pico-language-button {
    width: 38px;
    padding: 0;
    justify-content: center;
  }

  .app-shell .topbar-actions > [data-language-switcher] .pico-language-current,
  .app-shell .topbar-actions > [data-language-switcher] .pico-language-chevron {
    display: none;
  }
}

@media (max-width: 430px) {
  .home-nav .pico-language-button,
  .docs-header-inner .pico-language-button,
  .auth-nav .pico-language-button {
    width: 112px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pico-language-button,
  .pico-language-chevron,
  .pico-language-option {
    transition: none;
  }

  .pico-language-menu {
    animation: none;
  }
}
