/* ============================================================================
   COMPONENT: notification — the notification center list rows (FEA-0015) and
   the in-app alarmed full-screen view opened from it.
   ========================================================================== */

@layer components {
  /* Day-grouped notification rows (Dusk slice 8): leading tile · text + time +
     actions · an unread dot. Unread also bolds the title (never colour-only). */
  .notif-list { list-style: none; margin: 0; padding: 0; }
  .notif-list > li + li { border-block-start: var(--border-width) solid var(--color-border); }

  .notif { display: flex; align-items: flex-start; gap: var(--space-sm); padding: var(--space-sm) var(--space-md); }
  .notif__body { flex: 1; min-inline-size: 0; }
  .notif__title { line-height: var(--leading-normal); }
  .notif--unread .notif__title { font-weight: var(--weight-medium); }
  .notif__text { font-size: var(--text-sm); }
  .notif__time { font-size: var(--text-xs); }
  .notif__actions { --cluster-gap: var(--space-2xs); }
  .notif__actions svg { vertical-align: text-bottom; }
  .notif__actions:empty { display: none; }
  .notif__dot { flex: none; inline-size: var(--space-xs); block-size: var(--space-xs); margin-block-start: 0.4em; border-radius: var(--radius-pill); background: var(--accent); }

  /* Push-status banner (a prompt; hidden by JS once alerts are on — the global
     [hidden] rule in the utilities layer makes that hide actually take). */
  .push-banner { display: flex; align-items: flex-start; gap: var(--space-sm); }
  .push-banner__body { flex: 1; min-inline-size: 0; }
  .push-banner__title { font-weight: var(--weight-medium); }

  .alarm-screen {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: var(--space-lg);
    background: color-mix(in oklab, var(--surface-sunken) 92%, transparent);
    backdrop-filter: blur(6px);
  }

  .alarm-screen__card {
    inline-size: min(100%, 26rem);
    padding: var(--space-xl);
    background: var(--surface-raised);
    border: var(--border-width) solid var(--status-danger-fg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
  }

  .alarm-screen__icon {
    display: inline-flex;
    justify-content: center;
    color: var(--status-danger-fg);
    animation: alarm-pulse 1.2s infinite;
  }

  .alarm-screen__row1 { font-weight: var(--weight-bold); font-size: var(--text-lg); margin: 0; }
  .alarm-screen__row2 { margin: 0; }
  .alarm-screen__actions .btn { inline-size: 100%; justify-content: center; }
  .alarm-screen__snoozes { justify-content: center; }
  .alarm-screen .cluster { justify-content: center; }

  @keyframes alarm-pulse {
    0%, 100% { transform: rotate(0); }
    20% { transform: rotate(12deg); }
    40% { transform: rotate(-12deg); }
    60% { transform: rotate(6deg); }
  }

  @media (prefers-reduced-motion: reduce) {
    .alarm-screen__icon { animation: none; }
  }
}
