:root {
  color-scheme: dark;
  --bg: #090c18;
  --bg-2: #10172a;
  --panel: #131b2e;
  --panel-2: #17223a;
  --panel-3: #0c1221;
  --ink: #fff8ed;
  --muted: #aab6c8;
  --line: #2c3a55;
  --line-strong: #49607d;
  --accent: #35e0b4;
  --accent-2: #ffd166;
  --accent-3: #ff7a8a;
  --accent-4: #5eb7ff;
  --danger: #ff6b6b;
  --success: #4ade80;
  --blue: #5eb7ff;
  --shadow: 0 22px 58px rgba(0, 0, 0, 0.42);
  --shadow-3d: 0 18px 0 rgba(6, 8, 14, 0.35), 0 28px 72px rgba(0, 0, 0, 0.42);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Premium funnel builder refinements */
.traffic-source-library {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.7));
}

.traffic-source-head,
.connector-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.traffic-source-head span,
.connector-menu-head span {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  padding: 4px 8px;
  color: #cbd5e1;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.traffic-source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.traffic-source-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-height: 64px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  padding: 9px;
  background: rgba(8, 13, 24, 0.76);
  color: #f8fafc;
  text-align: left;
  cursor: grab;
}

.traffic-source-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.traffic-source-card button {
  grid-column: 1 / -1;
  min-height: 26px;
  border: 1px solid rgba(226, 232, 240, 0.16);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.78);
  color: #e2e8f0;
  font-size: 10px;
  font-weight: 900;
}

.traffic-logo {
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  font-weight: 950;
  letter-spacing: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.24), 0 10px 22px rgba(0,0,0,0.28);
}

.traffic-logo.seed { width: 34px; height: 34px; font-size: 19px; }
.traffic-logo.node { width: 46px; height: 46px; font-size: 24px; }
.traffic-logo.mini { width: 26px; height: 26px; font-size: 13px; }
.traffic-logo.tone-facebook { background: #1877f2; }
.traffic-logo.tone-tiktok { background: linear-gradient(135deg, #0f172a, #111827 42%, #ff0050 43%, #00f2ea); }
.traffic-logo.tone-google { background: conic-gradient(from 45deg, #4285f4, #34a853, #fbbc05, #ea4335, #4285f4); }
.traffic-logo.tone-youtube { background: #ff0033; }
.traffic-logo.tone-pinterest { background: #e60023; }
.traffic-logo.tone-kwai { background: #ff6b00; }

.ghost-traffic-logos {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 8px;
}

.flow-node {
  width: 252px;
  min-height: 168px;
  grid-template-columns: 52px minmax(0, 1fr);
  grid-template-rows: auto auto auto auto;
  gap: 9px 11px;
  border: 1px solid rgba(203, 213, 225, 0.24);
  border-left-width: 3px;
  border-radius: 13px;
  padding: 13px;
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.88), rgba(7, 12, 22, 0.94)),
    rgba(2, 6, 23, 0.9);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: none;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.flow-node.role-traffic .flow-port-in {
  display: none !important;
}

.connector-product-select {
  display: none !important;
}

.connector-product-picker {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  padding: 10px;
  background:
    radial-gradient(circle at 20% 0%, rgba(94, 183, 255, 0.1), transparent 42%),
    rgba(2, 6, 23, 0.38);
}

.connector-product-picker.empty p {
  margin: 0;
  color: #94a3b8;
  font-size: 12px;
}

.connector-product-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.connector-product-picker-head span,
.connector-product-picker > span {
  color: #dbeafe;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.connector-product-picker-head small {
  color: #93c5fd;
  font-size: 10px;
  font-weight: 900;
}

.connector-product-card-grid {
  display: grid;
  gap: 7px;
  max-height: 218px;
  overflow: auto;
  padding-right: 2px;
}

.connector-product-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 11px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.82));
  color: #f8fafc;
  padding: 8px;
  text-align: left;
}

.connector-product-card:hover {
  border-color: rgba(94, 183, 255, 0.46);
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.92), rgba(7, 12, 22, 0.86));
}

.connector-product-card.active {
  border-color: rgba(53, 224, 180, 0.72);
  background:
    linear-gradient(135deg, rgba(53, 224, 180, 0.18), rgba(94, 183, 255, 0.1)),
    rgba(2, 6, 23, 0.78);
  box-shadow: inset 3px 0 0 rgba(53, 224, 180, 0.95), 0 0 0 1px rgba(53, 224, 180, 0.1);
}

.product-card-role {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(53, 224, 180, 0.86), rgba(94, 183, 255, 0.74));
  color: #03111b;
  font-size: 10px;
  font-weight: 950;
}

.product-card-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.product-card-copy strong {
  overflow: hidden;
  color: #f8fafc;
  font-size: 12px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card-copy small {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 800;
}

.connector-product-card b {
  border-radius: 999px;
  padding: 4px 7px;
  background: rgba(15, 23, 42, 0.88);
  color: #dbeafe;
  font-size: 10px;
  white-space: nowrap;
}

.flow-node::before,
.flow-node::after,
.flow-node.has-bump::after {
  display: none;
}

.flow-node:hover,
.flow-node.selected,
.flow-node.connecting {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(226, 232, 240, 0.08);
}

.flow-node.moving {
  transform: translateY(-4px);
}

.flow-node-visual {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(248, 250, 252, 0.82), rgba(148, 163, 184, 0.72)),
    rgba(15, 23, 42, 0.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), 0 10px 22px rgba(0,0,0,0.22);
  transform: none;
}

.flow-node-copy {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  transform: none;
}

.flow-node-copy strong {
  font-size: 14px;
  line-height: 1.12;
}

.flow-node-copy small {
  color: #aebdd0;
}

.flow-node-meta {
  grid-column: 2;
  grid-row: 2;
  transform: none;
}

.front-bump-slot,
.flow-next-row {
  grid-column: 1 / -1;
  transform: none;
}

.flow-next-row {
  grid-template-columns: minmax(0, 1fr) 86px;
}

.flow-connect-button {
  border-color: rgba(53, 224, 180, 0.34);
  background: rgba(53, 224, 180, 0.1);
  color: #bff8e9;
}

.front-bump-picker {
  display: grid;
  gap: 6px;
  max-height: 160px;
  overflow: auto;
  border-top: 1px solid rgba(94, 183, 255, 0.18);
  padding-top: 7px;
}

.front-bump-picker button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 32px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.56);
  color: #e2e8f0;
  padding: 6px 8px;
  text-align: left;
}

.front-bump-picker button.active {
  border-color: rgba(94, 183, 255, 0.7);
  background: rgba(94, 183, 255, 0.14);
}

.front-bump-picker strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.front-bump-picker small {
  color: #93c5fd;
  font-size: 10px;
  font-weight: 900;
}

.connector-decision-menu {
  position: absolute;
  z-index: 60;
  width: 322px;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(203, 213, 225, 0.2);
  border-radius: 14px;
  padding: 12px;
  background:
    radial-gradient(circle at 20% 0%, rgba(53, 224, 180, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.96));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.54), inset 0 1px 0 rgba(255,255,255,0.06);
}

.connector-menu-head button {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.72);
  color: #e2e8f0;
  font-size: 18px;
  line-height: 1;
}

.connector-decision-menu > strong {
  color: #f8fafc;
  font-size: 16px;
}

.connector-decision-menu p {
  margin: 0;
  color: #aebdd0;
  font-size: 12px;
  line-height: 1.4;
}

.connector-role-grid {
  display: grid;
  gap: 7px;
}

.connector-role-grid button {
  display: grid;
  gap: 2px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  background: rgba(8, 13, 24, 0.72);
  color: #e2e8f0;
  padding: 8px 10px;
  text-align: left;
}

.connector-role-grid button.active {
  border-color: rgba(53, 224, 180, 0.62);
  background: linear-gradient(135deg, rgba(53, 224, 180, 0.16), rgba(94, 183, 255, 0.08));
  box-shadow: inset 3px 0 0 rgba(53, 224, 180, 0.9);
}

.connector-role-grid small {
  color: #94a3b8;
  font-size: 11px;
}

.connector-product-select {
  display: grid;
  gap: 6px;
}

.connector-product-select span {
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.connector-product-select select {
  min-height: 38px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  background: #070b14;
  color: #f8fafc;
  padding: 0 10px;
}

.connector-create-button {
  min-height: 40px;
  border: 1px solid rgba(53, 224, 180, 0.48);
  border-radius: 10px;
  background: linear-gradient(135deg, #35e0b4, #5eb7ff);
  color: #03111b;
  font-weight: 950;
  cursor: pointer;
}

.node-art {
  width: 42px;
  height: 30px;
  transform: none;
}

.node-page i,
.node-video i,
.node-webinar i,
.node-offer i,
.node-thankyou i,
.node-checkout i {
  inset: 3px 4px 5px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(255, 122, 138, 0.12), transparent 28%),
    linear-gradient(215deg, rgba(53, 224, 180, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(16, 23, 42, 0.98), rgba(9, 12, 24, 1)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 64px);
  color: var(--ink);
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

select {
  color-scheme: dark;
  appearance: none;
  background-color: #08101d;
  color: #f8fafc;
  background-image:
    linear-gradient(45deg, transparent 50%, #dbe7f3 50%),
    linear-gradient(135deg, #dbe7f3 50%, transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%,
    0 0;
  background-size:
    6px 6px,
    6px 6px,
    100% 100%;
  background-repeat: no-repeat;
}

select option {
  background: #0b1120;
  color: #f8fafc;
}

button {
  cursor: pointer;
}

svg {
  width: 100%;
  height: 100%;
  display: block;
}

.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  align-items: start;
  perspective: 1400px;
}

.app.fullscreen-funnel {
  grid-template-columns: minmax(0, 1fr);
}

.app.fullscreen-funnel .sidebar {
  display: none;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 24% 16%, rgba(53, 224, 180, 0.18), transparent 34%),
    radial-gradient(circle at 78% 82%, rgba(255, 209, 102, 0.12), transparent 32%),
    linear-gradient(145deg, #050914, #0d1424 48%, #08131c);
}

.login-card {
  width: min(460px, 100%);
  border: 1px solid rgba(190, 202, 216, 0.24);
  border-radius: 18px;
  padding: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(8, 12, 24, 0.9);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.login-brand.logo-lockup {
  align-items: center;
  justify-content: flex-start;
  min-height: 76px;
  margin-bottom: 20px;
}

.login-brand.logo-lockup img {
  width: min(340px, 100%);
  height: auto;
  display: block;
}

.login-brand span {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.login-brand h1 {
  margin: 2px 0 0;
  font-size: 28px;
}

.login-form {
  display: grid;
  gap: 13px;
}

.login-submit {
  justify-content: center;
  min-height: 46px;
}

.login-error {
  border: 1px solid rgba(255, 107, 107, 0.34);
  border-radius: 10px;
  padding: 10px 12px;
  color: #ffd1d1;
  background: rgba(255, 107, 107, 0.1);
}

.login-note,
.login-loading p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.login-loading {
  border: 1px solid rgba(53, 224, 180, 0.22);
  border-radius: 12px;
  padding: 18px;
  background: rgba(53, 224, 180, 0.08);
}

.app.fullscreen-funnel .main {
  min-height: 100vh;
  padding: 14px;
}

.app.fullscreen-funnel .topbar {
  align-items: center;
  margin-bottom: 12px;
}

.app.fullscreen-funnel .title {
  font-size: 26px;
}

.app.fullscreen-funnel .lead {
  display: none;
}

.app.fullscreen-funnel .funnel-studio {
  grid-template-columns: minmax(0, 1fr);
  min-height: calc(100vh - 112px);
}

.app.fullscreen-funnel .create-panel,
.app.fullscreen-funnel .edit-panel {
  display: none;
}

.app.fullscreen-funnel .funnel-preview-panel {
  min-height: calc(100vh - 112px);
  grid-template-rows: auto minmax(0, 1fr);
}

.app.fullscreen-funnel .flow-canvas-scroll {
  min-height: calc(100vh - 204px);
}

.sidebar {
  height: 100vh;
  max-height: 100vh;
  min-height: 0;
  padding: 18px 14px;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(13, 19, 34, 0.96), rgba(6, 9, 18, 0.96)),
    linear-gradient(135deg, rgba(53, 224, 180, 0.08), transparent 44%);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  align-self: start;
  overflow: hidden;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04), 12px 0 32px rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  min-height: 56px;
  border: 1px solid rgba(129, 145, 168, 0.18);
  border-radius: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #35e0b4, #ffd166 55%, #ff7a8a);
  color: #04100d;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.2), 0 18px 35px rgba(53, 224, 180, 0.18);
}

.brand h1 {
  margin: 0;
  font-size: 16px;
  line-height: 1.1;
}

.brand p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 0;
  overflow-y: auto;
  padding: 2px 4px 2px 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(129, 145, 168, 0.5) transparent;
}

.nav::-webkit-scrollbar {
  width: 8px;
}

.nav::-webkit-scrollbar-track {
  background: transparent;
}

.nav::-webkit-scrollbar-thumb {
  background: rgba(129, 145, 168, 0.38);
  border-radius: 999px;
}

.nav button {
  min-height: 42px;
  border: 1px solid rgba(129, 145, 168, 0.12);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  text-align: left;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.nav button.active,
.nav button:hover {
  background: linear-gradient(135deg, rgba(53, 224, 180, 0.12), rgba(94, 183, 255, 0.08));
  color: var(--ink);
  border-color: var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 18px rgba(0, 0, 0, 0.14);
}

.nav button:hover {
  transform: translateX(2px);
}

.nav-icon,
.btn-icon {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
}

.main {
  min-width: 0;
  padding: 28px;
  overflow-x: hidden;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  margin-bottom: 18px;
}

.eyebrow {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0;
  text-transform: uppercase;
  font-weight: 850;
}

.title {
  margin: 6px 0 0;
  font-size: 38px;
  line-height: 1.06;
  letter-spacing: 0;
}

.lead {
  margin: 12px 0 0;
  max-width: 820px;
  color: var(--muted);
  font-size: 15px;
  overflow-wrap: normal;
}

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  max-width: 420px;
}

.button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  color: var(--ink);
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.16);
  line-height: 1;
  white-space: nowrap;
}

.button > svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #04100d;
  border-color: rgba(255, 255, 255, 0.18);
  font-weight: 800;
  box-shadow: 0 8px 0 rgba(4, 16, 13, 0.28), 0 18px 35px rgba(53, 224, 180, 0.2);
}

.button.ghost {
  background: transparent;
  box-shadow: none;
}

.button.warning {
  border-color: rgba(246, 195, 91, 0.38);
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.16), rgba(255, 122, 138, 0.08));
  color: var(--accent-2);
}

.party-3d-shell {
  position: relative;
  min-height: 270px;
  margin: 0 -28px 22px;
  padding: 22px 28px;
  overflow: hidden;
  border-top: 1px solid rgba(226, 235, 247, 0.14);
  border-bottom: 1px solid rgba(226, 235, 247, 0.12);
  background:
    radial-gradient(circle at 64% 40%, rgba(226, 235, 247, 0.2), transparent 30%),
    linear-gradient(110deg, rgba(7, 10, 18, 0.98), rgba(20, 27, 39, 0.94) 46%, rgba(8, 11, 18, 0.98)),
    linear-gradient(180deg, rgba(19, 27, 46, 0.4), rgba(9, 12, 24, 0.82));
  isolation: isolate;
}

.party-3d-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 28px),
    linear-gradient(90deg, rgba(9, 12, 24, 0.78), transparent 43%, rgba(9, 12, 24, 0.52));
  opacity: 0.68;
  pointer-events: none;
  z-index: -1;
}

.party-3d-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.party-3d-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(126px, 1fr));
  gap: 10px;
  max-width: 330px;
}

.party-3d-metric {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(226, 235, 247, 0.16);
  border-radius: 10px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)),
    rgba(8, 12, 24, 0.5);
  backdrop-filter: blur(14px);
  box-shadow: 0 9px 0 rgba(0, 0, 0, 0.24), 0 22px 50px rgba(0, 0, 0, 0.3);
}

.party-3d-metric span {
  display: block;
  color: #cbd5e1;
  font-size: 11px;
}

.party-3d-metric strong {
  display: block;
  margin-top: 3px;
  font-size: 25px;
  color: #f8fafc;
  text-shadow: 0 0 18px rgba(226, 235, 247, 0.22);
}

.premium-funnel-copy {
  position: absolute;
  right: 34px;
  top: 25px;
  z-index: 2;
  display: grid;
  justify-items: end;
  gap: 5px;
  color: #e5edf6;
  text-align: right;
}

.premium-funnel-copy span {
  color: #aab6c8;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.premium-funnel-copy strong {
  max-width: 360px;
  font-size: 16px;
  line-height: 1.25;
  text-shadow: 0 0 24px rgba(226, 235, 247, 0.24);
}

.premium-stage-rail {
  position: absolute;
  left: 44%;
  right: 34px;
  bottom: 22px;
  z-index: 2;
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.premium-stage-rail span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(226, 235, 247, 0.2);
  border-radius: 999px;
  padding: 5px 10px;
  background:
    linear-gradient(145deg, rgba(226, 235, 247, 0.14), rgba(226, 235, 247, 0.03)),
    rgba(8, 12, 24, 0.72);
  color: #e5edf6;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.2), 0 16px 30px rgba(0, 0, 0, 0.2);
}

.premium-stage-rail span::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f8fafc, #94a3b8);
  box-shadow: 0 0 14px rgba(226, 235, 247, 0.42);
}

.party-3d-tags {
  display: none;
}

.tabs {
  display: none;
  min-width: 0;
}

.tabs.active {
  display: block;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.metric,
.stage,
.side-panel,
.config-card,
.updates-panel {
  background:
    linear-gradient(145deg, rgba(23, 34, 58, 0.96), rgba(12, 18, 33, 0.96)),
    linear-gradient(135deg, rgba(53, 224, 180, 0.07), transparent 55%);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
}

.metric {
  padding: 16px;
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.22), 0 24px 48px rgba(0, 0, 0, 0.28);
  position: relative;
  overflow: hidden;
}

.metric::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: translateX(-70%) skewX(-18deg);
  pointer-events: none;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.metric strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
  letter-spacing: 0;
}

.metric small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.metric-revenue strong {
  font-size: clamp(22px, 1.9vw, 32px);
  color: #f8fbff;
  letter-spacing: 0;
}

.board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 320px;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 16px;
  scrollbar-color: var(--line-strong) transparent;
  perspective: 1300px;
}

.stage {
  min-height: 530px;
  min-width: 0;
  box-shadow: var(--shadow-3d);
  transform: translateZ(0);
}

.stage.drag-over {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(51, 214, 166, 0.16);
}

.stage-header {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent);
}

.stage-header > div {
  min-width: 0;
}

.stage-header h2,
.stage-header h3 {
  margin: 0;
  font-size: 15px;
}

.stage-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.stage-body {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.node,
.lead-card,
.update-item {
  background:
    linear-gradient(145deg, rgba(25, 37, 62, 0.98), rgba(13, 20, 36, 0.98)),
    linear-gradient(135deg, rgba(255, 209, 102, 0.06), transparent 52%);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 13px;
  box-shadow: 0 7px 0 rgba(0, 0, 0, 0.24), 0 18px 36px rgba(0, 0, 0, 0.24);
  transform: translateZ(0);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.node:hover,
.lead-card:hover,
.update-item:hover {
  border-color: rgba(94, 183, 255, 0.42);
  transform: translateY(-2px) rotateX(1.2deg);
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.24), 0 28px 48px rgba(0, 0, 0, 0.3);
}

.app-tab-leads .stage,
.app-tab-leads .metric,
.app-tab-leads .lead-card {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.app-tab-leads .lead-card:hover {
  transform: none;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
}

.node {
  cursor: grab;
}

.node:active {
  cursor: grabbing;
}

.node.selected {
  border-color: var(--accent);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.24), 0 0 0 3px rgba(53, 224, 180, 0.15), 0 24px 46px rgba(53, 224, 180, 0.12);
}

.node-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.node-title,
.lead-name {
  font-weight: 850;
  letter-spacing: 0;
}

.node-detail,
.lead-meta,
.muted {
  color: var(--muted);
  font-size: 12px;
}

.pill-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #d5dce6;
  font-size: 11px;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  line-height: 1;
  max-width: 100%;
  white-space: nowrap;
}

.stage-header > .pill {
  flex: 0 0 auto;
  max-width: 116px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pill.green {
  color: var(--success);
  background: rgba(74, 222, 128, 0.16);
}

.pill.gold {
  color: var(--accent-2);
  background: rgba(255, 209, 102, 0.16);
}

.pill.blue {
  color: var(--blue);
  background: rgba(94, 183, 255, 0.16);
}

.pill.red {
  color: var(--danger);
  background: rgba(255, 107, 107, 0.11);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 14px;
  align-items: start;
}

.dashboard-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(23, 34, 58, 0.96), rgba(10, 16, 31, 0.98)),
    linear-gradient(135deg, rgba(94, 183, 255, 0.06), transparent 54%);
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.22), 0 24px 48px rgba(0, 0, 0, 0.26);
  padding: 14px;
  min-width: 0;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-head h2 {
  margin: 0;
  font-size: 16px;
}

.panel-head span {
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(53, 224, 180, 0.14);
  color: var(--accent);
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.kpi-split,
.opportunity-grid,
.funnel-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.funnel-kpis {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kpi-split > div,
.opportunity-grid > div,
.funnel-kpis > div {
  border: 1px solid rgba(73, 96, 125, 0.62);
  border-radius: 10px;
  padding: 12px;
  background: rgba(8, 12, 24, 0.48);
  min-width: 0;
}

.kpi-split span,
.opportunity-grid span,
.funnel-kpis span,
.mini-list span,
.bar-row span {
  color: var(--muted);
  font-size: 12px;
}

.kpi-split strong,
.opportunity-grid strong,
.funnel-kpis strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
  line-height: 1;
}

.kpi-split small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.bar-list,
.mini-list {
  display: grid;
  gap: 9px;
}

.bar-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(73, 96, 125, 0.58);
  border-radius: 9px;
  padding: 10px;
  background: rgba(8, 12, 24, 0.55);
}

.bar-row::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--bar);
  background: linear-gradient(90deg, rgba(53, 224, 180, 0.24), rgba(255, 209, 102, 0.15));
  pointer-events: none;
}

.bar-row > *,
.mini-list > div > * {
  position: relative;
  z-index: 1;
}

.bar-row strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.bar-row em {
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
}

.mini-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid rgba(44, 58, 85, 0.62);
  padding: 8px 0;
}

.mini-list > div:last-child {
  border-bottom: 0;
}

.compact-note {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.4;
}

.funnel-builder-kpis {
  background:
    radial-gradient(circle at 100% 0%, rgba(226, 235, 247, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(17, 27, 46, 0.92), rgba(9, 13, 25, 0.92));
}

.mini-list strong {
  font-size: 13px;
}

.funnel-builder {
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(17, 27, 46, 0.92), rgba(9, 13, 25, 0.9)),
    linear-gradient(135deg, rgba(53, 224, 180, 0.08), rgba(255, 122, 138, 0.06));
  box-shadow: var(--shadow-3d);
  overflow: hidden;
}

.funnel-builder-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.055), transparent);
}

.funnel-builder-head h2,
.funnel-role-head h3 {
  margin: 0;
  letter-spacing: 0;
}

.funnel-builder-head h2 {
  font-size: 22px;
}

.funnel-builder-head p,
.funnel-role p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.funnel-studio {
  position: relative;
  display: grid;
  grid-template-columns: 340px minmax(520px, 1fr) 380px;
  gap: 14px;
  align-items: stretch;
  min-height: calc(100vh - 190px);
}

.funnel-studio-canvas-mode,
.funnel-studio-canvas-mode.products-open,
.funnel-studio-canvas-mode.editor-open,
.funnel-studio-canvas-mode.products-open.editor-open {
  grid-template-columns: minmax(0, 1fr);
}

.funnel-studio-panel {
  min-width: 0;
  border: 1px solid rgba(129, 145, 168, 0.36);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(23, 34, 58, 0.82), rgba(8, 12, 24, 0.94)),
    radial-gradient(circle at 20% 0%, rgba(226, 235, 247, 0.08), transparent 32%);
  box-shadow: 0 9px 0 rgba(0, 0, 0, 0.26), 0 26px 64px rgba(0, 0, 0, 0.32);
}

.create-panel,
.edit-panel {
  padding: 16px;
  align-self: start;
  position: sticky;
  top: 22px;
}

.funnel-studio-canvas-mode .create-panel,
.funnel-studio-canvas-mode .edit-panel {
  position: absolute;
  top: 70px;
  bottom: 14px;
  z-index: 32;
  width: min(360px, calc(100vw - 42px));
  max-height: calc(100vh - 190px);
  overflow: auto;
  backdrop-filter: blur(18px);
  animation: panelSlideIn 0.18s ease both;
}

.funnel-studio-canvas-mode .create-panel {
  left: 14px;
}

.funnel-studio-canvas-mode .edit-panel {
  right: 14px;
  width: min(390px, calc(100vw - 42px));
}

.funnel-studio-canvas-mode .funnel-preview-panel {
  grid-column: 1;
  min-height: calc(100vh - 190px);
}

.funnel-panel-dock {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 33;
  display: inline-flex;
  gap: 8px;
  max-width: calc(100% - 32px);
  padding: 6px;
  border: 1px solid rgba(226, 235, 247, 0.18);
  border-radius: 13px;
  background:
    linear-gradient(145deg, rgba(17, 24, 39, 0.92), rgba(5, 8, 15, 0.92)),
    rgba(5, 8, 15, 0.9);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(14px);
}

.app.fullscreen-funnel .funnel-studio-canvas-mode .create-panel,
.app.fullscreen-funnel .funnel-studio-canvas-mode .edit-panel {
  display: block;
  max-height: calc(100vh - 134px);
}

