:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #182d41; background: #f8fafb; font-size: 16px; }
* { box-sizing: border-box; letter-spacing: 0; }
[x-cloak], [hidden] { display: none !important; }
body { margin: 0; }
a { color: #103b70; }
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 10px 16px; border: 1px solid #103b70; border-radius: 6px; background: #103b70; color: white; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; }
button:disabled { opacity: .5; cursor: not-allowed; }
button:hover:not(:disabled), .button:hover { filter: brightness(.93); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #2790c2; outline-offset: 3px; }
button.secondary { background: white; color: #103b70; border-color: #bccbd5; }
button.compact { min-height: 36px; padding: 6px 11px; font-size: 14px; }
button.text-button { display: inline; background: none; color: #103b70; border: 0; padding: 0; min-height: 0; text-align: left; }
.icon-button { width: 40px; height: 40px; flex: 0 0 40px; padding: 0; font-size: 26px; border: 0; background: transparent; color: #182d41; }
.staff-header { border-bottom: 1px solid #dce4e9; background: white; padding: max(14px, env(safe-area-inset-top)) 24px 14px; }
.staff-header > a { display: flex; align-items: center; gap: 12px; max-width: 1240px; margin: auto; font-weight: 700; text-decoration: none; }
.staff-header img { object-fit: contain; }
small { display: block; color: #586b7a; font-size: 12px; margin-top: 4px; font-weight: 450; }
main { max-width: 1288px; padding: 28px 24px max(40px, env(safe-area-inset-bottom)); margin: auto; }
h1 { font-size: 28px; margin: 8px 0 0; line-height: 1.2; }
h2 { font-size: 21px; margin: 0; }
h3 { font-size: 17px; margin: 0 0 18px; }
.back { text-decoration: none; font-size: 14px; font-weight: 650; }
.title-row, .actions, .pagination { display: flex; align-items: center; gap: 12px; }
.title-row, .pagination { justify-content: space-between; flex-wrap: wrap; }
.wrap { flex-wrap: wrap; }
.metrics { display: flex; gap: 40px; padding: 24px 0; margin: 20px 0; border-block: 1px solid #dce4e9; }
.metrics dt { color: #586b7a; font-size: 14px; }
.metrics dd { font-size: 26px; font-weight: 700; margin: 6px 0 0; }
.filters { display: flex; align-items: end; gap: 12px; margin: 22px 0; }
.filters > label:first-child { flex: 1; }
label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
input:not([type=checkbox]), select, textarea { display: block; width: 100%; min-width: 0; min-height: 42px; border: 1px solid #aebfca; border-radius: 5px; background: white; color: #182d41; padding: 9px 12px; font: inherit; font-weight: 400; }
textarea { resize: vertical; }
.table-scroll { position: relative; max-width: 100%; overflow-x: auto; border-block: 1px solid #dce4e9; }
table { width: 100%; border-collapse: collapse; background: white; text-align: left; font-size: 14px; }
th { color: #526273; font-weight: 600; white-space: nowrap; background: #f0f4f6; }
th, td { padding: 14px 12px; border-bottom: 1px solid #e6ecef; vertical-align: middle; }
td:first-child { min-width: 210px; max-width: 330px; }
td:nth-child(6) { min-width: 130px; }
.email { overflow-wrap: anywhere; }
.date { min-width: 138px; color: #526273; font-size: 13px; }
.status { display: inline-block; font-size: 13px; font-weight: 650; white-space: nowrap; }
.green { color: #126343; }
.amber { color: #965800; }
.opted-out { color: #882b2b; }
.pagination { margin-top: 18px; font-size: 14px; color: #526273; }
.notice { padding: 12px 14px; border-left: 3px solid #287ba3; background: #edf5fa; line-height: 1.5; overflow-wrap: anywhere; }
.notice.error { border-color: #ae3838; background: #fff0ef; color: #882b2b; }
.muted { color: #586b7a; font-size: 14px; }
.access { padding: 40px 0; }
.access h2 { margin-bottom: 20px; }
.empty { text-align: center; color: #586b7a; padding: 32px; }
dialog { width: min(680px, calc(100% - 24px)); max-height: calc(100dvh - 32px); border: 1px solid #bdccd7; border-radius: 8px; padding: 0; color: #182d41; box-shadow: 0 12px 70px #182d4133; }
dialog::backdrop { background: #15243670; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; border-bottom: 1px solid #dce4e9; }
.dialog-body { padding: 24px; }
form.dialog-body > * + * { margin-top: 20px; }
.account-facts { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px 18px; font-size: 14px; margin: 18px 0 24px; }
.account-facts dt { color: #586b7a; }
.account-facts dd { margin: 0; overflow-wrap: anywhere; }
.history-heading { margin-top: 28px; padding-top: 20px; border-top: 1px solid #dce4e9; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; gap: 5px; padding: 12px 0; border-bottom: 1px solid #e6ecef; font-size: 14px; }
.timeline time { color: #586b7a; font-size: 12px; }
.email-preview { overflow-wrap: anywhere; background: white; border-block: 1px solid #dce4e9; }
.check { display: flex; align-items: start; gap: 12px; font-size: 14px; font-weight: 400; line-height: 1.5; margin-block: 20px; }
input[type=checkbox] { width: 19px; height: 19px; flex: 0 0 19px; margin: 2px 0 0; accent-color: #103b70; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.preferences { max-width: 620px; }
.preferences h1 { margin-bottom: 24px; }
.preferences p { line-height: 1.65; }
@media (max-width: 600px) {
  main { padding: 24px 16px 40px; }
  .staff-header { padding-inline: 16px; }
  .staff-header > a { font-size: 14px; }
  .title-row { align-items: start; }
  .title-row .actions { width: 100%; }
  .metrics { gap: 24px; }
  .filters { flex-wrap: wrap; }
  .filters > label:first-child { flex-basis: 100%; }
  .filters > label:nth-child(2) { flex: 1; }
  .dialog-body { padding: 20px 16px; }
  .account-facts { grid-template-columns: 84px minmax(0,1fr); gap: 10px; }
}
