/* Prihlásenie a stav ukladania (ostrá verzia na serveri) */
.gate { position: fixed; inset: 0; z-index: 80; background: var(--bg); display: flex; align-items: flex-start; justify-content: center; overflow: auto; padding: 48px 16px; }
.gate[hidden] { display: none; }
.gate-box { width: 100%; max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.gate-brand { display: flex; align-items: center; gap: 10px; align-self: flex-start; }
.gate-brand .logo { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 700; }
.gate-brand small { display: block; color: var(--muted); font-size: 12px; }
.gate-msg { color: var(--ink); line-height: 1.5; align-self: stretch; display: flex; flex-direction: column; gap: 14px; }
.gate-msg p { margin: 0; }
.gate-msg .muted { color: var(--muted); }
.gate-actions { display: flex; gap: 8px; align-self: stretch; }
.gate #signin { width: 100%; display: flex; justify-content: center; }
.srv-note { position: fixed; left: 50%; transform: translateX(-50%); bottom: 88px; z-index: 70; max-width: min(520px, calc(100vw - 32px)); background: #8a1c1c; color: #fff; padding: 10px 14px; border-radius: 10px; font-size: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.2); }
.srv-note[hidden] { display: none; }
.me-name { font-size: 13px; color: var(--muted); max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#saveState.err { color: #b42318; font-weight: 600; }
#meMail { font-size: 11px; overflow-wrap: anywhere; }
@media (max-width: 820px) { .me-name { max-width: 90px; font-size: 12px; } }
@media (max-width: 420px) { .me-name { display: none; } }
