/* Shared toast surface for every layout and light/dark palette. */
body.hx-site #toastDiv.dtc-toast {
    --toast-accent: var(--hx-accent, #2563eb);
    display: none;
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: calc(20px + env(safe-area-inset-bottom));
    z-index: 10000;
    box-sizing: border-box;
    width: max-content;
    max-width: min(420px, calc(100vw - 32px));
    padding: 14px 18px;
    border: 1px solid var(--hx-border, #cbd5e1);
    border-inline-start: 4px solid var(--toast-accent);
    border-radius: 10px;
    background: var(--hx-surface, #fff);
    color: var(--hx-text, #172033);
    box-shadow: 0 8px 28px rgb(0 0 0 / 22%);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    text-align: start;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
    opacity: 0;
    transform: none;
    transition: none;
}
body.hx-site #toastDiv.dtc-toast.show { display: block; opacity: 1; }
body.hx-site #toastDiv.dtc-toast:is(.error, .danger) { --toast-accent: #dc3545; }
body.hx-site #toastDiv.dtc-toast.warning { --toast-accent: #c48200; }
body.hx-site #toastDiv.dtc-toast.success { --toast-accent: #16845b; }
@media (max-width: 767px) {
    html:is([data-design=minimal], [data-design=console]) body.hx-site #toastDiv.dtc-toast {
        bottom: calc(94px + env(safe-area-inset-bottom));
    }
}