:root {
  color-scheme: dark;
  --bg: #08070d;
  --side: #0c0a13;
  --surface: #13111c;
  --surface-2: #1a1726;
  --line: #262137;
  --line-strong: #362f4f;
  --ink: #f4f2fb;
  --muted: #a39db8;
  --faint: #6f6987;
  --brand: #8b5cf6;
  --brand-hi: #a855f7;
  --brand-lo: #7c3aed;
  --brand-text: #c4b5fd;
  --brand-soft: rgba(139, 92, 246, .14);
  --grad: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  --glow: 0 0 0 1px rgba(139, 92, 246, .5), 0 0 22px rgba(139, 92, 246, .28);
  --ok: #34d399; --ok-soft: rgba(52, 211, 153, .12);
  --warn: #fbbf24; --warn-soft: rgba(251, 191, 36, .12);
  --bad: #f87171; --bad-soft: rgba(248, 113, 113, .12);
  --radius: 14px;
  --head: "Montserrat", "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14px; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(900px 520px at 78% -8%, rgba(124, 58, 237, .20), transparent 62%),
              radial-gradient(700px 500px at 0% 110%, rgba(168, 85, 247, .08), transparent 60%);
}
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand-text); }
::selection { background: rgba(139, 92, 246, .45); }

/* ---------- logo ---------- */
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo svg { flex: none; }
.logo .word { display: flex; flex-direction: column; line-height: 1; }
.logo .word b { font-family: var(--head); font-weight: 800; font-size: 19px; letter-spacing: 1.2px; }
.logo .word small { font-family: var(--head); font-weight: 600; font-size: 8.5px; letter-spacing: 5.4px; color: var(--muted); margin-top: 4px; padding-left: 1px; }
.logo.big .word b { font-size: 30px; letter-spacing: 1.6px; }
.logo.big .word small { font-size: 12px; letter-spacing: 8.6px; margin-top: 6px; }

/* ---------- buttons and fields ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
  border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink);
  padding: 8px 15px; border-radius: 10px; font-weight: 600; cursor: pointer;
  transition: background .12s, border-color .12s, box-shadow .12s, filter .12s;
}
.btn:hover { border-color: #4b4168; background: #211d31; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 22px rgba(124, 58, 237, .35); }
.btn.primary:hover { filter: brightness(1.1); }
.btn.danger { color: var(--bad); }
.btn.danger:hover { background: var(--bad-soft); border-color: rgba(248, 113, 113, .4); }
.btn.small { padding: 5px 11px; font-size: 13px; }
.btn.link { border: none; background: none; padding: 0; color: var(--brand-text); box-shadow: none; }
.btn.link:hover { text-decoration: underline; background: none; }
label.field { display: block; margin-bottom: 15px; }
label.field > span { display: block; font-weight: 600; margin-bottom: 7px; }
label.field > small { display: block; color: var(--muted); margin-top: 6px; line-height: 1.45; }
.input, select.input, textarea.input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px;
  background: #0e0c16; outline: none; transition: border-color .12s, box-shadow .12s;
}
.input::placeholder { color: var(--faint); }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(139, 92, 246, .22); }
.input:disabled { opacity: .65; }
textarea.input { min-height: 90px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 14px; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--brand); }

/* ---------- sign in ---------- */
.auth-wrap { position: relative; z-index: 1; min-height: 100%; display: grid; place-items: center; padding: 24px; }
.auth-card {
  width: 100%; max-width: 420px; background: rgba(19, 17, 28, .92); border: 1px solid var(--line-strong);
  border-radius: 18px; box-shadow: 0 0 60px rgba(124, 58, 237, .18); padding: 36px 32px;
}
.auth-card .logo { justify-content: center; margin-bottom: 8px; }
.auth-card h1 { font-family: var(--head); font-size: 22px; margin: 26px 0 6px; letter-spacing: -.2px; }
.auth-card p.lead { color: var(--muted); margin: 0 0 22px; line-height: 1.5; }
.form-msg { min-height: 20px; color: var(--bad); margin: -4px 0 12px; line-height: 1.45; }

