:root{color-scheme:dark;font-family:Inter,system-ui,sans-serif;background:#0f172a;color:#f8fafc;line-height:1.5}
*{box-sizing:border-box}
body{margin:0}
[hidden]{display:none!important}
.wrap{width:min(100% - 2rem,68rem);margin-inline:auto}
.top{border-bottom:1px solid #334155}
.bar,.heading,.section-title,.actions{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.bar{min-height:4.25rem}
.brand{display:flex;align-items:center;gap:.45rem;color:inherit;text-decoration:none;font-weight:600}
.brand strong{font-size:1.2rem;color:#f8fafc}
.brand small{color:#aebdd0;font-weight:500}
main{padding-block:clamp(2rem,7vw,4rem)}
h1,h2,p{margin:0}
h1{font-size:clamp(1.85rem,5vw,2.75rem);line-height:1.15}
h2{font-size:1.125rem}
p,dt,time{color:#aebdd0}
.heading p,.section-title p{margin-top:.5rem}
.heading{margin-bottom:1.5rem}
.panel{background:#1e293b;border:1px solid #334155;border-radius:.75rem;padding:1rem}
.connect{display:grid;gap:.7rem;max-width:28rem;padding:1.35rem}
label{font-weight:650}
input,button{font:inherit;border-radius:.5rem;min-height:2.75rem;padding:.5rem .75rem}
input{width:100%;background:#0f172a;color:inherit;border:1px solid #64748b}
button{background:#14b8a6;border:1px solid transparent;color:#0f172a;font-weight:700;cursor:pointer}
button.secondary{background:#1e293b;border-color:#64748b;color:#f8fafc}
button:disabled{opacity:.65;cursor:wait}
:focus-visible{outline:2px solid #5eead4;outline-offset:3px}
.notice{margin-bottom:1rem;background:#1e293b;border:1px solid #64748b;padding:.75rem;border-radius:.5rem;color:#f8fafc}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;margin:1rem 0 1.25rem}
dd{font-size:1.6rem;margin:.25rem 0 0;font-weight:700;font-variant-numeric:tabular-nums}
.activity h2{margin-bottom:.5rem}
.senders{margin-bottom:1rem}
.senders li{grid-template-columns:minmax(0,1fr) auto}
.senders dl{grid-column:1/-1;display:grid;grid-template-columns:auto minmax(0,1fr);gap:.3rem .8rem;margin:0}
.senders dd{font:inherit;margin:0}
ul{list-style:none;padding:0;margin:0}
li{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:1rem;padding:.7rem 0;border-top:1px solid #334155}
code{overflow-wrap:anywhere;color:#e2e8f0}
.message-link{justify-self:start;overflow-wrap:anywhere;text-align:left;padding:.25rem 0;background:none;color:#5eead4;font-family:monospace;font-weight:500}
.message-link:hover{text-decoration:underline}
dialog{width:min(34rem,calc(100% - 2rem));max-height:calc(100% - 2rem);color:#f8fafc;background:#1e293b;border:1px solid #64748b;border-radius:.75rem;padding:1.25rem}
dialog::backdrop{background:#020617cc}
dialog code,dialog p{display:block;margin-top:.65rem}
#timeline{margin-bottom:0;padding:0;list-style:none}
#timeline li{grid-template-columns:minmax(0,1fr) auto}
#timeline span{text-transform:capitalize}
.badge{padding:.2rem .5rem;border:1px solid #64748b;border-radius:.4rem;font-size:.875rem;text-transform:capitalize}
.badge[data-state="delivered"],.badge[data-state="accepted"]{color:#6ee7b7}
.badge[data-state="bounced"],.badge[data-state="failed"],.badge[data-state="rejected"]{color:#fda4af}
.badge[data-state="unknown"],.badge[data-state="deferred"],.badge[data-state="complained"]{color:#fcd34d}
@media(max-width:38rem){.heading,.section-title{align-items:flex-start;flex-direction:column}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}li{grid-template-columns:minmax(0,1fr) auto;gap:.25rem .65rem}time{grid-column:1/-1}}
.channel-nav{flex-wrap:wrap;justify-content:flex-end}.channel-nav a{color:#5eead4}
.notification-actions{justify-content:flex-start;flex-wrap:wrap;gap:.5rem;margin-top:.6rem}
.notification-actions:not(:has(button:not([hidden]))){margin-top:0}
