.language-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 8px 0 10px;
  border: 1px solid var(--line-strong, #b7cbd0);
  border-radius: 8px;
  background: rgba(255, 255, 255, .82);
  color: var(--ink, #102733);
}

.language-control svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.language-control select {
  min-width: 58px;
  height: 34px;
  padding: 0 18px 0 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: 700 10px/1 var(--mono, ui-monospace, monospace);
  letter-spacing: .02em;
  cursor: pointer;
}

.language-control:focus-within {
  border-color: var(--radar, var(--blue, #0d718e));
  box-shadow: 0 0 0 3px rgba(13, 113, 142, .13);
}

.login-language {
  position: absolute;
  z-index: 2;
  top: 28px;
  right: 28px;
}

.site-header-actions {
  display: flex;
  justify-self: end;
  align-items: center;
  gap: 9px;
}

@media (max-width: 700px) {
  .app-header .language-control {
    grid-column: 1 / 3;
    grid-row: 1;
    justify-self: end;
    width: 90px;
    min-height: 38px;
    padding-left: 9px;
    border-radius: 10px;
    background: var(--surface-soft, #f2f7f8);
  }

  .app-header .language-control select { min-width: 54px; }
}

@media (max-width: 560px) {
  .login-language { top: max(22px, env(safe-area-inset-top)); right: 20px; }
}

@media (max-width: 640px) {
  .site-header-actions { gap: 6px; }
  .site-header .language-control { min-height: 34px; padding-left: 8px; }
  .site-header .language-control svg { display: none; }
  .site-header .language-control select { min-width: 50px; font-size: 9px; }
}

@media (max-width: 370px) {
  .app-header .language-control { width: 86px; }
  .login-language { right: 14px; }
}
