.system-toast-container {
  position: fixed;
  z-index: 10000;
  top: 16px;
  right: 16px;
  display: grid;
  gap: 10px;
  width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}

.system-toast {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 28px;
  align-items: start;
  gap: 10px;
  padding: 13px 12px;
  border: 1px solid;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .18);
  color: #17313a;
  background: #e0f2f1;
  font: 600 13px/1.45 "Segoe UI Variable", Aptos, "Segoe UI", sans-serif;
  pointer-events: auto;
  animation: system-toast-enter .18s ease-out;
}

.system-toast[data-type="success"] {
  border-color: #7bc9b7;
  background: #e0f2f1;
  color: #075e56;
}

.system-toast[data-type="error"] {
  border-color: #f0a2a2;
  background: #fff0f0;
  color: #922b2b;
}

.system-toast[data-type="info"] {
  border-color: #9bc5ee;
  background: #edf6ff;
  color: #174e80;
}

.system-toast-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
}

.system-toast[data-type="success"] .system-toast-icon {
  background: #147d64;
}

.system-toast[data-type="error"] .system-toast-icon {
  background: #bd3434;
}

.system-toast[data-type="info"] .system-toast-icon {
  background: #2269a9;
}

.system-toast-icon svg {
  display: block;
  width: 13px;
  height: 13px;
}

.message.error {
  color: #ff6b6b !important;
}

body.day-mode .message.error {
  color: #b42318 !important;
}

.system-toast-message {
  padding-top: 1px;
  overflow-wrap: anywhere;
}

.system-toast-close {
  width: 26px;
  height: 26px;
  margin: -4px -3px 0 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: currentColor;
  font: inherit;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  opacity: .72;
}

.system-toast-close:hover { background: rgba(0, 0, 0, .06); opacity: 1; }
.system-toast-close:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }

@keyframes system-toast-enter {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .system-toast { animation: none; }
}
