.notifications-page {
  width: min(100% - clamp(44px, 6vw, 92px), 1392px);
  margin: 0 auto;
  padding: 28px 0 48px;
}

.notifications-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 17px;
  min-height: 142px;
  padding: 24px 26px;
  border: 1px solid #cbe4dc;
  border-radius: var(--radius-md, 14px);
  background: linear-gradient(115deg, #edf9f5 0%, #f9fcfb 73%);
  box-shadow: var(--shadow-xs, 0 1px 2px rgba(20, 50, 49, 0.04));
}

.notifications-hero-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid #b9ded2;
  border-radius: 15px;
  background: #d9f0e8;
  color: var(--teal-dark, #05675f);
}

.notifications-hero-icon .icon {
  width: 27px;
  height: 27px;
  stroke-width: 1.45;
}

.notifications-hero-copy {
  min-width: 0;
}

.notifications-hero-copy .page-subtitle {
  max-width: 720px;
  margin-top: 9px;
}

.notifications-hero-action {
  display: flex;
  justify-content: flex-end;
}

.notifications-page .button .icon {
  flex: 0 0 auto;
}

.notifications-page .button:disabled {
  opacity: .58;
}

.notification-alert {
  margin-top: 13px;
  padding: 11px 14px;
  border: 1px solid var(--line, #e1e9e6);
  border-radius: var(--radius-sm, 10px);
  background: var(--surface, #fff);
  color: var(--ink-soft, #486265);
  font-size: 11px;
  line-height: 1.5;
}

.notification-alert.is-warning {
  border-color: #ead4a9;
  background: #fff9ed;
  color: #76531d;
}

.notification-alert.is-error {
  border-color: #efc9c5;
  background: #fffafa;
  color: var(--red-dark, #983838);
}

.notification-alert .text-link {
  font-size: inherit;
}

.notifications-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr);
  align-items: stretch;
  gap: 18px;
  margin-top: 19px;
}

.notifications-card {
  min-width: 0;
  padding: 20px;
}

.notifications-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line, #e1e9e6);
}

.notifications-card-header h2 {
  margin-top: 2px;
}

.notifications-card-header > .icon {
  width: 20px;
  height: 20px;
  color: var(--teal, #087f73);
}

.notification-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.notification-stat {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line, #e1e9e6);
  border-radius: 9px;
  background: var(--surface-soft, #fbfcfc);
}

.notification-stat > span,
.notification-stat > small {
  display: block;
  color: var(--ink-muted, #6f8585);
  font-size: 10px;
  line-height: 1.35;
}

.notification-stat > strong {
  display: block;
  overflow: hidden;
  margin: 7px 0 4px;
  color: var(--ink-strong, #102c2f);
  font-family: var(--font-display, Manrope, sans-serif);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-stat > small {
  min-height: 27px;
}

.notifications-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 17px;
}

.notifications-card-actions .button {
  min-height: 37px;
}

.notifications-card > .mini-note {
  margin-top: 15px;
}

.notification-checklist {
  display: grid;
  gap: 12px;
  margin: 17px 0 0;
  padding: 0;
  list-style: none;
}

.notification-checklist li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
}

.notification-checklist li > span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  background: var(--gray-soft, #edf2f1);
  color: var(--ink-muted, #6f8585);
}

.notification-checklist li > span .icon {
  width: 14px;
  height: 14px;
  stroke-width: 2;
}

.notification-checklist li.is-ok > span {
  background: var(--teal-soft, #e1f2ed);
  color: var(--teal-dark, #05675f);
}

.notification-checklist li.is-missing > span {
  background: var(--amber-soft, #fff2dc);
  color: var(--amber-dark, #8f530f);
}

.notification-checklist strong,
.notification-checklist small {
  display: block;
}

.notification-checklist strong {
  color: var(--ink-strong, #102c2f);
  font-family: var(--font-display, Manrope, sans-serif);
  font-size: 11px;
  font-weight: 800;
}

.notification-checklist small {
  margin-top: 2px;
  color: var(--ink-muted, #6f8585);
  font-size: 10px;
}

.notification-privacy {
  margin-top: 19px;
}

.privacy-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding-top: 17px;
}

.privacy-columns h3 {
  font-size: 12px;
}

.privacy-columns p {
  margin-top: 6px;
  color: var(--ink-soft, #486265);
  font-size: 11px;
  line-height: 1.6;
}

.notifications-page code {
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--gray-soft, #edf2f1);
  color: var(--ink-strong, #102c2f);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .92em;
}

.notification-experiment { margin-top: 18px; }
.experiment-arms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 15px; }
.experiment-arm { min-width: 0; padding: 15px; border: 1px solid var(--line, #e1e9e6); border-radius: 11px; background: var(--surface-soft, #fbfcfc); }
.experiment-arm > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.experiment-arm > header > strong { color: var(--ink-strong, #102c2f); font-family: var(--font-display, Manrope, sans-serif); font-size: 21px; font-weight: 800; }
.experiment-copy { min-height: 40px; margin: 12px 0 14px; color: var(--ink-soft, #486265); font-size: 11px; line-height: 1.55; }
.experiment-arm dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.experiment-arm dl > div { min-width: 0; padding: 9px; border-radius: 8px; background: #fff; }
.experiment-arm dt { color: var(--ink-muted, #6f8585); font-size: 9px; line-height: 1.35; }
.experiment-arm dd { margin: 4px 0 0; color: var(--ink-strong, #102c2f); font-family: var(--font-display, Manrope, sans-serif); font-size: 15px; font-weight: 800; }
.experiment-arm-a { border-top: 3px solid #3276a6; }
.experiment-arm-b { border-top: 3px solid #d49a3a; }

@media (max-width: 900px) {
  .notifications-hero {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .notifications-hero-action {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .notifications-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .notifications-page {
    width: min(100% - 28px, 1392px);
    padding-top: 18px;
  }

  .notifications-hero {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 19px;
  }

  .notifications-hero-icon {
    width: 45px;
    height: 45px;
  }

  .notifications-hero-icon .icon {
    width: 23px;
    height: 23px;
  }

  .notification-stats,
  .privacy-columns,
  .experiment-arms {
    grid-template-columns: 1fr;
  }

  .notifications-card {
    padding: 16px;
  }

  .notification-stat > small {
    min-height: 0;
  }
}
