.notifications-page {
  width: 100%;
  max-width: 980px;
  margin: 0;
  padding: 0 0 86px;
}

.notifications-sidebar .notification-section-tabs {
  gap: 3px;
}

.notifications-sidebar .notification-section-tab {
  display: flex;
  width: 100%;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #aaa;
  padding: 10px 14px;
  text-align: left;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.notification-section-count {
  display: inline-flex;
  flex: 0 0 auto;
  min-width: 22px;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border: 1px solid rgba(111, 183, 255, .7);
  border-radius: 999px;
  background: #1168b7;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
}

.notification-section-count[hidden] {
  display: none !important;
}

.sidebar-toggle .notification-section-count {
  margin-left: auto;
}

.notifications-sidebar .notification-section-tab:hover {
  background: #181818;
  color: #fff;
}

.notifications-sidebar .notification-section-tab.active,
.notifications-sidebar .notification-section-tab[aria-selected="true"] {
  border-left-color: #409cff;
  background: rgba(40, 133, 225, .17);
  color: #e4f1ff;
  box-shadow: none;
}

.notification-category-slot {
  margin-top: 8px;
}

.notification-category-slot .sidebar-item {
  justify-content: space-between;
}

.notification-category-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.notification-category-icon {
  display: inline-flex;
  width: 1.18em;
  flex: 0 0 1.18em;
  justify-content: center;
}

.notification-category-count {
  min-width: 24px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #aaa;
  font-size: 10px;
  text-align: center;
}

.notifications-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 8px;
}

.notifications-heading h1 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.25;
}

.notifications-title-line {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.notifications-heading-help {
  display: block;
  position: static;
  flex: 0 0 auto;
}

.notifications-heading-help summary {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid rgba(94, 167, 235, .48);
  border-radius: 999px;
  background: rgba(47, 130, 208, .14);
  color: #badaf8;
  font-size: 15px;
  line-height: 1;
  list-style: none;
  cursor: pointer;
}

.notifications-heading-help summary::-webkit-details-marker {
  display: none;
}

.notifications-heading-help-text {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  z-index: 100;
  width: min(300px, calc(100vw - 32px));
  padding: 12px;
  border: 1px solid #3d5368;
  border-radius: 11px;
  background: rgba(18, 23, 28, .98);
  color: #d4dce4;
  box-shadow: 0 12px 30px rgba(0,0,0,.55);
  font-size: 12px;
  line-height: 1.45;
}

.notifications-heading p {
  max-width: 680px;
  margin: 0;
  color: #aaa;
  line-height: 1.5;
}

.notifications-heading-description {
  display: none;
}

.notifications-heading-actions,
.notifications-filters,
.activity-notifications-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.activity-notifications-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.activity-notifications-heading > div:first-child {
  display: none;
}

.activity-notifications-heading p {
  max-width: 680px;
  margin: 0;
  color: #aaa;
  line-height: 1.45;
}

.notifications-select {
  min-height: 37px;
  border: 1px solid #3a3a3a;
  border-radius: 9px;
  background: #171717;
  color: #eee;
  padding: 7px 10px;
  font: inherit;
  font-size: 13px;
}

.activity-inline-filters {
  display: none;
}

.email-subscription-card {
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(67, 151, 234, .42);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(28, 91, 150, .14), #111 54%);
}

.email-address-card {
  border-color: rgba(177, 109, 255, .42);
  background: linear-gradient(145deg, rgba(106, 53, 156, .14), #111 54%);
}

.live-email-card {
  border-color: rgba(67, 151, 234, .42);
}

.health-email-card {
  border-color: rgba(85, 195, 132, .4);
  background: linear-gradient(145deg, rgba(35, 124, 75, .13), #111 54%);
}

.health-email-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 9px;
  margin: 14px 0;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 11px;
}

.health-email-categories legend {
  padding: 0 6px;
  color: #bbb;
  font-size: 13px;
  font-weight: 700;
}

.health-email-category {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #ddd;
  font-size: 13px;
  line-height: 1.35;
}

.health-email-category input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #37cd77;
}

.health-email-categories[disabled] {
  opacity: .52;
}

.email-subscription-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.email-subscription-heading h2,
.owner-notifications-title {
  margin: 0 0 5px;
  color: #fff;
  font-size: 1.15rem;
}

.email-subscription-heading p {
  margin: 0;
  color: #aaa;
  line-height: 1.45;
}

.email-subscription-state {
  flex: 0 0 auto;
  padding: 4px 9px;
  border: 1px solid #3b5268;
  border-radius: 999px;
  color: #b9dafe;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.email-subscription-state[data-state="pending"],
.email-subscription-state[data-state="not-confirmed"] {
  border-color: rgba(255, 77, 91, .72);
  background: rgba(214, 39, 55, .2);
  color: #ffb0b7;
  box-shadow: 0 0 15px rgba(255, 48, 68, .2);
}

.email-subscription-state[data-state="subscribed"] {
  border-color: rgba(55, 205, 119, .72);
  background: rgba(31, 160, 87, .2);
  color: #a0f4c3;
  box-shadow: 0 0 15px rgba(40, 196, 107, .18);
}

.email-subscription-state[data-state="unsubscribed"],
.email-subscription-state[data-state="not-subscribed"] {
  border-color: #4a4a4a;
  background: rgba(255,255,255,.04);
  color: #aaa;
}

.email-subscription-toggle {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 12px 0;
  color: #eee;
  font-weight: 650;
}

.email-subscription-toggle input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: #3695ec;
}

.email-subscription-card > label[for] {
  display: block;
  margin: 10px 0 6px;
  color: #bbb;
  font-size: 13px;
}

#emailSubscriptionAddress {
  box-sizing: border-box;
  width: min(480px, 100%);
  border: 1px solid #3a3a3a;
  border-radius: 9px;
  background: #090909;
  color: #fff;
  padding: 10px 12px;
  font: inherit;
}

