* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.5 -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #1d2330; background: #f4f6f9; }
a { color: #2457c5; text-decoration: none; }
a:hover { text-decoration: underline; }
header { background: #1d2330; color: #fff; padding: 0 24px; display: flex; align-items: center; gap: 24px; height: 52px; }
header .brand { font-weight: 700; color: #fff; }
header nav a { color: #cfd6e4; margin-right: 16px; }
header nav a.active, header nav a:hover { color: #fff; }
header form { margin-left: auto; }
main { max-width: 1200px; margin: 24px auto; padding: 0 24px; }
h1 { font-size: 22px; margin: 0 0 16px; }
h2 { font-size: 17px; margin: 0 0 12px; }
.card { background: #fff; border-radius: 8px; padding: 18px 20px; margin-bottom: 18px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.grid > .card { margin-bottom: 0; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid #e8ebf0; vertical-align: top; }
th { font-weight: 600; color: #5a6478; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
label { display: block; font-weight: 600; margin: 10px 0 4px; }
label.inline { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; margin-right: 14px; }
input[type=text], input[type=password], input[type=number], input[type=email], input[type=time], input[type=date], select, textarea {
  width: 100%; padding: 7px 9px; border: 1px solid #cdd3dd; border-radius: 6px; font: inherit; background: #fff; }
textarea { min-height: 90px; font-family: Consolas, monospace; font-size: 13px; }
textarea.big { min-height: 300px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1 1 140px; }
button, .btn { display: inline-block; padding: 7px 14px; border: 0; border-radius: 6px; background: #2457c5; color: #fff; font: inherit; cursor: pointer; }
button:hover, .btn:hover { background: #1b47a5; text-decoration: none; }
button.secondary, .btn.secondary { background: #e7ebf2; color: #1d2330; }
button.danger { background: #c93c3c; }
button.warn { background: #d98a1c; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.actions form { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.actions input[type=number] { width: 100px; }
.flash { padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; background: #e4f4e7; color: #20602d; }
.flash.err { background: #fbe4e4; color: #8a2020; }
.muted { color: #7a8396; }
.small { font-size: 12px; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; background: #e7ebf2; }
.badge.running, .badge.sent, .badge.ok { background: #dff3e3; color: #1d6b31; }
.badge.paused, .badge.retry, .badge.reserved { background: #fff1d6; color: #8a5a00; }
.badge.stopped, .badge.failed, .badge.bounce, .badge.invalid { background: #fbe4e4; color: #8a2020; }
.badge.done, .badge.unsub { background: #e3e9f7; color: #2f4a86; }
.stat { font-size: 26px; font-weight: 700; }
.progress { height: 8px; background: #e7ebf2; border-radius: 4px; overflow: hidden; margin: 8px 0; }
.progress > div { height: 100%; background: #2fa152; }
iframe.preview { width: 100%; height: 420px; border: 1px solid #cdd3dd; border-radius: 6px; background: #fff; }
pre { white-space: pre-wrap; background: #f6f7f9; padding: 12px; border-radius: 6px; font-size: 13px; }
.login { max-width: 360px; margin: 80px auto; }
.public { max-width: 520px; margin: 80px auto; text-align: center; }
