/* Singularity Operator Toast Notifications & Live Account Presence */

.sg-toast-Viewport {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 140;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.sg-toast {
  pointer-events: auto;
  position: relative;
  padding: 14px 16px;
  border-radius: 13px;
  background: rgba(20, 21, 25, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.62);
  display: flex;
  align-items: flex-start;
   gap: 12px;
  transform: translateY(14px);
  opacity: 0;
  transition: transform 0.24s var(--ease-out), opacity 0.24s var(--ease-out);
  overflow: hidden;
}

.sg-toast.is-shown {
  transform: translateY(0);
  opacity: 1;
}

.sg-toast::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--red-bright);
}

.sg-toast.is-success::before {
  background: var(--status-ok);
}

.sg-toast-dot {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--red-bright);
  flex-shrink: 0;
}

.sg-toast.is-success .sg-toast-dot {
  background: var(--status-ok);
}

.sg-toast-content {
  flex: 1;
  min-width: 0;
}

.sg-toast-title {
  font-size: 0.87rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.sg-toast-msg {
  margin-top: 3px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.sg-toast-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--red-bright);
}

.sg-toast-link:hover {
  text-decoration: underline;
}

.sg-toast-close {
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1;
  padding: 2px 4px;
  cursor: pointer;
}

.sg-toast-close:hover {
  color: #ffffff;
}

/* Header Signed-In Operator Pill */
.sg-dash-user-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
}

/* Click-to-copy feedback on license keys */
.sg-key-code {
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.sg-key-code:hover {
  border-color: var(--border-hover);
  background: #1d2028;
}