.app.fullscreen-funnel .funnel-studio-canvas-mode .funnel-preview-panel {
  min-height: calc(100vh - 112px);
}

.funnel-panel-dock button {
  min-height: 36px;
  border: 1px solid rgba(129, 145, 168, 0.28);
  border-radius: 10px;
  background: rgba(8, 12, 24, 0.72);
  color: #dbe7f3;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 950;
}

.funnel-panel-dock button.active {
  border-color: rgba(53, 224, 180, 0.46);
  background: linear-gradient(135deg, rgba(53, 224, 180, 0.18), rgba(255, 209, 102, 0.1));
  color: #fff8ed;
}

.funnel-panel-dock small {
  border-radius: 999px;
  padding: 2px 6px;
  background: rgba(226, 235, 247, 0.1);
  color: #cbd5e1;
  font-size: 10px;
}

.commercial-quick-panel {
  grid-column: 1 / -1;
  border: 1px solid rgba(53, 224, 180, 0.24);
  border-radius: 14px;
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(53, 224, 180, 0.1), rgba(94, 183, 255, 0.07)),
    rgba(8, 12, 24, 0.86);
  box-shadow: var(--shadow-3d);
}

.commercial-quick-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.commercial-quick-head span {
  color: #35e0b4;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.commercial-quick-head strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.commercial-quick-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.commercial-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.commercial-preset-row button {
  border: 1px solid rgba(129, 145, 168, 0.26);
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--ink);
  background: rgba(8, 12, 24, 0.68);
}

.commercial-preset-row button:hover {
  border-color: rgba(53, 224, 180, 0.45);
}

.commercial-quick-form {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) minmax(240px, 1.6fr);
  gap: 10px;
  margin-top: 12px;
}

.commercial-quick-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.commercial-quick-form span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.commercial-quick-form select,
.commercial-quick-form input {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(129, 145, 168, 0.34);
  border-radius: 10px;
  padding: 9px 10px;
  color: var(--ink);
  background: rgba(5, 8, 16, 0.78);
}

.commercial-quick-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(129, 145, 168, 0.18);
}

.commercial-quick-actions .button {
  min-width: 220px;
}

.commercial-quick-actions span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.commercial-sequence-shell {
  display: grid;
  gap: 14px;
}

.commercial-sequence-editor,
.sequence-kpis,
.sequence-product-card {
  border: 1px solid rgba(83, 101, 123, 0.42);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(16, 24, 39, 0.94), rgba(7, 11, 20, 0.96));
  box-shadow: var(--shadow);
}

.commercial-sequence-editor {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-color: rgba(53, 224, 180, 0.24);
}

.sequence-editor-copy span {
  color: #35e0b4;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sequence-editor-copy strong {
  display: block;
  margin-top: 4px;
  color: #fff8ed;
  font-size: 20px;
}

.sequence-editor-copy p {
  margin: 5px 0 0;
  color: var(--muted);
}

.sequence-role-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sequence-role-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid rgba(129, 145, 168, 0.28);
  border-radius: 999px;
  padding: 8px 11px;
  color: #dbe7f3;
  background: rgba(5, 8, 16, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.sequence-role-tabs button.active {
  border-color: rgba(53, 224, 180, 0.68);
  color: #06100d;
  background: linear-gradient(135deg, #35e0b4, #d7b56d);
}

.sequence-role-tabs small {
  min-width: 20px;
  border-radius: 999px;
  padding: 2px 6px;
  color: inherit;
  background: rgba(255, 255, 255, 0.16);
  font-size: 10px;
}

.sequence-editor-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(260px, 1.4fr) auto;
  gap: 10px;
  align-items: end;
}

.sequence-editor-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.sequence-editor-form .wide {
  grid-column: span 2;
}

.sequence-editor-form span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.sequence-editor-form select,
.sequence-editor-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(129, 145, 168, 0.34);
  border-radius: 10px;
  padding: 9px 10px;
  color: var(--ink);
  background: rgba(5, 8, 16, 0.78);
}

.sequence-bump-picker {
  display: grid;
  grid-column: 1 / -1;
  gap: 9px;
  border: 1px solid rgba(103, 174, 247, 0.24);
  border-radius: 12px;
  padding: 10px;
  background: rgba(103, 174, 247, 0.055);
}

.sequence-bump-picker-head {
  display: grid;
  gap: 3px;
}

.sequence-bump-picker-head strong {
  color: #cde8ff;
  font-size: 13px;
}

.sequence-bump-picker-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.sequence-bump-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.sequence-bump-options label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(129, 145, 168, 0.28);
  border-radius: 10px;
  padding: 9px;
  background: rgba(5, 8, 16, 0.64);
}

.sequence-bump-options label.active,
.sequence-bump-options label:has(input:checked) {
  border-color: rgba(53, 224, 180, 0.58);
  background: rgba(53, 224, 180, 0.09);
}

.sequence-bump-options input {
  width: 16px;
  min-height: 16px;
}

.sequence-bump-options span {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sequence-bump-options b {
  color: #f7e7b7;
  font-size: 11px;
}

.sequence-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
}

.sequence-kpis div {
  padding: 14px;
  background: rgba(7, 11, 20, 0.45);
}

.sequence-kpis span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.sequence-kpis strong {
  display: block;
  margin-top: 5px;
  color: #fff8ed;
  font-size: 24px;
}

.commercial-sequence-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 12px;
}

.sequence-empty-state {
  grid-column: 1 / -1;
  border: 1px dashed rgba(129, 145, 168, 0.34);
  border-radius: 14px;
  padding: 20px;
  color: var(--muted);
  background: rgba(5, 8, 16, 0.48);
}

.sequence-empty-state strong {
  display: block;
  color: #fff8ed;
  font-size: 17px;
}

.sequence-empty-state p {
  max-width: 680px;
  margin: 7px 0 0;
  line-height: 1.5;
}

.sequence-product-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.sequence-product-card.has-next {
  border-color: rgba(53, 224, 180, 0.32);
}

.sequence-product-card.no-next {
  border-color: rgba(215, 181, 109, 0.32);
}

.sequence-product-head,
.sequence-card-actions,
.sequence-card-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sequence-product-head span {
  color: #9fb0c6;
  font-size: 11px;
  font-weight: 900;
}

.sequence-product-head strong {
  display: block;
  margin-top: 2px;
  color: #fff8ed;
  font-size: 16px;
}

.sequence-product-head em {
  color: #f7e7b7;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.sequence-flow-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.sequence-flow-line div {
  min-width: 0;
  border: 1px solid rgba(129, 145, 168, 0.24);
  border-radius: 10px;
  padding: 9px;
  background: rgba(5, 8, 16, 0.58);
}

.sequence-flow-line small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.sequence-flow-line b {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sequence-flow-line em {
  display: inline-block;
  margin-top: 6px;
  color: #f7e7b7;
  font-style: normal;
  font-size: 12px;
  font-weight: 950;
}

.sequence-flow-line i {
  color: #35e0b4;
  font-style: normal;
  font-weight: 950;
  text-align: center;
}

.sequence-bump-list {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(103, 174, 247, 0.24);
  border-radius: 10px;
  padding: 9px;
  background: rgba(103, 174, 247, 0.055);
}

.sequence-bump-list > span {
  color: #cde8ff;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sequence-bump-list > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sequence-bump-list small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  border: 1px solid rgba(103, 174, 247, 0.24);
  border-radius: 999px;
  padding: 5px 8px;
  overflow: hidden;
  color: #dbeafe;
  background: rgba(5, 8, 16, 0.64);
  font-size: 11px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sequence-bump-list small b {
  color: #f7e7b7;
  font-size: 10px;
}

.sequence-bump-list.empty {
  border-style: dashed;
  background: rgba(5, 8, 16, 0.42);
}

.sequence-bump-list.empty small {
  display: block;
  border: 0;
  padding: 0;
  color: var(--muted);
  background: transparent;
  white-space: normal;
}

.sequence-product-card p {
  min-height: 38px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.sequence-card-metrics {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.sequence-card-metrics span {
  border: 1px solid rgba(129, 145, 168, 0.2);
  border-radius: 999px;
  padding: 5px 8px;
  color: #cbd5e1;
  background: rgba(8, 12, 24, 0.62);
  font-size: 11px;
  font-weight: 850;
}

@media (max-width: 980px) {
  .hotmart-live-panel {
    grid-template-columns: 1fr;
  }

  .hotmart-live-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }

  .commercial-quick-head {
    display: grid;
  }

  .commercial-quick-form {
    grid-template-columns: 1fr;
  }

  .sequence-editor-form,
  .sequence-kpis {
    grid-template-columns: 1fr;
  }

  .sequence-editor-form .wide {
    grid-column: auto;
  }

  .commercial-quick-actions {
    display: grid;
  }

  .commercial-quick-actions .button {
    width: 100%;
    min-width: 0;
  }
}

.panel-head-with-action {
  position: relative;
  grid-template-columns: 42px minmax(0, 1fr);
  padding-right: 38px;
}

.panel-close-button {
  position: absolute;
  top: 0;
  right: 0;
  width: 32px;
  min-height: 32px;
  border: 1px solid rgba(129, 145, 168, 0.28);
  border-radius: 9px;
  background: rgba(6, 10, 19, 0.62);
  color: #dbe7f3;
  padding: 0;
  font-size: 0;
  font-weight: 900;
}

.panel-close-button::before {
  content: "×";
  font-size: 18px;
  line-height: 1;
}

@keyframes panelSlideIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.funnel-preview-panel {
  display: grid;
  grid-template-rows: auto minmax(520px, 1fr);
  overflow: hidden;
}

.studio-panel-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 16px;
}

.funnel-preview-panel > .studio-panel-head {
  margin: 0;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(129, 145, 168, 0.24);
}

.studio-panel-head > span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(226, 235, 247, 0.22);
  border-radius: 11px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03)),
    rgba(8, 12, 24, 0.78);
  color: #e5edf6;
  font-size: 12px;
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 8px 20px rgba(0, 0, 0, 0.22);
}

.studio-panel-head h2,
.studio-panel-head p {
  margin: 0;
}

.studio-panel-head h2 {
  font-size: 18px;
  line-height: 1.22;
}

.studio-panel-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.studio-field {
  display: grid;
  gap: 7px;
  min-width: 0;
  margin-bottom: 12px;
}

.studio-field span {
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 760;
}

.studio-field input,
.studio-field select,
.studio-field textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(129, 145, 168, 0.34);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(13, 18, 32, 0.94), rgba(7, 10, 19, 0.96));
  color: var(--ink);
  padding: 9px 11px;
  outline: none;
}

.studio-field textarea {
  min-height: 116px;
  resize: vertical;
  line-height: 1.45;
}

.studio-field input:focus,
.studio-field select:focus,
.studio-field textarea:focus {
  border-color: rgba(226, 235, 247, 0.54);
  box-shadow: 0 0 0 3px rgba(226, 235, 247, 0.09);
}

.locked-product-field p,
.ticket-rule-field p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.locked-product-card {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(53, 224, 180, 0.3);
  border-radius: 11px;
  padding: 11px;
  background: linear-gradient(145deg, rgba(53, 224, 180, 0.12), rgba(8, 12, 24, 0.72));
}

.locked-product-card strong {
  font-size: 14px;
}

.locked-product-card small {
  color: var(--muted);
  font-size: 12px;
}

.ticket-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ticket-choice {
  display: grid;
  gap: 4px;
  min-height: 62px;
  border: 1px solid rgba(129, 145, 168, 0.28);
  border-radius: 11px;
  padding: 10px;
  color: var(--ink);
  text-align: left;
  background: rgba(8, 12, 24, 0.72);
}

.ticket-choice strong {
  font-size: 13px;
}

.ticket-choice small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.ticket-choice.active {
  border-color: rgba(53, 224, 180, 0.56);
  background: linear-gradient(145deg, rgba(53, 224, 180, 0.18), rgba(255, 209, 102, 0.1));
}

.ticket-choice.custom {
  cursor: text;
}

.ticket-choice.custom input {
  min-height: 34px;
  padding: 7px 9px;
  font-size: 13px;
}

.studio-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px;
  gap: 10px;
}

.studio-divider {
  height: 1px;
  margin: 14px 0;
  background: linear-gradient(90deg, transparent, rgba(226, 235, 247, 0.24), transparent);
}

.studio-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  margin-top: 4px;
}

.full-button {
  width: 100%;
  margin-top: 10px;
}

.product-card-library {
  display: grid;
  gap: 10px;
  max-height: 58vh;
  overflow: auto;
  padding-right: 5px;
}

.product-seed-card {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(129, 145, 168, 0.3);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 10px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(8, 12, 24, 0.72);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.22), 0 16px 28px rgba(0, 0, 0, 0.18);
  cursor: grab;
  transition: transform 0.18s ease, border-color 0.18s ease, filter 0.18s ease;
}

.product-seed-card:hover {
  transform: translateY(-2px);
  border-color: rgba(226, 235, 247, 0.42);
}

.product-seed-card.dragging {
  opacity: 0.68;
  filter: brightness(1.14);
}

.product-seed-card strong,
.product-seed-card small {
  display: block;
  overflow-wrap: anywhere;
}

.product-seed-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.seed-role-pills,
.choice-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.seed-role-pills button,
.choice-pill {
  border: 1px solid rgba(129, 145, 168, 0.32);
  border-radius: 999px;
  background: rgba(6, 10, 19, 0.72);
  color: #dbe7f3;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.choice-pill {
  display: grid;
  gap: 2px;
  border-radius: 10px;
  text-align: left;
  min-width: 96px;
}

.choice-pill small {
  max-width: 190px;
  color: rgba(203, 213, 225, 0.7);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seed-role-pills button.active,
.choice-pill.active {
  border-color: rgba(53, 224, 180, 0.6);
  background: linear-gradient(135deg, rgba(53, 224, 180, 0.24), rgba(94, 183, 255, 0.1));
  color: #ffffff;
}

.compact-choice .choice-pills {
  max-height: 116px;
  overflow: auto;
  padding-right: 4px;
}

.seed-add-button {
  min-height: 34px;
  border: 1px solid rgba(53, 224, 180, 0.32);
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(53, 224, 180, 0.88), rgba(255, 209, 102, 0.9));
  color: #07101b;
  font-weight: 950;
  cursor: pointer;
}

.custom-step-drawer {
  margin-top: 12px;
  border: 1px solid rgba(129, 145, 168, 0.24);
  border-radius: 10px;
  padding: 10px;
  background: rgba(6, 10, 19, 0.5);
}

.custom-step-drawer summary {
  cursor: pointer;
  font-weight: 900;
}

.danger-button {
  width: 100%;
  margin-top: 2px;
  border-color: rgba(255, 107, 107, 0.32);
  color: #ffb4b4;
}

.metal-funnel-stage {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 16px;
  min-height: 100%;
  padding: 52px 34px 84px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 38%, rgba(226, 235, 247, 0.18), transparent 28%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(5, 8, 15, 0.98), rgba(3, 5, 10, 1));
  background-size: auto, 52px 52px, 52px 52px, auto;
  perspective: 1100px;
}

.metal-funnel-floor {
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 34px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(226, 235, 247, 0.2), rgba(226, 235, 247, 0.04) 45%, transparent 70%);
  filter: blur(2px);
  transform: rotateX(64deg);
}

.metal-funnel-layer {
  --layer-width: 80%;
  position: relative;
  width: var(--layer-width);
  min-height: 84px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 0;
  clip-path: polygon(7% 0%, 93% 0%, 82% 100%, 18% 100%);
  padding: 13px max(34px, 9%) 13px;
  color: #07101b;
  background:
    linear-gradient(105deg, var(--metal-a), var(--metal-b) 32%, var(--metal-c) 54%, #f9fbff 70%, var(--metal-b)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(0, 0, 0, 0.14));
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.72),
    inset 0 -8px 18px rgba(0, 0, 0, 0.2),
    0 16px 0 rgba(0, 0, 0, 0.2),
    0 28px 52px rgba(0, 0, 0, 0.34);
  transform: rotateX(10deg) translateZ(calc(var(--layer-index) * -6px));
  transition: transform 160ms ease, filter 160ms ease;
}

.metal-funnel-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, transparent 0 34%, rgba(255, 255, 255, 0.48) 38%, transparent 44% 100%),
    radial-gradient(circle at 50% -15%, rgba(255, 255, 255, 0.62), transparent 34%);
  opacity: 0.72;
  pointer-events: none;
}

.metal-funnel-layer:hover,
.metal-funnel-layer.selected {
  filter: brightness(1.08) saturate(1.04);
  transform: rotateX(10deg) translateY(-3px) translateZ(calc(var(--layer-index) * -6px));
}

.metal-funnel-layer.selected {
  outline: 3px solid rgba(226, 235, 247, 0.58);
  outline-offset: 4px;
}

.layer-order,
.layer-copy,
.layer-strategy,
.metal-funnel-layer em {
  position: relative;
  z-index: 1;
}

.layer-order {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(7, 16, 27, 0.84);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 950;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.layer-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
  text-align: left;
}

.layer-copy strong,
.layer-copy small,
.layer-strategy,
.metal-funnel-layer em {
  overflow-wrap: anywhere;
}

.layer-copy strong {
  font-size: 17px;
  line-height: 1.16;
}

.layer-copy small {
  color: rgba(7, 16, 27, 0.7);
  font-size: 12px;
  font-weight: 850;
}

.layer-strategy,
.metal-funnel-layer em {
  justify-self: end;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(7, 16, 27, 0.72);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.metal-funnel-layer em {
  grid-column: 2 / -1;
  justify-self: start;
  background: rgba(7, 16, 27, 0.52);
  font-style: normal;
}

.metal-funnel-empty {
  min-height: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  padding: 38px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 36%, rgba(226, 235, 247, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(5, 8, 15, 0.98), rgba(3, 5, 10, 1));
}

.metal-empty-funnel {
  width: min(520px, 80%);
  display: grid;
  gap: 12px;
  justify-items: center;
  margin-bottom: 8px;
}

.metal-empty-funnel span {
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(105deg, rgba(248, 251, 255, 0.34), rgba(129, 145, 168, 0.18), rgba(248, 251, 255, 0.3));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34), 0 12px 30px rgba(0, 0, 0, 0.28);
}

.metal-empty-funnel span:nth-child(1) { width: 100%; }
.metal-empty-funnel span:nth-child(2) { width: 78%; }
.metal-empty-funnel span:nth-child(3) { width: 56%; }
.metal-empty-funnel span:nth-child(4) { width: 28%; }

.metal-funnel-empty strong {
  font-size: 20px;
}

.metal-funnel-empty p,
.empty-editor p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.flow-canvas-scroll {
  position: relative;
  min-height: 100%;
  overflow: auto;
  background:
    radial-gradient(circle at 50% 30%, rgba(226, 235, 247, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(53, 224, 180, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(6, 10, 19, 0.98), rgba(2, 4, 9, 1));
  perspective: 1500px;
  transform-style: preserve-3d;
  transition: box-shadow 0.18s ease;
}

.flow-viewport-toolbar {
  position: sticky;
  top: 12px;
  left: 12px;
  z-index: 20;
  width: max-content;
  max-width: calc(100% - 24px);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 12px;
  border: 1px solid rgba(226, 235, 247, 0.24);
  border-radius: 12px;
  padding: 6px;
  background:
    linear-gradient(145deg, rgba(23, 34, 58, 0.92), rgba(6, 10, 19, 0.92)),
    rgba(6, 10, 19, 0.9);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
}

.flow-canvas-scroll {
  perspective: none !important;
  transform-style: flat !important;
}

.app {
  perspective: none !important;
}

.flow-viewport-toolbar button {
  min-width: 34px;
  min-height: 32px;
  border: 1px solid rgba(129, 145, 168, 0.32);
  border-radius: 9px;
  background: rgba(8, 12, 24, 0.82);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 950;
}

.flow-viewport-toolbar > span {
  min-width: 46px;
  color: #dbe7f3;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.flow-viewport-toolbar .hand-tool {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 70px;
  color: #dbe7f3;
}

.flow-viewport-toolbar .hand-tool.active {
  border-color: rgba(255, 209, 102, 0.5);
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.22), rgba(53, 224, 180, 0.12));
  color: #fff4c7;
}

.hand-icon {
  position: relative;
  width: 15px;
  height: 17px;
  display: inline-block;
  border: 2px solid currentColor;
  border-top-width: 0;
  border-radius: 4px 4px 7px 7px;
}

.hand-icon i {
  position: absolute;
  bottom: 9px;
  width: 4px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}

.hand-icon i:nth-child(1) { left: -2px; height: 9px; }
.hand-icon i:nth-child(2) { left: 3px; height: 13px; }
.hand-icon i:nth-child(3) { left: 8px; height: 11px; }
.hand-icon i:nth-child(4) { right: -4px; height: 8px; transform: rotate(20deg); transform-origin: bottom; }

.flow-canvas-scroll.drop-ready {
  box-shadow: inset 0 0 0 2px rgba(53, 224, 180, 0.45), inset 0 0 42px rgba(53, 224, 180, 0.08);
}

.flow-canvas-stage {
  position: relative;
  width: var(--flow-width);
  height: var(--flow-height);
  min-width: 100%;
  min-height: 100%;
}

.flow-canvas {
  position: relative;
  width: var(--flow-width);
  height: var(--flow-height);
  min-width: 100%;
  min-height: 100%;
  transform: scale(var(--flow-zoom, 1));
  transform-origin: 0 0;
  transform-style: preserve-3d;
  cursor: default;
  background:
    radial-gradient(circle at 36% 28%, rgba(255, 255, 255, 0.07), transparent 18%),
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.038) 1px, transparent 1px),
    linear-gradient(63deg, rgba(94, 183, 255, 0.035) 1px, transparent 1px),
    linear-gradient(117deg, rgba(53, 224, 180, 0.028) 1px, transparent 1px);
  background-size: auto, 76px 76px, 76px 76px, 152px 152px, 152px 152px;
}

.flow-canvas-scroll.pan-mode .flow-canvas {
  cursor: grab;
}

.flow-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 20%),
    radial-gradient(ellipse at 50% 50%, transparent 35%, rgba(0, 0, 0, 0.34) 100%);
}

.flow-canvas.panning {
  cursor: grabbing;
}

.empty-flow-canvas {
  display: grid;
  place-items: center;
}

.empty-flow-canvas .flow-viewport-toolbar {
  position: absolute;
  top: 12px;
  left: 12px;
  margin: 0;
}

.empty-flow-board {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 44px minmax(130px, 1fr) 44px minmax(130px, 1fr);
  align-items: center;
  gap: 10px;
  text-align: center;
  width: min(100%, 680px);
  padding: 0 12px;
}

.ghost-flow-card {
  min-height: 126px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(226, 235, 247, 0.26);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.14), rgba(255,255,255,0.03)),
    rgba(13, 18, 32, 0.86);
  color: #edf3f9;
  box-shadow: 0 9px 0 rgba(0,0,0,0.28), 0 22px 44px rgba(0,0,0,0.28);
}

.ghost-flow-arrow {
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(203,213,225,0.8) 0 10px, transparent 10px 17px);
  position: relative;
}

.ghost-flow-arrow::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -5px;
  border-left: 9px solid rgba(203,213,225,0.88);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.empty-flow-board strong,
.empty-flow-board p {
  grid-column: 1 / -1;
  margin: 0;
}

.empty-flow-board p {
  color: var(--muted);
  max-width: 620px;
  justify-self: center;
}

.flow-arrows {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: var(--flow-width);
  height: var(--flow-height);
  overflow: visible;
  pointer-events: none;
}

.flow-arrows.live-dragging {
  z-index: 40;
}

.flow-arrows marker path {
  fill: #ffd166;
}

.flow-edge {
  fill: none;
  stroke: rgba(255, 209, 102, 0.96);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 10 9;
  marker-end: url(#flow-arrow-head);
  filter: drop-shadow(0 0 10px rgba(255, 209, 102, 0.34));
  animation: flowDash 1.6s linear infinite;
}

.flow-edge-glow {
  stroke: rgba(53, 224, 180, 0.18);
  stroke-width: 13;
  stroke-dasharray: none;
  marker-end: none;
  filter: blur(1px);
  animation: none;
}

.flow-edge-preview .flow-edge {
  stroke: rgba(53, 224, 180, 0.96);
}

.flow-edge-live .flow-edge {
  stroke: rgba(53, 224, 180, 0.98);
  stroke-width: 5;
  stroke-dasharray: 12 8;
  marker-end: url(#flow-arrow-head);
  filter: drop-shadow(0 0 14px rgba(53, 224, 180, 0.44));
}

.flow-edge-live .flow-edge-glow {
  stroke: rgba(255, 209, 102, 0.22);
  stroke-width: 18;
  stroke-dasharray: none;
  marker-end: none;
  filter: blur(1.5px);
}

.flow-edge-preview .flow-edge-glow {
  stroke: rgba(255, 209, 102, 0.2);
}

.flow-edge-label rect {
  fill: rgba(6, 10, 19, 0.9);
  stroke: rgba(255, 209, 102, 0.46);
  stroke-width: 1;
}

.flow-edge-label text {
  fill: #fff4c7;
  font-size: 12px;
  font-weight: 950;
  text-anchor: middle;
  letter-spacing: 0;
}

@keyframes flowDash {
  to { stroke-dashoffset: -19; }
}

.flow-connect-hint {
  position: absolute;
  top: 64px;
  left: 14px;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 28px);
  border: 1px solid rgba(255, 209, 102, 0.42);
  border-radius: 12px;
  padding: 9px 10px;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.18), rgba(13, 18, 32, 0.92));
  color: #fff4c7;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
}

.flow-connect-hint strong,
.flow-connect-hint span {
  white-space: nowrap;
}

.flow-connect-hint span {
  color: #dbe7f3;
  font-size: 12px;
}

