/* Royal Space — Menu de contexto próprio e aviso (toast), nos painéis e
   páginas de autenticação. Mesmo desenho do website (Royal Website/assets/css/menu.css),
   com variante escura (classe .dark do Filament no <html>). */
.rs-ctx {
  --rs-bg: rgba(255, 255, 255, .97);
  --rs-ink: #0e1330;
  --rs-head: #04185a;
  --rs-line: #e4e7f1;
  --rs-blue: #023cc8;
  --rs-yellow: #f5b501;
  --rs-danger: #d92d20;
  --rs-shadow: 0 24px 60px -18px rgba(4, 24, 90, .45), 0 0 0 1px rgba(4, 24, 90, .08);

  position: fixed; z-index: 2147483000; min-width: 250px; max-width: calc(100vw - 16px);
  padding: 8px; border-radius: 18px; background: var(--rs-bg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--rs-shadow);
  font-family: 'Montserrat', 'Inter', system-ui, sans-serif;
  opacity: 0; scale: .96; translate: 0 -4px;
  transition: opacity .16s cubic-bezier(.22, 1, .36, 1), scale .2s cubic-bezier(.22, 1, .36, 1), translate .2s cubic-bezier(.22, 1, .36, 1);
}
.dark .rs-ctx {
  --rs-bg: rgba(20, 24, 38, .97);
  --rs-ink: #e8ebf5;
  --rs-head: #ffffff;
  --rs-line: rgba(255, 255, 255, .1);
  --rs-blue: #7e9dff;
  --rs-danger: #ff8a80;
  --rs-shadow: 0 24px 60px -18px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08);
}
.rs-ctx[hidden] { display: none !important; }
.rs-ctx.is-open { opacity: 1; scale: 1; translate: 0 0; }
.rs-ctx-head { display: flex; align-items: center; gap: 10px; padding: 8px 10px 10px; font-weight: 800; font-size: .82rem; color: var(--rs-head); letter-spacing: .02em; }
.rs-ctx-head img { width: 22px; height: 22px; border-radius: 6px; }
.rs-ctx-item {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 12px;
  font: inherit; font-size: .88rem; font-weight: 600; color: var(--rs-ink); text-align: left;
  background: none; border: 0; cursor: pointer; text-decoration: none; box-sizing: border-box;
}
.rs-ctx-item svg { width: 18px; height: 18px; color: var(--rs-blue); flex: none; }
.rs-ctx-item:hover, .rs-ctx-item:focus-visible { background: #023cc8; color: #fff; outline: none; }
.rs-ctx-item:hover svg, .rs-ctx-item:focus-visible svg { color: var(--rs-yellow); }
.rs-ctx-item.is-danger, .rs-ctx-item.is-danger svg { color: var(--rs-danger); }
.rs-ctx-item.is-danger:hover, .rs-ctx-item.is-danger:focus-visible { background: #d92d20; color: #fff; }
.rs-ctx-item.is-danger:hover svg, .rs-ctx-item.is-danger:focus-visible svg { color: #fff; }
.rs-ctx-sep { height: 1px; margin: 6px 8px; background: var(--rs-line); }

.rs-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 2147483001; translate: -50% 20px;
  padding: 12px 20px; border-radius: 999px; background: #04185a; color: #fff;
  font: 600 .88rem 'Montserrat', 'Inter', system-ui, sans-serif; box-shadow: 0 16px 40px -14px rgba(4, 24, 90, .6);
  opacity: 0; pointer-events: none;
  transition: opacity .25s cubic-bezier(.22, 1, .36, 1), translate .35s cubic-bezier(.22, 1, .36, 1);
}
.rs-toast.is-visible { opacity: 1; translate: -50% 0; }

@media (prefers-reduced-motion: reduce) {
  .rs-ctx, .rs-toast { transition: none; scale: 1; translate: 0 0; }
  .rs-toast { translate: -50% 0; }
}
