/* "Ready for your review" (public/review-alert.js): a calmer cousin of the reminder alarm. A thin accent edge with a
   faint inner glow that breathes slowly, and one card on top. It sits under the reminder alarm (which hides it
   anyway) and under toasts (90). Only opacity and transform move; reduced motion gets a still edge. */
.ralert { --ralert-edge: rgba(124, 92, 224, .55); --ralert-glow: rgba(124, 92, 224, .14); }
:root[data-theme="night"] .ralert { --ralert-edge: rgba(176, 156, 255, .55); --ralert-glow: rgba(176, 156, 255, .12); }

.ralert-glow, .ralert-glow::after { position: fixed; inset: 0; z-index: 86; pointer-events: none; }
.ralert-glow { box-shadow: inset 0 0 0 1.5px var(--ralert-edge); }
.ralert-glow::after { content: ''; box-shadow: inset 0 0 60px 8px var(--ralert-glow); animation: ralert-breathe 6s ease-in-out infinite; }
@keyframes ralert-breathe { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

.ralert-card {
  position: fixed; z-index: 87; left: 0; right: 0; margin: 0 auto;
  top: calc(18px + env(safe-area-inset-top)); width: min(440px, calc(100vw - 32px));
  display: flex; flex-direction: column; gap: 14px; padding: 16px;
  background: var(--card); color: var(--ink); border: 1px solid var(--lilac-line); border-radius: var(--radius);
  box-shadow: 0 24px 50px -30px rgba(29, 26, 22, .5);
  animation: ralert-in .5s var(--ease) both;
}
@keyframes ralert-in { from { opacity: 0; transform: translateY(-10px); } }
.ralert-line { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.ralert-icon { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--lilac); color: var(--lilac-ink); }
.ralert-shot { flex: none; width: 64px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--fill); border: 1px solid var(--line); }
.ralert-words { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.ralert-head { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--lilac-ink); }
.ralert-words b { font-size: 17px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.ralert-when { font-size: 13px; color: var(--ink-3); }
.ralert-words .proof-link { margin-top: 2px; max-width: 100%; }

.ralert-actions { display: flex; gap: 8px; }
.ralert-actions .btn { flex: 1 1 0; justify-content: center; min-width: 0; min-height: 44px; padding: 0 12px; white-space: nowrap; cursor: pointer; }
/* Later is a quiet word, not a third main button. */
.ralert-later { flex: none; min-width: 56px; min-height: 44px; padding: 0 10px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 14px; color: var(--ink-3); cursor: pointer; }
.ralert-later:hover { color: var(--ink); background: var(--fill-2); }
.ralert-card button:focus-visible { outline: 2px solid var(--pen); outline-offset: 2px; }

.review-tag { margin-bottom: 2px; }

@media (prefers-reduced-motion: reduce) {
  .ralert-glow::after { animation: none; opacity: .7; }
  .ralert-card { animation: none; }
}
