.notification-module {
  width: min(100%, 1380px);
  min-width: 0;
  margin: 0 auto;
  color: #22343b;
}

.notification-active .app-stage > .topbar {
  display: none;
}

.notification-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 2px 22px;
}

.notification-kicker {
  margin: 0 0 5px;
  color: #0a746c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.notification-page-head h2,
.notification-mobile-head h2 {
  color: #1a2b32;
  font-size: 30px;
  line-height: 1.18;
}

.notification-page-head > div:first-child > p:last-child {
  margin-top: 8px;
  color: #72828a;
  font-size: 13px;
}

.notification-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
}

.notification-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 230px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid #dce6e4;
  border-radius: 8px;
  background: #fff;
}

.notification-search svg {
  width: 17px;
  height: 17px;
  color: #74868d;
}

.notification-search input {
  width: 100%;
  min-height: 38px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
}

.notification-mobile-head,
.notification-mobile-nav {
  display: none;
}

.notification-source-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.notification-source-card {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 5px 10px;
  min-width: 0;
  min-height: 112px;
  padding: 16px 14px;
  overflow: hidden;
  border: 1px solid #dfe8e7;
  border-radius: 10px;
  background: #fff;
  color: #405159;
  text-align: left;
  box-shadow: 0 4px 14px rgba(34, 55, 61, 0.035);
}

.notification-source-card:hover,
.notification-source-card.active {
  border-color: var(--notification-accent, #16867c);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--notification-accent, #16867c) 10%, transparent);
}

.notification-source-icon,
.notification-item-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--notification-soft, #edf8f6);
  color: var(--notification-accent, #16867c);
}

.notification-source-icon svg,
.notification-item-icon svg {
  width: 20px;
  height: 20px;
}

.notification-source-card > span:nth-child(2) {
  align-self: center;
  overflow: hidden;
  color: #34474f;
  font-size: 13px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-source-card strong {
  grid-column: 1 / -1;
  color: #26383f;
  font-size: 25px;
  line-height: 1;
}

.notification-source-card small {
  grid-column: 1 / -1;
  overflow: hidden;
  color: #7c8b91;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-source-card.all-sources {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 9px;
  text-align: center;
}

.notification-source-card.all-sources strong {
  font-size: 22px;
  letter-spacing: 0.12em;
}

.notification-source-card.all-sources span {
  color: #34474f;
  font-size: 12px;
  font-weight: 750;
}

.notification-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}

.notification-feed-panel,
.notification-overview-card,
.notification-settings-card {
  overflow: hidden;
  border: 1px solid #dfe8e7;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(34, 55, 61, 0.035);
}

.notification-panel-head {
  padding: 16px 16px 0;
  border-bottom: 1px solid #e6eceb;
}

.notification-panel-head h3,
.notification-overview-card h3,
.notification-settings-card h3 {
  color: #26383f;
  font-size: 15px;
}

.notification-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 11px;
}

.notification-tabs button {
  position: relative;
  min-height: 39px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  color: #64757d;
  font-size: 12px;
  font-weight: 720;
}

.notification-tabs button::after {
  position: absolute;
  right: 8px;
  bottom: -1px;
  left: 8px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
  content: "";
}

.notification-tabs button.active {
  color: #087169;
}

.notification-tabs button.active::after {
  background: #16867c;
}

.notification-feed {
  min-height: 560px;
  padding: 0 16px 16px;
}

.notification-date-heading {
  margin: 0 -16px 8px;
  padding: 13px 16px 4px;
  color: #7c8b91;
  font-size: 11px;
  font-weight: 690;
}

.notification-item {
  --notification-accent: #16867c;
  --notification-soft: #edf8f6;
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  min-height: 86px;
  margin-bottom: 8px;
  padding: 13px 13px 13px 16px;
  overflow: hidden;
  border: 1px solid #e1e9e8;
  border-radius: 8px;
  background: #fff;
  color: #34474f;
  cursor: pointer;
}

.notification-item::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--notification-accent);
  content: "";
}

