.container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

/* macOS draws an overlay title bar (`titleBarStyle: "Overlay"`) — the
   top ~38px strip is an OS-owned drag region. Push the toast stack
   below it so toasts never overlap the drag region (which would steal
   window-drag from those pixels) and keep the same 16px breathing room
   the non-mac platforms get from the window edge. 38px matches the
   title-bar clearance hardcoded elsewhere (sidebar/settings headers). */
[data-platform="mac"] .container {
  top: 54px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--selected-bg);
  border: 1px solid var(--divider);
  border-radius: 6px;
  box-shadow: var(--shadow-md);
  font-size: 12px;
  color: var(--text-primary);
  pointer-events: auto;
  animation: toastIn 0.2s ease;
  max-width: 360px;
}

.message {
  flex: 1;
  min-width: 0;
}

.dismiss {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0 2px;
  font-size: 14px;
  line-height: 1;
}

.dismiss:hover {
  color: var(--text-primary);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
