/* Service Tooly canonical logo rollout */
.top .brand-mark.brand-gear {
  width: 56px !important;
  height: 56px !important;
  flex: 0 0 56px !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
}

.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.auth-brand-logo {
  display: block;
  width: min(220px, 62vw);
  height: auto;
  margin: 0 auto 20px;
}

.brand-loader {
  display: none;
}

.js .brand-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #f8dfa0;
  background: radial-gradient(circle at 50% 38%, #3d2904 0, #171006 34%, #050505 72%);
  opacity: 1;
  visibility: visible;
  transition: opacity .28s ease, visibility .28s ease;
}

.brand-loader__panel {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.brand-loader__panel img {
  width: min(220px, 56vw);
  height: auto;
  filter: drop-shadow(0 18px 35px rgba(214, 164, 59, .24));
  animation: service-tooly-loader 1.4s ease-in-out infinite alternate;
}

.brand-loader__panel span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.brand-ready .brand-loader {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@keyframes service-tooly-loader {
  from { transform: translateY(0) scale(.985); }
  to { transform: translateY(-5px) scale(1); }
}

@media (max-width: 640px) {
  .top .brand-mark.brand-gear {
    width: 44px !important;
    height: 44px !important;
    flex-basis: 44px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-loader__panel img { animation: none; }
  .brand-loader { transition: none; }
}

/* Encoding-safe navigation icons and persistent language selection. */
html,
body,
button,
input,
select,
textarea {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  font-variant-ligatures: common-ligatures;
  text-rendering: optimizeLegibility;
}

.st-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  vertical-align: middle;
}

.admin-menu-trigger .st-icon,
.profile-trigger .st-icon {
  width: 16px;
  height: 16px;
}

.header-icon-btn .st-icon {
  width: 22px;
  height: 22px;
}

.nav-group-icon .st-icon {
  width: 19px;
  height: 19px;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.language-switcher label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 6px 8px;
  border: 1px solid #d5e2ee;
  border-radius: 12px;
  color: #17324d;
  background: #fff;
}

.language-switcher select {
  width: auto;
  min-width: 82px;
  max-width: 140px;
  margin: 0;
  padding: 2px 24px 2px 2px;
  border: 0;
  color: inherit;
  background-color: transparent;
  box-shadow: none;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.language-switcher select:focus-visible {
  outline: 2px solid var(--accent, #22a7f0);
  outline-offset: 2px;
}

.public-language-control {
  display: flex;
  margin-left: auto;
}

.mobile-bottom-nav > a,
.mobile-bottom-nav > button {
  display: grid;
  justify-items: center;
  gap: 2px;
}

@media (max-width: 900px) {
  .public-language-control {
    margin-left: auto;
  }

  .header-actions .language-switcher label {
    padding-inline: 6px;
  }

  .header-actions .language-switcher select {
    max-width: 92px;
  }
}

@media (max-width: 560px) {
  .language-switcher label .st-icon {
    width: 17px;
    height: 17px;
  }

  .language-switcher select {
    min-width: 72px;
    max-width: 86px;
    font-size: 12px;
  }
}

