/* Vorlagen löschen */
.td-hidden { display: none !important; }
article.premium-card, .premium-card { position: relative; }
.premium-actions { display: flex; align-items: center; gap: 6px; }
button.td-del { flex: none; width: 38px !important; min-width: 38px; height: 38px !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; display: inline-grid !important; place-items: center; border-radius: 10px !important; border: 1px solid #e3d5d2 !important; background: #fff !important; color: #a23b31 !important; box-shadow: none !important; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
button.td-del:hover, button.td-del:focus-visible { background: #a23b31 !important; border-color: #a23b31 !important; color: #fff !important; }
.td-confirm { position: absolute; inset: 0; z-index: 5; display: grid; align-content: center; gap: 8px; padding: 18px; border-radius: inherit; background: #fffefaf2; backdrop-filter: blur(3px); text-align: center; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; animation: td-in .18s ease; }
.td-confirm b { font-size: 15px; color: #182c3a; }
.td-confirm p { margin: 0; font-size: 12.5px; line-height: 1.45; color: #5d6c72; }
.td-confirm div { display: flex; gap: 8px; justify-content: center; margin-top: 4px; }
.td-confirm button { height: 36px !important; min-height: 0 !important; padding: 0 16px !important; margin: 0 !important; border-radius: 10px !important; font: 700 13px system-ui, -apple-system, "Segoe UI", sans-serif !important; cursor: pointer; box-shadow: none !important; }
.td-confirm .td-yes { border: 0 !important; background: #a23b31 !important; color: #fff !important; }
.td-confirm .td-no { border: 1px solid #d6dde0 !important; background: #fff !important; color: #34474e !important; }
.td-leaving { animation: td-out .26s ease forwards; }
@keyframes td-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes td-out { to { opacity: 0; transform: scale(.96); } }
@media (prefers-reduced-motion: reduce) { .td-confirm, .td-leaving { animation: none; } }

.td-restore-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0; padding: 9px 12px; border-radius: 11px; background: #f6efe6; border: 1px solid #ead9c3; font: 600 12.5px system-ui, -apple-system, "Segoe UI", sans-serif; color: #7a5a35; }
.td-restore-bar button { height: 30px !important; min-height: 0 !important; padding: 0 12px !important; margin: 0 !important; width: auto !important; border-radius: 8px !important; border: 1px solid #d8bf9c !important; background: #fff !important; color: #7a5a35 !important; font: 700 12px system-ui, -apple-system, "Segoe UI", sans-serif !important; cursor: pointer; box-shadow: none !important; }

#tdRestoreDialog { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: 18px; background: #fbfaf7; box-shadow: 0 30px 80px #0b182040; overflow: hidden; flex-direction: column; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; color: #182c3a; }
#tdRestoreDialog[open] { display: flex; }
#tdRestoreDialog::backdrop { background: #0b1820a6; }
#tdRestoreDialog button { font: inherit; cursor: pointer; margin: 0; min-height: 0; box-shadow: none; }
.td-dlg-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 16px 20px; background: linear-gradient(110deg, #182c3a, #1d4a4f); color: #fff; }
.td-dlg-head span { font-size: 10.5px; letter-spacing: .16em; font-weight: 700; color: #e7c9a2; }
.td-dlg-head h2 { margin: 3px 0 0; font-size: 19px; color: #fff; }
#tdRestoreDialog .td-x { width: 34px; height: 34px; border-radius: 9px; border: 1px solid #ffffff40; background: #ffffff1a; color: #fff; padding: 0; }
.td-dlg-list { overflow-y: auto; padding: 12px 20px; display: grid; gap: 8px; }
.td-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 11px; background: #fff; border: 1px solid #e1e7e4; }
.td-row b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#tdRestoreDialog .td-row button { flex: none; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid #b9d0c7; background: #eef5f1; color: #1d5c55; font-weight: 700; font-size: 12.5px; }
.td-empty { margin: 8px 0; color: #66777d; font-size: 13px; }
.td-dlg-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid #e1e7e4; background: #fff; }
#tdRestoreDialog .td-dlg-foot button { height: 38px; padding: 0 16px; border-radius: 10px; border: 1px solid #d6dde0; background: #fff; color: #182c3a; font-weight: 700; }
#tdRestoreDialog .td-dlg-foot .td-done { background: #1d5c55; border-color: #1d5c55; color: #fff; }
