/* FalconReach app shell + redesigned pages (dashboard, leads, network, unibox, settings).
   Campaign / workflow / accounts pages keep app.css for their content - only the shell here. */
:root {
  --hr-side: #1C1D30;
  --hr-side-hover: #2A2C45;
  --hr-side-on: #34365A;
  --hr-side-icon: #A9ACC7;
  --hr-bg: #F1F3F7;
  --hr-card: #FFFFFF;
  --hr-line: #E4E7EC;
  --hr-line-2: #EEF0F4;
  --hr-text: #111827;
  --hr-mid: #4B5563;
  --hr-muted: #6B7280;
  --hr-faint: #9CA3AF;
  --hr-primary: #4F46E5;
  --hr-primary-hover: #4338CA;
  --hr-primary-soft: #EEF0FF;
  --hr-green: #16A34A;
  --hr-green-soft: #ECFDF3;
  --hr-green-line: #A7F3C5;
  --hr-red: #EF4444;
  --hr-red-soft: #FEE2E2;
  --hr-orange: #F59E0B;
  --hr-orange-soft: #FFF4E5;
  --hr-pink: #DB2777;
  --hr-pink-soft: #FDF2F8;
  --hr-blue: #3B82F6;
  --hr-blue-soft: #EFF6FF;
  --hr-purple: #6366F1;
  --hr-purple-soft: #EEF2FF;
  --hr-gray-soft: #F3F4F6;
  --hr-radius: 8px;
}

