/* Toast notifications about finished generation jobs; see static/notifications.js. */
#notifications {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 30;
  display: grid;
  gap: .75rem;
  max-width: min(26rem, calc(100vw - 2.5rem));
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .8rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font: inherit;
  font-size: .9rem;
}

.toast--ok { border-left-color: var(--accent); }
.toast--error { border-left-color: var(--error); background: var(--error-bg); }
.toast--warn { border-left-color: var(--surface-soft); background: var(--surface-soft); }

/* Compact ghost icon button; overrides the global accent-filled button styles. */
.toast-close {
  flex: none;
  width: auto;
  margin: 0;
  padding: 0 .4rem;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 9px;
  font: inherit;
  font-size: 1rem;
  line-height: 1.25;
  cursor: pointer;
}

.toast-close:hover {
  background: var(--line);
  color: var(--ink);
}

@media (max-width: 760px) {
  #notifications {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
  }
}
