.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 24px; background: var(--modal-scrim); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: leave-in .18s ease-out; }
.modal[hidden] { display: none; }
.modal-box { width: 560px; max-width: 100%; padding: 0; background: var(--bg); border: 1px solid var(--rule-strong); color: var(--ink); box-shadow: 0 32px 90px rgba(0, 9, 22, .38); animation: leave-up .24s cubic-bezier(.2, .7, .2, 1); }
.modal-box .modal-eyebrow { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0; padding: 12px 14px 12px 40px; color: var(--bg); background-color: var(--ink);
  background-image: linear-gradient(rgba(127, 160, 200, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(127, 160, 200, .16) 1px, transparent 1px); background-size: 20px 20px; background-position: -1px -1px; }
.modal-box .modal-eyebrow::after { content: "\2197"; display: grid; place-items: center; flex: none; width: 30px; height: 30px; border: 1px solid currentColor; background: var(--ink); font-size: 15px; letter-spacing: 0; }
.modal-box h2 { margin: 34px 40px 0; font-weight: 500; font-size: 34px; line-height: 1.12; letter-spacing: -.02em; }
.modal-box p.body { margin: 14px 40px 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.modal-dest { display: flex; align-items: center; gap: 10px; margin: 24px 40px 0; padding: 14px 16px; border-left: 2px solid var(--accent); background: var(--hover-tint); font-family: "JetBrains Mono", monospace; font-size: 13.5px; overflow-wrap: anywhere; }
.modal-dest svg { flex: none; color: var(--accent); }
.modal-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 34px; padding: 18px 40px; border-top: 1px solid var(--rule); }
.modal-actions .btn-solid, .modal-actions .btn-ghost { height: 44px; padding: 0 20px; font-size: 15px; }
@keyframes leave-in { from { opacity: 0; } }
@keyframes leave-up { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .modal, .modal-box { animation: none; } }
