/* Alerts: pop-up toasts and in-page notices share one look —
   soft tinted card, coloured bar on the left, solid coloured icon, bold title, muted text, × to close. */
.rvr-note {
  --note-bar: #2563eb; --note-bg: #eff6ff; --note-border: #bfdbfe; --note-icon: #2563eb; --note-title: #1e3a8a; --note-text: #334155;
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--note-bg); border: 1px solid var(--note-border); border-left: 5px solid var(--note-bar);
  border-radius: 12px; padding: 12px 14px; color: var(--note-text); font-size: 13px; line-height: 1.45;
}
.rvr-note.success { --note-bar: #22c55e; --note-bg: #effdf4; --note-border: #bbf7d0; --note-icon: #16a34a; --note-title: #14532d; }
.rvr-note.info    { --note-bar: #0ea5e9; --note-bg: #eef8ff; --note-border: #bae6fd; --note-icon: #0284c7; --note-title: #0c4a6e; }
.rvr-note.warning { --note-bar: #f59e0b; --note-bg: #fffbeb; --note-border: #fde68a; --note-icon: #d97706; --note-title: #78350f; }
.rvr-note.danger  { --note-bar: #ef4444; --note-bg: #fef2f2; --note-border: #fecaca; --note-icon: #dc2626; --note-title: #7f1d1d; }
.rvr-note-icon { flex-shrink: 0; width: 20px; height: 20px; color: var(--note-icon); margin-top: 1px; }
.rvr-note-body { flex: 1; min-width: 0; }
.rvr-note-title { font-weight: 700; color: var(--note-title); font-size: 14px; }
.rvr-note-text { color: var(--note-text); font-size: 13px; margin-top: 2px; }
.rvr-note-title + .rvr-note-text { margin-top: 2px; }
.rvr-note-close {
  flex-shrink: 0; border: none; background: transparent; cursor: pointer; padding: 2px; margin: -2px -2px 0 4px;
  color: #64748b; border-radius: 6px; line-height: 0; transition: background .15s, color .15s;
}
.rvr-note-close:hover { background: rgba(15, 23, 42, .06); color: #0f172a; }
.rvr-note-close svg { width: 16px; height: 16px; }

/* Pop-up toasts use the same card, floating top-right. */
.rvr-toast-container .rvr-toast.rvr-note {
  min-width: 320px; max-width: 420px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--note-border); border-left: 5px solid var(--note-bar); background: var(--note-bg);
  box-shadow: 0 12px 28px -8px rgba(15, 23, 42, .18), 0 4px 10px -4px rgba(15, 23, 42, .08);
  cursor: default;
}
.rvr-toast-container .rvr-toast.rvr-note .rvr-toast-title { color: var(--note-title); font-size: 14px; margin: 0; }
.rvr-toast-container .rvr-toast.rvr-note .rvr-toast-msg { color: var(--note-text); font-size: 13px; margin-top: 2px; }
.rvr-toast-container .rvr-toast.rvr-note .rvr-toast-msg:empty { display: none; }
@media (max-width: 520px) { .rvr-toast-container .rvr-toast.rvr-note { min-width: 0; max-width: calc(100vw - 32px); } }

/* Dialogs (UI.alert / confirm / prompt): white card with the coloured left bar and a tinted header. */
.oui-back .oui-box.oui-note {
  display: block; position: relative; padding: 0; overflow: hidden;
  background: #ffffff; border: 1px solid var(--note-border); border-left: 5px solid var(--note-bar); color: inherit;
}
.oui-back .oui-box.oui-note .oui-head { background: var(--note-bg); border-bottom: 1px solid var(--note-border); padding: 16px 44px 14px 18px; margin: 0; }
.oui-back .oui-box.oui-note .oui-title { color: var(--note-title); }
.oui-back .oui-box.oui-note .oui-msg { color: var(--note-text); }
.oui-back .oui-box.oui-note .oui-ic-note { background: transparent; width: auto; height: auto; }
.oui-back .oui-box.oui-note .oui-ic-note .rvr-note-icon { width: 26px; height: 26px; }
.oui-back .oui-box.oui-note > :not(.oui-head):not(.oui-x) { margin-left: 18px; margin-right: 18px; }
.oui-back .oui-box.oui-note .oui-foot { padding: 12px 0 16px; }
.oui-back .oui-box.oui-note .oui-x { position: absolute; top: 12px; right: 12px; margin: 0; }