/* ---- shell */
body { background: var(--hr-bg); }
.app { display: grid; grid-template-columns: 52px 1fr; min-height: 100vh; }
.side { background: var(--hr-side); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 22px 0 14px; gap: 6px; z-index: 20; }
.side a { position: relative; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 8px; color: var(--hr-side-icon); }
.side a:hover { background: var(--hr-side-hover); color: #fff; text-decoration: none; }
.side a.on { background: var(--hr-side-on); color: #fff; }
.side a svg { width: 18px; height: 18px; }
.side .grow { flex: 1; }
.side a .dot { position: absolute; top: 5px; right: 5px; min-width: 14px; height: 14px; padding: 0 3px; border-radius: 7px; background: var(--hr-red); color: #fff; font: 600 9px/14px Inter, sans-serif; text-align: center; }
.side a[data-tip]:hover::after { content: attr(data-tip); position: absolute; left: 44px; top: 50%; transform: translateY(-50%); background: #111827; color: #fff; font: 500 12px Inter, sans-serif; padding: 4px 8px; border-radius: 5px; white-space: nowrap; pointer-events: none; }
.app-main { min-width: 0; display: flex; flex-direction: column; }

/* legacy pages (campaigns, workflow, accounts, deals) keep their own content styles */
main.legacy { padding: 32px 40px 80px; }

/* ---- redesigned pages */
.hr { font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 13px; line-height: 1.45; color: var(--hr-text); font-feature-settings: "tnum" 1, "cv11" 1; }
.hr * { box-sizing: border-box; }
.hr a { color: inherit; }
.hr a:hover { text-decoration: none; }
main.hr { padding: 0 16px 24px; flex: 1; display: flex; flex-direction: column; }
/* neutralise app.css globals the legacy pages rely on */
.hr section { margin-bottom: 0; }
.hr .field, .hr .tgl, .hr label.list-row { margin-bottom: 0; font-weight: inherit; }
.hr table { font-size: 12px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 52px; padding: 0 2px; }
.topbar h1 { font-size: 15px; font-weight: 700; margin: 0; letter-spacing: 0; }
.topbar .back { display: inline-flex; align-items: center; gap: 10px; }
.topbar .back a { color: var(--hr-primary); display: grid; place-items: center; }
.top-right { display: flex; align-items: center; gap: 6px; }
.chipbtn { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; background: var(--hr-card); border: 1px solid var(--hr-line); border-radius: 6px; font-size: 12px; color: var(--hr-mid); cursor: pointer; white-space: nowrap; }
.chipbtn:hover { border-color: #CBD0D8; }
.chipbtn svg { width: 14px; height: 14px; }
.chipbtn .gi { color: #10B981; }
.chipbtn.ws { min-width: 170px; justify-content: space-between; }
.iconbtn { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; border: 1px solid var(--hr-primary); color: var(--hr-primary); background: var(--hr-card); cursor: pointer; }
.iconbtn svg { width: 14px; height: 14px; }
.menu { position: relative; }
.menu > .pop { display: none; position: absolute; right: 0; top: 34px; min-width: 200px; background: #fff; border: 1px solid var(--hr-line); border-radius: 8px; box-shadow: 0 8px 24px rgba(17,24,39,.08); padding: 6px; z-index: 30; }
.menu.open > .pop { display: block; }
.pop a, .pop button { display: flex; width: 100%; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 5px; font: inherit; font-size: 12.5px; color: var(--hr-text); background: none; border: 0; text-align: left; cursor: pointer; }
.pop a:hover, .pop button:hover { background: var(--hr-gray-soft); }
.pop .head { padding: 6px 9px; font-size: 11px; color: var(--hr-muted); font-weight: 600; }

.card { background: var(--hr-card); border: 1px solid var(--hr-line); border-radius: var(--hr-radius); }
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 16px 14px; }
.card-head h2 { font-size: 14px; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 8px; }
.count-badge { font-size: 11px; font-weight: 500; border: 1px solid var(--hr-line); border-radius: 4px; padding: 0 5px; line-height: 17px; color: var(--hr-mid); }
.fill { flex: 1; }

/* tabs */
.tabs2 { display: flex; gap: 18px; padding: 0 16px; border-bottom: 1px solid var(--hr-line); }
.tabs2 a { padding: 10px 2px 9px; font-size: 12px; color: var(--hr-mid); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs2 a.on { color: var(--hr-primary); border-bottom-color: var(--hr-primary); font-weight: 500; }
.seg { display: inline-flex; border: 1px solid var(--hr-line); border-radius: 6px; overflow: hidden; background: #F9FAFB; }
.seg a { padding: 6px 12px; font-size: 12px; color: var(--hr-mid); }
.seg a.on { background: #fff; color: var(--hr-text); box-shadow: 0 0 0 1px var(--hr-line); font-weight: 500; }

/* filters */
.filters { display: flex; gap: 8px; padding: 16px 16px; flex-wrap: wrap; align-items: center; }
.field { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 9px; border: 1px solid var(--hr-line); border-radius: 5px; background: #fff; font-size: 12px; color: var(--hr-mid); }
.field svg { width: 13px; height: 13px; color: var(--hr-muted); flex: none; }
.field input, .field select { border: 0; outline: 0; background: transparent; font: inherit; color: var(--hr-text); padding: 0; height: 26px; min-width: 0; }
.field select { appearance: none; padding-right: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right center; cursor: pointer; }
.field.w150 { width: 150px; } .field.w130 { width: 130px; } .field.w110 { width: 110px; } .field.w90 { width: 90px; }
.field.dis { opacity: .55; }

/* stat cards */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0 16px; }
.stat { border: 1px solid var(--hr-line); border-radius: 6px; padding: 10px 11px 12px; min-height: 62px; }
.stat .lbl { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--hr-text); font-weight: 500; }
.stat .lbl svg { width: 11px; height: 11px; color: var(--hr-faint); }
.stat .val { display: flex; align-items: center; gap: 7px; margin-top: 7px; font-size: 17px; font-weight: 600; }
.stat .bar { height: 3px; border-radius: 2px; background: var(--hr-line-2); margin-top: 11px; overflow: hidden; }
.stat .bar i { display: block; height: 100%; background: var(--hr-primary); }
.ico { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 5px; border: 1px solid; flex: none; }
.ico svg { width: 12px; height: 12px; }
.ico.orange { color: var(--hr-orange); background: var(--hr-orange-soft); border-color: #FCD9A0; }
.ico.pink { color: var(--hr-pink); background: var(--hr-pink-soft); border-color: #F9C4DD; }
.ico.gray { color: var(--hr-muted); background: var(--hr-gray-soft); border-color: #D9DCE2; }
.ico.blue { color: var(--hr-blue); background: var(--hr-blue-soft); border-color: #BFD7FB; }
.ico.purple { color: var(--hr-purple); background: var(--hr-purple-soft); border-color: #C7CBFA; }
.ico.green { color: #10B981; background: var(--hr-green-soft); border-color: var(--hr-green-line); }
.ico.red { color: var(--hr-red); background: var(--hr-red-soft); border-color: #FCC; }
.pct { font-size: 10px; font-weight: 600; color: var(--hr-green); background: var(--hr-green-soft); border: 1px solid var(--hr-green-line); border-radius: 3px; padding: 0 4px; line-height: 15px; }

/* chart */
.chart-wrap { padding: 20px 16px 12px; position: relative; }
.chart-wrap svg { width: 100%; height: 210px; display: block; overflow: visible; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 0 16px 16px; font-size: 11.5px; color: var(--hr-mid); }
.chart-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.tbl th { text-align: left; font-weight: 600; font-size: 11.5px; color: var(--hr-text); background: #F9FAFB; padding: 8px 10px; border-top: 1px solid var(--hr-line); border-bottom: 1px solid var(--hr-line); white-space: nowrap; }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--hr-line); vertical-align: middle; }
.tbl tr:hover td { background: #FBFBFD; }
.tbl .t-name { font-weight: 500; font-size: 12.5px; }
.tbl .t-sub { font-size: 10.5px; color: var(--hr-muted); }
.tbl td.act { width: 32px; text-align: right; }
.tbl-foot { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 12px; font-size: 11.5px; color: var(--hr-mid); }
.pager2 { display: inline-flex; border: 1px solid var(--hr-line); border-radius: 5px; overflow: hidden; }
.pager2 a, .pager2 span { padding: 4px 12px; font-size: 11px; background: #F3F4F6; color: var(--hr-mid); }
.pager2 a + a, .pager2 span + a, .pager2 a + span, .pager2 span + span { border-left: 1px solid var(--hr-line); }
.pager2 .off { opacity: .55; pointer-events: none; }
.kebab { width: 24px; height: 24px; display: inline-grid; place-items: center; border-radius: 4px; background: none; border: 0; cursor: pointer; color: var(--hr-text); }
.kebab:hover { background: var(--hr-gray-soft); }

/* status + chips */
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.st svg { width: 14px; height: 14px; }
.st.finished, .st.done { color: var(--hr-green); }
.st.running { color: var(--hr-primary); }
.st.paused { color: var(--hr-orange); }
.st.draft { color: var(--hr-muted); }
.chips2 { display: inline-flex; gap: 5px; flex-wrap: wrap; }
.chip2 { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 500; padding: 1px 5px; border-radius: 3px; background: var(--hr-gray-soft); color: var(--hr-text); line-height: 16px; }
.chip2 svg { width: 10px; height: 10px; }
.chip2.purple { background: #E8E7FD; color: var(--hr-primary); }
.chip2.green { background: #DDF7E6; color: #15803D; }
.chip2.red { background: var(--hr-red-soft); color: #DC2626; }
.badge { display: inline-block; font-size: 10.5px; padding: 1px 6px; border-radius: 4px; border: 1px solid; line-height: 15px; }
.badge.green { color: #15803D; background: var(--hr-green-soft); border-color: var(--hr-green-line); }
.badge.blue { color: var(--hr-blue); background: var(--hr-blue-soft); border-color: #BFD7FB; }
.badge.gray { color: var(--hr-mid); background: var(--hr-gray-soft); border-color: #D9DCE2; }
.badge.red { color: #DC2626; background: var(--hr-red-soft); border-color: #FCC; }
.badge.purple { color: var(--hr-primary); background: var(--hr-primary-soft); border-color: #C7CBFA; }

/* buttons */
.b { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--hr-line); background: #fff; font: inherit; font-size: 12px; font-weight: 500; color: var(--hr-text); cursor: pointer; white-space: nowrap; }
.b:hover { border-color: #CBD0D8; }
.b svg { width: 13px; height: 13px; }
.b.pri { background: var(--hr-primary); border-color: var(--hr-primary); color: #fff; }
.b.pri:hover { background: var(--hr-primary-hover); }
.b.danger { color: #DC2626; }
.b.block { width: 100%; justify-content: center; }
.b:disabled, .b.dis { background: #F3F4F6; border-color: var(--hr-line); color: var(--hr-faint); cursor: not-allowed; }
.b.sm { height: 26px; padding: 0 9px; font-size: 11.5px; }
.linkish { color: var(--hr-primary); text-decoration: underline; text-underline-offset: 2px; }

/* empty states */
.empty2 { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding: 50px 20px; text-align: center; }
.empty2 h3 { font-size: 14px; font-weight: 600; margin: 14px 0 4px; }
.empty2 p { font-size: 11.5px; color: var(--hr-mid); max-width: 460px; }
.empty2 .art { width: 64px; height: 50px; color: #D1D5DB; }
.rings { position: relative; width: 240px; height: 240px; display: grid; place-items: center; margin: 60px auto 0; }
.rings::before, .rings::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid #F0F1F4; }
.rings::before { inset: 0; } .rings::after { inset: 40px; }
.rings .core { width: 36px; height: 36px; border: 1px solid var(--hr-line); border-radius: 8px; display: grid; place-items: center; background: #fff; z-index: 1; }
.rings .txt { position: absolute; top: 140px; width: 260px; text-align: center; }

/* page blocks */
.full { flex: 1; display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: 12px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: #E5E7EB; display: grid; place-items: center; overflow: hidden; color: #6B7280; font-weight: 600; font-size: 11px; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 44px; height: 44px; font-size: 14px; }
.muted2 { color: var(--hr-muted); }
.small2 { font-size: 11.5px; }

/* settings layout */
.settings { display: grid; grid-template-columns: 180px 1fr; flex: 1; background: #fff; border: 1px solid var(--hr-line); border-radius: var(--hr-radius); min-height: calc(100vh - 70px); }
.settings-nav { border-right: 1px solid var(--hr-line); padding: 14px 0 14px; display: flex; flex-direction: column; }
.settings-nav a { display: flex; align-items: center; gap: 8px; padding: 7px 12px 7px 14px; font-size: 12px; color: var(--hr-mid); border-left: 2px solid transparent; margin: 1px 0; }
.settings-nav a svg { width: 14px; height: 14px; }
.settings-nav a.on { color: var(--hr-primary); border-left-color: var(--hr-primary); font-weight: 500; }
.settings-nav a:hover { color: var(--hr-text); }
.settings-nav .foot { margin-top: auto; padding: 0 10px; }
.settings-body { min-width: 0; display: flex; flex-direction: column; }
.settings-body > .sh { padding: 18px 16px 14px; border-bottom: 1px solid var(--hr-line); }
.settings-body > .sh h2 { font-size: 15px; font-weight: 600; margin: 0; }
.settings-body > .sh p { font-size: 11.5px; color: var(--hr-mid); margin-top: 4px; }
.sbody { padding: 16px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.box { border: 1px solid var(--hr-line); border-radius: 8px; padding: 18px 16px 14px; }
.box h3 { font-size: 13.5px; font-weight: 600; margin: 0 0 14px; color: #374151; }
.fl { display: block; font-size: 11.5px; font-weight: 500; margin: 0 0 5px; color: var(--hr-text); }
.hr .inp { width: 100%; height: 30px; padding: 0 9px; border: 1px solid var(--hr-line); border-radius: 5px; font: inherit; font-size: 12px; color: var(--hr-text); background: #fff; outline: 0; }
.hr .inp:focus { border-color: var(--hr-primary); }
.hr textarea.inp { height: auto; min-height: 90px; padding: 8px 9px; resize: vertical; }
.hr select.inp { cursor: pointer; }
.hr .field input, .hr .field select { width: 100%; border: 0; padding: 0; background-color: transparent; border-radius: 0; }
.hr .field select { padding-right: 16px; }
.frow { margin-bottom: 12px; }
.fend { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.banner { display: flex; align-items: center; gap: 8px; background: #E8F1FE; border: 1px solid #D5E5FC; color: #1E3A8A; padding: 11px 12px; border-radius: 6px; font-size: 11.5px; }
.banner svg { width: 14px; height: 14px; color: var(--hr-blue); flex: none; }
.flash2 { margin: 12px 16px 0; padding: 9px 12px; border-radius: 6px; font-size: 12px; background: var(--hr-green-soft); color: #15803D; border: 1px solid var(--hr-green-line); }
.flash2 svg { width: 14px; height: 14px; flex: none; }  /* an icon in a notice never sizes itself to the page */
.flash2.err { background: var(--hr-red-soft); color: #B91C1C; border-color: #FCC; }
.secret { font-family: ui-monospace, Consolas, monospace; font-size: 12px; background: #F9FAFB; border: 1px dashed #C7CBFA; border-radius: 6px; padding: 9px 10px; word-break: break-all; }

/* toggles */
.tgl { position: relative; width: 26px; height: 15px; flex: none; }
.tgl input { opacity: 0; width: 0; height: 0; position: absolute; }
.tgl span { position: absolute; inset: 0; border-radius: 10px; background: #E5E7EB; cursor: pointer; transition: background .15s; }
.tgl span::after { content: ""; position: absolute; left: 2px; top: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.tgl input:checked + span { background: var(--hr-primary); }
.tgl input:checked + span::after { transform: translateX(11px); }
.ev-row { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--hr-line); border-radius: 6px; padding: 14px 12px; margin-bottom: 8px; }
.ev-row b { font-size: 12.5px; display: inline-flex; align-items: center; gap: 8px; }
.ev-row b svg { width: 13px; height: 13px; color: #374151; }
.ev-row .q { color: var(--hr-faint); display: inline-grid; }
.ev-row .q svg { width: 11px; height: 11px; }

/* billing plans */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.plan { border: 1px solid var(--hr-line); border-radius: 8px; padding: 16px 16px 16px; display: flex; flex-direction: column; }
.plan .pi { width: 28px; height: 28px; margin: 0 auto; border: 1px solid var(--hr-line); border-radius: 6px; display: grid; place-items: center; }
.plan .pi svg { width: 14px; height: 14px; }
.plan .pn { text-align: center; font-size: 13px; margin-top: 10px; }
.plan .pp { text-align: center; font-size: 12px; margin-top: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--hr-line); }
.plan .pp b { font-size: 20px; font-weight: 700; }
.plan .ps { text-align: center; font-weight: 600; font-size: 12.5px; margin: 16px 0 10px; }
.plan ul { list-style: none; margin: 0; padding: 0; font-size: 11.5px; color: var(--hr-mid); }
.plan li { display: flex; align-items: center; gap: 6px; margin: 7px 0; }
.plan li svg { width: 13px; height: 13px; color: var(--hr-primary); flex: none; }
.plan hr { border: 0; border-top: 1px solid var(--hr-line); margin: 14px 0 10px; }
.plan .pf { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--hr-line); }
.trial { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--hr-line); border-radius: 8px; padding: 16px; gap: 20px; margin-bottom: 16px; }
.trial h4 { margin: 0; font-size: 14px; font-weight: 500; display: flex; gap: 8px; align-items: center; }
.trial h4 svg { width: 14px; height: 14px; }
.trial p { font-size: 11px; color: var(--hr-mid); margin: 8px 0 0 22px; }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgba(17,24,39,.35); display: none; align-items: flex-start; justify-content: center; padding-top: 12vh; z-index: 50; }
.modal-bg.open { display: flex; }
.modal { background: #fff; border-radius: 10px; width: 440px; max-width: calc(100vw - 32px); box-shadow: 0 20px 50px rgba(17,24,39,.2); }
.modal .mh { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--hr-line); font-weight: 600; font-size: 13.5px; }
.modal .mb { padding: 16px; }
.modal .mf { padding: 12px 16px; border-top: 1px solid var(--hr-line); display: flex; justify-content: flex-end; gap: 8px; }
.x { background: none; border: 0; cursor: pointer; color: var(--hr-muted); font-size: 18px; line-height: 1; }

/* unibox */
.ubox { display: grid; grid-template-columns: 250px 1fr; flex: 1; background: #fff; border: 1px solid var(--hr-line); border-radius: var(--hr-radius); min-height: calc(100vh - 70px); overflow: hidden; }
.ubox-list { border-right: 1px solid var(--hr-line); display: flex; flex-direction: column; min-height: 0; }
.ubox-list .tabs2 { padding: 0 14px; }
.ubox-search { display: flex; gap: 6px; padding: 10px 10px; }
.ubox-search .field { flex: 1; height: 28px; }
.ubox-threads { overflow-y: auto; flex: 1; }
.th { display: block; padding: 10px 12px; border-bottom: 1px solid var(--hr-line-2); }
.th:hover { background: #FAFAFC; }
.th.on { background: var(--hr-primary-soft); }
.th .top { display: flex; align-items: center; gap: 8px; }
.th .nm { font-weight: 600; font-size: 12px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.th .tm { font-size: 10.5px; color: var(--hr-faint); }
.th .sn { font-size: 11.5px; color: var(--hr-muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 38px; }
.th.unread .nm::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--hr-primary); margin-left: 6px; vertical-align: 1px; }
.star { background: none; border: 0; cursor: pointer; padding: 0; color: #D1D5DB; display: inline-grid; }
.star.on { color: #F59E0B; }
.star svg { width: 14px; height: 14px; }
.ubox-pane { display: flex; flex-direction: column; min-width: 0; }
.ubox-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--hr-line); }
.ubox-msgs { flex: 1; overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; background: #FAFBFC; }
.bub { max-width: 68%; padding: 9px 12px; border-radius: 12px; font-size: 12.5px; white-space: pre-wrap; }
.bub.in { background: #fff; border: 1px solid var(--hr-line); align-self: flex-start; border-bottom-left-radius: 3px; }
.bub.out { background: var(--hr-primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 3px; }
.bub .by { display: block; font-size: 10px; opacity: .7; margin-top: 4px; }
.ubox-compose { border-top: 1px solid var(--hr-line); padding: 10px 14px; display: flex; gap: 8px; align-items: flex-end; }
.ubox-compose textarea { flex: 1; min-height: 44px; }

/* network */
.acct-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; padding: 16px; }
.acct-card { border: 1px solid var(--hr-line); border-radius: 8px; padding: 14px; display: flex; gap: 12px; align-items: center; }
.acct-card:hover { border-color: #C7CBFA; box-shadow: 0 1px 6px rgba(79,70,229,.08); }
.conn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; padding: 0 16px 16px; }
.conn { border: 1px solid var(--hr-line); border-radius: 8px; padding: 12px; display: flex; gap: 10px; align-items: center; min-width: 0; }
.conn .nm { font-weight: 600; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conn .hl { font-size: 11px; color: var(--hr-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* auth pages */
.auth { min-height: 100vh; display: grid; place-items: center; background: var(--hr-bg); }
.auth .card { width: 380px; padding: 26px 24px; }
.auth h1 { font-size: 17px; font-weight: 700; margin: 12px 0 4px; }
.auth .brand2 { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.auth .brand2 svg { width: 22px; height: 22px; }

@media (max-width: 1000px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .two, .trial { grid-template-columns: 1fr; }
  .settings { grid-template-columns: 1fr; }
  .settings-nav { flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--hr-line); }
  .ubox { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .app { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; padding: 8px; overflow-x: auto; }
  .side .grow { display: none; }
  .stats, .plans { grid-template-columns: 1fr; }
  .topbar { flex-wrap: wrap; height: auto; padding: 12px 2px; }
}

/* dropdown icons never render at their natural size */
.pop svg { width: 15px; height: 15px; flex: none; }
/* workspace switcher (top bar) */
.pop.wsmenu { width: 300px; padding: 0; overflow: hidden; top: 36px; }
.ws-search { display: flex; align-items: center; gap: 8px; margin: 12px; height: 34px; padding: 0 10px; border: 1px solid var(--hr-line); border-radius: 6px; color: var(--hr-faint); }
.ws-search input { border: 0; outline: 0; flex: 1; font: inherit; font-size: 12.5px; color: var(--hr-text); background: transparent; padding: 0; width: auto; }
.ws-head { padding: 9px 14px; font-size: 12px; color: var(--hr-muted); background: #F9FAFB; border-top: 1px solid var(--hr-line-2); border-bottom: 1px solid var(--hr-line-2); }
.ws-list { max-height: 260px; overflow-y: auto; padding: 4px 0; }
.ws-item button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; background: none; border: 0; font: inherit; font-size: 13px; color: var(--hr-text); cursor: pointer; text-align: left; border-radius: 0; }
.ws-item button:hover { background: var(--hr-gray-soft); }
.ws-item svg { color: var(--hr-muted); }
.ws-check svg { color: var(--hr-primary); width: 16px; height: 16px; }
.ws-foot { padding: 10px 12px 12px; }
.ws-foot .b { height: 36px; font-size: 13px; }

/* ---------- campaign view (Campaign / Leads / Senders analytics) ---------- */
.flash2.warn { background: var(--hr-orange-soft); color: #92400E; border-color: #FCD9A0; }
.flash2.ok { background: var(--hr-green-soft); }
.badge.orange { color: #B45309; background: var(--hr-orange-soft); border-color: #FCD9A0; }
.badge svg { width: 11px; height: 11px; vertical-align: -1px; }
.chip2.orange { background: var(--hr-orange-soft); color: #B45309; }
a.chip2:hover { text-decoration: underline; }
.grow { flex: 1; }
.cv-head { padding-bottom: 12px; }
.cv-title { font-size: 15px !important; }
.cv-pen { border: 0; background: none; color: var(--hr-text); cursor: pointer; display: grid; place-items: center; padding: 2px; }
.cv-pen svg { width: 14px; height: 14px; }
.cv-st { font-weight: 500; }
.cv-actions { display: inline-flex; gap: 8px; align-items: center; }
.cv-actions form { margin: 0; }
.pop button.danger { color: #DC2626; }
.cv-body { padding: 4px 16px 18px; }
.cv-body .flash2 { margin: 12px 0 0; }
.cv-filters, .cv-body > .filters { padding-left: 0; padding-right: 0; }
.cv-custom { display: inline-flex; gap: 6px; align-items: center; }
.cv-custom[hidden] { display: none; }
.sub { border: 1px solid var(--hr-line); border-radius: var(--hr-radius); margin-top: 14px; padding-bottom: 12px; background: #fff; }
.sub-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 14px 12px; }
.sub-head h3 { font-size: 13.5px; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 8px; }
.sub .filters { padding: 0 14px 12px; }
.sub .tbl-foot { padding: 10px 14px 0; }
.stats.three { grid-template-columns: repeat(3, 1fr); padding: 0 14px; }
.stat .lbl a { color: var(--hr-faint); display: grid; place-items: center; width: 16px; height: 16px; border: 1px solid var(--hr-line); border-radius: 3px; }
.stat .lbl a svg { width: 10px; height: 10px; }
.sub .chart-wrap, .sub .chart-legend { padding-left: 14px; padding-right: 14px; }
.cv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 14px; }
.cv-grid .box { padding: 12px 14px; }
.cv-prog { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 11px; color: var(--hr-mid); }
.cv-prog .bar { flex: 1; height: 4px; border-radius: 2px; background: var(--hr-line); overflow: hidden; }
.cv-prog .bar i { display: block; height: 100%; background: var(--hr-primary); }
.cv-days { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 8px; }
.cv-days span { font-size: 11px; padding: 2px 8px; border-radius: 4px; border: 1px solid var(--hr-line); color: var(--hr-faint); background: #fff; }
.cv-days span.on { color: var(--hr-blue); background: var(--hr-blue-soft); border-color: #BFD7FB; }
.cv-days.pick label { cursor: pointer; margin: 0; }
.cv-days.pick input { display: none; }
.cv-days.pick input:checked + span { color: var(--hr-blue); background: var(--hr-blue-soft); border-color: #BFD7FB; }
.cv-line { display: flex; align-items: center; gap: 7px; font-size: 12px; margin-top: 8px; flex-wrap: wrap; }
.cv-line svg { width: 13px; height: 13px; color: var(--hr-muted); flex: none; }
.cv-line.warn { color: #B45309; }
.cv-sep { color: var(--hr-faint); }
.cv-sender { margin-top: 8px; }
.cv-funnel { display: grid; grid-template-columns: repeat(4, 1fr) 220px; gap: 14px; padding: 0 14px 4px; }
.cv-funnel .fcol .fl { display: flex; align-items: center; gap: 7px; }
.fbar { height: 92px; background: #F3F4F6; border-radius: 4px; display: flex; align-items: flex-end; overflow: hidden; margin-top: 8px; }
.fbar i { display: block; width: 100%; min-height: 4px; }
.fbar.purple i { background: #7C5CF5; } .fbar.blue i { background: #5B6CF0; } .fbar.green i { background: #1DB26B; } .fbar.orange i { background: #F59E0B; }
.ffoot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 12px; }
.fside { display: flex; flex-direction: column; gap: 7px; font-size: 11.5px; color: var(--hr-text); padding-top: 2px; }
.fside div { display: flex; align-items: center; gap: 7px; }
.fside svg { width: 12px; height: 12px; color: var(--hr-muted); }
.fside b { margin-left: auto; }
.cv-fl { padding: 0 14px 10px; }
.cv-filterbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cv-tablewrap { overflow-x: auto; }
.cv-tablewrap .tbl td { white-space: nowrap; }
@media (max-width: 900px) {
  .stats.three, .cv-grid { grid-template-columns: 1fr; }
  .cv-funnel { grid-template-columns: 1fr 1fr; }
  .cv-head { flex-wrap: wrap; }
}

/* ---------- Add leads (import methods) ---------- */
.al { display: grid; grid-template-columns: 340px 1fr; gap: 14px; align-items: start; }
.al-methods { padding: 14px 16px 16px; }
.al-methods h2 { font-size: 14px; font-weight: 700; margin: 4px 4px 14px; }
.al-m { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--hr-line); border-radius: 7px; margin-bottom: 8px; font-size: 12.5px; font-weight: 500; color: var(--hr-text); background: #fff; }
.al-m:hover { border-color: #CBD0D8; }
.al-m.on { background: #EEF0F4; border-color: #DADDE3; }
.al-ic { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; flex: none; color: var(--hr-primary); background: var(--hr-primary-soft); }
.al-ic svg { width: 17px; height: 17px; }
.al-ic.li { background: #0A66C2; color: #fff; }
.al-ic img { width: 22px; height: 22px; object-fit: contain; }
.al-main { min-height: 480px; }
.al-main .flash2 { margin: 12px 16px 0; }
.al-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--hr-line); }
.al-head h2 { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; margin: 0; }
.al-head h2 .al-ic { width: 26px; height: 26px; }
.al-pad { padding: 14px 16px 18px; }
.al-desc { font-size: 12.5px; color: var(--hr-mid); margin: 0 0 12px; line-height: 1.55; }
.al-note { border: 1px solid #93B4F7; background: #F3F7FF; color: var(--hr-text); border-radius: 6px; padding: 14px 16px; font-size: 11.5px; text-align: center; line-height: 1.5; }
.al-upload { display: flex; justify-content: center; margin: 12px 0 16px; }
.al-upload label { cursor: pointer; }
.req { color: #DC2626; }
.al-addvar { margin: 4px 0 10px; justify-content: center; }
.al-keep { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--hr-mid); margin: 0 0 12px; font-weight: 400; }
.al-target { display: flex; align-items: center; gap: 7px; font-size: 12px; border: 1px solid var(--hr-line); border-radius: 5px; padding: 6px 9px; }
.al-target svg { width: 13px; height: 13px; color: var(--hr-muted); }
.al-var { display: grid; grid-template-columns: 1fr 1fr 28px; gap: 8px; align-items: center; }
.al-or { display: flex; align-items: center; gap: 10px; margin: 22px 0 14px; color: var(--hr-faint); font-size: 11px; font-weight: 600; }
.al-or::before, .al-or::after { content: ""; flex: 1; height: 1px; background: var(--hr-line); }
.al-classic h3 { font-size: 13px; font-weight: 600; margin: 0 0 10px; }
.al-form { max-width: 520px; }
.al-live-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.al-url { flex: 1; min-width: 240px; }
.al-status { font-size: 12px; color: var(--hr-mid); min-height: 18px; margin-bottom: 8px; }
.al-status.ok { color: #15803D; }
.al-status.err { color: #DC2626; }
.al-stage { border: 1px solid var(--hr-line); border-radius: 6px; overflow: hidden; background: #1C2230; }
.al-stage canvas { display: block; width: 100%; height: auto; cursor: default; outline: 0; }
.al-result { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; }
@media (max-width: 900px) { .al { grid-template-columns: 1fr; } }

/* ---------- Create / Edit campaign wizard ---------- */
.wz { display: flex; flex-direction: column; min-height: calc(100vh - 90px); }
.wz-steps { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px; border-bottom: 1px solid var(--hr-line); flex-wrap: wrap; }
.wz-step { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--hr-mid); font-weight: 500; }
.wz-step .dot { width: 15px; height: 15px; border-radius: 50%; background: #6B7280; box-shadow: inset 0 0 0 4px #6B7280, inset 0 0 0 6px #fff; display: grid; place-items: center; }
.wz-step.on { color: var(--hr-text); }
.wz-step.on .dot { background: #fff; box-shadow: inset 0 0 0 4px var(--hr-primary); }
.wz-step.done .dot { background: #A5B4FC; box-shadow: none; color: #fff; }
.wz-step.done .dot svg { width: 9px; height: 9px; }
.wz-sep { width: 26px; height: 1px; background: var(--hr-line); }
.wz .flash2 { margin: 12px 16px 0; }
.wz-body { flex: 1; padding: 16px; }
.wz-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.wz-check { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 400; margin: 0 0 7px; color: var(--hr-text); }
.wz-foot { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-top: 1px solid var(--hr-line); }
.wz-seq { background-image: radial-gradient(#E5E7EB 1px, transparent 1px); background-size: 14px 14px; }
.wz-choose { display: flex; justify-content: center; gap: 16px; padding: 12vh 0; flex-wrap: wrap; }
.wz-card { width: 228px; background: #fff; border: 1px solid var(--hr-line); border-radius: 8px; padding: 10px 10px 12px; box-shadow: 0 4px 14px rgba(17,24,39,.05); }
.wz-art { height: 124px; border-radius: 6px; display: grid; place-items: center; margin-bottom: 12px; }
.wz-art svg { width: 44px; height: 44px; }
.wz-art.blue { background: linear-gradient(135deg, #DCE3FF, #EEF1FF); color: var(--hr-primary); }
.wz-art.pink { background: linear-gradient(135deg, #FFE1E1, #FFF0EE); color: #E0564F; }
.wz-card h3 { font-size: 12.5px; margin: 0 0 10px; }
.wz-li { display: flex; gap: 8px; align-items: flex-start; font-size: 10.5px; color: var(--hr-mid); margin-bottom: 9px; line-height: 1.4; }
.wz-li svg { width: 13px; height: 13px; flex: none; border: 1px solid var(--hr-line); border-radius: 5px; padding: 5px; box-sizing: content-box; }
.wz-2btn { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.wz-2btn .b { justify-content: center; }
.wz-seqhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 13px; }
.wz-bmodal { width: 1100px; }
.wz-bbody { display: grid; grid-template-columns: 330px 1fr; height: 560px; }
.wz-blist { border-right: 1px solid var(--hr-line); padding: 12px; overflow: auto; }
.wz-btabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; margin-bottom: 10px; }
.wz-btabs a { text-align: center; }
.wz-bsearch { width: 100%; margin-bottom: 10px; height: 32px; }
.wz-item { display: block; width: 100%; text-align: left; background: #fff; border: 1px solid var(--hr-line); border-radius: 8px; padding: 12px; margin-bottom: 8px; cursor: pointer; font: inherit; }
.wz-item.on { border-color: var(--hr-primary); background: #FAFAFF; }
.wz-item b { display: block; font-size: 13px; margin-bottom: 4px; }
.wz-item span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 11.5px; color: var(--hr-muted); }
.wz-imodal { width: 560px; padding: 28px 30px 26px; position: relative; text-align: center; }
.wz-imodal h3 { font-size: 16px; margin: 0 0 12px; }
.wz-imodal p { font-size: 12.5px; color: var(--hr-mid); text-align: left; line-height: 1.55; }
.wz-ix { position: absolute; right: 14px; top: 12px; }
.wz-drop { display: flex; flex-direction: column; align-items: center; gap: 8px; border: 1.5px dashed #CBD0D8; border-radius: 8px; padding: 40px 10px; cursor: pointer; font-size: 12.5px; color: var(--hr-mid); margin: 14px 0 8px; }
.wz-drop.over { border-color: var(--hr-primary); background: var(--hr-primary-soft); }
.wz-sum { display: flex; flex-direction: column; gap: 9px; }
.wz-sum div { display: grid; grid-template-columns: 140px 1fr; font-size: 12px; }
.wz-sum span { color: var(--hr-muted); }
/* read-only sequence tree */
.st-wrap { position: relative; border: 1px solid var(--hr-line); border-radius: 8px; background: #fff radial-gradient(#E5E7EB 1px, transparent 1px) 0 0 / 14px 14px; overflow: hidden; min-height: 320px; }
.wz-bbody .st-wrap { border: 0; border-radius: 0; }
.st-wrap.tall { min-height: 520px; }
.st-canvas { overflow: auto; height: 100%; max-height: 640px; padding: 16px 10px 30px; }
.wz-bbody .st-canvas { max-height: 560px; }
.st-inner { display: inline-flex; flex-direction: column; align-items: center; transform-origin: top left; min-width: 100%; }
.st-start { font-size: 11px; font-weight: 600; color: var(--hr-text); }
.st-branch { display: flex; flex-direction: column; align-items: center; }
.st-node { background: #fff; border: 1px solid var(--hr-line); border-radius: 7px; box-shadow: 0 2px 6px rgba(17,24,39,.06); width: 190px; font-size: 11px; }
.st-node.warn { border-color: #F2B8B5; }
.st-wait { padding: 4px 8px; border-bottom: 1px solid var(--hr-line); color: var(--hr-muted); font-size: 10px; background: #FAFAFB; border-radius: 7px 7px 0 0; }
.st-wait b { color: var(--hr-primary); font-weight: 600; }
.st-body { display: flex; gap: 7px; align-items: center; padding: 7px 8px; }
.st-body b { display: block; font-size: 11px; }
.st-body small { display: block; font-size: 9.5px; color: var(--hr-muted); }
.st-ic { width: 22px; height: 22px; border: 1px solid var(--hr-line); border-radius: 5px; display: grid; place-items: center; font-size: 11px; flex: none; }
.st-line { width: 1px; height: 18px; background: #CBD0D8; }
.st-kids { display: flex; gap: 22px; padding-top: 16px; border-top: 1px solid #CBD0D8; margin-top: 16px; position: relative; }
.st-kid { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.st-port { font-size: 9.5px; padding: 1px 7px; border-radius: 9px; border: 1px solid; white-space: nowrap; }
.st-port.neg { color: #DC2626; background: #FEF2F2; border-color: #FCA5A5; }
.st-port.pos { color: #15803D; background: #F0FDF4; border-color: #86EFAC; }
.st-zoom { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; z-index: 2; }
.st-zoom button { width: 30px; height: 30px; border: 1px solid var(--hr-line); border-radius: 6px; background: #fff; cursor: pointer; font-size: 14px; }
.st-empty { padding: 30px; text-align: center; color: var(--hr-muted); font-size: 12px; }
@media (max-width: 900px) { .wz-two, .wz-bbody { grid-template-columns: 1fr; } .wz-bbody { height: auto; } }
.wz-info { display: flex; gap: 10px; align-items: center; background: #E3EEFD; border-radius: 6px; padding: 16px 18px; font-size: 12.5px; color: var(--hr-text); }
.wz-info svg { width: 15px; height: 15px; flex: none; }
.wz-warn { color: #D97706; display: inline-grid; vertical-align: -2px; }
.wz-warn svg { width: 13px; height: 13px; }
.wz-act { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; padding: 2px 8px; border: 1px solid var(--hr-mid); border-radius: 4px; color: var(--hr-mid); }
.wz-act.ok { border-color: var(--hr-green-line); color: #15803D; background: var(--hr-green-soft); }
.wz-act svg { width: 11px; height: 11px; }
.wz-sched { padding: 10px 16px; }
.wz-row { display: grid; grid-template-columns: minmax(200px, 30%) 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--hr-line); align-items: center; }
.wz-row:last-child { border-bottom: 0; }
.wz-row b { font-size: 13px; }
.wz-row p { font-size: 12px; color: var(--hr-mid); margin: 3px 0 0; }
.wz-dates { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.wz-dates .b { height: 30px; }
.wz-hours { display: grid; grid-template-columns: 180px 180px; gap: 12px; }
.wz-daypills { display: flex; gap: 10px; flex-wrap: wrap; }
.wz-daypills label { margin: 0; cursor: pointer; }
.wz-daypills input { display: none; }
.wz-daypills span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border: 1px solid var(--hr-line); border-radius: 999px; font-size: 12.5px; }
.wz-daypills i { width: 14px; height: 14px; border-radius: 50%; border: 1px solid #CBD0D8; display: inline-block; }
.wz-daypills input:checked + span { background: var(--hr-primary-soft); border-color: #A5B4FC; }
.wz-daypills input:checked + span i { background: var(--hr-primary) 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'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/10px no-repeat; border-color: var(--hr-primary); }
.wz-prev { display: grid; grid-template-columns: minmax(200px, 22%) 1fr; gap: 24px; align-items: start; }
.wz-prev > div > b { font-size: 13px; }
.wz-prev p { font-size: 12px; color: var(--hr-mid); margin: 3px 0 0; }
.wz-ov { display: flex; flex-direction: column; gap: 12px; }
.wz-ov > div { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.wz-ov .k { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; min-width: 190px; }
.wz-ov .k svg { width: 14px; height: 14px; color: var(--hr-muted); }
.wz-ov .v { font-size: 12.5px; }
.wz-day { font-size: 11.5px; padding: 3px 9px; border-radius: 4px; background: var(--hr-gray-soft); border: 1px solid var(--hr-line); }
.wz-day.on { background: var(--hr-blue-soft); color: var(--hr-blue); border-color: #BFD7FB; }
@media (max-width: 900px) { .wz-row, .wz-prev, .wz-dates { grid-template-columns: 1fr; } }
/* flow canvas embedded in Campaign > Steps analytics */
.app.embed { grid-template-columns: 1fr; min-height: 0; }
.app.embed main.legacy { padding: 12px 14px 20px; }
.cv-steps { padding: 0; }
.cv-steps iframe { width: 100%; height: calc(100vh - 230px); min-height: 640px; border: 0; display: block; }
.cv-stepbar { display: flex; justify-content: space-between; align-items: center; margin: 12px 0; gap: 10px; }
.cv-switch { position: relative; display: inline-block; width: 38px; height: 22px; margin: 0; }
.cv-switch input { display: none; }
.cv-switch span { position: absolute; inset: 0; background: #D1D5DB; border-radius: 22px; cursor: pointer; transition: .2s; }
.cv-switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .2s; }
.cv-switch input:checked + span { background: #A5B4FC; }
.cv-switch input:checked + span::after { transform: translateX(16px); }
.seg a { display: inline-flex; align-items: center; gap: 6px; }
.seg a svg { width: 14px; height: 14px; flex: none; }

/* ---------- Connect a LinkedIn account ---------- */
.cc-bg { position: fixed; inset: 0; background: rgba(17,24,39,.4); display: flex; align-items: center; justify-content: center; z-index: 80; font-family: inherit; }
.cc-bg[hidden] { display: none; }
.cc { background: #fff; border-radius: 12px; width: 680px; max-width: calc(100vw - 24px); max-height: calc(100vh - 24px); display: flex; overflow: hidden; box-shadow: 0 24px 60px rgba(17,24,39,.25); color: #111827; }
.cc.wide { width: 1080px; }
.cc-art { width: 400px; flex: none; background: radial-gradient(circle at 60% 70%, #7C3AED 0, #3B1D6E 40%, #151233 75%); color: #fff; padding: 34px 36px; position: relative; overflow: hidden; }
.cc-art[hidden] { display: none; }
.cc-art h2 { font-size: 38px; margin: 0 0 14px; font-weight: 800; }
.cc-art p { font-size: 21px; margin: 0; line-height: 1.4; }
.cc-blob { position: absolute; left: 40px; right: -40px; bottom: -60px; height: 360px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #F5D9A8, #E8B76F 35%, transparent 36%), radial-gradient(circle at 50% 50%, #B794F6 0, #7C3AED 45%, transparent 70%); opacity: .9; }
.cc-main { flex: 1; padding: 22px 26px 22px; overflow: auto; display: flex; flex-direction: column; }
.cc-main section { display: flex; flex-direction: column; flex: 1; }
.cc-main section[hidden] { display: none; }
.cc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.cc-dots { display: flex; gap: 6px; }
.cc-dots i { width: 8px; height: 8px; border-radius: 50%; background: #D1D5DB; }
.cc-dots i.on { background: var(--hr-primary); }
.cc-x { border: 0; background: none; font-size: 24px; color: #6B7280; cursor: pointer; line-height: 1; }
.cc h3 { font-size: 18px; margin: 0 0 4px; font-weight: 600; }
.cc-sub { font-size: 13.5px; color: #6B7280; margin: 0 0 18px; }
.cc-h { display: flex; gap: 14px; align-items: flex-start; }
.cc-back { width: 40px; height: 40px; flex: none; border: 1px solid #D1D5DB; border-radius: 8px; background: #fff; cursor: pointer; display: grid; place-items: center; }
.cc-back svg { width: 16px; height: 16px; }
.cc-opt { display: grid; grid-template-columns: 44px 1fr auto; gap: 4px 14px; text-align: left; border: 1px solid #E5E7EB; border-radius: 12px; padding: 18px 20px; margin-bottom: 16px; background: #fff; cursor: pointer; font: inherit; color: inherit; }
.cc-opt:hover { border-color: #C7CBFA; }
.cc-opt.rec { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(90deg, #EF4444, #F59E0B, #10B981, #3B82F6) border-box; }
.cc-oic { width: 40px; height: 40px; border: 1px solid #E5E7EB; border-radius: 9px; display: grid; place-items: center; color: #4F46E5; flex: none; }
.cc-oic svg { width: 18px; height: 18px; }
.cc-ot b { display: block; font-size: 16px; font-weight: 600; }
.cc-ot small { display: block; font-size: 14px; font-weight: 600; color: #374151; margin-top: 4px; }
.cc-tags { display: flex; gap: 6px; align-self: start; }
.cc-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; border: 1px solid #E5E7EB; border-radius: 12px; padding: 2px 9px; color: #374151; white-space: nowrap; }
.cc-tag svg { width: 11px; height: 11px; }
.cc-tag.blue { color: #4F46E5; border-color: #C7CBFA; background: #EEF0FF; }
.cc-od { grid-column: 1 / -1; font-size: 14px; color: #4B5563; margin-top: 6px; }
.cc-stepi { display: flex; align-items: center; gap: 14px; border: 1px solid #E5E7EB; border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; color: inherit; text-decoration: none; }
.cc-stepi:hover { border-color: #C7CBFA; }
.cc-stepi.col { flex-direction: column; align-items: stretch; }
.cc-row { display: flex; align-items: center; gap: 14px; }
.cc-stepi .n { width: 26px; height: 26px; border-radius: 50%; border: 1px solid #C7CBFA; color: #4F46E5; display: grid; place-items: center; font-size: 13px; flex: none; }
.cc-stepi b { display: block; font-size: 15px; font-weight: 600; }
.cc-stepi small { display: block; font-size: 13px; color: #6B7280; margin-top: 2px; }
.cc-stepi .ext { margin-left: auto; color: #6B7280; }
.cc-stepi textarea { margin-top: 12px; border: 1px solid #D1D5DB; border-radius: 8px; padding: 10px 12px; font: 12.5px ui-monospace, monospace; resize: vertical; }
.cc-foot { display: flex; justify-content: space-between; margin-top: auto; padding-top: 22px; }
.cc-foot .b { height: 42px; padding: 0 18px; font-size: 14px; }
.cc-err { color: #DC2626; font-size: 12.5px; min-height: 16px; margin-top: 6px; }
.cc-who { display: flex; gap: 22px; align-items: flex-start; }
.cc-photo { width: 104px; height: 104px; border-radius: 50%; overflow: hidden; background: #E5E7EB; flex: none; display: grid; place-items: center; font-size: 34px; color: #6B7280; }
.cc-photo img { width: 100%; height: 100%; object-fit: cover; }
.cc-who b { font-size: 16px; }
.cc-who p { font-size: 14px; color: #4B5563; margin: 8px 0 0; }
.cc-note { font-size: 13px; color: #4B5563; }
.cc-pw { position: relative; }
.cc-pw button { position: absolute; right: 8px; top: 5px; border: 0; background: none; cursor: pointer; color: #6B7280; }
.cc-pw button svg { width: 16px; height: 16px; }
.cc-keep { display: flex; gap: 14px; border: 1px solid #E5E7EB; border-radius: 12px; padding: 16px; margin: 6px 0 16px; }
.cc-keep b { display: block; font-size: 15px; }
.cc-keep small { display: block; font-size: 13px; color: #6B7280; margin-top: 3px; }
.cc-card { border: 2px solid transparent; border-radius: 12px; padding: 16px 18px; background: linear-gradient(#F9FAFB, #F9FAFB) padding-box, linear-gradient(90deg, #EF4444, #F59E0B, #10B981, #3B82F6) border-box; }
.cc-card b { font-size: 14px; }
.cc-card p { font-size: 13px; color: #374151; margin: 6px 0 0; line-height: 1.55; }
.cc-lbl { display: block; font-size: 15px; font-weight: 600; margin-top: 4px; }
.cc-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.cc-choice { margin: 0; cursor: pointer; }
.cc-choice input { display: none; }
.cc-choice span { display: block; border: 1px solid #E5E7EB; border-radius: 12px; padding: 16px; height: 100%; position: relative; }
.cc-choice b { display: block; font-size: 15px; margin-bottom: 6px; }
.cc-choice small { font-size: 13px; color: #4B5563; line-height: 1.45; }
.cc-choice input:checked + span { border-color: #6366F1; }
.cc-choice input:checked + span::after { content: "✓"; position: absolute; right: 12px; top: 12px; width: 20px; height: 20px; border-radius: 50%; background: #4F46E5; color: #fff; font-size: 12px; display: grid; place-items: center; }
.cc-ptabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 18px; background: #F3F4F6; }
.cc-ptabs a { text-align: center; justify-content: center; padding: 10px; font-size: 14px; }
.cc-warnbox { display: flex; gap: 8px; background: #FEF9C3; color: #A16207; border-radius: 6px; padding: 12px 14px; font-size: 13.5px; font-weight: 500; margin-bottom: 16px; }
.cc-warnbox svg { width: 16px; height: 16px; flex: none; }
[data-pane="custom"] .inp { height: 42px; margin-top: 10px; font-size: 14px; }
.cc-3 { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.cc-3 .b { height: 42px; margin-top: 10px; }
#cc-country { height: 44px; font-size: 14px; }
@media (max-width: 800px) { .cc-art { display: none; } .cc-2, .cc-3 { grid-template-columns: 1fr; } }
.cc .inp { width: 100%; height: 40px; padding: 0 12px; border: 1px solid #D1D5DB; border-radius: 8px; font: inherit; font-size: 14px; color: #111827; background: #fff; outline: 0; box-sizing: border-box; }
.cc .inp:focus { border-color: #4F46E5; }
.cc .frow { margin-bottom: 14px; }
.cc .fl { font-size: 13.5px; margin-bottom: 6px; }
/* modals open centered and never run off the screen */
.modal-bg { align-items: center; padding: 20px; }
.modal { max-height: calc(100vh - 40px); overflow: auto; }
.wz-bmodal { display: flex; flex-direction: column; overflow: hidden; }
.wz-bbody { flex: 1; min-height: 0; height: min(600px, calc(100vh - 170px)); }
.wz-bbody .st-wrap { height: 100%; }
.wz-bbody .st-canvas { max-height: none; height: 100%; }
/* sequence tree: drag to pan, no text selection */
.st-canvas { cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none; }
.st-canvas.panning { cursor: grabbing; }
.st-inner { transform: none !important; }
/* sequence tree v2: our canvas cards + connector lines (seq_tree.js draws the lines) */
.st-inner { position: relative; display: inline-flex; flex-direction: column; align-items: center; padding: 6px 20px 30px; min-width: 100%; box-sizing: border-box; }
.st-links { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 0; overflow: visible; }
.st-branch { display: flex; flex-direction: column; align-items: center; position: relative; z-index: 1; }
.st-kids { display: flex; gap: 28px; margin-top: 44px; align-items: flex-start; padding: 0; border: 0; }
.st-kids::before { display: none; }
.st-pre { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 8px; }
.st-wait { background: #fff; border: 1px solid #E5E7EB; border-radius: 10px; padding: 1px 8px; font-size: 10px; color: #6B7280; border-bottom: 1px solid #E5E7EB; white-space: nowrap; }
.st-node { display: flex; gap: 9px; align-items: flex-start; width: 196px; box-sizing: border-box; padding: 10px 12px; background: #fff; border: 1.5px solid color-mix(in srgb, var(--c) 45%, #fff); border-radius: 8px; box-shadow: 0 1px 3px rgba(17,24,39,.06); font-size: 11px; }
.st-node .st-ic { width: auto; height: auto; border: 0; color: var(--c); font-size: 13px; line-height: 16px; }
.st-node b { display: block; color: var(--c); font-size: 12px; font-weight: 600; }
.st-node small { display: block; color: #8A929E; font-size: 9.5px; margin-top: 2px; }
.st-port { background: #fff; }
.st-start, .st-line { display: none; }

.cc-ptabs.three { grid-template-columns: 1fr 1fr 1.4fr; }
.cc #cc-ptype { height: 44px; font-size: 14px; margin-bottom: 6px; }
.cc-pnote { margin: 0 0 12px; }
.cc [data-pane] { margin-bottom: 10px; }
.cc-verify { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.cc-verify .b { height: 40px; }
/* Verify proxy: blue until checked, green when the proxy works, red when it doesn't */
.b.cc-vbtn { background: #2563EB; border-color: #2563EB; color: #fff; }
.b.cc-vbtn:hover { background: #1D4ED8; border-color: #1D4ED8; }
.b.cc-vbtn.is-checking { opacity: .75; cursor: progress; }
.b.cc-vbtn.is-ok { background: #16A34A; border-color: #16A34A; }
.b.cc-vbtn.is-ok:hover { background: #15803D; border-color: #15803D; }
.b.cc-vbtn.is-bad { background: #DC2626; border-color: #DC2626; }
.b.cc-vbtn.is-bad:hover { background: #B91C1C; border-color: #B91C1C; }
.cc-verified.is-ok { color: #15803D; }
.cc-verified.is-bad { color: #B91C1C; }
.cc-3 select.inp { height: 42px; margin-top: 10px; }

img.avatar { object-fit: cover; }

.cc-check { position: fixed; inset: 0; z-index: 90; background: rgba(17,24,39,.55); display: flex; align-items: center; justify-content: center; padding: 16px; }
.cc-check[hidden] { display: none; }
.cc-check-box { background: #1C2230; border-radius: 10px; overflow: hidden; width: min(1040px, 100%); height: min(800px, 100%); display: flex; flex-direction: column; }
.cc-check-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: #fff; font-size: 14px; }
.cc-check-box iframe { flex: 1; border: 0; width: 100%; }

/* .sub is also the campaign-page card class - page subtitles must not pick up its box */
.page-head .sub { border: 0; border-radius: 0; padding: 0; background: none; margin-top: 4px; }

/* sequence preview: a branch pointing at a step already drawn (e.g. the one shared AI Appointment Setter) */
.st-node.st-ref { border-style: dashed; opacity: .8; }
