/* Notifications (V1.44, /me/notifications: Client\Pages\MyNotifications.razor): this device, the kinds, the devices, how it
   works. The theme's variables only (light and dark). A phone: one column, the buttons wrap. The whole width of the page
   (the owner, 2026-11-06: every page uses the page width; 760 px before). */

.push-page { display: flex; flex-direction: column; gap: 14px; padding: 18px 16px 32px; }
.push-title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.35rem; font-weight: 900; }
.push-page > .hint { margin: -6px 0 0; }

.push-panel { border: 1px solid var(--border); border-radius: 12px; background: var(--panel); }
.push-panel h2 { margin-bottom: 6px; }
.push-off { border-color: var(--warn); background: var(--warn-soft); }

.push-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.push-primary { display: inline-flex; align-items: center; gap: 6px; border-color: var(--os-accent-fill); background: var(--os-accent-fill); color: var(--os-on-accent-fill); }
.push-primary:hover:not(:disabled) { background: var(--os-accent-fill-hover); }
.push-steps { margin: 6px 0 0; padding-left: 22px; }
.push-steps li { margin: 3px 0; }

.push-kinds, .push-devices { display: flex; flex-direction: column; gap: 10px; margin: 8px 0 0; padding: 0; list-style: none; }
.push-kind, .push-device { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; }
.push-switch { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.push-kind-name { font-weight: 700; }
.push-kind .hint { margin: 4px 0 0 46px; }
.push-policy { margin: 4px 0 0 46px; font-size: 0.8rem; color: var(--text); }
.push-policy::before { content: "\2192  "; color: var(--accent); font-weight: 800; }

/* The switch: a checkbox drawn as a slider, keyboard and screen readers keep the checkbox */
.push-switch input {
  position: relative;
  flex: none;
  width: 36px;
  height: 20px;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--chip);
  appearance: none;
  cursor: pointer;
  transition: background 0.15s;
}
.push-switch input::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--panel);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  content: "";
  transition: left 0.15s;
}
.push-switch input:checked { border-color: var(--accent); background: var(--accent); }
.push-switch input:checked::after { left: 18px; }
.push-switch input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.push-switch input:disabled { cursor: wait; opacity: 0.6; }

.push-device-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.push-spacer { flex: 1; }
.push-chip { padding: 2px 8px; border-radius: 999px; background: var(--os-accent); color: var(--os-on-accent); font-size: 0.72rem; font-weight: 700; }
.push-device .hint { margin-top: 4px; }
.push-device-error { margin-top: 4px; color: var(--bad); font-size: 0.8rem; overflow-wrap: anywhere; }

.push-help ul { margin: 6px 0 0; padding-left: 20px; }
.push-help li { margin: 5px 0; }

@media (max-width: 600px) {
  .push-page { padding: 12px 12px 24px; }
  .push-title { font-size: 1.15rem; }
  .push-kind .hint, .push-policy { margin-left: 0; }
  .push-device-head .btn { flex: 1 1 auto; }
  .push-spacer { flex-basis: 100%; height: 0; }
}