.flow-connect-hint button {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(6, 10, 19, 0.62);
  color: #fff8ed;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 900;
}

.flow-node {
  position: absolute;
  z-index: 4;
  width: 252px;
  min-height: 190px;
  display: grid;
  grid-template-rows: 78px auto auto auto 34px;
  gap: 9px;
  border: 1px solid rgba(226, 235, 247, 0.24);
  border-left-width: 4px;
  border-radius: 14px;
  padding: 12px;
  color: #f8fafc;
  text-align: left;
  background:
    radial-gradient(circle at 22% 12%, rgba(255, 255, 255, 0.16), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.025)),
    linear-gradient(135deg, rgba(13, 18, 32, 0.96), rgba(5, 8, 15, 0.98));
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.28), 0 30px 58px rgba(0, 0, 0, 0.4);
  cursor: grab;
  touch-action: none;
  user-select: none;
  overflow: visible;
  transform: perspective(900px) rotateX(5deg) rotateY(-4deg) translateZ(0);
  transform-style: preserve-3d;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, filter 0.18s ease;
}

.flow-node.role-webinar,
.flow-node.role-front,
.flow-node.role-low_ticket,
.flow-node.role-vsl,
.product-seed-card.role-webinar,
.product-seed-card.role-front,
.product-seed-card.role-low_ticket,
.product-seed-card.role-vsl {
  border-left-color: #35e0b4;
}

.flow-node.role-order_bump,
.product-seed-card.role-order_bump {
  border-left-color: #5eb7ff;
}

.flow-node.role-paid_launch,
.product-seed-card.role-paid_launch {
  border-left-color: #ff7a8a;
}

.flow-node.role-core,
.product-seed-card.role-core {
  border-left-color: #ff7a8a;
}

.flow-node.role-upsell,
.product-seed-card.role-upsell {
  border-left-color: #a855f7;
}

.flow-node.role-downsell,
.product-seed-card.role-downsell {
  border-left-color: #c4b5fd;
}

.flow-node.role-ascension,
.flow-node.role-premium,
.product-seed-card.role-ascension,
.product-seed-card.role-premium {
  border-left-color: #9af27a;
}

.flow-node.role-commercial,
.product-seed-card.role-commercial {
  border-left-color: #ff9f43;
}

.flow-node.role-other,
.product-seed-card.role-other {
  border-left-color: #94a3b8;
}

.flow-node.has-bump {
  min-height: 252px;
}

.flow-node.has-bump::after {
  content: "";
  position: absolute;
  inset: auto 16px -10px 16px;
  height: 18px;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(90deg, rgba(94, 183, 255, 0.34), rgba(255, 209, 102, 0.26));
  filter: blur(10px);
  pointer-events: none;
}

.flow-node::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(105deg, transparent 0 34%, rgba(255, 255, 255, 0.12) 38%, transparent 46% 100%);
  opacity: 0.9;
  pointer-events: none;
}

.flow-node::after {
  content: "";
  position: absolute;
  inset: 12px -14px -16px 22px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.72));
  filter: blur(0.2px);
  transform: translateZ(-22px);
  opacity: 0.75;
  pointer-events: none;
}

.flow-node.has-bump::after {
  inset: 12px -14px -18px 22px;
  height: auto;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(94, 183, 255, 0.16), rgba(0, 0, 0, 0.76));
  filter: blur(0.2px);
}

.flow-node:hover,
.flow-node.selected,
.flow-node.connecting {
  border-color: rgba(226, 235, 247, 0.56);
  box-shadow: 0 0 0 3px rgba(226, 235, 247, 0.08), 0 9px 0 rgba(0, 0, 0, 0.26), 0 30px 60px rgba(0, 0, 0, 0.4);
  transform: perspective(900px) rotateX(3deg) rotateY(-2deg) translateY(-4px) translateZ(14px);
}

.flow-node.connecting {
  border-color: rgba(255, 209, 102, 0.74);
}

.flow-node.connection-target,
.flow-node.live-connection-target {
  border-color: rgba(53, 224, 180, 0.72);
  box-shadow: 0 0 0 3px rgba(53, 224, 180, 0.12), 0 9px 0 rgba(0, 0, 0, 0.26), 0 30px 60px rgba(0, 0, 0, 0.42);
}

.flow-node.connector-source {
  border-color: rgba(255, 209, 102, 0.82);
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.13), 0 9px 0 rgba(0, 0, 0, 0.26), 0 30px 60px rgba(0, 0, 0, 0.42);
}

body.connector-dragging,
body.connector-dragging * {
  cursor: crosshair !important;
  user-select: none;
}

.flow-node.moving {
  cursor: grabbing;
  z-index: 5;
  filter: brightness(1.08);
  transform: perspective(900px) rotateX(2deg) rotateY(-1deg) translateY(-8px) translateZ(24px);
}

.flow-node-visual,
.flow-node-copy,
.flow-node-meta,
.flow-next-row {
  position: relative;
  z-index: 1;
  transform: translateZ(18px);
}

.flow-port {
  position: absolute;
  top: 78px;
  z-index: 20;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(226, 235, 247, 0.72);
  border-radius: 999px;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.92), rgba(203, 213, 225, 0.56) 30%, rgba(13, 18, 32, 0.96) 72%);
  box-shadow: 0 0 0 5px rgba(13, 18, 32, 0.82), 0 8px 18px rgba(0, 0, 0, 0.34);
}

.flow-port-in {
  left: -16px;
}

.flow-port-out {
  right: -16px;
  display: grid;
  place-items: center;
  padding: 0;
  border-color: rgba(255, 209, 102, 0.86);
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.96), rgba(255, 209, 102, 0.76) 32%, rgba(48, 38, 14, 0.98) 74%);
  cursor: grab;
  touch-action: none;
}

.flow-port-out::before {
  content: "";
  position: absolute;
  inset: -18px -46px -18px -16px;
  border-radius: 999px;
}

.flow-port-out .port-arrow {
  width: 8px;
  height: 8px;
  border-top: 2px solid #07101b;
  border-right: 2px solid #07101b;
  transform: rotate(45deg);
  pointer-events: none;
}

.connector-hand {
  position: absolute;
  right: -34px;
  top: -13px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 209, 102, 0.48);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 244, 199, 0.96), rgba(255, 209, 102, 0.82)),
    rgba(6, 10, 19, 0.9);
  color: #07101b;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.36);
  opacity: 0.78;
  transform: scale(0.86);
  transition: opacity 0.16s ease, transform 0.16s ease;
  pointer-events: none;
}

.connector-hand .hand-icon {
  width: 12px;
  height: 14px;
  border-width: 2px;
  border-top-width: 0;
}

.connector-hand .hand-icon i {
  bottom: 7px;
  width: 3px;
  border-width: 2px;
  border-bottom: 0;
}

.connector-hand .hand-icon i:nth-child(1) { left: -2px; height: 7px; }
.connector-hand .hand-icon i:nth-child(2) { left: 2px; height: 10px; }
.connector-hand .hand-icon i:nth-child(3) { left: 6px; height: 9px; }
.connector-hand .hand-icon i:nth-child(4) { right: -4px; height: 7px; }

.flow-node.no-next .connector-hand,
.flow-node.connecting .connector-hand,
.flow-port-out:hover .connector-hand {
  opacity: 1;
  transform: scale(1);
}

.flow-node.connecting .flow-port-out,
.flow-node.connection-target .flow-port-in {
  animation: connectorPulse 1.1s ease-in-out infinite;
}

@keyframes connectorPulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(13, 18, 32, 0.82), 0 0 0 0 rgba(255, 209, 102, 0.35); }
  50% { box-shadow: 0 0 0 5px rgba(13, 18, 32, 0.82), 0 0 0 8px rgba(255, 209, 102, 0.08); }
}

.flow-node-visual {
  display: grid;
  place-items: center;
  border-radius: 13px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.52), transparent 26%),
    linear-gradient(135deg, var(--metal-a), var(--metal-b) 46%, var(--metal-c));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -8px 18px rgba(0, 0, 0, 0.2);
  color: #07101b;
  overflow: hidden;
}

.front-bump-slot {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  border: 1px solid rgba(94, 183, 255, 0.28);
  border-radius: 11px;
  padding: 8px;
  background:
    linear-gradient(145deg, rgba(94, 183, 255, 0.14), rgba(255, 209, 102, 0.06)),
    rgba(4, 8, 16, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateZ(20px);
}

.front-bump-slot.filled {
  border-color: rgba(94, 183, 255, 0.5);
}

.front-bump-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.front-bump-label span {
  color: #9fd7ff;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.front-bump-label button {
  border: 1px solid rgba(94, 183, 255, 0.28);
  border-radius: 999px;
  background: rgba(94, 183, 255, 0.12);
  color: #dff2ff;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 900;
}

.front-bump-items {
  display: grid;
  gap: 5px;
}

.front-bump-item,
.front-bump-empty {
  min-width: 0;
  border-radius: 9px;
  padding: 6px 7px;
  background: rgba(6, 10, 19, 0.62);
  color: #dbe7f3;
  font-size: 10px;
  font-weight: 850;
}

.front-bump-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
}

.front-bump-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.front-bump-item small {
  color: #ffe38a;
  font-size: 10px;
  font-weight: 950;
}

.front-bump-empty {
  border: 1px dashed rgba(94, 183, 255, 0.28);
  color: rgba(203, 213, 225, 0.82);
}

.flow-node-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.flow-node-copy strong {
  font-size: 14px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.flow-node-copy small {
  color: #cbd5e1;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.flow-node-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  border-top: 1px solid rgba(226, 235, 247, 0.12);
  padding-top: 8px;
}

.flow-node-meta b,
.flow-node-meta em {
  border-radius: 999px;
  padding: 4px 7px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.flow-node-meta em {
  color: #cbd5e1;
}

.flow-next-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 62px;
  gap: 7px;
  align-items: center;
}

.flow-next-row > span {
  min-height: 30px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(226, 235, 247, 0.12);
  border-radius: 8px;
  padding: 5px 7px;
  background: rgba(5, 8, 15, 0.48);
  color: #cbd5e1;
  font-size: 10px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-connect-button {
  position: relative;
  z-index: 2;
  min-height: 30px;
  border: 1px solid rgba(255, 209, 102, 0.36);
  border-radius: 8px;
  background: rgba(255, 209, 102, 0.12);
  color: #ffe38a;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.connection-editor {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 209, 102, 0.24);
  border-radius: 12px;
  padding: 11px;
  background: linear-gradient(145deg, rgba(255, 209, 102, 0.08), rgba(6, 10, 19, 0.58));
}

.connection-editor strong {
  display: block;
  margin-bottom: 3px;
}

.connection-editor p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.order-bump-editor {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(94, 183, 255, 0.24);
  border-radius: 12px;
  padding: 11px;
  background:
    radial-gradient(circle at 18% 0%, rgba(94, 183, 255, 0.16), transparent 35%),
    linear-gradient(145deg, rgba(94, 183, 255, 0.08), rgba(6, 10, 19, 0.62));
}

.order-bump-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.order-bump-editor-head span {
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(94, 183, 255, 0.12);
  color: #9fd7ff;
  font-size: 10px;
  font-weight: 900;
}

.order-bump-editor p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.order-bump-choice-grid {
  display: grid;
  gap: 7px;
}

.order-bump-choice {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  border: 1px solid rgba(129, 145, 168, 0.28);
  border-radius: 10px;
  background: rgba(6, 10, 19, 0.58);
  color: #eef6ff;
  padding: 8px 9px;
  text-align: left;
}

.order-bump-choice strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-bump-choice small {
  color: #cbd5e1;
  font-size: 10px;
  font-weight: 900;
}

.order-bump-choice.active {
  border-color: rgba(94, 183, 255, 0.68);
  background: linear-gradient(135deg, rgba(94, 183, 255, 0.24), rgba(255, 209, 102, 0.1));
  box-shadow: inset 3px 0 0 rgba(94, 183, 255, 0.86);
}

.node-art {
  position: relative;
  display: block;
  width: 86px;
  height: 52px;
  transform: perspective(420px) rotateX(8deg) rotateY(-12deg);
}

.node-art i,
.node-art b,
.node-art em {
  position: absolute;
  display: block;
  border-radius: 5px;
}

.node-page i,
.node-video i,
.node-webinar i,
.node-offer i,
.node-thankyou i {
  inset: 4px 9px 8px;
  background: linear-gradient(180deg, #f8fafc, #aab6c8);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.2);
}

.node-page b,
.node-video b,
.node-webinar b,
.node-offer b,
.node-thankyou b {
  left: 16px;
  right: 18px;
  top: 14px;
  height: 5px;
  background: #111827;
  box-shadow: 0 11px 0 rgba(17, 24, 39, 0.42), 0 22px 0 rgba(17, 24, 39, 0.22);
}

.node-page em,
.node-offer em {
  left: 28px;
  right: 28px;
  bottom: 13px;
  height: 7px;
  background: linear-gradient(90deg, #5eb7ff, #9af27a);
}

.node-video b {
  left: 35px;
  top: 21px;
  width: 0;
  height: 0;
  background: transparent;
  border-left: 18px solid #111827;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  box-shadow: none;
}

.node-webinar em {
  left: 16px;
  right: 16px;
  bottom: 4px;
  height: 9px;
  border-radius: 999px;
  background: #111827;
}

.node-phone {
  width: 54px;
  height: 62px;
  transform: perspective(420px) rotateX(6deg) rotateY(-16deg);
}

.node-phone i {
  inset: 0 8px;
  border-radius: 11px;
  background: linear-gradient(180deg, #f8fafc, #94a3b8);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.22);
}

.node-phone b,
.node-phone em {
  left: 17px;
  right: 17px;
  height: 5px;
  background: #111827;
}

.node-phone b { top: 17px; }
.node-phone em { top: 29px; box-shadow: 0 12px 0 #111827; }

.node-checkout i {
  inset: 9px 6px;
  background: linear-gradient(180deg, #f8fafc, #aab6c8);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.22);
}

.node-checkout b {
  left: 18px;
  top: 20px;
  width: 26px;
  height: 18px;
  border: 3px solid #111827;
  background: transparent;
  box-shadow: none;
}

.node-checkout em {
  right: 18px;
  top: 18px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #111827;
}

.node-automation i {
  left: 22px;
  top: 8px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 5px solid #111827;
  background: transparent;
}

.node-automation b,
.node-automation em {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #111827;
}

.node-automation b { left: 4px; top: 25px; }
.node-automation em { right: 4px; top: 25px; }

.node-thankyou b {
  left: 28px;
  top: 17px;
  width: 30px;
  height: 18px;
  border: 4px solid #111827;
  border-top: 0;
  border-right: 0;
  transform: rotate(-45deg);
  background: transparent;
  box-shadow: none;
}

.conversion-preview {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(226, 235, 247, 0.13);
  border-radius: 10px;
  padding: 10px 11px;
  margin: 0 0 12px;
  background: rgba(255, 255, 255, 0.04);
}

.conversion-preview span {
  color: var(--muted);
  font-size: 12px;
}

.conversion-preview strong {
  font-size: 17px;
}

.step-editor-form {
  display: grid;
}

.empty-editor {
  display: grid;
  gap: 8px;
  border: 1px dashed rgba(129, 145, 168, 0.38);
  border-radius: 12px;
  padding: 18px;
  background: rgba(8, 12, 24, 0.46);
}

.funnel-workbench {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr) 360px;
  gap: 14px;
  padding: 14px;
  align-items: start;
}

.funnel-library {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 18px;
  min-width: 0;
  border: 1px solid rgba(73, 96, 125, 0.74);
  border-radius: 11px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(10, 15, 28, 0.96), rgba(8, 11, 22, 0.98)),
    radial-gradient(circle at 0 0, rgba(94, 183, 255, 0.16), transparent 38%);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.24), 0 22px 46px rgba(0, 0, 0, 0.28);
}

.library-search {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 10px;
  background: rgba(5, 8, 16, 0.72);
  color: var(--muted);
  font-size: 12px;
}

.library-search span {
  width: 16px;
  height: 16px;
}

.library-search strong {
  color: var(--ink);
}

.library-group {
  display: grid;
  gap: 9px;
}

.library-group h3 {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.library-roles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.library-role {
  min-width: 0;
  min-height: 74px;
  display: grid;
  gap: 4px;
  justify-items: center;
  align-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(17, 23, 34, 0.86);
  color: var(--ink);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.24), 0 13px 24px rgba(0, 0, 0, 0.18);
}

.library-role.drag-over {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(53, 224, 180, 0.14), 0 5px 0 rgba(0, 0, 0, 0.24), 0 13px 24px rgba(0, 0, 0, 0.18);
}

.library-role span {
  min-width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06110f;
  font-size: 10px;
  font-weight: 950;
}

.library-role strong,
.library-role small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-role strong {
  font-size: 11px;
}

.library-role small {
  color: var(--muted);
  font-size: 10px;
}

.funnel-canvas-shell {
  min-width: 0;
  border: 1px solid rgba(73, 96, 125, 0.74);
  border-radius: 12px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(9, 13, 25, 0.94), rgba(5, 7, 13, 0.98)),
    radial-gradient(circle at 50% 0, rgba(53, 224, 180, 0.12), transparent 35%);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.24), 0 26px 60px rgba(0, 0, 0, 0.32);
}

.canvas-toolbar {
  min-height: 60px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(17, 23, 34, 0.72);
}

.canvas-toolbar div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.canvas-toolbar strong,
.canvas-toolbar span {
  overflow-wrap: anywhere;
}

.canvas-toolbar strong {
  font-size: 14px;
}

.canvas-toolbar span {
  color: var(--muted);
  font-size: 12px;
}

.canvas-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.canvas-chip {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--ink) !important;
  font-size: 11px !important;
  font-weight: 850;
}

.funnel-canvas {
  min-height: 540px;
  overflow: auto;
  padding: 30px 28px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    rgba(6, 8, 14, 0.74);
  background-size: 46px 46px;
}

.canvas-grid {
  min-width: 1220px;
  display: grid;
  grid-template-columns: repeat(6, minmax(178px, 1fr));
  gap: 34px;
  align-items: start;
}

.canvas-column {
  position: relative;
  display: grid;
  gap: 10px;
  min-width: 0;
}

.canvas-column:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 88px;
  right: -29px;
  width: 25px;
  border-top: 2px dashed rgba(110, 126, 255, 0.78);
}

.canvas-column:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 82px;
  right: -34px;
  border: 6px solid transparent;
  border-left-color: rgba(110, 126, 255, 0.9);
}

.canvas-column-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.canvas-column-head h3 {
  margin: 0;
  font-size: 13px;
}

