.tn-bell { position:relative; }
.tn-count { position:absolute; top:2px; right:0; min-width:16px; height:16px; padding:0 3px; border-radius:16px; background:#671731; color:#fffaf1; font:700 10px/16px var(--sans,Arial,sans-serif); }
.tn-dialog { position:fixed; inset:68px max(10px,1.8vw) auto auto; width:min(360px,calc(100vw - 20px)); max-height:calc(100dvh - 86px); box-sizing:border-box; margin:0; padding:0; border:1px solid #cbbbad; border-radius:17px; color:#412c27; background:#fffbf3; box-shadow:0 12px 38px #32151d30; font:500 14px/1.45 var(--sans,Arial,sans-serif); }
.tn-dialog[open] { display:flex; flex-direction:column; }
.tn-dialog::backdrop { background:#2f172025; }
.tn-dialog header { display:flex; justify-content:space-between; align-items:center; padding:13px 16px 8px; }
.tn-dialog h2 { margin:0; font:500 25px/1.2 var(--serif,Georgia,serif); }
.tn-dialog button { cursor:pointer; font:inherit; }
.tn-dialog [data-tn-close] { color:inherit; border:0; background:transparent; padding:0; height:36px; width:36px; font-size:24px; }
.tn-dialog ul { display:block; list-style:none; padding:0 16px; margin:0 0 8px; min-height:0; overflow-y:auto; overscroll-behavior:contain; }
.tn-dialog li { padding:12px 0; overflow-wrap:anywhere; border-top:1px solid #e5dacf; }
.tn-dialog li p { color:#625148; margin:3px 0; }
.tn-dialog li div { display:flex; flex-wrap:wrap; gap:8px; margin-top:8px; }
.tn-dialog [data-tn-action] { padding:5px 12px; min-height:34px; border-radius:18px; border:1px solid #cdbbae; color:#541624; background:#fffaf0; }
.tn-dialog [data-tn-action=approve] { color:#fffaf2; background:#60182b; border-color:#60182b; }
.tn-dialog button:focus-visible { outline:2px solid #8a593a; outline-offset:2px; }
.tn-dialog output:not(:empty) { padding:4px 16px 12px; }
@media(max-height:400px) { .tn-dialog { top:8px; max-height:calc(100dvh - 16px); } }

.tn-dialog footer { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:8px; padding:10px 16px; border-top:1px solid #e5dacf; }
.tn-dialog footer :is(a,button) { border:0; padding:4px 0; background:transparent; color:#64172e; font:inherit; text-decoration:underline; text-underline-offset:3px; }
