/* Shared Solid Toast presentation. Never copy these rules into page styles. */
.app-toast-fallback {margin:16px 0;padding:14px;border:1px solid #d2c0df;background:#fffefa;color:#302345;overflow-wrap:anywhere;}
[data-app-toast-message][hidden] {display:none !important;}
.app-toast-stack {
    display:flex;
    flex-direction:column-reverse;
    gap:12px;
    width:min(380px, calc(100vw - 32px));
    max-height:calc(100dvh - 48px);
    overflow-y:auto;
    overflow-x:hidden;
    padding:0 6px 6px 0;
    box-sizing:border-box;
    overscroll-behavior:contain;
}
/* Flow layout keeps long messages and resizes aligned, without cached heights. */
.app-toast-stack > div {z-index:9999;}.app-toast-stack > div > * {pointer-events:auto;}
.app-toast-stack > div {
    position:relative !important;
    margin:0 !important;
    flex-shrink:0;
}
.app-toast-card {
    --toast-accent:#568064;
    --toast-tint:#edf5ee;
    position:relative;
    display:flex;
    align-items:flex-start;
    gap:12px;
    width:100%;
    min-width:0;
    box-sizing:border-box;
    padding:17px 12px 20px 16px;
    background:#fffefa;
    color:#302345;
    border:1px solid #d2c0df;
    border-left:3px solid var(--toast-accent);
    box-shadow:4px 4px #d6c4e7;
    font:13px/1.5 system-ui,sans-serif;
    text-align:left;
    overflow-wrap:anywhere;
    pointer-events:auto;
    animation:app-toast-enter .18s ease-out;
}
.app-toast-card[data-type="error"] {--toast-accent:#af4660;--toast-tint:#fbedef;}
.app-toast-card[data-type="warning"] {--toast-accent:#98672c;--toast-tint:#fff3e0;}
.app-toast-card[data-type="info"],.app-toast-card[data-type="loading"] {--toast-accent:#7951a0;--toast-tint:#f0e7f9;}
.app-toast-symbol {
    display:grid;
    place-items:center;
    flex-shrink:0;
    width:28px;
    height:28px;
    box-sizing:border-box;
    color:var(--toast-accent);
    background:var(--toast-tint);
    border:1px solid color-mix(in srgb,var(--toast-accent) 35%,white);
    font:bold 16px ui-monospace,monospace;
}
.app-toast-copy {flex:1;min-width:0;}
.app-toast-copy strong {display:block;font-size:13px;font-weight:650;line-height:1.5;color:#302345;}
.app-toast-copy p {margin:4px 0 0;color:#786887;font-size:12px;line-height:1.6;white-space:pre-line;}
.app-toast-dismiss {
    display:grid;
    place-items:center;
    flex-shrink:0;
    min-width:44px;
    min-height:44px;
    margin:-10px -6px -6px 0;
    padding:0;
    border:0;
    background:transparent;
    color:#786887;
    font:24px/1 system-ui,sans-serif;
    cursor:pointer;
}
.app-toast-dismiss:hover {background:#f1e9f7;}
.app-toast-dismiss:focus-visible {outline:2px solid #7951a0;outline-offset:-3px;}
.app-toast-timer {position:absolute;bottom:0;left:0;right:0;height:3px;background:var(--toast-tint);pointer-events:none;}
.app-toast-timer[hidden] {display:none;}
.app-toast-timer-fill {display:block;height:100%;background:var(--toast-accent);transform-origin:right;}
.app-toast-spinner {animation:app-toast-pulse 1s ease-in-out infinite;}
@keyframes app-toast-enter {from{opacity:0;translate:0 -8px;}to{opacity:1;translate:0 0;}}
@keyframes app-toast-pulse {50%{opacity:.4;}}
@media(max-width:700px) {
    .app-toast-stack {top:max(12px,env(safe-area-inset-top)) !important;right:16px !important;max-height:calc(100dvh - 32px);}
}
@media(prefers-reduced-motion:reduce) {
    .app-toast-card,.app-toast-spinner {animation:none;}
    .app-toast-stack > div {transition:none !important;}
}
