/* Locale control and overlay follow the inspected OpenAI reference. */
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.language-selector { position: relative; flex-shrink: 0; color: #fff; }
.language-fallback summary { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 20px 0 18px; background: #1f1f1f; border-radius: 999px; font-size: 14px; cursor: pointer; list-style: none; transition: background 180ms ease; }
.language-fallback summary::-webkit-details-marker { display: none; }
.language-fallback summary:hover { background: #303030; }
.language-current { display: flex; gap: 8px; align-items: baseline; }
.language-current > span { color: #aaa; }
.language-globe { width: 14px; height: 14px; flex-shrink: 0; }
.language-options { position: absolute; bottom: calc(100% + 8px); right: 0; min-width: 200px; padding: 8px; background: #1f1f1f; border: 1px solid #444; border-radius: 6px; z-index: 2; }
.language-options a { display: block; padding: 12px; font-size: 14px; color: #fff; border-radius: 4px; }
.language-options a:hover { background: #303030; }
.language-dialog { position: fixed; inset: 32px 32px 24px auto; width: 340px; height: calc(100dvh - 56px); max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #fff; overflow: visible; font-size: 14px; }
.language-dialog:not([open]) { display: none; }
.language-dialog[open] { display: grid; grid-template-rows: minmax(0, 1fr) 48px; gap: 8px; animation: language-enter 400ms cubic-bezier(.16, 1, .3, 1); }
.language-dialog::backdrop { background: #0009; backdrop-filter: blur(8px); animation: language-backdrop 400ms ease; }
.language-panel { display: flex; flex-direction: column; min-height: 0; background: #1f1f1f; border-radius: 6px; overflow: hidden; }
.language-panel-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 24px; border-bottom: 1px solid #ffffff26; }
.language-panel-header h2 { font: inherit; font-weight: 500; margin: 0; }
.language-close { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border: 0; border-radius: 50%; background: #383838; color: #fff; cursor: pointer; transition: background 180ms ease; }
.language-close:hover { background: #4a4a4a; }
.language-close svg, .language-search svg { width: 16px; height: 16px; flex-shrink: 0; }
.language-dialog-options { padding: 12px; overflow-y: auto; min-height: 0; }
.language-option { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 4px; color: #fff; transition: background 150ms ease; }
.language-option:hover, .language-option:focus-visible { background: #303030; }
.language-native { display: block; font-weight: 500; }
.language-region { color: #aaa; margin-left: 4px; }
.language-translation { display: block; margin-top: 4px; font-size: 12px; }
.language-check { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; background: #000; border-radius: 50%; font-size: 18px; }
.language-search { display: flex; align-items: center; gap: 12px; padding: 0 28px; border-radius: 999px; background: #1f1f1f; }
.language-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #fff; font: inherit; padding: 14px 0; }
.language-search input::placeholder { color: #999; }
.language-empty { margin: 0; padding: 16px 28px; color: #aaa; }
.language-fallback summary:focus-visible, .language-options a:focus-visible, .language-close:focus-visible, .language-option:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.language-search:focus-within { box-shadow: inset 0 0 0 1px #ffffff40; }
body.language-dialog-open { overflow: hidden; }
@keyframes language-enter { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes language-backdrop { from { background: #0000; backdrop-filter: blur(0); } to { background: #0009; backdrop-filter: blur(8px); } }
@media (max-width: 767px) {
    .language-dialog { inset: 6px 24px 20px; width: calc(100% - 48px); height: calc(100dvh - 26px); }
    .language-panel-header h2 { font-size: 16px; }
    .language-fallback summary { font-size: 16px; }
}
@media (max-width: 600px) {
    .footer__bottom { flex-direction: row; flex-wrap: wrap; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
    .language-dialog[open], .language-dialog::backdrop { animation: none; }
    .language-fallback summary, .language-close, .language-option { transition: none; }
}
