.lp-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
    max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
}
.lp-overlay.hidden { display: none !important; }
.lp-modal {
  width: 100%;
  max-width: 22rem;
  background: #1e293b;
  border-radius: 20px;
  padding: 1.35rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  color: #f1f5f9;
}
.lp-modal h2 { margin: 0 0 0.5rem; font-size: 1.2rem; }
.lp-modal p { margin: 0 0 1rem; color: #94a3b8; font-size: 0.95rem; line-height: 1.45; }
.lp-input {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 2px solid #475569;
  background: #334155;
  color: #f1f5f9;
  font-size: 1.0625rem;
  margin-bottom: 0.75rem;
}
.lp-input:focus { outline: none; border-color: #38bdf8; }
.lp-btn {
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 12px;
  background: #38bdf8;
  color: #0f172a;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}
.lp-btn.secondary {
  background: transparent;
  color: #94a3b8;
  border: 2px solid #475569;
  margin-top: 0.5rem;
}
.lp-error { color: #f87171; font-size: 0.9rem; min-height: 1.25rem; margin-bottom: 0.5rem; }
.lp-user-list { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.75rem; }
.lp-user-btn {
  min-height: 48px;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border: 2px solid #475569;
  background: transparent;
  color: #f1f5f9;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.lp-user-btn:active { border-color: #38bdf8; background: rgba(56, 189, 248, 0.12); }
.lp-user-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: #94a3b8;
}
.lp-user-bar strong { color: #38bdf8; }
body.lp-locked .app-main,
body.lp-locked .app-tabbar,
body.lp-locked .app-list {
  visibility: hidden;
}
.lp-user-bar button {
  border: none;
  background: none;
  color: #38bdf8;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}
