
/* Toasts: one solid, readable card in every theme. The old glass and moving-gradient layers let the wall or the red border
   show through the whole card (pink body, grey text). Colours live in three tokens per kind so tools/contrast-report.cjs can check them. */
#toast-container .toast-item.warn { --t-bg:#1f2129; --t-fg:#f5f6f9; --t-ac:#ffcc66; }
#toast-container .toast-item.error { --t-bg:#241a1d; --t-fg:#fff3f3; --t-ac:#ff8f8f; }
#toast-container .toast-item.success { --t-bg:#14231b; --t-fg:#f0fff6; --t-ac:#6fdc9a; }
#toast-container .toast-item.info { --t-bg:#171f2b; --t-fg:#f1f6ff; --t-ac:#86bdff; }
:root[data-theme="light"] #toast-container .toast-item.warn { --t-bg:#fffaf0; --t-fg:#1c1a14; --t-ac:#8a5a00; }
:root[data-theme="light"] #toast-container .toast-item.error { --t-bg:#fff5f5; --t-fg:#2a1214; --t-ac:#b42323; }
:root[data-theme="light"] #toast-container .toast-item.success { --t-bg:#f3fbf6; --t-fg:#10241a; --t-ac:#16703d; }
:root[data-theme="light"] #toast-container .toast-item.info { --t-bg:#f3f8ff; --t-fg:#101c2e; --t-ac:#1b57b0; }
:root #toast-container .toast-item {
  background: var(--t-bg) !important; color: var(--t-fg) !important; border: 1px solid color-mix(in srgb, var(--t-ac) 55%, var(--t-bg)) !important;
  border-inline-start: 4px solid var(--t-ac) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.35) !important; padding: 8px 8px 10px 10px; gap: 10px; font-size: 13px; font-weight: 600; line-height: 1.4;
  max-width: min(420px, 92vw); border-radius: 12px;
}
#toast-container .toast-item::before, #toast-container .toast-item::after { content: none !important; display: none !important; animation: none !important; }
#toast-container .toast-tx { color: var(--t-fg) !important; }
#toast-container .toast-ic { background: color-mix(in srgb, var(--t-ac) 22%, var(--t-bg)) !important; color: var(--t-ac) !important; }
#toast-container .toast-ic svg { fill: currentColor; }
#toast-container .toast-x { opacity: 1 !important; color: var(--t-fg) !important; background: color-mix(in srgb, var(--t-fg) 12%, var(--t-bg)) !important; width: 24px; height: 24px; font-size: 12px; border-radius: 8px; border: 0; }
#toast-container .toast-x:hover, #toast-container .toast-x:focus-visible { background: color-mix(in srgb, var(--t-fg) 24%, var(--t-bg)) !important; outline: 2px solid var(--t-ac); outline-offset: 1px; }
#toast-container .toast-bar { background: var(--t-ac) !important; inset-inline: 0; left: auto; width: auto; inset-inline-start: 0; inset-inline-end: 0; height: 3px; opacity: .9; }
:root[dir="rtl"] #toast-container .toast-bar { transform-origin: right; }
#toast-container .toast-item.out { opacity: 0; }
@media (prefers-reduced-motion: reduce) { #toast-container .toast-item, #toast-container .toast-bar { animation: none !important; transition: none !important; } }
