:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #203044;
  background: #f3f6fa;
  line-height: 1.55;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #244eb2; }
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 5%;
  background: white;
  border-bottom: 1px solid #d7dfeb;
}
.brand { font-size: 1.3rem; font-weight: 750; text-decoration: none; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
nav form { margin: 0; }
main { max-width: 1040px; margin: 3rem auto; padding: 0 1.25rem; }
h1 { line-height: 1.2; }
.card { background: white; padding: 2rem; border: 1px solid #d7dfeb; border-radius: 1rem; }
.narrow { max-width: 520px; margin: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; }
label { display: block; font-weight: 600; margin-bottom: .4rem; }
input, select { width: 100%; padding: .75rem; border: 1px solid #8996aa; border-radius: .4rem; font: inherit; }
button, .button { display: inline-block; background: #244eb2; color: white; border: 1px solid #244eb2; border-radius: .4rem; padding: .65rem 1rem; font: inherit; cursor: pointer; text-decoration: none; }
.button-secondary { background: white; color: #244eb2; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #a4c3ff; outline-offset: 3px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.5rem; }
dt { font-size: .9rem; color: #53627a; }
dd { margin: .25rem 0 0; font-weight: 650; }
.muted { color: #53627a; font-size: .9rem; }
.errorlist, .error { color: #9d2525; }
.notice { padding: 1rem; border: 1px solid #d7dfeb; border-radius: .4rem; margin-bottom: 1rem; background: white; }
.htmx-indicator { opacity: 0; }
.htmx-request .htmx-indicator, .htmx-request.htmx-indicator { opacity: 1; }
@media (max-width: 600px) { main { margin-top: 1.5rem; } .card { padding: 1.25rem; } }
.management-nav { margin-bottom: 1.5rem; gap: 1.25rem; }
.page-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.search-form { margin: 1rem 0; }
.search-controls { display: flex; align-items: center; gap: .75rem; max-width: 600px; }
.search-controls input { min-width: 0; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: .85rem .65rem; border-bottom: 1px solid #d7dfeb; vertical-align: top; }
th { font-size: .85rem; color: #53627a; }
.badge { display: inline-block; padding: .1rem .5rem; border-radius: 1rem; background: #eaf0fa; font-size: .85rem; }
.pagination { justify-content: space-between; margin-top: 1.5rem; }
.form-card { max-width: 720px; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; }
.secondary-card { margin-top: 1.5rem; }
.helptext { display: block; color: #53627a; font-size: .85rem; }
input[type="checkbox"] { width: auto; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; max-width: 420px; font-size: .8rem; }
textarea { width: 100%; min-height: 5rem; padding: .75rem; border: 1px solid #8996aa; border-radius: .4rem; font: inherit; }
.email-preview { width: 100%; min-height: 450px; border: 1px solid #d7dfeb; background: white; }
.email-text { max-width: none; }
