:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --panel: #ffffff;
  --panel-strong: #f8fafc;
  --ink: #151b23;
  --muted: #667085;
  --line: #d9e0e7;
  --line-strong: #b9c4cf;
  --green: #16865f;
  --green-dark: #0f6b4d;
  --mint: #dff6ec;
  --teal: #087b83;
  --amber: #b66a12;
  --amber-soft: #fff1d6;
  --coral: #c75a44;
  --red: #b73535;
  --blue: #256fc2;
  --canvas-bg: #f9fbfd;
  --canvas-grid: #e7edf2;
  --shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
  --radius: 8px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --node-font: "Roboto", Arial, "Helvetica Neue", Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-shell {
  display: grid;
  grid-template-columns: 204px minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns 0.18s ease;
}

.auth-locked .app-shell {
  display: none;
}

.login-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(244, 246, 248, 0.92)),
    #f4f6f8;
}

.login-panel {
  display: grid;
  width: min(100%, 360px);
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

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

.login-brand strong,
.login-brand span {
  display: block;
}

.login-brand strong {
  font-size: 16px;
}

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

.login-panel label {
  display: grid;
  gap: 6px;
  color: #344054;
  font-size: 12px;
  font-weight: 700;
}

.login-panel input {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
}

.login-panel input:focus {
  border-color: var(--green);
  outline: 3px solid rgba(22, 134, 95, 0.16);
}

.login-error {
  padding: 8px 10px;
  border: 1px solid rgba(183, 53, 53, 0.25);
  border-radius: 7px;
  background: #fff5f5;
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
}

.app-logout-button {
  min-height: 36px;
  padding-inline: 12px;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 66px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  min-height: 0;
  padding: 10px 9px;
  border-right: 1px solid #dfe6ec;
  background:
    linear-gradient(180deg, rgba(232, 244, 239, 0.82), rgba(255, 255, 255, 0.96) 34%),
    #fbfcfa;
  overflow: hidden;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  padding: 2px 3px 9px;
}

.brand > div {
  min-width: 0;
}

.brand-mark {
  display: inline-grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(15, 107, 77, 0.12);
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.34), transparent 32%),
    linear-gradient(145deg, #178a62, #0f6b4d);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 18px rgba(15, 107, 77, 0.22);
}

.brand strong,
.workspace-health strong {
  display: block;
  font-size: 13px;
}

.brand > div span,
.workspace-health span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.sidebar-toggle {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  margin-left: auto;
  border: 1px solid #dfe6ec;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #53605a;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.sidebar-toggle:hover {
  border-color: var(--line-strong);
  background: #eef5ef;
  color: var(--green-dark);
}

.sidebar-toggle svg {
  width: 15px;
  height: 15px;
  transition: transform 0.18s ease;
}

.app-shell.sidebar-collapsed .sidebar {
  padding: 10px 8px;
}

.app-shell.sidebar-collapsed .brand {
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 2px 0 10px;
}

.app-shell.sidebar-collapsed .brand > div,
.app-shell.sidebar-collapsed .page-switcher-copy,
.app-shell.sidebar-collapsed .page-switcher-chevron,
.app-shell.sidebar-collapsed .workspace-health,
.app-shell.sidebar-collapsed .nav-button > span:not(.nav-count),
.app-shell.sidebar-collapsed .nav-count {
  display: none;
}

.app-shell.sidebar-collapsed .page-switcher-button,
.app-shell.sidebar-collapsed .page-switcher-control {
  grid-template-columns: 1fr;
  justify-items: center;
  padding: 6px 0;
}

.app-shell.sidebar-collapsed .sidebar-toggle {
  margin-left: 0;
}

.app-shell.sidebar-collapsed .sidebar-toggle svg {
  transform: rotate(180deg);
}

