/* Small chrome controls that appear in both the login and app headers: icon buttons and the language switcher. */

/* Icon buttons */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--muted);
  color: var(--foreground);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  line-height: 1;
  box-sizing: border-box;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease;
}
.icon-btn:hover {
  background: var(--accent);
  border-color: var(--border);
  color: var(--foreground);
}
.icon-btn svg {
  width: 0.875rem;
  height: 0.875rem;
}

.lang-toggle-label {
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 0.6875rem;
}

/* Language switcher */
.lang-switch {
  display: inline-flex;
  align-items: stretch;
  height: 2.25rem;
  padding: 0;
  gap: 0;
  background: transparent;
  border: 0;
  border-radius: var(--radius-md);
  box-sizing: border-box;
  overflow: visible;
}
.lang-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 100%;
  padding: 0 0.625rem;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted-foreground);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  border-radius: 0;
  cursor: pointer;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease;
}
.lang-btn:first-child {
  border-top-left-radius: var(--radius-md);
  border-bottom-left-radius: var(--radius-md);
}
.lang-btn:last-child {
  border-top-right-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
}
.lang-btn + .lang-btn {
  margin-left: -1px;
}
.lang-btn:hover {
  z-index: 1;
  background: var(--accent);
  border-color: var(--border);
  color: var(--accent-foreground);
}
.lang-btn.active {
  z-index: 2;
  background: var(--foreground);
  color: var(--background);
  border-color: var(--foreground);
}
.lang-btn.active:hover {
  background: var(--foreground);
  color: var(--background);
}

.theme-toggle .theme-ico-system,
.theme-toggle .theme-ico-light,
.theme-toggle .theme-ico-dark {
  display: none;
}
.theme-toggle[data-theme="system"] .theme-ico-system {
  display: inline-flex;
}
.theme-toggle[data-theme="light"] .theme-ico-light {
  display: inline-flex;
}
.theme-toggle[data-theme="dark"] .theme-ico-dark {
  display: inline-flex;
}

