.acha-feedback-toast {
    --toast-accent: #3182f6;
    --toast-surface: #eef6ff;
    --toast-border: #3182f6;
    --toast-title: #26384d;
    --toast-message: #5b6775;
    --toast-action-hover: rgba(49, 130, 246, .08);
    position: fixed;
    left: 50%;
    bottom: 16px;
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 10000;
    width: min(420px, calc(100vw - 32px));
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    column-gap: 12px;
    padding: 11px 8px 11px 12px;
    border: 1px solid var(--toast-border);
    border-radius: 14px;
    background: var(--toast-surface);
    color: var(--toast-message);
    box-shadow: 0 8px 24px rgba(23, 29, 45, .12);
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
    transform: translate(-50%, 0);
}
.acha-feedback-toast[hidden] { display: none; }

.acha-feedback-toast-icon {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--toast-accent);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
}

.acha-feedback-toast-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.acha-feedback-toast-title {
    color: var(--toast-title);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.acha-feedback-toast-message {
    min-width: 0;
    color: var(--toast-message);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.acha-feedback-toast-action {
    min-width: 44px;
    min-height: 44px;
    margin-top: 7px;
    border: 1px solid var(--toast-accent);
    border-radius: 8px;
    background: transparent;
    color: var(--toast-accent);
    padding: 7px 10px;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.acha-feedback-toast-action[hidden] { display: none; }
.acha-feedback-toast-action:hover { background: var(--toast-action-hover); }

.acha-feedback-toast-close {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #6b7684;
    font: inherit;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.acha-feedback-toast-close:hover { background: rgba(23, 29, 45, .06); }

.acha-feedback-toast-action:focus-visible,
.acha-feedback-toast-close:focus-visible {
    outline: 2px solid var(--toast-accent);
    outline-offset: 2px;
}

.acha-feedback-toast[data-tone="success"] {
    --toast-accent: #2eaa55;
    --toast-surface: #effaf2;
    --toast-border: #2eaa55;
    --toast-title: #1f4d2d;
    --toast-message: #4d6b56;
    --toast-action-hover: rgba(46, 170, 85, .08);
}

.acha-feedback-toast[data-tone="warning"] {
    --toast-accent: #eab308;
    --toast-surface: #fffbeb;
    --toast-border: #eab308;
    --toast-title: #5f4500;
    --toast-message: #756434;
    --toast-action-hover: rgba(234, 179, 8, .1);
}

.acha-feedback-toast[data-tone="error"] {
    --toast-accent: #e64b55;
    --toast-surface: #fff1f0;
    --toast-border: #e64b55;
    --toast-title: #6b1f25;
    --toast-message: #7f4247;
    --toast-action-hover: rgba(230, 75, 85, .08);
}

.acha-feedback-toast:not([hidden]) {
    animation: acha-feedback-toast-in 160ms ease-out;
}

@keyframes acha-feedback-toast-in {
    from { opacity: 0; transform: translate(-50%, 8px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .acha-feedback-toast:not([hidden]) { animation: none; }
}
