body.is-locked .app-shell,
body.is-locked .mobile-nav,
body.is-locked .assistant-float,
body.is-locked > .site-footer {
  display: none;
}
#accountGate {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: #fbf7f1;
}
.login-story {
  padding: clamp(30px, 6vw, 90px);
  background:
    linear-gradient(90deg, #42291be6, #42291b8a),
    url("./assets/home-memory.jpg") center/cover;
  color: #fff5e9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.login-mark {
  font-size: 2.5rem;
}
.login-story p {
  font-size: 1.3rem;
  letter-spacing: 0.15em;
  margin: 0;
}
.login-story h1 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.5;
  margin: 0;
}
.login-story > span:last-child {
  opacity: 0.8;
}
.login-card {
  width: min(100%, 540px);
  margin: auto;
  padding: 45px;
}
.login-card h2 {
  font-size: 1.9rem;
}
.login-card form {
  display: grid;
  gap: 15px;
}
.login-card form > .primary {
  margin-top: 9px;
}
.login-footer {
  margin-top: 27px;
  font-size: 0.75rem;
  line-height: 1.9;
  color: #9b897a;
}
.login-footer a {
  text-decoration: underline;
}
.auth-error {
  padding: 12px;
  border-radius: 10px;
  background: #f9e5dd;
  color: #9b4134;
  line-height: 1.6;
}
.settings-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  max-width: 460px;
}
.settings-form > button {
  justify-self: start;
}
.invite-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.invite-controls select,
.record-row select {
  border: 1px solid #ddcbbb;
  border-radius: 10px;
  padding: 8px;
  background: #fffdf9;
  color: #735441;
  min-height: 40px;
}
.backup-link {
  display: inline-flex;
  margin-top: 8px;
}
.restore-area {
  margin-top: 22px;
  border-top: 1px solid #eaded1;
  padding-top: 18px;
}
.restore-area summary {
  cursor: pointer;
  color: #99674b;
  font-weight: 700;
}
.restore-area p {
  margin-top: 12px;
}
.local-badge.unsaved {
  background: #fce8cb;
  color: #8b5d25;
}
.site-footer {
  font-size: 0.74rem;
  color: #ad9988;
  text-align: center;
  padding: 10px 15px 26px;
}
.site-footer a {
  text-decoration: underline;
}
@media (max-width: 760px) {
  #accountGate {
    grid-template-columns: 1fr;
  }
  .login-story {
    min-height: 245px;
    padding: 28px;
    gap: 10px;
  }
  .login-story h1 {
    font-size: 1.85rem;
  }
  .login-card {
    padding: 28px 23px;
    margin: 0 auto;
  }
  .login-card h2 {
    font-size: 1.6rem;
  }
  .settings-form {
    max-width: none;
  }
  .site-footer {
    padding-bottom: 95px;
  }
  .local-badge {
    display: inline-flex;
    flex-shrink: 0;
    font-size: 0.66rem;
    padding: 5px 9px;
  }
}
