.tnd-bell-panel {
  position: fixed;
  z-index: 2050;
  width: 420px;
  max-width: calc(100vw - 24px);
  overflow: hidden;
  color: #172033;
  background: #fff;
  border: 1px solid #e5eaf1;
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(30, 46, 76, 0.18);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

.tnd-bell-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px 13px;
  border-bottom: 1px solid #edf0f5;
}

.tnd-bell-heading { display: grid; gap: 3px; }
.tnd-bell-heading strong { font-size: 16px; line-height: 1.4; }
.tnd-bell-subtitle { color: #8a94a6; font-size: 12px; }

.tnd-bell-read-all,
.tnd-bell-action,
.tnd-bell-retry {
  appearance: none;
  border: 0;
  background: transparent;
  color: #2764e7;
  cursor: pointer;
  font: inherit;
}

.tnd-bell-read-all { flex: none; padding: 6px; font-size: 13px; }
.tnd-bell-read-all:disabled { color: #b7bfcc; cursor: default; }

.tnd-bell-body {
  max-height: 560px;
  overflow: auto;
  overscroll-behavior: contain;
}

.tnd-bell-list { display: grid; }
.tnd-bell-item {
  position: relative;
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 10px;
  padding: 14px 17px 13px;
  border-bottom: 1px solid #f0f2f6;
  transition: background 0.16s ease;
}
.tnd-bell-item:last-child { border-bottom: 0; }
.tnd-bell-item:hover { background: #f8faff; }
.tnd-bell-item.is-unread { background: #f5f8ff; }
.tnd-bell-item.is-unread:hover { background: #edf3ff; }

.tnd-bell-marker {
  width: 7px;
  height: 7px;
  margin-top: 7px;
  border-radius: 50%;
  background: #aab2c0;
}
.tnd-bell-marker--important { background: #f59e0b; }
.tnd-bell-marker--urgent { background: #ef4444; }
.tnd-bell-item:not(.is-unread) .tnd-bell-marker { opacity: 0.35; }

.tnd-bell-item-content { min-width: 0; }
.tnd-bell-title {
  overflow: hidden;
  color: #27344b;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tnd-bell-description {
  display: -webkit-box;
  margin-top: 4px;
  overflow: hidden;
  color: #657188;
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.tnd-bell-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  color: #9aa3b2;
  font-size: 11px;
}
.tnd-bell-unread-label { color: #2764e7; font-weight: 700; }
.tnd-bell-actions { display: flex; gap: 14px; margin-top: 9px; }
.tnd-bell-action { padding: 0; font-size: 12px; }
.tnd-bell-action:disabled { color: #aab2c0; cursor: default; }
.tnd-bell-action--primary { font-weight: 700; }

.tnd-bell-state {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-height: 160px;
  padding: 42px 24px;
  color: #8a94a6;
  text-align: center;
}
.tnd-bell-state strong { color: #3b465b; font-size: 14px; }
.tnd-bell-state span { font-size: 12px; }
.tnd-bell-state.is-error strong { color: #d94b4b; }
.tnd-bell-retry { margin-top: 4px; font-size: 13px; }

/* The overdue operation has moved to the admin-only Notification Center. */
.overdue-wrap { display: none !important; }

@media (max-width: 520px) {
  .tnd-bell-panel { width: calc(100vw - 24px); }
  .tnd-bell-body { max-height: min(560px, calc(100vh - 100px)); }
}
