/* 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: #031636;
  background: radial-gradient(circle at 50% 38%, #ffffff 0, #eef5ff 46%, #dceaff 100%);
  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(39, 116, 254, .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;
  }
}



/* v48.24.2 common header/dropdown repair */
.app-header{position:sticky;top:0;z-index:1000;isolation:isolate;overflow:visible}
.app-header .desktop-primary-nav,.app-header .header-actions{display:flex;align-items:center;min-width:0}
.app-header .desktop-primary-nav{gap:6px;flex:1 1 auto;justify-content:center}
.app-header .header-actions{margin-left:auto;gap:8px;flex:0 0 auto}
.super-admin-nav{position:relative;flex:0 0 auto!important}
.admin-menu-trigger,.profile-trigger,.header-icon-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:9px 12px;border:1px solid #d5e2ee;border-radius:11px;background:#fff;color:#17324d;font:inherit;font-weight:800;cursor:pointer;white-space:nowrap}
.admin-menu-trigger:hover,.profile-trigger:hover,.header-icon-btn:hover{border-color:var(--accent,#22a7f0);background:#f7fbff}
.admin-menu[hidden]{display:none!important}
.admin-menu:not([hidden]){position:absolute;top:calc(100% + 10px);right:0;z-index:1100;width:min(980px,calc(100vw - 24px));max-height:min(72vh,700px);overflow:auto;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;padding:12px;background:#fff;border:1px solid #d9e6ee;border-radius:16px;box-shadow:0 18px 45px rgba(16,42,67,.18)}
.admin-menu a{display:flex;align-items:center;min-height:40px;padding:9px 10px;border-radius:9px;color:#17324d;text-decoration:none;font-size:13px;font-weight:700;line-height:1.25;overflow-wrap:anywhere}
.admin-menu a:hover,.admin-menu a:focus-visible{background:#e7f6ff;color:#075985;outline:none}
.profile-menu[hidden],.top-links[hidden]{display:none!important}
@media(max-width:1180px){.app-header .desktop-primary-nav{justify-content:flex-end}.admin-menu:not([hidden]){grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.app-header{position:sticky}.app-header .desktop-primary-nav{display:none}.app-header .header-actions{margin-left:auto}.admin-menu:not([hidden]){position:fixed;top:68px;left:12px;right:12px;width:auto;max-height:calc(100vh - 84px);grid-template-columns:repeat(2,minmax(0,1fr));border-radius:14px}.top-links.is-open{display:grid!important}}
@media(max-width:560px){.admin-menu:not([hidden]){top:60px;left:8px;right:8px;grid-template-columns:1fr;padding:10px}.admin-menu a{min-height:44px;font-size:14px}.app-header .header-actions{gap:5px}.profile-name{display:none}}

/* v48.24.2 header popover consistency */
.profile-menu,.quick-create-menu{position:absolute;top:calc(100% + 10px);right:0;z-index:1100;min-width:230px;max-width:min(360px,calc(100vw - 24px));max-height:min(70vh,560px);overflow:auto;padding:8px;background:#fff;border:1px solid #d9e6ee;border-radius:14px;box-shadow:0 16px 40px rgba(16,42,67,.16)}
.profile-menu a,.quick-create-menu a{display:flex;align-items:center;min-height:42px;padding:10px 12px;border-radius:9px;color:#17324d;text-decoration:none;font-size:14px;font-weight:700;line-height:1.25}
.profile-menu a:hover,.quick-create-menu a:hover,.profile-menu a:focus-visible,.quick-create-menu a:focus-visible{background:#e7f6ff;color:#075985;outline:none}
.header-actions,.profile-trigger{position:relative}
@media(max-width:900px){.profile-menu,.quick-create-menu{position:fixed;top:68px;right:12px;max-height:calc(100vh - 84px)}}
@media(max-width:560px){.profile-menu,.quick-create-menu{top:60px;right:8px;left:8px;max-width:none}.profile-menu a,.quick-create-menu a{min-height:46px}}
