:root {
  --app-bg: #f3f6f8;
  --surface: #ffffff;
  --surface-soft: #f8fafb;
  --border: #d9e1e7;
  --text: #17212b;
  --muted: #61707d;
  --accent: #087e6b;
  --accent-soft: #e4f3ef;
  --danger: #b3261e;
  --danger-soft: #fcebea;
  --shadow: 0 12px 32px rgba(23, 33, 43, 0.08);
}

.app-brand {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.3rem;
  line-height: 1.15;
  white-space: normal;
}

.app-brand-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 9px;
}

.app-brand-name {
  font-weight: 700;
}

.app-brand-tagline {
  color: var(--muted);
  font-size: 0.72em;
}


.language-switcher {
  display: grid;
  gap: 8px;
  margin: 0 10px 0 0;
}

.language-options {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-width: 150px;
  padding: 3px;
  overflow: hidden;
  background: #edf2f4;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.language-options :is(button, a) {
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 9px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  transition: color .2s ease;
}

.language-options :is(button, a).is-active { color: #fff; }
.language-code { font-size: .72rem; font-weight: 800; letter-spacing: .04em; }
.language-name { font-size: .78rem; }

.language-slider {
  position: absolute;
  z-index: 0;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  background: linear-gradient(135deg, #087e6b, #0aa78d);
  border-radius: 999px;
  box-shadow: 0 3px 9px rgba(8, 126, 107, .24);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1);
}

.language-slider.is-ukrainian { transform: translateX(100%); }

.language-switcher-showcase {
  justify-self: center;
  width: 100%;
  margin: 2px 0 4px;
  padding: 0;
}

.language-switcher-showcase .language-options { min-width: 100%; }
.language-switcher-compact .language-options { min-width: 82px; }
.language-switcher-compact .language-name { display: none; }

.language-greeting {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 650;
  letter-spacing: .025em;
}


@media (prefers-reduced-motion: reduce) {
  .language-slider { transition: none; }
}
