/* Portal flash messages (SkillX v268) — NEW file, not a developer design file.
   The developer CSS files stay byte-identical to the design fingerprint
   manifest, so server-side flash styling lives here instead of in a design
   stylesheet. Loaded by the twenty PHP templates that render flash_html()
   toasts. */
/* FLASH-STRIP-01 (owner order 2026-11-17): the flash is a compact strip, not
   a full-width banner. Slim, centred, with a solid SkillX-green accent bar
   on the left so it reads as a status strip. The 56px right padding leaves
   room for the 44px dismiss button; .flash.no-x (sx-components.css) drops
   it back to 16px when there is no dismiss control. */
/* FLASH-TOAST-01 (owner order 2026-11-17): the flash is a floating toast,
   not an in-flow banner. position:fixed at the top centre, over every other
   element, so it never pushes the page down. JavaScript hides it after
   5 seconds (or sooner via the dismiss button) with the .flash-out fade. */
.flash{position:fixed;top:14px;left:50%;transform:translateX(-50%);z-index:1200;width:min(680px,calc(100vw - 32px));display:flex;align-items:flex-start;gap:10px;margin:0;padding:10px 56px 10px 14px;border-radius:10px;font-size:13.5px;line-height:1.5;background:#eef7e0;border:1px solid #c8e0a8;border-left:4px solid #629126;color:#2c5a1e;box-shadow:0 8px 28px rgba(31,77,42,.22);animation:flashIn .25s ease-out}
.flash.err{background:#fdf0f0;border:1px solid #f0c4c4;border-left:4px solid #c0392b;color:#7a1f1f;box-shadow:0 8px 28px rgba(122,31,31,.22)}
.flash-out{opacity:0 !important;transform:translate(-50%,-8px) !important;transition:opacity .25s ease,transform .25s ease;pointer-events:none}
@keyframes flashIn{from{opacity:0;transform:translate(-50%,-8px)}to{opacity:1;transform:translate(-50%,0)}}
/* FLASH-X-01 (improve-loop cycle 26, 2026-11-18): the dismiss button.
   .flash-x was styled ONLY in sx-site.css, but 13 of the 20 pages that load
   this file do not load sx-site.css, so on those pages the button rendered
   as an unstyled default browser button instead of the designed 44px target
   sitting in the reserved 56px right padding. These rules mirror
   sx-site.css:217-220 and :1750-1758 so the toast is self-contained on every
   page; sx-site.css keeps its copy for the admin pages that render flashes
   without this file. The var() fallbacks keep the rules working on pages
   that do not load sx-tokens.css (same values as the tokens). */
.flash-x{position:absolute;top:50%;right:8px;transform:translateY(-50%);width:44px;height:44px;display:grid;place-items:center;background:none;border:0;padding:0;color:inherit;opacity:.65;cursor:pointer;border-radius:8px;transition:opacity .15s var(--sx-eo, cubic-bezier(.23,1,.32,1)),background .15s var(--sx-eo, cubic-bezier(.23,1,.32,1)),transform .15s var(--sx-eo, cubic-bezier(.23,1,.32,1))}
.flash-x:hover{opacity:1;background:rgba(255,255,255,.08)}
.flash-x:focus-visible{opacity:1;outline:2px solid var(--sx-lime-text, #406607);outline-offset:2px}
.flash-x:active{opacity:1;background:rgba(255,255,255,.12);transform:translateY(-50%) scale(.97)}
/* REDUCED-MOTION-02 (improve-loop cycle 26): the toast slide-in/fade ran at
   full speed for reduced-motion users on pages whose companion stylesheet
   carries no global blanket (notably feed.php in light theme, whose
   sx-feed.css blanket is dark-only). Self-contained here so all 20 pages
   honour the preference regardless of what else they load. */
@media (prefers-reduced-motion: reduce){.flash{animation:none}.flash-out{transition:none}.flash-x{transition:none}.flash-x:active{transform:translateY(-50%)}}
