* { box-sizing: border-box; }
body {
    font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: #f3f4f6;
    color: #1f2937;
    margin: 0;
    padding: 24px;
    line-height: 1.5;
}
.card {
    max-width: 460px;
    margin: 40px auto;
    background: #fff;
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0,0,0,.08);
}
.wrap {
    max-width: 960px;
    margin: 0 auto;
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0,0,0,.06);
}
h1 { font-size: 22px; margin: 0 0 16px; }
h2 { font-size: 18px; margin: 28px 0 12px; }
label { display: block; margin: 14px 0; font-weight: 600; font-size: 14px; }
input, textarea, select {
    width: 100%;
    padding: 10px 12px;
    margin-top: 6px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 400;
}
textarea { font-family: ui-monospace, Menlo, Consolas, monospace; }
button {
    background: #2563eb;
    color: #fff;
    border: 0;
    padding: 11px 20px;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    margin-top: 8px;
}
button:hover { background: #1d4ed8; }
.alert { padding: 12px 14px; border-radius: 8px; margin: 14px 0; font-size: 14px; }
.alert.ok  { background: #dcfce7; color: #166534; }
.alert.err { background: #fee2e2; color: #991b1b; }
.hint { font-size: 13px; color: #6b7280; }
.topbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; border-bottom: 1px solid #e5e7eb; padding-bottom: 16px; }
nav a { margin-left: 14px; color: #2563eb; text-decoration: none; font-size: 14px; }
nav a:hover { text-decoration: underline; }
.stats { display: flex; gap: 14px; flex-wrap: wrap; margin: 20px 0; }
.stat { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px 20px; flex: 1; min-width: 120px; font-size: 13px; color: #6b7280; }
.stat span { display: block; font-size: 26px; font-weight: 700; color: #111827; }
table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 14px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid #eef0f2; }
th { color: #6b7280; font-size: 12px; text-transform: uppercase; }
.badge { padding: 2px 8px; border-radius: 999px; font-size: 12px; }
.badge.confirmed { background: #dcfce7; color: #166534; }
.badge.pending { background: #fef9c3; color: #854d0e; }
.badge.unsubscribed { background: #fee2e2; color: #991b1b; }
.badge.draft { background: #e5e7eb; color: #374151; }
.badge.queued { background: #dbeafe; color: #1e40af; }
.badge.sending { background: #fef9c3; color: #854d0e; }
.badge.done { background: #dcfce7; color: #166534; }
code { background: #f3f4f6; padding: 2px 6px; border-radius: 4px; font-size: 13px; }