.canvas-column-head span {
  min-width: 25px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(94, 183, 255, 0.16);
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.canvas-column > p {
  min-height: 34px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.canvas-nodes {
  display: grid;
  gap: 18px;
}

.canvas-node {
  display: grid;
  gap: 10px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 4px solid var(--line-strong);
  border-radius: 10px;
  padding: 9px;
  background: linear-gradient(180deg, rgba(242, 245, 250, 0.98), rgba(221, 229, 239, 0.98));
  color: #06110f;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.32), 0 22px 36px rgba(0, 0, 0, 0.26);
  cursor: grab;
}

.canvas-node.dragging {
  opacity: 0.52;
}

.canvas-node.selected {
  outline: 3px solid rgba(94, 183, 255, 0.72);
  outline-offset: 2px;
  transform: translateY(-2px);
}

.canvas-node:active {
  cursor: grabbing;
}

.node-window-bar {
  height: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: 5px 5px 3px 3px;
  background: #212734;
  padding: 0 6px;
}

.node-window-bar span {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #ff6257;
}

.node-window-bar span:nth-child(2) {
  background: #ffd166;
}

.node-window-bar span:nth-child(3) {
  background: #35e0b4;
}

.node-window-bar i {
  flex: 1;
  height: 4px;
  max-width: 62px;
  margin-left: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}

.canvas-node-main {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.node-symbol {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #35e0b4, #ffd166);
  color: #06110f;
  font-size: 11px;
  font-weight: 950;
}

.canvas-node strong,
.canvas-node small,
.canvas-node-next b {
  overflow-wrap: anywhere;
}

.canvas-node strong {
  display: block;
  font-size: 12px;
  line-height: 1.2;
}

.canvas-node small {
  color: rgba(6, 17, 15, 0.64);
  font-size: 10px;
  font-weight: 800;
}

.canvas-node-next {
  display: grid;
  gap: 4px;
  border-top: 1px solid rgba(6, 17, 15, 0.12);
  padding-top: 8px;
}

.canvas-node-next span {
  color: rgba(6, 17, 15, 0.58);
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
}

.canvas-node-next b {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 4px 7px;
  background: linear-gradient(135deg, #6f48ff, #4f6bff);
  color: #fff;
  font-size: 10px;
}

.funnel-role-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(252px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding: 0 0 8px;
  scrollbar-color: var(--line-strong) transparent;
}

.funnel-role {
  min-width: 0;
  min-height: 430px;
  border: 1px solid rgba(73, 96, 125, 0.74);
  border-radius: 11px;
  padding: 12px;
  background:
    linear-gradient(160deg, rgba(26, 38, 63, 0.94), rgba(10, 16, 31, 0.98)),
    radial-gradient(circle at 22% 0%, rgba(255, 209, 102, 0.12), transparent 35%);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.24), 0 22px 46px rgba(0, 0, 0, 0.28);
}

.funnel-role.drag-over {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(53, 224, 180, 0.16), 0 8px 0 rgba(0, 0, 0, 0.24), 0 22px 46px rgba(0, 0, 0, 0.28);
}

.funnel-role-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.funnel-role-head h3 {
  font-size: 15px;
}

.funnel-role-head span {
  min-width: 28px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #06110f;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  font-size: 12px;
  font-weight: 900;
}

.funnel-products {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.funnel-product {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-left: 4px solid var(--line-strong);
  border-radius: 9px;
  padding: 11px;
  background: rgba(8, 12, 24, 0.72);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.22), 0 15px 26px rgba(0, 0, 0, 0.2);
  cursor: grab;
}

.funnel-product.dragging {
  opacity: 0.5;
}

.funnel-product.selected {
  border-color: rgba(53, 224, 180, 0.74);
  border-left-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(53, 224, 180, 0.16), 0 7px 0 rgba(0, 0, 0, 0.24), 0 18px 34px rgba(0, 0, 0, 0.28);
}

.funnel-product:active {
  cursor: grabbing;
}

.funnel-product strong,
.funnel-product span,
.funnel-product small {
  overflow-wrap: anywhere;
}

.funnel-product strong {
  display: block;
  font-size: 13px;
  line-height: 1.25;
}

.funnel-product span,
.funnel-product small {
  color: var(--muted);
  font-size: 11px;
}

.funnel-product select {
  min-height: 34px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-3);
  color: var(--ink);
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 750;
}

.canvas-node.role-front,
.funnel-product.role-front,
.product-tag.front {
  border-left-color: var(--accent);
  background: linear-gradient(145deg, rgba(53, 224, 180, 0.22), rgba(53, 224, 180, 0.08));
}

.canvas-node.role-webinar,
.funnel-product.role-webinar,
.product-tag.webinar {
  border-left-color: var(--accent);
  background: linear-gradient(145deg, rgba(53, 224, 180, 0.23), rgba(53, 224, 180, 0.08));
}

.canvas-node.role-low_ticket,
.funnel-product.role-low_ticket,
.product-tag.low-ticket,
.canvas-node.role-vsl,
.funnel-product.role-vsl {
  border-left-color: var(--accent);
  background: linear-gradient(145deg, rgba(53, 224, 180, 0.23), rgba(53, 224, 180, 0.08));
}

.canvas-node.role-order_bump,
.funnel-product.role-order_bump,
.product-tag.bump {
  border-left-color: #5eb7ff;
  background: linear-gradient(145deg, rgba(94, 183, 255, 0.24), rgba(94, 183, 255, 0.08));
}

.canvas-node.role-paid_launch,
.funnel-product.role-paid_launch,
.product-tag.paid-launch {
  border-left-color: #ff7a8a;
  background: linear-gradient(145deg, rgba(255, 122, 138, 0.24), rgba(255, 122, 138, 0.08));
}

.canvas-node.role-core,
.funnel-product.role-core,
.product-tag.main {
  border-left-color: #fca5a5;
  background: linear-gradient(145deg, rgba(252, 165, 165, 0.2), rgba(252, 165, 165, 0.08));
}

.canvas-node.role-upsell,
.funnel-product.role-upsell,
.product-tag.upsell {
  border-left-color: #a855f7;
  background: linear-gradient(145deg, rgba(168, 85, 247, 0.24), rgba(168, 85, 247, 0.08));
}

.canvas-node.role-downsell,
.funnel-product.role-downsell,
.product-tag.downsell {
  border-left-color: #c4b5fd;
  background: linear-gradient(145deg, rgba(196, 181, 253, 0.25), rgba(196, 181, 253, 0.08));
}

.canvas-node.role-ascension,
.funnel-product.role-ascension,
.product-tag.ascension {
  border-left-color: #9af27a;
  background: linear-gradient(145deg, rgba(154, 242, 122, 0.2), rgba(154, 242, 122, 0.07));
}

.canvas-node.role-commercial,
.funnel-product.role-commercial,
.product-tag.commercial {
  border-left-color: #ff9f43;
  background: linear-gradient(145deg, rgba(255, 159, 67, 0.22), rgba(255, 159, 67, 0.08));
}

.canvas-node.role-premium,
.funnel-product.role-premium,
.product-tag.premium {
  border-left-color: #c4b5fd;
  background: linear-gradient(145deg, rgba(196, 181, 253, 0.22), rgba(196, 181, 253, 0.08));
}

.canvas-node.role-webinar .node-symbol,
.library-role.role-webinar span {
  background: linear-gradient(135deg, #5eb7ff, #9af27a);
}

.canvas-node.role-order_bump .node-symbol,
.library-role.role-order_bump span {
  background: linear-gradient(135deg, #ffd166, #ff9f43);
}

.canvas-node.role-core .node-symbol,
.library-role.role-core span {
  background: linear-gradient(135deg, #ff7a8a, #ffd166);
}

.canvas-node.role-vsl .node-symbol,
.library-role.role-vsl span {
  background: linear-gradient(135deg, #35e0b4, #9af27a);
}

.canvas-node.role-upsell .node-symbol,
.library-role.role-upsell span {
  background: linear-gradient(135deg, #5eb7ff, #6f48ff);
  color: #fff;
}

.canvas-node.role-downsell .node-symbol,
.library-role.role-downsell span {
  background: linear-gradient(135deg, #f87171, #ff9f43);
}

.canvas-node.role-ascension .node-symbol,
.library-role.role-ascension span {
  background: linear-gradient(135deg, #9af27a, #35e0b4);
}

.canvas-node.role-commercial .node-symbol,
.library-role.role-commercial span {
  background: linear-gradient(135deg, #ff9f43, #ffd166);
}

.canvas-node.role-premium .node-symbol,
.library-role.role-premium span {
  background: linear-gradient(135deg, #c4b5fd, #5eb7ff);
}

.canvas-node.role-webinar,
.canvas-node.role-low_ticket,
.canvas-node.role-front,
.canvas-node.role-paid_launch,
.canvas-node.role-order_bump,
.canvas-node.role-vsl,
.canvas-node.role-core,
.canvas-node.role-upsell,
.canvas-node.role-downsell,
.canvas-node.role-ascension,
.canvas-node.role-commercial,
.canvas-node.role-premium,
.canvas-node.role-other {
  background: linear-gradient(180deg, rgba(242, 245, 250, 0.98), rgba(221, 229, 239, 0.98));
  color: #06110f;
}

.funnel-strategy-panel {
  display: grid;
  gap: 12px;
  position: sticky;
  top: 18px;
  min-width: 0;
  border: 1px solid rgba(73, 96, 125, 0.74);
  border-radius: 11px;
  padding: 14px;
  background:
    linear-gradient(160deg, rgba(17, 27, 46, 0.96), rgba(9, 13, 25, 0.98)),
    radial-gradient(circle at 100% 0%, rgba(53, 224, 180, 0.13), transparent 35%);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.24), 0 24px 48px rgba(0, 0, 0, 0.3);
}

.selected-product-title {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(8, 12, 24, 0.68);
}

.selected-product-title strong {
  font-size: 17px;
  line-height: 1.25;
}

.selected-product-title small {
  color: var(--muted);
  font-size: 12px;
}

.empty-role {
  border: 1px dashed var(--line-strong);
  border-radius: 9px;
  color: var(--muted);
  padding: 12px;
  font-size: 12px;
  text-align: center;
  background: rgba(8, 12, 24, 0.38);
}

.layout-two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 14px;
  min-width: 0;
  align-items: start;
  overflow: hidden;
}

.layout-two > * {
  min-width: 0;
}

.side-panel {
  padding: 16px;
  position: sticky;
  top: 24px;
  align-self: start;
  z-index: 1;
  max-width: 360px;
  box-shadow: var(--shadow-3d);
}

.side-panel h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  min-height: 40px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel-3);
  padding: 9px 10px;
  color: var(--ink);
}

.field textarea {
  min-height: 78px;
  resize: vertical;
}

.lead-card {
  display: grid;
  gap: 8px;
  padding: 11px;
  cursor: grab;
  user-select: none;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.18), 0 10px 22px rgba(0, 0, 0, 0.18);
}

.lead-card.selected-for-export {
  border-color: rgba(53, 224, 180, 0.72);
  box-shadow: 0 0 0 2px rgba(53, 224, 180, 0.1), 0 12px 28px rgba(0, 0, 0, 0.24);
}

.lead-card.dragging,
.node.dragging {
  opacity: 0.5;
}

.lead-card:active {
  cursor: grabbing;
}

.lead-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.lead-select-control {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(129, 145, 168, 0.34);
  border-radius: 8px;
  background: rgba(5, 8, 16, 0.72);
  cursor: pointer;
}

.lead-select-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.lead-select-control span {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: rgba(129, 145, 168, 0.28);
  transition: background 0.12s ease, transform 0.12s ease;
}

.lead-select-control input:checked + span {
  background: linear-gradient(135deg, #35e0b4, #e6d56d);
  transform: scale(1.05);
}

.lead-title-wrap {
  min-width: 0;
}

.lead-name {
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.lead-meta {
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 210px;
}

.drag-handle {
  flex: 0 0 auto;
  border: 1px solid rgba(94, 183, 255, 0.26);
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(94, 183, 255, 0.1);
  color: #cfe7ff;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  cursor: pointer;
}

.lead-card-badges {
  display: grid;
  justify-items: end;
  gap: 5px;
  flex: 0 0 auto;
}

.owl-badge,
.recovery-badge {
  border: 1px solid rgba(255, 209, 102, 0.36);
  border-radius: 999px;
  padding: 5px 8px;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.18), rgba(255, 255, 255, 0.06));
  color: #fff3c4;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.recovery-badge {
  border-color: rgba(255, 122, 122, 0.34);
  background: linear-gradient(135deg, rgba(255, 122, 122, 0.14), rgba(255, 209, 102, 0.08));
  color: #ffd0d0;
}

.lead-last-purchase {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 9px;
  padding: 7px 8px;
  background: rgba(2, 6, 23, 0.28);
}

.lead-last-purchase span,
.lead-last-purchase time {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 850;
}

.lead-last-purchase strong {
  overflow: hidden;
  color: #e5eef9;
  font-size: 11px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag-count {
  border-radius: 999px;
  padding: 3px 7px;
  background: rgba(94, 183, 255, 0.12);
  color: #8fd0ff;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.lead-card-line {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  border-top: 1px solid rgba(44, 58, 85, 0.68);
  padding-top: 8px;
}

.lead-card-line > span:first-child {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  line-height: 1.3;
}

.lead-call-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  border: 1px solid rgba(94, 183, 255, 0.18);
  border-radius: 10px;
  padding: 7px;
  background:
    linear-gradient(135deg, rgba(94, 183, 255, 0.09), rgba(6, 10, 19, 0.62)),
    rgba(8, 12, 24, 0.66);
}

.lead-call-box.done {
  border-color: rgba(74, 222, 128, 0.28);
  background:
    linear-gradient(135deg, rgba(74, 222, 128, 0.14), rgba(255, 209, 102, 0.08)),
    rgba(8, 12, 24, 0.7);
}

.lead-call-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.lead-call-status strong {
  font-size: 11px;
  line-height: 1;
}

.lead-call-status span {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.lead-call-controls {
  display: grid;
  grid-template-columns: minmax(64px, 0.9fr) minmax(70px, 0.8fr) minmax(78px, 1fr);
  gap: 5px;
  align-items: stretch;
  min-width: 0;
}

.call-action,
.call-done-toggle {
  min-width: 0;
  min-height: 30px;
  border: 1px solid rgba(226, 235, 247, 0.18);
  border-radius: 8px;
  background: rgba(6, 10, 19, 0.76);
  color: #f8fafc;
  padding: 0 7px;
  font-size: 10px;
  font-weight: 950;
  white-space: nowrap;
}

.call-action {
  border-color: rgba(53, 224, 180, 0.34);
  background: linear-gradient(135deg, rgba(53, 224, 180, 0.9), rgba(255, 209, 102, 0.9));
  color: #04100d;
}

.call-goal-field {
  min-width: 0;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(226, 235, 247, 0.16);
  border-radius: 8px;
  padding: 0 5px;
  background: rgba(6, 10, 19, 0.74);
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.call-goal-field input {
  width: 24px;
  min-width: 24px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
  font-weight: 950;
  outline: 0;
  text-align: center;
}

.call-done-toggle.active {
  border-color: rgba(74, 222, 128, 0.38);
  background: rgba(74, 222, 128, 0.16);
  color: #c9ffd9;
}

.lead-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
}

.button.compact {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

.button.compact > .btn-icon {
  width: 16px;
  height: 16px;
}

.move-select {
  min-height: 32px;
  width: 100%;
  border: 1px solid rgba(73, 96, 125, 0.7);
  border-radius: 8px;
  background: rgba(8, 12, 24, 0.74);
  color: var(--ink);
  padding: 6px 8px;
  font-size: 12px;
}

.move-panel {
  border-top: 1px solid rgba(44, 58, 85, 0.68);
  padding-top: 8px;
}

.crm-move-panel {
  display: grid;
  gap: 8px;
}

.crm-move-panel > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.crm-move-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.crm-move-chip {
  min-height: 30px;
  border: 1px solid rgba(73, 96, 125, 0.72);
  border-radius: 999px;
  background: rgba(8, 12, 24, 0.72);
  color: var(--ink);
  padding: 0 10px;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}

.crm-move-chip:hover,
.crm-move-chip.active {
  border-color: rgba(51, 214, 166, 0.75);
  background: linear-gradient(135deg, rgba(51, 214, 166, 0.22), rgba(92, 178, 255, 0.12));
  color: #f8fbff;
}

.crm-add-column-button {
  align-self: stretch;
  justify-content: center;
  white-space: nowrap;
}

.crm-column-quick-action {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(53, 224, 180, 0.24);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(53, 224, 180, 0.08), rgba(92, 178, 255, 0.04)),
    rgba(9, 14, 25, 0.82);
  padding: 10px 12px;
}

.crm-column-quick-action div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.crm-column-quick-action strong {
  color: var(--ink);
  font-size: 13px;
}

.crm-column-quick-action span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.lead-section {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.lead-section h4 {
  margin: 0 0 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--muted);
}

.lead-tools {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 0.55fr);
  gap: 12px;
  margin: 0 0 14px;
  align-items: stretch;
}

.search-box,
.seed-status,
.lead-filter-panel {
  border: 1px solid var(--line);
  background: rgba(17, 23, 34, 0.88);
  border-radius: 10px;
  padding: 12px;
}

.search-box {
  display: grid;
  gap: 7px;
}

.search-box span,
.seed-status span,
.filter-field span {
  color: var(--muted);
  font-size: 12px;
}

.search-box input,
.filter-field select,
.filter-field input,
.filter-field textarea {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-3);
  color: var(--ink);
  padding: 8px 10px;
}

.lead-filter-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr)) auto;
  gap: 10px;
  align-items: end;
}

.filter-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.filter-field select,
.filter-field input {
  width: 100%;
  font-size: 12px;
}

.studio-field select,
.funnel-product select,
.field select,
.move-select,
.filter-field select {
  color-scheme: dark;
  padding-right: 34px;
  background-color: #0b1120;
  background-image:
    linear-gradient(45deg, transparent 50%, #dbe7f3 50%),
    linear-gradient(135deg, #dbe7f3 50%, transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0));
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%,
    0 0;
  background-size:
    6px 6px,
    6px 6px,
    100% 100%;
  background-repeat: no-repeat;
}

.filter-field textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  font-size: 12px;
  line-height: 1.42;
}

.filter-clear {
  align-self: end;
  white-space: nowrap;
}

.seed-status {
  display: grid;
  gap: 4px;
  align-content: center;
}

.seed-status strong {
  font-size: 13px;
}

.seed-status.error {
  border-color: rgba(255, 107, 107, 0.42);
}

.stage-more {
  border: 1px dashed var(--line-strong);
  border-radius: 9px;
  color: var(--muted);
  font-size: 12px;
  padding: 10px;
  text-align: center;
  background: rgba(7, 9, 13, 0.32);
}

.empty-results {
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: rgba(17, 23, 34, 0.72);
  color: var(--muted);
  padding: 22px;
  text-align: center;
}

.seller-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.seller-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(17, 23, 34, 0.86);
  padding: 14px;
  box-shadow: var(--shadow-3d);
}

.seller-list {
  display: grid;
  gap: 9px;
}

.seller-card {
  display: grid;
  gap: 5px;
  width: 100%;
  border: 1px solid rgba(129, 145, 168, 0.28);
  border-radius: 10px;
  background: rgba(8, 12, 24, 0.72);
  color: var(--ink);
  padding: 11px;
  text-align: left;
  cursor: pointer;
}

.seller-card.selected,
.seller-card:hover {
  border-color: rgba(53, 224, 180, 0.42);
  background: linear-gradient(145deg, rgba(53, 224, 180, 0.14), rgba(8, 12, 24, 0.82));
}

.seller-card span,
.seller-card small {
  color: var(--muted);
  font-size: 12px;
}

.seller-editor {
  display: grid;
  gap: 14px;
}

.seller-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.seller-title-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.seller-title h2,
.seller-title p {
  margin: 0;
}

.seller-title p {
  margin-top: 4px;
  color: var(--muted);
}

.seller-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 10px;
}

.sidebar-user {
  margin-top: auto;
  flex: 0 0 auto;
  display: grid;
  gap: 6px;
  border: 1px solid rgba(129, 145, 168, 0.24);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.sidebar-user span,
.sidebar-user small {
  color: var(--muted);
  font-size: 12px;
}

.sidebar-user strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.seller-access-panel {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(53, 224, 180, 0.24);
  border-radius: 12px;
  padding: 13px;
  background: linear-gradient(145deg, rgba(53, 224, 180, 0.08), rgba(8, 12, 24, 0.66));
}

.seller-access-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.seller-access-head div {
  display: grid;
  gap: 3px;
}

.seller-access-head span,
.password-note span {
  color: var(--muted);
  font-size: 12px;
}

.access-profile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.access-profile-button {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(129, 145, 168, 0.26);
  border-radius: 11px;
  padding: 10px;
  text-align: left;
  color: var(--ink);
  background: rgba(8, 12, 24, 0.62);
}

.access-profile-button small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.access-profile-button.active {
  border-color: rgba(53, 224, 180, 0.5);
  background: linear-gradient(145deg, rgba(53, 224, 180, 0.15), rgba(94, 183, 255, 0.1));
}

.access-profile-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.access-lock-note {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 860px) {
  .access-profile-grid {
    grid-template-columns: 1fr;
  }

  .seller-title-actions {
    justify-content: flex-start;
  }
}

.access-toggle {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border: 1px solid rgba(129, 145, 168, 0.24);
  border-radius: 10px;
  padding: 10px;
  background: rgba(8, 12, 24, 0.58);
}

.access-toggle input,
.permission-list input {
  accent-color: #35e0b4;
}

.password-note {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(255, 209, 102, 0.24);
  border-radius: 10px;
  padding: 9px 10px;
  background: rgba(255, 209, 102, 0.08);
}

.signup-link-box {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(94, 183, 255, 0.24);
  border-radius: 12px;
  padding: 11px;
  background: linear-gradient(145deg, rgba(94, 183, 255, 0.1), rgba(8, 12, 24, 0.58));
}

.signup-link-box > div:first-child {
  display: grid;
  gap: 3px;
}

.signup-link-box span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.signup-link-box input {
  min-width: 0;
  width: 100%;
  border: 1px solid rgba(190, 202, 216, 0.22);
  border-radius: 9px;
  padding: 10px;
  color: var(--text);
  background: rgba(2, 6, 16, 0.72);
  font-size: 12px;
}

.signup-link-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.signup-intro {
  margin-bottom: 2px;
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.permission-box {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.permission-list {
  display: grid;
  gap: 7px;
  max-height: 230px;
  overflow: auto;
  padding-right: 4px;
}

.permission-list label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  border: 1px solid rgba(129, 145, 168, 0.2);
  border-radius: 9px;
  padding: 8px;
  background: rgba(8, 12, 24, 0.52);
  font-size: 12px;
}

.permission-list span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.goal-bar {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(129, 145, 168, 0.3);
  border-radius: 10px;
  padding: 11px;
  overflow: hidden;
  background: rgba(8, 12, 24, 0.78);
}

.goal-bar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--goal);
  background: linear-gradient(90deg, rgba(53, 224, 180, 0.3), rgba(255, 209, 102, 0.22));
}

.goal-bar span,
.goal-bar strong {
  position: relative;
}

.seller-attribution-note {
  border: 1px solid rgba(255, 209, 102, 0.22);
  border-radius: 10px;
  padding: 11px;
  background: rgba(255, 209, 102, 0.08);
}

.seller-attribution-note p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.product-list {
  display: grid;
  gap: 7px;
}

.product-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}

.product-line span {
  color: var(--muted);
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.product-tag {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-height: 23px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left-width: 3px;
  border-radius: 4px 8px 8px 4px;
  padding: 4px 8px 4px 6px;
  font-size: 10px;
  line-height: 1.15;
  font-weight: 850;
  color: #edf3f9;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.24), 0 12px 22px rgba(0, 0, 0, 0.18);
  transform: translateZ(0);
}

.product-tag time,
.product-tag b {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 2px 5px;
  background: rgba(2, 6, 16, 0.34);
  color: rgba(238, 244, 251, 0.86);
  font-size: 9px;
  font-weight: 850;
  white-space: nowrap;
}

.product-tag b {
  min-width: 24px;
  text-align: center;
}

.product-tag-name {
  min-width: 0;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-tags.expanded .product-tag-name {
  max-width: 236px;
  white-space: normal;
}

.product-tag small {
  flex: 0 0 auto;
  max-width: 68px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  padding-left: 6px;
  color: rgba(255, 248, 237, 0.74);
  font-size: 9px;
  font-weight: 850;
}

.tag-hole {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  flex: 0 0 6px;
  background: #07090d;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-tag.low,
.product-tag.front {
  border-left-color: var(--accent);
  background: linear-gradient(145deg, rgba(53, 224, 180, 0.22), rgba(53, 224, 180, 0.08));
}

.product-tag.bump {
  border-left-color: #5eb7ff;
  background: linear-gradient(145deg, rgba(94, 183, 255, 0.24), rgba(94, 183, 255, 0.08));
}

.product-tag.main {
  border-left-color: var(--accent-2);
  background: linear-gradient(145deg, rgba(255, 209, 102, 0.22), rgba(255, 209, 102, 0.08));
}

.product-tag.upsell {
  border-left-color: #a855f7;
  background: linear-gradient(145deg, rgba(168, 85, 247, 0.24), rgba(168, 85, 247, 0.08));
}

.product-tag.downsell {
  border-left-color: #c4b5fd;
  background: linear-gradient(145deg, rgba(196, 181, 253, 0.25), rgba(196, 181, 253, 0.08));
}

.product-tag.premium {
  border-left-color: #c4b5fd;
  background: linear-gradient(145deg, rgba(196, 181, 253, 0.22), rgba(196, 181, 253, 0.08));
}

.product-tag.imported {
  border-left-color: var(--line-strong);
}

.product-tag.tone-1 {
  filter: saturate(0.9) brightness(1.03);
}

.product-tag.tone-2 {
  filter: saturate(1.1) brightness(0.96);
}

.product-tag.tone-3 {
  filter: saturate(0.82) brightness(1.08);
}

.product-toggle {
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  text-align: left;
}

.product-toggle:hover {
  color: #8df0d0;
}

.compact-empty {
  margin: 0;
}

.action-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.compact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.config-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
  gap: 14px;
}

.config-card {
  padding: 16px;
}

.config-card h3 {
  margin: 0 0 8px;
}

.code-box,
.template-preview {
  background: #07090d;
  border: 1px solid var(--line);
  color: #eaf0f8;
  border-radius: 10px;
  padding: 14px;
  overflow-x: auto;
  font-size: 12px;
  white-space: pre-wrap;
}

.template-preview {
  line-height: 1.5;
}

.template-preview.compact-preview {
  max-height: 92px;
  padding: 10px;
  font-size: 11px;
  line-height: 1.45;
  overflow: auto;
  border-radius: 8px;
}

.hotmart-live-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: stretch;
  margin: 12px 0;
}

.hotmart-live-card,
.hotmart-live-actions {
  border: 1px solid rgba(83, 101, 123, 0.46);
  border-radius: 14px;
  padding: 13px;
  background: linear-gradient(180deg, rgba(16, 24, 39, 0.94), rgba(7, 11, 20, 0.96));
  box-shadow: var(--shadow);
}

.hotmart-live-card.primary {
  border-color: rgba(53, 224, 180, 0.34);
}

.hotmart-live-card span {
  color: #9fb0c6;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hotmart-live-card strong {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: #fff8ed;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hotmart-live-card p {
  min-height: 34px;
  margin: 6px 0 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.hotmart-live-actions {
  display: grid;
  align-content: center;
  gap: 8px;
  min-width: 170px;
}

@media (max-width: 980px) {
  .hotmart-live-panel {
    grid-template-columns: 1fr;
  }

  .hotmart-live-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }
}

.updates-panel {
  padding: 12px;
}

.updates-list {
  display: grid;
  gap: 10px;
}

.update-item {
  display: grid;
  gap: 6px;
}

.update-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.update-top strong {
  font-size: 14px;
}

.table-like {
  display: grid;
  gap: 8px;
}

.rule-row,
.template-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(160px, 1fr) minmax(140px, 0.8fr);
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
}

.template-row {
  grid-template-columns: minmax(140px, 0.55fr) minmax(180px, 0.8fr) minmax(260px, 1fr);
}

.file-zone {
  position: relative;
  min-height: 172px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: rgba(7, 9, 13, 0.48);
  display: grid;
  place-items: center;
  gap: 8px;
  text-align: center;
  padding: 22px;
  margin: 14px 0;
}

.file-zone:hover {
  border-color: var(--accent);
  background: rgba(51, 214, 166, 0.06);
}

.file-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.file-zone-icon {
  width: 34px;
  height: 34px;
  color: var(--accent);
}

.file-zone small {
  color: var(--muted);
}

.status-list {
  display: grid;
  gap: 10px;
}

.status-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.status-list span {
  color: var(--muted);
}

.status-list strong {
  text-align: right;
}

.inline-alert {
  margin-top: 14px;
  border-color: rgba(255, 107, 107, 0.36);
}

.mini-table {
  display: grid;
  gap: 6px;
}

.mini-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.95fr) minmax(220px, 1.15fr) minmax(160px, 0.8fr) minmax(220px, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
  font-size: 12px;
}

.mini-row.header {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0;
  font-weight: 800;
  background: transparent;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: 380px;
  background: #f7f2e8;
  color: #111722;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  display: none;
  z-index: 20;
}

.toast.show {
  display: block;
}

@media (max-width: 1100px) {
  .layout-two,
  .config-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .funnel-studio {
    grid-template-columns: 1fr;
  }

  .create-panel,
  .edit-panel {
    position: static;
  }

  .funnel-preview-panel {
    grid-template-rows: auto minmax(520px, 1fr);
  }

  .funnel-workbench {
    grid-template-columns: 1fr;
  }

  .funnel-library,
  .funnel-strategy-panel {
    position: static;
  }

  .library-roles {
    grid-template-columns: repeat(4, minmax(92px, 1fr));
  }
}

@media (max-width: 980px) {
  .app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    height: auto;
    max-height: none;
    min-height: auto;
    position: static;
    overflow: visible;
  }

  .nav {
    max-height: none;
    overflow: visible;
  }

  .metrics,
  .compact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .kpi-split,
  .opportunity-grid {
    grid-template-columns: 1fr;
  }

  .funnel-role-grid {
    grid-auto-columns: minmax(238px, 78vw);
  }

  .metal-funnel-layer {
    width: min(var(--layer-width), 92%);
  }

  .funnel-canvas {
    padding: 22px 18px;
  }

  .canvas-grid {
    min-width: 1020px;
    gap: 26px;
  }

  .lead-tools {
    grid-template-columns: 1fr;
  }

  .lead-filter-panel {
    grid-template-columns: 1fr 1fr;
  }

  .party-3d-shell {
    min-height: 300px;
  }

  .premium-stage-rail {
    left: 28px;
    right: 28px;
    justify-content: center;
  }

  .premium-funnel-copy {
    right: 28px;
  }
}

@media (max-width: 620px) {
  .main {
    padding: 18px;
  }

  .topbar {
    display: block;
  }

  .title {
    font-size: 30px;
  }

  .toolbar {
    justify-content: flex-start;
    margin-top: 14px;
  }

  .party-3d-shell {
    margin: 0 -18px 18px;
    padding: 16px 18px;
    min-height: 360px;
  }

  .party-3d-content {
    grid-template-columns: 1fr 1fr;
    max-width: none;
  }

  .party-3d-metric {
    min-width: 112px;
  }

  .premium-funnel-copy {
    left: 18px;
    right: 18px;
    top: 122px;
    justify-items: start;
    text-align: left;
  }

  .premium-stage-rail {
    left: 18px;
    right: 18px;
    bottom: 16px;
    justify-content: flex-start;
  }

  .premium-stage-rail span:nth-child(n+5) {
    display: none;
  }

  .metrics,
  .compact-grid,
  .funnel-kpis {
    grid-template-columns: 1fr;
  }

  .funnel-builder-head {
    display: block;
  }

  .funnel-role-grid {
    grid-auto-columns: minmax(236px, 86vw);
  }

  .studio-row {
    grid-template-columns: 1fr;
  }

  .metal-funnel-stage {
    min-height: 560px;
    padding: 42px 14px 76px;
  }

  .metal-funnel-layer {
    min-height: 98px;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    clip-path: polygon(5% 0%, 95% 0%, 86% 100%, 14% 100%);
    padding: 16px max(24px, 12%);
  }

  .layer-copy {
    text-align: center;
  }

  .layer-strategy,
  .metal-funnel-layer em {
    justify-self: center;
  }

  .library-roles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .canvas-toolbar {
    display: grid;
  }

  .canvas-actions {
    justify-content: flex-start;
  }

  .rule-row,
  .template-row,
  .mini-row,
  .lead-filter-panel {
    grid-template-columns: 1fr;
  }
}

/* Final premium card overrides */
.flow-node,
.flow-node:hover,
.flow-node.selected,
.flow-node.connecting,
.flow-node.moving {
  transform: translateY(0) !important;
}

