.success-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1080;
    display: flex;
    align-items: center;
    gap: 16px;
    width: max-content;
    max-width: min(480px, calc(100vw - 32px));
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #16a34a;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    color: #172033;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
}

.success-toast[hidden] { display: none; }

.success-toast__icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #16a34a;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.success-toast__message {
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: pre-line;
}

.success-toast__close {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #94a3b8;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.success-toast__close:focus-visible {
    outline: 2px solid #172033;
    outline-offset: 2px;
    border-radius: 4px;
}

@media (max-width: 575px) {
    .success-toast { top: 16px; right: 16px; gap: 12px; }
}
