.stack-top--notify h1 {
  flex: 1;
  min-width: 0;
}

.notify-read-all {
  flex-shrink: 0;
  padding: 8px 12px;
  border: none;
  border-radius: 999px;
  background: var(--surface-section);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-family-base);
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  cursor: pointer;
  transition:
    transform 0.15s ease,
    background 0.15s ease;
}

.notify-read-all:active {
  transform: scale(0.96);
}

.notify-read-all:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.notify-group {
  margin-bottom: 20px;
}

.notify-group-title {
  margin: 0 0 10px;
  padding: 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.notify-groups {
  display: block;
}

.notify-group .notify-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notify-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  background: var(--surface-card);
  font-family: var(--font-family-base);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.15s ease;
}

.notify-item:active {
  transform: scale(0.99);
}

.notify-item.is-unread {
  border-color: rgba(217, 255, 0, 0.22);
  background: rgba(217, 255, 0, 0.04);
}

.notify-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.notify-icon--workout {
  background: var(--brand-muted);
  color: var(--brand);
}

.notify-icon--streak {
  background: rgba(217, 255, 0, 0.12);
  color: var(--brand);
}

.notify-icon--water {
  background: rgba(96, 165, 250, 0.15);
  color: #60a5fa;
}

.notify-icon--plan {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
}

.notify-icon--badge {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

.notify-body {
  flex: 1;
  min-width: 0;
}

.notify-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.notify-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
}

.notify-time {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.notify-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.notify-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 8px rgba(217, 255, 0, 0.5);
}

.notify-empty {
  margin: 40px 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}
