:root { color: #16243d; background: #f4f7f9; font: 16px/1.5 system-ui, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, input { font: inherit; }
button, .button { min-height: 44px; padding: .65rem 1rem; border: 0; border-radius: .5rem; background: #176a55; color: white; cursor: pointer; }
button.secondary, .button.secondary { background: #e5ecef; color: #16243d; }
button.danger { background: #a22c37; }
button:disabled, input:disabled { cursor: not-allowed; opacity: .65; }
:focus-visible { outline: 3px solid #bd5b00; outline-offset: 3px; }
a { color: #075e88; }
.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 20; background: white; padding: .7rem; }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.boot { min-height: 100vh; display: grid; place-content: center; text-align: center; }
.brand { font-size: 1.6rem; font-weight: 800; letter-spacing: -.04em; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 15rem minmax(0, 1fr); }
.sidebar { background: #16243d; color: white; padding: 1.5rem; }
.sidebar a { display: block; color: #dfeef0; padding: .7rem; border-radius: .4rem; text-decoration: none; }
.sidebar a, dialog nav a { display: block; padding: .7rem; border-radius: .4rem; }
.sidebar a[aria-current="page"] { background: #29415f; color: white; font-weight: 700; }
.main-column { min-width: 0; }
.topbar { min-height: 4.5rem; padding: .75rem 2rem; background: white; display: flex; align-items: center; justify-content: flex-end; gap: 1rem; border-bottom: 1px solid #dce4e8; }
.mobile-menu { display: none; }
.content { max-width: 76rem; padding: 2rem; margin: 0 auto; }
h1 { line-height: 1.15; margin-top: 0; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card, .panel { background: white; border: 1px solid #d8e1e5; border-radius: .7rem; padding: 1.25rem; overflow-wrap: anywhere; }
.panel { margin: 1rem 0; }
.counts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .75rem; }
.count { text-align: center; }
.count strong { display: block; font-size: 1.65rem; }
.status { display: inline-flex; padding: .2rem .55rem; border: 1px solid currentColor; border-radius: 2rem; font-weight: 700; }
.status.accepted, .status.ready, .status.verified, .status.active { color: #176a55; }
.status.failed, .status.bounced, .status.invalid, .status.disabled { color: #a22c37; }
.status.deferred, .status.missing { color: #8b4a00; }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { padding: .75rem; text-align: left; border-bottom: 1px solid #d8e1e5; overflow-wrap: anywhere; }
th { color: #46576a; }
.form { max-width: 36rem; }
.field { margin: 1rem 0; }
label { display: block; font-weight: 700; margin-bottom: .35rem; }
input { width: 100%; min-height: 44px; border: 1px solid #82909e; border-radius: .4rem; padding: .6rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.error { color: #8c1e29; font-weight: 650; }
.muted { color: #586978; }
.skeleton { min-height: 8rem; background: linear-gradient(90deg,#eef2f4,#fff,#eef2f4); background-size: 200% 100%; animation: pulse 1.5s infinite; }
dialog { width: min(34rem, calc(100% - 2rem)); border: 0; border-radius: .7rem; padding: 1.5rem; box-shadow: 0 1rem 3rem #0005; }
dialog::backdrop { background: #101a2bb8; }
.secret { display: block; padding: .8rem; border: 1px solid #82909e; background: #f4f7f9; overflow-wrap: anywhere; user-select: all; }
.email-cards { display: none; }
@keyframes pulse { to { background-position: -200% 0; } }
@media (max-width: 959px) {
  .shell { display: block; }
  .sidebar { display: none; }
  .mobile-menu { display: inline-flex; }
  .topbar { justify-content: space-between; padding: .75rem 1rem; }
  .content { padding: 1.25rem; }
  .counts { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 599px) {
  .cards, .counts { grid-template-columns: 1fr; }
  .email-table { display: none; }
  .email-cards { display: grid; gap: .75rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
