/* outreach.localpropco.com — Instantly-style UI. No inline styles (strict CSP). */
:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --panel-2: #fbfcfe;
  --border: #eaecf2;
  --border-strong: #dfe3ec;
  --text: #0f1729;
  --muted: #667085;
  --muted-2: #98a2b3;
  --accent: #2b7fff;
  --accent-hover: #1366f0;
  --accent-soft: #eef4ff;
  --green: #12b76a;
  --green-soft: #e9fbf1;
  --amber: #f79009;
  --red: #f04438;
  --dark: #1d2939;
  --radius: 12px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(16,24,40,.05);
  --shadow: 0 1px 3px rgba(16,24,40,.07), 0 1px 2px rgba(16,24,40,.04);
  --shadow-lg: 0 12px 40px rgba(16,24,40,.16);
  --sidebar-w: 72px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
button { font-family: inherit; font-size: 14px; cursor: pointer; }
input, select, textarea {
  font-family: inherit; font-size: 14px; width: 100%; padding: 10px 12px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: #fff; color: var(--text);
  transition: border-color .12s, box-shadow .12s;
}
textarea { resize: vertical; min-height: 150px; line-height: 1.6; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(43,127,255,.12); }
label { display: block; font-weight: 600; margin-bottom: 7px; color: #344054; font-size: 13.5px; }
.field { margin-bottom: 18px; }
.hint { color: var(--muted); font-size: 12.5px; font-weight: 400; margin-top: 5px; }
.hidden { display: none !important; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: #fff; color: var(--text); font-weight: 600; transition: .12s; white-space: nowrap; }
.btn:hover { background: var(--panel-2); border-color: var(--muted-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.danger { color: var(--red); border-color: #f6cec9; background: #fff; }
.btn.danger:hover { background: #fef3f2; }
.btn.small { padding: 7px 12px; font-size: 13px; }
.btn.icon { padding: 8px; width: 36px; height: 36px; justify-content: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--panel-2); }
.btn svg { width: 16px; height: 16px; }

/* login */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: radial-gradient(1200px 600px at 50% -10%, #eef4ff 0%, #ffffff 55%); }
.login-card { background: var(--panel); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 38px; width: 100%; max-width: 392px; }
.login-card h1 { font-size: 21px; margin: 0; letter-spacing: -.01em; }
.login-card .brand { display: flex; align-items: center; gap: 11px; margin-bottom: 24px; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--accent), #6aa8ff); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(43,127,255,.35); }
.brand-mark svg { width: 21px; height: 21px; color: #fff; }
.err { color: var(--red); font-size: 13px; margin-top: 10px; min-height: 16px; }

/* app shell */
.app { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-w); background: #fff; border-right: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; flex-shrink: 0; padding: 14px 0; position: sticky; top: 0; height: 100vh; }
.sidebar .logo { width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(135deg, var(--accent), #6aa8ff); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; box-shadow: 0 4px 12px rgba(43,127,255,.32); }
.sidebar .logo svg { width: 22px; height: 22px; color: #fff; }
.nav { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.nav a { position: relative; width: 44px; height: 44px; border-radius: 11px; display: flex; align-items: center; justify-content: center; color: var(--muted); transition: .12s; }
.nav a svg { width: 21px; height: 21px; }
.nav a:hover { background: var(--panel-2); color: var(--text); }
.nav a.active { background: var(--accent-soft); color: var(--accent); }
.nav a .tip { position: absolute; left: 54px; top: 50%; transform: translateY(-50%); background: var(--dark); color: #fff; padding: 5px 10px; border-radius: 7px; font-size: 12.5px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .12s; z-index: 50; }
.nav a:hover .tip { opacity: 1; }
.sidebar .bottom { display: flex; flex-direction: column; gap: 6px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 68px; background: #fff; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; padding: 0 30px; position: sticky; top: 0; z-index: 20; }
.topbar h2 { font-size: 20px; margin: 0; font-weight: 700; letter-spacing: -.02em; }
.acct-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--text); font-weight: 600; font-size: 13px; }
.acct-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.ws-switch { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--border-strong); border-radius: 10px; background: #fff; color: var(--text); font-weight: 650; font-size: 13.5px; }
.ws-switch:hover { background: var(--panel-2); border-color: var(--muted-2); }
.ws-switch .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.ws-switch .caret { color: var(--muted); font-size: 11px; }
.ws-menu { min-width: 250px; }
.ws-menu-h { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 6px 10px; }
.ws-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.ws-item:hover { background: var(--panel-2); }
.ws-item.on { background: var(--accent-soft); color: var(--accent-hover); }
.ws-item.act { color: var(--accent); font-weight: 650; }
.ws-sep { height: 1px; background: var(--border); margin: 6px 0; }
.content { padding: 28px 30px; flex: 1; max-width: 1180px; width: 100%; margin: 0 auto; }

/* cards & stat tiles */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 16px; margin-bottom: 26px; }
.stat { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.stat .k { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.stat .v { font-size: 28px; font-weight: 750; margin-top: 8px; letter-spacing: -.02em; }
.stat .sub { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.panel-head { padding: 17px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.panel-head h3 { margin: 0; font-size: 15px; font-weight: 650; }
.panel-body { padding: 20px; }

/* toolbar / filters row */
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 20px; flex-wrap: wrap; }
.toolbar.flat { margin: 0; }
.spacer { flex: 1; }
.search { position: relative; flex: 1; max-width: 360px; }
.search input { padding-left: 38px; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted-2); }

/* campaign list — Instantly-style spaced card rows */
.clist { display: flex; flex-direction: column; gap: 12px; }
.crow { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 18px 22px; display: grid; grid-template-columns: 2.4fr 1fr 1.3fr .8fr .8fr 1fr auto; align-items: center; gap: 16px; cursor: pointer; transition: .12s; }
.crow:hover { border-color: var(--border-strong); box-shadow: var(--shadow); transform: translateY(-1px); }
.crow .cname { font-weight: 650; font-size: 15px; letter-spacing: -.01em; }
.crow .col { min-width: 0; }
.crow .col .lbl { display: none; }
.crow .metric { font-weight: 650; }
.crow .metric small { color: var(--muted); font-weight: 500; margin-left: 5px; }
.chead { display: grid; grid-template-columns: 2.4fr 1fr 1.3fr .8fr .8fr 1fr auto; gap: 16px; padding: 4px 22px 6px; color: var(--muted); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.rowacts { display: flex; gap: 6px; justify-content: flex-end; }

/* progress */
.prog { display: flex; align-items: center; gap: 10px; }
.prog .pct { font-weight: 650; font-size: 13px; min-width: 34px; }
.bar { flex: 1; height: 7px; background: #eef0f4; border-radius: 999px; overflow: hidden; min-width: 46px; }
.bar > span { display: block; height: 100%; background: var(--green); border-radius: 999px; }

/* tables (analytics detail) */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); }
th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; }
tr:last-child td { border-bottom: none; }
tbody tr.row-link { cursor: pointer; }
tbody tr.row-link:hover { background: var(--panel-2); }

/* badges / status pills (solid, Instantly-style) */
.badge { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 650; letter-spacing: .01em; }
.badge.active { background: var(--accent); color: #fff; }
.badge.completed { background: var(--green); color: #fff; }
.badge.paused { background: var(--dark); color: #fff; }
.badge.draft { background: #f2f4f7; color: #475467; }
.badge.drafts_created { background: var(--accent-soft); color: var(--accent-hover); }
.badge.replied { background: var(--green); color: #fff; }
.badge.bounced { background: var(--amber); color: #fff; }
.badge.blacklisted { background: var(--red, #d92d20); color: #fff; }

/* tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 22px; max-width:100%; overflow-x:auto; }
.tabs button { background: none; border: none; padding: 12px 18px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: .12s; }
.tabs button:hover { color: var(--text); }
.tabs button.active { color: var(--accent); border-bottom-color: var(--accent); }

/* sequence steps */
.step { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
.step-head { background: var(--panel-2); padding: 13px 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }
.step-head .t { font-weight: 700; display: flex; align-items: center; gap: 9px; }
.step-num { width: 24px; height: 24px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.step-body { padding: 18px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border: 1px solid var(--border-strong); border-radius: 999px; background: #fff; cursor: pointer; font-weight: 600; transition: .12s; }
.chip:hover { border-color: var(--accent); }
.chip.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-hover); }
.chip.var { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.checkbox { display: flex; align-items: center; gap: 10px; }
.checkbox input { width: auto; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.varbar { background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 14px; }
.varbar .vh { font-weight: 650; font-size: 12.5px; color: var(--muted); margin-bottom: 9px; display: flex; align-items: center; gap: 7px; }
.empty { text-align: center; color: var(--muted); padding: 46px 20px; }
.empty svg { width: 40px; height: 40px; color: var(--muted-2); margin-bottom: 12px; }

/* editor header */
.ehead { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.ehead .title { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }

/* toast */
.toast { position: fixed; right: 22px; bottom: 22px; background: var(--dark); color: #fff; padding: 13px 18px; border-radius: 11px; box-shadow: var(--shadow-lg); z-index: 100; opacity: 0; transform: translateY(8px); transition: .2s; font-weight: 500; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.err { background: var(--red); }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgba(16,24,40,.5); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; z-index: 90; padding: 24px; }
.modal { background: #fff; border-radius: 16px; width: 100%; max-width: 620px; max-height: 88vh; overflow: auto; box-shadow: var(--shadow-lg); }
.modal.wide { max-width: 720px; }
.modal-head { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: #fff; }
.modal-head h3 { margin: 0; font-size: 17px; }
.modal-body { padding: 24px; }
.modal-foot { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; position: sticky; bottom: 0; background: #fff; }
.xbtn { background: none; border: none; color: var(--muted); font-size: 22px; line-height: 1; padding: 4px 8px; border-radius: 8px; }
.xbtn:hover { background: var(--panel-2); color: var(--text); }

/* rich text editor */
.rte-wrap { border: 1px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; }
.rte-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(43,127,255,.12); }
.rte-tb { display: flex; align-items: center; gap: 3px; padding: 7px 8px; background: var(--panel-2); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.rte-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 30px; border: none; background: transparent; border-radius: 7px; color: var(--muted); transition: .1s; }
.rte-btn:hover { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }
.rte-btn svg { width: 16px; height: 16px; }
.rte-sep { width: 1px; height: 20px; background: var(--border-strong); margin: 0 4px; }
.rte { min-height: 190px; max-height: 460px; overflow-y: auto; padding: 14px 16px; outline: none; line-height: 1.65; font-size: 14px; }
.rte:empty:before { content: "Write your message… use the toolbar above for bold, italic, links, and more."; color: var(--muted-2); }
.rte a { color: var(--accent); text-decoration: underline; }
.rte ul, .rte ol { padding-left: 22px; margin: 8px 0; }
.rte-src { min-height: 220px; border: none; border-radius: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.rte-src:focus { box-shadow: none; }

/* preview */
.pv-mail { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 16px; }
.pv-mail .pv-sub { padding: 13px 18px; background: var(--panel-2); border-bottom: 1px solid var(--border); font-weight: 700; }
.pv-mail .pv-body { padding: 18px; white-space: pre-wrap; line-height: 1.65; }
.pv-mail .pv-body.pv-html { white-space: normal; }
.pv-html a { color: var(--accent); text-decoration: underline; }
.pv-html ul, .pv-html ol { padding-left: 22px; }
.pv-mail .pv-step { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 18px 0; font-weight: 700; }
.pv-missing { background: #fef3f2; color: #b42318; padding: 1px 5px; border-radius: 5px; font-weight: 600; }

/* unibox — two-pane email client */
.ubx { display: flex; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); height: calc(100vh - 156px); min-height: 520px; }
.ubx-list { width: 340px; border-right: 1px solid var(--border); display: flex; flex-direction: column; flex-shrink: 0; }
.ubx-search { position: relative; padding: 12px; border-bottom: 1px solid var(--border); }
.ubx-search .s { position: absolute; left: 24px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted-2); }
.ubx-search input { padding-left: 34px; }
.ubx-list-items { overflow-y: auto; flex: 1; }
.ubx-item { padding: 13px 16px; border-bottom: 1px solid var(--border); cursor: pointer; transition: .1s; border-left: 3px solid transparent; }
.ubx-item:hover { background: var(--panel-2); }
.ubx-item.sel { background: var(--accent-soft); border-left-color: var(--accent); }
.ubx-item.unread { border-left-color: var(--accent); }
.ubx-item.unread .ubx-from, .ubx-item.unread .ubx-subj { font-weight: 750; }
.ubx-item-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.ubx-from { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ubx-date { color: var(--muted-2); font-size: 12px; white-space: nowrap; }
.ubx-subj { font-size: 13px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ubx-snip { color: var(--muted); font-size: 12.5px; margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ubx-tag { margin-top: 8px; display: inline-block; font-size: 11px; font-weight: 600; color: var(--accent-hover); background: var(--accent-soft); padding: 2px 9px; border-radius: 999px; }
.ubx-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ubx-empty { margin: auto; }
.ubx-conv { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.ubx-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.ubx-h-from { font-weight: 700; }
.ubx-h-sub { color: var(--muted); font-size: 13px; }
.ubx-thread { flex: 1; overflow-y: auto; padding: 18px 20px; background: var(--panel-2); }
.msg { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.msg.out { background: #f5f9ff; border-color: #dbe6ff; }
.msg-h { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-size: 13px; }
.msg-from { font-weight: 650; }
.msg-date { color: var(--muted-2); font-size: 12px; white-space: nowrap; }
.msg-meta { color: var(--muted); font-size: 12px; margin-bottom: 10px; }
.msg-html { font-size: 14px; line-height: 1.6; overflow-x: auto; }
.msg-html img { max-width: 100%; height: auto; }
.msg-html table { width: auto; }
.msg-text { white-space: pre-wrap; font-size: 14px; line-height: 1.6; }
.ubx-actions { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; gap: 10px; flex-shrink: 0; }
.ubx-compose { border-top: 1px solid var(--border); padding: 14px 20px; background: #fff; flex-shrink: 0; max-height: 62%; overflow-y: auto; }
.ubx-compose-head { display: flex; align-items: center; margin-bottom: 12px; font-size: 13.5px; }
.ubx-compose-foot { margin-top: 12px; }
.ubx-compose .rte { min-height: 130px; }

/* accounts */
.alias-row { display: flex; align-items: center; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.alias-row:last-child { border: none; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; }

.bounce-note { background: #fffaeb; border: 1px solid #fedf89; color: #b54708; padding: 10px 12px; border-radius: 8px; margin-bottom: 14px; font-size: 13px; }
.sequence-error { background: #fef3f2; border: 1px solid #fecdca; color: #b42318; padding: 13px 15px; border-radius: 10px; margin-bottom: 14px; font-size: 13px; display: grid; gap: 5px; }
.sequence-error .hint { color: #912018; }

/* test-send bar in preview */
.test-bar { background: var(--accent-soft); border: 1px solid #d5e3ff; border-radius: var(--radius); padding: 16px; margin-bottom: 20px; }
.test-row { display: flex; gap: 14px; margin-bottom: 12px; }
.test-send-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
@media (max-width: 560px) { .test-row { flex-direction: column; } }

/* CSV import preview */
.pv-summary-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin: 16px 0 10px; flex-wrap: wrap; }
.pv-summary { font-size: 13.5px; }
.pv-scroll { overflow: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); max-height: 300px; }
.pv-table { font-size: 12.5px; white-space: nowrap; border-collapse: collapse; }
.pv-table th, .pv-table td { padding: 8px 12px; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); text-align: left; }
.pv-table th { position: sticky; top: 0; background: var(--panel-2); font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--text); }
.pv-table tbody tr:hover { background: var(--panel-2); }

/* CRM contact detail */
.crm-detail .crm-sec { margin-bottom: 22px; }
.crm-detail h4 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.crm-kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 14px; }
.crm-kv .kk { color: var(--muted); font-weight: 600; }
.crm-camp { padding: 8px 0; border-bottom: 1px solid var(--border); }
.crm-camp:last-child { border: none; }
.crm-reply { padding: 10px 12px; background: var(--panel-2); border-radius: 8px; margin-bottom: 8px; }
.crm-timeline { display: flex; flex-direction: column; gap: 9px; }
.crm-ev { display: flex; align-items: center; font-size: 13px; }
.crm-ev-t { font-weight: 600; }
.crm-dot { width: 9px; height: 9px; border-radius: 50%; margin-right: 9px; background: var(--muted-2); flex-shrink: 0; }
.crm-dot.sent { background: var(--accent); }
.crm-dot.open { background: var(--green); }
.crm-dot.click { background: #7a5af8; }
.crm-dot.reply { background: var(--green); }
.crm-dot.bounce { background: var(--amber); }

/* popover */
.pop { position: absolute; background: #fff; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: 10px; z-index: 60; max-width: 320px; }

/* Zoho integration */
.zoho-pane { display:grid; gap:18px; }
.zoho-health { padding:11px 14px; border-radius:9px; background:#ecfdf3; color:#027a48; font-weight:650; }
.zoho-health.warn,.stat-warn .stat-v { color:#b54708; }
.zoho-cards { grid-template-columns:repeat(4,minmax(0,1fr)); }
.zoho-task { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:10px 0; border-bottom:1px solid var(--border); }
.zoho-task a,.zoho-summary a,.zoho-link { margin-left:auto; color:var(--accent); font-weight:650; }
.zoho-summary { display:flex; align-items:center; gap:8px; margin-bottom:14px; background:var(--panel-2); border-radius:9px; }
.collision-note { margin-top:14px; padding:10px 12px; border-radius:8px; background:#fffaeb; color:#b54708; }
.collision-list { display:grid; gap:7px; margin-top:9px; }
.collision-row { display:grid; grid-template-columns:minmax(180px,1.3fr) minmax(160px,1fr) auto auto; align-items:center; gap:9px; color:var(--text); }
.collision-row .btn { justify-self:end; }
.crm-ev { gap:5px; flex-wrap:nowrap; align-items:flex-start; }
.crm-ev-copy { min-width:0; flex:1; }
.crm-ev-detail { color:var(--muted); font-size:12px; line-height:1.45; margin-top:3px; overflow-wrap:anywhere; }
.crm-ev .zoho-link { flex-shrink:0; font-size:12px; }
.integration-state { display:inline-flex; max-width:280px; padding:4px 8px; border-radius:999px; font-size:11px; line-height:1.25; font-weight:700; white-space:normal; }
.state-active { background:#ecfdf3; color:#027a48; }
.state-review { background:#fffaeb; color:#b54708; }
.state-blocked,.state-suppressed { background:#fef3f2; color:#b42318; }
.state-history { background:#f2f4f7; color:#475467; }
.state-converted { background:#eef4ff; color:#3538cd; }
.state-completed { background:#f2f4f7; color:#344054; }
.state-pending { background:#f4f3ff; color:#5925dc; }
.zoho-summary.state-review,.zoho-summary.state-blocked,.zoho-summary.state-suppressed { border-left:4px solid #f79009; }
.zoho-summary.state-converted,.zoho-summary.state-active { border-left:4px solid #12b76a; }
.integration-table-head { gap:14px; flex-wrap:wrap; }
.zoho-pane,.zoho-pane .panel { min-width:0; max-width:100%; }
.zoho-pane .pv-scroll { width:100%; max-width:100%; }
.zoho-pane .pv-scroll > table { min-width:1400px; }
.integration-filter-wrap { display:flex; align-items:center; gap:8px; margin-left:auto; }
.integration-filter { width:auto; min-width:190px; }
.coverage-cell { min-width:210px; font-size:12px; color:var(--muted); }
.cadence-progress { display:grid; gap:5px; min-width:220px; }
.cadence-progress strong { color:var(--text); font-size:13px; }
.cadence-steps { display:grid; gap:3px; }
.cadence-step { display:flex; justify-content:space-between; gap:10px; padding:3px 6px; border-radius:6px; background:var(--surface-2); }
.cadence-step.complete { background:color-mix(in srgb, var(--green) 12%, transparent); }
.cadence-step-name { color:var(--text); }
.cadence-step-status { white-space:nowrap; }
.cadence-step.complete .cadence-step-status { color:var(--green); font-weight:600; }
.cadence-warning,.cadence-blocked { color:#b54708; font-weight:600; }
.scope-cell { min-width:110px; color:var(--muted); font-size:12px; font-weight:650; }
.history-row { background:#fcfcfd; }
.history-row:hover { background:#f9fafb; }
.integration-error { margin-top:5px; color:#b42318; font-size:12px; font-weight:600; overflow-wrap:anywhere; }
.integration-error-cell { max-width:260px; color:#b42318; font-size:12px; overflow-wrap:anywhere; }
.integration-breakdowns { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.integration-breakdown table { min-width:0; }
.integration-breakdown th,.integration-breakdown td { padding:9px 12px; }
.crm-dot.zoho_converted,.crm-dot.call_completed,.crm-dot.meeting_completed,.crm-dot.task_completed { background:var(--green); }
.crm-dot.suppressed,.crm-dot.task_cancelled,.crm-dot.task_deferred { background:#d92d20; }
.crm-dot.sales_handoff,.crm-dot.dual_cadence_restored,.crm-dot.note_created,.crm-dot.note_updated,.crm-dot.call_created,.crm-dot.meeting_created { background:#7a5af8; }
@media (max-width: 1000px) { .zoho-cards { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width: 1000px) { .integration-breakdowns { grid-template-columns:1fr; } }
@media (max-width: 700px) { .collision-row { grid-template-columns:1fr; } .collision-row .btn { justify-self:start; } }
@media (max-width: 560px) { .zoho-cards { grid-template-columns:1fr; } .zoho-summary { align-items:flex-start; flex-direction:column; } .integration-filter-wrap { width:100%; margin-left:0; } .integration-filter { flex:1; min-width:0; } }

@media (max-width: 860px) {
  .content,.content > div { min-width:0; }
  .ehead { flex-wrap:wrap; }
  .ehead .title { min-width:0; overflow-wrap:anywhere; }
  .crow, .chead { grid-template-columns: 1fr auto; }
  .crow .col.hide-sm, .chead .hide-sm { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
