/* Standalone styles for the language switcher on pages that do not load style.css
   (ToolHub tool pages use their own inline CSS). */
.lang-slot { position: relative; flex: 0 0 auto; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 6px 11px;
  color: #e9ecf5; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 12.5px; font-weight: 600; line-height: 1.2;
  background: rgba(124,108,240,.14); border: 1px solid rgba(143,184,255,.38); border-radius: 9px;
  cursor: pointer; transition: border-color .2s, background .2s, transform .2s;
}
.lang-btn:hover { border-color: rgba(143,184,255,.8); background: rgba(124,108,240,.26); transform: translateY(-1px); }
.lang-btn:focus-visible { outline: 2px solid #8fb8ff; outline-offset: 2px; }
.lang-btn svg { width: 15px; height: 15px; fill: none; stroke: #b9a8ff; stroke-width: 1.6; }
.lang-short { min-width: 16px; text-align: center; }
.lang-caret { font-size: 10px; color: #9aa4bd; }
.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 100001; width: 264px;
  background: #101219; border: 1px solid rgba(124,108,240,.4); border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,.6); padding: 12px; display: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #e9ecf5;
}
.lang-menu.open { display: block; }
.lang-menu-title { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #b9a8ff; padding: 4px 8px 10px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 8px; }
.lang-list { max-height: 320px; overflow-y: auto; scrollbar-width: thin; }
.lang-option {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 8px 9px; border: 0; border-radius: 9px; background: transparent; color: #e9ecf5; cursor: pointer;
  transition: background .16s;
}
.lang-option:hover { background: rgba(124,108,240,.16); }
.lang-option.active { background: rgba(124,108,240,.24); }
.lang-opt-short { flex: 0 0 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); font-size: 11px; font-weight: 700; color: #c7bdff; }
.lang-opt-names { display: flex; flex-direction: column; line-height: 1.3; }
.lang-opt-native { font-size: 13px; font-weight: 600; }
.lang-opt-label { font-size: 11px; color: #9aa4bd; }
.lang-check { margin-left: auto; color: #b9a8ff; opacity: 0; font-size: 13px; }
.lang-option.active .lang-check { opacity: 1; }
.lang-note { padding: 9px 8px 2px; margin-top: 8px; border-top: 1px solid rgba(255,255,255,.12); font-size: 11px; color: #9aa4bd; line-height: 1.5; }
@media (max-width: 640px) {
  .lang-menu { right: -6px; width: min(88vw, 264px); }
  .lang-caret { display: none; }
}