.flow-node:hover,
.flow-node.selected,
.flow-node.connecting {
  transform: translateY(-2px) !important;
}

.flow-node.moving {
  transform: translateY(-4px) !important;
}

.flow-node {
  width: 252px;
  min-height: 168px;
  grid-template-columns: 52px minmax(0, 1fr);
  grid-template-rows: auto auto auto auto;
  gap: 9px 11px;
  border: 1px solid rgba(203, 213, 225, 0.24);
  border-left-width: 3px;
  border-radius: 13px;
  padding: 13px;
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.88), rgba(7, 12, 22, 0.94)),
    rgba(2, 6, 23, 0.9);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.flow-node.has-bump {
  min-height: 222px;
}

.flow-node::before,
.flow-node::after,
.flow-node.has-bump::after {
  display: none;
}

.flow-node-visual {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  transform: none !important;
}

.flow-node-copy,
.flow-node-meta,
.front-bump-slot,
.flow-next-row {
  transform: none !important;
}

.node-art,
.node-phone {
  transform: none !important;
}

.flow-viewport-toolbar {
  position: fixed !important;
  top: auto !important;
  left: auto !important;
  right: 28px !important;
  bottom: 24px !important;
  z-index: 240 !important;
  border-radius: 999px;
  padding: 7px;
}

.app.fullscreen-funnel .flow-viewport-toolbar {
  right: 24px !important;
  bottom: 22px !important;
}

.flow-viewport-toolbar button {
  border-radius: 999px;
}

.flow-viewport-toolbar > span {
  min-width: 54px;
}

.flow-arrows marker path {
  fill: #6ee7d2 !important;
}

.flow-edge {
  stroke: rgba(110, 231, 210, 0.92) !important;
  stroke-width: 3.2 !important;
  stroke-dasharray: none !important;
  marker-end: url(#flow-arrow-head);
  filter: drop-shadow(0 0 7px rgba(45, 212, 191, 0.26)) !important;
  animation: none !important;
}

.flow-edge-glow {
  stroke: rgba(94, 183, 255, 0.16) !important;
  stroke-width: 10 !important;
  stroke-dasharray: none !important;
  filter: blur(1px) !important;
}

.flow-edge-live .flow-edge {
  stroke: rgba(167, 255, 235, 0.98) !important;
  stroke-width: 3.8 !important;
  stroke-dasharray: none !important;
  filter: drop-shadow(0 0 12px rgba(53, 224, 180, 0.44)) !important;
}

.flow-edge-live .flow-edge-glow {
  stroke: rgba(53, 224, 180, 0.2) !important;
  stroke-width: 14 !important;
}

.flow-edge-label rect {
  fill: rgba(5, 10, 18, 0.82) !important;
  stroke: rgba(110, 231, 210, 0.34) !important;
}

.flow-edge-label text {
  fill: #e6fffb !important;
  font-size: 11px !important;
}

/* Final connector product picker overrides */
.connector-decision-menu {
  width: min(430px, calc(100vw - 42px)) !important;
  gap: 12px !important;
  border-color: rgba(148, 163, 184, 0.28) !important;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.97), rgba(3, 7, 18, 0.98)),
    #050914 !important;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
}

.connector-product-select {
  display: none !important;
}

.connector-role-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.connector-product-picker {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(94, 183, 255, 0.2);
  border-radius: 14px;
  padding: 11px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.7), rgba(2, 6, 23, 0.82)),
    rgba(2, 6, 23, 0.78);
}

.connector-product-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.connector-product-picker-head span,
.connector-product-picker > span {
  color: #e6fffb;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.connector-product-picker-head small {
  color: #93c5fd;
  font-size: 11px;
  font-weight: 850;
}

.connector-product-card-grid {
  display: grid;
  gap: 8px;
  max-height: 270px;
  overflow: auto;
  padding-right: 2px;
}

.connector-product-card {
  position: relative;
  min-height: 72px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 4px 10px;
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  padding: 11px;
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.72), rgba(7, 12, 22, 0.92)),
    rgba(15, 23, 42, 0.82);
  color: #f8fafc;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.connector-product-card:hover {
  border-color: rgba(94, 183, 255, 0.56);
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.92), rgba(7, 12, 22, 0.96)),
    rgba(15, 23, 42, 0.9);
}

.connector-product-card.active {
  border-color: rgba(53, 224, 180, 0.78);
  background:
    linear-gradient(135deg, rgba(53, 224, 180, 0.2), rgba(94, 183, 255, 0.1)),
    rgba(2, 6, 23, 0.9);
  box-shadow:
    inset 4px 0 0 rgba(53, 224, 180, 0.96),
    0 0 0 1px rgba(53, 224, 180, 0.12);
}

.product-card-role {
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #35e0b4, #f4d35e);
  color: #06111c;
  font-size: 11px;
  font-weight: 950;
}

.product-card-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.product-card-copy strong {
  overflow: hidden;
  color: #f8fafc;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-card-copy small {
  color: #9fb1c6;
  font-size: 11px;
  font-weight: 800;
}

.connector-product-card b {
  justify-self: end;
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(15, 23, 42, 0.94);
  color: #e0f2fe;
  font-size: 11px;
  font-weight: 950;
}

.connector-product-card em {
  grid-column: 2 / span 2;
  justify-self: start;
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(53, 224, 180, 0.12);
  color: #a7ffeb;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.connector-product-card:not(.active) em {
  background: rgba(94, 183, 255, 0.1);
  color: #bfdbfe;
}

/* Minimal connector line overrides */
.flow-arrows marker path {
  fill: rgba(143, 250, 240, 0.95) !important;
}

.flow-edge {
  stroke: rgba(143, 250, 240, 0.82) !important;
  stroke-width: 2 !important;
  stroke-dasharray: none !important;
  marker-end: url(#flow-arrow-head) !important;
  filter: none !important;
  animation: none !important;
}

.flow-edge-glow {
  display: none !important;
}

.flow-edge-live .flow-edge,
.flow-edge-preview .flow-edge {
  stroke: rgba(143, 250, 240, 0.95) !important;
  stroke-width: 2.2px !important;
  filter: drop-shadow(0 0 5px rgba(53, 224, 180, 0.16)) !important;
}

.flow-edge-label {
  opacity: 0.68;
  pointer-events: none;
}

.flow-edge-label rect {
  fill: rgba(3, 7, 18, 0.72) !important;
  stroke: rgba(143, 250, 240, 0.22) !important;
}

.flow-edge-label text {
  fill: rgba(226, 252, 248, 0.92) !important;
  font-size: 10px !important;
  font-weight: 850 !important;
}

.flow-edge-preview .flow-edge-label {
  display: none;
}

/* CRM por funil */
.crm-folder-shell {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(4, 11, 22, 0.84)),
    rgba(2, 6, 23, 0.78);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.crm-folder-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.crm-folder-head div {
  display: grid;
  gap: 4px;
}

.crm-folder-head span,
.crm-funnel-summary > div > span {
  color: #93c5fd;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.crm-folder-head strong,
.crm-funnel-summary strong {
  color: #f8fafc;
  font-size: 18px;
}

.crm-folder-head small {
  color: #9fb1c6;
  font-size: 12px;
}

.crm-folder-tabs {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.crm-folder-tabs button {
  min-width: 190px;
  display: grid;
  gap: 4px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(7, 12, 22, 0.74);
  color: #e2e8f0;
  text-align: left;
  cursor: pointer;
}

.crm-folder-tabs button.active {
  border-color: rgba(53, 224, 180, 0.64);
  background:
    linear-gradient(135deg, rgba(53, 224, 180, 0.18), rgba(94, 183, 255, 0.08)),
    rgba(2, 6, 23, 0.82);
  box-shadow: inset 4px 0 0 rgba(53, 224, 180, 0.9);
}

.crm-folder-tabs span {
  overflow: hidden;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crm-folder-tabs small {
  overflow: hidden;
  color: #9fb1c6;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crm-funnel-summary {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: 14px;
  align-items: stretch;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  padding: 14px;
  background:
    radial-gradient(circle at 20% 20%, rgba(53, 224, 180, 0.12), transparent 32%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(8, 13, 24, 0.78));
}

.crm-funnel-summary > div:first-child {
  display: grid;
  gap: 6px;
  align-content: center;
}

.crm-funnel-summary p {
  margin: 0;
  color: #b6c4d6;
  line-height: 1.45;
}

.crm-ascension-action {
  display: block;
  width: fit-content;
  max-width: 100%;
  border: 1px solid rgba(53, 224, 180, 0.22);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(53, 224, 180, 0.08);
  color: #d9fff9;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.3;
}

.crm-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.crm-summary-grid div {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 12px;
  padding: 12px;
  background: rgba(2, 6, 23, 0.52);
}

.crm-summary-grid span {
  color: #9fb1c6;
  font-size: 11px;
  font-weight: 850;
}

.crm-summary-grid strong {
  font-size: 22px;
}

.compact-crm-tools {
  margin-top: 0;
}

.crm-filter-details {
  grid-column: 1 / -1;
  border: 1px solid rgba(83, 101, 123, 0.42);
  border-radius: 12px;
  background: rgba(9, 14, 25, 0.72);
}

.crm-filter-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 0 12px;
  color: #f8fafc;
  cursor: pointer;
  list-style: none;
}

.crm-filter-details summary::-webkit-details-marker {
  display: none;
}

.crm-filter-details summary span {
  font-size: 13px;
  font-weight: 950;
}

.crm-filter-details summary small {
  color: #9fb0c6;
  font-size: 11px;
  font-weight: 850;
}

.crm-filter-details[open] summary {
  border-bottom: 1px solid rgba(83, 101, 123, 0.36);
}

.crm-filter-details .lead-filter-panel {
  border: 0;
  border-radius: 0 0 12px 12px;
  background: transparent;
  padding: 10px;
}

.lead-filter-panel {
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr)) auto !important;
}

.lead-filter-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-self: end;
  min-width: 146px;
}

.filter-apply.pending {
  box-shadow: 0 0 0 3px rgba(53, 224, 180, 0.12);
}

.lead-selection-bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(53, 224, 180, 0.22);
  border-radius: 12px;
  padding: 10px 12px;
  background:
    linear-gradient(135deg, rgba(53, 224, 180, 0.08), rgba(230, 213, 109, 0.04)),
    rgba(8, 13, 24, 0.84);
}

.lead-selection-bar > div:first-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.lead-selection-bar strong {
  color: #f8fafc;
  font-size: 13px;
}

.lead-selection-bar span {
  color: #9fb0c6;
  font-size: 12px;
  line-height: 1.35;
}

.lead-selection-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.bulk-tag-input,
.bulk-template-select {
  min-height: 34px;
  border: 1px solid rgba(83, 101, 123, 0.58);
  border-radius: 9px;
  background: rgba(5, 8, 16, 0.74);
  color: #f8fafc;
  padding: 0 10px;
  font-size: 12px;
}

.bulk-tag-input {
  width: min(180px, 100%);
}

.bulk-template-select {
  width: min(220px, 100%);
}

.lead-card {
  position: relative;
}

.lead-products-popover {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 82px;
  z-index: 30;
  display: grid;
  gap: 10px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 14px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(3, 7, 18, 0.98)),
    #050914;
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.5);
}

.lead-products-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lead-products-popover-head strong {
  color: #f8fafc;
}

.lead-products-popover-head button {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: #e2e8f0;
  cursor: pointer;
}

.lead-products-list {
  display: grid;
  gap: 7px;
  max-height: 260px;
  overflow: auto;
}

.lead-product-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  border-left: 3px solid rgba(148, 163, 184, 0.54);
  border-radius: 10px;
  padding: 9px;
  background: rgba(15, 23, 42, 0.62);
}

.lead-product-row div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.lead-product-row strong {
  overflow: hidden;
  color: #f8fafc;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-product-row small {
  color: #aebdd0;
  font-size: 11px;
}

.lead-product-row b {
  border-radius: 999px;
  padding: 4px 7px;
  background: rgba(2, 6, 23, 0.84);
  color: #e0f2fe;
  font-size: 11px;
}

.product-toggle {
  width: fit-content;
  border: 1px solid rgba(53, 224, 180, 0.24) !important;
  border-radius: 999px !important;
  padding: 5px 9px !important;
  background: rgba(53, 224, 180, 0.08) !important;
  color: #a7ffeb !important;
}

.lead-ascension-box {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(255, 209, 102, 0.24);
  border-radius: 11px;
  padding: 9px 10px;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.1), rgba(53, 224, 180, 0.06));
}

.lead-ascension-box.from-funnel {
  border-color: rgba(53, 224, 180, 0.34);
  background: linear-gradient(135deg, rgba(53, 224, 180, 0.12), rgba(94, 183, 255, 0.06));
}

.lead-ascension-box span,
.lead-ascension-box small {
  color: #aebdd0;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
}

.lead-ascension-box strong {
  display: block;
  margin-top: 2px;
  color: #f8fafc;
  font-size: 12px;
  line-height: 1.25;
}

.lead-ascension-box small {
  color: #9fb0c6;
  line-height: 1.35;
}

@media (max-width: 1100px) {
  .crm-funnel-summary,
  .crm-summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .lead-filter-panel {
    grid-template-columns: 1fr 1fr !important;
  }
}

@media (max-width: 720px) {
  .crm-folder-head,
  .crm-funnel-summary,
  .crm-summary-grid,
  .lead-filter-panel {
    grid-template-columns: 1fr !important;
  }
}

.config-save-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(53, 224, 180, 0.22);
  border-radius: 14px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(53, 224, 180, 0.12), rgba(94, 183, 255, 0.06)),
    rgba(15, 23, 42, 0.86);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.config-save-bar div {
  display: grid;
  gap: 4px;
}

.config-save-bar strong {
  color: #f8fafc;
  font-size: 16px;
}

.config-save-bar span {
  color: #aebdd0;
  font-size: 13px;
}

@media (max-width: 720px) {
  .config-save-bar {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Funnel builder final pass: cleaner cards, stable connectors, clear structures */
.library-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 18px 0 10px;
  color: #f8fafc;
}

.library-section-title strong {
  font-size: 13px;
  letter-spacing: 0;
}

.library-section-title span {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  padding: 4px 8px;
  color: #aebdd0;
  font-size: 11px;
}

.funnel-structure-library {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.structure-card-grid {
  display: grid;
  gap: 9px;
}

.structure-seed-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  padding: 10px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.92));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
  cursor: grab;
}

.structure-seed-card:hover {
  border-color: rgba(53, 224, 180, 0.42);
  transform: translateY(-1px);
}

.structure-mini-art {
  display: grid;
  place-items: center;
  width: 52px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(2, 6, 23, 0.74);
}

.structure-mini-art .node-art {
  transform: scale(0.64);
}

.structure-seed-card strong,
.structure-seed-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.structure-seed-card strong {
  color: #f8fafc;
  font-size: 13px;
}

.structure-seed-card small {
  color: #9fb0c6;
  font-size: 11px;
  line-height: 1.35;
}

.structure-seed-card button {
  border: 1px solid rgba(53, 224, 180, 0.28);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(53, 224, 180, 0.1);
  color: #a7ffeb;
  font-size: 11px;
  font-weight: 900;
}

.flow-node {
  width: 264px;
  min-height: 178px;
  grid-template-rows: 70px auto auto auto 34px;
  border-radius: 12px;
  border-left-width: 3px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.018)),
    linear-gradient(135deg, rgba(20, 29, 47, 0.98), rgba(5, 9, 17, 0.98));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
  transform: translateZ(0);
  transition: border-color 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.flow-node::after {
  display: none;
}

.flow-node::before {
  opacity: 0.32;
}

.flow-node:hover,
.flow-node.selected,
.flow-node.connecting {
  transform: translateZ(0);
  box-shadow: 0 0 0 3px rgba(53, 224, 180, 0.08), 0 20px 44px rgba(0, 0, 0, 0.38);
}

.flow-node.moving {
  transform: translateZ(0) scale(1.01);
  filter: brightness(1.06);
}

.flow-node-copy em {
  display: block;
  max-width: 100%;
  margin-top: 4px;
  overflow: hidden;
  color: #a7ffeb;
  font-size: 11px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-node-visual,
.flow-node-copy,
.flow-node-meta,
.flow-next-row {
  transform: none;
}

.flow-edge {
  stroke: rgba(106, 231, 219, 0.96);
  stroke-width: 2.4;
  stroke-dasharray: none;
  filter: drop-shadow(0 0 8px rgba(53, 224, 180, 0.24));
  animation: none;
}

.flow-edge-glow {
  stroke: rgba(106, 231, 219, 0.14);
  stroke-width: 8;
}

.flow-arrows marker path {
  fill: #6ae7db;
}

.flow-edge-label rect {
  fill: rgba(6, 10, 19, 0.82);
  stroke: rgba(106, 231, 219, 0.34);
}

.flow-edge-label text {
  fill: #dcfffb;
  font-size: 11px;
}

.flow-port {
  top: 72px;
  width: 18px;
  height: 18px;
}

.flow-port-in {
  left: -11px;
}

.flow-port-out {
  right: -11px;
  cursor: crosshair;
}

.flow-port-out::before {
  inset: -16px -28px -16px -18px;
}

.flow-port-out .port-arrow {
  width: 6px;
  height: 6px;
  border-width: 1.8px;
}

.port-label {
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(106, 231, 219, 0.24);
  border-radius: 999px;
  padding: 3px 7px;
  background: rgba(2, 6, 23, 0.78);
  color: #b8fff7;
  font-size: 10px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}

.flow-port-out:hover .port-label,
.flow-node.no-next .port-label {
  opacity: 1;
}

.connector-hand {
  display: none !important;
}

body.connector-dragging,
body.connector-dragging * {
  cursor: crosshair !important;
}

.connector-format-picker {
  display: grid;
  gap: 8px;
}

.connector-format-picker > span {
  color: #aebdd0;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.connector-format-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.connector-format-grid button {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  padding: 9px;
  background: rgba(2, 6, 23, 0.64);
  color: #f8fafc;
  text-align: left;
}

.connector-format-grid button.active {
  border-color: rgba(53, 224, 180, 0.72);
  background: rgba(53, 224, 180, 0.12);
}

.connector-format-grid strong,
.connector-format-grid small {
  display: block;
}

.connector-format-grid strong {
  font-size: 12px;
}

.connector-format-grid small {
  margin-top: 4px;
  color: #9fb0c6;
  font-size: 10px;
  line-height: 1.3;
}

/* Brand system final pass - Artesa CRM */
:root {
  color-scheme: dark;
  --bg: #070b14;
  --bg-2: #0b111d;
  --panel: #101827;
  --panel-2: #151f31;
  --panel-3: #080d17;
  --ink: #fff8ed;
  --muted: #aeb9c8;
  --line: #27364b;
  --line-strong: #53657b;
  --accent: #35e0b4;
  --accent-2: #d7b56d;
  --accent-3: #ee7d86;
  --accent-4: #67aef7;
  --danger: #ff6b6b;
  --success: #61d394;
  --blue: #67aef7;
  --surface-glass: rgba(16, 24, 39, 0.86);
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
  --shadow-3d: 0 18px 46px rgba(0, 0, 0, 0.28);
}

html {
  background: var(--bg);
}

body {
  background:
    linear-gradient(135deg, rgba(53, 224, 180, 0.08), transparent 26%),
    linear-gradient(225deg, rgba(215, 181, 109, 0.08), transparent 30%),
    linear-gradient(180deg, #0a101b 0%, #070b14 52%, #080d17 100%);
  color: var(--ink);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.82), rgba(0,0,0,.16));
  z-index: -1;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid rgba(53, 224, 180, 0.88);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(53, 224, 180, 0.12);
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  cursor: not-allowed;
  opacity: .56;
}

.app {
  grid-template-columns: 260px minmax(0, 1fr);
  perspective: none;
}

.main {
  padding: 26px clamp(16px, 2.1vw, 34px);
}

.sidebar {
  height: 100dvh;
  max-height: 100dvh;
  padding: 16px 12px;
  border-right-color: rgba(83, 101, 123, 0.34);
  background:
    linear-gradient(180deg, rgba(10, 15, 25, 0.98), rgba(5, 8, 15, 0.98)),
    linear-gradient(90deg, rgba(53, 224, 180, 0.08), transparent);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.035), 10px 0 26px rgba(0, 0, 0, 0.14);
}

.brand,
.login-brand {
  gap: 12px;
}

.brand {
  border-color: rgba(83, 101, 123, 0.28);
  border-radius: 14px;
  background: rgba(255, 248, 237, 0.035);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  overflow: hidden;
  background: #080c17;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22), inset 0 0 0 1px rgba(255, 248, 237, 0.12);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
}

.brand h1 {
  font-size: 16px;
  letter-spacing: 0;
}

.brand p {
  color: #94a3b8;
  font-size: 11px;
}

.nav {
  gap: 5px;
}

.nav button {
  min-height: 40px;
  border-color: transparent;
  border-radius: 10px;
  background: transparent;
  color: #9aa7b7;
  box-shadow: none;
}

.nav button.active,
.nav button:hover {
  transform: none;
  border-color: rgba(53, 224, 180, 0.24);
  background: rgba(53, 224, 180, 0.09);
  color: #f7fbff;
  box-shadow: inset 3px 0 0 var(--accent);
}

.sidebar-user {
  border-color: rgba(83, 101, 123, 0.26);
  border-radius: 14px;
  background: rgba(255, 248, 237, 0.035);
}

.topbar {
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.eyebrow {
  color: var(--accent);
  font-size: 11px;
  letter-spacing: .04em;
  font-weight: 900;
}

.title {
  margin-top: 5px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.05;
}

.lead {
  max-width: 880px;
  color: #bac5d4;
  font-size: 15px;
  line-height: 1.5;
}

.toolbar {
  max-width: 520px;
}

.button {
  min-height: 39px;
  border-color: rgba(83, 101, 123, 0.52);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(21, 31, 49, 0.96), rgba(8, 13, 23, 0.96));
  color: #f7fbff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  font-weight: 800;
}

.button:hover {
  border-color: rgba(53, 224, 180, 0.44);
}

