:root {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #172033;
    background: #f5f7fb;
    line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #143d78; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.topbar { background: #021f4e; color: white; padding: 16px 0; }
.topbar-content { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { color: white; text-decoration: none; font-weight: 700; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
nav a, .link-button { color: white; text-decoration: none; }
.inline { display: inline; }
.link-button, .danger-link { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.link-button { color: white; }
.danger-link { color: #a21b1b; text-decoration: underline; }
main { padding: 32px 0 64px; }
h1, h2 { line-height: 1.2; }
.card { background: white; border: 1px solid #dfe5ef; border-radius: 10px; padding: 24px; margin-bottom: 24px; box-shadow: 0 4px 16px rgba(10, 32, 65, .05); }
.narrow { max-width: 460px; margin: 48px auto; }
.form-card { max-width: 700px; }
.muted { color: #5e6879; }
.page-header, .section-title { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.metric { background: white; border: 1px solid #dfe5ef; border-radius: 10px; padding: 20px; }
.metric strong { display: block; font-size: 2rem; }
.metric span { color: #5e6879; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 650; margin-bottom: 6px; }
.field input, .field select { width: 100%; padding: 11px 12px; border: 1px solid #aeb8c8; border-radius: 6px; font: inherit; }
.checkbox-field { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; margin: 20px 0; }
.button { display: inline-block; border: 0; border-radius: 6px; background: #143d78; color: white; padding: 11px 16px; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; }
.full { width: 100%; }
.error { color: #a21b1b; display: block; margin-top: 4px; font-size: .9rem; }
.alert { padding: 12px 14px; border-radius: 6px; margin-bottom: 16px; }
.alert-success { background: #e8f7ee; border: 1px solid #8ac8a1; }
.alert-error { background: #fff0f0; border: 1px solid #d9a0a0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 10px; border-bottom: 1px solid #e4e8ef; white-space: nowrap; }
th { font-size: .85rem; color: #5e6879; }
.status { display: inline-block; padding: 3px 8px; border-radius: 999px; background: #e8edf5; font-size: .85rem; }
.status-sent { background: #dff4e7; }
.status-dead, .status-cancelled { background: #f5dfdf; }
.status-processing { background: #fff0c9; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 16px; padding-top: 20px; }
@media (max-width: 760px) {
    .topbar-content, .page-header { align-items: flex-start; flex-direction: column; }
    .metrics { grid-template-columns: 1fr; }
}