/* ---------- app shell ---------- */
.shell { position: relative; z-index: 1; display: grid; grid-template-columns: 252px 1fr; min-height: 100%; }
.side {
  background: var(--side); border-right: 1px solid var(--line); padding: 18px 12px 12px;
  display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.side .logo { padding: 2px 8px 4px; }
.nav-search { position: relative; }
.nav-search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.nav-search input {
  width: 100%; background: #13111c; border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 10px 8px 34px; outline: none; font-size: 13px;
}
.nav-search input:focus { border-color: var(--brand); }
.nav-search input::placeholder { color: var(--faint); }
.nav { display: flex; flex-direction: column; gap: 1px; }
.nav .sep { height: 1px; background: var(--line); margin: 8px 6px; }
.nav .item {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; background: none; border: none;
  color: #cfc9e2; padding: 8px 10px; border-radius: 9px; cursor: pointer; font-weight: 500; position: relative;
}
.nav .item svg.ic { flex: none; color: #8d86a6; }
.nav .item:hover { background: #17141f; color: #fff; }
.nav .item:hover svg.ic { color: #c4b5fd; }
.nav .item.active { background: linear-gradient(90deg, rgba(139, 92, 246, .26), rgba(139, 92, 246, .06)); color: #fff; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(139, 92, 246, .35); }
.nav .item.active svg.ic { color: #c4b5fd; }
.nav .item.parent-on { color: #fff; }
.nav .item.parent-on svg.ic { color: #c4b5fd; }
.nav .chev { margin-left: auto; color: var(--faint); transition: transform .15s; }
.nav .group.open .chev { transform: rotate(90deg); }
.nav .kids { display: none; flex-direction: column; gap: 1px; margin: 2px 0 6px; }
.nav .group.open .kids { display: flex; }
.nav .kid {
  text-align: left; background: none; border: none; color: #aaa3c2; padding: 7px 10px 7px 40px;
  border-radius: 9px; cursor: pointer; font-size: 13.5px;
}
.nav .kid:hover { background: #17141f; color: #fff; }
.nav .kid.active { color: #fff; font-weight: 600; background: rgba(139, 92, 246, .16); box-shadow: inset 2px 0 0 var(--brand); }
.nav .soon { margin-left: auto; font-size: 10px; font-weight: 600; letter-spacing: .3px; color: var(--faint); border: 1px solid var(--line); border-radius: 999px; padding: 1px 6px; }
.nav .kid .soon { margin-left: 6px; }
.side-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 1px; }
.acct {
  display: flex; align-items: center; gap: 10px; width: 100%; background: #13111c; border: 1px solid var(--line);
  border-radius: 12px; padding: 9px 10px; cursor: pointer; text-align: left; margin-top: 8px;
}
.acct:hover { border-color: var(--line-strong); }
.avatar {
  width: 32px; height: 32px; border-radius: 9px; background: var(--grad); color: #fff; flex: none;
  display: grid; place-items: center; font-family: var(--head); font-weight: 800; font-size: 14px;
}
.acct .t { min-width: 0; flex: 1; }
.acct .t b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct .t small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-menu {
  position: fixed; z-index: 60; width: 270px; background: #15121f; border: 1px solid var(--line-strong);
  border-radius: 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, .5), 0 0 30px rgba(124, 58, 237, .15); padding: 8px;
}
.acct-menu .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--faint); padding: 8px 10px 4px; }
.acct-menu button {
  display: flex; align-items: center; gap: 9px; width: 100%; background: none; border: none; text-align: left;
  padding: 8px 10px; border-radius: 8px; cursor: pointer; color: #ddd8ee;
}
.acct-menu button:hover { background: #1f1a2e; color: #fff; }
.acct-menu button.on { color: #fff; font-weight: 600; }
.acct-menu button.on::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 10px var(--brand); }
.acct-menu .div { height: 1px; background: var(--line); margin: 6px 4px; }
.acct-menu .who { padding: 8px 10px 6px; color: var(--muted); font-size: 12.5px; word-break: break-all; }
.acct-menu .brands { max-height: 220px; overflow-y: auto; }
.build { color: #4d4766; font-size: 11px; padding: 8px 10px 0; }

.mtop { display: none; }
main { padding: 30px 38px 70px; max-width: 1200px; width: 100%; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.page-head h1 { font-family: var(--head); font-size: 26px; margin: 0; letter-spacing: -.3px; display: flex; align-items: center; gap: 12px; }
.page-head p { margin: 7px 0 0; color: var(--muted); max-width: 660px; line-height: 1.55; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card.pad { padding: 22px 24px; overflow: visible; }
.card h2 { font-family: var(--head); font-size: 16px; margin: 0 0 4px; }
.card .sub-head { color: var(--muted); margin: 0 0 16px; line-height: 1.5; }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 16px; }
.stat .n { font-family: var(--head); font-size: 25px; font-weight: 700; letter-spacing: -.3px; }
.stat .l { color: var(--muted); font-size: 13px; margin-top: 3px; }
.stat.hero { background: linear-gradient(140deg, rgba(168, 85, 247, .22), rgba(124, 58, 237, .08)); border-color: rgba(139, 92, 246, .45); box-shadow: 0 0 26px rgba(124, 58, 237, .18); }
.stat.hero .n { color: #ddd2ff; }

.toolbar { display: flex; gap: 10px; padding: 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.toolbar .input { max-width: 320px; }
.toolbar select.input { max-width: 230px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .7px; color: var(--faint); font-weight: 600; background: #110f19; }
tr:last-child td { border-bottom: none; }
tr.click { cursor: pointer; }
tr.click:hover td { background: rgba(139, 92, 246, .06); }
td.muted { color: var(--muted); }
td .sub { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.row-actions { text-align: right; }
.row-actions .btn { margin: 2px 0 2px 6px; }
.empty { padding: 44px 20px; text-align: center; color: var(--muted); line-height: 1.6; }
.empty strong { color: var(--ink); display: block; font-size: 15px; margin-bottom: 4px; font-family: var(--head); }
.pager { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-top: 1px solid var(--line); color: var(--muted); }

.pill { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.grey { background: rgba(255, 255, 255, .07); color: #c9c4dc; }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.purple { background: var(--brand-soft); color: var(--brand-text); border: 1px solid rgba(139, 92, 246, .35); }

.back { margin-bottom: 14px; }
.info {
  background: rgba(139, 92, 246, .07); border: 1px solid rgba(139, 92, 246, .24); border-radius: var(--radius);
  padding: 14px 16px; line-height: 1.6; color: #cdc6e4; margin-bottom: 18px;
}
.info b { color: #fff; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; flex-wrap: wrap; }
.tabs button {
  background: none; border: none; color: var(--muted); padding: 10px 14px; cursor: pointer; font-weight: 600;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs button:hover { color: #fff; }
.tabs button.on { color: #fff; border-bottom-color: var(--brand); }

.soon-card { padding: 34px 30px; display: grid; grid-template-columns: 64px 1fr; gap: 22px; align-items: start; }
.soon-icon {
  width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; color: #fff;
  background: var(--grad); box-shadow: 0 0 34px rgba(139, 92, 246, .45);
}
.soon-card h2 { font-size: 18px; margin-bottom: 8px; }
.soon-card p { color: #cdc6e4; line-height: 1.6; margin: 0 0 12px; max-width: 640px; }
.soon-card .when { color: var(--muted); font-size: 13px; }

.checklist { display: flex; flex-direction: column; }
.check-row { display: flex; align-items: center; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.check-row:last-child { border-bottom: none; }
.tick { width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center; border: 1.5px solid var(--line-strong); }
.tick.done { background: var(--grad); border-color: transparent; box-shadow: 0 0 14px rgba(139, 92, 246, .5); }
.check-row .txt { flex: 1; }
.check-row .txt b { display: block; }
.check-row .txt small { color: var(--muted); }
.check-row.done .txt b { color: var(--muted); font-weight: 500; }
.grid-home { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }

/* ---------- modal ---------- */
.modal-back {
  position: fixed; inset: 0; background: rgba(3, 2, 8, .7); backdrop-filter: blur(3px); display: grid; place-items: center;
  padding: 20px; z-index: 70; overflow-y: auto;
}
.modal {
  background: #14121d; border: 1px solid var(--line-strong); border-radius: 18px; width: 100%; max-width: 480px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 40px rgba(124, 58, 237, .14);
  max-height: calc(100vh - 40px); display: flex; flex-direction: column;
}
.modal.wide { max-width: 780px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-family: var(--head); margin: 0; font-size: 18px; word-break: break-all; }
.modal-head .x { background: none; border: none; font-size: 24px; line-height: 1; cursor: pointer; color: var(--muted); padding: 4px 8px; }
.modal-head .x:hover { color: #fff; }
.modal-body { padding: 20px 22px; overflow-y: auto; line-height: 1.55; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line); }
.modal-body h3 { font-family: var(--head); font-size: 14px; margin: 22px 0 10px; }
.modal-body h3:first-child { margin-top: 0; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.status-box { border-radius: 12px; padding: 13px 15px; margin-bottom: 18px; border: 1px solid transparent; }
.status-box.ok { background: var(--ok-soft); border-color: rgba(52, 211, 153, .3); color: #a7f3d0; }
.status-box.bad { background: var(--bad-soft); border-color: rgba(248, 113, 113, .3); color: #fecaca; }
.status-box.grey { background: rgba(255, 255, 255, .05); border-color: var(--line-strong); color: #d4cfe6; }
.status-box b { display: block; margin-bottom: 2px; color: #fff; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chip { display: inline-flex; gap: 6px; align-items: center; background: var(--brand-soft); border: 1px solid rgba(139, 92, 246, .3); border-radius: 999px; padding: 4px 6px 4px 11px; font-size: 13px; }
.chip button { background: none; border: none; cursor: pointer; color: var(--muted); font-size: 15px; line-height: 1; padding: 0 3px; }
.chip button:hover { color: #fff; }
.secret {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 16px;
  background: #0e0c16; border: 1px dashed #4b4168; border-radius: 10px; padding: 10px 12px; margin: 8px 0 14px; word-break: break-all;
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }

/* ---------- toast and loading ---------- */
#toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #1d1830; border: 1px solid rgba(139, 92, 246, .45); color: #fff; padding: 11px 18px; border-radius: 12px; opacity: 0;
  transition: opacity .2s, transform .2s; pointer-events: none; z-index: 90; max-width: calc(100vw - 40px);
  line-height: 1.45; box-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 0 24px rgba(124, 58, 237, .25);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.error { background: #2a1219; border-color: rgba(248, 113, 113, .5); color: #fecaca; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.loading { padding: 44px; text-align: center; color: var(--muted); }
#boot { position: relative; z-index: 1; min-height: 100%; display: grid; place-items: center; color: var(--muted); }

@media (max-width: 1100px) { .stats { grid-template-columns: repeat(3, 1fr); } .grid-home { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .mtop {
    display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 40;
    background: rgba(12, 10, 19, .95); border-bottom: 1px solid var(--line); padding: 10px 14px;
  }
  .mtop button { background: none; border: 1px solid var(--line-strong); color: #fff; border-radius: 9px; padding: 6px 9px; cursor: pointer; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: 0 0 60px rgba(0, 0, 0, .6); }
  .scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 45; }
  main { padding: 22px 16px 60px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid2 { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .soon-card { grid-template-columns: 1fr; }
  .page-head { flex-wrap: wrap; }
}

/* ---------- multi-page additions ---------- */
a.item, a.kid { text-decoration: none; }
.nav .kid { display: block; }
.crumbs { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.profile-grid { display: grid; grid-template-columns: 340px 1fr; gap: 16px; align-items: start; }
.profile-grid .card.pad + .card.pad { margin-top: 16px; }
.stack > * + * { margin-top: 16px; }
.tabs a { color: var(--muted); padding: 10px 14px; font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: #fff; }
.tabs a.on { color: #fff; border-bottom-color: var(--brand); }
@media (max-width: 1000px) { .profile-grid { grid-template-columns: 1fr; } }
.profile-grid .kv { grid-template-columns: 90px 1fr; }

/* ---------- campaigns ---------- */
.saved-note { color: var(--muted); font-size: 12.5px; min-width: 80px; text-align: right; align-self: center; }
.camp-grid { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 980px; }
.section-card h2 { display: flex; align-items: center; gap: 10px; }
.section-card .num { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); font-size: 13px; border: 1px solid rgba(139, 92, 246, .35); }
.aud-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; margin-top: 14px; }
.aud-col h3 { font-family: var(--head); font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--faint); margin: 0 0 10px; }
.pick { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; cursor: pointer; }
.pick:hover { border-color: var(--line-strong); }
.pick input { accent-color: var(--brand); }
.pick .cnt { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.pick.off { opacity: .45; cursor: default; }
.reach { background: linear-gradient(140deg, rgba(168, 85, 247, .18), rgba(124, 58, 237, .06)); border: 1px solid rgba(139, 92, 246, .4); border-radius: 12px; padding: 16px; }
.reach .big { font-family: var(--head); font-size: 30px; font-weight: 700; color: #ddd2ff; }
.reach ul { margin: 10px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; line-height: 1.8; }
.reach ul b { color: var(--ink); font-weight: 600; }
.content-row { display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: start; margin-top: 14px; }
.thumb { width: 260px; height: 320px; overflow: hidden; border-radius: 10px; border: 1px solid var(--line); background: #f3f3f5; position: relative; }
.thumb iframe { width: 640px; height: 800px; border: 0; transform: scale(.40625); transform-origin: 0 0; pointer-events: none; }
.checks { list-style: none; margin: 12px 0 18px; padding: 0; }
.checks li { display: flex; gap: 10px; align-items: center; padding: 6px 0; }
.checks .dot { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 12px; }
.checks .ok .dot { background: var(--ok-soft); color: var(--ok); }
.checks .no .dot { background: var(--bad-soft); color: var(--bad); }
.checks .no { color: #ddd8ee; }
.send-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.send-row .input { max-width: 240px; }
.notice { background: var(--warn-soft); border: 1px solid rgba(251, 191, 36, .35); color: #fde68a; border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* ---------- content editor ---------- */
.ed-wrap { display: grid; grid-template-columns: 420px 1fr; gap: 18px; align-items: start; }
.ed-panel { display: flex; flex-direction: column; gap: 12px; }
.ed-add { display: flex; flex-wrap: wrap; gap: 6px; }
.blk { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.blk.focus { border-color: rgba(139, 92, 246, .6); box-shadow: 0 0 0 3px rgba(139, 92, 246, .12); }
.blk-head { display: flex; align-items: center; gap: 6px; padding: 9px 10px 9px 14px; border-bottom: 1px solid var(--line); }
.blk-head b { font-size: 13px; flex: 1; }
.blk-head button { background: none; border: 1px solid transparent; color: var(--muted); border-radius: 7px; padding: 3px 7px; cursor: pointer; }
.blk-head button:hover { color: #fff; border-color: var(--line-strong); }
.blk-body { padding: 12px 14px 4px; }
.blk-body label.field { margin-bottom: 10px; }
.blk-body label.field > span { font-size: 12.5px; font-weight: 600; color: #cfc9e2; }
.blk-body .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.style-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.color-in { display: flex; gap: 8px; align-items: center; }
.color-in input[type=color] { width: 38px; height: 34px; border: 1px solid var(--line-strong); border-radius: 8px; background: none; padding: 2px; cursor: pointer; }
.ed-preview { position: sticky; top: 90px; }
.ed-preview .bar { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; }
.seg button { background: none; border: none; color: var(--muted); padding: 7px 14px; cursor: pointer; font-weight: 600; }
.seg button.on { background: var(--brand-soft); color: #fff; }
.frame-wrap { background: #f3f3f5; border-radius: 12px; border: 1px solid var(--line); overflow: hidden; display: flex; justify-content: center; }
.frame-wrap iframe { border: 0; width: 100%; height: calc(100vh - 170px); min-height: 560px; background: #f3f3f5; transition: width .2s; }
.frame-wrap.mobile iframe { width: 390px; }
.hint { color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.hint code { background: #1d1a28; border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; color: #ddd2ff; font-size: 12px; }
@media (max-width: 1100px) { .ed-wrap { grid-template-columns: 1fr; } .ed-preview { position: static; } .aud-cols { grid-template-columns: 1fr; } .content-row { grid-template-columns: 1fr; } }
label.field small code { background: #1d1a28; border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; color: #ddd2ff; font-size: 12px; }
a.btn { text-decoration: none; }

/* ---------- campaigns list (Klaviyo layout) ---------- */
.k-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.k-head h1 { font-family: var(--head); font-size: 26px; margin: 0; letter-spacing: -.3px; }
.k-head .actions { align-items: center; }
.icon-btn { background: var(--surface-2); border: 1px solid var(--line-strong); color: #ddd8ee; border-radius: 10px; width: 36px; height: 36px; display: inline-grid; place-items: center; cursor: pointer; }
.icon-btn:hover { border-color: #4b4168; color: #fff; }
.seg a { color: var(--muted); padding: 7px 14px; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.seg a.on { background: var(--brand-soft); color: #fff; }
.perf { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; margin-bottom: 14px; }
.perf-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.perf-toggle { background: none; border: none; color: #fff; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 0; font-size: 13.5px; }
.perf-toggle small { color: var(--muted); font-weight: 500; }
.perf-toggle svg { transition: transform .15s; }
.perf.closed .perf-toggle svg { transform: rotate(-90deg); }
.perf-cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.perf.closed .perf-cards { display: none; }
.perf-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.perf-card .n { font-family: var(--head); font-size: 20px; font-weight: 700; }
.perf-card .l { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.k-filters { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 14px; }
.k-filters .grp { display: flex; flex-direction: column; gap: 5px; }
.k-filters .grp > label { font-size: 12px; color: var(--muted); font-weight: 600; }
.k-search { position: relative; }
.k-search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.k-search input { padding-left: 32px; width: 210px; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 10px; cursor: pointer;
  background: transparent; border: 1px dashed #4b4168; color: #ddd8ee; font-weight: 500; white-space: nowrap;
}
.chip-btn:hover { border-color: var(--brand); color: #fff; }
.chip-btn.on { border-style: solid; border-color: rgba(139, 92, 246, .6); background: var(--brand-soft); color: #fff; }
.chip-btn:disabled { opacity: .45; cursor: default; }
.chip-btn svg { color: var(--muted); }
.k-filters .spacer { flex: 1; }
.metric-select { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: #0e0c16; min-width: 190px; color: #ddd8ee; }
.popover {
  position: fixed; z-index: 65; min-width: 220px; max-width: 320px; max-height: 360px; overflow-y: auto; background: #15121f; border: 1px solid var(--line-strong);
  border-radius: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, .5), 0 0 30px rgba(124, 58, 237, .12); padding: 6px;
}
.popover .opt { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; color: #ddd8ee; width: 100%; background: none; border: none; text-align: left; }
.popover .opt:hover { background: #1f1a2e; color: #fff; }
.popover .opt input { accent-color: var(--brand); }
.popover .opt.danger { color: var(--bad); }
.popover .div { height: 1px; background: var(--line); margin: 5px 4px; }
.popover .empty-opt { padding: 10px; color: var(--muted); font-size: 13px; }
.popover .pfoot { display: flex; justify-content: space-between; padding: 6px 6px 2px; }
table.k-table th { white-space: nowrap; }
table.k-table td { vertical-align: top; padding-top: 13px; padding-bottom: 13px; }
table.k-table th.cb, table.k-table td.cb { width: 36px; padding-right: 0; }
table.k-table input[type=checkbox] { accent-color: var(--brand); width: 15px; height: 15px; }
.camp-link { color: var(--brand-text); text-decoration: none; font-weight: 600; }
.camp-link:hover { text-decoration: underline; }
.k-metric { color: var(--brand-text); font-weight: 600; }
.k-sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
td.num, th.num { text-align: right; }
.kebab { background: none; border: 1px solid transparent; color: var(--muted); border-radius: 8px; width: 30px; height: 30px; cursor: pointer; display: inline-grid; place-items: center; }
.kebab:hover { border-color: var(--line-strong); color: #fff; }
.folder-row td { background: rgba(139, 92, 246, .04); }
.folder-link { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 600; }
.folder-link svg { color: var(--brand-text); }
.tagpill { display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: #c9c4dc; margin: 4px 4px 0 0; }
.bulkbar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--brand-soft); flex-wrap: wrap; }
.bulkbar b { margin-right: 6px; }
/* calendar */
.cal-wrap { display: grid; grid-template-columns: 1fr 260px; gap: 16px; align-items: start; }
.cal-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.cal-head h2 { margin: 0 6px; font-family: var(--head); font-size: 17px; min-width: 170px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-dow { padding: 8px 10px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--faint); border-bottom: 1px solid var(--line); }
.cal-day { min-height: 108px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 6px; }
.cal-day:nth-child(7n) { border-right: none; }
.cal-day .d { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.cal-day.other .d { opacity: .35; }
.cal-day.today .d { color: #fff; font-weight: 700; }
.cal-day.today .d span { background: var(--grad); border-radius: 999px; padding: 1px 7px; }
.cal-chip { display: block; font-size: 12px; padding: 4px 7px; border-radius: 7px; margin-bottom: 4px; text-decoration: none; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid; }
.cal-chip.sent { background: var(--ok-soft); border-color: var(--ok); }
.cal-chip.scheduled { background: var(--brand-soft); border-color: var(--brand); }
.cal-chip.other { background: rgba(255, 255, 255, .06); border-color: var(--faint); }
@media (max-width: 1100px) { .perf-cards { grid-template-columns: repeat(2, 1fr); } .cal-wrap { grid-template-columns: 1fr; } }
.k-search input { width: 180px; }
.k-filters #fRange { width: 150px !important; }
.metric-select { min-width: 150px; }
.chip-btn { padding: 0 11px; }
.k-filters { gap: 6px; }
.k-search input { width: 170px; }
.k-filters #fRange { width: 140px !important; }
.metric-select { min-width: 0; }
.chip-btn { padding: 0 10px; }
.k-right { display: inline-flex; gap: 6px; align-items: center; flex-wrap: nowrap; }

/* ---------- campaign builder (Klaviyo layout) ---------- */
.bld-top {
  position: sticky; top: 0; z-index: 30; margin: -30px -38px 22px; padding: 14px 38px;
  background: rgba(12, 10, 19, .94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.bld-back { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line-strong); color: #ddd8ee; text-decoration: none; flex: none; }
.bld-back:hover { color: #fff; border-color: #4b4168; }
.bld-title { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; flex: 1; }
.bld-name-row { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; }
.bld-title .nm { font-family: var(--head); font-size: 18px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 520px; }
.bld-title .nm-edit { background: none; border: none; color: var(--muted); cursor: pointer; padding: 4px; border-radius: 6px; }
.bld-title .nm-edit:hover { color: #fff; background: #1f1a2e; }
.bld-title input { font-family: var(--head); font-size: 17px; font-weight: 700; max-width: 420px; }
.bld-steps { display: flex; gap: 4px; align-items: center; color: var(--muted); font-size: 12.5px; font-weight: 600; margin-left: -8px; }
.bld-steps a { text-decoration: none; color: var(--muted); padding: 2px 8px; border-radius: 6px; }
.bld-steps a:hover { color: #fff; }
.bld-steps .on { color: #fff; background: var(--brand-soft); }
.bld-steps .sep { color: var(--faint); }
.bld-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.bld-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 14px; }
.bld-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.bld-card + .bld-card { margin-top: 14px; }
.bld-card h2 { font-family: var(--head); font-size: 16px; margin: 0 0 4px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bld-card .sub-head { margin-bottom: 14px; }
.picker { border: 1px solid var(--line-strong); border-radius: 10px; background: #0e0c16; min-height: 44px; padding: 6px 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; cursor: text; position: relative; }
.picker.disabled { opacity: .65; cursor: default; }
.picker .tok { display: inline-flex; align-items: center; gap: 6px; background: var(--brand-soft); border: 1px solid rgba(139, 92, 246, .35); color: #fff; border-radius: 8px; padding: 4px 6px 4px 10px; font-size: 13px; }
.picker .tok small { color: var(--muted); }
.picker .tok button { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 15px; line-height: 1; padding: 0 2px; }
.picker .tok button:hover { color: #fff; }
.picker input { flex: 1; min-width: 140px; background: none; border: none; outline: none; padding: 5px 4px; }
.est { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 14px 16px; border-radius: 12px;
  background: linear-gradient(140deg, rgba(168, 85, 247, .16), rgba(124, 58, 237, .05)); border: 1px solid rgba(139, 92, 246, .35); }
.est .big { font-family: var(--head); font-size: 26px; font-weight: 700; color: #ddd2ff; line-height: 1; }
.est .lbl { color: #ddd8ee; font-size: 13px; margin-top: 4px; }
.est details { color: var(--muted); font-size: 12.5px; text-align: right; }
.est details summary { cursor: pointer; color: var(--brand-text); }
.est details ul { list-style: none; margin: 8px 0 0; padding: 0; line-height: 1.7; }
.toggle-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.toggle-row:first-of-type { border-top: none; padding-top: 4px; }
.toggle-row b { display: block; margin-bottom: 3px; }
.toggle-row small { color: var(--muted); line-height: 1.5; }
.switch { position: relative; width: 40px; height: 22px; flex: none; margin-top: 2px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #2a2540; border-radius: 999px; cursor: pointer; transition: background .15s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + span { background: var(--brand); box-shadow: 0 0 12px rgba(139, 92, 246, .45); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:disabled + span { opacity: .5; cursor: default; }
.inbox { background: #f6f6f8; border-radius: 12px; padding: 12px 14px; color: #1f1f24; display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: start; }
.inbox .av { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; }
.inbox .fr { font-weight: 700; font-size: 14px; }
.inbox .sj { font-weight: 600; font-size: 13.5px; margin-top: 1px; }
.inbox .pv { color: #6b6b76; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.inbox .tm { color: #6b6b76; font-size: 12px; }
.inbox > div { min-width: 0; }
.email-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.email-card .bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.email-card .frame { background: #f3f3f5; display: flex; justify-content: center; }
.email-card iframe { border: 0; width: 100%; height: 560px; background: #f3f3f5; transition: width .2s; }
.email-card .frame.mobile iframe { width: 390px; }
.field-hint-ok { color: var(--ok) !important; }
.field-hint-bad { color: var(--warn) !important; }
/* review page */
.rv-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); align-items: start; }
.rv-row:first-of-type { border-top: none; }
.rv-row .k { color: var(--muted); font-weight: 600; }
.rv-row .v { color: #ece9f6; line-height: 1.55; min-width: 0; word-break: break-word; }
.rv-row .v small { display: block; color: var(--muted); }
.send-opt { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; cursor: pointer; }
.send-opt:hover { border-color: var(--line-strong); }
.send-opt.on { border-color: rgba(139, 92, 246, .6); background: var(--brand-soft); }
.send-opt.off { opacity: .5; cursor: default; }
.send-opt input { accent-color: var(--brand); margin-top: 3px; }
.send-opt b { display: block; }
.send-opt small { color: var(--muted); line-height: 1.5; }
@media (max-width: 1100px) { .bld-grid { grid-template-columns: minmax(0, 1fr); } .bld-side { position: static; } .rv-row { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .bld-top { position: static; margin: -22px -16px 18px; padding: 12px 16px; } }

/* ---------- flows ---------- */
.tpl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tpl { text-align: left; background: #0e0c16; border: 1px solid var(--line-strong); border-radius: 12px; padding: 13px 14px; cursor: pointer; color: inherit; font: inherit; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.tpl:hover { border-color: #4b4168; }
.tpl.on { border-color: rgba(139, 92, 246, .7); background: var(--brand-soft); box-shadow: 0 0 0 3px rgba(139, 92, 246, .18); }
.tpl b { font-size: 14px; }
.tpl small { color: var(--muted); line-height: 1.45; font-size: 12.5px; }
.tpl .meta { display: inline-flex; align-items: center; gap: 5px; color: #ddd8ee; font-size: 12px; font-weight: 600; margin-top: auto; }
.radio-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; color: #ece9f6; font-weight: 500; }
.radio-row input[type=radio] { accent-color: var(--brand); }
.fl-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 16px; align-items: start; }
.fl-canvas { background-color: #0c0a13; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px); background-size: 18px 18px;
  border: 1px solid var(--line); border-radius: var(--radius); min-height: calc(100vh - 150px); overflow: auto; padding: 26px 24px 60px; }
.fl-tree { display: flex; justify-content: center; min-width: max-content; }
.fl-col { display: flex; flex-direction: column; align-items: center; }
.fl-node { width: 250px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; padding: 11px 13px; cursor: pointer; text-align: left; color: inherit; font: inherit; position: relative; }
.fl-node:hover { border-color: #4b4168; }
.fl-node.sel { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(139, 92, 246, .25), 0 0 22px rgba(139, 92, 246, .22); }
.fl-node .kind { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.fl-node .kind .pill { margin-left: auto; text-transform: none; letter-spacing: 0; }
.fl-node .t { font-weight: 600; margin-top: 6px; line-height: 1.35; word-break: break-word; }
.fl-node .s { color: var(--muted); font-size: 12.5px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-node.trigger { border-color: rgba(139, 92, 246, .5); background: linear-gradient(140deg, rgba(168, 85, 247, .2), var(--surface) 70%); }
.fl-node.delay { width: auto; min-width: 150px; padding: 8px 14px; border-radius: 999px; }
.fl-node.delay .kind { justify-content: center; text-transform: none; letter-spacing: 0; font-size: 13px; color: #ddd8ee; }
.fl-warn { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--warn-soft); color: var(--warn); font-size: 11px; font-weight: 800; vertical-align: 1px; }
.fl-gap { display: flex; flex-direction: column; align-items: center; }
.fl-line { display: block; width: 2px; height: 14px; background: var(--line-strong); }
.fl-add { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--muted); display: grid; place-items: center; cursor: pointer; padding: 0; font-size: 16px; line-height: 1; }
.fl-add:hover { color: #fff; border-color: var(--brand); background: var(--brand-soft); }
.fl-end { font-size: 10.5px; font-weight: 700; color: var(--faint); border: 1px dashed var(--line-strong); border-radius: 999px; padding: 3px 12px; text-transform: uppercase; letter-spacing: .06em; }
.fl-branches { display: flex; align-items: flex-start; }
.fl-branch { display: flex; flex-direction: column; align-items: center; padding: 0 14px; position: relative; }
.fl-branch::before { content: ""; position: absolute; top: 0; height: 2px; background: var(--line-strong); left: 0; right: 0; }
.fl-branch:first-child::before { left: 50%; }
.fl-branch:last-child::before { right: 50%; }
.fl-blabel { font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.fl-blabel.yes { background: var(--ok-soft); color: #a7f3d0; }
.fl-blabel.no { background: #2a2540; color: #cfc9e2; }
.fl-panel { position: sticky; top: 90px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; max-height: calc(100vh - 110px); overflow: auto; }
.fl-panel h2 { font-family: var(--head); font-size: 16px; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.fl-panel .sub-head { margin-bottom: 14px; }
.fl-thumb { height: 230px; overflow: hidden; border-radius: 10px; background: #f3f3f5; border: 1px solid var(--line); }
.fl-thumb iframe { width: 200%; height: 460px; transform: scale(.5); transform-origin: 0 0; border: 0; pointer-events: none; background: #f3f3f5; }
.fl-issues { background: var(--warn-soft); border: 1px solid rgba(251, 191, 36, .3); color: #fde68a; border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.5; margin: 0 0 14px; }
.fl-tools { display: flex; gap: 8px; padding-top: 14px; margin-top: 6px; border-top: 1px solid var(--line); }
/* who is in a flow and the emails lined up for them */
.fl-node .fl-count { margin-top: 7px; padding-top: 7px; border-top: 1px solid var(--line); font-size: 12px; color: #c4b5fd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 8px 0 12px; }
.fl-stat { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 9px; }
.fl-stat b { display: block; font-family: var(--head); font-size: 16px; }
.fl-stat span { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.3; margin-top: 2px; }
.fl-people { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.fl-person { display: flex; gap: 10px; justify-content: space-between; align-items: flex-start; padding: 9px 11px; border-top: 1px solid var(--line); }
.fl-person:first-child { border-top: none; }
.fl-person .who { min-width: 0; }
.fl-person .who b { display: block; font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fl-person small { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.35; margin-top: 2px; }
.fl-person .st { text-align: right; flex: none; max-width: 52%; }
.fl-person .st small { white-space: normal; }
@media (max-width: 1100px) { .fl-wrap { grid-template-columns: 1fr; } .fl-panel { position: static; max-height: none; } .tpl-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .tpl-grid { grid-template-columns: 1fr; } }

/* ---------- page switching ---------- */
.page-loading { height: 3px; border-radius: 3px; overflow: hidden; background: rgba(139, 92, 246, .12); margin-top: 2px; opacity: 0; animation: plFade .2s .15s forwards; }
.page-loading span { display: block; height: 100%; width: 35%; background: var(--grad); border-radius: 3px; animation: plSlide 1s ease-in-out infinite; }
@keyframes plFade { to { opacity: 1; } }
@keyframes plSlide { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }

/* ---------- integrations and products ---------- */
.int-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.int-head svg { flex: none; margin-top: 2px; }
.int-rows { border-top: 1px solid var(--line); }
.int-rows .rv-row:first-of-type { border-top: none; }
.int-actions { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 16px; margin-top: 4px; border-top: 1px solid var(--line); }
.int-sub { font-family: var(--head); font-size: 14px; margin: 22px 0 6px; }
.int-more { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.int-more p { color: var(--muted); margin: 6px 0 12px; line-height: 1.5; }
.prod-img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; background: #1b1827; display: block; border: 1px solid var(--line); }
@media (max-width: 760px) { .int-more { grid-template-columns: 1fr; } }

/* metrics */
.src-logo { flex: none; vertical-align: -3px; }
.metric-name { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 600; }
.metric-name:hover span { color: var(--brand-text); }
.metric-title { display: flex; align-items: center; gap: 10px; }
.metric-title .src-logo { width: 22px; height: 22px; }
.coming { list-style: none; margin: 10px 0 0; padding: 0; }
.coming li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.coming li:last-child { border-bottom: none; }
.coming b { color: var(--ink); font-weight: 500; }
.mx-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.mx-filters .input { max-width: 220px; }
.mx-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 12px; margin-bottom: 18px; }
.mx-chart { position: relative; }
.mx-chart svg { width: 100%; height: auto; display: block; }
.mx-grid { stroke: var(--line); stroke-width: 1; }
.mx-base { stroke: var(--line-strong); stroke-width: 1; }
.mx-axis { fill: var(--faint); font-size: 11px; font-family: Inter, system-ui, sans-serif; }
.mx-bar .fill { fill: #8b5cf6; }
.mx-bar.on .fill { fill: #a78bfa; }
.mx-bar .hit { cursor: default; }
.mx-tip { position: absolute; pointer-events: none; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 11px; font-size: 12.5px; box-shadow: 0 8px 24px rgba(0,0,0,.4); white-space: nowrap; }
.mx-tip b { display: block; margin-bottom: 2px; }
.mx-tip span { color: var(--muted); }
.mx-table { margin-top: 14px; }
.mx-table summary { cursor: pointer; color: var(--brand-text); font-size: 13px; }
.mx-table table { margin-top: 10px; }
.act-feed { list-style: none; margin: 0; padding: 0 20px 10px; }
.act-feed li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.act-feed li:last-child { border-bottom: none; }
.act-feed .src-logo { margin-top: 2px; }
.act-main { flex: 1; min-width: 0; }
.act-main a { color: var(--ink); text-decoration: none; font-weight: 600; }
.act-main a:hover { color: var(--brand-text); }
.act-val { color: var(--ink); font-variant-numeric: tabular-nums; }
.act-when { color: var(--faint); font-size: 12.5px; white-space: nowrap; min-width: 150px; text-align: right; }

/* Klaviyo import */
.im-how { margin: 10px 0 14px; padding-left: 20px; line-height: 1.6; color: var(--muted); }
.im-how li { margin-bottom: 2px; }
.status-box .im-how { color: inherit; }
.im-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 1.5px dashed var(--line-strong); border-radius: 12px; padding: 26px 16px; cursor: pointer; text-align: center; background: rgba(255,255,255,.02); transition: border-color .15s, background .15s; }
.im-drop span { color: var(--muted); font-size: 13px; }
.im-drop:hover, .im-drop.on { border-color: var(--brand); background: var(--brand-soft); }
.im-drop.off { pointer-events: none; opacity: .5; }
.im-err { color: var(--bad); margin: 10px 0; }
.im-map { margin-top: 8px; }
.im-map td { vertical-align: middle; }
.im-map select.input { max-width: 280px; }
.im-stats .im-why { color: var(--faint); font-size: 12px; margin-top: 6px; line-height: 1.4; }
.im-notes { margin: 0 0 16px; padding-left: 20px; color: var(--muted); line-height: 1.7; }
.im-progress { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; color: var(--muted); }
.im-bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line); }
.im-bar span { display: block; height: 100%; background: var(--grad); transition: width .3s; }
@media (max-width: 760px) {
  .mx-stats { grid-template-columns: 1fr 1fr; }
  .act-when { min-width: 0; }
}
.check .sub, .act-main .sub, .card .sub { color: var(--muted); font-size: 12.5px; margin-top: 3px; line-height: 1.45; }

/* segments */
.pill.seg { background: rgba(45, 212, 191, .12); color: #5eead4; border: 1px solid rgba(45, 212, 191, .35); text-decoration: none; }
a.pill.seg:hover { border-color: #5eead4; }
.tok-seg { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #5eead4; margin-right: 6px; vertical-align: middle; }
.bad-text { color: var(--bad) !important; }
.mini-head { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 18px 0 8px; font-weight: 700; }
.sg-sum { border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px; background: var(--surface-2); }
.sg-rule { padding: 9px 0; color: #ece9f6; line-height: 1.5; }
.sg-or, .sg-and { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sg-or { color: var(--faint); padding: 2px 0; border-top: 1px dashed var(--line); padding-top: 6px; }
.sg-and { color: var(--brand-text); text-align: center; padding: 8px 0; }
.sg-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.sg-side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 14px; }
.sg-group { border: 1px solid var(--line-strong); border-radius: 14px; padding: 6px 14px 12px; background: var(--surface-2); }
.sg-cond { padding: 12px 0; }
.sg-cond + .sg-cond { border-top: 1px dashed var(--line-strong); }
.sg-cond .sg-or-tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--faint); margin-bottom: 8px; }
.sg-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sg-row .input { width: auto; min-width: 0; max-width: 100%; padding-top: 8px; padding-bottom: 8px; }
.sg-row .grow { flex: 1 1 200px; }
.sg-row .num { width: 84px; }
.sg-row .date { width: 160px; }
.sg-row .word { color: var(--muted); font-size: 13px; }
.sg-x { margin-left: auto; background: none; border: none; color: var(--faint); font-size: 20px; line-height: 1; cursor: pointer; padding: 2px 6px; border-radius: 8px; }
.sg-x:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.sg-filters { margin: 10px 0 0 16px; padding-left: 12px; border-left: 2px solid var(--line-strong); display: flex; flex-direction: column; gap: 8px; }
.sg-add { display: flex; gap: 8px; margin-top: 10px; }
.sg-big-and { display: flex; align-items: center; gap: 10px; margin: 12px 0; color: var(--brand-text); font-size: 11.5px; font-weight: 800; letter-spacing: .08em; }
.sg-big-and::before, .sg-big-and::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.sg-count { font-family: var(--head); font-size: 30px; font-weight: 700; line-height: 1.1; }
.sg-count small { display: block; font-family: inherit; font-size: 13px; font-weight: 500; color: var(--muted); margin-top: 4px; }
.sg-tpls { display: flex; flex-direction: column; gap: 6px; }
.sg-tpl { text-align: left; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; color: #ddd8ee; cursor: pointer; }
.sg-tpl:hover { border-color: var(--brand); color: #fff; }
.sg-tpl small { display: block; color: var(--muted); margin-top: 2px; line-height: 1.4; }
@media (max-width: 1100px) { .sg-wrap { grid-template-columns: minmax(0, 1fr); } .sg-side { position: static; } }

/* sign-up forms */
.code-box { display: flex; align-items: center; gap: 10px; background: #0f0d16; border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 10px 10px 14px; margin-bottom: 14px; }
.code-box code { flex: 1; min-width: 0; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; color: #ddd2ff; word-break: break-all; }
.steps-list { margin: 0 0 10px; padding-left: 20px; line-height: 1.6; color: #ddd8ee; }
.steps-list li + li { margin-top: 4px; }
.steps-list code, .hint code { background: #1d1a28; border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; color: #ddd2ff; font-size: 12px; }
.type-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.type-card { text-align: left; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; color: #ddd8ee; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.type-card:hover { border-color: var(--line-strong); }
.type-card.on { border-color: rgba(139, 92, 246, .7); background: var(--brand-soft); color: #fff; }
.type-card small { color: var(--muted); line-height: 1.4; font-size: 12px; }
.type-pic { position: relative; height: 70px; border-radius: 8px; background: #2a2540; margin-bottom: 6px; overflow: hidden; }
.type-pic i { position: absolute; background: #c4b5fd; border-radius: 4px; }
.tp-popup i { left: 30%; right: 30%; top: 22%; bottom: 22%; }
.tp-flyout i { right: 8%; width: 34%; bottom: 8%; height: 44%; }
.tp-full i { inset: 8%; }
.tp-embed i { left: 10%; right: 10%; bottom: 12%; height: 26%; }
.stats.s3 { grid-template-columns: repeat(3, 1fr); }
.stats.s4 { grid-template-columns: repeat(4, 1fr); }
.tbl-scroll { overflow-x: auto; }
.fm-wrap { display: grid; grid-template-columns: minmax(360px, 460px) minmax(0, 1fr); gap: 18px; align-items: start; }
.fm-panel { padding: 0 22px 22px; overflow: visible; }
.fm-tabs { margin: 0 -22px 18px; padding: 0 14px; }
.fm-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); vertical-align: middle; margin-left: 3px; }
.fm-side { position: sticky; top: 20px; }
.fm-bar { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.fm-stage-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.fm-stage { position: relative; height: 620px; border-radius: 10px; overflow: hidden; transform: translateZ(0); background: #f4f4f6; }
.fm-stage.mobile { width: 375px; max-width: 100%; height: 720px; margin: 0 auto; border: 10px solid #1b1824; border-radius: 34px; }
.fm-stage.embed { overflow: auto; }
.fm-fake { padding: 0 0 20px; }
.fm-fake-nav { height: 48px; background: #fff; border-bottom: 1px solid #e6e6ea; }
.fm-fake-hero { height: 220px; margin: 16px; border-radius: 10px; background: linear-gradient(135deg, #e5e3ee, #d9d6e6); }
.fm-fake-row { display: flex; gap: 12px; margin: 0 16px 16px; }
.fm-fake-row i { flex: 1; height: 120px; border-radius: 8px; background: #e7e6ee; }
.fm-fake-embed { margin: 10px 16px 18px; padding: 24px 12px; background: #fff; border-radius: 10px; }
.fm-closed { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #fff; color: #1f1f24; padding: 12px 16px; border-radius: 10px; box-shadow: 0 8px 30px rgba(0,0,0,.15); display: flex; gap: 10px; align-items: center; white-space: nowrap; z-index: 5; }
.fm-check { display: flex; gap: 8px; align-items: flex-start; line-height: 1.45; cursor: pointer; }
.fm-check input { accent-color: var(--brand); margin-top: 3px; }
.fm-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.fm-when { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; color: #ddd8ee; }
.fm-when .num, .fm-rule .num { width: 80px; padding-top: 7px; padding-bottom: 7px; }
.fm-rules { margin: -4px 0 14px; }
.fm-rule { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.fm-img { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.fm-img img, .fm-img-empty { width: 110px; height: 80px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); flex: none; }
.fm-img-empty { display: flex; align-items: center; justify-content: center; color: var(--faint); font-size: 12px; background: var(--surface-2); }
.fm-color-row { display: flex; gap: 8px; }
.fm-color-row input[type=color] { width: 44px; height: 40px; padding: 2px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface-2); cursor: pointer; flex: none; }
.fm-val { float: right; color: var(--muted); font-weight: 600; }
.warn-text { color: var(--warn) !important; }
label.btn input[type=file] { display: none; }
@media (max-width: 1100px) { .fm-wrap { grid-template-columns: minmax(0, 1fr); } .fm-side { position: static; } .type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .stats.s3, .stats.s4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .fm-rule { grid-template-columns: minmax(0, 1fr) auto; } .fm-rule select { grid-column: 1 / -1; } .fm-stage { height: 520px; } }

/* ---------- templates ---------- */
.ed-tools { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.ed-tools-r { display: flex; gap: 8px; flex-wrap: wrap; }
.tp-pick-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.tp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.tp-grid.small { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; max-height: 56vh; overflow: auto; padding: 3px; }
.tp-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-align: left; color: inherit; font: inherit; padding: 0; min-width: 0; }
button.tp-card { cursor: pointer; }
button.tp-card:hover { border-color: var(--line-strong); }
.tp-card.on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.tp-thumb-btn { display: block; border: 0; padding: 0; background: none; cursor: pointer; width: 100%; }
.tp-thumb { position: relative; height: 250px; overflow: hidden; background: #f3f3f5; border-bottom: 1px solid var(--line); pointer-events: none; }
.tp-grid.small .tp-thumb { height: 190px; }
.tp-thumb iframe { position: absolute; left: 0; top: 0; width: 640px; height: 1400px; border: 0; transform-origin: 0 0; background: #f3f3f5; }
.tp-meta { padding: 12px 14px 4px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tp-meta b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-meta small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.tp-acts { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 14px 14px; margin-top: auto; }
.tp-preview { background: #f3f3f5; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.tp-preview iframe { display: block; width: 100%; height: 62vh; border: 0; }
@media (max-width: 600px) { .tp-grid { grid-template-columns: minmax(0, 1fr); } .tp-grid.small { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tp-grid.small .tp-thumb { height: 150px; } }

/* ---------- images & brand ---------- */
.kit-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px dashed var(--line-strong); border-radius: 10px; margin-bottom: 12px; }
.kit-wrap { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 18px; align-items: start; }
.kit-form { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.kit-form .card { margin: 0; }
.kit-preview { position: sticky; top: 16px; min-width: 0; }
.kit-preview .frame-wrap iframe { height: 520px; min-height: 0; }
.kit-form-pv { background: #f3f3f5; border-radius: 12px; border: 1px solid var(--line); padding: 18px; }
.kit-logo { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.kit-logo img, .kit-logo .fm-img-empty { width: 150px; height: 80px; object-fit: contain; background: repeating-conic-gradient(#e9e8ef 0% 25%, #fff 0% 50%) 50% / 16px 16px; border-radius: 10px; border: 1px solid var(--line); }
.kit-logo .fm-img-empty { display: flex; align-items: center; justify-content: center; color: #8a8996; font-size: 13px; }
.kit-save { display: flex; justify-content: flex-end; align-items: center; gap: 12px; position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(transparent, var(--bg) 40%); }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.lib-grid.small { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; max-height: 56vh; overflow: auto; padding: 3px; }
.lib-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-align: left; color: inherit; font: inherit; padding: 0; min-width: 0; }
button.lib-card { cursor: pointer; }
button.lib-card:hover { border-color: var(--line-strong); }
.lib-card.on { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.lib-img { height: 150px; background: repeating-conic-gradient(#e9e8ef 0% 25%, #fff 0% 50%) 50% / 16px 16px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line); }
.lib-grid.small .lib-img { height: 110px; }
.lib-img img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.lib-meta { padding: 10px 12px 2px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lib-meta b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lib-meta small { color: var(--muted); font-size: 12px; }
.lib-drop { border: 2px dashed var(--line-strong); border-radius: 12px; padding: 18px; text-align: center; color: var(--muted); font-size: 13.5px; margin-bottom: 14px; transition: border-color .15s, background .15s; }
.lib-drop.on { border-color: var(--brand); background: var(--brand-soft); color: #fff; }
@media (max-width: 1000px) { .kit-wrap { grid-template-columns: minmax(0, 1fr); } .kit-preview { position: static; } }
@media (max-width: 600px) { .lib-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lib-grid.small { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- universal content ---------- */
.tp-thumb.uc { height: 170px; }
.tp-grid.small .tp-thumb.uc { height: 130px; }
.blk-uc { border-color: rgba(139, 92, 246, .45); }
.blk-uc .blk-head { background: var(--brand-soft); }
.uc-note b { font-size: 14px; }

/* ---------- coupons ---------- */
.cp-kinds { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.cp-kind { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.cp-kind:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.cp-kind input { grid-row: span 2; margin-top: 3px; accent-color: #8b5cf6; }
.cp-kind small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.cp-tag { cursor: pointer; }
.cp-page > .card, .cp-page > .stats { margin: 0 0 16px; }

/* ---------- analytics ---------- */
.ixc-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.ixc-legend i, .ixc-tip i, .split-keys i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.ixc-plot { position: relative; }
.ixc-plot svg { display: block; width: 100%; height: auto; }
.ixc-grid { stroke: rgba(255, 255, 255, .07); stroke-width: 1; }
.ixc-axis { fill: #8b86a0; font-size: 11px; font-family: inherit; }
.ixc-cross { stroke: rgba(255, 255, 255, .35); stroke-width: 1; stroke-dasharray: 3 3; }
.ixc-tip { position: absolute; top: 6px; pointer-events: none; background: #1c1928; border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 10px; font-size: 12.5px; color: #e9e6f5; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); white-space: nowrap; z-index: 2; }
.ixc-tip b { display: block; margin-bottom: 4px; }
.ixc-tip span { font-weight: 700; margin-left: 6px; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.dash-grid > .card { margin: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.split-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; gap: 2px; background: rgba(255, 255, 255, .06); }
.split-bar span { display: block; min-width: 0; }
.split-keys { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.split-keys b { color: #fff; margin-left: 4px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mini-stats b { display: block; font-family: var(--head); font-size: 22px; }
.mini-stats span { color: var(--muted); font-size: 12.5px; }
.th-sort { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; white-space: nowrap; }
.th-sort.on { color: #fff; }
.dl-checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.dl-checks .card { margin: 0; }
.dl-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 600; }
.dl-n { font-family: var(--head); font-size: 28px; font-weight: 700; margin: 8px 0 2px; }
@media (max-width: 900px) { .dash-grid, .dl-checks { grid-template-columns: minmax(0, 1fr); } }
.shell > main, #main { min-width: 0; }

/* ---------- reviews, hub, conversations ---------- */
.rv-stars span { color: rgba(255, 255, 255, .18); font-size: 18px; }
.rv-stars span.on { color: #f5b942; }
.stat .n .rv-stars span { font-size: 16px; }
.rv-card { margin-bottom: 12px; }
.rv-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.rv-title { display: block; margin-bottom: 4px; }
.rv-body { margin: 0 0 8px; white-space: pre-wrap; }
.rv-reply { margin-top: 10px; padding: 8px 12px; border-left: 3px solid var(--brand); background: var(--brand-soft); border-radius: 0 8px 8px 0; font-size: 13.5px; }
.rv-reply b { display: block; margin-bottom: 2px; }
.switch-row, .chk-row { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.switch-row input, .chk-row input { margin-top: 4px; accent-color: #8b5cf6; }
.switch-row small { display: block; color: var(--muted); font-size: 13px; }
.chk-row { margin-top: 8px; }
.cv-wrap { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 16px; align-items: start; }
.cv-wrap > .card { margin: 0; }
.cv-list { max-height: 70vh; overflow: auto; }
.cv-item { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 12px 14px; color: inherit; font: inherit; cursor: pointer; }
.cv-item.on, .cv-item:hover { background: var(--brand-soft); }
.cv-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cv-top b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex-shrink: 0; }
.cv-msgs { max-height: 55vh; overflow: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.cv-msg { max-width: 80%; }
.cv-msg.out { align-self: flex-end; text-align: right; }
.cv-bubble { display: inline-block; text-align: left; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); white-space: normal; word-break: break-word; }
.cv-msg.out .cv-bubble { background: var(--brand-soft); border: 1px solid rgba(139, 92, 246, .35); }
.cv-reply { padding: 12px 16px 16px; border-top: 1px solid var(--line); }
@media (max-width: 900px) { .cv-wrap { grid-template-columns: minmax(0, 1fr); } }

/* ---------- shop blocks in the email editor: products, two columns ---------- */
.pb-list { display: grid; gap: 8px; margin-bottom: 10px; }
.pb-item { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.pb-item img, .pb-item .pb-noimg { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; flex: none; }
.pb-noimg { display: block; background: var(--line); }
.pb-item .pb-name { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.pb-item .pb-name small { display: block; font-weight: 400; color: var(--muted); margin-top: 2px; }
.pb-item button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 14px; padding: 6px; }
.pb-item button:hover { color: var(--bad); }
.pp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px; max-height: 60vh; overflow: auto; padding: 2px; }
.pp-card { display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 8px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface-2); color: var(--ink); cursor: pointer; font: inherit; }
.pp-card img, .pp-card .pb-noimg { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.pp-card b { font-size: 13px; line-height: 1.35; }
.pp-card small { color: var(--muted); }
.pp-card.on { border-color: var(--brand); box-shadow: var(--glow); }
.col-box { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 2px; margin-bottom: 10px; }

/* ---------- Move from Klaviyo ---------- */
.kv-how { margin: 0 0 14px; padding-left: 20px; line-height: 1.7; color: var(--muted); }
.kv-acct { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.kv-acct .muted { color: var(--muted); font-size: 13px; margin-left: 6px; }
.kv-group { border-top: 1px solid var(--line); padding: 14px 0 6px; }
.kv-group-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.kv-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2px 16px; max-height: 260px; overflow: auto; }
.kv-list .chk-row { margin-top: 4px; min-width: 0; }
.kv-list .chk-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand-text); cursor: pointer; font: inherit; font-size: 13px; }
.link-btn:hover { text-decoration: underline; }
.kv-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.kv-steps li { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.kv-steps li small { margin-left: auto; color: var(--muted); }
.kv-steps .dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; }
.kv-steps li.done { color: var(--ink); }
.kv-steps li.done .dot { background: var(--ok); border-color: var(--ok); }
.kv-steps li.now { color: var(--ink); font-weight: 600; }
.kv-steps li.now .dot { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); animation: kvpulse 1.4s ease-in-out infinite; }
.kv-steps li.skip { opacity: .55; }
.kv-steps li i { font-style: normal; font-size: 12px; }
@keyframes kvpulse { 50% { box-shadow: 0 0 0 7px transparent; } }
@media (prefers-reduced-motion: reduce) { .kv-steps li.now .dot { animation: none; } }

/* ---------- A/B test on a campaign ---------- */
.ab-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.ab-v { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 4px; margin-top: 12px; background: var(--surface-2); }
.ab-v-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ab-v-head .hint { margin-left: auto; }
.ab-v-head .icon-btn { margin-left: auto; }
.ab-a-sum { color: var(--muted); padding: 0 0 10px 36px; overflow-wrap: anywhere; }
.ab-tag { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-text); font-weight: 700; font-size: 13px; flex: none; border: 1px solid rgba(139, 92, 246, .35); }
.ab-content { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 2px 0 10px; color: var(--muted); }
.ab-content-btns { display: flex; gap: 8px; flex-wrap: wrap; }
#abAdd { margin-top: 12px; }
.ab-settings { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 14px; }
.ab-radio { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; cursor: pointer; }
.ab-radio input { margin-top: 4px; accent-color: #8b5cf6; }
.ab-radio small { display: block; color: var(--muted); margin-top: 2px; line-height: 1.45; }
.ab-est { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-text); }
.ab-est:empty { display: none; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 720px) { .grid3 { grid-template-columns: 1fr; } }
.ab-table td:first-child { white-space: nowrap; }
.ab-table tr.ab-win td { background: rgba(52, 211, 153, .06); }
#abTop .bld-card { margin-bottom: 18px; }

/* ---------- Back in stock ---------- */
.notice.ok { background: var(--ok-soft); border-color: rgba(52, 211, 153, .3); color: #a7f3d0; }
.notice.grey { background: rgba(255, 255, 255, .05); border-color: var(--line-strong); color: #d4cfe6; }
.status-box.warn { background: var(--warn-soft); border-color: rgba(251, 191, 36, .35); color: #fde68a; }
.status-box a, .notice a { color: inherit; text-decoration: underline; }
.bis-pv { display: grid; gap: 12px; }
.bis-pv-page, .bis-pv-box { background: #fff; color: #1f1f24; border-radius: 12px; padding: 16px; }
.bis-pv-page { display: grid; grid-template-columns: 90px 1fr; gap: 14px; align-items: start; }
.bis-pv-page .hint { color: #6b6a75; }
.bis-pv-img { width: 90px; height: 110px; border-radius: 8px; background: linear-gradient(135deg, #e9e5dc, #d8d2c6); }
.bis-pv-sold { margin-top: 10px; padding: 10px; border-radius: 8px; background: #ececf1; color: #8a8996; text-align: center; font-weight: 700; font-size: 13px; }
.bis-pv-btn { margin-top: 8px; padding: 11px; border-radius: 8px; text-align: center; font-weight: 700; font-size: 13px; overflow-wrap: anywhere; }
.bis-pv-box b { display: block; font-size: 16px; margin-bottom: 6px; }
.bis-pv-box p { margin: 0 0 10px; color: #4b4a55; font-size: 13px; }
.bis-pv-input { border: 1px solid #cfcfd6; border-radius: 8px; padding: 10px; color: #8a8996; font-size: 13px; }
.bis-pv-box label { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: 12px; color: #4b4a55; }
.bis-pv-tick { width: 14px; height: 14px; border: 1px solid #9a99a5; border-radius: 3px; flex: none; margin-top: 1px; }

/* ---------- A/B test inside a flow email ---------- */
.fl-ab { border-top: 1px solid var(--line); margin: 16px 0 4px; padding-top: 14px; }
.fl-ab .ab-head b { font-size: 14px; margin-right: 8px; }
.fl-ab .ab-head small { display: block; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.fl-ab .ab-head .btn { flex: none; }
.fl-ab .ab-v .field { margin-bottom: 10px; }
.ab-split { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.ab-split label { display: flex; align-items: center; gap: 6px; }
.ab-split .input { width: 64px; padding-left: 8px; padding-right: 4px; }
.ab-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.ab-line { color: var(--muted); margin: 8px 0 10px; line-height: 1.5; }
.ab-r { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-top: 8px; background: var(--surface-2); }
.ab-r.win { border-color: rgba(52, 211, 153, .4); background: rgba(52, 211, 153, .06); }
.ab-r-top { display: flex; align-items: center; gap: 8px; }
.ab-r-subj { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-r-top .btn { flex: none; }
.ab-r-nums { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; color: var(--muted); font-size: 12.5px; }
.ab-r-nums b { color: var(--ink); font-weight: 700; }
.fl-node .kind .pill.purple { margin-left: 6px; }

/* ---------- Flow filters ---------- */
.fl-filters { border-top: 1px solid var(--line); margin: 6px 0 16px; padding-top: 14px; }
.fl-filters-h b { display: block; font-size: 14px; }
.fl-filters-h small { display: block; color: var(--muted); margin: 3px 0 10px; line-height: 1.45; }
.fl-rule { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; background: var(--surface-2); }
.fl-rule-top { display: flex; align-items: center; gap: 8px; }
.fl-rule-top .input { flex: 1; min-width: 0; }
.fl-rule-n { flex: none; font-size: 12px; font-weight: 700; color: var(--brand-text); text-transform: uppercase; letter-spacing: .04em; min-width: 74px; }
.fl-rule-f { display: grid; gap: 8px; margin-top: 8px; }
.fl-rule-f .grid2 { margin: 0; }
.fl-rule-w { margin-top: 8px; font-size: 12.5px; color: var(--warn); }
.fl-node .s.fl-filt { color: var(--brand-text); }

/* ---------- Date flows ---------- */
.dt-prev { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-text); line-height: 1.5; }
.dt-prev:empty { display: none; }
.dt-prev b { color: var(--ink); }
.dt-prev.warn { background: var(--warn-soft); color: #fde68a; }
.dt-prev a { color: inherit; text-decoration: underline; }

/* ---------- Predictions ---------- */
.pred-card .kv dt { white-space: normal; }
.sg-pred-hint { margin: 8px 0 0; font-size: 12.5px; }

/* not engaging (sunset) */
.sn-rule { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 4px; line-height: 2; }
.sn-rule .sn-sel { width: auto; display: inline-block; padding-top: 6px; padding-bottom: 6px; }
.sn-preview { margin-top: 12px; }
.sn-preview table { margin-top: 8px; }
.sn-count { margin: 0; }
.sn-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 16px; }
.sn-auto { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); cursor: pointer; }
.sn-auto input { accent-color: var(--brand); }
.sn-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sn-log { list-style: none; margin: 12px 0 0; padding: 0; }
.sn-log li { padding: 8px 0; border-top: 1px solid var(--line); line-height: 1.5; }
.sn-log li:first-child { border-top: 0; }
#snPaused table, #snRule table { width: 100%; }
#snRule, #snPaused { margin-bottom: 16px; }

/* sending warm-up */
.wu-card { margin-bottom: 16px; }
.wu-bar { height: 8px; border-radius: 99px; background: var(--line); margin-top: 14px; overflow: hidden; }
.wu-bar span { display: block; height: 100%; min-width: 4px; background: var(--brand); border-radius: 99px; }

/* email check */
.checks .warn .dot { background: var(--warn-soft, rgba(251,191,36,.15)); color: var(--warn); }
.ec-list li { align-items: flex-start; padding: 8px 0; }
.ec-list li b { display: block; font-weight: 600; }
.ec-list li small { display: block; color: var(--muted); line-height: 1.5; margin-top: 2px; word-break: break-word; }
.ec-list .dot { margin-top: 1px; }
.ec-busy { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--line-strong); border-top-color: var(--brand); border-radius: 50%; margin-right: 8px; vertical-align: -2px; animation: ixspin .8s linear infinite; }
@keyframes ixspin { to { transform: rotate(360deg); } }

/* email check on flow emails */
.fl-check { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 4px; margin: -6px 0 18px; }
.fl-check-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; }
.fl-check-sum { font-size: 12.5px; color: var(--muted); }
.fl-check-sum.ok { color: var(--ok); } .fl-check-sum.warn { color: var(--warn); } .fl-check-sum.bad { color: var(--bad); }
.fl-check .ec-list { margin: 6px 0 4px; } .fl-check .ec-list li { font-size: 13px; }
.fl-turn-check { margin: 4px 0 12px; } .fl-turn-check .ec-list { margin: 6px 0 0; }

/* holdout test */
.fl-hold { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 4px 0 18px; }
.fl-hold-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ho-grid { display: grid; gap: 6px; margin-top: 10px; }
.ho-row { display: grid; grid-template-columns: 1fr auto auto; grid-template-rows: auto auto; column-gap: 12px; align-items: baseline; padding: 8px 10px; border-radius: 8px; background: rgba(255,255,255,.03); }
.ho-row span { grid-row: 1 / 3; align-self: center; font-weight: 600; }
.ho-row b { font-size: 15px; text-align: right; } .ho-row small { color: var(--muted); font-size: 11.5px; text-align: right; }
.ho-row b:nth-of-type(1) { grid-column: 2; grid-row: 1; } .ho-row small:nth-of-type(1) { grid-column: 2; grid-row: 2; }
.ho-row b:nth-of-type(2) { grid-column: 3; grid-row: 1; } .ho-row small:nth-of-type(2) { grid-column: 3; grid-row: 2; }
.ho-verdict { margin: 10px 0 0; line-height: 1.55; font-size: 13.5px; } .ho-verdict .pill { margin-right: 6px; }

/* not engaging: check-in first */
.sn-checkin { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
.sn-checkin .sn-sel { width: auto; display: inline-block; padding-top: 4px; padding-bottom: 4px; margin: 0 4px; }
#snWaiting { margin-bottom: 16px; } #snWaiting table { width: 100%; }

/* not engaging: check-in first */
.sn-checkin { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; }
.sn-checkin .sn-sel { width: auto; display: inline-block; padding-top: 4px; padding-bottom: 4px; margin: 0 4px; }
#snWaiting { margin-bottom: 16px; } #snWaiting table { width: 100%; }

/* email preferences */
.pf-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; margin: 16px 0; }
.pf-grid > .card { margin-bottom: 0; }
@media (max-width: 1100px) { .pf-grid { grid-template-columns: minmax(0, 1fr); } }
.pf-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: 8px; align-items: center; margin-bottom: 8px; }
@media (max-width: 640px) { .pf-row { grid-template-columns: minmax(0, 1fr); } }
.pf-frame { width: 100%; height: 640px; border: 1px solid var(--line); border-radius: 12px; background: #f4f3f7; display: block; }
.pf-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-top: 12px; }
.pf-stat { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.pf-stat b { display: block; font-size: 22px; }
.pf-stat span { color: var(--muted); font-size: 12.5px; line-height: 1.4; display: block; margin-top: 2px; }
.pf-log { margin-top: 14px; }
.pf-choice { margin-top: 10px; font-size: 13.5px; line-height: 1.5; }
.pf-choice .btn { margin-top: 8px; }

/* countdown timer block */
.tm-colors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tm-color { width: 100%; height: 38px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: transparent; cursor: pointer; }
.tm-words { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; margin-top: 8px; }

/* campaign calendar: planning */
.cal-head { flex-wrap: wrap; }
.cal-sum { color: var(--muted); font-size: 13px; margin-left: 6px; }
.cal-opt { margin-left: auto; display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); cursor: pointer; }
.cal-opt input { accent-color: #8b5cf6; }
.cal-grid > * { min-width: 0; }
.cal-day { position: relative; }
.cal-day.past:not(.today) { background: rgba(255, 255, 255, .012); }
.cal-day .d { display: flex; align-items: center; justify-content: space-between; min-height: 20px; }
.cal-add { opacity: 0; border: 0; background: var(--brand-soft); color: #fff; width: 20px; height: 20px; border-radius: 6px; font-size: 14px; line-height: 1; cursor: pointer; padding: 0; }
.cal-day:hover .cal-add, .cal-add:focus { opacity: 1; }
@media (hover: none) { .cal-add { opacity: .7; } }
.cal-shop { font-size: 10.5px; line-height: 1.3; color: #f5b86b; margin: 0 0 4px; font-weight: 600; }
.cal-chip small { display: block; font-size: 10.5px; opacity: .75; margin-bottom: 1px; }
.cal-chip.planned { background: transparent; border: 1px dashed var(--faint); border-left: 3px dashed var(--faint); color: var(--ink); cursor: grab; }
.cal-chip.dragging, .cal-draft.dragging { opacity: .45; }
.cal-day.drop { background: var(--brand-soft); outline: 1px dashed var(--brand); outline-offset: -2px; }
.cal-draft { padding: 8px 0; border-top: 1px solid var(--line); }
.cal-draft[draggable="true"] { cursor: grab; }
.cal-key { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.cal-key .cal-chip { display: inline-block; margin: 0; font-size: 11px; }
@media (max-width: 640px) { .cal-day { min-height: 74px; padding: 4px; } .cal-chip { font-size: 10.5px; padding: 3px 4px; } .cal-shop { font-size: 9.5px; } .cal-dow { padding: 6px 4px; font-size: 10px; } }

/* campaign approvals */
.ap-status { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); margin-top: 4px; font-size: 13.5px; line-height: 1.5; }
.ap-status b { font-size: 14px; }
.ap-status.ok { background: var(--ok-soft); border-color: rgba(52, 211, 153, .3); }
.ap-status.warn { background: var(--warn-soft); border-color: rgba(251, 191, 36, .3); }
.ap-status.bad { background: var(--bad-soft); border-color: rgba(248, 113, 113, .3); }
.ap-status.grey { background: rgba(255, 255, 255, .04); }
.ap-decide { margin-top: 12px; padding: 12px 14px; border: 1px dashed var(--line-strong); border-radius: 10px; }
.ap-thread { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line); }
.ap-thread li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.ap-meta { font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ap-body { margin-top: 6px; font-size: 14px; line-height: 1.55; white-space: normal; overflow-wrap: anywhere; }
.ap-del { border: 0; background: none; color: var(--muted); font-size: 12px; cursor: pointer; text-decoration: underline; padding: 0; margin-left: auto; }
.ap-pill { margin-left: 4px; }
.ap-home { margin-bottom: 16px; }
.ap-wait { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.ap-wait .camp-link { font-weight: 600; }
.ap-wait .btn { margin-left: auto; }

/* activity log */
.act-bar { display: flex; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.act-bar select { width: auto; min-width: 190px; }
.act-bar input { flex: 1; min-width: 200px; }
.act-day { padding: 10px 18px; font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--muted); background: rgba(255, 255, 255, .025); border-bottom: 1px solid var(--line); }
.act-row { display: flex; gap: 14px; padding: 11px 18px; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
.act-row:last-child { border-bottom: 0; }
.act-time { flex: none; width: 74px; color: var(--muted); font-size: 13px; padding-top: 1px; }
.act-what { min-width: 0; overflow-wrap: anywhere; }
.act-obj { font-weight: 600; }
.act-detail { color: var(--muted); font-size: 13px; margin-top: 2px; }
@media (max-width: 640px) { .act-row { flex-direction: column; gap: 2px; padding: 10px 14px; } .act-time { width: auto; } }

/* two-step sign-in */
.code-in { font-size: 22px; letter-spacing: 6px; text-align: center; font-variant-numeric: tabular-nums; }
.ts-steps { margin: 0 0 10px; padding-left: 20px; line-height: 1.6; font-size: 14px; }
.ts-steps li { margin-bottom: 6px; }
.ts-qr { display: flex; justify-content: center; margin: 6px 0 10px; }
.ts-qr img { width: 190px; height: 190px; background: #fff; padding: 10px; border-radius: 12px; }
.ts-key { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.ts-key summary { cursor: pointer; }
.ts-key code { display: block; margin-top: 8px; padding: 10px 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 8px; font-size: 14px; letter-spacing: 1px; color: var(--ink); overflow-wrap: anywhere; }

/* unsubscribe reasons */
#whyCard { margin-top: 16px; }
.why-bars { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.why-row { display: grid; grid-template-columns: minmax(120px, 220px) minmax(0, 1fr) 70px; gap: 12px; align-items: center; font-size: 14px; }
.why-bar { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.why-bar i { display: block; height: 100%; background: var(--grad); border-radius: 999px; }
.why-row b small { color: var(--muted); font-weight: 500; margin-left: 2px; }
@media (max-width: 640px) { .why-row { grid-template-columns: minmax(0, 1fr) 60px; } .why-row .why-bar { grid-column: 1 / -1; grid-row: 2; } }

/* ---------- API keys ---------- */
.api-head { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
.api-head h2 { margin-top: 0; }
.api-head .btn { flex-shrink: 0; }
.api-prefix { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12px; }
.api-gone td { opacity: .55; }
.api-when { white-space: nowrap; }
.api-ex-tabs { display: flex; gap: 4px; align-items: center; border-bottom: 1px solid var(--line); margin-bottom: 0; flex-wrap: wrap; }
.api-ex-tabs button[data-ex] { background: none; border: none; color: var(--muted); padding: 8px 12px; font: inherit; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.api-ex-tabs button[data-ex]:hover { color: #fff; }
.api-ex-tabs button[data-ex].on { color: #fff; border-bottom-color: var(--brand); }
.api-ex-tabs #apiCopyEx { margin-left: auto; margin-bottom: 4px; }
.api-code { background: #0f0d16; border: 1px solid var(--line-strong); border-top: none; border-radius: 0 0 10px 10px; padding: 14px; margin: 0 0 16px; overflow-x: auto;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.55; color: #ddd2ff; white-space: pre; }
.api-rules li { color: #ddd8ee; }
.api-reqhead { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin: 26px 0 6px; }
.api-reqhead h2 { margin: 0; }
.api-reqhead select { max-width: 200px; }
.chk-row small { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; }
@media (max-width: 700px) { .api-head { flex-direction: column; } }

/* ---------- webhooks ---------- */
.wh-card { margin-bottom: 12px; }
.wh-top { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
.wh-main { min-width: 0; flex: 1; }
.wh-name { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.wh-url { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; color: #ddd2ff; margin: 4px 0 8px; word-break: break-all; }
.wh-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.wh-warn { background: var(--bad-soft); color: var(--bad); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; font-size: 13px; }
.wh-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 360px; }
.wh-extra summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.wh-extra summary:hover { color: #fff; }
.wh-body { max-height: 60vh; overflow: auto; border-top: 1px solid var(--line-strong); border-radius: 10px; }
.api-ex-tabs button[data-whex] { background: none; border: none; color: var(--muted); padding: 8px 12px; font: inherit; font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.api-ex-tabs button[data-whex]:hover { color: #fff; }
.api-ex-tabs button[data-whex].on { color: #fff; border-bottom-color: var(--brand); }
@media (max-width: 800px) { .wh-top { flex-direction: column; } .wh-actions { justify-content: flex-start; max-width: none; } }

/* ---------- privacy requests ---------- */
.pv-search { display: flex; gap: 8px; max-width: 520px; }
.pv-card { margin-top: 16px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 14px 16px; background: var(--surface-2); }
.pv-who { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pv-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- blocks just for some people ---------- */
.blk-show { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 8px; }
.blk-show summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.blk-show summary b { color: #ddd8ee; font-weight: 600; }
.blk-show[open] summary { margin-bottom: 10px; }
.blk-only { margin-left: 8px; font-size: 11px; padding: 2px 8px; }

/* ---------- flow trigger filters ---------- */
.fl-match .fl-mrow { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; flex-wrap: wrap; }
.fl-match .fl-mrow .input { flex: 1; min-width: 90px; padding: 7px 9px; }
.fl-match .fl-mrow .icon-btn { flex: 0 0 auto; }

/* sign-up form A/B test */
.fm-ver { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.fm-ver .seg button { padding: 6px 12px; }
.fm-ver-note { margin: -4px 0 14px; }
.fm-ab-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.fm-dot.on { background: var(--ok); }

/* all brands overview and usage */
.ov-table td, .ov-table th { white-space: nowrap; }
.ov-table td:last-child { white-space: normal; min-width: 220px; }
.ov-probs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.ov-probs li { position: relative; padding-left: 14px; line-height: 1.4; }
.ov-probs li::before { content: ''; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); }
.ov-probs li.bad::before { background: var(--bad); }
.ov-probs .link-btn { text-align: left; color: #e8e3f7; white-space: normal; }
.ov-open { font-size: 14px; color: #fff; text-align: left; }
.ok-text { color: var(--ok) !important; }
.us-month { margin-bottom: 14px; }
.us-total td { font-weight: 700; border-top: 1px solid var(--line-strong); }

/* notifications bell */
.side-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bell { position: relative; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: #cfc8e6; display: grid; place-items: center; cursor: pointer; flex: none; }
.bell:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.bell-n { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.bell-pop { position: fixed; z-index: 60; width: 380px; max-width: calc(100vw - 16px); max-height: min(560px, calc(100vh - 80px)); overflow: auto; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.bell-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); }
.bell-list { display: flex; flex-direction: column; }
.bell-item { display: flex; gap: 10px; align-items: flex-start; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 11px 14px; cursor: pointer; color: inherit; font: inherit; }
.bell-item:hover { background: rgba(255, 255, 255, .04); }
.bell-item.unread { background: rgba(139, 92, 246, .08); }
.bell-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bell-t b { font-size: 13.5px; color: #fff; font-weight: 600; overflow-wrap: anywhere; }
.bell-t small { font-size: 12.5px; color: #cfc8e6; overflow-wrap: anywhere; }
.bell-t small.muted { color: var(--muted); }
.bell-dot { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: rgba(255, 255, 255, .08); color: #fff; }
.bell-dot.good { background: var(--ok-soft); color: var(--ok); }
.bell-dot.bad { background: var(--bad-soft); color: var(--bad); }
.bell-dot.warn { background: var(--warn-soft); color: var(--warn); }
.bell-empty { padding: 18px 16px; color: var(--muted); line-height: 1.5; font-size: 13px; }

/* weekly summary */
.sm-brands { display: flex; flex-direction: column; gap: 8px; }
.sm-frame { width: 100%; height: 760px; border: 1px solid var(--line); border-radius: 12px; background: #efedf5; }

/* branded links */
.lk-card { margin-top: 16px; }
.lk-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lk-dns { width: 100%; margin: 4px 0; }
.lk-dns code { overflow-wrap: anywhere; }
.lk-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

/* email languages */
.lang-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }
.lang-bar .seg button { padding: 6px 12px; }
.lg-list { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 12px; }
.lg-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 2px; background: var(--surface-2); }
.lg-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.lg-add { display: flex; gap: 8px; align-items: center; }
.lg-add select { max-width: 240px; }

/* click map */
.cm-wrap { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #efedf5; }
.cm-wrap iframe { display: block; width: 100%; height: 600px; border: 0; }
.cm-url { max-width: 520px; overflow-wrap: anywhere; white-space: normal !important; font-size: 12.5px; }

/* text message step */
.fl-node.sms .kind { color: #ddd8ee; }

/* spin to win slices in the form editor */
.fm-slices { display: grid; gap: 6px; margin: 4px 0 10px; }
.fm-slice { display: grid; grid-template-columns: 1.4fr 1.1fr 74px 62px 74px; gap: 6px; align-items: center; }
.fm-slice .input { min-width: 0; }
.fm-slice-head span { font-size: 12px; color: var(--muted); font-weight: 600; }
.fm-share { font-size: 13px; color: var(--muted); text-align: right; }
@media (max-width: 700px) { .fm-slice { grid-template-columns: 1fr 1fr 64px; } .fm-slice .fm-share, .fm-slice-head span:nth-child(4) { display: none; } }

/* double opt-in on a list */
.optin-card { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.optin-card h3 { margin: 0 0 6px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.optin-card p { margin: 0; }
.optin-card p + p { margin-top: 6px; }
.optin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.optin-frame { width: 100%; height: 420px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.optin-subj { font-size: 13px; margin: 0 0 8px; color: var(--muted); }
@media (max-width: 760px) { .optin-grid { grid-template-columns: 1fr; } .optin-card { flex-direction: column; } }

/* merging two profiles */
.merge-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.merge-card { display: flex; gap: 10px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 14px; cursor: pointer; }
.merge-card.on { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; }
.merge-card input { accent-color: var(--brand); margin-top: 3px; }
.merge-card-body { min-width: 0; flex: 1; }
.merge-keep { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.merge-email { font-weight: 700; word-break: break-all; margin-bottom: 6px; }
.merge-card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 10px 0 0; font-size: 13.5px; }
.merge-card dt { color: var(--muted); }
.merge-card dd { margin: 0; word-break: break-word; }
.merge-list { margin: 6px 0 0; padding-left: 18px; }
.merge-list li { margin: 3px 0; }
.dup-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.dup-row:first-child { border-top: 0; }
.dup-row .dup-who { flex: 1; min-width: 0; }
.dup-row .dup-who div { word-break: break-all; }
@media (max-width: 700px) { .merge-grid { grid-template-columns: 1fr; } }

/* custom reports */
.rp-grid { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 16px; align-items: start; }
.rp-side .field { margin-bottom: 16px; }
.rp-side .field:last-child { margin-bottom: 0; }
.rp-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.rp-seg button { background: none; border: 1px solid var(--line-strong); color: var(--muted); border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.rp-seg button:hover { color: #fff; }
.rp-seg button.on { background: var(--brand-soft); color: #fff; border-color: rgba(139, 92, 246, .45); }
.rp-dates { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.rp-dates .input { min-width: 0; }
.rp-dates span { color: var(--muted); font-size: 13px; }
.rp-cols, .rp-who { display: grid; gap: 6px; }
.rp-who { margin-top: 4px; }
.rp-mail { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 4px; }
.rp-meta { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.rp-main { min-width: 0; transition: opacity .15s; }
.rp-main.rp-busy { opacity: .55; pointer-events: none; }
.rp-table tr.rp-total td { font-weight: 700; color: #fff; background: rgba(255, 255, 255, .03); }
.rp-table td:not(:first-child), .rp-table th:not(:first-child) { text-align: right; }
.page-head h1 .nm-edit { background: none; border: none; color: var(--muted); cursor: pointer; padding: 4px; border-radius: 6px; display: inline-flex; }
.page-head h1 .nm-edit:hover { color: #fff; background: #1f1a2e; }
.page-head h1 .pill { font-family: "Inter", system-ui, sans-serif; font-size: 12px; letter-spacing: 0; }
.rp-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.rp-tpl { display: block; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.rp-tpl:hover { border-color: rgba(139, 92, 246, .5); }
.rp-tpl b { display: block; color: #fff; margin-bottom: 4px; }
.rp-tpl span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.rp-tpl.blank { border-style: dashed; }
@media (max-width: 900px) { .rp-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .rp-main { order: -1; } }
.bt-cell { font-size: 13px; line-height: 1.45; max-width: 280px; }
.bt-item + .bt-item { margin-top: 2px; }
.bt-cell .muted { color: var(--muted); }
/* web feeds */
.fd-url { word-break: break-all; }
.fd-prev { display: grid; gap: 10px; }
.fd-item { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: start; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.fd-item img, .fd-noimg { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; background: var(--surface-2); }
.fd-noimg { display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); text-align: center; }
.fd-item p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.fd-map { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
/* bulk profile actions */
.bulk-cb { width: 36px; }
.bulk-cb input { width: 16px; height: 16px; cursor: pointer; accent-color: var(--brand); }
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 16px; background: var(--brand-soft); border-bottom: 1px solid rgba(139, 92, 246, .3); }
.bulk-bar[hidden] { display: none; }
.bulk-n { font-weight: 600; color: #fff; }
.bulk-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.linkish { background: none; border: 0; padding: 0; color: var(--brand-text); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }
/* dark mode preview */
.bar-l { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dark-tog { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid var(--line-strong); color: var(--muted); border-radius: 10px; padding: 7px 12px; font: inherit; font-weight: 600; cursor: pointer; }
.dark-tog:hover { color: #fff; }
.dark-tog.on { background: var(--brand-soft); color: #fff; border-color: rgba(139, 92, 246, .45); }
.dark-note { font-size: 12.5px; line-height: 1.5; color: var(--muted); background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin: 0 0 10px; }
.dark-note[hidden] { display: none; }
