/* Compact single-row navigation, including small phones. Loaded after legacy styles. */
header{display:flex;align-items:center;flex-wrap:nowrap;gap:14px;min-height:64px;height:auto;padding:7px 18px;overflow:visible}
header .brand-updated{flex:0 0 144px;min-width:0}
header .brand-updated img{width:144px;height:44px}
header>nav{display:flex;align-items:center;margin-left:auto;gap:16px;min-width:0}
header .site-preferences{display:flex;align-items:center;flex:0 0 auto;width:auto;margin:0;padding:0;border:0;gap:6px}
.nav-order-short{display:none}
header .language-picker{position:relative;margin:0;border:0;padding:0}
header .language-picker>summary{display:flex;align-items:center;justify-content:center;gap:5px;list-style:none;border:1px solid var(--ex-line);border-radius:12px;padding:0 9px;min-height:40px;font-size:12px;font-weight:500;cursor:pointer;user-select:none}
.language-picker>summary::-webkit-details-marker{display:none}
.language-picker>summary::after{display:none!important}
.language-chevron{width:12px;height:12px;transition:transform .15s}
.language-picker[open] .language-chevron{transform:rotate(180deg)}
header .language-switch{position:absolute;top:calc(100% + 8px);right:0;display:flex!important;flex-direction:column;align-items:stretch;gap:3px!important;width:148px;padding:6px!important;margin:0!important;border:1px solid var(--ex-line);border-radius:14px;background:var(--panel);box-shadow:0 12px 35px #0003;z-index:100}
header .language-switch a{display:flex;align-items:center;justify-content:space-between;padding:9px 12px;min-height:42px;font-size:13px;border-radius:9px;white-space:nowrap}
.language-switch a[aria-current=page]::after{content:'✓';font-size:13px}
header #theme-toggle{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;min-height:40px;padding:0;border:1px solid var(--ex-line);border-radius:12px;background:transparent;color:var(--text)}
.theme-icon{width:19px;height:19px;pointer-events:none}
.theme-moon{display:none}
[data-theme=light] .theme-sun{display:none}
[data-theme=light] .theme-moon{display:block}
.telegram-fallback{padding:16px;margin-top:16px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}
.telegram-fallback[hidden]{display:none}
.telegram-fallback p{margin:0 0 12px;font-size:14px}
.telegram-fallback input{width:100%;min-width:0;font:inherit;font-size:16px;padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--text)}
.telegram-fallback .form-actions{margin-top:12px}
.telegram-fallback a,.telegram-fallback button{min-height:44px;font-size:14px}
@media(max-width:999px){
 header{width:calc(100% - 24px);margin:10px 12px 0;padding:6px 10px;min-height:54px;gap:6px;border-radius:15px}
 header .brand-updated{flex:0 1 112px}
 header .brand-updated img{width:100%;height:38px}
 header>nav{margin-left:auto;gap:0;flex:0 0 auto}
 header>nav a:not(.nav-order){display:none}
 header>nav .nav-order{display:flex;align-items:center;justify-content:center;min-height:40px;padding:6px 9px;font-size:11px;white-space:nowrap}
 .nav-order-full{display:none}.nav-order-short{display:inline}
 header .site-preferences{width:auto;gap:4px;border:0;padding:0;margin:0}
 header .language-picker>summary{min-height:40px;padding:0 7px;font-size:11px}
 header #theme-toggle{width:40px;height:40px}
}
@media(max-width:360px){header .brand-updated{flex-basis:82px}header{gap:4px;padding-inline:8px}header>nav .nav-order{padding-inline:7px}}
@media(prefers-reduced-motion:reduce){.language-chevron{transition:none}}