#emailSubscriptionAddress:focus {
  outline: 2px solid rgba(54, 149, 236, .45);
  border-color: #3695ec;
}

.email-subscription-consent {
  max-width: 720px;
  margin: 9px 0 12px;
  color: #888;
  font-size: 12px;
  line-height: 1.5;
}

.email-subscription-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.email-transparency {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid rgba(255,255,255,.09);
  color: #aaa;
  font-size: 12px;
}

.email-transparency strong {
  color: #ddd;
}

.email-transparency small {
  color: #747474;
}

.owner-notifications-title {
  margin: 6px 0 12px;
}

.notifications-button,
.notifications-filter,
.notification-action {
  border: 1px solid #3a3a3a;
  border-radius: 9px;
  background: #171717;
  color: #eee;
  padding: 9px 12px;
  font: inherit;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
}

.notifications-button:hover,
.notifications-filter:hover,
.notification-action:hover {
  border-color: #5a9bd8;
  background: #202b35;
}

.notifications-button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.notifications-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 13px;
}

.notification-summary-card {
  padding: 13px 14px;
  border: 1px solid #2f2f2f;
  border-radius: 12px;
  background: #111;
}

.notification-summary-card span {
  display: block;
  color: #929292;
  font-size: 12px;
}

.notification-summary-card strong {
  display: block;
  margin-top: 3px;
  color: #fff;
  font-size: 1.4rem;
}

.notification-summary-card.is-unread {
  border-color: rgba(63, 160, 255, .52);
  box-shadow: 0 0 16px rgba(31, 135, 255, .12);
}

.notifications-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.notifications-filter[aria-pressed="true"] {
  border-color: #409cff;
  background: rgba(40, 133, 225, .2);
  color: #dcebff;
}

.notifications-status {
  min-height: 21px;
  margin: 8px 0 12px;
  color: #aaa;
  font-size: 13px;
}

.notifications-list {
  display: grid;
  gap: 10px;
}

.notification-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid #333;
  border-radius: 13px;
  background: #111;
}

.notification-card.is-unread {
  border-color: rgba(65, 157, 255, .55);
  background: linear-gradient(135deg, rgba(35, 113, 189, .17), #111 62%);
  box-shadow: inset 3px 0 0 #3295ff;
}

.notification-card.is-resolved {
  opacity: .68;
}

.notification-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  font-size: 19px;
}

.notification-card[data-severity="warning"] .notification-icon {
  background: rgba(255, 191, 37, .14);
  box-shadow: 0 0 12px rgba(255, 191, 37, .12);
}

.notification-card[data-severity="error"] .notification-icon {
  background: rgba(255, 63, 79, .15);
  box-shadow: 0 0 12px rgba(255, 63, 79, .15);
}

.notification-main {
  min-width: 0;
}

.notification-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.activity-card-tools {
  display: inline-flex;
  align-items: flex-start;
  gap: 5px;
  flex: 0 0 auto;
}

.notification-card.activity-card {
  display: block;
}

.activity-card .note-head {
  margin-bottom: 0;
}

.activity-card .note-who {
  min-width: 0;
}

.activity-card .activity-description {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 7px 0 5px;
  padding: 0 !important;
  text-align: left !important;
  transform: none !important;
  color: #d7d7d7;
  font-weight: 600;
}

.activity-event-embed {
  margin-top: 11px;
}

.activity-event-embed .note-embed {
  margin: 0;
}

.notification-title {
  margin: 0;
  color: #fff;
  font-size: 15px;
  line-height: 1.35;
}

