/* Outreach */
@font-face { font-family: "Public Sans"; font-weight: 400; font-display: swap; src: url(fonts/public-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 500; font-display: swap; src: url(fonts/public-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-display: swap; src: url(fonts/public-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 700; font-display: swap; src: url(fonts/public-sans-latin-700-normal.woff2) format("woff2"); }

:root {
  --ink: #1B2230;
  --ink-2: #4A5468;
  --ink-3: #7A8496;
  --paper: #F7F8FA;
  --card: #FFFFFF;
  --rule: #E2E5EA;
  --rule-2: #EEF0F3;
  /* Action colour follows the current brand (set inline by the layout). */
  --action: var(--brand, #2747C7);
  --action-ink: color-mix(in srgb, var(--action) 80%, black);
  --action-wash: color-mix(in srgb, var(--action) 8%, white);
  --action-line: color-mix(in srgb, var(--action) 28%, white);

  /* Aging ramp */
  --age-0: #B9C3D1;
  --age-30: #E0A62E;
  --age-60: #D06A26;
  --age-90: #A8231C;

  --ok: #1F7A4D;   --ok-wash: #E7F4EC;
  --warn: #8A5A00; --warn-wash: #FBF1DC;
  --stop: #A8231C; --stop-wash: #FBE9E7;

  --radius-sm: 4px;
  --radius: 8px;
  --font: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 14px/1.5 var(--font); color: var(--ink); background: var(--paper); font-feature-settings: "tnum" 1; }
a { color: var(--action); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: 24px; font-weight: 700; }
h2 { font-size: 15px; font-weight: 600; }
h3, .h3 { font-size: 14px; font-weight: 600; }
p { margin: 0; }
code { font-size: 12.5px; background: var(--rule-2); padding: 1px 5px; border-radius: 3px; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { background: var(--card); border-right: 1px solid var(--rule); color: var(--ink-2); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 20px 14px 16px; }
.side-head { padding: 0 6px 18px; margin-bottom: 14px; border-bottom: 1px solid var(--rule-2); }
.side-logo { display: block; width: 100%; max-width: 188px; max-height: 56px; object-fit: contain; object-position: left center; }
.side-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; color: var(--ink); }
.app-name { display: flex; flex-direction: column; margin-top: 12px; font-size: 12px; font-weight: 500; color: var(--ink-3); line-height: 1.35; }
.app-name strong { color: var(--ink); font-weight: 700; font-size: 13px; letter-spacing: 0.03em; }
.brand-switch { margin: 0 6px 14px; }
.brand-switch label { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 4px; }
.brand-current { display: flex; align-items: center; gap: 8px; border: 1px solid #D3D8DF; border-radius: var(--radius-sm); padding: 0 0 0 8px; background: var(--card); }
.brand-current img { height: 20px; width: auto; max-width: 64px; object-fit: contain; flex: none; }
.brand-current select { border: 0 !important; box-shadow: none !important; padding-left: 0 !important; }
.side nav { display: flex; flex-direction: column; gap: 1px; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--radius-sm); color: var(--ink-2); font-weight: 500; }
.side nav a:hover { background: var(--paper); color: var(--ink); text-decoration: none; }
.side nav a.on { background: var(--action-wash); color: var(--action-ink); box-shadow: inset 2px 0 0 var(--action); }
.nav-sep { font-size: 12px; color: var(--ink-3); padding: 16px 10px 6px; }
.side-foot { margin-top: auto; border-top: 1px solid var(--rule-2); padding: 14px 6px 0; }
.me { display: flex; gap: 10px; align-items: center; }
.me strong { display: block; color: var(--ink); font-weight: 600; font-size: 13px; }
.me small { color: var(--ink-3); font-size: 12px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--action-wash); color: var(--action-ink); display: grid; place-items: center; font-weight: 600; }
.me-actions { display: flex; gap: 14px; margin-top: 10px; font-size: 12.5px; }
.me-actions a, .linkish { color: var(--ink-3); display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.me-actions a:hover, .linkish:hover { color: var(--ink); text-decoration: none; }
.me-actions .icon { width: 14px; height: 14px; }

.main-wrap { min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 16px; min-height: 58px; padding: 12px 32px; border-bottom: 1px solid var(--rule); background: var(--card); }
.module-tabs { display: flex; gap: 2px; align-self: stretch; margin: -12px 0; }
.module-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; color: var(--ink-2); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.module-tabs a:hover { color: var(--ink); text-decoration: none; background: var(--paper); }
.module-tabs a.on { color: var(--action-ink); border-bottom-color: var(--action); }
.top-context { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.report-chip { color: var(--ink-2); font-size: 13px; }
.report-chip strong { color: var(--ink); }
.report-chip .sub { color: var(--ink-3); margin-left: 8px; padding-left: 8px; border-left: 1px solid var(--rule); }
.menu-btn { display: none; }
main { padding: 28px 32px 64px; max-width: 1320px; width: 100%; }
main:focus { outline: none; }

/* ---------- Page structure ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 22px; }
.page-head p { margin-top: 4px; max-width: 72ch; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); font-weight: 500; margin-bottom: 10px; }
.back .icon { width: 14px; height: 14px; }
.panel { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 20px; }
.panel.flush { padding: 0; overflow: hidden; }
.panel > h2 { margin-bottom: 12px; }
.panel h3 { margin: 18px 0 8px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.panel.narrow { max-width: 460px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-2 > .panel { margin-bottom: 0; }
.grid-2.wide-left { grid-template-columns: 3fr 2fr; margin-bottom: 20px; }
.grid-2.tight { gap: 14px 16px; }
.grid-account { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-lg > .panel:last-child { margin-bottom: 0; }
.sticky { position: sticky; top: 20px; }
.span-2 { grid-column: span 2; }
.self-end { align-self: end; padding-bottom: 8px; }
.row { display: flex; align-items: center; }
.row.between { justify-content: space-between; gap: 12px; }
.row.end { justify-content: flex-end; gap: 8px; }
.row.gap { gap: 10px; }
.row.gap-sm { gap: 6px; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.strong { font-weight: 600; color: var(--ink); }
a.strong:hover { color: var(--action); }
.err { color: var(--stop); }
.wrap { overflow-wrap: anywhere; }
.link { font-weight: 500; font-size: 13px; }
.hint { font-size: 12.5px; color: var(--ink-3); margin-top: 12px; }

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: var(--radius-sm);
       border: 1px solid var(--rule); background: var(--card); color: var(--ink); font: 600 13.5px/1 var(--font); cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: #C9CED6; text-decoration: none; background: #FBFBFC; }
.btn.primary { background: var(--action); border-color: var(--action); color: #fff; }
.btn.primary:hover { background: var(--action-ink); }
.btn.ghost { background: transparent; }
.btn.sm { height: 30px; padding: 0 10px; font-size: 13px; }
.btn.block { width: 100%; }
.btn.danger { background: var(--stop); border-color: var(--stop); color: #fff; }
.btn.danger:hover { background: #8E1D17; }
.btn.danger-ghost { background: transparent; color: var(--stop); border-color: transparent; }
.btn.danger-ghost:hover { background: var(--stop-wash); }
.icon-btn { width: 30px; height: 30px; display: inline-grid; place-items: center; border: 1px solid var(--rule); background: var(--card); border-radius: var(--radius-sm); color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { color: var(--action); border-color: var(--action); background: var(--action-wash); }

.field { display: flex; flex-direction: column; gap: 5px; }
.field > span:first-child { font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.field.inline { flex-direction: row; align-items: center; gap: 8px; }
.field small { font-size: 12px; }
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]), select, textarea {
  font: inherit; color: var(--ink); background: var(--card); border: 1px solid #D3D8DF; border-radius: var(--radius-sm); padding: 7px 10px; min-height: 36px; width: 100%; }
.field.inline input, .filters select, .filters input { width: auto; }
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--action); box-shadow: 0 0 0 3px var(--action-wash); }
input[type=checkbox], input[type=radio] { width: 16px; height: 16px; accent-color: var(--action); margin: 0; }
input[type=color] { width: 56px; height: 36px; border: 1px solid #D3D8DF; border-radius: var(--radius-sm); padding: 2px; background: var(--card); }
.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.with-unit { display: flex; align-items: center; gap: 8px; }
.with-unit input { max-width: 90px; }
.with-unit em { font-style: normal; color: var(--ink-3); }

/* ---------- Flash ---------- */
.flash { padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; border: 1px solid; font-weight: 500; }
.flash.ok { background: var(--ok-wash); border-color: #BFE0CC; color: #155C39; }
.flash.error { background: var(--stop-wash); border-color: #F1C4BF; color: #861A15; }
.flash.info { background: var(--action-wash); border-color: var(--action-line); color: var(--action-ink); font-weight: 400; }
.flash ul { margin: 6px 0 0; padding-left: 18px; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 4px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge.ready { background: var(--ok-wash); color: var(--ok); }
.badge.muted { background: var(--rule-2); color: var(--ink-2); }
.badge.warn { background: var(--warn-wash); color: var(--warn); }
.badge.stop { background: var(--stop-wash); color: var(--stop); }
.badge.info { background: var(--action-wash); color: var(--action-ink); }
.badge.lg { height: 28px; padding: 0 12px; font-size: 13px; border-radius: 5px; }
.tag { font-size: 11.5px; color: var(--ink-2); border: 1px solid var(--rule); border-radius: 3px; padding: 0 5px; margin-left: 4px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: baseline; }

/* ---------- Aging strip (signature element) ---------- */
.strip { display: flex; width: 132px; height: 8px; border-radius: 2px; overflow: hidden; background: var(--rule-2); gap: 1px; }
.strip.lg { width: 100%; height: 14px; border-radius: 3px; margin: 18px 0 14px; gap: 2px; }
.seg { display: block; min-width: 3px; }
.seg.b0_30, .sw.b0_30, .hero-seg.b0_30 { background: var(--age-0); }
.seg.b30_60, .sw.b30_60, .hero-seg.b30_60 { background: var(--age-30); }
.seg.b60_90, .sw.b60_90, .hero-seg.b60_90 { background: var(--age-60); }
.seg.b90_plus, .sw.b90_plus, .hero-seg.b90_plus { background: var(--age-90); }
.seg.empty { background: var(--rule-2); }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 7px; vertical-align: -1px; }

.aging-hero { padding: 26px 26px 22px; }
.hero-line { font-size: 19px; line-height: 1.4; color: var(--ink-2); max-width: 64ch; }
.hero-line strong { color: var(--ink); font-size: 30px; font-weight: 700; letter-spacing: -0.02em; margin-right: 4px; }
.hero-bar { display: flex; gap: 3px; height: 40px; margin: 22px 0 16px; }
.hero-seg { min-width: 6px; border-radius: 3px; }
.hero-legend { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; gap: 16px; }
.hero-legend div { border-top: 1px solid var(--rule); padding-top: 10px; }
.hero-legend dt { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.hero-legend dd { margin: 2px 0 0; font-size: 17px; font-weight: 600; display: inline; }
.hero-legend dd.muted { font-size: 13px; font-weight: 400; margin-left: 8px; }

/* ---------- Tables ---------- */
.table-wrap { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--ink-2); padding: 10px 14px; border-bottom: 1px solid var(--rule); background: #FAFBFC; white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--rule-2); vertical-align: top; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #FAFBFD; }
.table tfoot td { border-top: 1px solid var(--rule); border-bottom: 0; font-weight: 600; padding-top: 12px; }
.table.compact td, .table.compact th { padding: 8px 0; background: none; }
.table.compact th + th, .table.compact td + td { padding-left: 12px; }
.panel .table:not(.compact) th:first-child, .panel .table:not(.compact) td:first-child { padding-left: 22px; }
.num { text-align: right; white-space: nowrap; }
.end { text-align: right; }
.sub { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.empty-row { text-align: center; color: var(--ink-3); padding: 36px 14px !important; }
tr.dim td { color: var(--ink-3); }
.phone { white-space: nowrap; }
.queue td { vertical-align: middle; }
.queue .chk { width: 40px; padding-right: 0; }
.queue td:nth-child(3) .strip { margin-top: 4px; }
.queue tr.state-suppressed td { color: var(--ink-3); }
.actions { white-space: nowrap; text-align: right; }
.actions .icon-btn + .icon-btn { margin-left: 4px; }
.rule-name { font-size: 13px; color: var(--ink-2); }

.chans { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; }
.chan { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-2); }
.chan .icon { width: 14px; height: 14px; }

/* ---------- Queue controls ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--rule); margin-bottom: 16px; overflow-x: auto; }
.tabs a { padding: 9px 12px; color: var(--ink-2); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
.tabs .count { font-size: 12px; color: var(--ink-3); margin-left: 4px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; align-items: center; }
.search { position: relative; flex: 1 1 280px; max-width: 420px; }
.search .icon { position: absolute; left: 10px; top: 10px; color: var(--ink-3); }
.search input { padding-left: 32px !important; width: 100% !important; }
.bulkbar { display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin-bottom: 10px; background: var(--action-wash); border: 1px solid var(--action-line); border-radius: var(--radius-sm); position: sticky; top: 8px; z-index: 5; }
.bulkbar > span { margin-right: auto; }
.bulkbar[hidden] { display: none; }
.pager { display: flex; gap: 18px; justify-content: center; align-items: center; margin-top: 18px; color: var(--ink-2); }

/* ---------- Override ---------- */
.contact-btns { display: inline-flex; gap: 6px; }
.contacted { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.contacted .chan { white-space: nowrap; }
.contact-btns .btn { height: 30px; padding: 0 10px; }
.modal.wide { width: min(620px, calc(100vw - 32px)); }
.seg-toggle { display: inline-flex; border: 1px solid var(--rule); border-radius: var(--radius-sm); overflow: hidden; align-self: flex-start; }
.seg-toggle label { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; cursor: pointer; font-weight: 600; color: var(--ink-2); }
.seg-toggle label + label { border-left: 1px solid var(--rule); }
.seg-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.seg-toggle label:has(input:checked) { background: var(--action-wash); color: var(--action-ink); }
.seg-toggle label:has(input:focus-visible) { outline: 2px solid var(--action); outline-offset: -2px; }
.warn-note { color: var(--warn) !important; font-weight: 500; }
.tag-override { font-size: 11.5px; font-weight: 600; color: var(--warn); background: var(--warn-wash); border-radius: 3px; padding: 1px 6px; margin-left: 6px; }

/* ---------- Clickable rows ---------- */
tr.row-link { cursor: pointer; }
tr.row-link:hover td { background: var(--action-wash) !important; }
.report-stats { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--rule-2); }
.report-stats div { display: flex; flex-direction: column; }
.report-stats strong { font-size: 18px; }
.report-stats span { font-size: 12.5px; color: var(--ink-3); }

/* ---------- Brand dashboard ---------- */
.fn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 20px; }
.fn-card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); display: flex; flex-direction: column; }
.fn-head { display: flex; gap: 14px; padding: 22px 24px 0; }
.fn-head h2 { font-size: 17px; margin-bottom: 3px; }
.fn-icon { width: 40px; height: 40px; border-radius: 8px; background: var(--action-wash); color: var(--action-ink); display: grid; place-items: center; flex: none; }
.fn-icon .icon { width: 20px; height: 20px; }
.fn-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 24px 0; padding: 16px 0; border-top: 1px solid var(--rule-2); border-bottom: 1px solid var(--rule-2); }
.fn-stats dt { font-size: 12.5px; color: var(--ink-3); }
.fn-stats dd { margin: 3px 0 0; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.fn-stats dd small { font-size: 13px; font-weight: 500; color: var(--ink-3); }
.fn-status { margin: 14px 24px 0; font-size: 13px; color: var(--ink-2); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.fn-empty { margin: 20px 24px 0; padding: 18px; background: var(--paper); border-radius: var(--radius-sm); color: var(--ink-2); font-size: 13.5px; }
.fn-foot { margin-top: auto; padding: 20px 24px 22px; display: flex; align-items: center; gap: 18px; }

/* ---------- Installation reminders ---------- */
.sched-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; margin-bottom: 16px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); flex-wrap: wrap; }
.sched-steps { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
.auto-toggle { display: flex; align-items: center; gap: 10px; margin: 0; }
.installs .day-row th { background: var(--paper); padding: 10px 14px; font-weight: 400; border-bottom: 1px solid var(--rule); border-top: 1px solid var(--rule); }
.installs tbody:first-of-type .day-row th { border-top: 0; }
.installs .day-rel { font-weight: 700; color: var(--ink); margin-right: 4px; }
.installs .day-row .count { margin-left: 10px; font-size: 12px; color: var(--ink-3); }
.installs td { vertical-align: middle; }
.installs td.win { white-space: nowrap; font-weight: 600; color: var(--ink); width: 170px; }
.rems { display: flex; flex-wrap: wrap; gap: 6px; }
.rem { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: 4px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.rem .icon { width: 13px; height: 13px; }
.rem-sent { background: var(--ok-wash); color: var(--ok); }
.rem-due { background: var(--warn-wash); color: var(--warn); }
.rem-scheduled { background: var(--rule-2); color: var(--ink-2); font-weight: 500; }
.rem-missed { background: transparent; color: var(--ink-3); border: 1px dashed #C9CED6; font-weight: 500; }
.rem-no_number { background: var(--stop-wash); color: var(--stop); }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.install-when { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.install-when > div { display: flex; flex-direction: column; gap: 2px; }
.install-when .label { font-size: 12.5px; color: var(--ink-3); font-weight: 500; }
.rem-timeline { list-style: none; margin: 0; padding: 0; }
.rem-timeline li { padding: 12px 0; border-top: 1px solid var(--rule-2); }
.rem-timeline li:first-child { border-top: 0; padding-top: 0; }
.rem-timeline strong { display: inline-flex; align-items: center; gap: 6px; }
.sched-head, .sched-row { display: grid; grid-template-columns: 40px 110px minmax(250px, 1.2fr) minmax(200px, 1fr) 36px; gap: 12px; align-items: center; padding: 10px 20px; }
.sched-head { font-size: 12.5px; font-weight: 600; color: var(--ink-2); background: #FAFBFC; border-bottom: 1px solid var(--rule); }
.sched-row { border-bottom: 1px solid var(--rule-2); }
.sched-row .when { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.sched-row .when input[type=number] { width: 64px !important; }
.sched-row .when input[type=time] { width: 120px !important; }
.sched-foot { display: flex; align-items: center; gap: 14px; padding: 14px 20px; flex-wrap: wrap; }
.example-list { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 6px; }
.example-list li { display: flex; align-items: center; gap: 8px; }
.linkish-btn { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--action); font-weight: 500; font-size: 13px; }
.sync-state { font-size: 13px; padding: 4px 10px; border-radius: 4px; }
.sync-state.ok { background: var(--ok-wash); color: var(--ok); }
.sync-state.bad { background: var(--stop-wash); color: var(--stop); }
.sql-preview { margin-top: 14px; font-size: 13px; }
.sql-preview summary { cursor: pointer; color: var(--action); }
.sql-preview code { display: block; margin-top: 8px; padding: 10px 12px; white-space: pre-wrap; word-break: break-word; }

/* ---------- Run ---------- */
.run-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 22px; margin-bottom: 18px; background: var(--card); border: 1px solid var(--rule); border-left: 3px solid var(--action); border-radius: 0 var(--radius) var(--radius) 0; }
.run-info p { margin: 0; }
.run-title { font-size: 15px; }
.run-info .muted { margin-top: 2px; }
.run-info .sub { margin-top: 6px; }
.run-warn { margin-top: 6px !important; color: var(--warn); font-weight: 500; font-size: 13px; }
.run-btn { height: 44px; padding: 0 26px; font-size: 15px; gap: 9px; }
.run-btn .icon { width: 15px; height: 15px; fill: currentColor; stroke: none; }

.run-bar.running { border-left-color: var(--age-30); }
.run-bar.running .run-info { flex: 1; }
.progress { height: 8px; background: var(--rule-2); border-radius: 4px; overflow: hidden; margin: 10px 0 6px; max-width: 640px; }
.progress i { display: block; height: 100%; background: var(--action); transition: width .4s ease; }

/* ---------- Dashboard bits ---------- */
.week { display: flex; gap: 32px; padding: 6px 0 14px; border-bottom: 1px solid var(--rule-2); margin-bottom: 4px; }
.week-n { font-size: 26px; font-weight: 700; margin-right: 6px; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--rule-2); }
.feed li:last-child { border-bottom: 0; }
.feed-ic { width: 28px; height: 28px; border-radius: 50%; background: var(--rule-2); display: grid; place-items: center; color: var(--ink-2); flex: none; }
.feed-ic .icon { width: 14px; height: 14px; }
.feed-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.feed-body a { font-weight: 600; color: var(--ink); }
.empty-state { text-align: left; padding: 40px; max-width: 620px; }
.empty-state h1, .empty-state h2 { font-size: 20px; margin-bottom: 8px; }
.empty-state p { color: var(--ink-2); margin-bottom: 18px; }

/* ---------- Account ---------- */
.balance-row { display: flex; gap: 40px; flex-wrap: wrap; }
.balance-row .label { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 500; }
.big { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; display: block; }
.muted-num { color: var(--ink-2); font-weight: 600; font-size: 20px; padding-top: 4px; }
.bucket-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0; }
.bucket-list dt { font-size: 12.5px; color: var(--ink-2); }
.bucket-list dd { margin: 2px 0 0; font-weight: 600; }
.contact-block { padding: 14px 0; border-top: 1px solid var(--rule-2); }
.contact-block:first-of-type { border-top: 0; padding-top: 4px; }
.contact-block h3 { margin: 0; display: inline-flex; gap: 6px; align-items: center; }
.contact-block form { margin-top: 10px; }
.msg-preview { margin: 10px 0 6px; padding: 12px 14px; background: var(--paper); border-left: 3px solid var(--age-30); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink); white-space: pre-wrap; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; margin: 0; }
.kv dt { color: var(--ink-3); font-size: 13px; }
.kv dd { margin: 0; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 10px 0 10px 18px; border-left: 2px solid var(--rule); position: relative; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--card); border: 2px solid var(--ink-3); }
.timeline li.note::before { border-color: var(--age-30); }
.timeline details { margin-top: 4px; font-size: 13px; }
.timeline summary { cursor: pointer; color: var(--action); }

/* ---------- Rules ---------- */
.rule-list { list-style: none; margin: 0; padding: 0; }
.rule-list li { display: grid; grid-template-columns: 32px 1fr auto auto auto; gap: 16px; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--rule-2); }
.rule-list li:last-child { border-bottom: 0; }
.rule-list li.off { background: #FBFBFC; }
.rule-list li.off .rule-main { opacity: .6; }
.pick { border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: 10px 14px 12px; margin: 0; display: flex; flex-direction: column; gap: 8px; max-height: 240px; overflow: auto; }
.pick-group { font-size: 12px; color: var(--ink-3); font-weight: 600; margin-top: 4px; }
.pick legend { font-weight: 600; font-size: 13px; padding: 0 4px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.time-window { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.time-window input { width: 118px !important; min-height: 32px !important; padding: 4px 8px !important; }
.time-window.off { opacity: .45; }
.run-later { color: var(--ink-2) !important; }
.empty-block { padding: 40px 32px; max-width: 640px; }
.empty-block h2 { font-size: 18px; margin-bottom: 8px; }
.empty-block p { color: var(--ink-2); margin-bottom: 18px; }
.rule-actions { display: flex; gap: 6px; }
.row-actions { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; }
.row-actions form { margin: 0; }
.icon-btn.danger-icon:hover { color: var(--stop); border-color: var(--stop); background: var(--stop-wash); }
.clear-list { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--rule); border-radius: var(--radius-sm); }
.clear-item { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: start; padding: 14px 16px; border-top: 1px solid var(--rule-2); cursor: pointer; }
.clear-item:first-child { border-top: 0; }
.clear-item input { margin-top: 2px; }
.clear-item strong { display: block; }
.clear-item .muted { font-size: 13px; }
.clear-count { font-size: 13px; color: var(--ink-2); text-align: right; white-space: nowrap; }
.scope-pick { display: flex; gap: 20px; flex-wrap: wrap; }
.confirm-input { max-width: 220px; }
[data-clear-form] .c-all { display: none; }
[data-clear-form]:has(input[name=scope][value=all]:checked) .c-all { display: inline; }
[data-clear-form]:has(input[name=scope][value=all]:checked) .c-brand { display: none; }
.rule-actions form { margin: 0; }
.prio { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--rule); display: grid; place-items: center; font-weight: 600; color: var(--ink-2); font-size: 13px; }
.rule-desc { color: var(--ink-2); margin: 4px 0 2px; max-width: 80ch; }
.rule-count { text-align: right; min-width: 90px; }
.rule-count strong { display: block; font-size: 20px; }
.switch { width: 38px; height: 22px; border: 0; background: #CBD1DA; position: relative; cursor: pointer; padding: 0; border-radius: 5px; }
.switch i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 3px; background: #fff; transition: transform .15s; }
.switch.on { background: var(--ok); }
.switch.on i { transform: translateX(16px); }
.match-line { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.match-line select { width: auto; }
.conds { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.cond { display: grid; grid-template-columns: 1.3fr 1fr 1fr 32px; gap: 8px; align-items: center; padding: 8px; background: var(--paper); border-radius: var(--radius-sm); }
.cond .rm { width: 32px; height: 32px; border: 0; background: none; color: var(--ink-3); cursor: pointer; border-radius: var(--radius-sm); }
.cond .rm:hover { color: var(--stop); background: var(--stop-wash); }
.cond .money { position: relative; }
.cond .money::before { content: "$"; position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.cond .money input { padding-left: 22px !important; }
.preview-count .big { font-size: 34px; display: inline; margin-right: 6px; }
.sample { list-style: none; padding: 0; margin: 10px 0 0; }
.sample li { display: flex; justify-content: space-between; padding: 5px 0; border-top: 1px solid var(--rule-2); }

/* ---------- Templates ---------- */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 20px; }
.tpl-grid .panel { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.tpl h2 { display: inline-flex; align-items: center; gap: 7px; }
.tpl-body { color: var(--ink-2); flex: 1; }
mark { background: var(--action-wash); color: var(--action-ink); padding: 0 3px; border-radius: 3px; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chip { border: 1px solid var(--rule); background: var(--card); border-radius: 5px; height: 28px; padding: 0 10px; font: 500 12.5px var(--font); color: var(--ink-2); cursor: pointer; }
.chip:hover { border-color: var(--action); color: var(--action); }
.phone-preview { background: var(--paper); border-radius: var(--radius); padding: 18px 14px; margin: 12px 0 10px; min-height: 120px; }
.bubble { background: #E7EAF0; padding: 10px 13px; border-radius: 16px 16px 16px 4px; max-width: 92%; white-space: pre-wrap; overflow-wrap: anywhere; }
.call-mode .bubble { background: var(--card); border: 1px dashed var(--rule); border-radius: var(--radius-sm); max-width: 100%; }

/* ---------- Upload ---------- */
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 34px 18px; border: 1.5px dashed #C3CAD5; border-radius: var(--radius); background: var(--paper); cursor: pointer; position: relative; }
.dropzone:hover, .dropzone.over { border-color: var(--action); background: var(--action-wash); }
.dropzone .icon { width: 26px; height: 26px; color: var(--ink-3); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dz-title { font-weight: 600; }
.checklist { padding-left: 18px; margin: 10px 0; }
.checklist li { padding: 2px 0; }

/* ---------- Brand mapping ---------- */
.map-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; margin-top: 14px; }
.map-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 10px; font-size: 13px; }
.req { font-style: normal; font-size: 11.5px; color: var(--age-60); margin-left: 4px; }

/* ---------- Brand logos ---------- */
.logo-edit { display: grid; grid-template-columns: 240px 1fr; gap: 20px; align-items: start; }
.logo-frame { border: 1px solid var(--rule); border-radius: var(--radius); padding: 18px; min-height: 90px; display: grid; place-items: center; background: var(--card); }
.logo-frame img { max-width: 100%; max-height: 64px; }
.brand-cell { display: flex; align-items: center; gap: 12px; }
.brand-thumb { height: 26px; width: 120px; object-fit: contain; object-position: left center; }

/* ---------- Modal ---------- */
.modal { border: 0; border-radius: var(--radius); padding: 24px; width: min(520px, calc(100vw - 32px)); box-shadow: 0 24px 60px rgba(27, 34, 48, .28); color: var(--ink); }
.modal::backdrop { background: rgba(27, 34, 48, .45); }
.modal .note { font-size: 12.5px; color: var(--ink-3); }

/* ---------- Auth ---------- */
body.auth { background: var(--card); }
.auth-split { display: grid; grid-template-columns: minmax(360px, 44%) 1fr; min-height: 100vh; }
.auth-art { position: relative; overflow: hidden; color: #fff; padding: 56px 60px 44px; display: flex; flex-direction: column;
  background: linear-gradient(160deg, #121C36 0%, #16234A 30%, #1F386E 62%, #3964B7 100%); }
.orb { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .055); pointer-events: none; }
.orb-a { width: 420px; height: 420px; left: -140px; top: -145px; }
.orb-b { width: 560px; height: 560px; right: -190px; bottom: -230px; background: rgba(120, 165, 235, .14); }
.auth-art > :not(.orb) { position: relative; }
.auth-brand { font-weight: 700; font-size: 22px; letter-spacing: 0.04em; }
.auth-brand small { display: block; font-size: 13px; font-weight: 500; letter-spacing: 0; color: rgba(255, 255, 255, .62); margin-top: 2px; }
.auth-pitch { margin: auto 0; max-width: 470px; }
.auth-pitch h2 { font-size: 38px; line-height: 1.18; font-weight: 700; letter-spacing: -0.02em; }
.auth-pitch h2 span { color: #6CC5A0; }
.auth-pitch p { margin-top: 22px; font-size: 16px; line-height: 1.75; color: rgba(225, 230, 240, .8); }
.auth-pitch ul { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 13.5px; font-weight: 600; color: rgba(225, 230, 240, .85); }
.auth-pitch li { display: flex; align-items: center; gap: 9px; }
.auth-pitch li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5FAE8E; }
.auth-foot { font-size: 12.5px; color: rgba(225, 230, 240, .55); }
.auth-form { display: grid; place-items: center; padding: 40px 24px; }
.auth-form form { width: min(360px, 100%); }
.auth-logo { display: block; width: 220px; max-width: 100%; height: auto; margin-bottom: 28px; }
.auth-form h1 { font-size: 26px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-account, .grid-2, .grid-2.wide-left { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .hero-legend, .bucket-list { grid-template-columns: repeat(2, 1fr); }
  .map-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 40; transform: translateX(-100%); transition: transform .2s; }
  body.nav-open .side { transform: none; box-shadow: 0 0 0 100vmax rgba(27, 34, 48, .4); }
  .logo-edit { grid-template-columns: 1fr; }
  .menu-btn { display: inline-flex; height: 32px; padding: 0 10px; border: 1px solid var(--rule); background: var(--card); border-radius: var(--radius-sm); font: 600 13px var(--font); }
  .top { padding: 10px 16px; flex-wrap: wrap; }
  .top .btn { display: none; }
  main { padding: 20px 16px 48px; }
  .page-head { flex-direction: column; align-items: flex-start; }
  .auth-split { grid-template-columns: 1fr; }
  .auth-art { padding: 28px 24px; }
    .auth-pitch, .auth-foot { display: none; }
  .auth-art { padding: 22px 24px; }
  .auth-split { grid-template-rows: auto 1fr; }
  .auth-form { align-items: start; padding-top: 36px; }
  .cond { grid-template-columns: 1fr 1fr; }
  .rule-list li { grid-template-columns: 28px 1fr auto; }
  .rule-actions { grid-column: 2 / -1; }
  .rule-count { display: none; }
  .fn-grid { grid-template-columns: 1fr; }
  .module-tabs { order: 3; width: 100%; margin: 0; overflow-x: auto; }
  .module-tabs a { padding: 8px 10px; }
  .sched-head { display: none; }
  .sched-row { grid-template-columns: 30px 1fr; }
  .install-when { grid-template-columns: 1fr; }
  .run-bar { flex-direction: column; align-items: stretch; }
  .run-btn { width: 100%; }
  .span-2 { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* =====================================================================
   Email campaigns
   ===================================================================== */
.with-badge { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.section-title { font-size: 15px; margin: 4px 0 12px; }
.narrow-wide { max-width: 640px; }
.form-foot { display: flex; justify-content: flex-end; gap: 8px; padding-top: 4px; }
.push-right { margin-left: auto; }
.pad { padding: 16px 22px; margin: 0; }
.pad-x { padding-left: 22px; padding-right: 22px; }
.panel.flush .tabs { margin-bottom: 0; }
.panel.flush .filters { margin: 12px 0; }
.warn-text { color: var(--warn) !important; }
hr.rule { border: 0; border-top: 1px solid var(--rule-2); margin: 18px 0 16px; }
.seg-toggle.full { display: flex; width: 100%; }
.seg-toggle.full label { flex: 1; justify-content: center; }
.seg-toggle.sm label { padding: 5px 11px; font-size: 13px; }

/* Empty state */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.email-empty { display: grid; grid-template-columns: 300px minmax(0, 1fr); padding: 0; overflow: hidden; }
.es-or { margin-left: 14px; font-size: 13.5px; }
.email-empty-art { position: relative; background: var(--action-wash); border-right: 1px solid var(--rule); display: grid; place-items: center; padding: 48px 36px; min-height: 100%; }
.ee-card { position: relative; width: 190px; background: var(--card); border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; box-shadow: 0 10px 24px -14px color-mix(in srgb, var(--action) 45%, transparent); transform: rotate(-3deg); }
.ee-card.back { position: absolute; height: 200px; transform: rotate(5deg) translate(14px, 6px); background: color-mix(in srgb, var(--action) 14%, white); border-color: var(--action-line); box-shadow: none; }
.ee-head { height: 34px; background: var(--action); }
.ee-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 18px; }
.ee-line { display: block; height: 6px; border-radius: 3px; background: var(--rule); }
.ee-line.w60 { width: 60%; height: 9px; background: var(--ink-3); margin-bottom: 2px; }
.ee-line.w90 { width: 90%; } .ee-line.w80 { width: 80%; } .ee-line.w45 { width: 45%; }
.ee-btn { display: block; width: 52%; height: 20px; border-radius: 4px; background: var(--action); margin-top: 6px; }
.email-empty-main { padding: 32px 36px 34px; }
.email-empty-main h2 { font-size: 19px; font-weight: 700; }
.email-empty-main > p { margin: 4px 0 20px; }
.email-steps { margin: 0 0 24px; padding: 0; list-style: none; border: 1px solid var(--rule); border-radius: var(--radius); }
.email-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 16px; }
.email-steps li + li { border-top: 1px solid var(--rule-2); }
.email-steps li.next { background: color-mix(in srgb, var(--action) 4%, white); }
.es-mark { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--rule); display: grid; place-items: center; font-size: 12.5px; font-weight: 700; color: var(--ink-3); background: var(--card); }
.es-mark svg { width: 15px; height: 15px; stroke-width: 2.5; }
.email-steps li.next .es-mark { border-color: var(--action); color: var(--action); }
.email-steps li.done .es-mark { background: var(--ok); border-color: var(--ok); color: #fff; }
.es-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.es-text strong { color: var(--ink); font-weight: 600; }
.es-text > span:last-child { color: var(--ink-2); font-size: 13.5px; }
.email-steps li.done .es-text strong { color: var(--ink-2); }

/* Email thumbnails: a real render, scaled down */
.mail-thumb { display: block; position: relative; height: 230px; overflow: hidden; background: #EEF0F3; border-radius: 6px 6px 0 0; border-bottom: 1px solid var(--rule); }
.mail-thumb iframe { position: absolute; top: 0; left: 50%; width: 640px; height: 1000px; border: 0; transform: translateX(-50%) scale(.4); transform-origin: top center; pointer-events: none; }
.layout-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.layout-card { position: relative; display: flex; flex-direction: column; gap: 2px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding-bottom: 12px; cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.layout-card > .layout-name, .layout-card > .small { padding: 0 14px; }
.layout-card > .layout-name { font-weight: 600; margin-top: 10px; }
.layout-card:hover { border-color: #C3CAD5; }
.layout-card > input[type=radio] { position: absolute; top: 10px; right: 10px; z-index: 2; width: 18px; height: 18px; }
.layout-card:has(input:checked) { border-color: var(--action); box-shadow: 0 0 0 2px var(--action-line); }
.layout-card:has(input:focus-visible) { outline: 2px solid var(--action); outline-offset: 2px; }
.tpl-thumb-link { display: block; border: 0; padding: 0; background: none; cursor: pointer; width: 100%; text-align: left; border-radius: 6px 6px 0 0; }
.tpl-card { cursor: default; }
.tpl-actions { display: flex; align-items: center; gap: 6px; padding: 10px 14px 0; }
.tpl-actions form { margin: 0; }
.tpl-more { position: relative; margin-left: auto; }
.tpl-more summary { list-style: none; font-weight: 700; }
.tpl-more summary::-webkit-details-marker { display: none; }
.tpl-menu { position: absolute; right: 0; bottom: 36px; z-index: 10; width: 240px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(27, 34, 48, .16); padding: 14px; display: flex; flex-direction: column; gap: 12px; }

/* Campaign setup checklist */
.setup { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); }
.setup-item { border-bottom: 1px solid var(--rule-2); }
.setup-item:last-child { border-bottom: 0; }
.setup-item > summary, .setup-sum { display: grid; grid-template-columns: 26px 1fr auto; gap: 14px; align-items: start; padding: 18px 22px; list-style: none; }
.setup-item > summary { cursor: pointer; }
.setup-item > summary::-webkit-details-marker { display: none; }
.setup-item > summary:hover { background: #FBFBFC; }
.setup-item[open] > summary { padding-bottom: 8px; }
.setup-item[open] .setup-edit { visibility: hidden; }
.setup-mark { width: 22px; height: 22px; border-radius: 50%; border: 1.5px dashed #B5BDC9; margin-top: 1px; }
.setup-item.ok .setup-mark { border: 0; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.setup-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.setup-text strong { font-size: 15px; }
.setup-text > span { color: var(--ink-2); overflow-wrap: anywhere; }
.setup-form { padding: 6px 22px 20px 62px; display: flex; flex-direction: column; gap: 14px; }
.setup-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 4px; }
.design-peek { display: block; margin: 0 22px 20px 62px; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; max-width: 340px; }
.design-peek .mail-thumb { border-radius: 0; border: 0; height: 260px; }
.aud-block { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.aud-block legend { font-weight: 600; font-size: 13px; margin-bottom: 8px; padding: 0; }
.aud-tags { display: flex; flex-direction: column; gap: 10px; }
.tag-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-pick { position: relative; }
.tag-pick input { position: absolute; opacity: 0; }
.tag-pick span { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border: 1px solid var(--rule); border-radius: 5px; font-weight: 500; font-size: 13px; color: var(--ink-2); cursor: pointer; background: var(--card); }
.tag-pick em { font-style: normal; color: var(--ink-3); font-size: 12px; }
.tag-pick input:checked + span { border-color: var(--action); background: var(--action-wash); color: var(--action-ink); }
.tag-pick.neg input:checked + span { border-color: var(--stop); background: var(--stop-wash); color: var(--stop); text-decoration: line-through; }
.tag-pick input:focus-visible + span { outline: 2px solid var(--action); outline-offset: 1px; }
.tag-pick input:disabled + span { cursor: default; opacity: .7; }
.aud-count { margin: 0; }
.aud-count strong { font-size: 17px; }
.inbox-preview { display: grid; grid-template-columns: 1fr; gap: 1px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 6px; background: var(--paper); font-size: 13px; }
.ib-from { font-weight: 700; }
.ib-subj { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-pre { color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.send-panel h2 { margin-bottom: 10px; }
.send-panel input[name=to] { flex: 1; min-width: 0; }
.sched-when { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.send-panel .note { font-size: 12.5px; color: var(--ink-3); }

/* Report */
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat-card { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.stat-card > span { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.stat-card strong { font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
.stat-card small { color: var(--ink-3); font-size: 12.5px; }
.meter { display: block; height: 4px; border-radius: 2px; background: var(--rule-2); margin-top: 10px; overflow: hidden; }
.meter b { display: block; height: 100%; background: var(--action); }
.report-grid { margin-bottom: 20px; }
.open-chart { display: grid; grid-template-columns: repeat(48, 1fr); gap: 2px; height: 140px; align-items: end; margin-top: 8px; border-bottom: 1px solid var(--rule); }
.open-chart span { height: 100%; display: flex; align-items: flex-end; }
.open-chart i { display: block; width: 100%; background: var(--action); border-radius: 2px 2px 0 0; min-height: 0; }
.open-chart span:hover i { background: var(--action-ink); }
.open-axis { display: flex; justify-content: space-between; margin-top: 6px; }
.url-cell { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.send-progress .progress { max-width: none; }

/* Contacts */
.tag-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 14px; }
.tag-bar > span { display: inline-flex; align-items: center; gap: 4px; margin-right: 4px; }
.tag-link { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--rule); border-radius: 5px; font-size: 13px; font-weight: 500; color: var(--ink-2); background: var(--card); }
.tag-link em { font-style: normal; color: var(--ink-3); font-size: 12px; }
.tag-link:hover { text-decoration: none; border-color: #C3CAD5; color: var(--ink); }
.tag-link.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.tag-link.on em { color: #C9CED6; }
.tag-chip { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px; margin: 0 4px 3px 0; border-radius: 4px; background: var(--rule-2); color: var(--ink-2); font-size: 12px; font-weight: 500; white-space: nowrap; }
.tag-chip button { border: 0; background: none; padding: 0 0 0 2px; cursor: pointer; color: var(--ink-3); font-size: 15px; line-height: 1; }
.tag-chip button:hover { color: var(--stop); }
.tag-input { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; min-height: 38px; padding: 5px 6px; border: 1px solid #D3D8DF; border-radius: var(--radius-sm); background: var(--card); cursor: text; }
.tag-input:focus-within { border-color: var(--action); box-shadow: 0 0 0 3px var(--action-wash); }
.tag-input .tag-chip { margin: 2px; }
.tag-input input[type=text] { border: 0 !important; box-shadow: none !important; flex: 1; min-width: 140px; height: 26px !important; padding: 0 4px !important; }
.table .sel-col { width: 44px; padding-right: 0; }
[hidden] { display: none !important; }
.field.inline select { width: auto; }
.new-form { gap: 28px; }
.cell-actions { display: flex; justify-content: flex-end; gap: 8px; }
.bulkbar .sm-input { width: 150px; height: 30px; }
.wizard { list-style: none; display: flex; gap: 28px; margin: 0 0 18px; padding: 0; }
.wizard li { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-weight: 500; }
.wizard li span { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--rule); font-size: 12px; font-weight: 700; }
.wizard li.on { color: var(--ink); }
.wizard li.on span { background: var(--action); border-color: var(--action); color: #fff; }
.wizard li.done span { background: var(--ok); border-color: var(--ok); color: #fff; }
.confirm-box { align-items: flex-start; padding: 10px 12px; background: var(--paper); border-radius: var(--radius-sm); }
.confirm-box input { margin-top: 2px; }
fieldset.field { border: 0; padding: 0; margin: 0; gap: 8px; }
fieldset.field legend { margin-bottom: 8px; padding: 0; font-size: 13px; }
.footer-preview { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.footer-preview .mail-thumb { height: 150px; border: 1px solid var(--rule); border-radius: 6px; }

@media (max-width: 1080px) {
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .email-empty { grid-template-columns: 1fr; }
  .email-empty-art { display: none; }
  .email-empty-main { padding: 24px 20px; }
  .email-steps li { grid-template-columns: 28px minmax(0, 1fr); }
  .email-steps li .btn { grid-column: 2; justify-self: start; }
  .es-or { display: block; margin: 12px 0 0; }
  .setup-form, .design-peek { margin-left: 0; padding-left: 22px; }
  .design-peek { margin: 0 22px 20px; }
  .bulkbar { flex-wrap: wrap; }
}

/* ---------- Block builder ---------- */
.builder-body { overflow: hidden; }
.builder { display: grid; grid-template-rows: 56px 1fr; height: 100vh; }
.bd-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 0 16px; background: var(--card); border-bottom: 1px solid var(--rule); }
.bd-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bd-back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); min-width: 0; }
.bd-back span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-kind { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; padding-left: 12px; border-left: 1px solid var(--rule); }
.bd-center { display: flex; align-items: center; gap: 16px; }
.bd-sample { white-space: nowrap; color: var(--ink-2); }
.bd-right { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.bd-status { font-size: 12.5px; color: var(--ink-3); margin: 0 6px; white-space: nowrap; }
.bd-status.ok { color: var(--ok); }
.bd-status.bad { color: var(--stop); white-space: normal; max-width: 280px; }
.icon-btn:disabled { opacity: .4; cursor: default; pointer-events: none; }
.bd-main { display: grid; grid-template-columns: 340px 1fr; min-height: 0; }
.bd-panel { background: var(--card); border-right: 1px solid var(--rule); overflow-y: auto; }
.bd-tabs { display: flex; border-bottom: 1px solid var(--rule); position: sticky; top: 0; background: var(--card); z-index: 2; }
.bd-tabs button { flex: 1; border: 0; background: none; padding: 12px; font: 600 13.5px var(--font); color: var(--ink-3); border-bottom: 2px solid transparent; cursor: pointer; }
.bd-tabs button[aria-selected=true] { color: var(--ink); border-bottom-color: var(--ink); }
.bd-sec { padding: 16px 18px; border-bottom: 1px solid var(--rule-2); display: flex; flex-direction: column; gap: 10px; }
.bd-sec:last-child { border-bottom: 0; }
.bd-sec h3 { margin: 0; font-size: 13px; }
.bd-add { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.bd-add button { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 4px 8px; border: 1px solid var(--rule); border-radius: 6px; background: var(--card); font: 500 11.5px var(--font); color: var(--ink-2); cursor: pointer; line-height: 1.2; text-align: center; }
.bd-add button .icon { width: 18px; height: 18px; }
.bd-add button:hover { border-color: var(--action); color: var(--action-ink); background: var(--action-wash); }
.bd-outline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.bd-outline li { position: relative; display: flex; align-items: center; border: 1px solid var(--rule); border-radius: 6px; background: var(--card); }
.bd-outline li.on { border-color: var(--action); box-shadow: 0 0 0 1px var(--action); }
.bd-outline li.dragging { opacity: .4; }
.bd-outline li.drop-above::before, .bd-outline li.drop-below::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--action); }
.bd-outline li.drop-above::before { top: -4px; } .bd-outline li.drop-below::after { bottom: -4px; }
.bd-outline button { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 8px 4px 8px 10px; text-align: left; cursor: pointer; font: inherit; color: var(--ink-2); }
.bd-outline button > span { display: flex; flex-direction: column; min-width: 0; }
.bd-outline strong { font-size: 12.5px; color: var(--ink); }
.bd-outline small { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-grip { padding: 0 10px; color: #B5BDC9; cursor: grab; letter-spacing: -3px; font-size: 13px; }
.bd-empty { padding: 14px; justify-content: center; color: var(--ink-3); font-size: 13px; border-style: dashed !important; }
.bd-foot-note { display: flex; gap: 6px; align-items: flex-start; }
.bd-foot-note .icon { width: 14px; height: 14px; margin-top: 2px; }
.bd-colors { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bd-colors label { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.bd-colors input[type=color] { width: 40px; height: 32px; flex: none; cursor: pointer; }
.bd-panel .link { background: none; border: 0; padding: 0; color: var(--action); cursor: pointer; text-align: left; }
.bd-block-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--rule-2); }
.bd-crumb { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--ink-2); font: 500 13px var(--font); cursor: pointer; padding: 4px 2px; }
.bd-crumb:hover { color: var(--action); }
.bd-block-tools { display: flex; gap: 4px; }
.icon-btn.danger:hover { color: var(--stop); border-color: var(--stop); background: var(--stop-wash); }
.bd-block-title { padding: 16px 18px 0; margin: 0; font-size: 15px; }
.bd-editor { padding: 14px 18px 24px; display: flex; flex-direction: column; gap: 14px; }
.bd-editor textarea { min-height: 120px; font-size: 13.5px; }
.bd-tb { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.bd-tb > button { height: 28px; min-width: 30px; padding: 0 8px; border: 1px solid var(--rule); border-radius: 4px; background: var(--card); cursor: pointer; font: 500 12.5px var(--font); color: var(--ink-2); }
.bd-tb > button:hover { border-color: var(--action); color: var(--action); }
.bd-tb select { height: 28px !important; padding: 0 6px !important; font-size: 12.5px !important; width: auto !important; margin-left: auto; }
.bd-linkrow { display: flex; gap: 4px; width: 100%; order: 5; }
.bd-linkrow[hidden] { display: none; }
.bd-linkrow input { height: 30px !important; flex: 1; }
.bd-linkrow button { height: 30px; padding: 0 10px; border: 0; border-radius: 4px; background: var(--action); color: #fff; font: 600 12.5px var(--font); cursor: pointer; }
.bd-img { display: grid; place-items: center; min-height: 110px; border: 1px dashed #C3CAD5; border-radius: 6px; background: var(--paper); color: var(--ink-3); font-size: 13px; overflow: hidden; }
.bd-img img { max-width: 100%; max-height: 180px; display: block; }
.bd-assets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.bd-assets button { aspect-ratio: 1; padding: 0; border: 1px solid var(--rule); border-radius: 4px; background: var(--paper); cursor: pointer; overflow: hidden; }
.bd-assets button.on { border-color: var(--action); box-shadow: 0 0 0 2px var(--action-line); }
.bd-assets img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bd-canvas { overflow-y: auto; background: #E9ECF0; padding: 24px 24px 60px; }
.bd-inbox { display: flex; align-items: center; gap: 12px; max-width: 680px; margin: 0 auto 14px; padding: 12px 16px; background: var(--card); border-radius: 8px; border: 1px solid var(--rule); }
.bd-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--action); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.bd-inbox-text { display: flex; flex-direction: column; min-width: 0; font-size: 13px; }
.bd-inbox-text > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-inbox-text b { font-weight: 600; }
.bd-inbox-text i { font-style: normal; color: var(--ink-3); }
.bd-frame { max-width: 680px; margin: 0 auto; transition: max-width .25s ease; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 2px rgba(27, 34, 48, .06), 0 8px 24px rgba(27, 34, 48, .08); }
.bd-frame.mobile { max-width: 380px; border-radius: 22px; border: 8px solid #1B2230; }
.bd-frame iframe { display: block; width: 100%; height: 600px; border: 0; background: #fff; }
@media (max-width: 1080px) {
  .bd-top { grid-template-columns: 1fr auto; }
  .bd-center { display: none; }
  .bd-main { grid-template-columns: 300px 1fr; }
}
@media (max-width: 760px) {
  .builder-body { overflow: auto; }
  .builder { height: auto; grid-template-rows: auto auto; }
  .bd-top { grid-template-columns: 1fr; padding: 10px 14px; }
  .bd-right { justify-content: flex-start; flex-wrap: wrap; }
  .bd-main { grid-template-columns: 1fr; }
  .bd-panel { border-right: 0; border-bottom: 1px solid var(--rule); }
  .bd-canvas { padding: 14px; }
}

/* Public pages (unsubscribe) */
.public-body { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--paper); }
.public-card { background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 36px 36px 32px; max-width: 480px; width: 100%; }
.public-card h1 { font-size: 22px; margin-bottom: 10px; }
.public-logo { display: block; height: 36px; width: auto; margin-bottom: 26px; }
.panel.flush .table-wrap { border: 0; border-radius: 0; }
.panel.flush .table.compact th:first-child, .panel.flush .table.compact td:first-child { padding-left: 22px; }

/* Campaign import */
.mc-connect input { flex: 1; max-width: 460px; }
.mc-options { display: flex; flex-wrap: wrap; gap: 20px 40px; margin: 6px 0 18px; padding-bottom: 18px; border-bottom: 1px solid var(--rule-2); }
.table-wrap.flat { border-radius: var(--radius-sm); }
.table tr.is-done td { color: var(--ink-3); }
.html-import { display: grid; grid-template-columns: 1.3fr 1fr 180px; gap: 14px 16px; align-items: end; margin-top: 12px; }
.html-import .check, .html-import .btn { grid-column: span 1; }
.email-frame { display: block; width: 100%; height: 720px; border: 0; background: #F2F4F7; }
@media (max-width: 820px) { .html-import { grid-template-columns: 1fr; } }

/* HTML editor */
.bd-main.html-mode { grid-template-columns: minmax(380px, 46%) 1fr; }
.bd-code-wrap { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.bd-code { flex: 1; min-height: 320px; width: 100%; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; resize: none; padding: 14px 16px !important;
  font: 12.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important; color: #1B2230; background: #FBFBFC; white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2; }
.bd-code-help { padding: 12px 18px; border-top: 1px solid var(--rule); font-size: 12px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.bd-code-help button { border: 1px solid var(--rule); background: var(--card); border-radius: 4px; padding: 2px 7px; font: 500 12px ui-monospace, Menlo, monospace; color: var(--ink-2); cursor: pointer; }
.bd-code-help button:hover { border-color: var(--action); color: var(--action); }
.setup-steps { border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: 10px 14px; background: var(--paper); }
.setup-steps summary { cursor: pointer; font-weight: 600; font-size: 13px; }
.setup-steps ol { margin: 10px 0 2px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-2); }
.svc-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.svc-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: var(--radius); cursor: pointer; background: var(--card); }
.svc-card:hover { border-color: #C3CAD5; }
.svc-card:has(input:checked) { border-color: var(--action); box-shadow: 0 0 0 2px var(--action-line); background: var(--action-wash); }
.svc-card > span:last-child { display: flex; flex-direction: column; }
.svc-card small { color: var(--ink-3); font-size: 12.5px; }
.svc-logo { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 24px; height: 24px; flex: none; }
.svc-logo i { display: block; }
.svc-logo.none { display: grid; place-items: center; color: var(--ink-3); }
.link-chip { color: var(--action); text-decoration: none; }
.link-chip:hover { text-decoration: underline; }
@media (max-width: 820px) { .svc-pick { grid-template-columns: 1fr; } }

/* Call preview */
.call-play-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.call-play-row small { font-size: 12px; }
.btn.playing, .linkish-btn.playing { color: var(--stop); }
.btn.playing { border-color: var(--stop); background: var(--stop-wash); }
.call-play-link { display: inline-flex; align-items: center; gap: 4px; }
.call-play-link .icon { width: 13px; height: 13px; }

/* Fibernetics Auth shared sign-in (login_html): colours mapped from this site's palette */
.auth-card { width: min(380px, 100%); }
.auth-card .flash { margin-bottom: 14px; }
.login-gate, :root {
  --sso-label-color: #1B2230;          /* --ink */
  --sso-field-bg: #FFFFFF;
  --sso-field-color: #1B2230;
  --sso-field-border: #D3D8DF;          /* input border */
  --sso-btn-bg: var(--brand, #2747C7);  /* primary button */
  --sso-btn-color: #FFFFFF;
  --sso-btn-border: var(--brand, #2747C7);
  --sso-btn-secondary-bg: transparent;  /* .btn.ghost */
  --sso-btn-secondary-color: #1B2230;
  --sso-btn-secondary-border: #E2E5EA;
  --sso-error-color: #A8231C;           /* --stop */
  --sso-muted-color: #7A8496;           /* --ink-3 */
}
.login-gate-form { text-align: left; }
.login-gate label.field { display: block; }
.login-gate input:not([type=checkbox]):not([type=radio]) { font: inherit; }
/* Paint the shared sign-in (colours and type from this site; Auth owns the layout) */
.login-gate { color: var(--ink); font: 400 14px/1.5 var(--font); }
.login-gate h2 { font-size: 24px; font-weight: 700; margin: 0 0 6px; color: var(--ink); }
.login-gate label.field { margin: 0 0 14px; font-weight: 600; font-size: 13px; color: var(--sso-label-color); }
.login-gate label.field input, .login-gate label.field select { margin-top: 5px; font-weight: 400; }
.login-gate input:focus, .login-gate select:focus { border-color: var(--brand, #2747C7); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand, #2747C7) 10%, white); outline: none; }
.login-gate .login-remember { display: flex; align-items: center; gap: 8px; font-weight: 500; margin: 2px 0 4px; }
.login-gate .modal-actions { display: flex; gap: 8px; margin-top: 14px; }
#login-submit, .login-gate .modal-actions button.primary {
  background: var(--sso-btn-bg); color: var(--sso-btn-color); border: 1px solid var(--sso-btn-border);
  font: 600 14px var(--font); border-radius: var(--radius-sm); padding: 10px 18px; cursor: pointer; }
#login-submit { width: 100%; }
#login-submit:hover, .login-gate .modal-actions button.primary:hover { filter: brightness(.92); }
.login-gate .modal-actions button:not(.primary), .login-gate-pk-btn {
  background: var(--sso-btn-secondary-bg); color: var(--sso-btn-secondary-color); border: 1px solid var(--sso-btn-secondary-border);
  font: 500 13px var(--font); border-radius: var(--radius-sm); padding: 8px 12px; cursor: pointer; }
.login-gate .modal-actions button:not(.primary):hover, .login-gate-pk-btn:hover { border-color: #C9CED6; background: #FBFBFC; }
.login-gate .login-gate-passkey { margin-top: 16px; }
.login-gate .login-gate-or { color: var(--sso-muted-color); margin: 0 0 8px; }

/* Brand picker with logos */
.brand-label { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 4px; }
.brand-picker { position: relative; }
.brand-picker .brand-current { width: 100%; height: 40px; padding: 0 10px 0 8px; gap: 10px; cursor: pointer; font: 500 14px var(--font); color: var(--ink); text-align: left; }
.brand-picker .brand-current:hover { border-color: #C3CAD5; }
.brand-picker .brand-current[aria-expanded="true"] { border-color: var(--action); box-shadow: 0 0 0 3px var(--action-wash); }
.brand-logo { width: 40px; height: 24px; display: grid; place-items: center; flex: none; }
.brand-logo img { max-width: 40px; max-height: 24px; width: auto; height: auto; object-fit: contain; display: block; }
.brand-logo .dot { width: 12px; height: 12px; border-radius: 50%; display: block; }
.brand-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-caret { color: var(--ink-3); }
.brand-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(27, 34, 48, .16); max-height: 320px; overflow-y: auto; outline: none; }
.brand-list li { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--radius-sm); cursor: pointer; color: var(--ink); font-weight: 500; }
.brand-list li:hover, .brand-list li.active { background: var(--paper); }
.brand-list li.on { color: var(--action-ink); }
.brand-check { color: var(--action); }
.ai-outcome { display: flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--ink-2); } .ai-outcome svg { width: 14px; height: 14px; }
.ai-call { margin-top: 4px; }
.ai-audio { display: block; width: 100%; max-width: 420px; height: 36px; margin-top: 8px; }
.ai-transcript { margin-top: 8px; font-size: 13px; }
.ai-transcript summary { cursor: pointer; color: var(--action); font-size: 13px; }
.ai-transcript ol { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ai-transcript li { padding: 8px 10px; border-radius: var(--radius-sm); background: var(--rule-2); color: var(--ink); max-width: 560px; }
.ai-transcript li.agent { background: var(--action-wash); }
.ai-transcript .who { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-3); margin-bottom: 2px; }
.test-call { margin-top: 20px; max-width: 900px; }
.test-call-form { display: grid; grid-template-columns: 1.3fr 1fr 1fr 90px auto; gap: 12px; align-items: end; margin-top: 12px; }
.test-calls { margin-top: 16px; }
@media (max-width: 760px) { .test-call-form { grid-template-columns: 1fr 1fr; } }
.timeline .ai-transcript li::before, .timeline .ai-transcript li::after { display: none; content: none; }
.timeline .ai-transcript li { margin: 0; }