.notification-item:hover {
  border-color: color-mix(in srgb, var(--notification-accent) 42%, #dfe8e7);
  background: #fbfdfd;
}

.notification-item.is-read {
  opacity: 0.72;
}

.notification-item.is-read .notification-unread-dot {
  display: none;
}

.notification-item-body {
  min-width: 0;
}

.notification-item-labels {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.notification-source-label,
.notification-priority-label {
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--notification-soft);
  color: var(--notification-accent);
  font-size: 10px;
  font-weight: 760;
}

.notification-priority-label {
  background: #fff2f2;
  color: #d43b45;
}

.notification-priority-label.reminder {
  background: #edf5ff;
  color: #3474ba;
}

.notification-priority-label.normal {
  background: #f2f5f4;
  color: #67777e;
}

.notification-item-title {
  overflow: hidden;
  color: #26383f;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-item-summary {
  display: flex;
  align-items: center;
  gap: 5px 9px;
  min-width: 0;
  margin-top: 7px;
  color: #77878e;
  font-size: 11px;
}

.notification-item-summary span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-item-actions {
  display: grid;
  justify-items: end;
  gap: 10px;
  min-width: 84px;
}

.notification-unread-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #df313e;
}

.notification-open-link {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 0;
  background: transparent;
  color: #0a746c;
  font-size: 11px;
  font-weight: 760;
  white-space: nowrap;
}

.notification-open-link svg {
  width: 14px;
  height: 14px;
}

.notification-overview-column {
  display: grid;
  gap: 14px;
}

.notification-overview-card,
.notification-settings-card {
  padding: 17px;
}

.notification-read-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 142px;
  height: 142px;
  margin: 18px auto;
  border: 12px solid #dbeae7;
  border-radius: 50%;
  background: #fff;
}

.notification-read-ring.ring-q1 {
  border-top-color: #117d74;
}

.notification-read-ring.ring-q2 {
  border-top-color: #117d74;
  border-right-color: #117d74;
}

.notification-read-ring.ring-q3 {
  border-top-color: #117d74;
  border-right-color: #117d74;
  border-bottom-color: #117d74;
}

.notification-read-ring.is-complete {
  border-color: #117d74;
}

.notification-read-ring > div {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  justify-content: center;
  text-align: center;
}

.notification-read-ring span {
  grid-column: 1 / -1;
  color: #0e766e;
  font-size: 11px;
  font-weight: 760;
}

.notification-read-ring strong {
  color: #26383f;
  font-size: 25px;
}

.notification-read-ring small {
  color: #73838a;
  font-size: 12px;
}

.notification-overview-list {
  margin: 0;
  border: 1px solid #e3eae9;
  border-radius: 8px;
}

.notification-overview-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 39px;
  padding: 0 11px;
  border-bottom: 1px solid #e8eeed;
}

.notification-overview-list > div:last-child {
  border-bottom: 0;
}

.notification-overview-list dt {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #697a81;
  font-size: 11px;
}

.notification-overview-list dt::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--overview-color, #16867c);
  content: "";
}

.notification-overview-list dd {
  margin: 0;
  color: #34474f;
  font-size: 13px;
  font-weight: 760;
}

.notification-settings-card label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  border-bottom: 1px solid #e8eeed;
  color: #4c5e66;
  font-size: 12px;
  cursor: pointer;
}

.notification-settings-card label:last-child {
  border-bottom: 0;
}

.notification-settings-card label span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notification-settings-card label svg {
  width: 17px;
  height: 17px;
  color: #718189;
}

.notification-settings-card input[type="checkbox"] {
  appearance: none;
  position: relative;
  width: 38px;
  height: 22px;
  margin: 0;
  border: 1px solid #cbd8d6;
  border-radius: 999px;
  background: #dfe7e6;
}

.notification-settings-card input[type="checkbox"]::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(25, 45, 50, 0.18);
  content: "";
  transition: transform 0.16s ease;
}

.notification-settings-card input[type="checkbox"]:checked {
  border-color: #16867c;
  background: #16867c;
}

.notification-settings-card input[type="checkbox"]:checked::after {
  transform: translateX(16px);
}

.notification-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  min-height: 420px;
  padding: 30px;
  color: #7b8b91;
  text-align: center;
}

.notification-empty svg {
  width: 42px;
  height: 42px;
  color: #b7cfcb;
}

.notification-empty strong {
  color: #52646c;
  font-size: 14px;
}

.notification-empty span {
  font-size: 11px;
}

.notification-retention {
  padding: 18px 0 4px;
  color: #839198;
  font-size: 11px;
  text-align: center;
}

.notification-loading {
  display: grid;
  place-items: center;
  min-height: 340px;
  color: #72828a;
  font-size: 12px;
}

