.notification-center {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.notification-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--kuc-border, #d8dee9);
  border-radius: 8px;
  background: var(--kuc-bg, #fff);
  color: var(--kuc-text, #25324d);
  cursor: pointer;
}

.notification-button:hover,
.notification-button:focus-visible {
  border-color: var(--kuc-primary, #1e88e5);
  box-shadow: 0 0 0 3px rgb(30 136 229 / 14%);
  outline: none;
}

.notification-button.is-unread {
  color: var(--kuc-danger, #d93025);
}

.notification-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 9px;
  height: 9px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #d93025;
}

.notification-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  width: min(360px, calc(100vw - 32px));
  max-height: min(560px, calc(100vh - 120px));
  overflow: hidden;
  border: 1px solid var(--kuc-border, #d8dee9);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 40px rgb(37 50 77 / 18%);
}

.notification-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--kuc-border, #d8dee9);
}

.notification-list {
  max-height: 470px;
  overflow: auto;
}

.notification-item {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--kuc-border-subtle, #edf1f7);
}

.notification-item:last-child {
  border-bottom: 0;
}

.notification-item.is-unread {
  background: #fff8f2;
}

.notification-item-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.notification-title {
  font-weight: 700;
  line-height: 1.45;
}

.notification-body {
  margin: 0;
  color: var(--kuc-text-muted, #5f6b7a);
  line-height: 1.6;
  white-space: pre-wrap;
}

.notification-empty {
  padding: 28px 16px;
  color: var(--kuc-text-muted, #5f6b7a);
  text-align: center;
}

@media (max-width: 720px) {
  .notification-center {
    order: -1;
  }

  .notification-popover {
    position: fixed;
    top: 64px;
    right: 12px;
    left: 12px;
    width: auto;
  }
}