.notification-state {
  flex: 0 0 auto;
  padding: 3px 7px;
  border: 1px solid #393939;
  border-radius: 999px;
  color: #aaa;
  font-size: 10px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.notification-message {
  margin: 6px 0 9px;
  color: #bbb;
  line-height: 1.48;
}

.activity-actor {
  color: #fff;
  font-weight: 750;
}

.activity-amount {
  color: #ffd34f;
}

.activity-load-more {
  display: block;
  margin: 14px auto 0;
}

.notification-avatar {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  background: #222;
  object-fit: cover;
}

.notification-meta,
.notification-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.notification-meta {
  color: #838383;
  font-size: 11px;
}

.activity-card-date {
  justify-content: flex-end;
  margin-top: 9px;
  font-size: 13px;
}

.notification-actions {
  margin-top: 10px;
}

.activity-combined-actions {
  justify-content: flex-start;
}

.notification-action {
  padding: 7px 10px;
  font-size: 12px;
}

.notification-action.is-primary {
  border-color: rgba(51, 148, 255, .6);
  background: rgba(37, 126, 216, .2);
}

.notifications-empty,
.notifications-access,
.notifications-roadmap {
  padding: 18px;
  border: 1px solid #333;
  border-radius: 13px;
  background: #111;
  color: #aaa;
  line-height: 1.5;
}

.notifications-empty {
  text-align: center;
}

.notifications-access strong,
.notifications-roadmap strong {
  color: #fff;
}

.notifications-roadmap {
  margin-top: 18px;
  border-color: rgba(79, 148, 214, .32);
  background: linear-gradient(135deg, rgba(28, 91, 150, .12), #111);
  font-size: 13px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 680px) {
  .notifications-page-layout,
  .notifications-page,
  #activityNotificationsApp,
  #notificationsApp,
  #emailNotificationsApp,
  .notifications-list,
  .notification-card,
  .notification-main,
  .email-subscription-card {
    min-width: 0;
    max-width: 100%;
  }

  .notifications-heading,
  .notifications-toolbar,
  .activity-notifications-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .activity-notifications-actions {
    width: 100%;
  }

  .activity-notifications-actions > * {
    flex: 1 1 auto;
  }

  .email-subscription-heading {
    flex-direction: column;
  }

  .notifications-heading h1,
  .notifications-heading p,
  .activity-notifications-heading p,
  .notification-title,
  .notification-message,
  .notifications-status,
  .notifications-roadmap,
  .email-subscription-card,
  .email-transparency {
    overflow-wrap: anywhere;
  }

  .notifications-heading-actions .notifications-button {
    flex: 1;
  }

  .notifications-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .notification-summary-card {
    padding: 11px 9px;
  }

  .notification-summary-card strong {
    font-size: 1.2rem;
  }

  .notification-card {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 9px;
    padding: 12px;
  }

  .notification-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .activity-event-embed,
  .activity-event-embed .note-embed,
  .activity-event-embed .note-body,
  .activity-event-embed img,
  .activity-event-embed video,
  .activity-event-embed iframe {
    min-width: 0;
    max-width: 100%;
  }

  .activity-event-embed .note-stats {
    flex-wrap: wrap;
  }

  .event-menu-popover {
    max-width: calc(100vw - 32px);
  }
}

@media (max-width: 560px) {
  .notifications-heading {
    margin-bottom: 8px;
  }

  .notifications-heading h1 {
    margin-bottom: 0;
    font-size: 1.35rem;
    line-height: 1.25;
  }

  .notifications-heading-description {
    display: none;
  }

  .notifications-heading-help {
    display: block;
  }

  .activity-notifications-heading > div:first-child {
    display: none;
  }

  .activity-notifications-heading {
    margin-bottom: 8px;
  }

  .activity-notifications-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
  }

  .activity-notifications-actions > * {
    min-width: 0;
  }

  .activity-notifications-actions .notifications-select {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .network-page-layout.notifications-page-layout {
    padding-left: 6px;
    padding-right: 6px;
  }

  .notifications-sidebar {
    padding-left: 6px;
    padding-right: 6px;
  }

  .notifications-heading {
    gap: 10px;
  }

  .activity-notifications-actions {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .activity-notifications-actions > * {
    min-width: 0;
    max-width: 100%;
  }

  .notifications-select {
    width: 100%;
  }

  .notifications-summary {
    gap: 6px;
  }

  .notification-summary-card {
    min-width: 0;
    padding: 10px 7px;
  }

  .notification-summary-card span {
    overflow-wrap: anywhere;
    font-size: 11px;
  }

  .notification-summary-card strong {
    font-size: 1.05rem;
  }

  .email-subscription-card {
    padding: 14px;
  }

  .health-email-categories {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    padding: 12px;
  }

  .notification-card.activity-card {
    padding: 11px;
  }

  .activity-card .note-head {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: start;
    gap: 7px;
    min-width: 0;
  }

  .activity-card .note-avatar {
    width: 38px;
    height: 38px;
  }

  .activity-card .note-head-mainrow {
    display: flex;
    gap: 4px;
    min-width: 0;
  }

  .activity-card .note-head-tools {
    width: auto;
    min-width: 0;
    max-width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  .activity-card .note-head-tools .meta-id {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .activity-card .notification-state {
    max-width: 100%;
    white-space: normal;
  }

  .activity-card .activity-description {
    overflow-wrap: anywhere;
  }
}
