.nav-actions,.nav-auth { display:flex; align-items:center; gap:10px; }
.nav-actions { gap:17px; }
.nav-auth > a:not(.button) { color:#ece1dd; font-size:.89rem; text-decoration:none; padding:8px 5px; white-space:nowrap; }
.nav-auth > a:not(.button):hover { color:white; text-decoration:underline; text-decoration-color:var(--red); text-underline-offset:5px; }
.auth-dialog { color:var(--text); background:#15181f url("../images/news-block-bg.png") center bottom/cover no-repeat; width:min(475px,calc(100% - 28px)); max-height:calc(100dvh - 26px); padding:22px 26px 24px; border:1px solid #a94a52; box-shadow:0 20px 80px #0009; }
.auth-dialog::backdrop { background:#090a0dd0; backdrop-filter:blur(2px); }
.auth-modal-brand { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:9px; }
.auth-modal-brand img { width:124px; height:auto; margin-left:-5px; }
.auth-close { display:grid; place-items:center; width:38px; height:38px; padding:0; border:1px solid var(--line); color:var(--text); background:#191b22; font-size:1.45rem; line-height:1; }
.auth-close:hover { border-color:var(--red); }
.auth-dialog h2 { font-size:clamp(1.65rem,4vw,2.1rem); margin:0 0 12px; }
.auth-dialog p { margin-block:6px 12px; color:var(--muted); }
.auth-dialog .account-alert { color:#ffe8e8; }
.auth-dialog .account-tabs { margin-bottom:12px; }
.auth-dialog .account-tabs a { font-size:.92rem; }
.auth-dialog .form-field { margin-top:11px; }
.auth-dialog .form-actions { margin-top:16px; }
.auth-dialog .form-field input { background:#11141ade; }
.auth-modal-recovery ul { list-style:none; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; padding:0; margin:15px 0; }
.auth-modal-recovery li { background:#0e1117; padding:6px 8px; overflow-wrap:anywhere; }
.auth-modal-recovery code { word-break:normal; font-size:.84rem; }
@media (max-width:1020px) { .nav-wrap { gap:24px; } .navigation ul { gap:18px; } .nav-actions { gap:10px; } }
@media (min-width:861px) and (max-width:950px) {
  .nav-wrap { gap:13px; } .navigation { gap:10px; } .navigation ul { gap:12px; }
  .nav-actions .button { padding-inline:10px; } .nav-auth { gap:6px; }
}
@media (max-width:860px) { .navigation.open { flex-direction:column; } }
@media (max-width:420px) {
  .auth-dialog { padding:16px; }
  .auth-modal-recovery ul { grid-template-columns:1fr; }
}
