:root { --bg:#0f1419; --panel:#1a2330; --border:#2a3441; --text:#e6edf3; --muted:#8b949e; --accent:#2f81f7; --ok:#2ea043; --err:#f85149; }
* { box-sizing: border-box; }
body { margin:0; font-family:-apple-system,Segoe UI,Roboto,sans-serif; background:var(--bg); color:var(--text); }
.topbar { display:flex; align-items:center; gap:18px; padding:12px 24px; background:var(--panel); border-bottom:1px solid var(--border); }
.topbar .brand { font-weight:700; }
.topbar a { color:var(--text); text-decoration:none; }
.topbar a:hover { color:var(--accent); }
.spacer { flex:1; }
.container { max-width:1100px; margin:24px auto; padding:0 20px; }
.card { background:var(--panel); border:1px solid var(--border); border-radius:8px; padding:20px; margin-bottom:18px; }
h1,h2,h3 { margin-top:0; }
.muted { color:var(--muted); }
label { display:block; margin:10px 0; }
input, textarea, select { width:100%; padding:8px 10px; background:#0d1117; color:var(--text); border:1px solid var(--border); border-radius:6px; font-family:inherit; font-size:14px; }
textarea { min-height:160px; font-family:Menlo,Consolas,monospace; }
.btn { display:inline-block; padding:8px 14px; border-radius:6px; border:1px solid var(--border); background:#21262d; color:var(--text); cursor:pointer; font-size:14px; text-decoration:none; }
.btn.primary { background:var(--accent); border-color:var(--accent); }
.btn.danger { background:var(--err); border-color:var(--err); }
.btn.ghost { background:transparent; }
.btn:hover { opacity:0.9; }
table { width:100%; border-collapse:collapse; }
th, td { text-align:left; padding:10px; border-bottom:1px solid var(--border); }
th { color:var(--muted); font-weight:500; font-size:13px; }
.alert { padding:10px 14px; border-radius:6px; margin:10px 0; }
.alert.error { background:rgba(248,81,73,0.15); border:1px solid var(--err); }
.alert.ok, .alert.success { background:rgba(46,160,67,0.15); border:1px solid var(--ok); }
.row { display:flex; gap:14px; flex-wrap:wrap; }
.col { flex:1; min-width:200px; }
.grid2 { display:grid; grid-template-columns:repeat(2, 1fr); gap:0 18px; }
@media (max-width:640px) { .grid2 { grid-template-columns:1fr; } }
label.checkbox { display:flex; align-items:center; gap:8px; }
label.checkbox input { width:auto; }
details { margin:8px 0; padding:8px 12px; background:#0d1117; border:1px solid var(--border); border-radius:6px; }
details summary { cursor:pointer; font-weight:500; }
details pre { background:transparent; margin:8px 0 0; white-space:pre-wrap; font-size:13px; color:var(--muted); }
.stat { font-size:28px; font-weight:700; }
.tag { display:inline-block; padding:2px 8px; border-radius:10px; font-size:12px; background:#21262d; }
.tag.sent { background:rgba(46,160,67,0.2); color:#3fb950; }
.tag.sending { background:rgba(47,129,247,0.2); color:#58a6ff; }
.tag.queued { background:rgba(210,153,34,0.2); color:#d29922; }
.tag.failed, .tag.bounced { background:rgba(248,81,73,0.2); color:#ff7b72; }
.tag.draft { background:#21262d; color:var(--muted); }
.right { text-align:right; }
