/* =====================================================================
   Branded confirm dialog (replaces the browser's confirm box)
   ===================================================================== */
dialog.mu-confirm { width: min(420px, calc(100vw - 32px)); padding: 28px 26px 22px; border: 1px solid #3a3f33; border-radius: 24px; background: linear-gradient(160deg, #1d2118, #141513 70%); color: var(--text); box-shadow: 0 40px 100px #000c, 0 0 0 1px #00000040; text-align: center; }
dialog.mu-confirm[open] { animation: mc-in .28s cubic-bezier(.16,1,.3,1); }
dialog.mu-confirm.out { animation: mc-out .16s ease-in forwards; }
dialog.mu-confirm::backdrop { background: #050605b3; backdrop-filter: blur(6px); }
@keyframes mc-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes mc-out { to { opacity: 0; transform: scale(.97); } }
.mc-icon { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 18px; display: grid; place-items: center; background: #c8ff5518; color: var(--lime); box-shadow: inset 0 0 0 1px #c8ff5533; }
.mc-icon .icon { width: 26px; height: 26px; }
.mu-confirm.is-danger .mc-icon { background: #ff8a7a1a; color: var(--danger); box-shadow: inset 0 0 0 1px #ff8a7a40; }
.mu-confirm h2 { margin: 0 0 8px; font-size: 20px; letter-spacing: -.02em; }
.mc-text { margin: 0 0 22px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.mc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mc-actions .button { min-height: 46px; border-radius: 14px; font-size: 14px; }
.mc-danger { background: #e2574a; border-color: #e2574a; color: #fff; }
.mc-danger:hover { background: #ef6a5d; border-color: #ef6a5d; }
@media (prefers-reduced-motion: reduce) { dialog.mu-confirm[open], dialog.mu-confirm.out { animation: none; } }

/* Branded checkboxes & radios (replace native controls) */
input[type=checkbox], input[type=radio] { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; flex-shrink: 0; margin: 0; display: inline-grid; place-items: center; border: 1.5px solid #4a5142; border-radius: 6px; background: #10110f; cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s; vertical-align: middle; }
input[type=radio] { border-radius: 50%; }
input[type=checkbox]::after { content: ""; width: 10px; height: 6px; border: 2.5px solid #10110f; border-top: 0; border-right: 0; transform: rotate(-45deg) scale(0); transform-origin: center; margin-top: -2px; transition: transform .18s cubic-bezier(.16,1,.3,1); }
input[type=radio]::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #10110f; transform: scale(0); transition: transform .18s cubic-bezier(.16,1,.3,1); }
input[type=checkbox]:checked, input[type=radio]:checked { background: var(--lime); border-color: var(--lime); }
input[type=checkbox]:checked::after, input[type=radio]:checked::after { transform: rotate(-45deg) scale(1); }
input[type=radio]:checked::after { transform: scale(1); }
input[type=checkbox]:hover:not(:checked), input[type=radio]:hover:not(:checked) { border-color: var(--lime); }
input[type=checkbox]:focus-visible, input[type=radio]:focus-visible { box-shadow: 0 0 0 3px #c8ff5540; outline: none; }
input[type=checkbox]:disabled, input[type=radio]:disabled { opacity: .45; cursor: not-allowed; }

/* Copy buttons */
[data-copy] { cursor: copy; }
[data-copy].copied { border-color: var(--lime) !important; color: var(--lime) !important; }
