[data-job-fill="primary"] {
  --preference-fill: #26C755;
  --preference-ink: #14231a;
}
[data-job-pulse="primary"] {
  --pulse-width: 3px;
  --pulse-opacity: 1;
  --pulse-glow: 5px;
}
[data-job-fill="backup"] {
  --preference-fill: #FFD200;
  --preference-ink: #25200b;
}
[data-job-pulse="backup"] {
  --pulse-width: 1px;
  --pulse-opacity: .45;
  --pulse-glow: 1px;
}
[data-job-fill="selected"] {
  --preference-fill: #2358EB;
  --preference-ink: #fff;
}
[data-job-fill="avoid"] {
  --preference-fill: #581313;
  --preference-ink: #fff;
}
.app-shell .job-collaborator-grid .job-collaborator-button[data-job-fill],
.nurse-drag-preview[data-job-fill] {
  color: var(--preference-ink);
  background-color: var(--preference-fill);
  border-color: var(--preference-fill);
  --glass-pigment: linear-gradient(transparent, transparent);
}
.app-shell.is-dark-mode .job-collaborator-grid .job-collaborator-button.is-selected[data-job-fill] {
  color: var(--preference-ink);
  background-color: var(--preference-fill);
  border-color: var(--preference-fill);
}
.residence-marker[data-job-fill]::before {
  background: var(--preference-fill);
}
.residence-marker.is-selected[data-job-fill]::before {
  box-shadow: 0 0 0 2px #252525;
}
.job-collaborator-button[data-job-pulse] { position: relative; }
:is(.job-collaborator-button, .residence-marker)[data-job-pulse]::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: var(--pulse-width) solid #005aff;
  box-shadow: 0 0 var(--pulse-glow) #005aff;
  pointer-events: none;
  opacity: var(--pulse-opacity);
  animation: job-coverage-pulse 1.5s ease-in-out infinite alternate;
}
.residence-marker[data-job-pulse]::after {
  inset: auto;
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  top: 6px;
  left: 6px;
}
@keyframes job-coverage-pulse {
  from { opacity: .08; }
  to { opacity: var(--pulse-opacity); }
}
@media (prefers-reduced-motion: reduce) {
  [data-job-pulse]::after { animation: none !important; }
}

.job-preference-warning {
  margin: 6px 0;
  background: #ffe5e5;
  color: #652626;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
}
.job-preference-warning p { margin: 0; }
.job-preference-warning p + p { margin-top: 6px; }
.collaborator-residence-map[open] .job-preference-warning {
  position: absolute;
  bottom: 26px;
  left: 8px;
  right: 8px;
  max-height: 25%;
  overflow: auto;
}
