/* hive-toast.css — scoped stylesheet for the shadow-DOM custom element (modal.js). Loaded as raw text at build time (esbuild's `text` loader) and adopted via `adoptedStyleSheets`. `:host` styles the element itself, which *is* the visible toast box; `:host(.error)` etc. switch on a plain class the host element carries (set in JS). */ :host { display: block; pointer-events: auto; cursor: pointer; background: var(--bg-elev); border: 1px solid var(--purple-dim); border-left-width: 3px; box-shadow: 0 4px 20px -6px var(--crust); padding: 0.6em 0.9em; font-size: 0.9em; color: var(--fg); white-space: pre-wrap; opacity: 1; transition: opacity 0.2s ease, transform 0.2s ease; } :host(.out) { opacity: 0; transform: translateX(0.5em); } :host(.error) { border-left-color: var(--red); } :host(.info) { border-left-color: var(--purple-dim); } :host(.ok) { border-left-color: var(--green); }