.notification-popover-item + .notification-popover-item,
.notification-row + .notification-row {
  border-top: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
}

.notification-popover-item {
  border-bottom: 0;
}

.notification-row {
  border-bottom: 0;
}

.notification-popover-item > span,
.notification-row-icon {
  --notification-color: var(--accent);
  background: color-mix(in srgb, var(--notification-color) 12%, var(--surface));
  color: var(--notification-color);
  border: 1px solid color-mix(in srgb, var(--notification-color) 16%, transparent);
}

.notification-popover-item.type-partner_proposal > span,
.notification-row.type-partner_proposal .notification-row-icon {
  --notification-color: #7c5cff;
}

.notification-popover-item.type-proposal_approved > span,
.notification-row.type-proposal_approved .notification-row-icon,
.notification-popover-item.type-job_delivered > span,
.notification-row.type-job_delivered .notification-row-icon {
  --notification-color: var(--green);
}

.notification-popover-item.type-proposal_rejected > span,
.notification-row.type-proposal_rejected .notification-row-icon {
  --notification-color: var(--red);
}

.notification-popover-item.type-job_created > span,
.notification-row.type-job_created .notification-row-icon {
  --notification-color: #2f8cff;
}

.notification-popover-item.type-job_transition > span,
.notification-row.type-job_transition .notification-row-icon {
  --notification-color: #16a6a1;
}

.notification-popover-item.type-job_revision > span,
.notification-row.type-job_revision .notification-row-icon {
  --notification-color: var(--orange);
}

.notification-popover-item > span svg,
.notification-row-icon svg {
  stroke: currentColor;
  stroke-width: 2;
}

[data-theme="dark"] .notification-popover-item + .notification-popover-item,
[data-theme="dark"] .notification-row + .notification-row {
  border-top-color: color-mix(in srgb, var(--border) 92%, transparent);
}

.notification-row > label {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 9px;
  cursor: pointer;
  transition: background-color .18s ease;
}

.notification-row > label:hover {
  background: var(--accent-soft);
}

.notification-row > label input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.notification-row > label span {
  position: relative;
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: none;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.notification-row > label input:checked + span {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 4px 10px var(--accent-soft);
}

.notification-row > label input:checked + span::after {
  content: "";
  width: 5px;
  height: 9px;
  margin-top: -2px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.notification-row > label input:focus-visible + span {
  outline: 3px solid var(--accent-soft);
  outline-offset: 2px;
}

.notification-row.type-task_assigned .notification-row-icon,
.notification-popover-item.type-task_assigned > span{color:#4f6bff;background:rgba(79,107,255,.12)}
.notification-row.type-task_unassigned .notification-row-icon,
.notification-popover-item.type-task_unassigned > span{color:#f59e0b;background:rgba(245,158,11,.13)}
