:root {
  --ink: #15233c;
  --ink-2: #34415a;
  --muted: #6d7890;
  --line: #dbe2ed;
  --line-strong: #c8d1df;
  --canvas: #f3f6fb;
  --paper: #ffffff;
  --cobalt: #3155d9;
  --cobalt-dark: #1f3eae;
  --cobalt-soft: #edf1ff;
  --sky: #bcd8ff;
  --mint: #2ca985;
  --mint-soft: #e5f7f1;
  --coral: #ee6c55;
  --coral-soft: #fff0ec;
  --amber: #c88118;
  --amber-soft: #fff5dc;
  --slate-soft: #edf0f5;
  --shadow: 0 12px 40px rgba(27, 45, 79, .08);
  --radius: 18px;
  --display: "Aptos Display", "Trebuchet MS", sans-serif;
  --body: "Aptos", "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; color: var(--ink); background: var(--canvas); font: 15px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid rgba(49,85,217,.28); outline-offset: 2px; }
::selection { background: var(--sky); color: var(--ink); }

.skip-link { position: fixed; z-index: 100; left: 12px; top: -60px; padding: 10px 14px; background: var(--ink); color: white; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 230px minmax(0,1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 25px 18px 18px; display: flex; flex-direction: column; background: #101e38; color: #d9e2f5; border-right: 1px solid rgba(255,255,255,.06); }
.brand { display: flex; align-items: center; gap: 11px; width: max-content; }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1.05; }
.brand strong { color: white; font: 700 20px/1 var(--display); letter-spacing: -.45px; }
.brand small { margin-top: 6px; color: #8f9db6; font: 700 9px/1 var(--mono); letter-spacing: 1.2px; text-transform: uppercase; }
.brand-mark { position: relative; width: 36px; height: 36px; display: grid; place-items: center; overflow: hidden; border-radius: 11px; background: var(--coral); }
.brand-mark i { position: absolute; left: 7px; bottom: 7px; border: 2px solid white; border-left-color: transparent; border-bottom-color: transparent; border-radius: 50%; transform: rotate(-45deg); }
.brand-mark i:nth-child(1) { width: 6px; height: 6px; }
.brand-mark i:nth-child(2) { width: 15px; height: 15px; }
.brand-mark i:nth-child(3) { width: 24px; height: 24px; }

.primary-nav { display: grid; gap: 6px; margin-top: 48px; }
.primary-nav a { min-height: 46px; padding: 0 13px; display: flex; align-items: center; gap: 12px; color: #9eabc2; border: 1px solid transparent; border-radius: 11px; font-weight: 650; transition: background .18s ease, color .18s ease, transform .18s ease; }
.primary-nav a:hover { color: white; background: rgba(255,255,255,.055); transform: translateX(2px); }
.primary-nav a.active { color: white; background: #25395d; border-color: rgba(255,255,255,.06); box-shadow: inset 3px 0 var(--coral); }
.nav-icon { width: 22px; font-size: 19px; text-align: center; }
.nav-count { margin-left: auto; min-width: 21px; height: 21px; padding: 0 6px; display: grid; place-items: center; border-radius: 99px; color: white; background: var(--coral); font: 700 10px/1 var(--mono); }
.sidebar-foot { margin-top: auto; display: grid; gap: 12px; }
.connection-chip { padding: 11px 12px; display: flex; align-items: center; gap: 9px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); border-radius: 10px; background: rgba(255,255,255,.035); font-size: 12px; font-weight: 650; }
.connection-chip span:last-child { overflow: hidden; text-overflow: ellipsis; }
.signal-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #9ba6b8; box-shadow: 0 0 0 3px rgba(155,166,184,.14); }
.signal-dot.online { background: #3dd6a6; box-shadow: 0 0 0 3px rgba(61,214,166,.14); }
.signal-dot.pulse { animation: pulse 1.8s ease-out infinite; }
.text-button { padding: 0; border: 0; color: var(--muted); background: none; cursor: pointer; font-weight: 700; }
.sidebar .text-button { color: #7f8ca5; font-size: 12px; }

.workspace { min-width: 0; }
.dispatch-rail { height: 78px; padding: 0 32px; display: flex; align-items: center; gap: 22px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line); }
.rail-item { display: flex; flex-direction: column; min-width: 112px; }
.rail-item span { color: var(--muted); font: 700 9px/1 var(--mono); text-transform: uppercase; letter-spacing: .9px; }
.rail-item strong { margin-top: 5px; font: 700 13px/1.2 var(--body); }
.rail-line { position: relative; width: 54px; height: 1px; background: var(--line); }
.rail-line::before, .rail-line::after { content: ""; position: absolute; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); }
.rail-line::before { left: 0; } .rail-line::after { right: 0; }
.rail-line span { position: absolute; left: 50%; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--coral); animation: rail 3.4s linear infinite; }
.rail-action { margin-left: auto; }

.main-content { width: min(1460px, 100%); margin: 0 auto; padding: 38px 34px 60px; }
.system-banner { padding: 12px 34px; border-bottom: 1px solid; font-size: 13px; }
.system-banner.warning { color: #6d4b10; background: var(--amber-soft); border-color: #efd699; }
.system-banner.danger { color: #812c24; background: var(--coral-soft); border-color: #f5b5a8; }
.system-banner a { text-decoration: underline; font-weight: 750; }
.flash-stack { position: fixed; z-index: 70; top: 94px; right: 26px; width: min(390px, calc(100vw - 40px)); display: grid; gap: 9px; }
.flash { padding: 13px 14px; display: flex; justify-content: space-between; gap: 12px; border: 1px solid #b9dfd2; border-radius: 11px; color: #195e4c; background: #effaf6; box-shadow: var(--shadow); font-size: 13px; font-weight: 650; }
.flash.warning { color: #7a5412; background: var(--amber-soft); border-color: #efd699; }
.flash.error { color: #8e342b; background: var(--coral-soft); border-color: #f3b5aa; }
.flash button { border: 0; background: none; cursor: pointer; font-size: 18px; line-height: 1; }

.page-head { margin-bottom: 28px; }
.page-head.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.page-head h1 { margin: 6px 0 8px; color: var(--ink); font: 800 clamp(34px,4vw,48px)/1.02 var(--display); letter-spacing: -1.8px; }
.page-lede { max-width: 670px; margin: 0; color: var(--muted); font-size: 16px; }
.eyebrow { margin: 0; color: var(--cobalt); font: 800 10px/1.2 var(--mono); letter-spacing: 1.35px; text-transform: uppercase; }
.eyebrow.light { color: #a9bce4; }
.back-link { display: inline-block; margin-bottom: 24px; color: var(--muted); font-size: 13px; font-weight: 700; }
.back-link:hover { color: var(--cobalt); }
.head-actions { display: flex; gap: 9px; }
.safety-note { max-width: 330px; display: flex; align-items: center; gap: 11px; padding: 12px 14px; border: 1px solid #bce6d8; border-radius: 12px; background: var(--mint-soft); }
.safety-note > span { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; color: white; background: var(--mint); border-radius: 50%; font-weight: 800; }
.safety-note p, .safety-note small { margin: 0; display: block; }
.safety-note strong { font-size: 12px; }
.safety-note small { margin-top: 2px; color: #547267; font-size: 11px; }

.button { min-height: 40px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 9px; background: none; cursor: pointer; font-weight: 750; font-size: 13px; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: white; background: var(--cobalt); border-color: var(--cobalt); box-shadow: 0 7px 18px rgba(49,85,217,.18); }
.button-primary:hover { background: var(--cobalt-dark); box-shadow: 0 9px 22px rgba(49,85,217,.25); }
.button-quiet { color: var(--ink-2); background: white; border-color: var(--line-strong); }
.button-quiet:hover { border-color: #9aabc4; background: #fafcff; }
.button-danger { color: white; background: #c94939; border-color: #c94939; }
.button-danger-quiet { color: #a13a2e; background: var(--coral-soft); border-color: #f0b7ad; }
.button-small { min-height: 32px; padding: 0 11px; font-size: 11px; border-radius: 7px; }
.button-large { min-height: 50px; padding: 0 22px; }
.button-block { width: 100%; }
.icon-button { width: 34px; height: 34px; padding: 0; display: inline-grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: white; cursor: pointer; }
.icon-button:hover { color: var(--ink); border-color: var(--line-strong); }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 2px 2px rgba(31,50,84,.015); }
.panel-heading { padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.panel-heading.small { padding: 3px 0 20px; border: 0; }
.panel-heading h2 { margin: 4px 0 0; font: 750 21px/1.15 var(--display); letter-spacing: -.5px; }
.panel-heading p:not(.eyebrow) { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.metric-strip { margin-bottom: 18px; display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.metric-strip > div { min-height: 102px; padding: 18px 22px; display: grid; align-content: center; grid-template-columns: 1fr auto; border-right: 1px solid var(--line); }
.metric-strip > div:last-child { border: 0; }
.metric-strip span { color: var(--muted); font-size: 12px; font-weight: 700; }
.metric-strip strong { grid-row: span 2; color: var(--ink); font: 800 32px/1 var(--display); letter-spacing: -1px; }
.metric-strip small { margin-top: 5px; color: #9ba4b5; font-size: 10px; }

.roster-panel { overflow: hidden; }
.panel-tools { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.status-tabs { display: flex; align-items: center; gap: 4px; }
.status-tabs a { min-height: 34px; padding: 0 11px; display: inline-flex; align-items: center; gap: 7px; border-radius: 8px; color: var(--muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.status-tabs a:hover { color: var(--ink); background: var(--canvas); }
.status-tabs a.active { color: var(--cobalt); background: var(--cobalt-soft); }
.status-tabs a span { font: 700 9px/1 var(--mono); }
.tool-row, .bulk-form { display: flex; align-items: center; gap: 7px; }
.search-form label { position: relative; display: block; }
.search-form input { width: 220px; height: 34px; padding: 0 32px 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: white; font-size: 12px; }
.search-form b { position: absolute; right: 10px; top: 6px; color: var(--muted); font-weight: 500; }
.bulk-form select { height: 34px; padding: 0 25px 0 9px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink-2); background: white; font-size: 11px; font-weight: 650; }
.sync-note { padding: 8px 17px; display: flex; align-items: center; gap: 8px; color: var(--muted); background: #f9fbfe; border-bottom: 1px solid var(--line); font-size: 10px; font-weight: 650; }
.table-scroll { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { height: 42px; padding: 0 12px; color: #7e899e; background: #f8fafe; border-bottom: 1px solid var(--line); font: 750 9px/1 var(--mono); letter-spacing: .65px; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table th:first-child, .data-table td:first-child { padding-left: 18px; }
.data-table th:last-child, .data-table td:last-child { padding-right: 18px; }
.data-table td { height: 70px; padding: 10px 12px; border-bottom: 1px solid #e7ebf2; vertical-align: middle; font-size: 12px; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background .15s ease; }
.data-table tbody tr:hover { background: #fafcff; }
.roster-table { min-width: 1040px; }
.select-cell { width: 38px; }
input[type=checkbox] { accent-color: var(--cobalt); }
.identity { display: flex; align-items: center; gap: 10px; min-width: 166px; }
.identity:hover strong { color: var(--cobalt); }
.identity > span:last-child { display: flex; flex-direction: column; }
.identity strong { font-size: 12px; line-height: 1.2; }
.identity small { margin-top: 3px; max-width: 155px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.identity.compact { min-width: 140px; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #d1dcf4; border-radius: 10px; color: var(--cobalt); background: #edf3ff; font: 800 12px/1 var(--display); }
.avatar.large { width: 45px; height: 45px; font-size: 16px; border-radius: 13px; }
.status-pill { min-height: 24px; padding: 0 8px; display: inline-flex; align-items: center; border: 1px solid transparent; border-radius: 99px; font-size: 9px; line-height: 1; font-weight: 800; letter-spacing: .25px; text-transform: uppercase; white-space: nowrap; }
.status-default, .status-sent, .status-done { color: #19725a; background: var(--mint-soft); border-color: #bce4d7; }
.status-no_send, .status-skipped, .status-cancelled { color: #687286; background: var(--slate-soft); border-color: #d9dee7; }
.status-opted_out, .status-failed { color: #a23a2f; background: var(--coral-soft); border-color: #f2beb5; }
.status-undeliverable, .status-paused, .status-needs_review { color: #8a5b0a; background: var(--amber-soft); border-color: #edd39a; }
.status-queued, .status-sending, .status-pending { color: var(--cobalt-dark); background: var(--cobalt-soft); border-color: #cdd7ff; }
.mutual { color: var(--muted); font-size: 11px; white-space: nowrap; }
.mutual.yes { color: #1c7a60; }.mutual.no { color: var(--coral); font-weight: 700; }
.date-cell { color: var(--muted); white-space: nowrap; }
.notes-cell { max-width: 170px; color: var(--muted); }
.notes-cell span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-actions { min-width: 105px; }
.row-actions, .inline-actions, .control-actions { display: flex; justify-content: flex-end; align-items: center; gap: 7px; }
.toggle-switch { position: relative; width: 38px; height: 22px; padding: 0; border: 0; border-radius: 99px; background: #cbd2de; cursor: pointer; transition: background .18s ease; }
.toggle-switch span { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: white; box-shadow: 0 2px 5px rgba(0,0,0,.18); transition: transform .18s ease; }
.toggle-switch.on { background: var(--mint); }
.toggle-switch.on span { transform: translateX(16px); }
.locked-row { background: #fffdfd; }

.modal { width: min(570px, calc(100vw - 30px)); max-height: calc(100vh - 40px); padding: 0; overflow: auto; border: 0; border-radius: 20px; color: var(--ink); background: white; box-shadow: 0 30px 90px rgba(11,24,47,.28); }
.modal.compact { width: min(470px, calc(100vw - 30px)); }
.modal::backdrop { background: rgba(13,26,49,.55); backdrop-filter: blur(3px); }
.modal > form, .modal > div:not(.confirm-signal), .modal > p, .modal > h2 { margin-left: 28px; margin-right: 28px; }
.modal > form { margin: 0; padding: 27px; }
.modal-head { margin-bottom: 18px; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.modal-head h2, .modal > h2 { margin: 5px 0 0; font: 800 27px/1.1 var(--display); letter-spacing: -.8px; }
.modal-actions { margin-top: 24px; display: flex; justify-content: flex-end; gap: 9px; }
.modal p { color: var(--muted); }
.field { margin-top: 16px; display: grid; gap: 7px; }
.field > span, .field-label { color: var(--ink-2); font-size: 11px; font-weight: 750; }
.field > span small { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea, .input-suffix { width: 100%; border: 1px solid var(--line-strong); border-radius: 9px; color: var(--ink); background: white; transition: border .15s ease, box-shadow .15s ease; }
.field input, .field select { height: 43px; padding: 0 12px; }
.field textarea { padding: 11px 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(49,85,217,.1); outline: 0; }
.field > small { color: var(--muted); font-size: 10px; }
.field code, .dev-hint code { padding: 2px 5px; border: 1px solid var(--line); border-radius: 4px; color: var(--cobalt-dark); background: #f7f9fe; font: 10px/1.2 var(--mono); }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.upload-zone { position: relative; min-height: 190px; margin-top: 18px; display: grid; place-items: center; align-content: center; text-align: center; border: 1px dashed #aebbd0; border-radius: 14px; background: #f8faff; }
.upload-zone > span { font-size: 28px; color: var(--cobalt); }.upload-zone strong { margin-top: 8px; }.upload-zone p { margin: 3px 0 12px; font: 10px/1.5 var(--mono); }.upload-zone input { max-width: 250px; font-size: 11px; }
.empty-state { min-height: 280px; display: grid; place-items: center; align-content: center; text-align: center; }
.empty-state.tall { min-height: 400px; }.empty-state.compact { min-height: 190px; }
.empty-state > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; color: var(--cobalt); background: var(--cobalt-soft); font-size: 22px; }
.empty-state h2 { margin: 14px 0 4px; font: 750 20px/1.2 var(--display); }.empty-state p { margin: 0 0 16px; color: var(--muted); }
.inline-empty { padding: 20px; color: var(--muted); text-align: center; font-size: 12px; }.inline-empty a { color: var(--cobalt); font-weight: 700; }
.error-row { background: var(--coral-soft); }.error-text { color: #a23a2f; font-weight: 700; }.success-text { color: #19725a; font-weight: 700; }

.warning-panel { margin-bottom: 18px; border-color: #ecd59d; background: #fffcf4; }
.chip-list { padding: 20px 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list span { padding: 7px 10px; border: 1px solid #eed79f; border-radius: 8px; background: white; font-size: 11px; font-weight: 700; }
.sync-stamp { padding: 8px 11px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: white; font: 10px/1 var(--mono); }
.cards-grid { padding: 20px; display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.person-card { padding: 14px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 12px; }
.person-card div { min-width: 0; display: flex; flex-direction: column; }.person-card div a { color: var(--muted); font-size: 11px; }.person-card .button { grid-column: 1/-1; }

.composer-head { display: flex; justify-content: space-between; align-items: flex-end; }
.composer-grid { display: grid; grid-template-columns: minmax(0,1fr) 310px; align-items: start; gap: 18px; }
.composer-main { display: grid; gap: 16px; }
.step-card { padding: 26px; }
.step-head { display: flex; gap: 15px; align-items: flex-start; }
.step-head > span { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #cdd7f4; border-radius: 10px; color: var(--cobalt); background: var(--cobalt-soft); font: 800 10px/1 var(--mono); }
.step-head h2 { margin: 0; font: 800 23px/1.1 var(--display); letter-spacing: -.5px; }.step-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.recent-posts { margin-top: 18px; display: grid; gap: 7px; }.field-label { margin: 0 0 2px; }
.post-option { width: 100%; padding: 11px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: 10px; text-align: left; background: #fbfcff; cursor: pointer; }
.post-option:hover { border-color: #abb9d2; background: white; }.post-option span:nth-child(2) { font-size: 11px; }.post-option small { margin-top: 3px; display: block; color: var(--muted); }.post-option b { color: var(--cobalt); font-size: 10px; }.post-glyph { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: white; background: var(--ink); }
.inline-alert { margin-top: 13px; padding: 10px 12px; border-radius: 8px; font-size: 11px; }.inline-alert.warning { color: #7a5412; background: var(--amber-soft); }
.message-preview { margin-top: 17px; padding: 14px; display: flex; gap: 11px; border: 1px solid #cfd8eb; border-radius: 12px 12px 12px 3px; background: #f7f9fe; }
.message-preview small { color: var(--muted); font: 9px/1 var(--mono); text-transform: uppercase; }.message-preview p { margin: 5px 0 0; color: var(--ink-2); font-size: 12px; }
.audience-group { margin-top: 18px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.audience-title { min-height: 49px; padding: 0 13px; display: flex; align-items: center; justify-content: space-between; background: #f9fbfe; border-bottom: 1px solid var(--line); }.audience-title > div { display: flex; align-items: center; gap: 10px; }.audience-title strong { font-size: 12px; }
.audience-list { display: grid; grid-template-columns: repeat(2,1fr); }
.audience-person { position: relative; min-height: 59px; padding: 9px 12px; display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 9px; border-bottom: 1px solid var(--line); cursor: pointer; }
.audience-person:nth-child(odd) { border-right: 1px solid var(--line); }.audience-person:nth-last-child(-n+2) { border-bottom: 0; }.audience-person:hover { background: #fafcff; }
.audience-person > span:nth-of-type(2) { display: flex; flex-direction: column; }.audience-person strong { font-size: 11px; }.audience-person small { color: var(--muted); font-size: 10px; }.audience-person i { color: white; font-style: normal; }.audience-person input:checked ~ i { color: var(--cobalt); }
.audience-collapsed { margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }.audience-collapsed summary { min-height: 50px; padding: 0 13px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; background: #f9fbfe; font-size: 12px; font-weight: 700; }.audience-collapsed summary b { color: var(--cobalt); font-size: 10px; }.audience-collapsed[open] summary { border-bottom: 1px solid var(--line); }
.send-summary { position: sticky; top: 16px; padding: 24px; }
.send-summary h2 { margin: 6px 0 18px; font: 800 24px/1.1 var(--display); letter-spacing: -.6px; }
.summary-count { padding: 18px; display: flex; align-items: baseline; gap: 9px; border-radius: 12px; color: white; background: var(--ink); }.summary-count strong { font: 800 36px/1 var(--display); }.summary-count span { color: #aebbd1; font-size: 11px; }
.summary-list { margin: 19px 0; }.summary-list > div { padding: 10px 0; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); }.summary-list dt { color: var(--muted); font-size: 11px; }.summary-list dd { margin: 0; font-size: 11px; font-weight: 750; }
.dry-run-check, .check-field { padding: 12px; display: flex; align-items: flex-start; gap: 9px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }.dry-run-check { margin-bottom: 13px; }.dry-run-check span, .check-field span { display: flex; flex-direction: column; }.dry-run-check strong, .check-field strong { font-size: 11px; }.dry-run-check small, .check-field small { color: var(--muted); font-size: 9px; }
.summary-foot { margin: 11px 0 0; color: var(--muted); text-align: center; font-size: 9px; }
.confirm-modal { padding: 30px; text-align: center; }.confirm-modal > p, .confirm-modal > h2, .confirm-modal > div { margin-left: 0; margin-right: 0; }.confirm-modal h2 { margin: 8px 0; }.confirm-modal p:not(.eyebrow) { max-width: 440px; margin: 0 auto; }
.confirm-signal { position: relative; width: 82px; height: 82px; margin: 0 auto 20px !important; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--cobalt); }.confirm-signal span { position: absolute; inset: -8px; border: 1px solid #bfcafb; border-radius: 50%; }.confirm-signal span:nth-child(2) { inset: -17px; border-style: dashed; }.confirm-signal b { font-size: 25px; }
.confirm-stats { margin: 23px 0 8px !important; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }.confirm-stats span { padding: 13px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; }.confirm-stats small { color: var(--muted); font-size: 9px; text-transform: uppercase; }.confirm-stats strong { margin-top: 4px; font-size: 16px; }

.campaign-stack { display: grid; gap: 10px; }
.campaign-card { min-height: 132px; padding: 20px 22px; display: grid; grid-template-columns: 58px minmax(250px,1fr) minmax(250px,370px) auto; align-items: center; gap: 22px; border: 1px solid var(--line); border-radius: 16px; background: white; transition: border .18s ease, transform .18s ease, box-shadow .18s ease; }
.campaign-card:hover { border-color: #b2bfd4; transform: translateY(-2px); box-shadow: var(--shadow); }
.campaign-date { height: 58px; display: grid; place-items: center; align-content: center; border-radius: 12px; color: var(--cobalt); background: var(--cobalt-soft); }.campaign-date strong { font: 800 21px/1 var(--display); }.campaign-date span { margin-top: 4px; font: 700 8px/1 var(--mono); }
.campaign-copy { min-width: 0; }.campaign-copy > div { display: flex; gap: 6px; }.campaign-copy h2 { margin: 8px 0 3px; overflow: hidden; color: var(--ink); font: 750 16px/1.3 var(--display); text-overflow: ellipsis; white-space: nowrap; }.post-link { color: var(--muted); font-size: 10px; }
.dry-badge { min-height: 24px; padding: 0 8px; display: inline-flex; align-items: center; border-radius: 99px; color: #654da0; background: #f0eaff; border: 1px solid #d8c9f5; font: 800 9px/1 var(--mono); text-transform: uppercase; }
.campaign-progress { min-width: 0; }.progress-label { display: flex; justify-content: space-between; font-size: 11px; }.progress-label span { color: var(--muted); }.progress-track { height: 7px; margin: 8px 0 7px; overflow: hidden; border-radius: 99px; background: #e7ebf2; }.progress-track i { display: block; height: 100%; border-radius: inherit; background: var(--cobalt); }.campaign-progress small { color: var(--muted); font-size: 9px; }.card-arrow { color: var(--cobalt); font-size: 20px; }
.campaign-live { margin-top: 5px; }
.campaign-hero { min-height: 245px; padding: 34px; display: flex; align-items: center; justify-content: space-between; gap: 30px; overflow: hidden; background: var(--ink); border-color: var(--ink); color: white; }
.campaign-hero-copy { min-width: 0; }.campaign-hero-copy > div { display: flex; align-items: center; gap: 7px; }.campaign-id { color: #93a1bb; font: 700 9px/1 var(--mono); text-transform: uppercase; }.campaign-hero h1 { max-width: 740px; margin: 20px 0 16px; font: 780 clamp(25px,3vw,39px)/1.16 var(--display); letter-spacing: -1px; }.campaign-hero a { color: #adc5ff; font-size: 12px; font-weight: 700; }
.orbit-progress { --progress: 0; width: 150px; height: 150px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--coral) calc(var(--progress)*1%), #33425f 0); }
.orbit-progress::before { content: ""; width: 126px; height: 126px; grid-area: 1/1; border-radius: 50%; background: var(--ink); }.orbit-progress > div { z-index: 1; grid-area: 1/1; display: flex; flex-direction: column; text-align: center; }.orbit-progress strong { font: 800 32px/1 var(--display); }.orbit-progress span { margin-top: 5px; color: #a9b5ca; font-size: 9px; text-transform: uppercase; }
.campaign-stat-grid { margin: 11px 0; display: grid; grid-template-columns: repeat(5,1fr); gap: 9px; }.campaign-stat-grid > div { position: relative; min-height: 90px; padding: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: white; }.campaign-stat-grid span { color: var(--muted); font-size: 10px; font-weight: 700; }.campaign-stat-grid strong { display: block; margin-top: 6px; font: 800 24px/1 var(--display); }.stat-bar { position: absolute; inset: auto 0 0; height: 4px; }.stat-bar.success { background: var(--mint); }.stat-bar.pending { background: var(--cobalt); }.stat-bar.danger { background: var(--coral); }.stat-bar.warning { background: #d99b32; }.stat-bar.quiet { background: #a9b2c1; }
.campaign-control-row { min-height: 74px; margin-bottom: 16px; padding: 13px 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid var(--line); border-radius: 13px; background: white; }.campaign-control-row > div:first-child { display: flex; align-items: center; gap: 11px; }.campaign-control-row p { margin: 0; display: flex; flex-direction: column; }.campaign-control-row strong { font-size: 12px; }.campaign-control-row small { color: var(--muted); font-size: 10px; }
.delivery-panel { overflow: hidden; }.compact-tabs a { padding: 0 8px; }.detail-cell { max-width: 300px; color: var(--muted); }.review-row { background: #fffaf0; }

.settings-grid { display: grid; grid-template-columns: minmax(0,1fr) 330px; align-items: start; gap: 18px; }.settings-main, .settings-side { display: grid; gap: 16px; }.settings-form { padding: 0 25px 25px; }.settings-form > .panel-heading { margin: 0 -25px; }.settings-form hr { margin: 25px 0; border: 0; border-top: 1px solid var(--line); }.section-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: var(--cobalt); background: var(--cobalt-soft); font-size: 17px; }.form-footer { margin-top: 24px; padding-top: 20px; display: flex; justify-content: flex-end; border-top: 1px solid var(--line); }
.input-suffix { display: grid; grid-template-columns: 1fr auto; overflow: hidden; }.input-suffix input { border: 0; }.input-suffix b { padding: 0 12px; display: flex; align-items: center; color: var(--muted); background: #f5f7fb; border-left: 1px solid var(--line); font-size: 10px; }
.check-field { margin-top: 16px; align-self: end; min-height: 66px; align-items: center; }
.spend-total { font: 800 29px/1 var(--display); }.spend-bars { padding: 18px 24px; display: grid; gap: 13px; }.spend-bars > div { display: grid; grid-template-columns: 160px 1fr 65px; align-items: center; gap: 12px; }.spend-bars span { display: flex; flex-direction: column; font-size: 11px; font-weight: 700; }.spend-bars small { color: var(--muted); font-size: 9px; font-weight: 500; }.spend-bars i { height: 7px; overflow: hidden; border-radius: 99px; background: #e9edf4; }.spend-bars b { display: block; height: 100%; border-radius: inherit; background: var(--cobalt); }.spend-bars strong { text-align: right; font-size: 11px; }.footnote { margin: 0; padding: 12px 24px; color: var(--muted); background: #f8fafe; border-top: 1px solid var(--line); font-size: 10px; }
.danger-zone { padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }.danger-zone h2 { margin: 5px 0; font: 750 18px/1.2 var(--display); }.danger-zone p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 11px; }
.account-card, .kill-card { padding: 24px; }.account-orbit { width: 62px; height: 62px; margin-bottom: 28px; display: grid; place-items: center; border-radius: 18px; color: white; background: var(--ink); font-size: 25px; }.account-orbit .signal-dot { position: absolute; margin: -48px -48px 0 0; }.account-card h2 { margin: 7px 0 5px; font: 800 27px/1.1 var(--display); }.account-card p:not(.eyebrow), .kill-card p { margin: 0 0 20px; color: var(--muted); font-size: 11px; }
.kill-card { border-color: #efc3bb; background: #fffaf9; }.kill-card .panel-heading { padding: 0 0 17px; }.kill-card.engaged { color: white; background: #a83d32; border-color: #a83d32; }.kill-card.engaged p, .kill-card.engaged .eyebrow { color: #ffd8d1; }.status-led { width: 12px; height: 12px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 5px rgba(238,108,85,.12); }.kill-card.engaged .status-led { background: #ffcc57; }

.connect-layout { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: 18px; }.connect-card { padding: 38px; text-align: center; }.x-lockup { width: 74px; height: 74px; margin: 0 auto 24px; display: grid; place-items: center; border-radius: 20px; color: white; background: var(--ink); font-size: 32px; }.connect-card h2 { margin: 12px 0 6px; font: 800 31px/1.1 var(--display); }.connect-card p { max-width: 430px; margin: 0 auto 24px; color: var(--muted); }.scope-card { padding: 30px; }.scope-list { margin: 18px 0 0; padding: 0; list-style: none; }.scope-list li { padding: 14px 0; display: flex; align-items: center; gap: 13px; border-bottom: 1px solid var(--line); }.scope-list li:last-child { border: 0; }.scope-list li > span { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; color: var(--cobalt); background: var(--cobalt-soft); }.scope-list div { display: flex; flex-direction: column; }.scope-list strong { font-size: 12px; }.scope-list small { margin-top: 2px; color: var(--muted); font-size: 10px; }

.login-body { min-height: 100vh; display: grid; place-items: center; padding: 28px; background: #e9eef7; }
.login-shell { width: min(1080px,100%); min-height: 650px; display: grid; grid-template-columns: 1.08fr .92fr; overflow: hidden; border-radius: 26px; background: white; box-shadow: 0 35px 90px rgba(17,33,63,.18); }
.login-story { position: relative; padding: 40px; overflow: hidden; color: white; background: #142542; }.brand-inverse { position: relative; z-index: 2; }.login-copy { position: relative; z-index: 2; max-width: 470px; margin-top: 120px; }.login-copy h1 { margin: 13px 0 20px; font: 800 clamp(45px,6vw,70px)/.96 var(--display); letter-spacing: -3px; }.login-copy p:last-child { max-width: 420px; color: #b4c1d8; font-size: 16px; }.signal-illustration { position: absolute; right: -120px; bottom: -150px; width: 520px; height: 520px; border: 1px solid rgba(148,180,255,.18); border-radius: 50%; }.signal-illustration span { position: absolute; inset: 65px; border: 1px solid rgba(148,180,255,.22); border-radius: 50%; }.signal-illustration span:nth-child(2) { inset: 140px; }.signal-illustration span:nth-child(3) { inset: 215px; border-color: var(--coral); }.signal-illustration b { position: absolute; top: 80px; left: 55px; width: 13px; height: 13px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 8px rgba(238,108,85,.12); animation: orbit 8s linear infinite; transform-origin: 200px 180px; }
.login-panel { padding: 55px; display: grid; align-items: center; }.login-form { width: 100%; max-width: 350px; margin: auto; }.login-form h2 { margin: 9px 0 7px; font: 800 34px/1.1 var(--display); letter-spacing: -1px; }.login-form > .muted { margin: 0 0 25px; color: var(--muted); }.login-form .button { margin-top: 18px; }.dev-hint { color: var(--muted); text-align: center; font-size: 10px; }
.muted { color: var(--muted); }
.danger-text { color: #b74437; }

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61,214,166,.35); } 70%,100% { box-shadow: 0 0 0 8px rgba(61,214,166,0); } }
@keyframes rail { from { transform: translateX(-27px); } to { transform: translateX(27px); } }
@keyframes orbit { to { transform: rotate(360deg); } }

@media (max-width: 1360px) {
  .roster-panel .panel-tools { align-items: flex-start; flex-direction: column; }
  .roster-panel .tool-row { width: 100%; flex-wrap: wrap; }
}

@media (max-width: 1180px) {
  .dispatch-rail { padding: 0 24px; }.rail-line { display: none; }
  .panel-tools { align-items: flex-start; flex-direction: column; }.tool-row { width: 100%; flex-wrap: wrap; }
  .composer-grid { grid-template-columns: minmax(0,1fr) 280px; }.campaign-card { grid-template-columns: 55px 1fr auto; }.campaign-progress { grid-column: 2; }.card-arrow { grid-column: 3; grid-row: 1/3; }
  .cards-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 74px minmax(0,1fr); }.sidebar { padding: 20px 12px; }.brand > span:last-child, .primary-nav a > span:not(.nav-icon):not(.nav-count), .connection-chip span:last-child, .sidebar-foot .text-button { display: none; }.brand { margin: 0 auto; }.primary-nav a { justify-content: center; padding: 0; }.nav-count { position: absolute; margin: -27px -31px 0 0; }.connection-chip { width: 45px; justify-content: center; margin: 0 auto; }
  .dispatch-rail { gap: 16px; }.rail-item:nth-of-type(2) { display: none; }
  .main-content { padding: 30px 22px 50px; }.metric-strip { grid-template-columns: repeat(2,1fr); }.metric-strip > div:nth-child(2) { border-right: 0; }.metric-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .composer-grid, .settings-grid { grid-template-columns: 1fr; }.send-summary { position: static; }.settings-side { grid-template-columns: 1fr 1fr; }
  .campaign-stat-grid { grid-template-columns: repeat(3,1fr); }.connect-layout { grid-template-columns: 1fr; }
  .login-shell { grid-template-columns: 1fr; }.login-story { min-height: 330px; }.login-copy { margin-top: 65px; }.login-copy h1 { font-size: 47px; }.login-panel { padding: 42px; }
}

@media (max-width: 680px) {
  .app-shell { display: block; }.sidebar { position: fixed; z-index: 50; inset: auto 0 0; width: 100%; height: 66px; padding: 7px 12px; flex-direction: row; align-items: center; border: 0; border-top: 1px solid rgba(255,255,255,.1); }.sidebar .brand, .sidebar-foot { display: none; }.primary-nav { width: 100%; margin: 0; grid-template-columns: repeat(4,1fr); gap: 4px; }.primary-nav a { min-height: 51px; flex-direction: column; gap: 2px; border-radius: 9px; font-size: 9px; }.primary-nav a > span:not(.nav-count) { display: block !important; }.primary-nav .nav-icon { font-size: 17px; }.nav-count { margin: -30px -35px 0 0; }
  .workspace { padding-bottom: 66px; }.dispatch-rail { height: 64px; padding: 0 15px; }.rail-item { display: none; }.rail-action { margin-left: auto; }.system-banner { padding: 10px 16px; }.main-content { padding: 24px 15px 40px; }
  .page-head.split, .composer-head { align-items: flex-start; flex-direction: column; }.page-head h1 { font-size: 37px; }.head-actions { width: 100%; }.head-actions .button { flex: 1; }.safety-note { max-width: none; width: 100%; }
  .metric-strip { grid-template-columns: 1fr 1fr; }.metric-strip > div { min-height: 88px; padding: 14px; }.metric-strip strong { font-size: 26px; }.status-tabs { width: 100%; overflow-x: auto; }.tool-row { display: grid; grid-template-columns: 1fr auto; }.search-form { grid-column: 1/-1; }.search-form input { width: 100%; }.bulk-form { grid-column: 1/-1; }.bulk-form select { flex: 1; }
  .field-pair, .audience-list, .settings-side, .confirm-stats { grid-template-columns: 1fr; }.audience-person:nth-child(odd) { border-right: 0; }.audience-person:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }.audience-person:last-child { border-bottom: 0; }
  .campaign-card { padding: 16px; grid-template-columns: 50px 1fr auto; gap: 13px; }.campaign-progress { grid-column: 1/-1; }.campaign-hero { padding: 24px; flex-direction: column; align-items: flex-start; }.orbit-progress { width: 112px; height: 112px; align-self: center; }.orbit-progress::before { width: 94px; height: 94px; }.orbit-progress strong { font-size: 25px; }.campaign-stat-grid { grid-template-columns: repeat(2,1fr); }.campaign-control-row { align-items: flex-start; flex-direction: column; }.control-actions { width: 100%; justify-content: flex-start; }
  .cards-grid { grid-template-columns: 1fr; }.spend-bars > div { grid-template-columns: 120px 1fr 55px; }.danger-zone { align-items: flex-start; flex-direction: column; }.login-body { padding: 0; }.login-shell { min-height: 100vh; border-radius: 0; }.login-story { min-height: 290px; padding: 28px; }.login-copy { margin-top: 45px; }.login-copy h1 { font-size: 40px; letter-spacing: -2px; }.login-copy p:last-child { font-size: 13px; }.login-panel { padding: 34px 25px; }
}

/* Public legal pages */
.legal-body { min-height: 100vh; background: #e9eef7; padding: 34px 18px 55px; color: var(--ink); }
.legal-shell { max-width: 720px; margin: 0 auto; }
.legal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.legal-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 16px; }
.legal-head nav { display: flex; gap: 16px; font-size: 12px; }
.legal-head nav a { color: var(--muted); text-decoration: none; font-weight: 700; }
.legal-head nav a:hover { color: var(--ink); }
.legal-prose { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 44px 48px; }
.legal-prose h1 { font: 800 30px/1.15 var(--display); letter-spacing: -0.5px; margin: 0 0 5px; }
.legal-updated { color: var(--muted); font-size: 12px; margin: 0 0 24px; }
.legal-prose h2 { font-size: 15px; margin: 26px 0 8px; }
.legal-prose p, .legal-prose li { font-size: 13.5px; line-height: 1.65; color: var(--ink-2); }
.legal-prose ul { padding-left: 20px; margin: 8px 0; }
.legal-foot { text-align: center; margin-top: 18px; font-size: 11px; color: var(--muted); }
.legal-foot a { color: inherit; }
@media (max-width: 640px) { .legal-prose { padding: 28px 20px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
