html,
body,
#root {
  height: 100%;
  margin: 0;
  background: #0a0e1a;
}
body {
  overflow: hidden;
}
#root {
  display: flex;
  flex-direction: column;
}
* {
  box-sizing: border-box;
}
button,
input {
  font-family: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
button:focus-visible,
input:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 3px;
}
.lofy-pwa-banner {
  position: relative;
  width: calc(100% - 32px);
  flex-shrink: 0;
  max-width: 440px;
  margin: 0 auto calc(16px + env(safe-area-inset-bottom));
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: #172039f5;
  border: 1px solid #ffffff20;
  border-radius: 22px;
  box-shadow: 0 12px 36px #0005;
  z-index: 900;
  font-family: system-ui;
  color: #f8fafc;
}
.lofy-pwa-banner img {
  border-radius: 12px;
}
.lofy-pwa-invitation {
  position: fixed;
  bottom: calc(88px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 440px;
  padding: 18px;
  border: 1px solid #ffffff20;
  border-radius: 24px;
  background: #172039;
  box-shadow: 0 12px 36px #0006;
  z-index: 900;
  color: #f8fafc;
  font-family: system-ui;
}
.lofy-invitation-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
}
.lofy-invitation-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 36px;
}
.lofy-invitation-heading img {
  border-radius: 12px;
}
.lofy-invitation-heading strong {
  font-size: 17px;
  line-height: 1.3;
}
.lofy-pwa-invitation p {
  font-size: 15px;
  line-height: 1.5;
  color: #cbd5e1;
  margin: 16px 0;
}
.lofy-invitation-actions {
  display: flex;
  gap: 10px;
}
.lofy-invitation-actions button {
  min-width: 0;
  flex: 1;
  margin: 0;
  padding: 12px 8px;
  min-height: 44px;
}
.lofy-pwa-banner-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  color: inherit;
  flex: 1;
  text-align: left;
}
.lofy-pwa-banner strong {
  font-size: 14px;
}
.lofy-pwa-banner span {
  font-size: 12px;
  color: #b4c1d4;
}
.lofy-icon-button {
  border: 0;
  background: #ffffff0a;
  color: #cbd5e1;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 26px;
}
.lofy-modal-backdrop {
  position: fixed;
  inset: 0;
  background: #030712bb;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  z-index: 10000;
  font-family: system-ui;
  color: #f8fafc;
}
.lofy-pwa-sheet {
  position: relative;
  background: linear-gradient(160deg, #18203a, #0c1224);
  border: 1px solid #ffffff15;
  border-radius: 32px;
  max-width: 440px;
  width: 100%;
  max-height: 90dvh;
  overflow: auto;
  padding: 32px 26px;
  box-shadow: 0 24px 90px #0007;
}
.lofy-sheet-close {
  position: absolute;
  top: 16px;
  right: 16px;
}
.lofy-sheet-icon {
  border-radius: 18px;
  margin-bottom: 12px;
}
.lofy-eyebrow {
  font-size: 11px !important;
  font-weight: 800;
  letter-spacing: 2px;
  color: #93c5fd !important;
}
.lofy-pwa-sheet h2 {
  font-size: 28px;
  line-height: 1.18;
  letter-spacing: -0.8px;
  margin: 12px 0 18px;
}
.lofy-pwa-sheet p {
  font-size: 15px;
  line-height: 1.65;
  color: #b4c1d4;
}
.lofy-install-steps {
  list-style: none;
  padding: 0;
  margin: 28px 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.lofy-install-steps li {
  display: flex;
  gap: 14px;
}
.lofy-install-steps li > span {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 11px;
  background: #2563eb20;
  color: #93c5fd;
  text-align: center;
  padding: 5px;
  font-weight: 700;
}
.lofy-install-steps strong {
  font-size: 15px;
}
.lofy-install-steps p {
  margin: 5px 0 0;
  font-size: 14px;
}
.lofy-primary-button,
.lofy-secondary-button {
  width: 100%;
  border: 0;
  border-radius: 16px;
  padding: 16px 18px;
  font-size: 15px;
  font-weight: 700;
  margin-top: 12px;
}
.lofy-primary-button {
  background: #2563eb;
  color: #fff;
}
.lofy-secondary-button {
  background: #ffffff08;
  color: #cbd5e1;
}
.lofy-fine-print {
  font-size: 12px !important;
  text-align: center;
  margin-top: 20px;
}
.lofy-error {
  color: #fca5a5 !important;
}
.lofy-notification-note {
  padding: 16px;
  border-radius: 16px;
  background: #ffffff08;
}
.lofy-alert-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
@media (max-width: 500px) {
  .lofy-modal-backdrop {
    align-items: flex-end;
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }
  .lofy-pwa-sheet {
    border-radius: 28px;
    padding: 28px 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
.lofy-push-controls {
  margin: 18px 0;
  padding: 16px;
  text-align: left;
  border: 1px solid #3b82f640;
  border-radius: 18px;
  background: #10182a;
}
.lofy-push-controls h3 {
  margin: 0 0 14px;
  font-size: 18px;
}
.lofy-push-switch-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  cursor: pointer;
}
.lofy-push-switch-row > span {
  flex: 1;
  min-width: 0;
}
.lofy-push-switch-row strong {
  font-size: 16px;
  line-height: 1.4;
}
.lofy-push-hint {
  display: block;
  margin: 7px 0 0;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.5;
}
.lofy-push-switch-row input {
  appearance: none;
  flex-shrink: 0;
  width: 44px;
  height: 28px;
  margin: 0;
  background: #334155;
  border-radius: 20px;
  cursor: pointer;
}
.lofy-push-switch-row input::before {
  content: '';
  display: block;
  width: 22px;
  height: 22px;
  margin: 3px;
  border-radius: 50%;
  background: white;
}
.lofy-push-switch-row input:checked {
  background: #3b82f6;
}
.lofy-push-switch-row input:checked::before {
  transform: translateX(16px);
}
.lofy-push-switch-row input:disabled {
  opacity: 0.6;
  cursor: wait;
}
.lofy-push-test {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #ffffff15;
}
.lofy-push-controls .lofy-secondary-button {
  min-height: 44px;
}
