/* S22 · Public notification summaries remain distinct from target availability, permissions, and original-task return. */
body[data-page="notifications"] { overflow-x: clip; }
.notifications-page { min-height: calc(100svh - 76px); padding-block: var(--space-7) var(--space-10); }
.notifications-heading { max-width: 880px; }
.notifications-heading h1 { margin-top: var(--space-2); color: var(--forest); font-size: clamp(31px, 3.25vw, 42px); }
.notifications-heading > p:not(.eyebrow) { max-width: 800px; margin-top: var(--space-4); color: var(--ink-soft); font-size: 15px; line-height: 1.72; }
.notifications-mobile-header, .notifications-mobile-actions, .notifications-tablet-actions { display: none; }
.notifications-status { min-height: 22px; margin-top: var(--space-4); color: var(--moss-strong); font-size: 11px; font-weight: 750; line-height: 1.55; }
.notifications-workbench { display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(300px, .86fr); align-items: start; gap: clamp(18px, 3vw, 34px); margin-top: var(--space-4); padding: clamp(18px, 2.8vw, 30px); border-radius: var(--radius-md); }
.notifications-workbench::after { position: absolute; right: 42%; bottom: -38px; width: 98px; height: 98px; border: 1px solid rgba(111, 139, 116, .12); border-radius: 50%; content: ""; pointer-events: none; }
.notifications-list-section, .notifications-context { min-width: 0; }
.notifications-list-section { display: grid; gap: 13px; }
.notifications-list-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.notifications-list-header > div { display: grid; gap: 5px; min-width: 0; }
.notifications-list-header .eyebrow { margin-bottom: 0; }
.notifications-list-header h2, .notifications-context-card h2 { color: var(--forest); font-size: clamp(23px, 2.35vw, 30px); }
.notifications-list-header p:not(.eyebrow) { max-width: 540px; color: var(--ink-soft); font-size: 12px; line-height: 1.62; }
.notifications-unread-count { min-height: 28px; display: inline-flex; flex: 0 0 auto; align-items: center; padding: 0 9px; color: var(--moss-strong); background: var(--glass-a-bg); border: 1px solid var(--glass-a-border-subtle); border-top-color: var(--glass-a-border-top); border-radius: 999px; box-shadow: var(--glass-a-highlight); font-size: 10px; font-weight: 800; white-space: nowrap; }
.notifications-filter-row { display: flex; flex-wrap: wrap; gap: 7px; }
.notifications-filter { min-height: 28px; display: inline-flex; align-items: center; padding: 0 10px; color: var(--ink-soft); background: var(--glass-a-bg); border: 1px solid var(--glass-a-border-subtle); border-top-color: var(--glass-a-border-top); border-radius: 999px; box-shadow: var(--glass-a-highlight); font-size: 10px; font-weight: 800; }
.notifications-filter--active { color: #f8fbf7; background: var(--btn-primary-bg); border-color: rgba(255, 255, 255, .42); box-shadow: var(--btn-primary-shadow); }
.notifications-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.notification-row { min-width: 0; overflow: hidden; background: var(--glass-c-bg); border: 1px solid var(--glass-c-border-subtle); border-top-color: var(--glass-c-border-top); border-left-color: var(--glass-c-border-left); border-radius: var(--radius-xs); box-shadow: var(--glass-c-highlight); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.notification-row:hover { transform: translateY(-1px); border-color: rgba(47, 179, 84, .44); box-shadow: var(--glass-c-shadow), var(--glass-c-highlight); }
.notification-row > a, .notification-row > button { width: 100%; min-height: 78px; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px 12px; color: inherit; background: transparent; border: 0; text-align: left; }
.notification-row > button { font: inherit; cursor: pointer; }
.notification-row__icon { width: 30px; height: 30px; display: grid; place-items: center; color: #f8fbf7; background: var(--btn-primary-bg); border-radius: 50%; box-shadow: var(--btn-primary-shadow); font-size: 10px; font-weight: 900; }
.notification-row__copy { min-width: 0; display: grid; gap: 3px; }
.notification-row__copy strong { color: var(--forest); font-size: 12px; line-height: 1.42; overflow-wrap: anywhere; }
.notification-row__copy small { color: var(--ink-soft); font-size: 10px; line-height: 1.48; overflow-wrap: anywhere; }
.notification-row__status { min-height: 24px; display: inline-flex; align-items: center; justify-content: center; max-width: 92px; padding: 2px 7px; color: var(--moss-strong); background: var(--glass-a-bg); border: 1px solid var(--glass-a-border-subtle); border-top-color: var(--glass-a-border-top); border-radius: 999px; font-size: 9px; font-weight: 800; line-height: 1.25; text-align: center; overflow-wrap: anywhere; }
.notification-row[data-notification-read="true"] { background: var(--glass-b-bg); border-color: var(--glass-b-border-subtle); }
.notification-row[data-notification-read="true"] .notification-row__icon { color: var(--moss-strong); background: var(--glass-a-bg); box-shadow: none; }
.notification-row[data-notification-read="true"] .notification-row__copy strong { color: var(--ink-soft); }
.notification-row[data-notification-read="true"] .notification-row__status { color: var(--ink-faint); background: var(--glass-a-bg); border-color: var(--glass-a-border-subtle); }
.notification-row--unavailable { background: rgba(249, 239, 231, .78) !important; border-color: rgba(188, 111, 60, .4) !important; }
.notification-row--unavailable .notification-row__icon { color: #fff8f1 !important; background: #8e4d1d !important; }
.notification-row--unavailable .notification-row__copy strong, .notification-row--unavailable .notification-row__copy small { color: #824419 !important; }
.notification-row--unavailable .notification-row__status { color: #824419 !important; background: rgba(255, 248, 241, .86) !important; border-color: rgba(188, 111, 60, .34) !important; }
.notifications-list-end { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 9px; align-items: start; margin-top: 2px; padding: 12px; color: var(--forest); background: var(--glass-b-bg); border: 1px solid var(--glass-b-border-subtle); border-top-color: var(--glass-b-border-top); border-radius: var(--radius-xs); box-shadow: var(--glass-b-highlight); }
.notifications-list-end > span { width: 24px; height: 24px; display: grid; place-items: center; color: var(--moss-strong); background: var(--glass-a-bg); border-radius: 50%; font-size: 12px; font-weight: 900; }
.notifications-list-end strong { color: var(--forest); font-size: 11px; }
.notifications-list-end p { margin-top: 2px; color: var(--ink-soft); font-size: 10px; line-height: 1.55; }
.notifications-empty-list { min-height: 252px; display: grid; place-content: center; justify-items: center; gap: 7px; padding: 24px; color: var(--ink-soft); background: var(--glass-b-bg); border: 1px dashed rgba(47, 179, 84, .36); border-radius: var(--radius-sm); box-shadow: var(--glass-b-highlight); text-align: center; }
.notifications-empty-list > span { width: 36px; height: 36px; display: grid; place-items: center; color: var(--moss-strong); background: var(--glass-a-bg); border-radius: 50%; font-size: 20px; font-weight: 700; }
.notifications-empty-list h3 { color: var(--forest); font-size: 17px; }
.notifications-empty-list p { max-width: 270px; color: var(--ink-soft); font-size: 11px; line-height: 1.58; }
.notifications-context { position: sticky; top: 96px; }
.notifications-context-card { min-height: 342px; display: grid; align-content: start; gap: 11px; padding: clamp(18px, 2.2vw, 25px); background: var(--glass-c-bg); border: 1px solid var(--glass-c-border-subtle); border-top-color: var(--glass-c-border-top); border-left-color: var(--glass-c-border-left); border-radius: var(--radius-sm); box-shadow: var(--glass-c-shadow), var(--glass-c-highlight); backdrop-filter: var(--glass-c-Filter); -webkit-backdrop-filter: var(--glass-c-Filter); }
.notifications-context-card .eyebrow { margin-bottom: 0; }
.notifications-context-card > p:not(.eyebrow) { color: var(--ink-soft); font-size: 12px; line-height: 1.68; overflow-wrap: anywhere; }
.notifications-context-facts { display: grid; gap: 8px; margin: 2px 0 0; }
.notifications-context-facts > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px; background: var(--glass-b-bg); border: 1px solid var(--glass-b-border-subtle); border-top-color: var(--glass-b-border-top); border-radius: 10px; }
.notifications-context-facts dt { color: var(--ink-faint); font-size: 10px; font-weight: 800; }
.notifications-context-facts dd { margin: 0; color: var(--forest); font-size: 10px; font-weight: 800; text-align: right; }
.notifications-context-boundary { display: grid; gap: 4px; margin-top: 3px; padding: 12px; color: var(--forest); background: var(--glass-b-bg); border: 1px solid var(--glass-b-border-subtle); border-top-color: var(--glass-b-border-top); border-radius: var(--radius-xs); }
.notifications-context-boundary strong { color: var(--forest); font-size: 11px; }
.notifications-context-boundary span { color: var(--ink-soft); font-size: 10px; line-height: 1.58; overflow-wrap: anywhere; }
.notifications-context-card--unavailable, .notifications-context-card--error { background: rgba(249, 239, 231, .78); border-color: rgba(188, 111, 60, .42); }
.notifications-context-card--unavailable .eyebrow, .notifications-context-card--error .eyebrow, .notifications-context-card--unavailable h2, .notifications-context-card--error h2, .notifications-context-card--unavailable > p:not(.eyebrow), .notifications-context-card--error > p:not(.eyebrow) { color: #824419; }
.notifications-context-card--unavailable .notifications-context-boundary, .notifications-context-card--error .notifications-context-boundary { background: rgba(255, 248, 241, .72); border-color: rgba(188, 111, 60, .28); }
.notifications-context-card--unavailable .notifications-context-boundary strong, .notifications-context-card--error .notifications-context-boundary strong, .notifications-context-card--unavailable .notifications-context-boundary span, .notifications-context-card--error .notifications-context-boundary span { color: #824419; }
.notifications-text-action { justify-self: start; min-height: 44px; padding: 0; color: var(--forest); background: transparent; border: 0; font-size: 11px; font-weight: 800; text-align: left; }
.notifications-text-action:hover { color: var(--moss-strong); }
.notifications-actions { z-index: 1; grid-column: 1 / -1; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px; padding-top: 2px; }
.notifications-actions .button { min-width: 152px; min-height: 48px; font-size: 12px; }
.notifications-f22 { display: grid; gap: 15px; margin-top: var(--space-7); padding: clamp(18px, 2.6vw, 28px); border: 1px solid var(--glass-b-border-subtle); border-top-color: var(--glass-b-border-top); border-left-color: var(--glass-b-border-left); border-radius: var(--radius-md); background: var(--glass-b-bg); box-shadow: var(--glass-b-shadow), var(--glass-b-highlight); backdrop-filter: var(--glass-b-Filter); -webkit-backdrop-filter: var(--glass-b-Filter); }
.notifications-f22 > header { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.notifications-f22 h2 { max-width: 770px; color: var(--forest); font-size: clamp(19px, 2.1vw, 26px); }
.notifications-f22 header > p { max-width: 364px; color: var(--ink-soft); font-size: 11px; line-height: 1.58; text-align: right; }
.notifications-f22-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.notifications-f22-grid article { min-width: 0; min-height: 164px; display: grid; align-content: start; gap: 6px; padding: 13px; background: var(--glass-c-bg); border: 1px solid var(--glass-c-border-subtle); border-top-color: var(--glass-c-border-top); border-radius: var(--radius-xs); box-shadow: var(--glass-c-highlight); }
.notifications-f22-grid article > span { color: var(--moss-strong); font-size: 10px; font-weight: 800; }
.notifications-f22-grid h3 { color: var(--forest); font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.notifications-f22-grid p { color: var(--ink-soft); font-size: 10px; line-height: 1.55; overflow-wrap: anywhere; }
.notifications-f22-grid__warning { background: rgba(249, 239, 231, .76) !important; border-color: rgba(188, 111, 60, .34) !important; }
.notifications-f22-grid__warning > span, .notifications-f22-grid__warning h3, .notifications-f22-grid__warning p { color: #824419 !important; }

@media (max-width: 980px) {
  .notifications-workbench { grid-template-columns: minmax(0, 1fr) minmax(270px, .76fr); }
  .notifications-f22-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .notifications-page { padding-bottom: calc(var(--space-10) + 74px); }
  .notifications-workbench { grid-template-columns: minmax(0, 1fr); }
  .notifications-context { position: static; }
  .notifications-context-card { min-height: 0; }
  .notifications-actions { display: none; }
  .notifications-tablet-actions { position: fixed; z-index: 50; right: 50%; bottom: 12px; width: min(calc(100% - 48px), 720px); display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px; padding: 10px; transform: translateX(50%); background: var(--glass-c-bg); border: 1px solid var(--glass-c-border-subtle); border-top-color: var(--glass-c-border-top); border-radius: 15px; box-shadow: var(--glass-c-shadow), var(--glass-c-highlight); backdrop-filter: var(--glass-b-blur); -webkit-backdrop-filter: var(--glass-b-blur); }
  .notifications-tablet-actions .button { min-width: 152px; min-height: 48px; font-size: 12px; }
}

@media (max-width: 640px) {
  .site-header { display: none; }
  .notifications-page.page-shell { width: 100%; min-height: 100svh; margin: 0; padding: 0 12px calc(104px + env(safe-area-inset-bottom, 0px)); }
  .notifications-heading { display: none; }
  .notifications-mobile-header { min-height: 58px; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: max(8px, env(safe-area-inset-top, 0px)) 2px 8px; border-bottom: 1px solid var(--glass-a-border-subtle); }
  .notifications-mobile-header a { width: 44px; min-height: 44px; display: grid; place-items: center; color: var(--forest); font-size: 23px; font-weight: 800; }
  .notifications-mobile-header strong { min-width: 0; color: var(--forest); font-size: 16px; text-align: center; overflow-wrap: anywhere; }
  .notifications-mobile-header button { min-height: 44px; max-width: 76px; padding: 0 3px; color: var(--moss-strong); background: transparent; border: 0; font-size: 9px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
  .notifications-status { min-height: 18px; margin-top: 2px; font-size: 10px; }
  .notifications-workbench { gap: 12px; margin-top: 10px; padding: 13px; border-radius: 18px; }
  .notifications-workbench::after { display: none; }
  .notifications-list-section { gap: 11px; }
  .notifications-list-header h2, .notifications-context-card h2 { font-size: 21px; }
  .notifications-list-header p:not(.eyebrow) { font-size: 10px; }
  .notifications-unread-count { min-height: 26px; padding-inline: 7px; font-size: 9px; }
  .notifications-filter { min-height: 26px; padding-inline: 8px; font-size: 9px; }
  .notifications-list { gap: 8px; }
  .notification-row > a, .notification-row > button { min-height: 68px; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 8px; padding: 9px 10px; }
  .notification-row__icon { width: 26px; height: 26px; font-size: 8px; }
  .notification-row__copy { gap: 2px; }
  .notification-row__copy strong { font-size: 10px; }
  .notification-row__copy small { font-size: 9px; line-height: 1.42; }
  .notification-row__status { min-height: 22px; max-width: 70px; padding-inline: 5px; font-size: 8px; }
  .notifications-list-end { grid-template-columns: 22px minmax(0, 1fr); gap: 7px; padding: 10px; }
  .notifications-list-end > span { width: 20px; height: 20px; font-size: 10px; }
  .notifications-list-end strong { font-size: 10px; }
  .notifications-list-end p { font-size: 9px; }
  .notifications-empty-list { min-height: 218px; padding: 18px; }
  .notifications-empty-list h3 { font-size: 16px; }
  .notifications-empty-list p { font-size: 10px; }
  .notifications-context-card { gap: 9px; padding: 14px; border-radius: var(--radius-xs); }
  .notifications-context-card > p:not(.eyebrow) { font-size: 10px; line-height: 1.6; }
  .notifications-context-facts { gap: 6px; }
  .notifications-context-facts > div { padding: 8px; }
  .notifications-context-facts dt, .notifications-context-facts dd { font-size: 9px; }
  .notifications-context-boundary { padding: 10px; }
  .notifications-context-boundary strong { font-size: 10px; }
  .notifications-context-boundary span { font-size: 9px; }
  .notifications-text-action { min-height: 44px; font-size: 10px; }
  .notifications-actions, .notifications-tablet-actions, .notifications-f22 { display: none; }
  .notifications-mobile-actions { position: fixed; z-index: 50; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 8px; align-items: center; padding: 10px 12px max(10px, env(safe-area-inset-bottom, 0px)); background: var(--glass-c-bg); border-top: 1px solid var(--glass-c-border-top); box-shadow: var(--glass-c-shadow), var(--glass-c-highlight); backdrop-filter: var(--glass-b-blur); -webkit-backdrop-filter: var(--glass-b-blur); }
  .notifications-mobile-actions[data-secondary-visible="false"] { grid-template-columns: minmax(0, 1fr); }
  .notifications-mobile-actions .button { min-width: 0; min-height: 44px; padding-inline: 9px; font-size: 11px; white-space: nowrap; }
}

@media (max-width: 380px) {
  .notifications-page.page-shell { padding-inline: 10px; }
  .notifications-mobile-actions { gap: 6px; padding-inline: 10px; }
  .notifications-mobile-actions .button { padding-inline: 6px; font-size: 10px; }
  .notifications-mobile-header { gap: 4px; }
  .notifications-mobile-header button { max-width: 61px; font-size: 8px; }
  .notification-row > a, .notification-row > button { grid-template-columns: 26px minmax(0, 1fr) auto; gap: 6px; padding-inline: 8px; }
  .notification-row__status { max-width: 58px; font-size: 7px; }
}

/* Explicitly preserve mutually exclusive notification states against shared component display declarations. */
.notifications-page [hidden], .notifications-mobile-actions [hidden] { display: none !important; }