.button.primary {
  color: #06100d;
  background: linear-gradient(135deg, #45e4bc 0%, #8fe1b7 46%, #e6cc74 100%);
  box-shadow: 0 14px 30px rgba(53, 224, 180, 0.18);
}

.button.ghost {
  background: rgba(255, 248, 237, 0.025);
  box-shadow: none;
}

input,
select,
textarea,
.studio-field input,
.studio-field select,
.studio-field textarea,
.field input,
.field select,
.field textarea,
.filter-field input,
.filter-field select,
.filter-field textarea,
.move-select {
  border-color: rgba(83, 101, 123, 0.58);
  border-radius: 10px;
  background-color: #080d17;
  color: #fff8ed;
}

select,
.studio-field select,
.field select,
.filter-field select,
.move-select {
  background-image:
    linear-gradient(45deg, transparent 50%, #d7b56d 50%),
    linear-gradient(135deg, #d7b56d 50%, transparent 50%),
    linear-gradient(180deg, rgba(255, 248, 237, 0.04), rgba(255, 248, 237, 0));
}

select option {
  background: #080d17;
  color: #fff8ed;
}

.metric,
.dashboard-panel,
.stage,
.side-panel,
.config-card,
.updates-panel,
.crm-folder-shell,
.crm-funnel-summary {
  border-color: rgba(83, 101, 123, 0.42);
  background:
    linear-gradient(180deg, rgba(21, 31, 49, 0.92), rgba(9, 14, 25, 0.95)),
    rgba(8, 13, 23, 0.95);
  box-shadow: var(--shadow);
  transform: none;
}

.metric {
  min-height: 94px;
  padding: 16px 17px;
}

.metric::after {
  display: none;
}

.metric span,
.panel-head span,
.kpi-split span,
.opportunity-grid span,
.funnel-kpis span,
.mini-list span,
.bar-row span {
  color: #aeb9c8;
}

.metric strong {
  color: #fff8ed;
  font-size: clamp(24px, 2.4vw, 34px);
}

.metric-revenue {
  background:
    linear-gradient(135deg, rgba(215, 181, 109, 0.14), rgba(53, 224, 180, 0.06)),
    linear-gradient(180deg, rgba(21, 31, 49, 0.96), rgba(9, 14, 25, 0.96));
}

.metric-revenue strong {
  color: #f8e4a8;
  font-size: clamp(28px, 3vw, 42px);
}

.metric-revenue small {
  color: #d6c79b;
}

.dashboard-grid {
  gap: 16px;
}

.dashboard-panel {
  border-radius: 14px;
}

.panel-head h2 {
  color: #fff8ed;
}

.panel-head span {
  border: 1px solid rgba(53, 224, 180, 0.18);
  background: rgba(53, 224, 180, 0.08);
}

.bar-row,
.mini-list > div,
.kpi-split > div,
.opportunity-grid > div,
.funnel-kpis > div,
.crm-summary-grid div {
  border-color: rgba(83, 101, 123, 0.36);
  background: rgba(7, 11, 20, 0.64);
}

.funnel-studio-canvas-mode {
  gap: 12px;
}

.funnel-studio-panel {
  border-color: rgba(83, 101, 123, 0.44);
  background:
    linear-gradient(180deg, rgba(16, 24, 39, 0.94), rgba(7, 11, 20, 0.96));
  box-shadow: var(--shadow);
}

.funnel-panel-dock {
  border-color: rgba(83, 101, 123, 0.42);
  background: rgba(7, 11, 20, 0.8);
  backdrop-filter: blur(14px);
}

.funnel-panel-dock button {
  border-radius: 10px;
}

.funnel-panel-dock button.active {
  color: #07100e;
  background: linear-gradient(135deg, #35e0b4, #d7b56d);
}

.flow-canvas-scroll {
  border-color: rgba(83, 101, 123, 0.38);
  background:
    linear-gradient(rgba(255,255,255,0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.026) 1px, transparent 1px),
    linear-gradient(180deg, #080d17, #070b14);
  background-size: 86px 86px, 86px 86px, 100% 100%;
}

.flow-viewport-toolbar {
  border-color: rgba(83, 101, 123, 0.46);
  border-radius: 13px;
  background: rgba(5, 8, 15, 0.82);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.flow-viewport-toolbar button,
.flow-viewport-toolbar > span {
  border-radius: 9px;
}

.flow-viewport-toolbar .hand-tool.active {
  background: rgba(53, 224, 180, 0.14);
  color: #a7ffeb;
}

.flow-node {
  width: 264px;
  min-height: 170px;
  border-radius: 14px;
  border-color: rgba(83, 101, 123, 0.54);
  background:
    linear-gradient(180deg, rgba(22, 32, 50, 0.96), rgba(8, 13, 23, 0.98));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
  transform: none;
  transition: border-color .12s ease, box-shadow .12s ease, filter .12s ease;
}

.flow-node:hover,
.flow-node.selected,
.flow-node.connecting {
  border-color: rgba(53, 224, 180, 0.66);
  transform: none;
  box-shadow: 0 0 0 3px rgba(53, 224, 180, 0.09), 0 18px 36px rgba(0, 0, 0, 0.34);
}

.flow-node.moving {
  transform: none;
  filter: brightness(1.07);
}

.flow-node-copy strong,
.lead-name {
  color: #fff8ed;
}

.flow-node-copy small,
.flow-node-meta em {
  color: #aeb9c8;
}

.flow-node-visual {
  border-radius: 12px;
}

.node-art {
  background: linear-gradient(135deg, #f4efe1, #c2ccd8);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.32), 0 8px 18px rgba(0,0,0,.18);
}

.flow-port {
  width: 18px;
  height: 18px;
  border-color: rgba(215, 181, 109, 0.8);
  background: #0a101b;
  box-shadow: 0 0 0 4px rgba(215, 181, 109, 0.08);
}

.flow-port-in {
  border-color: rgba(174, 185, 200, 0.74);
  box-shadow: none;
}

.flow-node.role-traffic .flow-port-in {
  display: none !important;
}

.flow-port-out {
  cursor: crosshair;
}

.flow-port-out::before {
  inset: -18px -34px -18px -18px;
}

.port-label {
  left: 25px;
  color: #f7e7b7;
  border-color: rgba(215, 181, 109, 0.28);
  background: rgba(8, 13, 23, 0.88);
}

.flow-connect-button {
  border-color: rgba(215, 181, 109, 0.42);
  background: rgba(215, 181, 109, 0.1);
  color: #f7e7b7;
}

.flow-edge {
  stroke: rgba(96, 232, 216, 0.92);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: none;
  marker-end: url(#flow-arrow-head);
  filter: none;
  transition: none;
}

.flow-edge-glow {
  display: none;
}

.flow-arrows marker path {
  fill: #60e8d8;
}

.flow-edge-label rect {
  fill: rgba(7, 11, 20, 0.88);
  stroke: rgba(96, 232, 216, 0.28);
}

.flow-edge-label text {
  fill: #dffdfa;
  font-size: 10px;
}

.flow-connect-hint,
.connector-decision-menu {
  border-color: rgba(215, 181, 109, 0.42);
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(7, 11, 20, 0.98));
  box-shadow: 0 18px 42px rgba(0,0,0,.38);
}

.connector-decision-menu {
  width: min(360px, calc(100vw - 32px));
  border-radius: 14px;
}

.connector-role-grid button,
.connector-product-card,
.connector-format-grid button,
.structure-seed-card,
.product-seed-card,
.traffic-source-card {
  border-color: rgba(83, 101, 123, 0.38);
  background: rgba(8, 13, 23, 0.78);
  box-shadow: none;
}

.connector-role-grid button.active,
.connector-product-card.active,
.connector-format-grid button.active {
  border-color: rgba(53, 224, 180, 0.72);
  background: rgba(53, 224, 180, 0.1);
  box-shadow: inset 3px 0 0 var(--accent);
}

.front-bump-slot,
.order-bump-editor {
  border-color: rgba(103, 174, 247, 0.28);
  background: rgba(103, 174, 247, 0.06);
}

.front-bump-label span,
.order-bump-editor-head strong {
  color: #cde8ff;
}

.lead-filter-panel,
.config-save-bar {
  border-color: rgba(83, 101, 123, 0.42);
  background:
    linear-gradient(180deg, rgba(16, 24, 39, .92), rgba(8, 13, 23, .94));
  box-shadow: var(--shadow);
}

.board {
  grid-auto-columns: minmax(300px, 330px);
  gap: 12px;
}

.stage {
  min-height: 500px;
}

.stage-header {
  background: rgba(255, 248, 237, 0.025);
}

.lead-card,
.update-item,
.node {
  border-color: rgba(83, 101, 123, 0.42);
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(20, 30, 48, .96), rgba(8, 13, 23, .97));
  box-shadow: 0 12px 28px rgba(0,0,0,.24);
}

.lead-card:hover,
.update-item:hover,
.node:hover {
  transform: none;
  border-color: rgba(53, 224, 180, 0.42);
  box-shadow: 0 14px 32px rgba(0,0,0,.28);
}

.lead-last-purchase,
.lead-ascension-box,
.lead-call-box {
  border-color: rgba(83, 101, 123, 0.36);
  background: rgba(7, 11, 20, 0.58);
}

.product-tag.low,
.product-tag.low-ticket,
.product-tag.front,
.product-tag.webinar {
  border-color: rgba(53, 224, 180, .52);
  background: rgba(53, 224, 180, .12);
  color: #a7ffeb;
}

.product-tag.bump {
  border-color: rgba(103, 174, 247, .52);
  background: rgba(103, 174, 247, .12);
  color: #cde8ff;
}

.product-tag.upsell {
  border-color: rgba(154, 128, 255, .52);
  background: rgba(154, 128, 255, .13);
  color: #ddd6ff;
}

.product-tag.downsell {
  border-color: rgba(213, 166, 255, .52);
  background: rgba(213, 166, 255, .12);
  color: #efd7ff;
}

.product-tag.ascension,
.product-tag.premium,
.product-tag.main {
  border-color: rgba(215, 181, 109, .56);
  background: rgba(215, 181, 109, .12);
  color: #f7e7b7;
}

.config-grid {
  align-items: start;
}

.code-box {
  border-color: rgba(83, 101, 123, 0.36);
  background: #070b14;
  color: #d7deea;
}

.toast {
  border-color: rgba(53, 224, 180, 0.36);
  background: rgba(8, 13, 23, 0.96);
  color: #fff8ed;
}

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

@media (max-width: 1100px) {
  .app {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .metrics,
  .dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .app {
    display: block;
  }

  .sidebar {
    position: static;
    height: auto;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid rgba(83, 101, 123, 0.34);
  }

  .nav {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .topbar {
    grid-template-columns: 1fr;
  }

  .toolbar {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .main {
    padding: 16px 12px;
  }

  .metrics,
  .dashboard-metrics,
  .kpi-split,
  .opportunity-grid,
  .funnel-kpis {
    grid-template-columns: 1fr;
  }

  .title {
    font-size: 30px;
  }

  .button {
    width: 100%;
    justify-content: center;
  }

  .flow-viewport-toolbar {
    left: 10px;
    right: 10px;
    width: auto;
  }
}

.node-art {
  position: relative;
  width: 120px;
  height: 66px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.92), rgba(148, 163, 184, 0.76));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.36), 0 8px 18px rgba(0, 0, 0, 0.2);
}

.node-art i,
.node-art b,
.node-art em {
  position: absolute;
  display: block;
  border-radius: 999px;
  font-style: normal;
}

.node-page i,
.node-video i,
.node-mini-vsl i,
.node-webinar i,
.node-ticket i,
.node-launch-class i,
.node-quiz i {
  left: 16px;
  right: 16px;
  top: 14px;
  height: 8px;
  background: #1f2937;
}

.node-page b,
.node-ticket b,
.node-webinar b,
.node-launch-class b,
.node-quiz b {
  left: 18px;
  right: 18px;
  top: 28px;
  height: auto;
  color: #1f2937;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  text-align: center;
}

.node-page em,
.node-video em,
.node-mini-vsl em,
.node-webinar em,
.node-ticket em,
.node-launch-class em,
.node-quiz em {
  left: 28px;
  right: 28px;
  bottom: 10px;
  height: 12px;
  background: linear-gradient(90deg, #35e0b4, #5eb7ff);
  color: #07101b;
  font-size: 8px;
  font-weight: 950;
  line-height: 12px;
  text-align: center;
}

.node-video b,
.node-mini-vsl b {
  left: 52px;
  top: 25px;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid #1f2937;
  border-radius: 2px;
}

.node-mini-vsl {
  width: 106px;
}

.node-phone {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #25d366, #128c7e);
}

.node-phone i {
  position: static;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #075e54;
  font-size: 14px;
  font-weight: 950;
}

.node-phone b,
.node-phone em {
  display: none;
}

/* End-of-file visual guardrails */
.login-shell {
  background:
    linear-gradient(135deg, rgba(53, 224, 180, 0.09), transparent 32%),
    linear-gradient(225deg, rgba(215, 181, 109, 0.08), transparent 34%),
    linear-gradient(145deg, #070b14, #0b111d 52%, #080d17);
}

.party-3d-shell,
.premium-funnel-shell {
  background:
    linear-gradient(110deg, rgba(7, 11, 20, 0.98), rgba(16, 24, 39, 0.96) 48%, rgba(7, 11, 20, 0.98)),
    linear-gradient(180deg, rgba(53, 224, 180, 0.08), rgba(215, 181, 109, 0.05));
}

.connector-product-picker,
.flow-connect-hint,
.crm-funnel-summary,
.config-save-bar {
  background:
    linear-gradient(180deg, rgba(16, 24, 39, 0.95), rgba(7, 11, 20, 0.96));
}

.flow-node,
.lead-card,
.metric,
.dashboard-panel,
.config-card,
.stage {
  backdrop-filter: none;
}

/* Canvas connector polish: visual-only, card sizes preserved */
.flow-canvas-scroll {
  background-color: #05070b;
  background-image:
    radial-gradient(circle, rgba(148, 163, 184, 0.18) 1px, transparent 1.6px),
    radial-gradient(circle, rgba(148, 163, 184, 0.08) 1px, transparent 1.6px),
    linear-gradient(180deg, rgba(4, 7, 12, 0.98), rgba(6, 8, 13, 1));
  background-position: 0 0, 9px 9px, 0 0;
  background-size: 18px 18px, 18px 18px, 100% 100%;
}

.flow-canvas {
  background: transparent;
}

.flow-canvas::before {
  background:
    radial-gradient(circle at 48% 42%, rgba(53, 224, 180, 0.06), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 22%);
}

.flow-port {
  border-width: 2px;
  background: #070a10;
  box-shadow:
    0 0 0 3px rgba(5, 7, 11, 0.92),
    0 0 0 5px rgba(35, 211, 102, 0.08);
}

.flow-port-in {
  border-color: rgba(35, 211, 102, 0.74);
}

.flow-port-out {
  border-color: rgba(35, 211, 102, 0.84);
  background: #08120d;
}

.flow-node.live-connection-target,
.flow-node.connection-target {
  border-color: rgba(35, 211, 102, 0.7);
  box-shadow:
    0 0 0 3px rgba(35, 211, 102, 0.12),
    0 18px 36px rgba(0, 0, 0, 0.36);
}

.flow-edge {
  stroke: #23d366;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: none;
  marker-end: none;
  filter: drop-shadow(0 0 8px rgba(35, 211, 102, 0.2));
  transition: none;
}

.flow-edge-glow {
  display: block;
  stroke: rgba(35, 211, 102, 0.22);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-linejoin: round;
  marker-end: none;
  filter: blur(0.2px);
}

.flow-edge-preview .flow-edge,
.flow-edge-live .flow-edge {
  stroke: #8b5cf6;
  stroke-width: 2.4;
  stroke-dasharray: 8 7;
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.26));
}

.flow-edge-preview .flow-edge-glow,
.flow-edge-live .flow-edge-glow {
  stroke: rgba(139, 92, 246, 0.22);
  stroke-width: 9;
}

.flow-edge-label {
  opacity: 0;
  transition: opacity 0.12s ease;
}

.flow-edge-group:hover .flow-edge-label,
.flow-edge-group:focus-within .flow-edge-label {
  opacity: 1;
}

/* Canvas performance guardrails: no card size changes */
.flow-canvas-scroll {
  background-image:
    radial-gradient(circle, rgba(148, 163, 184, 0.16) 1px, transparent 1.5px),
    linear-gradient(180deg, rgba(4, 7, 12, 0.98), rgba(6, 8, 13, 1));
  background-position: 0 0, 0 0;
  background-size: 18px 18px, 100% 100%;
}

.flow-edge {
  filter: none;
}

.flow-edge-glow {
  stroke-width: 7;
  filter: none;
}

.flow-arrows.live-dragging .flow-edge-glow {
  display: none;
}

.flow-arrows.live-dragging .flow-edge {
  filter: none;
}

.flow-node.moving,
.flow-node.connector-source,
.flow-node.live-connection-target {
  will-change: left, top;
}

body.connector-dragging .flow-canvas::before,
.flow-canvas.panning::before {
  opacity: 0.55;
}

.ghost-flow-card {
  width: 100%;
  border: 1px solid rgba(83, 101, 123, 0.48);
  color: #edf3f9;
  cursor: pointer;
}

.ghost-flow-card:hover,
.ghost-flow-card:focus-visible {
  border-color: rgba(53, 224, 180, 0.72);
  background:
    linear-gradient(145deg, rgba(53, 224, 180, 0.12), rgba(255,255,255,0.035)),
    rgba(13, 18, 32, 0.9);
}

.canvas-add-card-menu {
  position: absolute;
  z-index: 80;
  width: min(430px, calc(100vw - 32px));
  max-height: min(620px, calc(100vh - 120px));
  overflow: auto;
  border: 1px solid rgba(83, 101, 123, 0.52);
  border-radius: 16px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(16, 24, 39, 0.98), rgba(6, 10, 19, 0.98));
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.42);
}

.canvas-add-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.canvas-add-head span,
.canvas-add-section > span {
  display: block;
  color: #8da2bb;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.canvas-add-head strong {
  display: block;
  margin-top: 3px;
  color: #fff8ed;
  font-size: 18px;
}

.canvas-add-head button {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(83, 101, 123, 0.44);
  border-radius: 9px;
  background: rgba(7, 11, 20, 0.82);
  color: #dbe7f3;
  font-size: 18px;
  line-height: 1;
}

.canvas-add-section {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.canvas-add-grid,
.canvas-add-list {
  display: grid;
  gap: 8px;
}

.canvas-add-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.canvas-add-grid.traffic {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.canvas-add-grid button,
.canvas-add-product {
  min-height: 52px;
  border: 1px solid rgba(83, 101, 123, 0.38);
  border-radius: 12px;
  padding: 10px;
  background: rgba(8, 13, 23, 0.82);
  color: #f8fafc;
  text-align: left;
  box-shadow: none;
}

.canvas-add-grid button:hover,
.canvas-add-product:hover {
  border-color: rgba(53, 224, 180, 0.6);
  background: rgba(53, 224, 180, 0.09);
}

.canvas-add-grid.traffic button {
  display: grid;
  place-items: center;
  gap: 6px;
  text-align: center;
}

.canvas-add-grid button b,
.canvas-add-grid button small,
.canvas-add-product strong,
.canvas-add-product small {
  display: block;
}

.canvas-add-grid button b,
.canvas-add-product strong {
  color: #fff8ed;
  font-size: 12px;
}

.canvas-add-grid button small,
.canvas-add-product small {
  margin-top: 3px;
  color: #9fb0c6;
  font-size: 10px;
  line-height: 1.3;
}

.canvas-add-product {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  column-gap: 9px;
}

.canvas-add-product span {
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #35e0b4, #d7b56d);
  color: #06100d;
  font-size: 11px;
  font-weight: 950;
}

/* Mobile responsiveness and perceived-speed fixes */
button,
[role="button"],
input,
select,
textarea,
.flow-port,
.ghost-flow-card,
.canvas-add-card-menu button,
.connector-decision-menu button {
  touch-action: manipulation;
}

.flow-canvas-scroll {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.canvas-add-card-menu,
.connector-decision-menu {
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 720px), (pointer: coarse) {
  body {
    background: #070b14;
  }

  body::before {
    display: none;
  }

  .main {
    padding: 14px 10px;
  }

  .topbar {
    gap: 10px;
    margin-bottom: 12px;
  }

  .title {
    font-size: 26px;
  }

  .lead {
    font-size: 13px;
  }

  .flow-canvas-scroll {
    min-height: 72dvh;
    background-image:
      radial-gradient(circle, rgba(148, 163, 184, 0.14) 1px, transparent 1.5px),
      linear-gradient(180deg, #05070b, #06080d);
  }

  .flow-canvas::before {
    display: none;
  }

  .empty-flow-board {
    width: min(100%, 360px);
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 72px 12px 24px;
  }

  .ghost-flow-arrow {
    display: none;
  }

  .ghost-flow-card {
    min-height: 92px;
  }

  .flow-viewport-toolbar {
    position: sticky;
    top: 8px;
    left: 8px;
    z-index: 90;
    max-width: calc(100vw - 28px);
    overflow-x: auto;
    gap: 4px;
    padding: 4px;
  }

  .flow-viewport-toolbar button,
  .flow-viewport-toolbar > span {
    min-width: 34px;
    min-height: 32px;
    font-size: 11px;
  }

  .flow-viewport-toolbar .hand-tool {
    min-width: 54px;
  }

  .flow-viewport-toolbar .hand-tool span {
    display: none;
  }

  .canvas-add-card-menu,
  .connector-decision-menu {
    position: fixed;
    left: 10px !important;
    right: 10px;
    top: auto !important;
    bottom: 12px;
    width: auto;
    max-height: min(76dvh, 620px);
    z-index: 120;
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 -18px 54px rgba(0, 0, 0, 0.5);
  }

  .canvas-add-grid,
  .canvas-add-grid.traffic,
  .connector-role-grid,
  .connector-format-grid {
    grid-template-columns: 1fr;
  }

  .canvas-add-grid.traffic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .canvas-add-grid button,
  .canvas-add-product,
  .connector-role-grid button,
  .connector-product-card,
  .connector-format-grid button {
    min-height: 48px;
    padding: 9px;
  }

  .flow-edge-glow {
    display: none;
  }

  .flow-node.moving,
  .flow-node.connector-source,
  .flow-node.live-connection-target {
    will-change: auto;
  }
}

/* UnniChat + WhatsApp actions */
.channel-mark {
  width: 22px;
  height: 22px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 22px;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0;
  color: #04100d;
}

.channel-mark.unnichat {
  background: linear-gradient(135deg, #7c5cff, #35e0b4);
  color: #f7fbff;
}

.channel-mark.whatsapp {
  background: linear-gradient(135deg, #25d366, #d7f26d);
}

.lead-actions {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
}

.unnichat-button,
.whatsapp-button {
  justify-content: center;
  gap: 7px;
  font-weight: 900;
}

.unnichat-button {
  border-color: rgba(124, 92, 255, 0.42);
  background: rgba(124, 92, 255, 0.12);
  color: #ede8ff;
  box-shadow: none;
}

.whatsapp-button {
  border-color: rgba(37, 211, 102, 0.4);
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.88), rgba(240, 219, 92, 0.88));
  color: #06100d;
  box-shadow: none;
}

.template-preview.compact-preview {
  white-space: pre-wrap;
}

.field:has([data-edit-config="messageProvider"]),
.field:has([data-edit-config="whatsappBusinessMessage"]) {
  display: none;
}

.api-status-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(73, 96, 125, 0.52);
  border-radius: 10px;
  background: rgba(7, 12, 23, 0.58);
}

.api-status-row div {
  display: grid;
  gap: 2px;
}

.api-status-row small {
  color: var(--muted);
  font-size: 11px;
}

.sync-template-button {
  width: 100%;
  justify-content: center;
}

.template-sync-card > p.muted {
  display: none;
}

.template-sync-card h3::after {
  content: "Lista sincronizada da API. Para criar ou alterar um template, use a UnniChat e sincronize aqui.";
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}

.synced-template-row {
  grid-template-columns: minmax(180px, 0.8fr) auto minmax(260px, 1fr);
}

.template-main,
.template-meta {
  display: grid;
  gap: 4px;
}

.template-main span {
  color: var(--muted);
  font-size: 11px;
  word-break: break-word;
}

.synced-template-row p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.quick-reply-list {
  display: grid;
  gap: 10px;
}

.quick-reply-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.34fr) minmax(260px, 1fr) auto;
  gap: 10px;
  align-items: stretch;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-2);
}

.quick-reply-row textarea {
  min-height: 86px;
  resize: vertical;
}

.message-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.message-subtabs button {
  min-height: 38px;
  border: 1px solid rgba(83, 101, 123, 0.42);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(8, 13, 24, 0.72);
  color: #c6d0df;
  font-weight: 900;
  cursor: pointer;
}

.message-subtabs button.active {
  border-color: rgba(53, 224, 180, 0.64);
  color: #06100d;
  background: linear-gradient(135deg, #45e4bc, #e6cc74);
}

.message-context-card {
  min-width: 0;
}

.message-context-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.message-context-grid div {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid rgba(83, 101, 123, 0.36);
  border-radius: 10px;
  padding: 10px;
  background: rgba(5, 9, 17, 0.46);
}

.message-context-grid span,
.message-preview-stack span,
.message-token-row span {
  color: #8fe8d0;
  font-size: 11px;
  font-weight: 950;
}

.message-context-grid strong {
  min-width: 0;
  overflow: hidden;
  color: #fff8ed;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-preview-stack {
  display: grid;
  gap: 10px;
}

.message-preview-stack div {
  border: 1px solid rgba(83, 101, 123, 0.4);
  border-radius: 12px;
  padding: 12px;
  background: rgba(5, 9, 17, 0.54);
}

.message-preview-stack p {
  margin: 6px 0 0;
  color: #e5edf7;
  line-height: 1.5;
  white-space: pre-wrap;
}

.message-token-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0 0 12px;
}

.message-token-row span {
  border: 1px solid rgba(53, 224, 180, 0.24);
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(53, 224, 180, 0.08);
}

.seller-access-summary {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(53, 224, 180, 0.26);
  border-radius: 12px;
  padding: 11px;
  background: linear-gradient(135deg, rgba(53, 224, 180, 0.1), rgba(94, 183, 255, 0.06));
}

.seller-access-summary strong {
  color: #fff8ed;
}

.seller-access-summary span {
  color: #bcd2e8;
  font-size: 12px;
  line-height: 1.45;
}

.dashboard-personal-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid rgba(94, 183, 255, 0.22);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(94, 183, 255, 0.12), rgba(53, 224, 180, 0.07)),
    rgba(9, 14, 24, 0.82);
}

.dashboard-personal-banner span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.dashboard-personal-banner strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 22px;
}

.dashboard-personal-banner p {
  margin: 5px 0 0;
  color: var(--muted);
}

.leader-team-box {
  margin-top: 12px;
}

.integration-health-card {
  margin: 14px 0;
}

.integration-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.integration-status-card {
  display: grid;
  gap: 7px;
  min-width: 0;
  border: 1px solid rgba(83, 101, 123, 0.36);
  border-radius: 12px;
  padding: 11px;
  background: rgba(5, 9, 17, 0.46);
}

.integration-status-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.integration-status-card strong,
.integration-status-card p,
.integration-status-card small {
  min-width: 0;
}

.integration-status-card strong {
  overflow: hidden;
  color: #f8fafc;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.integration-status-card p {
  margin: 0;
  color: #aebdd0;
  font-size: 12px;
  line-height: 1.35;
}

.integration-status-card small {
  color: #8fa0b5;
  font-size: 11px;
}

.messages-grid {
  align-items: start;
  margin-top: 14px;
}

.external-api-list {
  display: grid;
  gap: 10px;
}

.external-api-row {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(83, 101, 123, 0.34);
  border-radius: 12px;
  padding: 10px;
  background: rgba(5, 9, 17, 0.46);
}

.external-api-row label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.external-api-row label span {
  color: #aebdd0;
  font-size: 11px;
  font-weight: 850;
}

.external-api-top,
.external-api-bottom {
  display: grid;
  gap: 8px;
  align-items: end;
}

.external-api-top {
  grid-template-columns: minmax(120px, 0.8fr) minmax(160px, 1fr) auto;
}

.external-api-bottom {
  grid-template-columns: minmax(120px, 0.8fr) minmax(110px, 0.55fr) minmax(140px, 0.75fr);
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.import-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(10px);
}

.import-modal {
  width: min(560px, 100%);
  border: 1px solid rgba(83, 101, 123, 0.62);
  border-radius: 18px;
  padding: 24px;
  background:
    radial-gradient(circle at 15% 0%, rgba(53, 224, 180, 0.16), transparent 38%),
    linear-gradient(180deg, rgba(17, 25, 42, 0.98), rgba(6, 10, 18, 0.98));
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

.import-modal > span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.import-modal h2 {
  margin: 8px 0;
  font-size: 24px;
}

.import-modal p {
  margin: 0 0 16px;
  color: #c2ccdb;
  line-height: 1.5;
}

.import-loading-card {
  text-align: center;
}

.loading-orbit {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border: 1px solid rgba(53, 224, 180, 0.24);
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: importSpin 0.9s linear infinite;
  box-shadow: 0 0 28px rgba(53, 224, 180, 0.18);
}

.import-progress-line {
  height: 8px;
  margin: 16px 0 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(8, 13, 24, 0.82);
}

.import-progress-line i {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #e6cc74);
  animation: importProgress 1.1s ease-in-out infinite;
}

.import-result-mark {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 14px;
  color: #06100d;
  background: linear-gradient(135deg, #45e4bc, #e6cc74);
  font-size: 14px;
  font-weight: 950;
}

.import-result-mark.warning {
  color: #171009;
  background: linear-gradient(135deg, #ffd166, #ff9f68);
}

.import-result-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.import-result-grid div,
.import-result-status {
  border: 1px solid rgba(83, 101, 123, 0.45);
  border-radius: 12px;
  padding: 12px;
  background: rgba(8, 13, 24, 0.72);
}

.import-result-grid small,
.import-result-status small {
  display: block;
  color: #aeb9c8;
  font-size: 11px;
}

.import-result-grid strong {
  display: block;
  margin-top: 4px;
  color: #fff8ed;
  font-size: 24px;
}

.import-result-status {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.import-result-status span {
  color: #fff8ed;
  font-weight: 900;
}

.import-result-errors {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.import-result-errors p {
  margin: 0;
  color: #ffd1d1;
  font-size: 12px;
}

@keyframes importSpin {
  to { transform: rotate(360deg); }
}

@keyframes importProgress {
  0% { transform: translateX(-110%); }
  55% { transform: translateX(85%); }
  100% { transform: translateX(240%); }
}

@media (max-width: 980px) {
  .integration-status-grid,
  .external-api-top,
  .external-api-bottom {
    grid-template-columns: 1fr;
  }

  .message-context-grid {
    grid-template-columns: 1fr 1fr;
  }

  .panel-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .lead-actions {
    grid-template-columns: 1fr 1fr;
  }

  .lead-actions .message-toggle {
    grid-column: 1 / -1;
  }

  .synced-template-row,
  .quick-reply-row {
    grid-template-columns: 1fr;
  }

  .message-context-grid {
    grid-template-columns: 1fr;
  }

  .import-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-personal-banner {
    grid-template-columns: 1fr;
  }
}

/* CRM move reliability polish */
.crm-board .lead-card {
  contain: layout paint;
}

.crm-board .lead-card,
.crm-board .lead-card * {
  max-width: 100%;
}

.crm-board .lead-card-head,
.crm-board .lead-clean-summary,
.crm-board .lead-summary-item,
.crm-board .lead-actions,
.crm-board .move-panel {
  min-width: 0;
}

.crm-board .lead-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.crm-board .lead-actions .button {
  min-width: 0;
  width: 100%;
}

.crm-board .lead-actions .button,
.crm-board .crm-move-chip {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crm-move-panel {
  border-radius: 12px;
  padding: 10px;
  background: rgba(5, 9, 17, 0.5);
  border: 1px solid rgba(53, 224, 180, 0.14);
}

.crm-move-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.crm-move-chip {
  width: 100%;
  min-height: 34px;
  border: 1px solid rgba(83, 101, 123, 0.58);
  border-radius: 10px;
  background: rgba(9, 14, 25, 0.92);
  color: #dbe7f3;
  padding: 0 9px;
  font-size: 10px;
  font-weight: 900;
}

.crm-move-chip.active {
  border-color: rgba(53, 224, 180, 0.72);
  background: rgba(53, 224, 180, 0.16);
  color: #c9fff0;
}

.load-more-stage {
  width: 100%;
  min-height: 42px;
  border: 1px dashed rgba(94, 183, 255, 0.36);
  border-radius: 12px;
  background: rgba(94, 183, 255, 0.08);
  color: #dbeafe;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.load-more-stage span {
  display: block;
  margin-top: 2px;
  color: #9fb0c6;
  font-size: 10px;
  font-weight: 800;
}

.load-more-stage:hover {
  border-color: rgba(53, 224, 180, 0.56);
  background: rgba(53, 224, 180, 0.1);
}

.crm-board .drag-handle {
  min-width: 58px;
}

@media (max-width: 1280px) {
  .crm-move-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.crm-board .lead-products-popover {
  position: static;
  inset: auto;
  width: 100%;
  max-height: 220px;
  margin-top: 8px;
  overflow: auto;
  box-shadow: none;
}

/* Clean commercial lead cards */
.lead-card {
  gap: 9px;
  padding: 12px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(19, 29, 46, 0.94), rgba(9, 14, 25, 0.96));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  min-width: 0;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}

.lead-card:active {
  cursor: grabbing;
}

.lead-card:hover {
  border-color: rgba(53, 224, 180, 0.32);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
}

.lead-card-head {
  align-items: center;
  min-width: 0;
}

.lead-name {
  max-width: 190px;
  color: #f8fafc;
  font-size: 14px;
  letter-spacing: 0;
}

.lead-meta {
  max-width: 200px;
  color: #9aa8ba;
  font-size: 11px;
}

.lead-card-badges {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  flex-wrap: wrap;
  max-width: 132px;
  min-width: 0;
}

.lead-card-badges .tag-count {
  display: none;
}

.drag-handle {
  min-height: 26px;
  padding: 0 9px;
  border-color: rgba(94, 183, 255, 0.28);
  background: rgba(94, 183, 255, 0.09);
  color: #b8d8f5;
  font-size: 9px;
  cursor: grab;
  touch-action: none;
}

.drag-handle:active {
  cursor: grabbing;
}

.owl-badge,
.recovery-badge {
  padding: 4px 7px;
  font-size: 9px;
}

.lead-clean-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  border-top: 1px solid rgba(83, 101, 123, 0.36);
  padding-top: 8px;
}

.lead-summary-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 8px;
  align-items: center;
  min-width: 0;
}

.lead-summary-item span {
  grid-column: 1 / -1;
  color: #8f9db0;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.lead-summary-item strong {
  min-width: 0;
  overflow: hidden;
  color: #f3f7fb;
  font-size: 12px;
  line-height: 1.22;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-summary-item small {
  border-radius: 999px;
  padding: 2px 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.lead-summary-item.next {
  margin-top: 1px;
  border-radius: 10px;
  padding: 7px 8px;
  background: rgba(53, 224, 180, 0.07);
}

.lead-summary-item.next span {
  color: #8adfca;
}

.lead-summary-item.next strong {
  color: #eafef8;
}

.lead-products-compact {
  position: relative;
}

.lead-products-compact .product-tags {
  margin-top: 6px;
}

.lead-products-compact .product-tags:not(.expanded) {
  display: none;
}

.lead-products-compact .product-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  margin: 0;
  border: 1px solid rgba(53, 224, 180, 0.24);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(53, 224, 180, 0.08);
  color: #b8fff0;
  font-size: 11px;
  line-height: 1;
}

.lead-products-compact .product-toggle:hover {
  border-color: rgba(53, 224, 180, 0.42);
  background: rgba(53, 224, 180, 0.13);
}

.lead-products-compact .lead-products-popover {
  margin-top: 8px;
}

.lead-ascension-compact {
  display: grid;
  gap: 3px;
  border: 1px solid rgba(53, 224, 180, 0.2);
  border-left: 3px solid rgba(53, 224, 180, 0.74);
  border-radius: 10px;
  padding: 8px 9px;
  background: rgba(53, 224, 180, 0.055);
}

.lead-ascension-compact span {
  color: #8adfca;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.lead-ascension-compact strong {
  overflow: hidden;
  color: #f3f7fb;
  font-size: 12px;
  line-height: 1.24;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-ascension-compact small {
  display: -webkit-box;
  overflow: hidden;
  color: #aab8c9;
  font-size: 10px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.lead-call-box {
  gap: 5px;
  border-color: rgba(83, 101, 123, 0.32);
  border-radius: 10px;
  padding: 7px;
  background: rgba(5, 9, 17, 0.42);
}

.lead-call-status strong {
  color: #e5edf7;
  font-size: 10px;
  text-transform: uppercase;
}

.lead-call-status span {
  font-size: 10px;
}

.lead-call-controls {
  grid-template-columns: minmax(64px, 0.9fr) minmax(58px, 0.7fr) minmax(72px, 0.9fr);
}

.call-action,
.call-done-toggle,
.call-goal-field {
  min-height: 28px;
  border-radius: 8px;
  font-size: 9px;
}

.call-action {
  background: linear-gradient(135deg, rgba(53, 224, 180, 0.86), rgba(227, 207, 102, 0.86));
}

.lead-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.lead-actions .button.compact {
  width: 100%;
  min-width: 0;
  min-height: 31px;
  border-radius: 9px;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-actions .message-toggle,
.lead-actions [data-edit-lead-replies],
.lead-actions .objection-button {
  grid-column: auto;
}

.unnichat-button {
  background: rgba(124, 92, 255, 0.1);
}

.whatsapp-button {
  border-color: rgba(37, 211, 102, 0.34);
  background: rgba(37, 211, 102, 0.13);
  color: #c9ffdc;
}

.lead-card .channel-mark {
  width: 20px;
  height: 20px;
  font-size: 8px;
}

.lead-last-purchase,
.lead-card > .lead-card-line,
.lead-card > .lead-ascension-box {
  display: none;
}

.crm-summary-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.crm-stage-contact .stage-header {
  border-bottom-color: rgba(94, 183, 255, 0.22);
}

.crm-stage-done .stage-header {
  border-bottom-color: rgba(53, 224, 180, 0.22);
}

.crm-status-badge {
  border: 1px solid rgba(129, 145, 168, 0.24);
  border-radius: 999px;
  padding: 4px 7px;
  color: #dbe7f3;
  background: rgba(129, 145, 168, 0.12);
  font-size: 9px;
  font-weight: 950;
  white-space: nowrap;
}

.crm-status-badge.contact {
  border-color: rgba(94, 183, 255, 0.35);
  color: #cde8ff;
  background: rgba(94, 183, 255, 0.12);
}

.crm-status-badge.converted {
  border-color: rgba(53, 224, 180, 0.35);
  color: #bbfff0;
  background: rgba(53, 224, 180, 0.12);
}

.objection-button {
  grid-column: 1 / -1;
  min-height: 28px !important;
}

.objection-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(2, 6, 23, 0.74);
  backdrop-filter: blur(10px);
}

.objection-modal {
  width: min(760px, 100%);
  max-height: min(760px, 92vh);
  overflow: auto;
  border: 1px solid rgba(83, 101, 123, 0.62);
  border-radius: 18px;
  padding: 18px;
  background:
    radial-gradient(circle at 14% 0%, rgba(53, 224, 180, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(17, 25, 42, 0.98), rgba(6, 10, 18, 0.98));
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.58);
}

.objection-modal-head,
.objection-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.objection-modal-head span {
  color: #35e0b4;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.objection-modal-head h2 {
  margin: 4px 0;
  color: #fff8ed;
  font-size: 24px;
}

.objection-modal-head p {
  margin: 0;
  color: #aeb9c8;
}

.objection-modal .icon-button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(129, 145, 168, 0.28);
  border-radius: 10px;
  color: #dbe7f3;
  background: rgba(5, 8, 16, 0.72);
  font-size: 22px;
  line-height: 1;
}

.crm-column-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 145;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(2, 6, 23, 0.74);
  backdrop-filter: blur(10px);
}

.crm-column-modal {
  width: min(520px, 100%);
  border: 1px solid rgba(83, 101, 123, 0.62);
  border-radius: 18px;
  padding: 18px;
  background:
    radial-gradient(circle at 14% 0%, rgba(53, 224, 180, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(17, 25, 42, 0.98), rgba(6, 10, 18, 0.98));
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.58);
}

.crm-column-modal-head,
.crm-column-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.crm-column-modal-head span,
.crm-column-field span {
  display: block;
  color: #35e0b4;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.crm-column-modal-head h2 {
  margin: 4px 0;
  color: #fff8ed;
  font-size: 22px;
}

.crm-column-modal-head p {
  margin: 0;
  color: #aeb9c8;
}

.crm-column-modal .icon-button {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(129, 145, 168, 0.28);
  border-radius: 10px;
  color: #dbe7f3;
  background: rgba(5, 8, 16, 0.72);
  font-size: 22px;
  line-height: 1;
}

.crm-column-field {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.crm-column-field input {
  min-height: 44px;
  border: 1px solid rgba(129, 145, 168, 0.32);
  border-radius: 10px;
  padding: 10px 12px;
  color: #f8fafc;
  background: rgba(5, 8, 16, 0.78);
}

.crm-column-actions {
  margin-top: 16px;
}

.objection-context-grid,
.objection-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.objection-context-grid div,
.objection-form-grid label,
.objection-history {
  border: 1px solid rgba(83, 101, 123, 0.38);
  border-radius: 12px;
  padding: 11px;
  background: rgba(5, 8, 16, 0.58);
}

.objection-context-grid span,
.objection-form-grid span,
.objection-history > strong {
  display: block;
  color: #9fb0c6;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.objection-context-grid strong {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: #fff8ed;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.objection-context-grid small {
  display: block;
  margin-top: 5px;
  color: #f7e7b7;
  font-size: 11px;
  font-weight: 850;
}

.objection-form-grid .wide {
  grid-column: 1 / -1;
}

.objection-form-grid select,
.objection-form-grid input,
.objection-form-grid textarea,
.objection-context-grid select {
  width: 100%;
  min-height: 42px;
  margin-top: 7px;
  border: 1px solid rgba(129, 145, 168, 0.34);
  border-radius: 10px;
  padding: 9px 10px;
  color: var(--ink);
  background: rgba(5, 8, 16, 0.82);
}

.objection-form-grid textarea {
  min-height: 112px;
  resize: vertical;
}

.objection-history {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.objection-history-item {
  border-top: 1px solid rgba(83, 101, 123, 0.32);
  padding-top: 8px;
}

.objection-history-item span,
.objection-history-item small {
  color: #9fb0c6;
  font-size: 11px;
  font-weight: 850;
}

.objection-history-item p {
  margin: 4px 0;
  color: #e5edf7;
  font-size: 13px;
  line-height: 1.45;
}

.objection-actions {
  align-items: center;
  justify-content: flex-end;
  margin-top: 14px;
}

.sequence-action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.sequence-action-row label {
  min-width: 0;
}

.sequence-action-row .button {
  min-width: 210px;
  min-height: 42px;
}

.sequence-card-actions {
  justify-content: flex-start;
}

.sequence-card-actions .button {
  min-width: 104px;
}

@media (max-width: 760px) {
  .crm-summary-grid,
  .objection-context-grid,
  .objection-form-grid,
  .sequence-action-row {
    grid-template-columns: 1fr;
  }

  .sequence-action-row .button {
    width: 100%;
    min-width: 0;
  }

  .crm-column-quick-action {
    align-items: stretch;
    flex-direction: column;
  }

  .crm-column-quick-action .button {
    width: 100%;
  }

  .lead-selection-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .lead-selection-actions,
  .lead-selection-actions .button,
  .bulk-tag-input,
  .bulk-template-select {
    width: 100%;
  }

  .lead-name,
  .lead-meta {
    max-width: none;
  }

  .lead-card-head {
    align-items: flex-start;
  }

  .lead-card-badges {
    flex-direction: column;
    align-items: flex-end;
  }
}

/* Webinar funnel */
.webinar-page {
  display: grid;
  gap: 16px;
}

.webinar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
  gap: 16px;
  align-items: start;
}

.webinar-panel,
.webinar-table-panel {
  border: 1px solid rgba(83, 101, 123, 0.42);
  background:
    linear-gradient(180deg, rgba(16, 24, 39, 0.95), rgba(7, 11, 20, 0.96));
}

.webinar-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.webinar-field select,
.webinar-form-grid input,
.webinar-form-grid textarea,
.webinar-import-box {
  min-height: 44px;
}

.webinar-form-grid .wide {
  grid-column: 1 / -1;
}

.webinar-form-grid textarea,
.webinar-import-box {
  resize: vertical;
  min-height: 112px;
}

.webinar-preview-score {
  display: grid;
  place-items: center;
  min-width: 96px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  padding: 10px 12px;
  background: rgba(7, 11, 20, 0.68);
}

.webinar-preview-score b {
  color: #fff8ed;
  font-size: 24px;
  line-height: 1;
}

.webinar-preview-score small {
  color: #aeb9c8;
  font-weight: 800;
}

.webinar-preview-score.hot,
.webinar-profile.hot {
  border-color: rgba(255, 209, 102, 0.5);
  color: #ffe9a6;
  background: rgba(255, 209, 102, 0.12);
}

.webinar-preview-score.warm,
.webinar-profile.warm {
  border-color: rgba(94, 183, 255, 0.48);
  color: #bde2ff;
  background: rgba(94, 183, 255, 0.12);
}

.webinar-preview-score.grow,
.webinar-profile.grow {
  border-color: rgba(53, 224, 180, 0.46);
  color: #a7ffeb;
  background: rgba(53, 224, 180, 0.1);
}

.webinar-preview-score.start,
.webinar-profile.start {
  border-color: rgba(170, 182, 200, 0.34);
  color: #d4dce8;
  background: rgba(170, 182, 200, 0.08);
}

.webinar-import-box {
  width: 100%;
  margin-top: 12px;
  border: 1px solid rgba(83, 101, 123, 0.52);
  border-radius: 14px;
  padding: 14px;
  background: rgba(5, 8, 15, 0.82);
  color: #fff8ed;
  font: inherit;
}

.webinar-action-grid,
.webinar-filter-row {
  display: grid;
  gap: 10px;
}

.webinar-action-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}

.webinar-filter-row {
  grid-template-columns: minmax(260px, 1.4fr) minmax(150px, 0.7fr) minmax(170px, 0.8fr) minmax(120px, 0.55fr) auto;
  align-items: end;
  margin-bottom: 14px;
}

.webinar-lead-list {
  display: grid;
  gap: 8px;
}

.webinar-lead-row {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) 140px minmax(220px, 1fr) 170px;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(83, 101, 123, 0.36);
  border-radius: 14px;
  padding: 13px 14px;
  background: rgba(5, 8, 15, 0.58);
}

.webinar-lead-row strong,
.webinar-lead-row span,
.webinar-lead-row small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.webinar-lead-row > div:first-child span,
.webinar-lead-row small,
.webinar-lead-row time {
  color: #aeb9c8;
}

.webinar-score {
  display: flex;
  align-items: center;
  gap: 8px;
}

.webinar-score b {
  color: #fff8ed;
  font-size: 22px;
}

.webinar-profile {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 900;
}

.webinar-empty {
  border: 1px dashed rgba(83, 101, 123, 0.52);
  border-radius: 16px;
  padding: 30px;
  color: #aeb9c8;
  text-align: center;
  background: rgba(5, 8, 15, 0.42);
}

@media (max-width: 1180px) {
  .webinar-layout,
  .webinar-filter-row,
  .webinar-lead-row {
    grid-template-columns: 1fr;
  }

  .webinar-action-grid,
  .webinar-form-grid {
    grid-template-columns: 1fr;
  }

  .webinar-form-grid .wide {
    grid-column: auto;
  }
}

/* Quiz Ímã de Vendas: dashboard administrativo */
.webinar-admin-page {
  gap: 18px;
}

.webinar-admin-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(53, 224, 180, 0.28);
  border-left: 4px solid #35e0b4;
  padding: 20px 22px;
  background: #0c1523;
}

.webinar-admin-hero > div:first-child {
  display: grid;
  gap: 5px;
}

.webinar-admin-hero span,
.webinar-panel .panel-head > div > span,
.webinar-tools-disclosure summary span {
  color: #6ee7c8;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.webinar-admin-hero h2,
.webinar-panel .panel-head h2 {
  margin: 0;
  color: #fff8ed;
}

.webinar-admin-hero p,
.webinar-panel .panel-head p {
  margin: 0;
  color: #aeb9c8;
  line-height: 1.45;
}

.webinar-link-actions,
.webinar-panel .panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.webinar-link-actions .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.webinar-admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.55fr);
  gap: 16px;
  align-items: start;
}

.webinar-overview-panel,
.webinar-integration-panel,
.webinar-mql-panel {
  padding: 18px;
}

.webinar-question-grid,
.webinar-mql-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
  border-top: 1px solid rgba(83, 101, 123, 0.34);
}

.webinar-question-summary,
.webinar-mql-question {
  border-bottom: 1px solid rgba(83, 101, 123, 0.34);
}

.webinar-question-summary summary,
.webinar-mql-question summary,
.webinar-tools-disclosure > summary {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 62px;
  cursor: pointer;
  list-style: none;
}

.webinar-question-summary summary::-webkit-details-marker,
.webinar-mql-question summary::-webkit-details-marker,
.webinar-tools-disclosure > summary::-webkit-details-marker {
  display: none;
}

.webinar-question-summary summary > span,
.webinar-mql-question summary > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border: 1px solid rgba(94, 183, 255, 0.3);
  border-radius: 9px;
  color: #bde2ff;
  background: rgba(94, 183, 255, 0.08);
  font-size: 11px;
  font-weight: 900;
}

.webinar-question-summary summary > div,
.webinar-mql-question summary > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.webinar-question-summary summary strong,
.webinar-mql-question summary strong {
  color: #fff8ed;
  font-size: 14px;
}

.webinar-question-summary summary small,
.webinar-mql-question summary small {
  color: #8e9caf;
  font-size: 11px;
}

.webinar-answer-bars {
  display: grid;
  gap: 11px;
  padding: 2px 0 16px 43px;
}

.webinar-answer-row {
  display: grid;
  gap: 6px;
}

.webinar-answer-row > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #c8d1df;
  font-size: 12px;
}

