/*
 * ===========================================================================
 * PHASE 8H -- PUSH NOTIFICATION RELIABILITY
 * ===========================================================================
 *
 * LAST in the document, after phase8g.css. Same rules as that sheet: every
 * var() names a token some sheet defines and carries a fallback, and a rule
 * that changes a background sets its own `color`.
 */

/* ---- The player's three-line status (Notifications / permission / device) */
.notif-health {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.25rem 0.9rem;
  margin: 0.6rem 0 0.9rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius, 12px);
  background: var(--bg-elev, #10241f);
  color: var(--text, #e8f3ef);
  border: 1px solid var(--line, #24443d);
}

.notif-health dt {
  color: var(--text-dim, #9fb8b0);
  font-size: 0.9rem;
}

.notif-health dd {
  margin: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.notif-health--ok {
  border-color: var(--accent, #4fd1a5);
}

.notif-health--warn {
  border-color: var(--warn, #f2c14e);
}

.notif-health--warn dd {
  color: var(--warn, #f2c14e);
}

.notif-health--off {
  border-color: var(--line, #24443d);
}

/* ---- Admin: one device ------------------------------------------------- */
.admin-push__device {
  margin: 0.6rem 0;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius, 12px);
  background: var(--bg-elev-2, #16302c);
  color: var(--text, #e8f3ef);
  border: 1px solid var(--line, #24443d);
}

.admin-push__facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.2rem 0.8rem;
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.admin-push__facts dt {
  color: var(--text-dim, #9fb8b0);
}

.admin-push__facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

/* A phone is narrow: stack the facts rather than squeeze them. */
@media (max-width: 360px) {
  .notif-health,
  .admin-push__facts {
    grid-template-columns: 1fr;
  }
}
