/* Вход по ключу и общие детали СметаЛупы */
.logo circle { stroke: var(--marker); stroke-width: 3; fill: none; }

html.locked body > *:not(#gate) { display: none !important; }
#gate { display: none; }
html.locked body { margin: 0; background: var(--paper); }
html.locked #gate { display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; padding: 24px 16px; box-sizing: border-box; }
#gate.checking .gate-box { visibility: hidden; }
.gate-box { display: grid; justify-items: center; gap: 14px; width: min(400px, 100%); text-align: center; }
.gate-box .logo { width: 56px; height: 56px; }
.gate-name { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin: 2px 0 0; }
.gate-lead { margin: 0 0 6px; color: var(--ink-2); font-size: 15.5px; line-height: 1.45; }
.gate-box label { font-weight: 600; font-size: 15px; justify-self: start; }
#gateKey {
  width: 100%; height: 56px; box-sizing: border-box; text-align: center; font: 600 20px/1 "JetBrains Mono", Consolas, monospace;
  letter-spacing: .06em; text-transform: uppercase; background: var(--surface); color: var(--ink); border: 2px solid var(--ink);
  border-radius: 14px; box-shadow: 0 3px 0 var(--ink);
}
#gateKey::placeholder { color: var(--muted); letter-spacing: .04em; }
#gateKey:focus { outline: none; box-shadow: 0 3px 0 var(--ink), 0 0 0 4px color-mix(in srgb, var(--marker) 60%, transparent); }
.gate-btn {
  width: 100%; height: 50px; border-radius: 12px; border: 2px solid var(--ink); background: var(--marker); color: #14213D;
  font: 600 16px inherit; font-family: inherit; cursor: pointer; box-shadow: 0 3px 0 var(--ink);
}
.gate-btn:disabled { opacity: .7; cursor: progress; }
.gate-msg { min-height: 1.4em; margin: 0; font-size: 14.5px; color: var(--danger); }
.gate-foot { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.gate-feats { display: grid; gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; text-align: left; font-size: 14px; color: var(--ink-2); }
.gate-feats li::before { content: "—"; color: var(--muted); margin-right: 8px; }
.shake { animation: gateShake .3s; }
@keyframes gateShake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
@media (prefers-reduced-motion: reduce) { .shake { animation: none; } }

.acc-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.err { color: var(--danger); }
