/* js/shared/undo-toast.js's #sx-undo toast (2026-11-10) -- shared across every
   page that calls window.ascentUndoToast(): guided-setup.js's voice-sample
   removal (Ascent_Dashboard.html) and Ascent_Onboarding.html's "Add all of
   <county>" undo. Had no styling anywhere in the repo until now -- the toast
   element rendered, unstyled, wherever the JS was already calling it. Matches
   the house fixed-bottom-right toast pattern already used elsewhere (see
   .lw-toast in listings-workspace.css, .tc-toast in
   riley-transaction-coordinator.css) rather than inventing a new one. */
.sx-undo {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9500;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(420px, calc(100vw - 48px));
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
  padding: 11px 10px 11px 16px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 35px rgba(0, 0, 0, .22);
}
.sx-undo[hidden] { display: none; }
.sx-undo-msg { line-height: 1.4; }
.sx-undo-btn {
  flex: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #ffb199;
  font-weight: 700;
  font-size: 14px;
  padding: 2px 4px;
}
.sx-undo-btn:hover { text-decoration: underline; }
.sx-undo-x {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: #9aa0aa;
  padding: 4px;
  border-radius: 6px;
}
.sx-undo-x:hover { color: #fff; background: rgba(255, 255, 255, .1); }
@media (max-width: 520px) {
  .sx-undo { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}
