/* Notificações globais Wisdomverse — Django messages */
.wv-flash-stack {
  position: fixed; top: max(1rem, env(safe-area-inset-top)); right: 1rem;
  z-index: 2100; width: min(420px, calc(100vw - 2rem));
  display: flex; flex-direction: column; gap: .75rem;
  pointer-events: none;
}
.wv-flash {
  --wv-notice-color: var(--wv-accent);
  --wv-notice-tint: var(--wv-accent-soft);
  position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) 26px;
  align-items: start; gap: .7rem; margin: 0; padding: 1rem .85rem .95rem;
  border: 1px solid var(--wv-border-strong) !important;
  border-left: 3px solid var(--wv-notice-color) !important;
  border-radius: .85rem; background: var(--wv-surface-raised) !important;
  color: var(--wv-text-primary) !important;
  box-shadow: var(--wv-shadow-raised), 0 5px 20px rgba(0,0,0,.10);
  overflow: hidden; pointer-events: auto;
  animation: wv-flash-in .24s ease-out both;
}
.wv-flash--success { --wv-notice-color: #35c9a1; --wv-notice-tint: rgba(53,201,161,.12); }
.wv-flash--error { --wv-notice-color: #f08080; --wv-notice-tint: rgba(240,128,128,.12); }
.wv-flash--warning { --wv-notice-color: #f2ba62; --wv-notice-tint: rgba(242,186,98,.12); }
.wv-flash__icon {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid color-mix(in srgb, var(--wv-notice-color) 35%, transparent);
  border-radius: .65rem; background: var(--wv-notice-tint); color: var(--wv-notice-color);
  font-size: .92rem;
}
.wv-flash__body { display: flex; flex-direction: column; gap: .19rem; min-width: 0; overflow-wrap: anywhere; }
.wv-flash__eyebrow {
  font: 700 .56rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .09em; color: var(--wv-text-muted);
}
.wv-flash__title { color: var(--wv-text-primary); font-size: .9rem; font-weight: 750; line-height: 1.35; }
.wv-flash__message { color: var(--wv-text-secondary); font-size: .79rem; line-height: 1.48; }
.wv-flash__close {
  display: grid; place-items: center; width: 26px; height: 26px; padding: 0;
  border: 0; border-radius: .4rem; background: transparent; color: var(--wv-text-muted);
  cursor: pointer;
}
.wv-flash__close:hover, .wv-flash__close:focus-visible { background: var(--wv-surface-hover); color: var(--wv-text-primary); }
.wv-flash__close:focus-visible { outline: 2px solid var(--wv-accent); outline-offset: 2px; }
@keyframes wv-flash-in { from { opacity: 0; transform: translate3d(15px,-6px,0); } to { opacity: 1; transform: none; } }
@media (max-width: 575.98px) {
  .wv-flash-stack { top: max(.75rem, env(safe-area-inset-top)); right: .75rem; width: calc(100vw - 1.5rem); }
}
@media (prefers-reduced-motion: reduce) { .wv-flash { animation: none; } }
