:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #080b10;
  color: #f6f8fb;
  --panel: #111720;
  --panel-2: #171f2b;
  --line: #2a3442;
  --muted: #9aa7b8;
  --accent: #ef7d2b;
  --success: #38c98b;
  --danger: #ff6b6b;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at top right, #18202d 0, #080b10 42%); }
button, input, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.shell { width: min(1440px, calc(100% - 32px)); margin: 0 auto; padding: 40px 0 64px; }
.auth-card { width: min(460px, 100%); margin: 8vh auto 0; padding: 36px; border: 1px solid var(--line); border-radius: 20px; background: rgba(17,23,32,.96); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.brand-mark { display: inline-flex; padding: 7px 10px; border: 2px solid var(--accent); color: var(--accent); font-weight: 900; letter-spacing: .12em; }
.eyebrow { margin: 24px 0 6px; color: var(--accent); font-size: .75rem; font-weight: 800; letter-spacing: .14em; }
h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.05; }
.muted { color: var(--muted); }
form { display: grid; gap: 16px; margin-top: 28px; }
label { display: grid; gap: 7px; color: #cbd3de; font-size: .85rem; font-weight: 700; }
input, select { width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #0b1017; color: #fff; outline: none; }
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(239,125,43,.15); }
button { min-height: 44px; border: 0; border-radius: 10px; padding: 10px 17px; background: var(--accent); color: #121212; font-weight: 850; }
button:disabled { opacity: .45; cursor: not-allowed; }
.secondary { border: 1px solid var(--line); background: transparent; color: #f6f8fb; }
.secondary.accent { border-color: var(--accent); color: var(--accent); }
.error { min-height: 20px; margin: 0; color: var(--danger); }
.dashboard header { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.account { display: flex; align-items: center; gap: 14px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin: 34px 0 18px; }
.stats article { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.stats span { display: block; margin-bottom: 8px; color: var(--muted); font-size: .8rem; }
.stats strong { font-size: 1.5rem; }
.filters { display: grid; grid-template-columns: minmax(220px,2fr) repeat(3,minmax(130px,1fr)) auto auto auto; align-items: end; gap: 12px; margin: 0 0 18px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
table { width: 100%; min-width: 940px; border-collapse: collapse; }
th, td { padding: 15px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
td { font-size: .9rem; }
tbody tr:last-child td { border-bottom: 0; }
.lead-name { display: block; margin-bottom: 4px; font-weight: 800; }
.subtle { display: block; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.pill { display: inline-flex; margin: 0 5px 5px 0; padding: 4px 8px; border-radius: 999px; background: var(--panel-2); color: #dce3ec; font-size: .72rem; }
.pill.delivered { background: rgba(56,201,139,.14); color: var(--success); }
.pill.failed, .pill.dead_letter { background: rgba(255,107,107,.14); color: var(--danger); }
.pill.pending, .pill.processing { background: rgba(239,125,43,.14); color: #ffad70; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 20px; }
.notice { margin-bottom: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-2); color: var(--muted); }
@media (max-width: 1050px) { .filters { grid-template-columns: repeat(2,minmax(0,1fr)); } .search { grid-column: 1/-1; } }
@media (max-width: 640px) { .shell { width: min(100% - 20px, 1440px); padding-top: 20px; } .auth-card { padding: 24px; } .dashboard header { display: block; } .account { margin-top: 18px; } .stats { grid-template-columns: 1fr; } .filters { grid-template-columns: 1fr; } .search { grid-column: auto; } }

