/* Modal */
.modal-backdrop{position:fixed; inset:0; background:rgba(15,23,42,0.55); backdrop-filter: blur(6px) saturate(120%); z-index:40}
.modal{position:fixed; inset:0; display:flex; align-items:center; justify-content:center; z-index:50}
.modal-card{width:min(480px, 92vw); background:#fff; border:1px solid var(--border); border-radius:16px; box-shadow: 0 20px 40px rgba(15,23,42,0.16), var(--shadow); padding:20px}
.modal-card h2{margin:0 0 6px 0; font-size:18px; color:#0f172a}
.modal-card .muted{color:var(--muted); margin:0 0 14px 0}
.modal-actions{display:flex; gap:8px; justify-content:flex-end}
.ghost{background:#ffffff; border:1px solid var(--border); color:#0f172a}
.ghost:hover{background:var(--soft)}

/* Undo-delete toast */
.undo-toast{position:fixed; bottom:100px; left:50%; transform:translateX(-50%); z-index:70; animation:toastIn .25s ease}
.undo-toast-inner{display:flex; align-items:center; gap:12px; background:#1e293b; color:#f1f5f9; padding:12px 16px; border-radius:12px; box-shadow:0 8px 24px rgba(15,23,42,.22); position:relative; overflow:hidden; min-width:240px}
.undo-toast-text{flex:1; font-size:14px; font-weight:500}
.undo-btn{background:transparent; border:none; color:#a78bfa; font-weight:700; font-size:14px; cursor:pointer; padding:4px 8px; border-radius:6px; box-shadow:none; transition:background .15s ease}
.undo-btn:hover{background:rgba(167,139,250,.15); transform:none}
.undo-timer-bar{position:absolute; bottom:0; left:0; height:3px; background:#a78bfa; border-radius:0 0 12px 12px; animation:timerShrink 5s linear forwards}
@keyframes toastIn{from{opacity:0; transform:translateX(-50%) translateY(12px)} to{opacity:1; transform:translateX(-50%) translateY(0)}}
@keyframes timerShrink{from{width:100%} to{width:0%}}

/* Auth overlay */
.auth-overlay{position:fixed; inset:0; background:linear-gradient(180deg, rgba(248,250,252,0.7), rgba(248,250,252,0.9)); display:flex; align-items:center; justify-content:center; z-index:60}
.auth-card{width:min(420px, 92vw); background:#fff; border:1px solid var(--border); border-radius:16px; box-shadow: 0 20px 40px rgba(15,23,42,0.12), var(--shadow); padding:24px; display:flex; flex-direction:column; gap:12px; align-items:center}
.auth-card .brand-mark.big{width:48px; height:48px; border-radius:12px; display:flex; align-items:center; justify-content:center; background:linear-gradient(135deg, #8b5cf6, #22d3ee); color:#fff; font-weight:800}
.auth-error{margin-top:6px; color:#b91c1c; font-size:13px}

/* Settings form */
.settings-body{display:flex; flex-direction:column; gap:12px; margin:10px 0 6px}
.field{display:flex; flex-direction:column; gap:6px}
.field.row{flex-direction:row; align-items:center; gap:10px}
.label{font-weight:600; color:#0f172a}
.label-inline{color:#0f172a}
.textarea{min-height:96px; border:1px solid var(--border); border-radius:12px; padding:10px; font: inherit; color: #0b1220; background:#fff}
.textarea:focus{outline:none; border-color:var(--accent); box-shadow: 0 0 0 3px rgba(124,58,237,.15)}
.select{border:1px solid var(--border); border-radius:10px; padding:8px 10px; background:#fff; color:#0b1220}
.select:focus{outline:none; border-color:var(--accent); box-shadow: 0 0 0 3px rgba(124,58,237,.15)}
