.language-toggle {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    flex: 0 0 auto; min-height: 36px; padding: 5px 9px; border-radius: 12px;
    border: 1px solid rgba(255,255,255,.34); background: rgba(255,255,255,.10);
    color: #fff; font-family: inherit; font-weight: 700; font-size: 12px; cursor: pointer;
}
.language-toggle:hover { background: rgba(255,255,255,.22); }
.language-toggle img { width: 23px; height: 23px; object-fit: cover; border-radius: 50%; border: 1px solid rgba(255,255,255,.7); filter: none !important; }
.language-toggle:focus-visible { outline: 3px solid var(--c-focus-ring, #9bd5ff); outline-offset: 3px; }
.home-preferences { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; }
.home-preferences .home-dark-btn { display: inline-flex; margin: 0; }
.home-preferences .language-toggle { min-height: 40px; border-radius: 20px; padding: 7px 14px; }
.entry-menu-week { text-transform: uppercase; }
.sidebar-header { flex-wrap: wrap; justify-content: center; }
.sidebar-header .sidebar-logo { margin-right: auto; }
.mobile-app-header .language-toggle { padding: 4px 6px; min-height: 34px; }
html[lang="es"] .mobile-app-heading strong { white-space: normal; font-size: 12px; }
html[lang="es"] #ts-filter-level { width: 120px; }
html[lang="es"] #ts-filter-surface { width: 145px; }
html[lang="es"] #ts-filter-region { width: 130px; }
@media (min-width: 769px) {
    .sidebar-header .sidebar-logo { flex-basis: 100%; object-fit: contain; margin: 0 auto 4px; }
    .sidebar-header .dark-mode-btn { margin-left: 0; }
}
@media (max-width: 768px) {
    .home-preferences .home-dark-btn { display: inline-flex; padding: 8px 14px; font-size: 11px; }
    body.home-mode .mobile-app-header .language-toggle,
    body.home-mode .mobile-app-header .mobile-header-theme { display: none; }
    html[lang="es"] .ts-row2 { display: grid; grid-template-columns: 120px 145px; flex-wrap: wrap; }
    html[lang="es"] #ts-filter-level { width: 120px; }
    html[lang="es"] #ts-filter-surface { width: 145px; }
    html[lang="es"] #ts-filter-region { width: 130px; grid-column: 1 / -1; justify-self: center; }
    html[lang="es"] #history-table th:nth-child(3)::after { content: "SPF"; }
}
