/* Kevin by Brockadale Advisory: Brockadale blue background, light content sheet. WCAG 2.2 AA. */
[hidden] { display: none !important; }
:root {
  /* Kevin by Brockadale Advisory: Brockadale Blue #2F6FC0 (background), Deep Blue #245CA6, Brockadale Navy #0F2A44, Mist #F6F8FA */
  --brand-blue: #2F6FC0; --brand-blue-deep: #245CA6; --navy: #0F2A44;
  --ocean: #0F2A44; --teal: #2F6FC0; --teal-text: #245CA6; --slate: #4A5B6C; --cloud: #F6F8FA; --sand: #EEF2F7;
  --bg: #F6F8FA; --surface: #FFFFFF; --sunken: #EDF2F8; --border: #DDE3EA; --text: #1A2B3C; --muted: #4A5B6C; --heading: #0F2A44;
  --side: #2F6FC0; --side-raised: rgba(255,255,255,.14); --side-border: rgba(255,255,255,.28); --side-text: #FFFFFF; --side-muted: #E3ECF8; --on-dark: #FFFFFF;
  --accent: #245CA6; --accent-hover: #1B4A87; --accent-text: #245CA6; --accent-soft: #E8F0FA;
  --warn: #8A4B10; --warn-soft: #F7E7CF; --info: #1F5A7A; --info-soft: #E3EEF4; --danger: #9B2C2C; --danger-soft: #F6E1DC; --neutral-soft: #EDE9DF;
  --r-sm: 10px; --r: 14px; --r-lg: 20px; --pill: 999px;
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --font-head: Manrope, Inter, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.55; }
a { color: var(--accent-text); font-weight: 600; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.015em; font-family: var(--font-head); color: var(--heading); }
h1 { font-size: 32px; line-height: 1.15; font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: 18px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 700; }
p { margin: 0; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.eyebrow { font-family: var(--font); font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.app { display: flex; flex-wrap: wrap; min-height: 100vh; }
.sidebar { flex: 1 1 260px; max-width: 100%; background: var(--side); color: var(--side-text); border-right: 1px solid var(--side-border); display: flex; flex-direction: column; gap: 18px; padding: 22px 14px; }
.main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 36px; border-bottom: 1px solid var(--border); }
.content { padding: 28px 36px 56px; display: flex; flex-direction: column; gap: 24px; max-width: 1280px; width: 100%; }
@media (min-width: 900px) { .sidebar { flex: 0 0 260px; } }
@media (max-width: 640px) { .topbar, .content { padding-left: 16px; padding-right: 16px; } }

.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px; text-decoration: none; color: inherit; }
.brand-mark { width: 40px; height: 40px; border-radius: var(--r); background: var(--on-dark); color: var(--side); display: grid; place-items: center; }
.brand-name { font-size: 17px; font-weight: 700; color: var(--side-text); }
.brand-by { font-size: 11px; color: var(--side-muted); font-weight: 500; }
.ws-switch { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--side-border); background: var(--side-raised); }
.ws-switch select { background: transparent; color: var(--side-text); border: 0; font: inherit; font-weight: 700; padding: 0; min-height: 28px; width: 100%; }
.ws-switch select option { color: #1A2E3B; }
.ws-switch .eyebrow { color: var(--side-muted); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 12px; border-radius: var(--r-sm); text-decoration: none; color: var(--side-muted); font-weight: 500; }
.nav a:hover { color: var(--side-text); background: var(--side-raised); }
.nav a.active { color: var(--side-text); background: var(--side-raised); font-weight: 700; box-shadow: inset 3px 0 0 var(--on-dark); }
.nav .count { margin-left: auto; font-family: var(--mono); font-size: 11px; font-weight: 600; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--pill);
  display: inline-flex; align-items: center; justify-content: center; background: var(--ocean); color: #FFFFFF; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.ai-launch { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px; border-radius: var(--pill); border: 1px solid var(--side-border); color: var(--side-text); text-decoration: none; font-weight: 600; }
.ai-launch:hover { background: var(--side-raised); color: var(--side-text); }
.me { display: flex; align-items: center; gap: 10px; padding: 6px 8px; color: var(--side-text); }
.avatar { width: 32px; height: 32px; border-radius: var(--pill); background: var(--side-raised); border: 1px solid var(--side-border); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.me a { color: var(--side-muted); font-weight: 500; font-size: 12px; text-decoration: none; }
.me a:hover { color: var(--side-text); text-decoration: underline; }
.env-tag { font-family: var(--mono); font-size: 10px; color: var(--side-muted); padding: 0 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: var(--pill); border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--sunken); color: var(--text); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.btn.primary:hover { background: var(--accent-hover); color: #FFFFFF; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--accent-text); }
.btn.danger { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.search { flex: 1 1 280px; max-width: 520px; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px; border-radius: var(--pill);
  border: 1px solid var(--border); background: var(--surface); color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; color: var(--text); }
label { font-weight: 600; font-size: 13px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.hint { font-weight: 500; font-size: 12px; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=datetime-local], input[type=date], input[type=time], select, textarea {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 10px 14px; min-height: 44px; width: 100%; }
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
input.code { font-family: var(--mono); font-size: 22px; letter-spacing: .3em; text-align: center; }
.check { display: inline-flex; align-items: flex-start; gap: 8px; font-weight: 500; min-height: 32px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.toggle { display: inline-flex; flex-wrap: wrap; padding: 4px; border-radius: var(--r-lg); background: var(--sunken); border: 1px solid var(--border); }
.toggle a { min-height: 36px; padding: 0 14px; border-radius: var(--pill); display: inline-flex; align-items: center; text-decoration: none; color: var(--muted); font-weight: 600; }
.toggle a.on { background: var(--surface); color: var(--text); font-weight: 700; box-shadow: 0 1px 2px rgba(0,0,0,.08); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card.flush { padding: 0; gap: 0; overflow: hidden; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.card.flush .card-head { padding: 18px 24px; border-bottom: 1px solid var(--border); }
.card.dark { background: var(--side); color: var(--side-text); border-color: var(--side); }
.card.dark .eyebrow, .card.dark .muted { color: var(--side-muted); }
.card.dark a { color: var(--on-dark); }
.card.soft { background: var(--accent-soft); border-color: transparent; }
.card.alert { background: var(--danger-soft); border-color: transparent; color: var(--danger); }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.lede { font-size: 15px; color: var(--muted); margin-top: 6px; max-width: 720px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.kpi .value { font-family: var(--font-head); color: var(--heading); font-size: 32px; font-weight: 600; letter-spacing: -.03em; line-height: 1; }
.kpi .note { font-size: 12px; font-weight: 600; color: var(--muted); }
.cols { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.cols > .wide { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.cols > .narrow { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 14px 24px; border-bottom: 1px solid var(--border); }
.row:last-child { border-bottom: 0; }
.row .grow { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.row .title { font-weight: 700; font-size: 15px; }
.tile { width: 40px; height: 40px; flex: none; border-radius: var(--r); display: grid; place-items: center; }
.empty { padding: 28px 24px; color: var(--muted); text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.why { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.dl dt { color: var(--muted); font-weight: 600; font-size: 13px; }
.dl dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.divider { height: 1px; background: var(--border); margin: 4px 0; }

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: var(--pill); white-space: nowrap; }
.tone-positive { background: var(--accent-soft); color: var(--accent-text); }
.tone-warn { background: var(--warn-soft); color: var(--warn); }
.tone-info { background: var(--info-soft); color: var(--info); }
.tone-danger { background: var(--danger-soft); color: var(--danger); }
.tone-neutral { background: var(--neutral-soft); color: var(--muted); }
.tag { font-family: var(--mono); font-size: 11px; padding: 2px 8px; border-radius: 6px; background: var(--sunken); color: var(--muted); border: 1px solid var(--border); }
.sync-pill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: var(--pill); font-size: 12px; font-weight: 600; }
.dot { width: 8px; height: 8px; border-radius: var(--pill); background: currentColor; display: inline-block; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.checklist li { display: flex; align-items: flex-start; gap: 10px; min-height: 32px; }
.mark { width: 24px; height: 24px; border-radius: var(--pill); display: grid; place-items: center; flex: none; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); padding: 10px 16px; border-bottom: 1px solid var(--border); background: var(--sunken); white-space: nowrap; }
td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-family: var(--mono); }

.flashes { display: flex; flex-direction: column; gap: 8px; }
.flash { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: var(--r); font-weight: 500; }
.bar { height: 8px; border-radius: var(--pill); background: var(--sunken); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: var(--pill); background: var(--accent); }
.bar.warn > span { background: var(--warn); }
.bar.stop > span { background: var(--danger); }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 6px; }
.lane { background: var(--sunken); border-radius: var(--r-lg); padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 160px; }
.lane-head { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 6px; }
.deal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--text); font-weight: 500; }
.deal:hover { border-color: var(--accent); color: var(--text); }
.msg { border: 1px solid var(--border); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); }
.msg.in { background: var(--sunken); }
.pre { white-space: pre-wrap; font-family: var(--font); margin: 0; overflow-wrap: anywhere; }
.steps { display: flex; flex-direction: column; gap: 16px; }
.step { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 12px; background: var(--surface); }
.step-num { width: 28px; height: 28px; border-radius: var(--pill); background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; font-weight: 700; font-size: 13px; font-family: var(--mono); }
.notice { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--r); border: 1px dashed var(--border); color: var(--muted); font-size: 13px; }
.footer-preview { white-space: pre-wrap; font-size: 12px; color: var(--muted); border-top: 1px dashed var(--border); padding-top: 10px; }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: 100%; max-width: 440px; }
details > summary { cursor: pointer; font-weight: 700; min-height: 36px; display: flex; align-items: center; }

/* Two-step sign-in setup */
.mfa-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.mfa-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 12px; line-height: 1.5; }
.qr-box { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.qr-box svg { background: #fff; border-radius: var(--r-md, 14px); padding: 6px; border: 1px solid var(--border); max-width: 100%; height: auto; }
.mfa-phone { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
@media (max-width: 640px) { .mfa-grid { grid-template-columns: 1fr; } .qr-box { order: -1; } }

/* Passkeys */
.passkey-block { display: flex; flex-direction: column; gap: 10px; }
.passkey-block[hidden], [data-passkey-unsupported][hidden] { display: none; }
.passkey-btn { align-self: flex-start; min-width: 220px; }
.auth-card .passkey-btn { align-self: stretch; }
.passkey-status { margin: 0; font-size: 13px; font-weight: 600; min-height: 1em; }
.passkey-status.error { color: var(--danger); }
.passkey-status.error::before { content: "⚠ "; }
.or-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 4px 0; }
.or-divider::before, .or-divider::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.plain-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.plain-list li { display: flex; align-items: center; gap: 8px; }
details.mfa-setup > summary { cursor: pointer; list-style-position: inside; }

/* ---------- Guided setup ---------- */
.setup-progress { height: 8px; border-radius: var(--pill); background: var(--sunken); overflow: hidden; }
.setup-progress > span { display: block; height: 100%; background: var(--accent); border-radius: var(--pill); }
.next-card { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.setup-list { list-style: none; margin: 0; padding: 0; }
.setup-list li { display: flex; align-items: center; gap: 14px; padding: 16px 22px; border-top: 1px solid var(--border); }
.setup-list li:first-child { border-top: 0; }
.setup-list li .grow { flex: 1; min-width: 0; }
.setup-list li.is-done strong { color: var(--muted); }
.setup-list li.is-next { background: var(--accent-soft); }
.setup-back { margin: 0 0 4px; font-size: 13px; }
.setup-back a svg { transform: rotate(180deg); vertical-align: -2px; }
.setup-pill { display: flex; flex-direction: column; gap: 6px; margin: 0 0 8px; padding: 12px 14px; border-radius: var(--r); background: var(--side-raised);
  border: 1px solid var(--side-border); color: var(--side-text); text-decoration: none; font-weight: 600; font-size: 13px; }
.setup-pill:hover, .setup-pill.active { border-color: var(--on-dark); color: var(--side-text); }
.setup-pill .small { color: var(--side-muted); font-weight: 500; }
.setup-pill-top { display: flex; justify-content: space-between; align-items: center; }
.setup-pill-bar { height: 5px; border-radius: var(--pill); background: var(--side-border); overflow: hidden; }
.setup-pill-bar > span { display: block; height: 100%; background: var(--on-dark); }

.identity-form { gap: 20px; }
.identity-form fieldset.q { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.identity-form legend { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; margin-bottom: 10px; padding: 0; }
.choice-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border: 1px solid var(--border); border-radius: var(--r); cursor: pointer; background: var(--surface); }
.choice:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.choice input { margin-top: 3px; width: auto; min-height: 0; }
.choice > span { display: flex; flex-direction: column; gap: 2px; }
.prefix-input { display: flex; align-items: center; gap: 8px; }
.prefix-input > span { font-weight: 600; color: var(--muted); }
[data-show-for][hidden] { display: none; }
.identity-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

.agreement .doc-scroll { max-height: 260px; overflow-y: auto; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--r); background: var(--bg); line-height: 1.55; }
.agreement .doc-scroll h3 { font-size: 14px; margin: 14px 0 4px; }
.agreement .doc-scroll p { margin: 0 0 8px; }
.accept-line:has(input:disabled) { opacity: .6; }
.scroll-hint { margin: 0; }
.scroll-hint svg { transform: rotate(90deg); vertical-align: -2px; }

.mini-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.mini-steps > li { display: flex; gap: 12px; align-items: flex-start; }
.mini-steps > li .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.how-to { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.copy-field { display: inline-flex; gap: 6px; align-items: center; width: 100%; max-width: 520px; margin-top: 4px; }
.copy-field input { font-family: var(--mono); font-size: 13px; min-height: 36px; }
.provider-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.provider { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; padding: 16px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); }
.provider.is-main { border-color: var(--accent); }
.provider.is-off { background: var(--bg); }
.hosted-form { display: flex; flex-direction: column; gap: 14px; padding-top: 8px; border-top: 1px solid var(--border); }

/* ---------- Popups and import mapping ---------- */
dialog.popup { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 26px 28px; max-width: min(760px, calc(100vw - 32px)); width: 100%;
  background: var(--surface); color: var(--text); box-shadow: 0 24px 60px rgba(20, 30, 28, .25); }
dialog.popup::backdrop { background: rgba(20, 30, 28, .45); }
dialog.popup h2 { margin: 0 0 8px; }
.popup-table { max-height: 300px; overflow: auto; border: 1px solid var(--border); border-radius: var(--r); margin: 12px 0 18px; }
.popup-list { list-style: none; padding: 0; margin: 12px 0 18px; display: flex; flex-direction: column; gap: 12px; }
.popup-list li { display: flex; gap: 10px; align-items: flex-start; }
.popup-list svg { flex: none; margin-top: 2px; color: var(--accent-text); }
.map-card { gap: 0; }
.map-head, .map-row { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(140px, 1.2fr) minmax(220px, 1.2fr); gap: 14px; align-items: center; }
.map-head { padding: 0 0 8px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--border); }
.map-row { padding: 10px 0; border-bottom: 1px solid var(--border); }
.map-row.is-ignored .map-col, .map-row.is-ignored .map-sample { opacity: .55; }
.map-sample { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-field { display: flex; align-items: center; gap: 8px; }
.map-arrow { color: var(--muted); display: inline-flex; }
@media (max-width: 640px) { .map-head { display: none; } .map-row { grid-template-columns: 1fr; gap: 4px; } }
.review-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.review-list li { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.tone-positive-text svg { color: var(--accent-text); }
.tone-warn-text svg { color: var(--warn); }

/* ---------- Campaign builder ---------- */
.stepper { display: flex; flex-wrap: wrap; gap: 8px; }
.stepper > a, .stepper > span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 8px; border-radius: var(--pill); border: 1px solid var(--border);
  background: var(--surface); color: var(--muted); font-weight: 600; text-decoration: none; font-size: 14px; }
.stepper .is-on { border-color: var(--accent); color: var(--text); box-shadow: 0 0 0 3px var(--accent-soft); }
.stepper .is-done .step-num { background: var(--accent); color: #fff; }
.plan-form, .identity-form { gap: 22px; }
.plan-form fieldset.q { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.plan-form legend { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; margin-bottom: 10px; padding: 0; }
.label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.chip-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-choice { position: relative; cursor: pointer; }
.chip-choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip-choice span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: var(--pill); border: 1px solid var(--border); background: var(--surface); font-weight: 600; font-size: 14px; }
.chip-choice input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip-choice input:focus-visible + span { box-shadow: 0 0 0 4px var(--accent-soft); }
.timing-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
[data-dictate].is-live { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.recipient-list { display: flex; flex-direction: column; }
.recipient-row { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(240px, 1.6fr); gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.recipient-row .who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
@media (max-width: 720px) { .recipient-row { grid-template-columns: 1fr; gap: 6px; } }
.pick-list { max-height: 360px; overflow: auto; display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 1px solid var(--border); border-radius: var(--r); background: var(--bg); }
.pick-list label[hidden] { display: none; }
.req-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.req { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: var(--pill); }
.req.ok { background: var(--accent-soft); color: var(--accent-text); }
.req.no { background: var(--danger-soft); color: var(--danger); }
.rewrite-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 6px; border-top: 1px dashed var(--border); }
.steps { display: flex; flex-direction: column; gap: 16px; }
.checklist li .grow { flex: 1; min-width: 0; }
.checklist li > .btn { align-self: center; }

/* ---------- Call briefing ---------- */
.brief-summary { margin: 0; font-size: 16px; line-height: 1.55; padding: 14px 16px; border-radius: var(--r); background: var(--accent-soft); }
.brief-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
.brief-grid .span-2 { grid-column: span 2; }
.brief-grid h3 { margin: 0 0 6px; font-size: 14px; }
@media (max-width: 760px) { .brief-grid { grid-template-columns: 1fr; } .brief-grid .span-2 { grid-column: auto; } }
.brief-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.brief-facts li { display: flex; flex-direction: column; gap: 1px; line-height: 1.45; }
.brief-points { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.brief-gaps { padding: 12px 14px; border-radius: var(--r); background: var(--warn-soft); }
.brief-gaps ul { margin: 0 0 6px; padding-left: 18px; }
@media print {
  .sidebar, .topbar, .no-print, .flashes, .narrow, form { display: none !important; }
  .main, .content { padding: 0 !important; margin: 0 !important; }
  .cols { display: block !important; }
  .card:not(.call-brief) { display: none !important; }
  .call-brief { border: 0 !important; }
}

/* Kevin brand */
.brand-logo { display: block; height: 34px; width: auto; }
.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-descriptor { font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: .18em; color: var(--slate); padding-left: 12px; border-left: 1px solid var(--border); line-height: 1.6; }
.btn { font-size: 16px; }
.setup-pill { color: var(--side-text); }

/* ---------- Kevin Careers 1.8 ---------- */
.feed { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.feed-row { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--border); }
.feed-row:first-child { border-top: 0; }
.feed-row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.feed-title { font-family: var(--font-head); font-weight: 600; font-size: 17px; color: var(--heading); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.q-block { display: flex; flex-direction: column; gap: 8px; padding: 18px 0; border-top: 1px solid var(--border); }
.q-block:first-of-type { border-top: 0; }
.q-block label.q-text { font-family: var(--font-head); font-weight: 600; font-size: 18px; color: var(--heading); line-height: 1.35; }
.q-block textarea { min-height: 110px; font-size: 17px; }
.big-progress { height: 8px; border-radius: 999px; background: var(--cloud, #F4F8F8); overflow: hidden; }
.big-progress > span { display: block; height: 100%; background: var(--teal, #2F6FC0); }
.dim { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 0; border-top: 1px solid var(--border); }
.dim:first-child { border-top: 0; }
.dim .score { font-family: var(--font-head); font-weight: 600; color: var(--heading); }
.dim ul { margin: 4px 0 0; padding-left: 18px; grid-column: 1 / -1; }
.route { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--border); }
.route:first-child { border-top: 0; }
.route .grow { flex: 1; min-width: 0; }
.mail-preview { white-space: pre-wrap; font-family: inherit; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 16px; }
.confirm-box { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--teal, #2F6FC0); border-radius: var(--r); background: rgba(47, 111, 192, .06); }
.confirm-box input { width: 22px; height: 22px; margin-top: 2px; flex: none; }
.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 24px; }
@media (max-width: 640px) { .feed-row { flex-direction: column; align-items: stretch; } }

/* Larger text (per device): scales the whole interface for easier reading */
html.text-lg body { zoom: 1.15; }

/* 1.9: dip warning, This week, inquiries, deliverability, pilot report */
.dip-card { gap: 6px; }
.dip-card.dip-gap { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.dip-card.dip-gap h2, .dip-card.dip-gap a { color: var(--warn); }
.dip-months { display: grid; gap: 6px; margin-top: 8px; max-width: 520px; }
.dip-m { display: grid; grid-template-columns: 92px 1fr 72px; align-items: center; gap: 10px; color: var(--text); }
.dip-bar { height: 8px; border-radius: var(--pill); background: rgba(18, 61, 86, .10); overflow: hidden; }
.dip-bar > span { display: block; height: 100%; border-radius: var(--pill); background: var(--accent); }
.dip-m.is-short .dip-bar > span { background: var(--warn); }
.home-dip { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: stretch; margin-bottom: 16px; }
.home-quick { display: flex; flex-direction: column; gap: 8px; justify-content: center; }
@media (max-width: 760px) { .home-dip { grid-template-columns: 1fr; } .home-quick { flex-direction: row; flex-wrap: wrap; } }
.week-list { display: flex; flex-direction: column; gap: 16px; max-width: 860px; }
.week-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); text-decoration: none; color: var(--text); }
.week-row:first-of-type { border-top: 0; }
.week-row .grow { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.week-row.check { cursor: pointer; }
a.week-row:hover strong { text-decoration: underline; }
.week-list h2 { display: flex; align-items: center; gap: 8px; }
.week-list h2 .step-num { display: inline-grid; flex: none; }
.deliv { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 4px 0 6px; }
.deliv > span { display: inline-flex; align-items: center; gap: 4px; }
.pilot-kpis { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.pilot-kpis .value { font-size: 26px; }
.your-call .chip-choices { margin: 0; }
@media (max-width: 640px) { .dip-m { grid-template-columns: 70px 1fr 64px; } .week-row { align-items: flex-start; } }
fieldset.q, fieldset.field { min-width: 0; }   /* fieldsets default to min-content width: let tables scroll inside them on phones */

/* 1.9.1 autopilot */
.autopilot h3 { color: var(--heading); }
.ap-version { border: 1px solid var(--border); border-radius: var(--r); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.ap-version summary { cursor: pointer; }
.ap-inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ap-inline input[type=text] { flex: 1 1 240px; width: auto; }
.ap-form { display: flex; flex-direction: column; gap: 12px; }

/* ---- Kevin: Brockadale blue background, content on a light sheet ---- */
body { background: var(--brand-blue); }
.sidebar { background: transparent; border-right: 0; }
.main { background: var(--bg); border-radius: 22px; margin: 12px 12px 12px 0; box-shadow: 0 1px 2px rgba(15,42,68,.18), 0 12px 32px rgba(15,42,68,.16); overflow: hidden; }
@media (max-width: 899px) { .main { margin: 0 8px 8px; border-radius: 18px; } }
.nav a.active { background: #FFFFFF; color: var(--navy); box-shadow: none; }
.nav a.active .count { background: var(--brand-blue); color: #FFFFFF; }
.ws-switch select option { color: #1A2B3C; }
.avatar { color: #FFFFFF; }
.brand-lockup { display: inline-flex; align-items: center; gap: 12px; color: #FFFFFF; }
.brand-lockup svg { flex: none; }
.brand-words { display: flex; flex-direction: column; gap: 3px; line-height: 1; }
.brand-word { font-family: var(--font-head); font-weight: 700; letter-spacing: -.01em; }
.brand-sub { font-family: var(--font); font-size: 10.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; opacity: .9; }
.auth-wrap .auth-tag { color: #E3ECF8; }
.auth-wrap .auth-card > .small a, .auth-foot a { color: #FFFFFF; }
.beta-tag { display: inline-block; margin-left: 2px; padding: 2px 7px; border-radius: 999px; background: rgba(255,255,255,.18); font-size: 10px; font-weight: 700; letter-spacing: .12em; vertical-align: middle; }
.svc-row { display: flex; gap: 10px; align-items: flex-start; }
.svc-row > .chip, .svc-row > span:first-child { flex: none; }
.main, .table-wrap { position: relative; }   /* keep screen-reader labels inside scrolling tables from widening the page */
