.save-summary-toast {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  top: auto;
  left: auto;
  transform: none;
  z-index: 999999;
  max-width: min(420px, calc(100vw - 2rem));
  pointer-events: none;
}

.save-summary-toast:not([hidden]) {
  pointer-events: auto;
}

.save-summary-toast-inner {
  background: #fff;
  border: 1px solid #dfe1e6;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(9, 30, 66, 0.18);
  overflow: hidden;
}

.save-summary-toast-main {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 0.9rem;
}

.save-summary-toast-icon {
  flex: 0 0 auto;
  color: #22a06b;
  margin-top: 0.1rem;
}

.save-summary-toast-content {
  flex: 1 1 auto;
  min-width: 0;
}

.save-summary-toast-message {
  color: #172b4d;
  font-size: 0.875rem;
  line-height: 1.4;
  word-break: break-word;
}

.save-summary-toast-message strong {
  font-weight: 600;
}

.save-summary-toast-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.45rem;
}

.save-summary-toast-action {
  border: 0;
  background: none;
  color: #0c66e4;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
}

.save-summary-toast-action:hover,
.save-summary-toast-action:focus {
  color: #0055cc;
  text-decoration: underline;
}

.save-summary-toast-action-sep {
  color: #97a0af;
  font-size: 0.75rem;
  user-select: none;
}

.save-summary-toast-close {
  flex: 0 0 auto;
  border: 0;
  background: none;
  color: #626f86;
  font-size: 1.15rem;
  line-height: 1;
  padding: 0 0.15rem;
  cursor: pointer;
}

.save-summary-toast-close:hover,
.save-summary-toast-close:focus {
  color: #172b4d;
}

/* Green success strip — top center (API message) */
.save-success-banner {
  position: fixed;
  top: 4.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20100;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: min(560px, calc(100vw - 2rem));
  padding: 0.65rem 1rem;
  border-radius: 8px;
  background-color: #198754;
  color: #fff;
  box-shadow: 0 4px 16px rgba(25, 135, 84, 0.35);
  pointer-events: auto;
}

.save-success-banner[hidden] {
  display: none !important;
}

.save-success-banner-icon {
  flex: 0 0 auto;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
}

.save-success-banner-message {
  flex: 1 1 auto;
  font-size: 0.9rem;
  line-height: 1.35;
  word-break: break-word;
}

.save-success-banner-close {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  line-height: 1;
  padding: 0 0.15rem;
  cursor: pointer;
}

.save-success-banner-close:hover,
.save-success-banner-close:focus {
  color: #fff;
}
