* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #1d1d1f; background: #f6f6f4; }
header { display: flex; gap: 24px; align-items: center; padding: 12px 24px; background: #fff; border-bottom: 1px solid #ddd; flex-wrap: wrap; }
header nav { display: flex; gap: 16px; flex-wrap: wrap; }
a { color: #1a5fb4; }
main { max-width: 1000px; margin: 0 auto; padding: 16px 24px 64px; }
h1 { font-size: 22px; margin: 8px 0 16px; }
h2 { font-size: 17px; margin: 28px 0 8px; }
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #e5e5e5; vertical-align: top; }
th { font-size: 13px; color: #555; font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.card { background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 16px; margin: 12px 0; }
label { display: block; font-weight: 600; margin: 12px 0 4px; }
input[type=text], input[type=email], input[type=password], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; padding: 8px; border: 1px solid #bbb; border-radius: 6px; font: inherit; background: #fff; }
textarea { font-family: ui-monospace, Consolas, monospace; font-size: 13px; min-height: 320px; }
button, .button { display: inline-block; padding: 8px 14px; border: 1px solid #1a5fb4; border-radius: 6px; background: #1a5fb4; color: #fff; font: inherit; cursor: pointer; text-decoration: none; }
button.secondary, .button.secondary { background: #fff; color: #1a5fb4; }
button.danger { background: #b42318; border-color: #b42318; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.row > * { flex: 1 1 200px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.flash { padding: 10px 12px; border-radius: 6px; }
.flash.ok { background: #e5f4e4; }
.flash.error { background: #fbebeb; }
.flash.warn { background: #f9eeda; }
.muted { color: #666; font-size: 13px; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; background: #eee; }
.s-active, .s-sent { background: #e5f4e4; }
.s-sending, .s-scheduled { background: #e7f1fb; }
.s-held, .s-paused, .s-draft { background: #f9eeda; }
.s-unsubscribed, .s-cancelled { background: #f0efec; }
.s-bounced, .s-complained { background: #fbebeb; }
iframe.preview { width: 100%; height: 600px; border: 1px solid #ccc; border-radius: 6px; background: #fff; }
.stats { display: flex; gap: 12px; flex-wrap: wrap; }
.stats div { background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 10px 14px; min-width: 120px; }
.stats b { display: block; font-size: 20px; }
.pager { display: flex; gap: 12px; margin: 12px 0; }