.main-nav {
  display: grid;
  gap: 4px;
  min-height: 0;
  margin-top: 4px;
  padding-right: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.page-switcher {
  flex: 0 0 auto;
  margin: 0 0 9px;
}

.page-switcher-button,
.page-switcher-control {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 38px;
  padding: 5px 6px;
  border: 1px solid #dfe7ee;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #26342d;
  text-align: left;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.page-switcher-button:hover,
.page-switcher-control:hover {
  border-color: #b9d8ca;
  background: #fff;
}

.page-avatar {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #e9f2ef;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 900;
}

.page-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-switcher-copy {
  min-width: 0;
}

.page-switcher-copy strong,
.page-switcher-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-switcher-copy strong {
  font-size: 11px;
}

.page-switcher-copy span {
  color: var(--muted);
  font-size: 10px;
}

.page-switcher-control select {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  cursor: pointer;
}

.page-switcher-chevron {
  color: var(--muted);
  font-size: 14px;
}

.nav-button {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 33px;
  padding: 6px 7px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #435149;
  font-size: 12px;
  text-align: left;
}

.app-shell.sidebar-collapsed .nav-button {
  grid-template-columns: 1fr;
  justify-items: center;
  min-height: 36px;
  padding: 8px 0;
}

.nav-button svg,
.metric-icon,
.empty-state svg,
.mini-icon {
  width: 18px;
  height: 18px;
}

.nav-button > span:not(.nav-count) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-button:hover {
  border-color: rgba(22, 134, 95, 0.12);
  background: rgba(238, 245, 239, 0.78);
  color: var(--green-dark);
}

.nav-button.active {
  border-color: rgba(22, 134, 95, 0.18);
  background: #e8f6ef;
  color: var(--green-dark);
  box-shadow: inset 3px 0 0 var(--green);
}

.nav-button.active svg {
  color: var(--green);
}

.nav-count {
  min-width: 18px;
  padding: 1px 5px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #dce5ed;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
  text-align: center;
}

.workspace-health {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.status-dot {
  width: 9px;
  height: 9px;
  margin-top: 4px;
  border-radius: 999px;
  background: #21a35f;
  box-shadow: 0 0 0 5px rgba(33, 163, 95, 0.12);
}

.content-frame {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 247, 244, 0.94);
  backdrop-filter: blur(10px);
}

.topbar-title span {
  display: block;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.topbar-title h1 {
  margin: 3px 0 0;
  font-size: 24px;
  line-height: 1.15;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(430px, 34vw);
  min-width: 240px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.search-box svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

.workspace {
  padding: 22px;
}

.icon-button,
.chip-button,
.primary-button,
.secondary-button,
.danger-button,
.text-button,
.node-action,
.segmented button {
  border-radius: 8px;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease;
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
}

.icon-button:hover,
.secondary-button:hover,
.chip-button:hover,
.text-button:hover {
  border-color: var(--line-strong);
  background: #f7faf6;
}

.icon-button svg,
.button-icon {
  width: 18px;
  height: 18px;
}

.primary-button,
.secondary-button,
.danger-button,
.text-button,
.chip-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid transparent;
  font-weight: 700;
  white-space: nowrap;
}

.primary-button {
  background: var(--green);
  color: #fff;
}

.primary-button:hover {
  background: var(--green-dark);
}

.primary-button span,
.secondary-button span,
.danger-button span,
.text-button span,
.chip-button span {
  color: inherit;
  font-size: inherit;
}

.secondary-button,
.chip-button {
  background: var(--panel);
  border-color: var(--line);
  color: var(--ink);
}

.secondary-button.active {
  border-color: #8ccaa9;
  background: var(--mint);
  color: var(--green-dark);
}

.danger-button {
  background: #fff5f3;
  border-color: #f0c8c1;
  color: var(--red);
}

.compact-danger-action {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 30px;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid #f0c8c1;
  border-radius: 7px;
  background: #fff8f7;
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.compact-danger-action:hover,
.compact-danger-action:focus-visible {
  outline: 0;
  border-color: #e6aaa0;
  background: #fff1ef;
}

.compact-danger-action svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
}

.compact-danger-action span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.text-button {
  min-height: 34px;
  padding: 0 10px;
  border-color: transparent;
  background: transparent;
  color: var(--green-dark);
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(190px, 0.22fr) minmax(0, 1fr) minmax(270px, 0.28fr);
  gap: 12px;
  align-items: start;
}

.page-grid.canvas-focused {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  min-height: calc(100vh - 122px);
}

.page-grid.canvas-focused > .canvas-shell {
  grid-column: 1;
}

.page-grid.canvas-focused:not(.show-flow-list) > .flow-sidebar,
.page-grid.canvas-focused:not(.show-inspector) > .inspector {
  display: none;
}

.page-grid.canvas-focused > .flow-sidebar,
.page-grid.canvas-focused > .inspector {
  position: absolute;
  top: 0;
  z-index: 35;
  width: min(360px, calc(100vw - 48px));
  max-height: calc(100vh - 122px);
  overflow: hidden;
  box-shadow: 0 26px 68px rgba(15, 23, 42, 0.2);
}

.page-grid.canvas-focused > .flow-sidebar {
  left: 0;
}

.page-grid.canvas-focused > .inspector {
  right: 0;
}

.page-grid.canvas-focused > .flow-sidebar .panel-body,
.page-grid.canvas-focused > .inspector .panel-body {
  max-height: calc(100vh - 202px);
  overflow: auto;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
}

.split-page {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 16px;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.panel.flat {
  box-shadow: none;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.panel-header h2,
.panel-header h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
}

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

.panel-header .primary-button,
.panel-header .primary-button span,
.button-row .primary-button,
.button-row .primary-button span {
  color: #ffffff;
}

.panel-body {
  padding: 14px;
}

.stack {
  display: grid;
  gap: 10px;
}

.tight-stack {
  display: grid;
  gap: 6px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.metric {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.metric-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--mint);
  color: var(--green-dark);
}

.metric strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
}

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

.flow-list {
  display: grid;
  gap: 8px;
}

.flow-library-panel {
  min-height: calc(100vh - 126px);
}

.flow-library {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
  padding: 14px;
}

.flow-card {
  position: relative;
  display: grid;
  min-height: 184px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.flow-card-main {
  display: grid;
  gap: 12px;
  width: 100%;
  min-height: 184px;
  padding: 14px 14px 58px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.flow-card:hover {
  border-color: #8ccaa9;
  background: #fbfefc;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.flow-card-actions {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.flow-card-actions .icon-button {
  width: 34px;
  height: 34px;
  border-color: #dce4ec;
  background: rgba(255, 255, 255, 0.95);
}

.flow-card-actions svg {
  width: 16px;
  height: 16px;
}

.flow-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 9px;
  border: 1px solid #d7dfe8;
  border-radius: 999px;
  background: #f8fafc;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.flow-switch:hover {
  border-color: #9cc9b5;
  color: var(--green-dark);
}

.flow-switch-track {
  position: relative;
  display: block;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: #d7dfe8;
  transition: background 0.16s ease;
}

.flow-switch-track span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.24);
  transition: transform 0.16s ease;
}

.flow-switch.on {
  border-color: #94d2b1;
  background: #effaf4;
  color: var(--green-dark);
}

.flow-switch.on .flow-switch-track {
  background: var(--green);
}

.flow-switch.on .flow-switch-track span {
  transform: translateX(14px);
}

.danger-icon {
  border-color: #f0c8c1;
  color: var(--red);
}

.danger-icon:hover {
  background: #fff5f3;
}

.flow-card-head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.flow-card-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  border: 1px solid #c9eadb;
  background: #ecfbf3;
  color: var(--green-dark);
}

.flow-card-icon svg {
  width: 20px;
  height: 20px;
}

.flow-card strong,
.flow-card span {
  min-width: 0;
}

.flow-card strong {
  display: block;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-card-head > span > span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-card-goal {
  display: -webkit-box;
  overflow: hidden;
  color: #344239;
  font-size: 13px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.flow-card-status {
  justify-self: end;
}

.flow-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-self: end;
  color: var(--muted);
  font-size: 12px;
}

.flow-item,
.contact-item,
.campaign-item {
  width: 100%;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  text-align: left;
}

.flow-item:hover,
.flow-item.active,
.contact-item:hover,
.contact-item.active,
.campaign-item:hover {
  border-color: #8ccaa9;
  background: #f7fcf8;
}

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

.flow-item strong,
.contact-item strong,
.campaign-item strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-item span,
.contact-item span,
.campaign-item span,
.muted {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.badge,
.tag,
.channel-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.badge {
  background: var(--mint);
  color: var(--green-dark);
}

.badge.paused {
  background: #f1f1ed;
  color: #66675f;
}

.badge.draft {
  background: var(--amber-soft);
  color: var(--amber);
}

.tag {
  background: #eef1ee;
  color: #49554d;
}

.tag-stack {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  min-width: 0;
}

.tag-stack .tag {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-tag-editor {
  display: grid;
  gap: 8px;
  min-width: 220px;
}

.editable-tag {
  gap: 5px;
  padding-right: 5px;
}

.editable-tag button {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(21, 27, 35, 0.08);
  color: #344054;
  font-size: 12px;
  line-height: 1;
}

.tag-editor-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 6px;
}

.tag-editor-row input {
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tag-editor-row .icon-button {
  width: 34px;
  height: 34px;
}

.contact-tag-picker-wrap {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 6px;
}

.contact-tag-add-button {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
}

.contact-tag-add-button:hover,
.contact-tag-add-button:focus-visible {
  outline: 0;
  border-color: #8ccaa9;
  background: #f7fcf8;
}

.contact-tag-add-button svg {
  width: 14px;
  height: 14px;
}

.contact-tag-picker {
  display: grid;
  width: min(300px, 72vw);
  max-height: 260px;
  overflow: auto;
  border: 1px solid #d7dee8;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.13);
}

.contact-tag-folder {
  display: grid;
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid #eef2f5;
}

.contact-tag-folder:last-child {
  border-bottom: 0;
}

.contact-tag-folder > strong {
  color: var(--muted);
  font-size: 10.5px;
  text-transform: uppercase;
}

.contact-tag-option-list {
  display: grid;
  gap: 4px;
}

.contact-tag-option-list button {
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: #344054;
  font-size: 12px;
  text-align: left;
}

.contact-tag-option-list button:not(:disabled):hover {
  background: #f5f6f8;
}

.contact-tag-option-list button:disabled {
  background: #f8fafc;
  color: var(--muted);
  cursor: not-allowed;
}

.contact-tag-option-list button span,
.contact-tag-picker-empty {
  color: var(--muted);
  font-size: 10.5px;
}

.contact-tag-picker-empty {
  padding: 10px;
}

.contact-tag-picker-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: stretch;
  padding: 8px;
  border-top: 1px solid #eef2f5;
  background: #fff;
}

.contact-tag-create-button {
  display: inline-flex;
  width: 100%;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px dashed #9fc4d8;
  border-radius: 7px;
  background: #f8fbfd;
  color: #0874c9;
  font-size: 12px;
  font-weight: 800;
}

.contact-tag-create-button:hover,
.contact-tag-create-button:focus-visible {
  outline: 0;
  border-color: #0874c9;
  background: #eef8ff;
}

.contact-tag-create-button svg {
  width: 14px;
  height: 14px;
}

.compact-filter {
  display: grid;
  gap: 4px;
}

.compact-filter span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.readonly-filter strong {
  display: grid;
  gap: 1px;
  min-height: 36px;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
}

.readonly-filter small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  text-overflow: ellipsis;
}

.tag-filter-list {
  display: flex;
  flex: 1 1 260px;
  flex-wrap: wrap;
  gap: 6px;
}

.channel-pill {
  background: #edf7f8;
  color: var(--teal);
}

.canvas-shell {
  overflow: hidden;
  border-color: #cbd6df;
  box-shadow: 0 18px 54px rgba(15, 23, 42, 0.11);
}

.canvas-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto auto auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

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

.canvas-panel-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sync-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #d9e0e7;
  border-radius: 999px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.sync-pill.synced {
  border-color: #a8d8bf;
  background: #effaf4;
  color: var(--green-dark);
}

.sync-pill.local {
  border-color: #efd6a8;
  background: #fff8eb;
  color: var(--amber);
}

.canvas-panel-controls .secondary-button,
.canvas-actions .chip-button,
.canvas-actions .secondary-button {
  min-height: 34px;
  padding: 0 10px;
}

.canvas-actions .icon-button {
  width: 34px;
  height: 34px;
}

.publish-flow-button svg {
  width: 16px;
  height: 16px;
}

.publish-flow-button.published,
.publish-flow-button.published:disabled {
  border-color: #a8d8bf;
  background: #e8f7ef;
  color: var(--green-dark);
  cursor: default;
  opacity: 1;
}

.canvas-panel-controls svg,
.canvas-actions svg {
  width: 17px;
  height: 17px;
}

.canvas-zoom {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.canvas-zoom .icon-button {
  width: 30px;
  height: 30px;
  border-color: transparent;
  font-size: 18px;
  font-weight: 800;
}

.canvas-zoom .secondary-button {
  min-height: 30px;
  padding: 0 9px;
}

.canvas-zoom span {
  min-width: 44px;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.field-input {
  width: min(520px, 100%);
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #eef4f1;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.field-input:focus {
  border-color: rgba(22, 134, 95, 0.45);
  background: #fff;
  outline: 3px solid rgba(22, 134, 95, 0.12);
}

.flow-canvas {
  position: relative;
  height: max(760px, calc(100vh - 158px));
  overflow: auto;
  background:
    radial-gradient(circle at 18px 18px, rgba(45, 58, 74, 0.16) 1.2px, transparent 1.4px),
    linear-gradient(var(--canvas-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--canvas-grid) 1px, transparent 1px);
  background-color: var(--canvas-bg);
  background-size: 28px 28px;
  scrollbar-gutter: stable both-edges;
}

.canvas-world {
  position: relative;
  min-width: 100%;
  min-height: 100%;
}

.canvas-stage {
  position: absolute;
  top: 0;
  left: 0;
  transform: scale(var(--canvas-zoom));
  transform-origin: 0 0;
}

.connection-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.connection-layer .connection-line {
  stroke: #8aa2b4;
  stroke-width: 2.2;
  fill: none;
  pointer-events: none;
}

.connection-arrow-path {
  fill: #8aa2b4;
}

.connection-link {
  pointer-events: auto;
}

.connection-hit {
  fill: none;
  stroke: transparent;
  stroke-width: 18;
  pointer-events: stroke;
}

.connection-link:hover .connection-line,
.connection-link:focus-within .connection-line {
  stroke: var(--green);
}

.connection-delete-object {
  overflow: visible;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}

.connection-link:hover .connection-delete-object,
.connection-link:focus-within .connection-delete-object {
  opacity: 1;
  pointer-events: auto;
}

.connection-delete-button {
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  border: 1px solid #d7dee8;
  border-radius: 6px;
  background: #ffffff;
  color: #d3382f;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.16);
}

.connection-delete-button:hover,
.connection-delete-button:focus-visible {
  outline: 0;
  background: #fff5f5;
  border-color: #f0b8b8;
}

.connection-delete-button svg {
  width: 16px;
  height: 16px;
}

.connection-delete-button svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.connection-layer .connection-temp {
  stroke: var(--green);
  stroke-width: 2.4;
  stroke-dasharray: 7 6;
}

.connection-label {
  fill: #536b80;
  font-size: 10px;
  font-weight: 700;
  paint-order: stroke;
  pointer-events: none;
  stroke: #ffffff;
  stroke-width: 4px;
}

.node {
  position: absolute;
  display: grid;
  gap: 8px;
  z-index: 1;
  width: 260px;
  min-height: 136px;
  padding: 11px;
  border: 1px solid #d6dee7;
  border-left: 4px solid var(--green);
  border-top: 1px solid #d6dee7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
  font-family: var(--node-font);
  user-select: none;
}

.node:hover,
.node:focus-within {
  z-index: 12;
}

.node.selected {
  z-index: 10;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22, 134, 95, 0.14), 0 18px 34px rgba(15, 23, 42, 0.14);
}

.node-sequence-badge {
  position: absolute;
  top: -25px;
  left: 10px;
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  padding: 0 7px;
  border: 1px solid #b9d9c8;
  border-radius: 999px;
  background: #ffffff;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.1);
}

.node-hover-actions {
  position: absolute;
  top: -43px;
  left: 50%;
  z-index: 20;
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  border: 1px solid #d7dee8;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.16);
  opacity: 0;
  pointer-events: auto;
  transform: translate(-50%, 4px);
  transition:
    opacity 0.12s ease,
    transform 0.12s ease;
}

.node:hover .node-hover-actions,
.node:focus-within .node-hover-actions,
.node-hover-actions:hover {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.node-hover-actions button {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 0;
  border-radius: 5px;
  background: #ffffff;
  color: #5d6b7a;
}

.node-hover-actions button:hover {
  background: #f2f5f8;
  color: #111827;
}

.node-hover-actions button.danger {
  color: #d3382f;
}

.node-hover-actions svg {
  width: 16px;
  height: 16px;
}

.node.trigger {
  border-left-color: var(--teal);
}

.node.trigger-start {
  gap: 14px;
  width: 370px;
  min-height: 0;
  border: 1px solid #1fbf78;
  border-left: 1px solid #1fbf78;
  border-radius: 16px;
  padding: 18px 16px 14px;
}

.node.trigger .node-title svg {
  background: #e7f6f7;
  color: var(--teal);
}

.node.trigger-start .node-title {
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px;
}

.node.trigger-start .node-title svg {
  width: 26px;
  height: 26px;
  padding: 3px;
  background: transparent;
  color: #0f172a;
}

.node.trigger-start .node-title strong {
  font-size: 17px;
  line-height: 1.2;
}

.trigger-list {
  display: grid;
  gap: 8px;
  max-height: 206px;
  overflow-y: auto;
  padding-right: 2px;
}

.trigger-list > span {
  overflow: hidden;
  color: #475467;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trigger-node-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 74px;
  padding: 10px 12px;
  border: 1px solid #62cf8c;
  border-radius: 12px;
  background: #f7f7f7;
}

.trigger-node-item-icon {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #0877ff;
}

.trigger-node-item-icon svg {
  width: 20px;
  height: 20px;
}

.trigger-node-item small,
.trigger-node-item strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trigger-node-item small {
  margin-top: 4px;
  color: #8a8f98;
  font-size: 13px;
  font-weight: 400;
}

.trigger-node-item strong {
  color: #303640;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.15;
  white-space: normal;
}

.trigger-add-button {
  min-height: 54px;
  border: 1px dashed #d4d9df;
  border-radius: 10px;
  background: #fff;
  color: #0069df;
  font-size: 15px;
  font-weight: 400;
}

.node.trigger-start .node-footer {
  justify-content: flex-end;
  padding-top: 0;
  border-top: 0;
}

.node.trigger-start > .node-port {
  top: auto;
  bottom: 14px;
}

.node-port {
  position: absolute;
  right: -7px;
  top: 108px;
  z-index: 18;
  display: block;
  width: 14px;
  height: 14px;
  padding: 0;
  border: 2px solid #8ba0b2;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.92);
  cursor: crosshair;
}

.node-port:hover,
.node-port:focus-visible {
  border-color: var(--green);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(22, 134, 95, 0.16);
}

.node.action {
  border-left-color: var(--amber);
}

.node.action .node-title svg {
  background: var(--amber-soft);
  color: var(--amber);
}

.action-node {
  gap: 0;
  padding: 0;
  overflow: visible;
  border-left: 1px solid #f1c86f;
}

.action-node-head {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 9px 12px;
  background: #fff0bd;
  color: #344054;
  font-family: var(--node-font);
  font-size: 15px;
  font-weight: 400;
  border-radius: 7px 7px 0 0;
}

.action-node-head strong {
  font-weight: 400;
}

.action-node-head svg {
  width: 18px;
  height: 18px;
  color: #f4a000;
}

.action-node-body {
  display: grid;
  min-height: 82px;
  padding: 12px;
  place-items: center;
}

.action-node-empty {
  display: grid;
  width: 100%;
  min-height: 62px;
  place-items: center;
  border: 1px dashed #d7dde6;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
}

.action-node-list {
  display: grid;
  width: 100%;
  gap: 9px;
}

.action-node-step {
  display: grid;
  gap: 2px;
  overflow: hidden;
  padding: 0 0 8px;
  border-bottom: 1px solid #edf1f4;
  color: #344054;
  font-size: 13px;
  line-height: 1.3;
}

.action-node-step:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.action-node-step span,
.action-node-step strong,
.action-node-step em {
  overflow: hidden;
  font-style: normal;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-node-step span {
  color: #737b85;
}

.action-node-step strong,
.action-node-step em {
  color: #344054;
}

.action-node .node-footer {
  margin: 0 12px 10px;
}

.node.condition {
  overflow: visible;
  border: 1px solid #00c982;
  border-left: 1px solid #00c982;
  padding: 0;
}

.condition-node-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 13px;
  border-radius: 7px 7px 0 0;
  background: #9eeedf;
  color: #11343a;
  font-family: var(--node-font);
  font-size: 15px;
  font-weight: 400;
}

.condition-node-head strong {
  font-weight: 400;
}

.condition-node-head svg {
  width: 18px;
  height: 18px;
  color: #0a84ff;
}

.condition-node-body {
  display: grid;
  min-height: 56px;
  padding: 13px 14px 8px;
  place-items: stretch;
}

.condition-node-empty {
  display: grid;
  width: 100%;
  min-height: 62px;
  place-items: center;
  border: 1px dashed #d7dde6;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
}

.condition-node-list {
  display: grid;
  width: 100%;
  gap: 4px;
}

.condition-node-list span {
  overflow: hidden;
  padding: 0 0 8px;
  border-bottom: 1px solid #edf1f4;
  color: #344054;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.condition-node-negative {
  min-height: 43px;
  padding: 8px 16px 12px;
  color: #737b85;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
}

.condition-node .condition-node-port.yes {
  top: 65px;
  border-color: #45cf8a;
}

.condition-node .condition-node-port.no {
  top: 117px;
  border-color: #ff5757;
}

.condition-node .condition-node-port.yes:hover,
.condition-node .condition-node-port.yes:focus-visible {
  border-color: #00b871;
  box-shadow: 0 0 0 4px rgba(0, 184, 113, 0.16);
}

.condition-node .condition-node-port.no:hover,
.condition-node .condition-node-port.no:focus-visible {
  border-color: #e84b4b;
  box-shadow: 0 0 0 4px rgba(232, 75, 75, 0.16);
}

.node.delay {
  border-left-color: var(--coral);
}

.node.delay .node-title svg {
  background: #fff0ec;
  color: var(--coral);
}

.node.user_input {
  border-left-color: #2f8cff;
}

.node.user_input .node-title svg {
  background: #eaf4ff;
  color: #0077ff;
}

.node.link_click_wait {
  border-left-color: #0a84ff;
}

.node.link_click_wait .node-title svg {
  background: #eaf4ff;
  color: #0a84ff;
}

.node.link_click_wait .link-click-node-port.yes {
  top: 65px;
  border-color: #45cf8a;
}

.node.link_click_wait .link-click-node-port.no {
  top: 117px;
  border-color: #ff5757;
}

.node.link_click_wait .link-click-node-port.yes:hover,
.node.link_click_wait .link-click-node-port.yes:focus-visible {
  border-color: #00b871;
  box-shadow: 0 0 0 4px rgba(0, 184, 113, 0.16);
}

.node.link_click_wait .link-click-node-port.no:hover,
.node.link_click_wait .link-click-node-port.no:focus-visible {
  border-color: #e84b4b;
  box-shadow: 0 0 0 4px rgba(232, 75, 75, 0.16);
}

.node-port.connected,
.condition-node .condition-node-port.connected,
.node.link_click_wait .link-click-node-port.connected {
  border-color: #8ba0b2;
  background: #8ba0b2;
}

.node.comment {
  min-height: 112px;
  border-color: #d7dce4;
  border-left-color: #8a98aa;
  background: #fffdf3;
}

.node.comment .node-title svg {
  background: #f3f6f8;
  color: #536275;
}

.node.comment .comment-markdown {
  display: block;
  min-height: 0;
  overflow: visible;
  overflow-wrap: anywhere;
  color: #344054;
  font-size: 13px;
  line-height: 1.45;
}

.node.comment .comment-markdown > :first-child {
  margin-top: 0;
}

.node.comment .comment-markdown > :last-child {
  margin-bottom: 0;
}

.node.comment .comment-markdown p {
  display: block;
  min-height: 0;
  margin: 0 0 7px;
  overflow: visible;
  overflow-wrap: anywhere;
  white-space: normal;
  -webkit-line-clamp: unset;
}

.node.comment .comment-markdown h1,
.node.comment .comment-markdown h2,
.node.comment .comment-markdown h3,
.node.comment .comment-markdown h4 {
  margin: 8px 0 5px;
  color: #1f2937;
  font-size: 15px;
  line-height: 1.25;
}

.node.comment .comment-markdown ul,
.node.comment .comment-markdown ol {
  margin: 5px 0 7px;
  padding-left: 20px;
}

.node.comment .comment-markdown blockquote {
  margin: 5px 0 7px;
  padding-left: 8px;
  border-left: 3px solid #d7dce4;
  color: #667085;
}

.node.comment .comment-markdown pre {
  margin: 5px 0 7px;
  padding: 6px;
  overflow-x: auto;
  border-radius: 5px;
  background: #f3f6f8;
  white-space: pre-wrap;
}

.node.comment .comment-markdown code {
  padding: 1px 3px;
  border-radius: 3px;
  background: #f3f6f8;
  font-size: 12px;
}

.node.comment .comment-markdown a {
  color: #0067d9;
  text-decoration: underline;
}

.published-comment-panel {
  padding-top: 14px;
  overflow-wrap: anywhere;
  color: #344054;
  font-size: 12px;
  line-height: 1.45;
}

.published-comment-panel > :first-child {
  margin-top: 0;
}

.published-comment-panel > :last-child {
  margin-bottom: 0;
}

.published-comment-panel p {
  margin: 0 0 7px;
}

.published-comment-panel h1,
.published-comment-panel h2,
.published-comment-panel h3,
.published-comment-panel h4 {
  margin: 8px 0 5px;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.25;
}

.published-comment-panel ul,
.published-comment-panel ol {
  margin: 5px 0 7px;
  padding-left: 20px;
}

.published-comment-panel blockquote {
  margin: 5px 0 7px;
  padding-left: 8px;
  border-left: 3px solid #d7dce4;
  color: #667085;
}

.published-comment-panel pre {
  margin: 5px 0 7px;
  padding: 6px;
  overflow-x: auto;
  border-radius: 5px;
  background: #f3f6f8;
  white-space: pre-wrap;
}

.published-comment-panel code {
  padding: 1px 3px;
  border-radius: 3px;
  background: #f3f6f8;
  font-size: 11px;
}

.published-comment-panel a {
  color: #0067d9;
  text-decoration: underline;
}

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

.node-title {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.node-title svg {
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 8px;
  background: #eff7f2;
  color: var(--green-dark);
}

.node-title strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.node-type {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.node p {
  display: -webkit-box;
  min-height: 34px;
  margin: 0;
  overflow: hidden;
  color: #344054;
  font-size: 13px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.node-summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 22px;
  margin-top: -2px;
}

.node-summary-chips span {
  max-width: 100%;
  overflow: hidden;
  padding: 3px 7px;
  border: 1px solid #d7f0e1;
  border-radius: 999px;
  background: #f1fbf5;
  color: var(--green-dark);
  font-size: 11.5px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-node-outputs {
  display: grid;
  gap: 5px;
  padding: 2px 0 0;
}

.message-node-output-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 26px;
  padding: 5px 22px 5px 8px;
  border: 1px solid #edf1f5;
  border-radius: 7px;
  background: #fbfdff;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

.message-node-output-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-node-output-row.connected {
  border-color: #b9e5cf;
  background: #f4fbf7;
  color: var(--green-dark);
}

.message-node-port {
  top: 50%;
  right: -18px;
  transform: translateY(-50%);
  border-color: #9fb2c3;
}

.messenger-preview-node {
  gap: 10px;
  width: 300px;
  min-height: 0;
  padding: 13px;
  border: 1px solid #1684ff;
  border-left: 1px solid #1684ff;
  border-radius: 16px;
}

.messenger-preview-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.messenger-preview-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #0877ff;
  color: #fff;
}

.messenger-preview-icon svg {
  width: 20px;
  height: 20px;
}

.messenger-preview-head small,
.messenger-preview-head strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messenger-preview-head small {
  color: #667085;
  font-size: 12px;
}

.messenger-preview-head strong {
  color: #344054;
  font-size: 16px;
  font-weight: 400;
}

.messenger-preview-bubble {
  display: grid;
  gap: 7px;
  padding: 10px;
  border-radius: 14px;
  background: #f5f5f5;
}

.messenger-preview-bubble p {
  display: -webkit-box;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  color: #344054;
  font-size: 13px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.messenger-preview-image-card {
  display: grid;
  overflow: visible;
  border-radius: 9px;
  background: #f8f9fb;
}

.messenger-preview-image {
  display: grid;
  min-height: 68px;
  max-height: 148px;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  background: #f2f0ff;
  color: #8b92a0;
}

.messenger-preview-image-card.has-buttons .messenger-preview-image {
  border-radius: 9px 9px 0 0;
}

.messenger-preview-image.empty svg {
  width: 20px;
  height: 20px;
}

.messenger-preview-image.has-image {
  background: #f4f6f8;
}

.messenger-preview-image img {
  display: block;
  width: 100%;
  max-height: 148px;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.messenger-preview-card-block {
  display: grid;
  overflow: visible;
  border-radius: 9px;
  background: #f8f9fb;
}

.messenger-preview-card-image {
  position: relative;
  display: grid;
  aspect-ratio: 1.91 / 1;
  min-height: 82px;
  max-height: 148px;
  place-items: center;
  overflow: visible;
  border-radius: 9px 9px 0 0;
  background: #f2f0ff;
  color: #8b92a0;
}

.messenger-preview-card-block.aspect-square .messenger-preview-card-image {
  aspect-ratio: 1 / 1;
  min-height: 0;
  max-height: none;
}

.messenger-preview-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.messenger-preview-card-image.empty svg {
  width: 20px;
  height: 20px;
}

.video-redirect-preview-block .messenger-preview-card-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1.91 / 1;
  min-height: 0;
  max-height: none;
  overflow: visible;
}

.video-redirect-preview-block.aspect-square .messenger-preview-card-image {
  aspect-ratio: 1 / 1;
}

.video-redirect-preview-block {
  position: relative;
  width: 100%;
}

.video-redirect-preview-media {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: inherit;
  background: #f7f8fb;
}

.video-redirect-preview-media img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.video-redirect-preview-media svg {
  width: 20px;
  height: 20px;
}

.messenger-preview-card-copy {
  display: grid;
  gap: 3px;
  min-height: 52px;
  padding: 8px 9px;
  background: #fff;
}

.messenger-preview-card-copy strong,
.messenger-preview-card-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messenger-preview-card-copy strong {
  color: #202832;
  font-size: 12px;
  font-weight: 700;
}

.messenger-preview-card-copy span {
  color: #667085;
  font-size: 11px;
}

.messenger-preview-audio-card {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 54px;
  padding: 9px;
  border-radius: 9px;
  background: #f4f6f8;
  color: #344054;
}

.messenger-preview-audio-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #e8f1ff;
  color: #0877ff;
}

.messenger-preview-audio-icon svg {
  width: 15px;
  height: 15px;
}

.messenger-preview-audio-card audio {
  width: 100%;
  min-width: 0;
  height: 32px;
}

.messenger-preview-audio-card.empty {
  color: #667085;
  font-size: 12px;
  font-weight: 600;
}

.messenger-preview-image-buttons {
  display: grid;
  gap: 5px;
  padding: 7px;
  border-radius: 0 0 9px 9px;
  background: #f8f9fb;
}

.messenger-preview-image-button {
  position: relative;
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 6px 24px 6px 8px;
  border-radius: 5px;
  background: #fff;
  color: #17212b;
  font-size: 12px;
  text-align: center;
}

.messenger-preview-image-button span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messenger-preview-button,
.messenger-preview-quick-reply,
.messenger-preview-aux-output,
.messenger-preview-image-button,
.messenger-preview-next {
  position: relative;
}

.messenger-preview-button {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 7px 22px 7px 8px;
  border-radius: 8px;
  background: #fff;
  color: #17212b;
  font-size: 13px;
  text-align: center;
}

.messenger-preview-button small {
  margin-left: 5px;
  color: #0877ff;
  font-size: 11px;
  white-space: nowrap;
}

.published-node-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.published-node-metrics span {
  display: grid;
  gap: 2px;
  text-align: center;
}

.published-node-metrics b {
  color: #0877ff;
  font-size: 15px;
  font-weight: 500;
}

.published-node-metrics small {
  color: #667085;
  font-size: 11px;
}

.messenger-preview-button.connected,
.messenger-preview-quick-reply.connected,
.messenger-preview-aux-output.connected,
.messenger-preview-image-button.connected,
.messenger-preview-next.connected {
  color: var(--green-dark);
}

.messenger-preview-meta {
  overflow: hidden;
  color: #667085;
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messenger-preview-quick-replies,
.messenger-preview-aux-outputs {
  display: grid;
  gap: 5px;
}

.messenger-preview-quick-reply,
.messenger-preview-aux-output {
  display: flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 22px 5px 8px;
  border: 1px solid #dbe4ee;
  border-radius: 999px;
  color: #344054;
  font-size: 12px;
}

.messenger-preview-aux-output {
  border-radius: 7px;
}

.messenger-preview-next {
  display: flex;
  min-height: 24px;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  color: #667085;
  font-size: 13px;
}

.messenger-preview-node .message-node-port {
  right: -21px;
}

.messenger-preview-button .message-node-port {
  right: -21px;
}

.messenger-preview-card-image .message-node-port {
  top: 50%;
  right: -21px;
  transform: translateY(-50%);
}

.published-view .node {
  cursor: pointer;
}

.published-view .node.comment.published-comment-node {
  min-height: 0;
  cursor: default;
}

.published-view .node-port {
  pointer-events: none;
}

.published-view .node-action,
.published-view .trigger-add-button {
  display: none;
}

.node-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  padding-top: 8px;
  border-top: 1px solid #eef2f5;
}

.node-action {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}

.node-action svg {
  width: 15px;
  height: 15px;
}

.inspector-form {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: #2d3831;
  font-size: 12px;
  font-weight: 800;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

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

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--green);
  outline: 3px solid rgba(29, 138, 91, 0.14);
}

.inline-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

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

.meta-flow-launcher {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.meta-flow-select {
  width: min(240px, 34vw);
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.simulator {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 430px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #f9fbf8;
}

.sim-header,
.chat-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.sim-messages {
  display: grid;
  align-content: start;
  gap: 8px;
  overflow: auto;
  padding: 12px;
}

.bubble {
  display: grid;
  gap: 6px;
  max-width: 88%;
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.bubble.inbound,
.bubble.bot {
  justify-self: start;
  background: #e9f4ee;
}

.bubble.outbound,
.bubble.user {
  justify-self: end;
  background: #eaf0f7;
}

.bubble.system {
  justify-self: center;
  max-width: min(520px, 92%);
  border: 1px solid #d8e6dc;
  background: #f7fbf8;
  color: #27372d;
}

.bubble.attribution-event {
  border-color: #b9d9c5;
  background: #f2fbf5;
}

.attribution-chat-event svg {
  color: #087443;
}

.settings-hint {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.attribution-summary-list {
  display: grid;
  gap: 8px;
}

.attribution-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.attribution-summary-row div,
.attribution-summary-metrics {
  display: grid;
  gap: 3px;
}

.attribution-summary-row span,
.attribution-summary-row small {
  color: var(--muted);
  font-size: 11.5px;
}

.attribution-summary-metrics {
  justify-items: end;
  text-align: right;
}

.origins-panel {
  overflow: hidden;
}

.origins-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfa;
}

.origins-search-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.origins-search-hint svg {
  width: 17px;
  height: 17px;
  color: #087443;
}

.origins-error {
  margin: 12px 14px 0;
}

.origins-table {
  min-width: 1040px;
}

.origins-table td {
  vertical-align: middle;
}

.origins-table strong,
.origin-table-detail {
  display: block;
}

.origin-table-detail {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.origin-source-key {
  padding: 4px 6px;
  border: 1px solid #cce7d6;
  border-radius: 4px;
  background: #f2fbf5;
  color: #087443;
  font-size: 12px;
  white-space: nowrap;
}

.origin-table-actions {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}

.origin-table-actions .icon-button {
  width: 30px;
  height: 30px;
}

.origin-table-actions svg {
  width: 15px;
  height: 15px;
}

.unread-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  color: #0f7d5d;
  font-size: 12px;
  font-weight: 800;
}

.unread-divider::before,
.unread-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #bfe4d8;
}

.pixel-chat-event {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.pixel-chat-event svg {
  width: 17px;
  height: 17px;
  color: var(--green-dark);
}

.pixel-chat-event div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.pixel-chat-event-meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  margin-top: 3px;
}

.pixel-chat-event-meta small {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 2px 6px;
  border-radius: 999px;
  background: #e8f3ec;
  color: #087443;
  font-size: 10.5px;
  font-weight: 800;
}

.pixel-chat-event strong,
.pixel-chat-event span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.pixel-chat-event span {
  color: var(--muted);
  font-size: 11.5px;
  white-space: nowrap;
}

.pixel-chat-event .pixel-chat-event-url {
  display: block;
  max-width: 100%;
  overflow: visible;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.35;
  text-decoration: none;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pixel-chat-event a.pixel-chat-event-url:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

.pixel-link-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  margin-top: 4px;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
}

.pixel-link-status.linked {
  background: #e3f7ec;
  color: #087443;
}

.pixel-link-status.anonymous {
  background: #f1f5f9;
  color: #667085;
}

.pixel-event-tracking-meta {
  display: inline-flex;
  width: fit-content;
  color: #087443;
  font-size: 10.5px;
  font-weight: 800;
}

.bubble .muted,
.bubble-meta {
  font-size: 11px;
}

.bubble-meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}

.bubble-meta time {
  color: #4b5a68;
  font-weight: 800;
}

.message-attachment {
  display: grid;
  gap: 7px;
  min-width: min(260px, 70vw);
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  color: inherit;
  text-decoration: none;
}

.message-audio audio,
.message-video video {
  width: 100%;
  max-width: 320px;
}

.message-image {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  background: #f8fafc;
}

.message-image img,
.message-sticker img {
  display: block;
  width: auto;
  max-width: min(100%, 360px);
  height: auto;
  max-height: 420px;
  object-fit: contain;
}

.message-sticker {
  min-width: 0;
  width: fit-content;
  padding: 6px;
  background: rgba(255, 255, 255, 0.72);
}

.message-sticker img {
  width: auto;
  max-width: 150px;
  max-height: 150px;
  object-fit: contain;
}

.message-sticker-placeholder {
  min-width: 0;
  width: fit-content;
  color: var(--muted);
  font-weight: 800;
}

.message-file {
  color: var(--blue);
  font-weight: 700;
}

.chat-input {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.chat-input input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

.contact-list {
  display: grid;
  gap: 8px;
  max-height: calc(100vh - 194px);
  overflow: auto;
  padding: 12px;
}

.avatar {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: #e8f3ec;
  color: var(--green-dark);
  font-weight: 800;
}

.contact-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
}

.chat-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: calc(100vh - 122px);
}

.conversations-panel {
  min-height: calc(100vh - 122px);
}

.conversations-header {
  width: 100%;
  align-items: flex-start;
}

.conversations-header .button-row {
  justify-content: flex-end;
}

.conversations-panel .live-inbox {
  min-height: calc(100vh - 178px);
}

.conversation {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 360px;
  max-height: calc(100vh - 244px);
  overflow: auto;
  padding: 18px;
  background: #fbfcfa;
}

.composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.composer textarea {
  width: 100%;
  min-height: 42px;
  max-height: 110px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
}

.table-wrap {
  overflow: auto;
}

.data-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: #3d4941;
  font-size: 12px;
  text-transform: uppercase;
}

.data-table td {
  font-size: 13px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfa;
}

.filter-bar select,
.filter-bar input {
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.subscribers-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.75fr);
  gap: 14px;
  align-items: start;
}

.subscribers-main-panel,
.subscriber-detail-panel {
  overflow: hidden;
}

.subscriber-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.subscriber-summary-strip .setting-metric-inline {
  border: 0;
  border-radius: 0;
}

.subscriber-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfa;
}

.subscriber-toolbar select {
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.subscriber-list {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.subscriber-list-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  width: 100%;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.subscriber-list-item:hover,
.subscriber-list-item.active {
  border-color: #8ccaa9;
  background: #f7fcf8;
}

.subscriber-avatar,
.subscriber-detail-avatar {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #e6f3ed;
  color: var(--green-dark);
  font-weight: 900;
}

.subscriber-avatar {
  width: 42px;
  height: 42px;
  font-size: 13px;
}

.subscriber-list-main,
.subscriber-list-title,
.subscriber-list-side {
  min-width: 0;
}

.subscriber-list-main,
.subscriber-list-side {
  display: grid;
  gap: 4px;
}

.subscriber-list-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.subscriber-list-title strong,
.subscriber-detail-header h2 {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subscriber-list-title strong {
  font-size: 14px;
}

.subscriber-list-meta,
.subscriber-list-message,
.subscriber-list-side small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subscriber-list-side {
  justify-items: end;
}

.subscriber-detail-panel {
  position: sticky;
  top: 12px;
}

.subscriber-detail-header {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfa;
}

.subscriber-detail-avatar {
  width: 52px;
  height: 52px;
  font-size: 15px;
}

.subscriber-detail-header h2 {
  margin: 0;
  font-size: 17px;
}

.subscriber-detail-header span {
  color: var(--muted);
  font-size: 12px;
}

.subscriber-detail-body {
  display: grid;
  gap: 14px;
  padding: 14px;
}

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

.subscriber-detail-section {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.subscriber-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.subscriber-section-title strong {
  color: var(--ink);
  font-size: 13px;
}

.subscriber-section-title > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.subscriber-field-list {
  display: grid;
  gap: 8px;
}

.subscriber-field-row {
  display: grid;
  grid-template-columns: minmax(105px, 0.8fr) minmax(0, 1fr) 34px;
  gap: 8px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.subscriber-field-row > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.subscriber-field-row strong,
.subscriber-field-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.subscriber-field-row strong {
  color: var(--ink);
  font-size: 12px;
}

.subscriber-field-row small {
  color: var(--muted);
  font-size: 11px;
}

.subscriber-field-row input,
.subscriber-field-row select {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.subscriber-fields-empty {
  padding: 12px;
  border: 1px dashed #cfd8e3;
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
}

.badge.active {
  background: var(--mint);
  color: var(--green-dark);
}

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

  .subscriber-detail-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .subscriber-summary-strip,
  .subscriber-edit-grid {
    grid-template-columns: 1fr;
  }

  .subscriber-list-item {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .subscriber-list-side {
    grid-column: 2;
    justify-items: start;
  }

  .subscriber-field-row {
    grid-template-columns: minmax(0, 1fr) 34px;
  }

  .subscriber-field-row input,
  .subscriber-field-row select {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

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

.broadcast-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.broadcast-summary > span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 12px 14px;
  background: #fbfcfa;
}

.broadcast-summary strong {
  font-size: 22px;
  line-height: 1.1;
}

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

.campaign-item {
  display: grid;
  gap: 8px;
}

.campaign-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.campaign-item.active {
  border-color: #8ccaa9;
  background: #f7fcf8;
}

.conversation-list-item.has-unread {
  border-color: rgba(22, 134, 95, 0.55);
  border-left: 4px solid var(--green);
  background: #f4fbf7;
}

.conversation-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.conversation-snippet {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  min-height: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--green);
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 800;
  line-height: 1;
}

.unread-badge.new {
  background: #0f62fe;
}

.thread-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.thread-status-row strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.broadcast-page-list {
  gap: 10px;
}

.manual-flow-dispatcher {
  display: grid;
  gap: 12px;
  margin: 14px 18px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.manual-flow-dispatcher > div:first-child {
  display: grid;
  gap: 3px;
}

.manual-flow-dispatcher strong {
  color: var(--ink);
  font-size: 14px;
}

.manual-flow-dispatcher span,
.manual-flow-dispatcher .muted {
  color: var(--muted);
  font-size: 12px;
}

.manual-flow-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1.3fr) minmax(180px, 1fr) 120px auto;
  gap: 10px;
  align-items: end;
}

.manual-flow-grid label {
  display: grid;
  gap: 5px;
}

.manual-flow-grid select,
.manual-flow-grid input {
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.broadcast-page-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.broadcast-page-card strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.broadcast-page-card span {
  color: var(--muted);
  font-size: 12px;
}

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

.broadcast-page-metrics span {
  display: grid;
  gap: 2px;
  padding: 8px;
  border-radius: 8px;
  background: #fff;
}

.broadcast-page-metrics strong {
  font-size: 18px;
}

.broadcast-page-metrics small {
  color: var(--muted);
  font-size: 11px;
}

.broadcast-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
  gap: 14px;
}

.broadcast-main-panel,
.broadcast-side-panel {
  min-width: 0;
}

.broadcast-main-panel .broadcast-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.broadcast-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 42%);
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}

.broadcast-toolbar strong,
.broadcast-campaign-card strong {
  display: block;
}

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

.broadcast-sample {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.broadcast-campaign-card {
  gap: 12px;
}

.broadcast-campaign-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.broadcast-campaign-metrics .setting-metric-inline {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.broadcast-recipient-history {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
  border: 1px solid #edf1f5;
  border-radius: 8px;
  background: #fff;
}

.broadcast-recipient-history > span {
  display: grid;
  min-width: 0;
}

.broadcast-recipient-history strong,
.broadcast-recipient-history small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.broadcast-recipient-history small {
  color: var(--muted);
  font-size: 11px;
}

.broadcast-live-log {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid #edf1f5;
  border-radius: 8px;
  background: #fbfcfd;
}

.broadcast-live-log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.broadcast-live-log-head span,
.broadcast-log-row small,
.broadcast-log-empty {
  color: var(--muted);
  font-size: 11px;
}

.broadcast-log-row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  font-size: 12px;
}

.broadcast-log-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.broadcast-log-row.error span {
  color: #b42318;
}

.broadcast-log-row.warn span {
  color: #8a5a00;
}

.live-inbox {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  min-height: calc(100vh - 188px);
}

.live-thread-list {
  display: grid;
  align-content: start;
  gap: 8px;
  overflow: auto;
  max-height: calc(100vh - 188px);
  padding: 12px;
  border-right: 1px solid var(--line);
  background: #fbfcfa;
}

.live-thread {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
}

.progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef1ee;
}

.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

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

.integration {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.integration-head {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
}

.integration-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: #edf7f8;
  color: var(--teal);
}

.integration-icon svg {
  width: 22px;
  height: 22px;
}

.code-block {
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #17201b;
  color: #f5f7f4;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.5;
}

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

.settings-wide-panel {
  grid-column: 1 / -1;
}

.video-redirect-test-panel {
  display: grid;
  gap: 14px;
}

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

.video-redirect-test-upload-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.video-redirect-test-upload-row .secondary-button.compact {
  min-height: 38px;
  padding: 0 10px;
  white-space: nowrap;
}

.video-redirect-test-result {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfb;
}

.video-redirect-test-result strong {
  color: var(--ink);
  font-size: 12px;
}

.video-redirect-test-result code {
  overflow-wrap: anywhere;
  color: #334155;
  font-size: 11px;
}

.json-template-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
}

.json-template-list {
  display: grid;
  gap: 12px;
}

.json-template-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.json-template-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.json-template-card-header strong,
.json-template-card-header span,
.json-template-card-header small {
  display: block;
}

.json-template-card-header strong {
  color: var(--ink);
  font-size: 14px;
}

.json-template-card-header span,
.json-template-card-header small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.json-template-code {
  max-height: 320px;
  margin: 0;
  white-space: pre;
}

.json-template-modal {
  width: min(780px, 100%);
}

.json-template-modal textarea {
  min-height: 360px;
  resize: vertical;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.45;
}

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

.ad-flow-test {
  display: grid;
  gap: 14px;
}

.ad-flow-test-config {
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) minmax(160px, 0.85fr) minmax(150px, 0.75fr) minmax(220px, 1.15fr);
  gap: 6px;
  align-items: start;
}

.ad-flow-test-config label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.ad-flow-test-config select {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
}

.ad-flow-test-config small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.ad-flow-test-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ad-flow-test-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ad-flow-test-step {
  display: grid;
  gap: 5px;
  min-height: 104px;
  padding: 12px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #f8fafc;
}

.ad-flow-test-step span {
  width: max-content;
  min-width: 30px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #e5e7eb;
  color: #475569;
  font-size: 10px;
  font-weight: 800;
}

.ad-flow-test-step.ok {
  border-color: #a7f3d0;
  background: #f0fdf4;
}

.ad-flow-test-step.ok span {
  background: #dcfce7;
  color: #166534;
}

.ad-flow-test-step strong {
  color: var(--ink);
  font-size: 13px;
}

.ad-flow-test-step small,
.ad-flow-test-result small,
.ad-flow-test-log small,
.ad-flow-test-log time {
  color: var(--muted);
  font-size: 11px;
}

.ad-flow-test-result {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #f8fafc;
}

.ad-flow-test-result strong {
  color: var(--ink);
  font-size: 14px;
}

.ad-flow-test-result span {
  color: #526070;
  font-size: 12px;
}

.ad-flow-test-result.ok {
  border-color: #a7f3d0;
  background: #f0fdf4;
}

.ad-flow-test-result.warn {
  border-color: #fde68a;
  background: #fffbeb;
}

.ad-flow-test-result.error {
  border-color: #fecaca;
  background: #fff7f7;
}

.ad-flow-test-log {
  display: grid;
  gap: 8px;
}

.ad-flow-test-log article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.ad-flow-test-log strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
}

@media (max-width: 900px) {
  .ad-flow-test-config,
  .ad-flow-test-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .ad-flow-test-config,
  .ad-flow-test-grid,
  .ad-flow-test-log article {
    grid-template-columns: 1fr;
  }
}

.tag-folder-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.tag-folder-row strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.tag-folder-row span {
  color: var(--muted);
  font-size: 12px;
}

.tag-folder-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.custom-field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.custom-field-row-title {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.custom-field-row strong {
  color: var(--ink);
  font-size: 13px;
}

.custom-field-row > div > span,
.custom-field-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.contact-custom-fields {
  display: grid;
  gap: 5px;
  min-width: 150px;
}

.contact-custom-field {
  display: grid;
  gap: 1px;
}

.contact-custom-field strong {
  color: #344054;
  font-size: 11px;
}

.contact-custom-field span,
.contact-custom-fields small {
  color: var(--muted);
  font-size: 11px;
}

.setting-metric-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

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

.setting-metric-inline strong {
  color: var(--ink);
  font-size: 18px;
}

.flow-log-list {
  display: grid;
  max-height: 540px;
  overflow: auto;
  gap: 10px;
  padding-right: 4px;
}

.ad-entry-monitor {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #f8fbff;
}

.ad-entry-monitor-header,
.ad-entry-monitor-row-title,
.ad-entry-monitor-meta,
.flow-log-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ad-entry-monitor-header,
.ad-entry-monitor-row-title,
.flow-log-filter-bar {
  justify-content: space-between;
}

.ad-entry-monitor-header > div {
  display: grid;
  gap: 3px;
}

.ad-entry-monitor-header strong,
.flow-log-filter-bar > strong {
  color: var(--ink);
  font-size: 13px;
}

.ad-entry-monitor-header span:not(.badge),
.ad-entry-monitor-row small,
.ad-entry-monitor-row time {
  color: var(--muted);
  font-size: 11px;
}

.ad-entry-monitor-list {
  display: grid;
  gap: 8px;
}

.ad-entry-monitor-row {
  display: grid;
  gap: 7px;
  padding: 10px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #fff;
}

.ad-entry-monitor-row.warn {
  border-color: #fde68a;
  background: #fffbeb;
}

.ad-entry-monitor-row-title strong {
  color: var(--ink);
  font-size: 12px;
}

.flow-log-filter-bar {
  margin-bottom: 10px;
  padding: 8px 0;
}

.webhook-diagnostic {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: #f8fafc;
}

.webhook-diagnostic.ok {
  border-color: #b7ebd0;
  background: #f0fdf4;
}

.webhook-diagnostic.warn {
  border-color: #fde68a;
  background: #fffbeb;
}

.webhook-diagnostic.error {
  border-color: #fecaca;
  background: #fff7f7;
}

.webhook-diagnostic strong {
  color: var(--ink);
  font-size: 13px;
}

.webhook-diagnostic > span:not(.badge) {
  color: var(--muted);
  font-size: 12px;
}

.webhook-diagnostic pre {
  flex-basis: 100%;
  overflow: auto;
  margin: 0;
  padding: 8px;
  border-radius: 6px;
  background: #fff;
  font-size: 11px;
}

.webhook-delivery-probe {
  display: grid;
  flex-basis: 100%;
  gap: 5px;
  margin-top: 4px;
  padding: 9px;
  border: 1px solid #dbe5ef;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.webhook-delivery-probe.warn {
  border-color: #facc15;
}

.webhook-delivery-probe.ok {
  border-color: #86efac;
}

.webhook-delivery-probe strong {
  font-size: 12px;
}

.flow-log-row {
  display: grid;
  gap: 7px;
  padding: 11px;
  border: 1px solid var(--line);
  border-left: 4px solid #5d6b82;
  border-radius: 8px;
  background: #fff;
}

.flow-log-row.warn {
  border-left-color: #f59e0b;
  background: #fffbeb;
}

.flow-log-row.error {
  border-left-color: #dc2626;
  background: #fff7f7;
}

.flow-log-main,
.flow-log-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.flow-log-main strong {
  min-width: min(100%, 280px);
  color: var(--ink);
  font-size: 13px;
}

.flow-log-main > span:last-child,
.flow-log-meta span {
  color: var(--muted);
  font-size: 11px;
}

.flow-log-level {
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef2f7;
  color: #344054;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.flow-log-row.warn .flow-log-level {
  background: #fef3c7;
  color: #92400e;
}

.flow-log-row.error .flow-log-level {
  background: #fee2e2;
  color: #991b1b;
}

.flow-log-row pre {
  max-height: 220px;
  overflow: auto;
  margin: 0;
  padding: 10px;
  border: 1px solid #e1e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  font-size: 11px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.pixel-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.6fr);
  gap: 18px;
}

.pixel-wide-panel {
  grid-column: 1 / -1;
}

.pixel-install-body {
  display: grid;
  gap: 12px;
}

.pixel-snippet {
  margin: 0;
  white-space: pre-wrap;
}

.pixel-hint-grid {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.pixel-hint-grid code {
  padding: 1px 5px;
  border-radius: 5px;
  background: #eef2f7;
  color: #27364a;
}

.pixel-range-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.pixel-top-list,
.pixel-event-list {
  display: grid;
  gap: 10px;
}

.pixel-top-row,
.pixel-event-row {
  display: grid;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.pixel-top-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.pixel-top-row strong,
.pixel-event-main strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.pixel-top-row span,
.pixel-event-main span,
.pixel-event-meta span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pixel-event-row {
  grid-template-columns: 92px minmax(0, 1fr) minmax(170px, auto);
}

.pixel-event-meta {
  display: grid;
  justify-items: end;
  gap: 3px;
}

.pixel-site-entry-bubble {
  display: grid;
  justify-self: center;
  justify-items: center;
  max-width: min(100%, 420px);
  gap: 5px;
  padding: 10px 14px;
  border: 1px solid #cfe3d8;
  border-radius: 999px;
  background: #f1fbf5;
  color: var(--green-dark);
  text-align: center;
}

.pixel-site-entry-bubble span {
  display: none;
}

.pixel-site-entry-bubble strong {
  color: var(--green-dark);
  font-size: 12px;
}

.pixel-site-entry-bubble small {
  max-width: 100%;
  overflow: hidden;
  color: #5a7569;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button.danger {
  color: var(--red);
}

.media-library-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

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

.media-upload-card {
  width: 100%;
  min-height: 220px;
  border: 1px dashed var(--line-strong);
}

.media-upload-card:disabled {
  cursor: wait;
  opacity: 0.68;
}

.media-asset-list {
  display: grid;
  gap: 12px;
}

.media-asset-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.media-asset-preview {
  display: grid;
  min-height: 104px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.media-asset-preview.image {
  min-height: 150px;
  background:
    linear-gradient(45deg, #edf1f4 25%, transparent 25%),
    linear-gradient(-45deg, #edf1f4 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #edf1f4 75%),
    linear-gradient(-45deg, transparent 75%, #edf1f4 75%);
  background-color: #fff;
  background-position:
    0 0,
    0 10px,
    10px -10px,
    -10px 0;
  background-size: 20px 20px;
}

.media-asset-preview img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
}

.media-asset-preview audio {
  width: calc(100% - 18px);
}

.media-asset-preview video {
  width: 100%;
  max-height: 180px;
  background: #0f172a;
}

.media-asset-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.media-asset-main strong,
.media-asset-main span,
.media-asset-main code,
.media-asset-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-asset-main span,
.media-asset-main small {
  color: var(--muted);
  font-size: 12px;
}

.media-asset-main code {
  padding: 4px 6px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #334155;
  font-size: 11px;
}

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

.image-tool-panel {
  min-height: calc(100vh - 126px);
}

.image-tool-body {
  display: grid;
  gap: 14px;
}

.image-dropzone {
  display: grid;
  min-height: 320px;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 28px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: #fbfcfa;
  color: var(--muted);
  text-align: center;
  cursor: pointer;
}

.image-dropzone:hover {
  border-color: #8ccaa9;
  background: #f7fcf8;
}

.image-dropzone svg {
  width: 44px;
  height: 44px;
  color: var(--green);
}

.image-dropzone strong {
  color: var(--ink);
  font-size: 18px;
}

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

.image-preview-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.image-preview-frame {
  display: grid;
  min-height: 300px;
  place-items: center;
  padding: 12px;
  background:
    linear-gradient(45deg, #edf1f4 25%, transparent 25%),
    linear-gradient(-45deg, #edf1f4 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #edf1f4 75%),
    linear-gradient(-45deg, transparent 75%, #edf1f4 75%);
  background-color: #fff;
  background-position:
    0 0,
    0 10px,
    10px -10px,
    -10px 0;
  background-size: 20px 20px;
}

.image-preview-frame.empty {
  align-content: center;
  gap: 8px;
  color: var(--muted);
  background: #f8fafc;
}

.image-preview-frame.empty svg {
  width: 34px;
  height: 34px;
}

.image-preview-frame img {
  max-width: 100%;
  max-height: 420px;
  border-radius: 8px;
  object-fit: contain;
}

.image-preview-meta {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.image-preview-meta strong {
  font-size: 14px;
}

.image-preview-meta span,
.image-result-bar span span {
  color: var(--muted);
  font-size: 12px;
}

.image-result-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.image-result-bar > span {
  display: grid;
  gap: 3px;
  padding: 12px;
  background: #fff;
}

.image-result-bar strong {
  font-size: 18px;
}

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

.video-dropzone {
  min-height: 260px;
}

.video-preview-frame video {
  width: 100%;
  max-height: 460px;
  border-radius: 8px;
  background: #0f172a;
}

.audio-preview-frame {
  display: grid;
  min-height: 300px;
  place-items: center;
  align-content: center;
  gap: 16px;
  padding: 20px;
  background: #f8fafc;
}

.audio-preview-frame svg {
  width: 44px;
  height: 44px;
  color: var(--green);
}

.audio-preview-frame audio {
  width: min(100%, 520px);
}

.video-control-panel {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(180px, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.video-control-panel .toggle-row {
  min-height: 40px;
  align-items: center;
  padding-bottom: 2px;
}

.video-progress {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid #b7ebd0;
  border-radius: 8px;
  background: #f0fdf4;
}

.video-progress span {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}

.video-progress div {
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: #d6f4e2;
}

.video-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.video-output-card {
  max-width: 920px;
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 36px 18px;
  color: var(--muted);
  text-align: center;
}

.empty-state svg {
  width: 40px;
  height: 40px;
  color: var(--green);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  max-width: min(390px, calc(100vw - 44px));
  padding: 12px 14px;
  border: 1px solid #a8d3ba;
  border-radius: 8px;
  background: #f6fff9;
  color: #143a27;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.42);
}

.app-modal {
  width: min(520px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.modal-header h2 {
  margin: 0;
  font-size: 18px;
}

.modal-header span,
.modal-body p,
.modal-field > span,
.modal-field > label {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.modal-body {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.modal-body p {
  margin: 0;
}

.modal-fields {
  padding-bottom: 4px;
}

.modal-field > span:first-child {
  color: #2d3831;
  font-size: 12px;
  font-weight: 800;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px 16px;
}

.modal-error {
  margin: 0;
  padding: 9px 10px;
  border: 1px solid #f0c8c1;
  border-radius: 8px;
  background: #fff5f3;
  color: var(--red);
  font-size: 13px;
}

.tag-create-modal {
  width: min(360px, 100%);
  border-radius: 5px;
}

.tag-create-modal .modal-header {
  position: relative;
  justify-content: center;
  padding: 8px 42px 9px;
}

.tag-create-modal .modal-header h2 {
  font-size: 16px;
  text-align: center;
}

.tag-create-modal .modal-header .icon-button {
  position: absolute;
  top: 6px;
  right: 8px;
}

.tag-create-modal .modal-body {
  gap: 9px;
  padding: 22px 24px 14px;
}

.tag-create-modal .modal-intro {
  margin-bottom: 8px;
  color: #6b7280;
  font-size: 11px;
  line-height: 1.35;
}

.tag-create-modal .modal-field {
  gap: 5px;
}

.tag-create-modal .modal-field > span:first-child {
  color: #4b5563;
  font-size: 11px;
  font-weight: 600;
}

.tag-create-modal .modal-field input,
.tag-create-modal .modal-field select {
  min-height: 28px;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.tag-create-modal .modal-actions {
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line);
}

.custom-field-create-modal {
  width: min(384px, 100%);
  border-radius: 5px;
}

.custom-field-create-modal .modal-header {
  position: relative;
  justify-content: center;
  padding: 9px 42px 10px;
}

.custom-field-create-modal .modal-header h2 {
  font-size: 16px;
  text-align: center;
}

.custom-field-create-modal .modal-header .icon-button {
  position: absolute;
  top: 6px;
  right: 8px;
}

.custom-field-create-modal .modal-fields {
  grid-template-columns: minmax(0, 1fr) 98px;
  gap: 10px 12px;
  padding: 16px 20px 14px;
}

.custom-field-create-modal .modal-intro,
.custom-field-create-modal .modal-field:nth-of-type(3),
.custom-field-create-modal .modal-field:nth-of-type(4),
.custom-field-create-modal .modal-error {
  grid-column: 1 / -1;
}

.custom-field-create-modal .modal-intro {
  color: #6b7280;
  font-size: 11px;
  line-height: 1.35;
}

.custom-field-create-modal .modal-field {
  gap: 5px;
}

.custom-field-create-modal .modal-field > span:first-child {
  color: #4b5563;
  font-size: 11px;
  font-weight: 600;
}

.custom-field-create-modal .modal-field input,
.custom-field-create-modal .modal-field select,
.custom-field-create-modal .modal-field textarea {
  min-height: 28px;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.custom-field-create-modal .modal-field textarea {
  min-height: 68px;
  resize: vertical;
}

.custom-field-create-modal .modal-actions {
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line);
}

.segmented {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.segmented button {
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
}

.segmented button:last-child {
  border-right: 0;
}

.segmented button.active {
  background: var(--mint);
  color: var(--green-dark);
  font-weight: 800;
}

@media (max-width: 1500px) {
  .page-grid,
  .two-column,
  .broadcast-workspace,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .page-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "list"
      "canvas"
      "inspector";
  }

  .page-grid > .flow-sidebar {
    grid-area: list;
  }

  .page-grid > .flow-sidebar .panel-body {
    display: grid;
    grid-template-columns: repeat(3, minmax(210px, 1fr));
    overflow: auto;
  }

  .page-grid > .canvas-shell {
    grid-area: canvas;
  }

  .page-grid > .inspector {
    grid-area: inspector;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }
}

@media (max-width: 1180px) {
  .canvas-toolbar {
    grid-template-columns: 1fr;
  }

  .canvas-panel-controls,
  .canvas-actions,
  .canvas-zoom {
    justify-content: flex-start;
  }
}

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

  .app-shell.sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .main-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav-button {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .app-shell.sidebar-collapsed .nav-button {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .nav-count {
    display: none;
  }

  .workspace-health {
    display: none;
  }

  .topbar {
    position: static;
    display: grid;
  }

  .topbar-actions {
    width: 100%;
  }

  .search-box {
    width: 100%;
    min-width: 0;
  }

  .workspace {
    padding: 14px;
  }

  .split-page {
    grid-template-columns: 1fr;
  }

  .broadcast-summary {
    grid-template-columns: 1fr;
  }

  .broadcast-main-panel .broadcast-summary,
  .broadcast-toolbar,
  .broadcast-campaign-metrics,
  .broadcast-recipient-history {
    grid-template-columns: 1fr;
  }

  .broadcast-sample {
    justify-content: flex-start;
  }

  .image-preview-grid,
  .image-result-bar,
  .media-upload-grid,
  .media-asset-card,
  .video-tool-grid,
  .video-control-panel {
    grid-template-columns: 1fr;
  }

  .media-asset-actions {
    justify-content: flex-start;
  }

  .chat-panel {
    min-height: 620px;
  }

  .conversations-header {
    flex-direction: column;
  }

  .conversations-header .button-row {
    justify-content: flex-start;
  }

  .live-inbox {
    grid-template-columns: 1fr;
  }

  .live-thread-list {
    max-height: 320px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .integration-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .main-nav {
    grid-template-columns: 1fr 1fr;
  }

  .topbar-actions {
    flex-wrap: wrap;
  }

  .icon-button {
    width: 38px;
    height: 38px;
  }

  .composer {
    grid-template-columns: 1fr;
  }

  .inline-fields {
    grid-template-columns: 1fr;
  }

  .flow-canvas {
    height: min(640px, calc(100vh - 120px));
  }

  .node {
    width: 220px;
  }
}

.page-grid.canvas-focused > .flow-sidebar,
.page-grid.canvas-focused > .inspector {
  grid-area: auto;
}

.page-grid.canvas-focused > .flow-sidebar .panel-body {
  display: grid;
  grid-template-columns: 1fr;
}

.app-shell.canvas-mode {
  --canvas-workspace-offset: 168px;
  grid-template-columns: 168px minmax(0, 1fr);
}

.app-shell.canvas-mode.sidebar-collapsed {
  --canvas-workspace-offset: 66px;
  grid-template-columns: 66px minmax(0, 1fr);
}

.app-shell.canvas-mode .sidebar {
  z-index: 50;
  padding: 10px 8px;
  background:
    linear-gradient(180deg, rgba(232, 244, 239, 0.78), rgba(255, 255, 255, 0.98) 32%),
    #ffffff;
}

.app-shell.canvas-mode .brand {
  padding: 2px 2px 8px;
}

.app-shell.canvas-mode .brand-mark {
  width: 30px;
  height: 30px;
}

.app-shell.canvas-mode .nav-button {
  min-height: 32px;
  padding: 5px 6px;
}

.app-shell.canvas-mode .nav-button svg {
  width: 17px;
  height: 17px;
}

.app-shell.canvas-mode .workspace-health,
.app-shell.canvas-mode .topbar {
  display: none;
}

.app-shell.canvas-mode .content-frame {
  min-width: 0;
  min-height: 100vh;
  background: #eef2f5;
}

.app-shell.canvas-mode .workspace {
  min-height: 100vh;
  padding: 0;
}

.app-shell.canvas-mode .page-grid.canvas-focused {
  --canvas-toolbar-height: 54px;
  --canvas-drawer-width: 292px;
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: none;
  gap: 0;
  height: 100vh;
  min-height: 100vh;
  align-items: stretch;
  background: #eef2f5;
}

.app-shell.canvas-mode .page-grid.canvas-focused.show-inspector {
  grid-template-columns: minmax(0, 1fr);
}

.app-shell.canvas-mode .page-grid.canvas-focused > .canvas-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  grid-area: 1 / 1;
  min-width: 0;
  min-height: 100vh;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.app-shell.canvas-mode .page-grid.canvas-focused.show-inspector > .canvas-shell {
  grid-area: 1 / 1;
}

.app-shell.canvas-mode .canvas-toolbar {
  position: relative;
  z-index: 25;
  height: var(--canvas-toolbar-height);
  min-height: var(--canvas-toolbar-height);
  padding: 6px 12px;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid #d5dde6;
  background: #ffffff;
}

.app-shell.canvas-mode .canvas-toolbar::-webkit-scrollbar {
  display: none;
}

.app-shell.canvas-mode .canvas-peek-button {
  position: absolute;
  top: calc(var(--canvas-toolbar-height) + (100% - var(--canvas-toolbar-height)) / 2);
  left: 8px;
  z-index: 80;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #cfd9e4;
  border-radius: 50%;
  background: #ffffff;
  color: #64748b;
  opacity: 0.86;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
  transform: translateY(-50%);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    color 0.15s ease,
    opacity 0.15s ease;
}

.app-shell.canvas-mode .page-grid.canvas-focused.show-inspector .canvas-peek-button {
  left: calc(var(--canvas-drawer-width) + 6px);
  opacity: 1;
}

.app-shell.canvas-mode .canvas-peek-button:hover,
.app-shell.canvas-mode .canvas-peek-button.active {
  opacity: 1;
  background: #ffffff;
  color: var(--green-dark);
}

.app-shell.canvas-mode .canvas-peek-button:hover {
  border-color: #a8d8bf;
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.16);
}

.app-shell.canvas-mode .canvas-peek-button::after {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  width: max-content;
  max-width: 180px;
  padding: 5px 7px;
  border-radius: 4px;
  background: rgba(23, 33, 43, 0.92);
  color: #ffffff;
  content: attr(data-tooltip);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-3px);
  transition:
    opacity 0.12s ease,
    transform 0.12s ease;
}

.app-shell.canvas-mode .canvas-peek-button:hover::after,
.app-shell.canvas-mode .canvas-peek-button:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.app-shell.canvas-mode .canvas-peek-button svg {
  width: 15px;
  height: 15px;
}

.app-shell.canvas-mode .canvas-toolbar .tight-stack {
  flex: 1 1 260px;
  min-width: 190px;
  gap: 1px;
}

.app-shell.canvas-mode .canvas-toolbar .muted {
  display: block;
  max-width: 480px;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell.canvas-mode .published-flow-name {
  display: block;
  min-height: 30px;
  padding: 5px 8px;
  color: var(--ink);
  font-size: 14px;
}

.published-view-banner {
  position: absolute;
  top: 53px;
  left: 50%;
  z-index: 45;
  display: flex;
  min-height: 27px;
  align-items: center;
  gap: 20px;
  padding: 4px 12px;
  border: 1px solid #efc57f;
  border-top: 0;
  border-radius: 0 0 4px 4px;
  background: #fff8e9;
  color: #a66a18;
  font-size: 11px;
  transform: translateX(-50%);
}

.published-view-banner button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #0067d9;
  font-size: 11px;
  text-decoration: underline;
}

.published-metrics-panel {
  display: grid;
  gap: 15px;
  padding-top: 14px;
  font-size: 12px;
}

.published-metric-filter {
  display: grid;
  gap: 6px;
}

.published-metric-filter span,
.published-button-metrics > strong {
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

.published-metric-filter select {
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid #d7e0ea;
  border-radius: 6px;
  background: #ffffff;
  color: #344054;
}

.published-reach-summary {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.published-reach-summary div {
  display: grid;
  gap: 3px;
}

.published-reach-summary strong {
  color: #17212b;
  font-size: 15px;
}

.published-reach-summary span {
  color: #667085;
  font-size: 11px;
}

.published-reach-summary b {
  color: #079447;
  font-size: 15px;
}

.published-metric-error {
  color: #b42318;
  font-size: 11px;
}

.published-metric-table {
  display: grid;
  gap: 0;
}

.published-metric-table-head,
.published-metric-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px 62px;
  gap: 6px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px dashed #d8dee7;
}

.published-metric-table-head {
  color: #667085;
  font-size: 10px;
}

.published-metric-row span {
  color: #475467;
}

.published-metric-row strong {
  color: #344054;
  font-size: 12px;
  font-weight: 500;
  text-align: right;
}

.published-metric-preview {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-top: 1px solid #e2e8ef;
  border-bottom: 1px solid #e2e8ef;
  color: #475467;
}

.published-metric-preview p {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
}

.published-button-metrics {
  display: grid;
  gap: 7px;
}

.published-button-metrics div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px;
  border: 1px solid #e2e8ef;
  border-radius: 6px;
  background: #ffffff;
}

.published-button-metrics span {
  min-width: 0;
  overflow: hidden;
  color: #344054;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.published-button-metrics b {
  color: #0877ff;
  font-size: 11px;
  white-space: nowrap;
}

.published-trigger-panel {
  min-height: 100%;
  margin: 0 -14px -14px;
  background: #ffffff;
}

.published-trigger-head {
  display: grid;
  min-height: 46px;
  place-items: center;
  background: #dcf7e8;
  color: #17212b;
  font-size: 15px;
  font-weight: 800;
}

.published-trigger-body {
  display: grid;
  gap: 22px;
  padding: 22px 14px;
}

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

.published-trigger-card,
.published-next-step-card {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 11px;
  border: 1px solid #d7dce4;
  border-radius: 6px;
}

.published-trigger-card {
  background: #f4f4f4;
}

.published-trigger-card > span:last-child,
.published-next-step-card > span:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.published-trigger-icon,
.published-next-step-icon {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #0877ff;
}

.published-trigger-icon svg,
.published-next-step-icon svg {
  width: 16px;
  height: 16px;
}

.published-trigger-card small,
.published-next-step-card small {
  color: #667085;
  font-size: 10px;
}

.published-trigger-card strong,
.published-next-step-card strong {
  color: #17212b;
  font-size: 12px;
  line-height: 1.35;
}

.published-trigger-card em {
  margin-top: 5px;
  color: #98a2b3;
  font-size: 10px;
  font-style: normal;
}

.published-trigger-divider {
  border-top: 1px solid #d7dce4;
}

.published-trigger-then {
  display: grid;
  gap: 10px;
}

.published-trigger-then > strong {
  color: #344054;
  font-size: 12px;
}

.published-next-step-card {
  background: #ffffff;
}

.published-next-step-card small {
  font-size: 11px;
}

.app-shell.canvas-mode .field-input {
  width: min(440px, 100%);
  min-height: 30px;
  padding: 3px 8px;
  border-color: transparent;
  background: transparent;
  font-size: 14px;
}

.app-shell.canvas-mode .sync-pill {
  min-height: 28px;
  padding: 0 9px;
}

.app-shell.canvas-mode .canvas-panel-controls,
.app-shell.canvas-mode .canvas-actions {
  flex: 0 0 auto;
  gap: 6px;
}

.app-shell.canvas-mode .canvas-zoom,
.app-shell.canvas-mode .sync-pill {
  flex: 0 0 auto;
}

.app-shell.canvas-mode .canvas-panel-controls .secondary-button,
.app-shell.canvas-mode .canvas-actions .chip-button,
.app-shell.canvas-mode .canvas-actions .secondary-button,
.app-shell.canvas-mode .canvas-actions .primary-button {
  height: 30px;
  min-height: 30px;
  padding: 0 9px;
}

.app-shell.canvas-mode .canvas-panel-controls .secondary-button {
  height: 30px;
}

.app-shell.canvas-mode .canvas-actions .icon-button {
  width: 30px;
  height: 30px;
}

.app-shell.canvas-mode .flow-status-pill {
  min-height: 28px;
  padding: 0 9px;
}

.app-shell.canvas-mode .canvas-zoom {
  height: 36px;
  box-sizing: border-box;
  padding: 3px;
}

.app-shell.canvas-mode .canvas-zoom .icon-button {
  width: 28px;
  height: 28px;
}

.app-shell.canvas-mode .canvas-zoom .secondary-button {
  height: 28px;
  min-height: 28px;
}

.app-shell.canvas-mode .flow-canvas {
  height: auto;
  min-height: 0;
  cursor: grab;
  background:
    radial-gradient(circle at 18px 18px, rgba(74, 91, 111, 0.2) 1px, transparent 1.2px),
    linear-gradient(#e2e8ef 1px, transparent 1px),
    linear-gradient(90deg, #e2e8ef 1px, transparent 1px);
  background-color: #eef2f5;
  background-size: 32px 32px;
  scrollbar-width: none;
  user-select: none;
}

.app-shell.canvas-mode .page-grid.canvas-focused.show-inspector > .canvas-shell > .flow-canvas {
  margin-left: var(--canvas-drawer-width);
}

.app-shell.canvas-mode .flow-canvas::-webkit-scrollbar {
  display: none;
}

.app-shell.canvas-mode .flow-canvas.panning {
  cursor: grabbing;
}

.app-shell.canvas-mode .canvas-floating-tools {
  position: absolute;
  top: 74px;
  right: 18px;
  z-index: 30;
  display: grid;
  gap: 8px;
  padding: 6px;
  border: 1px solid #d5dde6;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
}

.app-shell.canvas-mode .canvas-floating-tools .chip-button {
  width: 38px;
  min-height: 38px;
  padding: 0;
}

.app-shell.canvas-mode .canvas-floating-tools .chip-button span {
  display: none;
}

.app-shell.canvas-mode .canvas-floating-tools svg {
  width: 18px;
  height: 18px;
}

.app-shell.canvas-mode .node {
  border: 1px solid #d7e0ea;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
  cursor: grab;
}

.app-shell.canvas-mode .canvas-minimap {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 30;
  width: 184px;
  padding: 8px;
  border: 1px solid #d5dde6;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
  cursor: grab;
  pointer-events: auto;
  user-select: none;
}

.app-shell.canvas-mode .canvas-minimap.dragging {
  cursor: grabbing;
}

.app-shell.canvas-mode .canvas-add-menu {
  position: absolute;
  z-index: 90;
  display: grid;
  width: 154px;
  overflow: hidden;
  border: 1px solid #d3dae3;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.2);
}

.app-shell.canvas-mode .canvas-add-menu button {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  min-height: 29px;
  padding: 0 10px;
  border: 0;
  border-bottom: 1px solid #edf0f4;
  background: #fff;
  color: #0069df;
  font-size: 12px;
  text-align: left;
}

.app-shell.canvas-mode .canvas-add-menu button:hover {
  background: #f5f9ff;
}

.app-shell.canvas-mode .canvas-add-menu button.cancel {
  grid-template-columns: 1fr;
  border-bottom: 0;
  color: #667085;
}

.app-shell.canvas-mode .minimap-title {
  margin: 0 0 6px;
  color: #344054;
  font-size: 11px;
  font-weight: 800;
}

.app-shell.canvas-mode .canvas-minimap svg {
  width: 100%;
  height: auto;
  display: block;
  touch-action: none;
}

.app-shell.canvas-mode .minimap-bg {
  fill: #f8fafc;
  stroke: #d9e0e7;
  stroke-width: 1;
}

.app-shell.canvas-mode .minimap-link {
  stroke: #9aaec0;
  stroke-width: 1;
}

.app-shell.canvas-mode .minimap-node {
  fill: #256fc2;
  stroke: none;
}

.app-shell.canvas-mode .minimap-node.selected {
  fill: var(--green);
}

.app-shell.canvas-mode .minimap-viewport {
  fill: rgba(37, 111, 194, 0.1);
  stroke: #256fc2;
  stroke-width: 1.4;
}

.app-shell.canvas-mode .node.selected {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22, 134, 95, 0.16), 0 14px 28px rgba(15, 23, 42, 0.14);
}

.app-shell.canvas-mode .node-title svg {
  width: 28px;
  height: 28px;
}

.app-shell.canvas-mode .connection-layer .connection-line {
  stroke: #8096aa;
  stroke-width: 2;
}

.app-shell.canvas-mode .connection-link:hover .connection-line,
.app-shell.canvas-mode .connection-link:focus-within .connection-line {
  stroke: var(--green);
}

.app-shell.canvas-mode .page-grid.canvas-focused > .flow-sidebar {
  top: 58px;
  left: 12px;
  width: min(340px, calc(100vw - 32px));
  max-height: calc(100vh - 82px);
  border-radius: 8px;
  box-shadow: 0 24px 58px rgba(15, 23, 42, 0.22);
}

.app-shell.canvas-mode .page-grid.canvas-focused > .flow-sidebar .panel-body {
  max-height: calc(100vh - 170px);
}

.app-shell.canvas-mode .page-grid.canvas-focused > .inspector {
  position: absolute;
  top: var(--canvas-toolbar-height);
  left: 0;
  right: auto;
  z-index: 40;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: var(--canvas-drawer-width);
  height: calc(100vh - var(--canvas-toolbar-height));
  max-height: none;
  overflow: hidden;
  border: 0;
  border-right: 1px solid #d5dde6;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  transform: none;
  align-self: stretch;
}

.app-shell.canvas-mode .page-grid.canvas-focused:not(.show-inspector) > .inspector {
  display: none;
}

.app-shell.canvas-mode .page-grid.canvas-focused > .inspector.no-drawer-header {
  grid-template-rows: minmax(0, 1fr);
}

.app-shell.canvas-mode .page-grid.canvas-focused > .inspector.condition-picker-open {
  overflow: visible;
}

.app-shell.canvas-mode .page-grid.canvas-focused > .inspector .panel-header {
  min-height: 56px;
  padding: 12px 12px 10px;
  align-items: flex-start;
  border-bottom: 1px solid #e2e8ef;
  background: #ffffff;
}

.app-shell.canvas-mode .page-grid.canvas-focused > .inspector .panel-header h2 {
  font-size: 15px;
}

.app-shell.canvas-mode .page-grid.canvas-focused > .inspector .panel-header span {
  font-size: 12px;
}

.app-shell.canvas-mode .page-grid.canvas-focused > .inspector .panel-body {
  max-height: none;
  min-height: 0;
  padding: 0 14px 14px;
  overflow: auto;
  overflow-x: hidden;
  scrollbar-color: #8f9aa5 transparent;
  scrollbar-width: thin;
}

.app-shell.canvas-mode .page-grid.canvas-focused > .inspector .panel-body::-webkit-scrollbar,
.manychat-more-panel::-webkit-scrollbar,
.next-step-choice-list::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.app-shell.canvas-mode .page-grid.canvas-focused > .inspector .panel-body::-webkit-scrollbar-track,
.manychat-more-panel::-webkit-scrollbar-track,
.next-step-choice-list::-webkit-scrollbar-track {
  background: transparent;
}

.app-shell.canvas-mode .page-grid.canvas-focused > .inspector .panel-body::-webkit-scrollbar-thumb,
.manychat-more-panel::-webkit-scrollbar-thumb,
.next-step-choice-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #98a4af;
}

.app-shell.canvas-mode .page-grid.canvas-focused > .inspector .panel-body::-webkit-scrollbar-thumb:hover,
.manychat-more-panel::-webkit-scrollbar-thumb:hover,
.next-step-choice-list::-webkit-scrollbar-thumb:hover {
  background: #717f8d;
}

.app-shell.canvas-mode .page-grid.canvas-focused > .inspector.condition-picker-open .panel-body {
  overflow: visible;
}

.app-shell.canvas-mode .page-grid.canvas-focused > .inspector .panel-body.without-drawer-header {
  padding-top: 14px;
}

.app-shell.canvas-mode .flow-config-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 8px;
  min-height: 54px;
  align-content: center;
  align-items: center;
  padding: 10px 12px 10px 16px;
  border-bottom: 1px solid #eef2f5;
}

.app-shell.canvas-mode .flow-config-header.compact {
  min-height: 44px;
  padding: 7px 10px 7px 14px;
}

.app-shell.canvas-mode .flow-config-header > span {
  grid-column: 1;
  color: var(--muted);
  font-size: 11px;
}

.app-shell.canvas-mode .flow-config-header > strong {
  grid-column: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell.canvas-mode .flow-config-header > .icon-button {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
}

.drawer-title-input {
  width: 100%;
  min-height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.drawer-title-input:focus {
  outline: 0;
}

.app-shell.canvas-mode .flow-config-header .segmented {
  margin-top: 6px;
}

.trigger-picker-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(0, 0, 0, 0.46);
}

.trigger-picker-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(620px, calc(100vw - 40px));
  height: min(500px, calc(100vh - 58px));
  overflow: hidden;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.32);
}

.trigger-picker-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.trigger-picker-header h2 {
  margin: 0;
  font-size: 18px;
}

.trigger-picker-header span {
  color: var(--muted);
  font-size: 12px;
}

.trigger-picker-body {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.trigger-picker-tabs {
  display: grid;
  align-content: start;
  gap: 4px;
  min-height: 0;
  padding: 10px;
  border-right: 1px solid var(--line);
  background: #f8fafc;
  overflow: auto;
}

.trigger-picker-tabs button {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #344054;
  text-align: left;
}

.trigger-picker-tabs button.active {
  background: #eef6ff;
  color: #0069df;
  font-weight: 800;
}

.trigger-picker-list {
  display: grid;
  align-content: start;
  gap: 11px;
  min-height: 0;
  padding: 14px 16px 18px;
  overflow: auto;
  scrollbar-gutter: stable;
}

.trigger-option {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  min-height: 92px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.trigger-option:hover,
.trigger-option.active {
  border-color: #2f8cff;
  box-shadow: 0 0 0 3px rgba(47, 140, 255, 0.12);
}

.trigger-option-icon {
  display: grid;
  margin-top: 8px;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #eaf4ff;
  color: #0077ff;
}

.trigger-option span span,
.trigger-option small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.38;
}

.trigger-option strong {
  display: block;
  margin: 3px 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.28;
}

.trigger-option > span:nth-child(2) {
  display: grid;
  min-width: 0;
}

.trigger-option .badge {
  align-self: center;
}

.trigger-token-list {
  display: grid;
  gap: 6px;
}

.trigger-token-list span {
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: #344054;
  font-size: 12px;
}

.manychat-trigger-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: -14px -22px 10px;
  padding: 14px 16px;
  background: #dcf7e8;
  color: #1f2933;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

.manychat-action-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: -14px -22px 10px;
  padding: 14px 16px;
  background: #fff0bd;
  color: #1f2933;
  font-size: 15px;
  font-weight: 800;
}

.manychat-action-head svg {
  width: 17px;
  height: 17px;
  color: #f4a000;
}

.manychat-trigger-head input,
.manychat-action-head input,
.manychat-condition-head input {
  width: auto;
  max-width: 220px;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  text-align: center;
}

.manychat-trigger-head input:focus,
.manychat-action-head input:focus,
.manychat-condition-head input:focus,
.message-inspector-title input:focus,
.editable-node-title-row input:focus {
  outline: 0;
}

.manychat-trigger-head svg,
.manychat-action-head > svg,
.manychat-condition-head > svg {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  color: #667085;
}

.action-settings-copy {
  color: #344054;
  font-size: 13px;
}

.action-step-list {
  display: grid;
  align-content: start;
  gap: 8px;
}

.action-add-button {
  height: 40px;
  min-height: 40px;
  border-color: #f0b84a;
  color: #b66800;
}

.action-step-card {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
}

.action-step-card.compact {
  padding: 0;
}

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

.action-step-title strong {
  color: #344054;
  font-size: 12px;
}

.action-step-icon {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #b66800;
}

.action-step-icon svg {
  width: 16px;
  height: 16px;
}

.action-step-card input {
  width: 100%;
  min-height: 32px;
  padding: 7px 8px;
  border: 1px solid #d4dde7;
  border-radius: 6px;
  font-size: 12px;
}

.action-step-card select {
  width: 100%;
  min-height: 32px;
  padding: 6px 8px;
  border: 1px solid #d4dde7;
  border-radius: 6px;
  background: #fff;
  color: #344054;
  font-size: 12px;
}

.action-field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  gap: 6px;
  align-items: center;
}

.action-field-row .icon-button {
  width: 32px;
  height: 32px;
}

.action-field-row .icon-button svg {
  width: 15px;
  height: 15px;
}

.action-field-control {
  position: relative;
  min-width: 0;
  padding-left: 27px;
}

.action-field-trigger {
  max-width: 100%;
  padding: 0 0 3px;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid #d8dee7;
  background: transparent;
  color: #344054;
  font-size: 12px;
  line-height: 1.3;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-field-trigger.missing {
  border-bottom-color: #f3aaa4;
  color: #e33d32;
}

.action-field-picker {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 70;
  display: grid;
  gap: 5px;
  width: min(234px, calc(100vw - 48px));
  padding: 10px;
  border: 1px solid #cfd8e3;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
}

.action-field-picker > strong {
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.action-field-picker > input {
  min-height: 28px;
  padding: 5px 7px;
  border-color: #b9c4d0;
  border-radius: 4px;
}

.action-field-picker > small {
  color: #7a8490;
  font-size: 11px;
  line-height: 1.3;
}

.action-field-picker-menu {
  position: absolute;
  top: calc(100% - 1px);
  left: -1px;
  z-index: 71;
  display: grid;
  width: calc(100% + 2px);
  min-height: 142px;
  overflow: hidden;
  border: 1px solid #cfd8e3;
  border-radius: 0 0 5px 5px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
}

.action-field-picker-list {
  display: grid;
  align-content: start;
  max-height: 180px;
  overflow: auto;
}

.action-field-picker-list button {
  display: grid;
  gap: 2px;
  min-height: 42px;
  padding: 7px 9px;
  border: 0;
  border-bottom: 1px solid #edf1f5;
  background: #fff;
  color: #344054;
  text-align: left;
}

.action-field-picker-list button:hover {
  background: #f5f7fa;
}

.action-field-picker-list strong {
  font-size: 12px;
}

.action-field-picker-list small,
.action-field-picker-empty {
  color: #7a8490;
  font-size: 11px;
  line-height: 1.35;
}

.action-field-picker-empty {
  display: block;
  padding: 20px 14px;
  text-align: center;
}

.action-field-create {
  align-self: end;
  min-height: 35px;
  border: 0;
  border-top: 1px solid #d7dee8;
  background: #fff;
  color: #0069df;
  font-size: 12px;
  font-weight: 800;
}

.action-field-create:hover {
  background: #f7fbff;
}

.action-tag-combobox {
  position: relative;
}

.action-tag-picker {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  z-index: 55;
  display: grid;
  width: 100%;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid #d7dee8;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
}

.action-tag-picker-list {
  display: grid;
  align-content: start;
  max-height: 176px;
  overflow: auto;
  background: #fff;
}

.action-tag-picker-list button,
.action-tag-empty {
  min-height: 31px;
  padding: 7px 10px;
  border: 0;
  background: #fff;
  color: #344054;
  font-size: 12px;
  text-align: left;
}

.action-tag-picker-list button:hover {
  background: #f5f6f8;
}

.action-tag-empty {
  color: var(--muted);
}

.action-tag-create {
  align-self: end;
  min-height: 34px;
  border: 0;
  border-top: 1px solid #d7dee8;
  background: #fff;
  color: #0069df;
  font-size: 12px;
  font-weight: 800;
}

.action-tag-create:hover {
  background: #f7fbff;
}

.trigger-card-list {
  display: grid;
  gap: 12px;
}

.trigger-setting-card {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px;
  border: 1px solid #d9e0e7;
  border-radius: 6px;
  background: #fff;
}

.trigger-card-icon {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: #eaf4ff;
  color: #0077ff;
}

.trigger-card-icon svg {
  width: 12px;
  height: 12px;
}

.trigger-setting-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.trigger-setting-source {
  color: var(--muted);
  font-size: 11px;
}

.trigger-setting-copy strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.trigger-setting-copy small {
  color: var(--muted);
  font-size: 11px;
}

.trigger-config-field {
  display: grid;
  grid-column: 1 / -1;
  gap: 5px;
  padding-top: 9px;
  border-top: 1px solid #edf1f5;
}

.trigger-config-field > span {
  color: #344054;
  font-size: 11px;
  font-weight: 800;
}

.trigger-config-field small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.trigger-config-field input {
  width: 100%;
  min-height: 32px;
  padding: 7px 8px;
  border: 1px solid #d4dde7;
  border-radius: 6px;
  color: #344054;
  font-size: 12px;
}

.mini-menu-button {
  width: 24px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #667085;
  font-size: 18px;
  line-height: 1;
}

.next-step-divider {
  height: 1px;
  margin: 12px 0;
  background: #d9e0e7;
}

.then-block {
  display: grid;
  gap: 12px;
}

.then-block > strong {
  color: #344054;
  font-size: 13px;
}

.choose-next-step-button {
  height: 40px;
  min-height: 40px;
  border: 1px dashed #2fb36d;
  border-radius: 6px;
  background: #ffffff;
  color: var(--green-dark);
  font-weight: 800;
}

.choose-next-step-button.blue {
  border-color: #98c9ff;
  color: #0069df;
}

.selected-next-step-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 54px;
  padding: 10px;
  border: 1px solid #b6dfc8;
  border-radius: 6px;
  background: #f5fcf8;
  text-align: left;
}

.selected-next-step-card strong,
.selected-next-step-card small {
  display: block;
}

.selected-next-step-card strong {
  color: var(--ink);
  font-size: 13px;
}

.selected-next-step-card small {
  color: var(--muted);
  font-size: 11px;
}

.next-step-picker-panel {
  position: absolute;
  top: 0;
  left: 292px;
  z-index: 75;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 286px;
  height: 100vh;
  border-right: 1px solid #d5dde6;
  background: #ffffff;
  box-shadow: 18px 0 46px rgba(15, 23, 42, 0.14);
}

.action-picker-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(0, 0, 0, 0.46);
}

.action-picker-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(620px, calc(100vw - 40px));
  max-height: min(500px, calc(100vh - 58px));
  overflow: hidden;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.32);
}

.action-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.action-picker-header strong {
  color: var(--ink);
  font-size: 17px;
}

.action-picker-body {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.action-picker-tabs {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 10px;
  border-right: 1px solid var(--line);
  background: #f8fafc;
}

.action-picker-tabs button {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #344054;
  line-height: 1.25;
  text-align: left;
}

.action-picker-upgrade {
  align-self: end;
  margin-top: 108px;
  padding: 10px;
  border-radius: 6px;
  background: #eef6ff;
}

.action-picker-upgrade strong,
.action-picker-upgrade span {
  display: block;
  font-size: 11px;
  line-height: 1.28;
}

.action-picker-upgrade strong {
  color: #0069df;
}

.action-picker-upgrade span {
  margin-top: 5px;
  color: #526070;
}

.action-picker-tabs button.active {
  background: #eef1ee;
  color: var(--green-dark);
  font-weight: 800;
}

.action-picker-tabs svg {
  width: 16px;
  height: 16px;
}

.action-picker-list {
  display: grid;
  align-content: start;
  gap: 11px;
  min-height: 0;
  padding: 16px 18px 18px;
  overflow: auto;
  scrollbar-gutter: stable;
}

.action-picker-list-head {
  display: grid;
  gap: 2px;
  margin-bottom: 2px;
}

.action-picker-list-head strong {
  color: #344054;
  font-size: 13px;
}

.action-picker-list-head span {
  color: var(--muted);
  font-size: 11px;
}

.action-option {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 70px;
  padding: 12px 14px;
  border: 1px solid #d9e0e7;
  border-radius: 8px;
  background: #fff;
  text-align: left;
}

.action-option:hover {
  border-color: #caa24b;
  box-shadow: 0 0 0 3px rgba(244, 160, 0, 0.12);
}

.action-option-icon {
  display: grid;
  margin-top: 4px;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #fff0bd;
  color: #b66800;
}

.action-option-icon svg {
  width: 16px;
  height: 16px;
}

.action-option strong,
.action-option small {
  display: block;
}

.action-option > span:last-child {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.action-option strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

.action-option small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.next-step-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 56px;
  padding: 12px 12px 10px;
  border-bottom: 1px solid var(--line);
}

.next-step-picker-header strong {
  color: var(--ink);
  font-size: 15px;
}

.next-step-choice-list {
  display: grid;
  align-content: start;
  gap: 8px;
  overflow: auto;
  scrollbar-color: #8f9aa5 transparent;
  scrollbar-width: thin;
  padding: 12px;
}

.next-step-choice {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 50px;
  padding: 9px 10px;
  border: 1px dashed #d6dde7;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
}

.next-step-choice:not(:disabled):hover {
  border-color: #8ccaa9;
  background: #f7fcf8;
}

.next-step-choice.existing {
  border-style: solid;
}

.next-step-existing-group {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.next-step-existing-group > strong {
  color: #344054;
  font-size: 12px;
}

.step-choice-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #eaf4ff;
  color: #0077ff;
}

.step-choice-icon svg {
  width: 18px;
  height: 18px;
}

.app-shell.canvas-mode .inspector .segmented {
  background: #f6f8fa;
}

.app-shell.canvas-mode .inspector .segmented button {
  min-height: 29px;
  padding: 0 8px;
  font-size: 12px;
}

.app-shell.canvas-mode .inspector .icon-button {
  width: 30px;
  height: 30px;
}

.app-shell.canvas-mode .inspector-form {
  gap: 11px;
  font-size: 12px;
}

.manychat-settings {
  align-content: start;
  grid-auto-rows: max-content;
  padding-top: 11px;
}

.settings-section-header {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.settings-section-icon,
.message-builder-header .trigger-option-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #eaf4ff;
  color: #0077ff;
}

.settings-section-icon svg,
.message-builder-header svg {
  width: 16px;
  height: 16px;
}

.settings-section-header strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.settings-section-header span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.settings-section-header .settings-section-icon {
  display: grid;
  color: #0077ff;
}

.editable-node-section-header {
  grid-template-columns: 30px minmax(0, 1fr);
}

.editable-node-title-row {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: 6px;
}

.editable-node-title-row input {
  width: min(220px, 100%);
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.editable-node-title-row svg {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  color: #7b8794;
}

.settings-card,
.message-builder-card {
  display: grid;
  gap: 9px;
  padding: 10px;
  border: 1px solid #d9e0e7;
  border-radius: 7px;
  background: #fff;
}

.settings-card-title strong,
.message-builder-header strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
}

.settings-card-title span,
.message-builder-header span {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.25;
}

.settings-helper {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.message-builder-header {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.settings-field {
  display: grid;
  gap: 5px;
}

.settings-field > span {
  color: #344054;
  font-size: 11px;
  font-weight: 800;
}

.settings-field input,
.settings-field textarea,
.settings-field select,
.settings-card input {
  width: 100%;
  min-height: 34px;
  padding: 7px 8px;
  border: 1px solid #d4dde7;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
}

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

.message-builder-card textarea {
  min-height: 88px;
}

.content-block-list,
.message-option-list,
.message-block-button-list,
.variation-list {
  display: grid;
  gap: 8px;
}

.content-add-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.content-add-row button {
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr);
  gap: 4px;
  align-items: center;
  min-height: 31px;
  padding: 6px;
  border: 1px dashed #c7d2df;
  border-radius: 7px;
  background: #fbfdff;
  color: #344054;
  font-size: 10.5px;
  font-weight: 800;
  text-align: left;
}

.content-add-row svg {
  width: 14px;
  height: 14px;
}

.message-content-block,
.message-option-card,
.variation-card {
  position: relative;
  display: grid;
  gap: 7px;
  padding: 9px;
  border: 1px solid #d9e0e7;
  border-radius: 7px;
  background: #fff;
}

.message-content-head {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  color: #344054;
  font-size: 12px;
}

.message-content-head svg {
  width: 16px;
  height: 16px;
  color: #0077ff;
}

.message-option-card {
  grid-template-columns: minmax(0, 1fr) auto;
}

.message-option-grid,
.condition-branches {
  display: grid;
  gap: 7px;
}

.message-image-block-preview {
  display: grid;
  min-height: 120px;
  max-height: 420px;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d9e0e7;
  border-radius: 8px;
  background:
    linear-gradient(45deg, #edf1f4 25%, transparent 25%),
    linear-gradient(-45deg, #edf1f4 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #edf1f4 75%),
    linear-gradient(-45deg, transparent 75%, #edf1f4 75%);
  background-color: #f8fafc;
  background-position:
    0 0,
    0 8px,
    8px -8px,
    -8px 0;
  background-size: 16px 16px;
}

.message-image-block-preview img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
}

.message-video-preview video,
.message-audio-preview audio {
  width: 100%;
}

.message-video-preview video {
  max-height: 420px;
  background: #0f172a;
}

.message-inspector {
  position: relative;
  display: grid;
  gap: 16px;
  margin: -14px -14px 0;
  padding: 0 22px 22px;
}

.message-inspector-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 48px;
  margin: 0 -22px 10px;
  border-bottom: 1px solid #d5dde6;
  background: #dce2e7;
  color: #30343a;
}

.message-inspector-title input {
  width: auto;
  max-width: 190px;
  min-height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #30343a;
  font-size: 17px;
  font-weight: 800;
  text-align: center;
}

.message-inspector-title svg {
  width: 13px;
  height: 13px;
  color: #7b8794;
}

.message-send-window {
  display: grid;
  gap: 7px;
  color: #30343a;
  font-size: 13px;
  font-weight: 600;
}

.message-send-window select {
  width: 100%;
  min-height: 29px;
  padding: 0 9px;
  border: 1px solid #d2d8df;
  border-radius: 5px;
  background: #fff;
  color: #3b4048;
  font-size: 11px;
}

.message-inspector-divider {
  height: 1px;
  background: #d3d8de;
}

.manychat-message-preview {
  display: grid;
  overflow: hidden;
  border: 1px dashed #d1d7de;
  border-radius: 0 0 12px 12px;
  background: #fff;
}

.manychat-message-preview textarea {
  width: 100%;
  min-height: 52px;
  padding: 10px 12px;
  border: 0;
  border-radius: 12px 12px 0 0;
  background: #f1f3f5;
  color: #3c434d;
  font-size: 12px;
  line-height: 1.35;
  resize: vertical;
}

.manychat-widget {
  position: relative;
}

.manychat-widget.dragging {
  opacity: 0.48;
}

.manychat-widget.drop-before::before,
.manychat-widget.drop-after::after {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 8;
  height: 2px;
  border-radius: 999px;
  background: #0877ff;
  content: "";
  pointer-events: none;
}

.manychat-widget.drop-before::before {
  top: -8px;
}

.manychat-widget.drop-after::after {
  bottom: -8px;
}

.manychat-widget-controls {
  position: absolute;
  top: 0;
  right: -24px;
  z-index: 5;
  display: grid;
  gap: 7px;
}

.manychat-widget-controls button {
  display: grid;
  width: 18px;
  height: 18px;
  padding: 0;
  place-items: center;
  border: 0;
  background: transparent;
  color: #7b828c;
  font-size: 18px;
  line-height: 1;
}

.manychat-widget-controls button:hover,
.manychat-widget-controls button:focus-visible {
  color: #344054;
  outline: 0;
}

.message-block-drag-handle {
  cursor: grab;
  touch-action: none;
}

.message-block-drag-handle:active {
  cursor: grabbing;
}

.manychat-widget-controls svg {
  width: 15px;
  height: 15px;
}

.manychat-link-widget {
  display: grid;
  gap: 10px;
  padding: 11px;
  border: 1px dashed #d1d7de;
  border-radius: 8px;
  background: #fff;
}

.manychat-link-widget-head {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #344054;
}

.manychat-link-widget-head span {
  display: grid;
  place-items: center;
  color: #0877ff;
}

.manychat-link-widget-head svg {
  width: 17px;
  height: 17px;
}

.manychat-link-widget-head strong {
  font-size: 12px;
}

.manychat-link-widget label {
  display: grid;
  gap: 5px;
  color: #586171;
  font-size: 11px;
  font-weight: 700;
}

.manychat-link-widget input,
.manychat-link-widget textarea {
  width: 100%;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid #d9e0e7;
  border-radius: 7px;
  background: #fff;
  color: #1f2937;
  font-size: 12px;
}

.manychat-link-widget textarea {
  min-height: 58px;
  resize: vertical;
}

.messenger-preview-link-block {
  position: relative;
  overflow: visible;
}

.messenger-preview-plain-link {
  display: block;
  overflow-wrap: anywhere;
  color: #0877ff;
  font-size: 11px;
  text-decoration: underline;
}

.messenger-preview-link-block > .message-node-port {
  top: 50%;
  right: -21px;
  transform: translateY(-50%);
}

.message-inspector .inline-message-button-list {
  gap: 0;
  margin-top: 0;
  border-top: 1px dashed #d1d7de;
}

.message-inspector .inline-message-button,
.message-inspector .inline-message-button-add {
  min-height: 31px;
  border-bottom-color: #d1d7de;
  color: #7b828c;
  font-size: 12px;
  font-weight: 700;
}

.message-inspector .inline-message-button svg {
  width: 12px;
  height: 12px;
}

.manychat-quick-replies {
  display: grid;
  justify-items: end;
  gap: 9px;
}

.manychat-quick-reply-add {
  min-height: 28px;
  padding: 0 18px;
  border: 1px dashed #9ca3af;
  border-radius: 999px;
  background: #fff;
  color: #7b828c;
  font-size: 12px;
  font-weight: 700;
}

.message-inspector .message-option-card {
  width: 100%;
  border-style: dashed;
}

.manychat-block-label {
  color: #7b828c;
  font-size: 10px;
}

.manychat-content-options {
  display: grid;
  gap: 10px;
}

.manychat-content-option {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 49px;
  padding: 8px 12px;
  border: 1px dashed #d2d8df;
  border-radius: 12px;
  background: #fff;
  color: #3f4650;
  text-align: left;
}

.manychat-content-option:not(.visual-only):hover {
  border-color: #99c9ff;
  background: #f7fbff;
}

.manychat-content-option.visual-only {
  cursor: default;
}

.manychat-content-icon {
  display: grid;
  place-items: center;
  color: #5f6875;
}

.manychat-content-icon svg {
  width: 22px;
  height: 22px;
}

.manychat-content-option strong,
.manychat-content-option small {
  display: block;
}

.manychat-content-option strong {
  color: #3a4048;
  font-size: 12px;
  font-weight: 500;
}

.manychat-content-option small {
  margin-top: 2px;
  color: #7b828c;
  font-size: 10px;
}

.manychat-image-widget {
  display: grid;
  min-height: 80px;
  place-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px dashed #d1d7de;
  border-radius: 12px;
  background: #fff;
  text-align: center;
}

.manychat-image-upload-area {
  display: grid;
  min-height: 80px;
  place-items: center;
  gap: 6px;
  padding: 16px 14px;
}

.manychat-image-placeholder {
  color: #6b7280;
}

.manychat-image-placeholder svg {
  width: 20px;
  height: 20px;
}

.manychat-image-preview {
  display: grid;
  width: 100%;
  max-height: 160px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #f4f6f8;
}

.manychat-image-preview img {
  display: block;
  max-width: 100%;
  max-height: 160px;
  object-fit: contain;
}

.manychat-image-widget.has-image .manychat-image-upload-area {
  padding: 0;
}

.manychat-image-widget.has-image .manychat-image-preview {
  max-height: 180px;
  border-radius: 12px 12px 0 0;
}

.manychat-image-widget.has-image .manychat-image-preview img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
}

.manychat-audio-widget .manychat-image-upload-area {
  min-height: 76px;
}

.manychat-audio-player {
  display: grid;
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  background: #f1f3f5;
}

.manychat-audio-player audio {
  width: 100%;
}

.manychat-card-widget {
  position: relative;
  display: grid;
  overflow: visible;
  border: 1px dashed #d1d7de;
  border-radius: 12px;
  background: #fff;
}

.manychat-card-aspect-toggle {
  position: absolute;
  top: -14px;
  left: 50%;
  z-index: 2;
  display: inline-flex;
  gap: 2px;
  padding: 3px 7px;
  border: 1px solid #d4dbe4;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  transform: translateX(-50%);
}

.manychat-card-aspect-toggle button {
  display: grid;
  width: 22px;
  height: 18px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #8a94a3;
}

.manychat-card-aspect-toggle button.active {
  color: #0877ff;
}

.card-aspect-icon {
  display: block;
  border: 1.6px solid currentColor;
  border-radius: 1px;
}

.card-aspect-icon.square {
  width: 11px;
  height: 11px;
}

.card-aspect-icon.horizontal {
  width: 14px;
  height: 9px;
}

.manychat-card-media {
  display: grid;
  aspect-ratio: 1.91 / 1;
  min-height: 118px;
  place-items: center;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  background: #f2f0ff;
}

.manychat-card-widget.aspect-square .manychat-card-media {
  aspect-ratio: 1 / 1;
}

.manychat-card-widget.is-empty .manychat-card-media {
  gap: 6px;
  padding: 16px 14px;
}

.manychat-card-image-button {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

.manychat-card-image-button img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.manychat-card-image-button.has-card-url::after {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #0877ff;
  box-shadow: 0 1px 5px rgba(15, 23, 42, 0.22);
  content: "";
}

.manychat-card-copy {
  display: grid;
  gap: 7px;
  min-height: 86px;
  padding: 12px 10px;
  border-top: 1px solid #eef1f4;
}

.manychat-card-copy input {
  width: 100%;
  min-height: 24px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #344054;
  font-size: 12px;
  font-weight: 700;
}

.manychat-card-copy input::placeholder {
  color: #8b929c;
}

.manychat-card-copy input + input {
  font-weight: 500;
}

.manychat-video-redirect-widget {
  gap: 0;
}

.video-redirect-fields,
.manychat-card-fallback-fields {
  display: grid;
  gap: 9px;
  padding: 10px;
  border-top: 1px solid #eef1f4;
}

.video-redirect-fields label,
.manychat-card-fallback-fields label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #586171;
  font-size: 11px;
  font-weight: 700;
  text-align: left;
}

.video-redirect-fields input,
.video-redirect-fields select,
.video-redirect-fields textarea,
.manychat-card-fallback-fields input,
.manychat-card-fallback-fields textarea {
  width: 100%;
  min-height: 34px;
  padding: 7px 9px;
  border: 1px solid #d9e0e7;
  border-radius: 7px;
  background: #fff;
  color: #1f2937;
  font-size: 12px;
}

.video-redirect-fields select {
  cursor: pointer;
}

.video-redirect-fields textarea,
.manychat-card-fallback-fields textarea {
  min-height: 76px;
  resize: vertical;
  line-height: 1.35;
}

.video-redirect-fields .video-redirect-fallback-toggle,
.video-redirect-fields .video-redirect-debug-toggle,
.manychat-card-fallback-fields .card-fallback-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
}

.video-redirect-fields .video-redirect-fallback-toggle input,
.video-redirect-fields .video-redirect-debug-toggle input,
.manychat-card-fallback-fields .card-fallback-toggle input {
  width: 16px;
  min-height: 16px;
  height: 16px;
  padding: 0;
  margin: 0;
  accent-color: #0f8f64;
}

.video-redirect-media-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px 34px;
  gap: 7px;
  align-items: center;
}

.video-redirect-media-row .secondary-button.compact {
  min-height: 34px;
  padding: 0 10px;
  font-size: 11px;
}

.video-redirect-media-row .video-redirect-icon-button {
  width: 34px;
  min-width: 34px;
  padding: 0;
}

.video-redirect-media-row .video-redirect-icon-button svg {
  width: 15px;
  height: 15px;
}

.video-redirect-preview {
  width: 100%;
  max-height: 160px;
  border-radius: 8px;
  background: #05080f;
}

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

.manychat-image-actions {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #7b828c;
  font-size: 10px;
}

.manychat-image-actions button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #0069df;
  font-size: 10px;
  font-weight: 700;
}

.manychat-image-button-list {
  display: grid;
  width: 100%;
  border-top: 1px dashed #d1d7de;
  background: #fff;
}

.manychat-image-button-card {
  display: grid;
  gap: 7px;
  padding: 8px;
  border-bottom: 1px dashed #d1d7de;
  background: #fff;
  text-align: left;
}

.manychat-image-button-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px 22px;
  gap: 6px;
  align-items: center;
}

.manychat-image-button-card input,
.manychat-image-button-card select {
  width: 100%;
  min-height: 28px;
  padding: 5px 7px;
  border: 1px solid #d2d8df;
  border-radius: 6px;
  background: #fff;
  color: #344054;
  font-size: 11px;
}

.manychat-image-button-card .settings-field {
  gap: 4px;
  margin: 0;
  font-size: 10px;
}

.manychat-image-button-card .settings-field select {
  min-height: 28px;
  font-size: 11px;
}

.manychat-image-button-card .mini-menu-button {
  width: 22px;
  height: 28px;
  font-size: 17px;
}

.manychat-image-button-target {
  margin-top: -1px;
}

.manychat-image-button-list > .inline-message-button-add {
  border-bottom: 0;
}

.manychat-image-url-popover {
  --manychat-popup-width: 274px;
  position: absolute;
  top: 0;
  left: calc(100% + 8px);
  z-index: 35;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  width: var(--manychat-popup-width);
  padding: 11px;
  border: 1px solid #d5dde6;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.18);
}

.manychat-image-url-popover::before {
  position: absolute;
  top: 46px;
  left: -6px;
  width: 10px;
  height: 10px;
  border-left: 1px solid #d5dde6;
  border-bottom: 1px solid #d5dde6;
  background: #fff;
  content: "";
  transform: rotate(45deg);
}

.manychat-image-url-popover label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #30343a;
  font-size: 12px;
}

.manychat-image-url-popover input {
  width: 100%;
  min-height: 60px;
  padding: 7px;
  border: 1px solid #ff3b30;
  border-radius: 5px;
  color: #344054;
  font-size: 12px;
}

.manychat-card-url-popover {
  grid-template-columns: minmax(0, 1fr);
}

.manychat-card-url-popover input {
  border-color: #0877ff;
}

.manychat-image-url-popover > button {
  align-self: end;
  width: 25px;
  height: 25px;
  border: 0;
  border-radius: 4px;
  background: #1f2937;
  color: #fff;
  font-size: 11px;
}

.media-gallery-backdrop {
  align-items: center;
}

.manychat-media-gallery-popover {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(960px, calc(100vw - 40px));
  max-height: min(780px, calc(100vh - 58px));
  overflow: hidden;
  border: 1px solid #cfd8e3;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.32);
}

.manychat-media-gallery-head {
  padding: 14px 18px;
}

.manychat-media-gallery-title {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.manychat-media-gallery-title strong {
  color: var(--ink);
  font-size: 17px;
}

.manychat-media-gallery-title span {
  color: var(--muted);
  font-size: 12px;
}

.manychat-media-gallery-actions {
  display: inline-flex;
  gap: 6px;
}

.manychat-media-gallery-actions svg {
  width: 15px;
  height: 15px;
}

.manychat-media-gallery-body {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
  padding: 16px 18px 18px;
  overflow: hidden;
}

.manychat-media-gallery-list {
  display: grid;
  align-content: start;
  min-height: 0;
  overflow-y: auto;
  gap: 12px;
  padding: 2px 2px 2px 0;
  scrollbar-color: #8f9aa5 transparent;
  scrollbar-width: thin;
}

.manychat-media-gallery-list.image,
.manychat-media-gallery-list.video {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.manychat-media-gallery-list.audio {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.manychat-media-gallery-asset {
  display: grid;
  grid-template-rows: auto minmax(0, auto);
  gap: 10px;
  align-content: start;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 11px;
  border: 1px solid #d9e0e7;
  border-radius: 8px;
  background: #fff;
  color: #1f2937;
  text-align: left;
}

.manychat-media-gallery-list.audio .manychat-media-gallery-asset {
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
}

.manychat-media-gallery-asset:hover {
  border-color: #0877ff;
  box-shadow: 0 0 0 3px rgba(8, 119, 255, 0.1);
}

.manychat-media-gallery-thumb {
  display: grid;
  width: 100%;
  height: 190px;
  min-height: 190px;
  place-items: center;
  overflow: hidden;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #edf1f5;
  background:
    linear-gradient(45deg, #f2f5f8 25%, transparent 25%),
    linear-gradient(-45deg, #f2f5f8 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f2f5f8 75%),
    linear-gradient(-45deg, transparent 75%, #f2f5f8 75%);
  background-color: #fff;
  background-position:
    0 0,
    0 10px,
    10px -10px,
    -10px 0;
  background-size: 20px 20px;
  color: #5d6b7a;
}

.manychat-media-gallery-list.audio .manychat-media-gallery-thumb {
  width: 58px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  background: #f1f5f9;
}

.manychat-media-gallery-thumb.image img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.manychat-media-gallery-thumb.video {
  position: relative;
  background: #05080f;
}

.manychat-media-gallery-thumb.video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.manychat-media-gallery-thumb.video i {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  pointer-events: none;
}

.manychat-media-gallery-thumb.video i svg {
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.58);
}

.manychat-media-gallery-thumb.audio svg {
  width: 20px;
  height: 20px;
}

.manychat-media-gallery-info {
  display: grid;
  min-width: 0;
  min-height: 34px;
  gap: 2px;
}

.manychat-media-gallery-info strong,
.manychat-media-gallery-info small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manychat-media-gallery-info strong {
  font-size: 12px;
  line-height: 1.25;
}

.manychat-media-gallery-info small,
.manychat-media-gallery-empty {
  color: #667085;
  font-size: 11px;
}

.manychat-media-gallery-empty {
  grid-column: 1 / -1;
  padding: 46px 18px;
  border: 1px dashed #d5dde6;
  border-radius: 8px;
  background: #fbfdff;
  text-align: center;
}

.manychat-media-gallery-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #e4e9ef;
}

.manychat-media-gallery-pagination span {
  color: #526070;
  font-size: 12px;
  font-weight: 700;
}

.manychat-media-gallery-pagination .secondary-button.compact {
  min-height: 30px;
  padding: 0 12px;
  font-size: 11px;
}

@media (max-width: 820px) {
  .manychat-media-gallery-list.image,
  .manychat-media-gallery-list.video {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .manychat-media-gallery-list.image,
  .manychat-media-gallery-list.video,
  .manychat-media-gallery-list.audio {
    grid-template-columns: 1fr;
  }
}

.manychat-more-panel {
  --manychat-popup-width: 278px;
  position: absolute;
  top: 232px;
  left: calc(100% - 8px);
  z-index: 30;
  display: grid;
  gap: 8px;
  width: var(--manychat-popup-width);
  max-height: calc(100vh - var(--manychat-popup-top, 232px) - 12px);
  overflow-y: auto;
  scrollbar-color: #8f9aa5 transparent;
  scrollbar-width: thin;
  padding: 12px;
  border: 1px solid #d5dde6;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 15px 38px rgba(15, 23, 42, 0.18);
}

.manychat-more-panel .manychat-content-option {
  min-height: 55px;
}

.app-shell.canvas-mode .manychat-image-url-popover,
.app-shell.canvas-mode .manychat-more-panel {
  position: fixed;
  left: max(
    12px,
    min(
      var(--manychat-popup-left, calc(var(--canvas-workspace-offset) + var(--canvas-drawer-width) + 12px)),
      calc(100vw - var(--manychat-popup-width) - 12px)
    )
  );
  z-index: 120;
}

.app-shell.canvas-mode .manychat-image-url-popover {
  top: max(64px, min(var(--manychat-popup-top, 160px), calc(100vh - 128px)));
}

.app-shell.canvas-mode .manychat-more-panel {
  top: max(64px, var(--manychat-popup-top, 232px));
  max-height: calc(100vh - max(64px, var(--manychat-popup-top, 232px)) - 12px);
}

.message-inspector > .settings-hint {
  margin-top: -6px;
  font-size: 10px;
}

.message-inspector > .choose-next-step-button,
.message-inspector > .selected-next-step-card {
  width: 100%;
}

.message-image-block-preview.empty {
  min-height: 92px;
  gap: 6px;
  padding: 12px;
  background: #fbfdff;
  color: var(--muted);
  text-align: center;
  text-decoration: none;
}

.message-image-block-preview.empty svg {
  width: 24px;
  height: 24px;
  color: #0077ff;
}

.message-image-block-preview.empty span {
  font-size: 11px;
  line-height: 1.3;
}

.message-block-button-list {
  padding-top: 4px;
}

.manychat-text-message-block {
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-style: dashed;
  background: #f7f7f7;
}

.manychat-text-message-block .message-content-head {
  padding: 7px 8px 0;
}

.manychat-text-message-block textarea {
  min-height: 74px;
  padding: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.manychat-text-message-block textarea:focus {
  outline: 2px solid rgba(0, 119, 255, 0.24);
  outline-offset: -2px;
}

.inline-message-button-list {
  display: grid;
  border-top: 1px dashed #ccd5df;
  background: #fff;
}

.inline-message-button,
.inline-message-button-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 31px;
  padding: 6px 8px;
  border: 0;
  border-bottom: 1px dashed #d6dde6;
  background: #fff;
  color: #5f6b78;
  font-size: 11px;
}

.inline-message-button:hover,
.inline-message-button-add:hover {
  background: #f8fbff;
  color: #006fe8;
}

.inline-message-button svg {
  width: 13px;
  height: 13px;
}

.inline-message-button-add {
  border-bottom: 0;
}

.message-button-editor {
  display: grid;
  gap: 14px;
  min-height: 100%;
  padding: 12px 0 64px;
}

.message-button-behavior {
  display: grid;
  gap: 8px;
}

.message-button-behavior > strong {
  color: #344054;
  font-size: 12px;
}

.message-button-behavior-list {
  display: grid;
  gap: 6px;
}

.message-button-behavior-choice {
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px dashed #d3d9e0;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  text-align: left;
}

.message-button-behavior-choice:hover,
.message-button-behavior-choice.active {
  border-color: #0077ff;
  background: #f6faff;
}

.message-button-behavior-choice > span {
  display: grid;
  place-items: center;
  color: #0077ff;
}

.message-button-behavior-choice svg {
  width: 21px;
  height: 21px;
}

.message-button-behavior-choice strong {
  min-width: 0;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-button-editor-footer {
  position: sticky;
  bottom: -14px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 8px -14px -14px;
  padding: 10px 14px;
  border-top: 1px solid #d9e0e7;
  background: #fff;
}

.message-button-editor-footer .text-button {
  gap: 5px;
  color: #d92d20;
}

.message-button-editor-footer svg {
  width: 15px;
  height: 15px;
}

.block-button-card {
  background: #fbfdff;
}

.settings-card-title.compact {
  display: grid;
  gap: 2px;
}

.manychat-condition-settings {
  position: relative;
  align-content: start;
  grid-auto-rows: max-content;
  min-height: 0;
  overflow: visible;
  background: #fff;
  color: #202833;
  font-size: 12px;
}

.manychat-condition-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: -14px -22px 0;
  min-height: 49px;
  padding: 12px 16px;
  background: #9eeedf;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.manychat-condition-head .mini-menu-button {
  width: 18px;
  height: 18px;
  background: transparent;
  color: #5f6b78;
}

.manychat-condition-head .mini-menu-button svg {
  width: 13px;
  height: 13px;
}

.manychat-condition-content {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 31px 16px 0;
}

.condition-match-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  gap: 8px;
  align-items: start;
}

.condition-match-copy {
  display: grid;
  gap: 1px;
  color: #26313d;
  font-size: 13px;
  line-height: 1.25;
}

.condition-match-copy button {
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0069df;
  font: inherit;
  font-weight: 800;
  text-align: left;
}

.condition-side-actions {
  display: grid;
  gap: 10px;
  justify-items: center;
  padding-top: 1px;
  color: #8d98a6;
}

.condition-side-actions span,
.condition-side-actions svg {
  display: block;
  width: 13px;
  height: 13px;
}

.condition-rule-list {
  display: grid;
  gap: 8px;
}

.condition-add-wrap {
  position: relative;
}

.condition-add-button {
  width: 100%;
  min-height: 36px;
  border-color: #9eeedf;
  color: #168b73;
  font-weight: 500;
}

.manychat-condition-settings .condition-branches {
  display: grid;
  gap: 10px;
  margin: 0;
}

.condition-next-step {
  gap: 9px;
}

.condition-next-step > span {
  color: #26313d;
  font-size: 12px;
  font-weight: 600;
}

.condition-next-step select {
  min-height: 40px;
  border: 1px dashed #b9dcff;
  border-radius: 6px;
  background: #fff;
  color: #0069df;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  text-align-last: center;
}

.condition-branch-divider {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: #4b5563;
  font-size: 12px;
  font-weight: 600;
}

.condition-branch-divider span {
  height: 1px;
  background: #d7dbe1;
}

.condition-add-else-button {
  color: #009d72;
}

.condition-rule-card {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: start;
  padding: 7px;
  border: 1px solid #d9e0e7;
  border-radius: 7px;
  background: #fff;
}

.condition-rule-card strong,
.condition-rule-card span {
  display: block;
}

.condition-rule-card strong {
  color: #253141;
  font-size: 12px;
}

.condition-rule-card span {
  color: var(--muted);
  font-size: 10.5px;
}

.condition-rule-card input {
  width: 100%;
  min-height: 30px;
  margin-top: 6px;
  padding: 6px 7px;
  border: 1px solid #d4dde7;
  border-radius: 6px;
  font-size: 12px;
}

.tag-condition-rule-card {
  display: grid;
  grid-template-columns: 42px 72px minmax(0, 1fr) 20px;
  gap: 4px;
  align-items: center;
  min-width: 0;
  min-height: 36px;
  padding: 0 8px;
  border: 1px solid #d9e0e7;
  border-radius: 3px;
  background: #fff;
}

.condition-token-label {
  overflow: hidden;
  color: #344054;
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.condition-operator-select {
  min-width: 0;
  min-height: 28px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #667085;
  font-size: 12px;
  font-weight: 500;
}

.condition-tag-select,
.condition-tag-input {
  width: 100%;
  min-height: 28px;
  margin: 0;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}

.condition-tag-input:focus,
.condition-tag-select:focus,
.condition-operator-select:focus {
  outline: 0;
}

.entry-condition-rule-card {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.85fr) minmax(0, 1fr) 20px;
  align-items: center;
  padding: 7px;
}

.entry-condition-rule-card select,
.entry-condition-rule-card input {
  width: 100%;
  min-width: 0;
  min-height: 30px;
  margin: 0;
  padding: 5px 6px;
  border: 1px solid #d4dde7;
  border-radius: 5px;
  background: #fff;
  color: #344054;
  font-size: 11px;
}

.custom-field-condition-rule-card {
  grid-template-columns: minmax(0, 1fr) 22px;
  gap: 7px;
  align-items: start;
  padding: 8px;
}

.condition-rule-main {
  display: grid;
  grid-template-columns: minmax(76px, 0.82fr) minmax(0, 1fr);
  gap: 6px;
  min-width: 0;
}

.condition-field-select {
  grid-column: 1 / -1;
}

.custom-field-condition-rule-card select,
.custom-field-condition-rule-card input {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  margin: 0;
  padding: 6px 8px;
  border: 1px solid #d4dde7;
  border-radius: 5px;
  background: #fff;
  color: #344054;
  font-size: 12px;
}

.condition-rule-operator-select {
  color: #5f6b78;
}

.condition-rule-value-control {
  font-weight: 500;
}

.custom-field-condition-rule-card > .mini-menu-button {
  margin-top: 5px;
}

.condition-rule-icon svg {
  width: 15px;
  height: 15px;
  color: #0a84ff;
}

.condition-picker-popover {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 80;
  width: 386px;
  max-width: min(386px, calc(100vw - 44px));
  overflow: hidden;
  border: 1px solid #d1d7e0;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18);
}

.condition-picker-search-row {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  min-height: 29px;
  margin: 5px;
  padding: 0 8px;
  border: 1px solid #0a84ff;
  border-radius: 4px;
  color: #667085;
}

.condition-picker-search-row svg {
  width: 14px;
  height: 14px;
}

.condition-picker-search {
  width: 100%;
  min-height: 27px;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 12px;
}

.condition-picker-body {
  display: grid;
  grid-template-columns: 151px minmax(0, 1fr);
  min-height: 216px;
  border-top: 1px solid #e5e9ef;
}

.condition-picker-tabs {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 7px 6px;
  border-right: 1px solid #e5e9ef;
}

.condition-picker-tabs button {
  min-height: 29px;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #344054;
  font-size: 12px;
  text-align: left;
}

.condition-picker-tabs button.active {
  background: #d1d1d1;
  font-weight: 700;
}

.condition-picker-options {
  display: grid;
  align-content: start;
  padding: 0;
}

.condition-picker-options button {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 32px;
  padding: 0 13px;
  border: 0;
  background: transparent;
  color: #344054;
  font-size: 12px;
  text-align: left;
}

.condition-picker-options button:hover {
  background: #f3f6f8;
}

.two-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.toggle-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  color: #344054;
  font-size: 12px;
  font-weight: 800;
}

.variation-card {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

.variation-card > .mini-menu-button {
  position: absolute;
  top: 8px;
  right: 8px;
}

.dashed-add-button {
  min-height: 34px;
  border: 1px dashed #2f8cff;
  border-radius: 4px;
  background: #fff;
  color: #0069df;
  font-size: 11px;
  font-weight: 800;
}

.settings-footer-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding-top: 4px;
}

.app-shell.canvas-mode .inspector-form .field {
  gap: 5px;
}

.app-shell.canvas-mode .inspector-form .field input,
.app-shell.canvas-mode .inspector-form .field textarea,
.app-shell.canvas-mode .inspector-form .field select {
  min-height: 34px;
  border-color: #d4dde7;
  background: #ffffff;
  font-size: 12px;
}

.app-shell.canvas-mode .inspector-form .field textarea {
  min-height: 78px;
}

.app-shell.canvas-mode .inline-fields {
  gap: 10px;
}

.app-shell.canvas-mode .simulator {
  height: 390px;
  border-color: #d4dde7;
  box-shadow: none;
}

@media (max-width: 1180px) {
  .app-shell.canvas-mode .page-grid.canvas-focused.show-inspector {
    grid-template-columns: minmax(0, 1fr);
  }

  .app-shell.canvas-mode .canvas-toolbar {
    align-items: center;
  }
}

@media (max-width: 900px) {
  .pixel-grid,
  .json-template-grid,
  .video-redirect-test-grid,
  .video-redirect-test-upload-row,
  .pixel-event-row {
    grid-template-columns: 1fr;
  }

  .origins-summary {
    grid-template-columns: 1fr;
  }

  .pixel-event-meta {
    justify-items: start;
  }

  .app-shell.canvas-mode,
  .app-shell.canvas-mode.sidebar-collapsed {
    --canvas-workspace-offset: 0px;
    grid-template-columns: 1fr;
  }

  .app-shell.canvas-mode .sidebar {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid #d5dde6;
  }

  .app-shell.canvas-mode .workspace {
    min-height: calc(100vh - 124px);
  }

  .app-shell.canvas-mode .page-grid.canvas-focused {
    height: calc(100vh - 124px);
    min-height: calc(100vh - 124px);
  }

  .app-shell.canvas-mode .page-grid.canvas-focused.show-inspector {
    grid-template-columns: 1fr;
  }

  .app-shell.canvas-mode .page-grid.canvas-focused > .canvas-shell {
    min-height: calc(100vh - 124px);
  }

  .app-shell.canvas-mode .flow-canvas {
    height: auto;
  }

  .app-shell.canvas-mode .page-grid.canvas-focused.show-inspector > .canvas-shell > .flow-canvas {
    margin-left: 0;
  }

  .app-shell.canvas-mode .page-grid.canvas-focused > .inspector {
    position: absolute;
    top: 58px;
    left: 12px;
    right: 12px;
    z-index: 40;
    width: auto;
    height: auto;
    max-height: calc(100vh - 82px);
    border: 1px solid #d5dde6;
    border-radius: 8px;
    box-shadow: 0 24px 58px rgba(15, 23, 42, 0.22);
    transform: none;
  }

  .app-shell.canvas-mode .page-grid.canvas-focused.show-inspector > .canvas-shell {
    grid-column: 1;
  }

  .app-shell.canvas-mode .page-grid.canvas-focused.show-inspector .canvas-peek-button {
    left: 8px;
  }
}