.webinar-answer-row > div span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.webinar-answer-row i {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
}

.webinar-answer-row em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #35e0b4, #5eb7ff);
}

.integration-state {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 900;
}

.integration-state.ok {
  border-color: rgba(53, 224, 180, 0.4);
  color: #a7ffeb;
  background: rgba(53, 224, 180, 0.1);
}

.integration-state.pending {
  color: #ffdca1;
  background: rgba(255, 209, 102, 0.08);
}

.webinar-integration-panel {
  display: grid;
  gap: 14px;
}

.webinar-filter-row.clean {
  grid-template-columns: minmax(240px, 1.4fr) minmax(145px, 0.65fr) minmax(145px, 0.65fr) minmax(120px, 0.5fr) auto;
}

.webinar-lead-row time small {
  display: block;
  margin-top: 3px;
  font-size: 10px;
}

.webinar-mql-head {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 0.35fr);
  gap: 12px;
  margin: 15px 0;
}

.webinar-mql-options {
  display: grid;
  gap: 7px;
  padding: 0 0 16px 43px;
}

.webinar-mql-option {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 9px;
  color: #c8d1df;
  font-size: 12px;
  line-height: 1.35;
  cursor: pointer;
}

.webinar-mql-option input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #35e0b4;
}

.webinar-mql-panel > .panel-actions {
  margin-top: 16px;
}

.webinar-tools-disclosure {
  padding: 0 18px 18px;
}

.webinar-tools-disclosure > summary {
  justify-content: space-between;
}

.webinar-tools-disclosure > summary > div {
  display: grid;
  gap: 2px;
}

.webinar-tools-disclosure > summary strong,
.webinar-tools-disclosure h3 {
  color: #fff8ed;
}

.webinar-tools-disclosure > summary small {
  color: #8e9caf;
}

.webinar-tools-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-top: 12px;
  border-top: 1px solid rgba(83, 101, 123, 0.34);
}

.webinar-tools-grid section {
  min-width: 0;
}

.webinar-form-grid.compact {
  grid-template-columns: 1fr;
}

@media (max-width: 1080px) {
  .webinar-admin-grid,
  .webinar-question-grid,
  .webinar-mql-list {
    grid-template-columns: 1fr;
  }

  .webinar-filter-row.clean,
  .webinar-mql-head {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .webinar-admin-hero {
    align-items: stretch;
    flex-direction: column;
    padding: 17px;
  }

  .webinar-link-actions .button {
    flex: 1 1 150px;
  }

  .webinar-filter-row.clean,
  .webinar-mql-head,
  .webinar-tools-grid {
    grid-template-columns: 1fr;
  }

  .webinar-answer-bars,
  .webinar-mql-options {
    padding-left: 0;
  }

  .webinar-overview-panel,
  .webinar-integration-panel,
  .webinar-mql-panel {
    padding: 14px;
  }
}

/* Painel operacional de leads do quiz */
.webinar-journey-panel {
  padding: 18px;
}

.webinar-journey {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 34px minmax(130px, 1fr) 34px minmax(130px, 1fr) 34px minmax(130px, 1fr);
  align-items: center;
  margin-top: 16px;
}

.webinar-journey-step {
  display: grid;
  gap: 3px;
  min-height: 78px;
  border: 1px solid rgba(83, 101, 123, 0.42);
  border-radius: 10px;
  padding: 14px 16px;
  color: #c8d1df;
  text-align: left;
  background: rgba(5, 8, 15, 0.42);
  cursor: pointer;
}

.webinar-journey-step:hover,
.webinar-journey-step:focus-visible {
  border-color: rgba(94, 183, 255, 0.72);
  outline: none;
  background: rgba(94, 183, 255, 0.09);
}

.webinar-journey-step b {
  color: #fff8ed;
  font-size: 22px;
  line-height: 1;
}

.webinar-journey-step span {
  color: #aeb9c8;
  font-size: 12px;
  font-weight: 800;
}

.webinar-journey-step.accent {
  border-color: rgba(255, 209, 102, 0.42);
}

.webinar-journey-step.success {
  border-color: rgba(53, 224, 180, 0.4);
}

.webinar-journey > i {
  position: relative;
  display: block;
  height: 1px;
  margin: 0 7px;
  background: rgba(83, 101, 123, 0.52);
}

.webinar-journey > i::after {
  position: absolute;
  top: -3px;
  right: 0;
  width: 7px;
  height: 7px;
  border-top: 1px solid #8e9caf;
  border-right: 1px solid #8e9caf;
  content: "";
  transform: rotate(45deg);
}

.webinar-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  gap: 16px;
}

.webinar-priority-panel,
.webinar-status-panel {
  padding: 18px;
}

.webinar-priority-list {
  display: grid;
  margin-top: 14px;
  border-top: 1px solid rgba(83, 101, 123, 0.32);
}

