.notification-page {
  width: min(100%, 1080px);
  margin: 0 auto;
  color: var(--theme-text, #25313d);
}

.service-center-notifications {
  width: 100%;
  max-width: none;
}

.service-notification-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--theme-border, #dce7e3);
  border-radius: 18px;
  background: var(--theme-panel-translucent, rgba(255, 255, 255, 0.9));
  box-shadow: 0 9px 26px var(--theme-shadow, rgba(45, 85, 124, 0.07));
}

.service-notification-heading h2 {
  margin: 0.2rem 0 0.25rem;
  color: var(--theme-text, #25313d);
  font-size: 1.15rem;
  font-weight: 820;
}

.service-notification-heading p {
  margin: 0;
  color: var(--theme-muted, #718396);
  font-size: 0.76rem;
}

.notification-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.45rem 1.55rem;
  border: 1px solid var(--theme-border, #dce7e3);
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 0%, rgba(var(--theme-primary-rgb, 14, 165, 233), 0.13), transparent 18rem),
    var(--theme-panel-translucent, rgba(255, 255, 255, 0.92));
  box-shadow: 0 14px 38px var(--theme-shadow, rgba(45, 85, 124, 0.09));
  backdrop-filter: blur(22px);
}

.notification-kicker {
  color: var(--theme-primary, #0ea5e9);
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.15em;
}

.notification-hero h1 {
  margin: 0.25rem 0 0.35rem;
  color: var(--theme-text, #25313d);
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 820;
  letter-spacing: -0.035em;
}

.notification-hero p {
  max-width: 620px;
  margin: 0;
  color: var(--theme-muted, #718396);
  font-size: 0.9rem;
  line-height: 1.7;
}

.notification-summary {
  display: flex;
  flex: 0 0 auto;
  gap: 0.7rem;
}

.notification-summary > span {
  display: grid;
  min-width: 98px;
  padding: 0.78rem 0.9rem;
  border: 1px solid var(--theme-border, #dce7e3);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.notification-summary small {
  color: var(--theme-muted, #718396);
  font-size: 0.68rem;
}

.notification-summary strong {
  margin-top: 0.12rem;
  color: var(--theme-text, #25313d);
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
}

.notification-summary .is-unread {
  border-color: rgba(var(--theme-primary-rgb, 14, 165, 233), 0.25);
  background: rgba(var(--theme-primary-rgb, 14, 165, 233), 0.08);
}

.notification-summary .is-unread strong {
  color: var(--theme-primary, #0ea5e9);
}

.notification-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 1rem 0 0.78rem;
}

.notification-filters {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.28rem;
  border: 1px solid var(--theme-border, #dce7e3);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.7);
}

.notification-filters a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 0.42rem;
  padding: 0.45rem 0.82rem;
  color: var(--theme-muted, #718396);
  border-radius: 9px;
  font-size: 0.78rem;
  font-weight: 750;
}

.notification-filters a.active {
  color: #fff;
  background: var(--theme-primary, #0ea5e9);
  box-shadow: 0 5px 13px rgba(var(--theme-primary-rgb, 14, 165, 233), 0.22);
}

.notification-filters b {
  min-width: 19px;
  padding: 0.08rem 0.32rem;
  color: var(--theme-primary, #0ea5e9);
  border-radius: 999px;
  background: #fff;
  font-size: 0.61rem;
  text-align: center;
}

.notification-read-all {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 0.42rem;
  padding: 0.5rem 0.8rem;
  color: var(--theme-primary-strong, #0284c7);
  border: 1px solid var(--theme-border, #dce7e3);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  font-weight: 750;
}

.notification-read-all svg {
  width: 17px;
  height: 17px;
}

.notification-list {
  display: grid;
  gap: 0.68rem;
}

.notification-card {
  margin: 0;
}

.notification-card > button {
  position: relative;
  display: grid;
  width: 100%;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.05rem;
  color: inherit;
  border: 1px solid var(--theme-border, #dce7e3);
  border-radius: 17px;
  background: var(--theme-panel-translucent, rgba(255, 255, 255, 0.92));
  box-shadow: 0 7px 22px var(--theme-shadow, rgba(45, 85, 124, 0.07));
  text-align: left;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  backdrop-filter: blur(20px);
}

.notification-card > button:hover {
  border-color: var(--theme-border-strong, #94d9ea);
  box-shadow: 0 12px 30px var(--theme-shadow, rgba(45, 85, 124, 0.12));
  transform: translateY(-1px);
}

.notification-card.is-new > button::before {
  position: absolute;
  top: 1rem;
  left: -4px;
  width: 4px;
  height: calc(100% - 2rem);
  border-radius: 999px;
  background: var(--theme-primary, #0ea5e9);
  content: "";
}

.notification-card.is-read > button {
  box-shadow: none;
  opacity: 0.78;
}

.notification-type-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--theme-primary, #0ea5e9);
  border-radius: 13px;
  background: var(--theme-soft, #e2f6ff);
}

.notification-type-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.notification-card.is-success .notification-type-icon {
  color: #178650;
  background: #eaf8f0;
}

.notification-card.is-warning .notification-type-icon {
  color: #b46508;
  background: #fff4df;
}

.notification-card.is-danger .notification-type-icon {
  color: #d14343;
  background: #fff0f0;
}

.notification-card-copy {
  display: grid;
  min-width: 0;
  gap: 0.3rem;
}

.notification-card-heading {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.notification-card-heading strong {
  color: var(--theme-text, #25313d);
  font-size: 0.91rem;
  font-weight: 800;
}

.notification-card-heading i {
  padding: 0.14rem 0.42rem;
  color: var(--theme-primary-strong, #0284c7);
  border-radius: 999px;
  background: var(--theme-soft, #e2f6ff);
  font-size: 0.59rem;
  font-style: normal;
  font-weight: 800;
}

.notification-card-content {
  overflow: hidden;
  color: var(--theme-muted, #718396);
  font-size: 0.78rem;
  line-height: 1.62;
  text-overflow: ellipsis;
}

.notification-card-meta {
  display: flex;
  align-items: center;
  gap: 0.58rem;
  color: color-mix(in srgb, var(--theme-muted, #718396) 78%, white);
  font-size: 0.66rem;
}

.notification-card-meta em {
  overflow: hidden;
  max-width: 270px;
  padding-left: 0.58rem;
  border-left: 1px solid var(--theme-border, #dce7e3);
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-card-arrow {
  color: var(--theme-muted, #718396);
  font-size: 1.65rem;
  font-weight: 350;
}

.notification-empty,
.notification-state {
  display: grid;
  min-height: 310px;
  padding: 2rem;
  place-items: center;
  align-content: center;
  border: 1px dashed var(--theme-border-strong, #94d9ea);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
  text-align: center;
}

.notification-empty-icon,
.notification-state > span {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 0.75rem;
  place-items: center;
  color: var(--theme-primary, #0ea5e9);
  border-radius: 18px;
  background: var(--theme-soft, #e2f6ff);
}

.notification-empty-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.notification-empty strong,
.notification-state strong {
  color: var(--theme-text, #25313d);
  font-size: 1rem;
}

.notification-empty p,
.notification-state p {
  margin: 0.35rem 0 0;
  color: var(--theme-muted, #718396);
  font-size: 0.78rem;
}

.notification-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.notification-pagination a {
  padding: 0.48rem 0.78rem;
  color: var(--theme-primary-strong, #0284c7);
  border: 1px solid var(--theme-border, #dce7e3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.73rem;
  font-weight: 750;
}

.notification-pagination a.disabled {
  pointer-events: none;
  opacity: 0.4;
}

.notification-pagination span {
  color: var(--theme-muted, #718396);
  font-size: 0.72rem;
}

@media (max-width: 700px) {
  .service-notification-heading {
    align-items: stretch;
    flex-direction: column;
    padding: 0.9rem;
  }

  .notification-hero {
    align-items: stretch;
    flex-direction: column;
    padding: 1.1rem;
  }

  .notification-summary > span {
    flex: 1;
  }

  .notification-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .notification-toolbar form,
  .notification-read-all {
    width: 100%;
  }

  .notification-read-all {
    justify-content: center;
  }

  .notification-card > button {
    grid-template-columns: auto 1fr;
    padding: 0.9rem;
  }

  .notification-type-icon {
    width: 40px;
    height: 40px;
  }

  .notification-card-arrow {
    display: none;
  }

  .notification-card-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }

  .notification-card-meta em {
    max-width: 100%;
    padding-left: 0;
    border-left: 0;
  }
}
