/* Vaulten PWA — notifications inbox page (history only) */
.pwa-notif-page {
  min-height: 100vh;
  background: #f1f5f9;
  color: #0f172a;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.pwa-notif-page__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 520px;
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top, 0px)) 16px 12px;
}

.pwa-notif-page__head h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
}

.pwa-notif-page__gear {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: #334155;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}

.pwa-notif-page__gear:hover {
  background: #f8fafc;
}

.pwa-notif-page__gear svg {
  width: 22px;
  height: 22px;
}

.pwa-notif-page__list {
  max-width: 520px;
  margin: 0 auto;
  padding: 0 16px 100px;
}

.pwa-notif-page .v1-alert-list__item {
  background: #fff;
}

/* Settings sheet */
.pwa-notif-settings {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.pwa-notif-settings[hidden] {
  display: none;
}

.pwa-notif-settings__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.pwa-notif-settings__panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 20px 18px max(20px, env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 40px rgba(15, 23, 42, 0.18);
}

.pwa-notif-settings__panel h2 {
  margin: 0 0 16px;
  font-size: 1.1rem;
}

.pwa-notif-settings__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 12px;
}

.pwa-notif-settings__label {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.pwa-notif-settings__switch {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  cursor: pointer;
}

.pwa-notif-settings__switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.pwa-notif-settings__switch-ui {
  display: block;
  width: 52px;
  height: 30px;
  border-radius: 999px;
  background: #cbd5e1;
  transition: background 0.2s ease;
}

.pwa-notif-settings__switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.2);
  transition: transform 0.2s ease;
}

.pwa-notif-settings__switch input:checked + .pwa-notif-settings__switch-ui {
  background: #d4a012;
}

.pwa-notif-settings__switch input:checked + .pwa-notif-settings__switch-ui::after {
  transform: translateX(22px);
}

.pwa-notif-settings__hint {
  margin: 0 0 16px;
  font-size: 0.85rem;
  line-height: 1.45;
  color: #64748b;
}

.pwa-notif-settings__status {
  margin: 0 0 16px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #475569;
}

.pwa-notif-settings__status.is-ok {
  color: #166534;
  font-weight: 600;
}

.pwa-notif-settings__status.is-warn {
  color: #b45309;
  font-weight: 600;
}

.pwa-notif-settings__btn {
  display: block;
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 8px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background: #2563eb;
  color: #fff;
}

.pwa-notif-settings__btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.pwa-notif-settings__btn--ghost {
  background: #f1f5f9;
  color: #334155;
}

.pwa-notif-settings__help {
  margin: 12px 0 16px;
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.45;
}

.pwa-notif-settings__help summary {
  cursor: pointer;
  font-weight: 600;
  color: #334155;
}

.pwa-notif-settings__help p {
  margin: 8px 0 0;
}

.pwa-notif-settings__close {
  display: block;
  width: 100%;
  padding: 12px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: #64748b;
}