.webinar-priority-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 1fr) 58px;
  gap: 14px;
  align-items: center;
  padding: 11px 2px;
  border-bottom: 1px solid rgba(83, 101, 123, 0.28);
}

.webinar-priority-row > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.webinar-priority-row strong {
  overflow: hidden;
  color: #fff8ed;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.webinar-priority-row span,
.webinar-priority-row small {
  overflow: hidden;
  color: #aeb9c8;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.webinar-priority-row b {
  justify-self: end;
  color: #ffe9a6;
}

.webinar-status-panel {
  display: grid;
  align-content: start;
  gap: 8px;
  border-left: 3px solid #35e0b4;
}

.webinar-status-panel > span:first-child {
  color: #6ee7c8;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.webinar-status-panel > strong {
  color: #fff8ed;
  font-size: 18px;
}

.webinar-status-panel p {
  margin: 0;
  color: #aeb9c8;
  line-height: 1.45;
}

.webinar-status-panel > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 5px;
}

.webinar-status-panel a {
  color: #bde2ff;
  font-size: 12px;
  font-weight: 800;
}

.webinar-lead-row {
  grid-template-columns: minmax(270px, 1.35fr) minmax(125px, 0.48fr) minmax(175px, 0.78fr) 132px;
  border-radius: 9px;
  padding: 12px 14px;
}

.webinar-lead-row:hover {
  border-color: rgba(94, 183, 255, 0.44);
  background: rgba(14, 27, 45, 0.76);
}

.webinar-lead-identity {
  display: grid;
  gap: 3px;
}

.webinar-lead-identity strong {
  color: #fff8ed;
}

.webinar-lead-identity small {
  color: #75859a;
  font-size: 11px;
}

.webinar-lead-identity .webinar-lead-utm {
  overflow: hidden;
  color: #9a86df;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.webinar-lead-purchase {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.webinar-lead-purchase .pill {
  justify-self: start;
}

.webinar-lead-purchase .pill.orange {
  border-color: rgba(255, 209, 102, 0.36);
  color: #ffe9a6;
  background: rgba(255, 209, 102, 0.1);
}

.webinar-disclosure {
  padding: 0 18px 18px;
}

.webinar-disclosure > summary,
.webinar-mql-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  cursor: pointer;
  list-style: none;
}

.webinar-disclosure > summary::-webkit-details-marker,
.webinar-mql-disclosure > summary::-webkit-details-marker {
  display: none;
}

.webinar-disclosure summary > div {
  display: grid;
  gap: 2px;
}

.webinar-disclosure summary strong,
.webinar-mql-disclosure > summary {
  color: #fff8ed;
}

.webinar-disclosure summary small {
  color: #8e9caf;
}

.webinar-integration-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(83, 101, 123, 0.32);
}

.webinar-integration-form .wide {
  grid-column: 1 / -1;
}

.webinar-disclosure > .muted {
  margin: 12px 0 0;
}

.webinar-mql-disclosure {
  display: grid;
  border: 1px solid rgba(83, 101, 123, 0.42);
  border-radius: 10px;
  background: rgba(5, 8, 15, 0.25);
}

.webinar-mql-disclosure > summary {
  padding: 0 18px;
  font-weight: 800;
}

.webinar-mql-disclosure .webinar-mql-panel {
  border: 0;
}

.webinar-filter-console {
  padding: 18px;
  border-color: rgba(115, 140, 183, 0.42);
  background: #172238;
}

.webinar-filter-console .panel-head {
  align-items: flex-start;
}

.webinar-filter-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.webinar-dashboard-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 17px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.webinar-dashboard-filters .field {
  min-width: 0;
  min-height: 76px;
  padding: 8px 12px;
  border: 1px solid rgba(123, 144, 181, 0.32);
  border-radius: 8px;
  background: rgba(20, 31, 51, 0.42);
}

.webinar-dashboard-filters .webinar-multi-filter {
  min-height: 76px;
}

.webinar-dashboard-filters .field:nth-child(4n + 1) {
  padding-left: 12px;
  border-left: 1px solid rgba(123, 144, 181, 0.32);
}

.webinar-dashboard-filters .field span,
.webinar-base-search .field span {
  color: #c8d1df;
  font-weight: 800;
}

.webinar-dashboard-filters select,
.webinar-dashboard-filters input,
.webinar-base-search input {
  min-height: 42px;
  border-color: rgba(123, 144, 181, 0.48);
  background-color: #202c45;
}

.webinar-insight-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid rgba(83, 101, 123, 0.38);
  border-radius: 10px;
  overflow: hidden;
  background: rgba(10, 16, 29, 0.78);
}

.webinar-answer-insight {
  margin-top: 16px;
  overflow: hidden;
  border-color: rgba(91, 146, 214, 0.45);
  background: linear-gradient(110deg, rgba(24, 40, 68, 0.86), rgba(11, 20, 35, 0.9));
}

.webinar-answer-insight-head,
.webinar-answer-media {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.webinar-answer-insight-head {
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(133, 163, 209, 0.24);
}

.webinar-answer-insight-head span,
.webinar-answer-media span {
  display: block;
  margin-bottom: 5px;
  color: #aebfdc;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.webinar-answer-insight h2 {
  margin: 0;
  color: #fff8ed;
  font-size: 20px;
}

.webinar-answer-insight p {
  margin: 5px 0 0;
  color: #b9c5d8;
}

.webinar-answer-insight-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 16px -20px 0;
  border-top: 1px solid rgba(133, 163, 209, 0.2);
  border-bottom: 1px solid rgba(133, 163, 209, 0.2);
}

.webinar-answer-insight-metrics > div {
  min-height: 103px;
  padding: 17px 20px;
  border-right: 1px solid rgba(133, 163, 209, 0.2);
}

.webinar-answer-insight-metrics > div:last-child { border-right: 0; }
.webinar-answer-insight-metrics span,
.webinar-answer-insight-metrics small { display: block; color: #aebbd0; font-size: 12px; }
.webinar-answer-insight-metrics strong { display: block; margin: 5px 0 2px; color: #fff8ed; font-size: 28px; }

.webinar-answer-media {
  padding-top: 15px;
}

.webinar-answer-media > div {
  flex: 1;
  min-width: 0;
}

.webinar-answer-media > div + div {
  padding-left: 18px;
  border-left: 1px solid rgba(133, 163, 209, 0.2);
}

.webinar-answer-media strong,
.webinar-answer-media small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.webinar-answer-media strong { color: #a7ffeb; }
.webinar-answer-media small { margin-top: 4px; color: #b7c4d9; }

.webinar-insight-strip > div {
  display: grid;
  gap: 6px;
  min-height: 76px;
  padding: 15px 18px;
  border-right: 1px solid rgba(83, 101, 123, 0.32);
}

.webinar-insight-strip > div:last-child {
  border-right: 0;
}

.webinar-insight-strip span {
  color: #aeb9c8;
  font-size: 12px;
}

.webinar-insight-strip strong {
  color: #fff8ed;
  font-size: 24px;
  line-height: 1;
}

.webinar-insight-strip .webinar-mql-rate strong {
  color: #a7ffeb;
}

.webinar-insight-strip small {
  color: #8e9caf;
  font-size: 10px;
  font-weight: 700;
}

.webinar-response-panel {
  padding: 20px;
}

.webinar-response-bars {
  display: grid;
  gap: 11px;
  margin-top: 16px;
}

.webinar-response-row {
  display: grid;
  grid-template-columns: minmax(190px, 310px) minmax(140px, 1fr) 50px;
  gap: 13px;
  align-items: center;
}

.webinar-response-row > div {
  display: grid;
  gap: 3px;
}

.webinar-response-row strong {
  overflow: hidden;
  color: #f4f1eb;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.webinar-response-row span {
  color: #8998aa;
  font-size: 11px;
}

.webinar-response-row i {
  display: block;
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.webinar-response-row i em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #48d9ad;
}

.webinar-response-row b {
  color: #baf6dc;
  font-size: 12px;
  text-align: right;
}

.webinar-buyer-readout {
  overflow: hidden;
  border: 1px solid rgba(104, 121, 148, 0.42);
  border-radius: 10px;
  background: #151b25;
}

.webinar-readout-top {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(420px, 1.6fr);
  gap: 28px;
  padding: 24px;
}

.webinar-readout-heading > span,
.webinar-signal-section > span,
.webinar-scale-section > span {
  display: block;
  color: #aab4c3;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.webinar-readout-heading > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 8px 0;
}

.webinar-readout-heading strong {
  color: #fff8ed;
  font-size: 52px;
  line-height: 0.94;
}

.webinar-readout-heading em {
  color: #b6bfcb;
  font-size: 15px;
  font-style: normal;
}

.webinar-readout-heading p {
  margin: 0;
  color: #c4ccd7;
  font-size: 15px;
}

.webinar-readout-heading p b {
  color: #b9a7ff;
}

.webinar-readout-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-content: end;
}

.webinar-readout-metrics > div {
  display: grid;
  gap: 8px;
  min-height: 92px;
  padding: 15px;
  border: 1px solid rgba(122, 141, 169, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.webinar-readout-metrics span {
  color: #9ca8b8;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.webinar-readout-metrics strong {
  color: #f7f3e9;
  font-size: 28px;
}

.webinar-readout-metrics small {
  color: #8e9caf;
  font-size: 10px;
  font-weight: 800;
}

.webinar-readout-metrics > div:nth-child(2) strong {
  color: #9f8cff;
}

.webinar-readout-note {
  margin: 0;
  padding: 13px 24px;
  border-top: 1px solid rgba(122, 141, 169, 0.25);
  border-bottom: 1px solid rgba(122, 141, 169, 0.25);
  color: #b8c2ce;
  font-size: 13px;
}

.webinar-signal-section {
  padding: 22px 24px;
}

.webinar-signal-bars {
  display: grid;
  gap: 10px;
  margin-top: 15px;
}

.webinar-signal-row {
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(120px, 1fr) 62px;
  gap: 12px;
  align-items: center;
}

.webinar-signal-row > div {
  display: grid;
  gap: 2px;
}

.webinar-signal-row strong {
  overflow: hidden;
  color: #f1f3f8;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.webinar-signal-row small {
  color: #8d9aaa;
  font-size: 11px;
}

.webinar-signal-row i {
  display: block;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.webinar-signal-row i em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #6f64ff;
}

.webinar-signal-row b {
  color: #d5d9e3;
  font-size: 12px;
  text-align: right;
}

.webinar-scale-section {
  padding: 20px 24px 22px;
  border-top: 1px solid rgba(72, 224, 180, 0.2);
  background: rgba(27, 85, 63, 0.16);
}

.webinar-scale-section > span {
  color: #75efbd;
}

.webinar-scale-section ul {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding: 0;
  color: #d2ddd7;
  font-size: 13px;
  list-style: none;
}

.webinar-scale-section li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: #1dd38d;
}

.webinar-attribution-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.webinar-attribution-panel {
  min-width: 0;
  padding: 18px;
}

.webinar-attribution-table {
  display: grid;
  margin-top: 14px;
  border-top: 1px solid rgba(83, 101, 123, 0.32);
}

.webinar-attribution-head,
.webinar-attribution-row {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) 52px 76px 58px 68px;
  gap: 8px;
  align-items: center;
}

.webinar-attribution-head {
  min-height: 33px;
  color: #7f90a8;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.webinar-attribution-row {
  min-height: 47px;
  border-top: 1px solid rgba(83, 101, 123, 0.24);
  color: #c8d1df;
  font-size: 12px;
}

.webinar-attribution-row strong {
  overflow: hidden;
  color: #fff8ed;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.webinar-attribution-name {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.webinar-attribution-name small {
  overflow: hidden;
  color: #8d9bad;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.webinar-attribution-row b {
  color: #ffe9a6;
}

.webinar-attribution-row em {
  justify-self: start;
  border-radius: 999px;
  padding: 4px 7px;
  color: #a7ffeb;
  background: rgba(53, 224, 180, 0.1);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.webinar-media-decision-panel {
  margin-top: 16px;
  overflow: hidden;
}

.webinar-media-decision-panel .panel-head {
  align-items: flex-end;
}

.webinar-media-sort {
  width: min(210px, 100%);
}

.webinar-media-controls {
  display: flex;
  gap: 9px;
  align-items: end;
}

.webinar-campaign-ranking {
  margin: 2px 0 15px;
  padding: 12px 0 14px;
  border-top: 1px solid rgba(111, 139, 179, 0.26);
  border-bottom: 1px solid rgba(111, 139, 179, 0.26);
}

.webinar-campaign-ranking > span {
  display: block;
  margin-bottom: 9px;
  color: #b8c8e1;
  font-size: 12px;
  font-weight: 900;
}

.webinar-campaign-ranking > div {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.webinar-campaign-ranking button {
  flex: 0 0 auto;
  max-width: 240px;
  min-height: 48px;
  padding: 7px 10px;
  border: 1px solid rgba(113, 140, 181, 0.4);
  border-radius: 7px;
  background: rgba(12, 21, 37, 0.7);
  color: #dbe6f5;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.webinar-campaign-ranking button:hover,
.webinar-campaign-ranking button.active {
  border-color: rgba(53, 224, 180, 0.78);
  background: rgba(35, 208, 164, 0.12);
}

.webinar-campaign-ranking button strong,
.webinar-campaign-ranking button small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.webinar-campaign-ranking button strong { font-size: 12px; }
.webinar-campaign-ranking button small { margin-top: 3px; color: #96f1d6; font-size: 11px; }

.webinar-media-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.webinar-media-summary span {
  padding: 6px 9px;
  border: 1px solid rgba(113, 140, 181, 0.34);
  border-radius: 999px;
  color: #c7d5e9;
  font-size: 12px;
  font-weight: 800;
}

.webinar-multi-filter {
  min-width: 0;
  border: 1px solid rgba(100, 126, 167, 0.45);
  border-radius: 7px;
  background: rgba(7, 15, 28, 0.72);
}

.webinar-multi-filter summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 42px;
  padding: 0 11px;
  cursor: pointer;
  list-style: none;
}

.webinar-multi-filter summary::-webkit-details-marker { display: none; }
.webinar-multi-filter summary span { color: #b8c7dd; font-size: 11px; font-weight: 800; }
.webinar-multi-filter summary b { overflow: hidden; color: #f1f6fe; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.webinar-multi-filter > div { display: grid; max-height: 210px; overflow: auto; border-top: 1px solid rgba(100, 126, 167, 0.3); }
.webinar-multi-filter > div > label { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; color: #d6e1f0; font-size: 12px; line-height: 1.25; cursor: pointer; }
.webinar-multi-filter > div > label:hover { background: rgba(49, 83, 128, 0.24); }
.webinar-multi-filter input { width: 15px; height: 15px; margin: 0; accent-color: #43dfba; }
.webinar-multi-filter > div > small { padding: 10px; color: #95a9c7; font-size: 12px; }

.webinar-campaign-signals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 4px 0 16px;
}

.webinar-campaign-signals section {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(66, 220, 185, 0.35);
  border-radius: 8px;
  background: rgba(12, 33, 37, 0.42);
}
.webinar-campaign-signals section.attention { border-color: rgba(225, 166, 61, 0.48); background: rgba(52, 37, 12, 0.31); }
.webinar-campaign-signals section > span { color: #a7f6dc; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.webinar-campaign-signals .attention > span { color: #ffd67b; }
.webinar-campaign-signals p { margin: 4px 0; color: #9aacbf; font-size: 12px; }
.webinar-campaign-signals button { display: grid; gap: 3px; min-width: 0; padding: 8px; border: 1px solid rgba(99, 129, 168, 0.34); border-radius: 6px; background: rgba(6, 14, 26, 0.72); color: #eef5ff; font: inherit; text-align: left; cursor: pointer; }
.webinar-campaign-signals button:hover { border-color: #43dfba; }
.webinar-campaign-signals button strong, .webinar-campaign-signals button small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.webinar-campaign-signals button small { color: #b2c0d5; font-size: 11px; }

.webinar-lead-drawer { padding: 0; overflow: hidden; }
.webinar-lead-drawer > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; cursor: pointer; list-style: none; }
.webinar-lead-drawer > summary::-webkit-details-marker { display: none; }
.webinar-lead-drawer summary span, .webinar-lead-drawer summary strong, .webinar-lead-drawer summary small { display: block; }
.webinar-lead-drawer summary span { color: #82b7ff; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.webinar-lead-drawer summary strong { margin-top: 3px; color: #fff8ed; font-size: 17px; }
.webinar-lead-drawer summary small { margin-top: 3px; color: #aebdd1; font-size: 12px; }
.webinar-lead-drawer summary > b { color: #a5f2d7; font-size: 13px; }
.webinar-lead-drawer[open] summary { border-bottom: 1px solid rgba(100, 126, 167, 0.35); }
.webinar-lead-drawer .webinar-table-panel { padding: 16px 18px 18px; }

.webinar-media-table-wrap { overflow-x: auto; }
.webinar-media-table { min-width: 830px; }
.webinar-media-head,
.webinar-media-row {
  display: grid;
  grid-template-columns: minmax(310px, 1fr) 74px 74px 84px 86px 145px;
  gap: 10px;
  align-items: center;
}

.webinar-media-head {
  padding: 0 12px 9px;
  color: #91a5c5;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.webinar-media-row {
  min-height: 76px;
  padding: 10px 12px;
  border-top: 1px solid rgba(96, 122, 161, 0.26);
  color: #eaf0fa;
}

.webinar-media-row:hover { background: rgba(40, 64, 103, 0.2); }
.webinar-media-name { min-width: 0; }
.webinar-media-name strong,
.webinar-media-name small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.webinar-media-name strong { color: #fff8ed; }
.webinar-media-name small { margin-top: 3px; color: #aebed5; font-size: 11px; }
.webinar-media-row > b { color: #fff8ed; }
.webinar-media-row > span { color: #d1dbe9; }
.webinar-media-row > em { color: #9df5dc; font-style: normal; font-weight: 900; }
.webinar-media-row > i { justify-self: start; padding: 5px 8px; border-radius: 999px; font-size: 11px; font-style: normal; font-weight: 900; white-space: nowrap; }
.webinar-media-row > i.scale { color: #8ff1cb; background: rgba(25, 186, 125, 0.16); }
.webinar-media-row > i.keep { color: #c8d4e8; background: rgba(117, 145, 191, 0.16); }
.webinar-media-row > i.review { color: #ffd778; background: rgba(236, 166, 34, 0.16); }
.webinar-media-row > i.pause { color: #ffaaaa; background: rgba(224, 78, 78, 0.16); }
.webinar-media-row > i.sample { color: #b9c4d6; background: rgba(132, 150, 181, 0.13); }

.webinar-rate-bar {
  position: relative;
  display: block;
  width: 100%;
  min-width: 72px;
  height: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(99, 122, 156, 0.22);
  color: #eef8f4 !important;
  font-style: normal !important;
}
.webinar-rate-bar > i { position: absolute; inset: 0 auto 0 0; display: block; min-width: 2px; border-radius: inherit; background: linear-gradient(90deg, #42dcb2, #8ae7c9); }
.webinar-rate-bar > b { position: relative; z-index: 1; display: block; padding: 2px 7px; color: inherit; font-size: 11px; line-height: 14px; text-align: center; }

.webinar-campaign-tree {
  display: grid;
  gap: 12px;
}

.webinar-campaign-group {
  overflow: hidden;
  border: 1px solid rgba(91, 126, 173, 0.38);
  border-radius: 8px;
  background: rgba(8, 16, 29, 0.46);
}

.webinar-campaign-summary {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) repeat(4, minmax(88px, auto));
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-left: 3px solid #43dfba;
  border-bottom: 1px solid rgba(91, 126, 173, 0.3);
  background: linear-gradient(90deg, rgba(30, 95, 88, 0.26), rgba(14, 25, 43, 0.2));
}

.webinar-campaign-summary > div { min-width: 0; }
.webinar-campaign-summary span,
.webinar-campaign-summary small { display: block; color: #9fb0ca; font-size: 11px; font-weight: 800; }
.webinar-campaign-summary strong { display: block; overflow: hidden; color: #fff8ed; font-size: 14px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.webinar-campaign-summary small { margin-top: 4px; font-weight: 600; }
.webinar-campaign-summary b { display: block; margin-top: 3px; color: #fff8ed; font-size: 18px; }
.webinar-campaign-summary em:not(.webinar-rate-bar) { display: block; margin-top: 3px; color: #8ff1cb; font-size: 18px; font-style: normal; font-weight: 900; }
.webinar-campaign-summary .webinar-rate-bar { margin-top: 5px; }
.webinar-ad-table { min-width: 760px; }
.webinar-ad-table .webinar-media-head,
.webinar-ad-table .webinar-media-row { grid-template-columns: minmax(290px, 1fr) 78px 86px 86px 86px 86px; gap: 0; }
.webinar-ad-table .webinar-media-row { min-height: 68px; background: rgba(6, 12, 23, 0.24); }
.webinar-ad-table .webinar-media-head > *,
.webinar-ad-table .webinar-media-row > * { min-width: 0; padding: 0 12px; border-left: 1px solid rgba(96, 122, 161, 0.25); }
.webinar-ad-table .webinar-media-head > :first-child,
.webinar-ad-table .webinar-media-row > :first-child { border-left: 0; }
.webinar-ad-table .webinar-media-head > :not(:first-child),
.webinar-ad-table .webinar-media-row > :not(:first-child) { text-align: right; }
.webinar-table-rate { font-size: 14px; font-weight: 900; }
.webinar-table-rate.rate-70 { color: #73e6a6; }
.webinar-table-rate.rate-80 { color: #ff9a66; }

@media (max-width: 760px) {
  .webinar-campaign-summary {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .webinar-campaign-summary > div:first-child { grid-column: 1 / -1; }
  .webinar-campaign-summary strong { white-space: normal; }
  .webinar-campaign-signals { grid-template-columns: 1fr; }
  .webinar-lead-drawer > summary { align-items: flex-start; }
}

.webinar-base-search {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-bottom: 14px;
}

.webinar-base-search .field {
  flex: 1;
}

.webinar-base-search .button {
  flex: 0 0 auto;
}

.webinar-lead-views {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 14px;
}

.webinar-lead-views button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(116, 138, 174, 0.42);
  border-radius: 7px;
  background: rgba(10, 17, 31, 0.72);
  color: #cbd7e8;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.webinar-lead-views button:hover,
.webinar-lead-views button.active {
  border-color: rgba(53, 224, 180, 0.8);
  background: rgba(35, 208, 164, 0.12);
  color: #f4fffc;
}

.webinar-lead-views b {
  min-width: 23px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(145, 167, 210, 0.16);
  color: #9df5dc;
  font-size: 11px;
  text-align: center;
}

.webinar-lead-toolbar {
  padding-top: 12px;
  border-top: 1px solid rgba(110, 132, 166, 0.25);
}

.webinar-sort-select {
  flex: 0 0 min(240px, 30%);
}

.webinar-advanced-filters {
  margin: -2px 0 14px;
  border-top: 1px solid rgba(83, 101, 123, 0.28);
}

.webinar-advanced-filters > summary {
  padding: 12px 0 2px;
  color: #bde2ff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.webinar-filter-row-advanced {
  grid-template-columns: repeat(4, minmax(150px, 1fr)) minmax(130px, 0.65fr) minmax(130px, 0.65fr) auto;
  padding-top: 10px;
}

.webinar-filter-row-advanced .button {
  align-self: end;
}

@media (max-width: 980px) {
  .webinar-workspace-grid,
  .webinar-integration-form,
  .webinar-filter-row-advanced,
  .webinar-dashboard-filters,
  .webinar-attribution-grid {
    grid-template-columns: 1fr;
  }

  .webinar-dashboard-filters .field,
  .webinar-dashboard-filters .field:nth-child(4n + 1) {
    padding-left: 12px;
    border-left: 1px solid rgba(123, 144, 181, 0.32);
  }

  .webinar-readout-top {
    grid-template-columns: 1fr;
  }

  .webinar-insight-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .webinar-answer-insight-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .webinar-media-controls {
    width: 100%;
  }

  .webinar-answer-insight-metrics > div:nth-child(2) {
    border-right: 0;
  }

  .webinar-integration-form .wide {
    grid-column: auto;
  }

  .webinar-journey {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .webinar-journey > i {
    display: none;
  }
}

@media (max-width: 720px) {
  .webinar-readout-top,
  .webinar-signal-section,
  .webinar-scale-section {
    padding-left: 15px;
    padding-right: 15px;
  }

  .webinar-readout-metrics {
    grid-template-columns: 1fr;
  }

  .webinar-answer-insight-head,
  .webinar-answer-media {
    flex-direction: column;
  }

  .webinar-media-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .webinar-media-sort { width: 100%; }

  .webinar-answer-media > div + div {
    padding: 14px 0 0;
    border-top: 1px solid rgba(133, 163, 209, 0.2);
    border-left: 0;
  }

  .webinar-signal-row {
    grid-template-columns: 1fr 48px;
    gap: 7px;
  }

  .webinar-response-row {
    grid-template-columns: 1fr 46px;
    gap: 7px;
  }

  .webinar-response-row i {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .webinar-signal-row i {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .webinar-priority-row,
  .webinar-lead-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .webinar-priority-row b {
    justify-self: start;
  }

  .webinar-journey-panel,
  .webinar-priority-panel,
  .webinar-status-panel,
  .webinar-disclosure {
    padding: 14px;
  }

  .webinar-filter-console .panel-head,
  .webinar-base-search {
    align-items: stretch;
    flex-direction: column;
  }

  .webinar-filter-actions .button,
  .webinar-base-search .button {
    width: 100%;
  }

  .webinar-attribution-head {
    display: none;
  }

  .webinar-attribution-row {
    grid-template-columns: 1fr repeat(2, auto);
  }

  .webinar-attribution-row span:nth-of-type(1),
  .webinar-attribution-row span:nth-of-type(2) {
    display: none;
  }
}
