.container {
  position: fixed;
  bottom: calc(var(--status-bar-height, 24px) + 8px);
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  max-width: 360px;
  background: var(--bg-secondary, #252526);
  border: 1px solid var(--border, #3c3c3c);
  border-radius: var(--radius-md, 4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  font-family: var(--font-ui);
  font-size: var(--font-md, 12px);
  color: var(--fg-primary, #cccccc);
  cursor: pointer;
  animation: slideIn 200ms ease-out;
}

.toast[data-level="warn"] {
  border-color: var(--warning, #e5c07b);
}

.toast[data-level="error"] {
  border-color: var(--error, #e06c75);
}

.level {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.level[data-level="info"] {
  background: var(--accent, #61afef);
}

.level[data-level="warn"] {
  background: var(--warning, #e5c07b);
}

.level[data-level="error"] {
  background: var(--error, #e06c75);
}

.title {
  font-weight: 600;
  white-space: nowrap;
}

.message {
  color: var(--fg-secondary, #888888);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action {
  flex-shrink: 0;
  margin-left: auto;
  padding: 2px 8px;
  font-size: var(--font-sm, 11px);
  background: var(--accent, #61afef);
  color: var(--bg-primary, #1e1e1e);
  border: none;
  border-radius: var(--radius-sm, 3px);
  cursor: pointer;
  font-weight: 600;
}

.action:hover {
  opacity: 0.85;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
