

#job-toast {

  position: absolute;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%);
  z-index: 50;
  width: min(360px, calc(100vw - 32px));
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  padding: 10px 12px 12px;
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--body-text);
}
#job-toast[hidden] { display: none; }
#job-toast[data-kind="error"] { border-left-color: var(--fail); }
#job-toast[data-kind="error"] .job-title { color: var(--fail); }
#job-toast .job-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
#job-toast .job-title { font-weight: 600; color: var(--ink); }
#job-toast button {
  border: 0;
  background: none;
  font-size: 18px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 0 2px;
}
#job-toast .job-detail { margin: 4px 0 8px; color: var(--muted); }
#job-toast .job-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
#job-toast .job-actions[hidden] { display: none; }

#job-toast .job-actions button {
  border: 1px solid var(--border);
  border-radius: var(--pill);
  background: var(--bg);
  color: var(--accent-dark);
  padding: 8px 16px;
  font-size: 12px;
  line-height: normal;
  min-height: 36px;
}
#job-toast .job-actions button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
#job-toast .job-bar {
  height: 4px;
  background: var(--bg-soft);
  border-radius: 2px;
  overflow: hidden;
}
#job-toast .job-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.4s ease;
}
#job-toast[data-kind="running"] .job-bar span {
  animation: job-pulse 1.4s ease-in-out infinite;
}
@keyframes job-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
@media (prefers-reduced-motion: reduce) {
  #job-toast .job-bar span { transition: none; animation: none; }
}