@media (max-width: 1180px) {
  .notification-source-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .notification-source-card {
    min-height: 96px;
  }

  .notification-workspace {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
}

@media (max-width: 820px) {
  .notification-active .module-sidebar,
  .notification-active .app-stage > .topbar,
  .notification-page-head,
  .notification-overview-column,
  .notification-retention {
    display: none;
  }

  .notification-active .app-stage {
    min-height: 100dvh;
    padding: 0 0 68px;
    background: #f7faf9;
  }

  .notification-module {
    width: 100%;
    min-height: 100dvh;
  }

  .notification-mobile-head {
    position: sticky;
    top: 0;
    z-index: 12;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 60px;
    padding: 0 16px;
    border-bottom: 1px solid #e2e9e8;
    background: rgba(255, 255, 255, 0.97);
  }

  .notification-mobile-head h2 {
    grid-column: 2;
    font-size: 20px;
  }

  .notification-mobile-count {
    grid-column: 2;
    align-self: center;
    justify-self: end;
    margin-right: -34px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #16867c;
    color: #fff;
    font-size: 10px;
    font-weight: 780;
  }

  .notification-mobile-head button {
    grid-column: 3;
    justify-self: end;
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    color: #34474f;
  }

  .notification-mobile-head button svg {
    width: 20px;
    height: 20px;
  }

  .notification-mobile-head + .notification-source-strip.search-open {
    margin-top: 54px;
  }

  .notification-mobile-head .notification-mobile-search-input {
    position: absolute;
    top: 60px;
    right: 10px;
    left: 10px;
    display: flex;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #dce6e4;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(34, 55, 61, 0.12);
  }

  .notification-mobile-search-input input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
  }

  .notification-source-strip {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 12px 10px;
    overflow-x: auto;
    border-bottom: 1px solid #e1e8e7;
    background: #fff;
    scrollbar-width: none;
  }

  .notification-source-strip::-webkit-scrollbar {
    display: none;
  }

  .notification-source-card {
    flex: 0 0 86px;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 4px;
    min-height: 94px;
    padding: 10px 6px;
    border-radius: 8px;
    text-align: center;
    box-shadow: none;
  }

  .notification-source-icon {
    width: 34px;
    height: 34px;
  }

  .notification-source-card > span:nth-child(2) {
    max-width: 100%;
    font-size: 11px;
  }

  .notification-source-card strong {
    grid-column: auto;
    font-size: 20px;
  }

  .notification-source-card small,
  .notification-source-card.all-sources {
    display: none;
  }

  .notification-workspace {
    display: block;
  }

  .notification-feed-panel {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .notification-panel-head {
    padding: 0 10px;
    background: #fff;
  }

  .notification-panel-head h3 {
    display: none;
  }

  .notification-tabs {
    justify-content: space-between;
    margin: 0;
  }

  .notification-tabs button {
    flex: 1;
    min-height: 48px;
    padding: 0 4px;
  }

  .notification-feed {
    min-height: calc(100dvh - 260px);
    padding: 0 8px 12px;
    background: #f7faf9;
  }

  .notification-date-heading {
    margin: 0 -8px 8px;
    padding: 13px 10px 4px;
  }

  .notification-item {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    min-height: 112px;
    padding: 12px 11px 12px 14px;
  }

  .notification-item-icon {
    width: 36px;
    height: 36px;
  }

  .notification-item-title {
    display: -webkit-box;
    line-height: 1.5;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .notification-item-summary {
    display: block;
    line-height: 1.55;
  }

  .notification-item-summary span {
    display: block;
  }

  .notification-item-actions {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    margin-top: -28px;
  }

  .notification-unread-dot {
    position: absolute;
    top: 13px;
    right: 12px;
  }

  .notification-mobile-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: 62px;
    padding: 6px max(4px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(4px, env(safe-area-inset-left));
    border-top: 1px solid #dce5e4;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -5px 18px rgba(34, 55, 61, 0.08);
  }

  .notification-mobile-nav button {
    position: relative;
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 3px;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #63747c;
    font-size: 10px;
  }

  .notification-mobile-nav button svg {
    width: 20px;
    height: 20px;
  }

  .notification-mobile-nav button.active {
    color: #087169;
  }

  .notification-mobile-nav button b {
    position: absolute;
    top: 0;
    left: 54%;
    min-width: 17px;
    padding: 2px 4px;
    border-radius: 999px;
    background: #df313e;
    color: #fff;
    font-size: 8px;
  }
}

@media (max-width: 420px) {
  .notification-item-actions {
    margin-top: -22px;
  }

  .notification-open-link {
    font-size: 10px;
  }
}
