@import url("./tokens.css");

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--p-bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--p-text);
  background: var(--p-bg);
  font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .48;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--p-interactive);
  outline-offset: 2px;
}

h1,
h2,
h3,
p,
dl,
dd,
ol,
ul {
  margin: 0;
}

h1 {
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -.02em;
}

h2 {
  font-size: 16px;
  line-height: 1.35;
}

h3 {
  font-size: 15px;
}

small {
  color: var(--p-text-subdued);
}

code,
kbd {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.icon {
  display: inline-block;
  flex: 0 0 auto;
  vertical-align: middle;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 8px 12px;
  color: #fff;
  background: var(--p-action);
  border: 0;
  border-radius: 8px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shopify-admin {
  min-height: 100vh;
}

.shopify-topbar {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: var(--shopify-sidebar) minmax(280px, 620px) 1fr;
  align-items: center;
  min-height: var(--shopify-topbar);
  padding: 0 12px;
  color: #e6e6e6;
  background: #101010;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .08);
}

.shopify-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  padding-left: 4px;
  font-size: 18px;
  letter-spacing: -.04em;
}

.shopify-glyph {
  display: grid;
  width: 28px;
  height: 31px;
  color: #fff;
  background: #6abf4b;
  border-radius: 6px 6px 8px 8px;
  place-items: center;
  font-size: 15px;
  font-weight: 800;
  transform: rotate(-2deg);
}

.shopify-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 640px;
  height: 34px;
  padding: 0 10px;
  color: #d1d1d1;
  background: #303030;
  border: 1px solid #4a4a4a;
  border-radius: 9px;
  justify-self: center;
}

.shopify-search span {
  flex: 1;
}

.shopify-search kbd {
  padding: 1px 5px;
  color: #b5b5b5;
  background: #444;
  border: 1px solid #5c5c5c;
  border-radius: 4px;
  font-size: 10px;
}

.shopify-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.shopify-top-static {
  position: relative;
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  color: #e6e6e6;
  background: transparent;
  border-radius: 8px;
  place-items: center;
}

.shopify-notification-static i {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 6px;
  height: 6px;
  background: #ff554a;
  border: 1px solid #1a1a1a;
  border-radius: 50%;
}

.shopify-more-static {
  display: grid;
  width: 28px;
  height: 28px;
  color: var(--p-text-subdued);
  border-radius: 7px;
  place-items: center;
}

.shopify-account {
  display: grid;
  width: 30px;
  height: 30px;
  margin-left: 5px;
  color: #1d3e2c;
  background: #b9e4cc;
  border-radius: 8px;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}

.shopify-top-actions strong {
  max-width: 150px;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shopify-store-switcher {
  position: relative;
  margin-left: 2px;
}

.shopify-store-trigger {
  display: grid;
  grid-template-columns: 30px minmax(0, 154px) 14px;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 3px 7px 3px 4px;
  color: #f1f1f1;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  text-align: left;
}

.shopify-store-trigger:hover,
.shopify-store-trigger[aria-expanded="true"] {
  background: #2b2b2b;
  border-color: #474747;
}

.shopify-store-trigger .shopify-account {
  margin-left: 0;
}

.shopify-store-trigger > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.shopify-store-trigger > span:nth-child(2) > strong {
  max-width: none;
  color: #f1f1f1;
  font-size: 12px;
  font-weight: 650;
}

.shopify-store-trigger small {
  overflow: hidden;
  color: #b8b8b8;
  font-size: 11px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shopify-store-trigger > i {
  display: grid;
  color: #b8b8b8;
  font-style: normal;
  place-items: center;
}

.shopify-store-menu {
  position: absolute;
  z-index: 90;
  top: calc(100% + 7px);
  right: 0;
  display: grid;
  width: 292px;
  gap: 4px;
  padding: 7px;
  color: var(--p-text);
  background: #fff;
  border: 1px solid #d2d5d8;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .22);
}

.shopify-store-menu > header {
  display: grid;
  gap: 2px;
  padding: 5px 7px 7px;
  border-bottom: 1px solid #ebebeb;
}

.shopify-store-menu > header strong {
  max-width: none;
  color: var(--p-text);
  font-size: 12px;
}

.shopify-store-menu > header small {
  color: var(--p-text-subdued);
  font-size: 12px;
  line-height: 1.35;
}

.shopify-store-profile {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 54px;
  padding: 7px;
  color: var(--p-text);
  background: transparent;
  border: 0;
  border-radius: 7px;
  text-align: left;
}

.shopify-store-profile:hover,
.shopify-store-profile.is-selected {
  background: #f1f1f1;
}

.shopify-store-profile .shopify-account {
  margin-left: 0;
}

.shopify-store-profile > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.shopify-store-profile strong {
  max-width: none;
  color: var(--p-text);
  font-size: 12px;
}

.shopify-store-profile small {
  color: var(--p-text-subdued);
  font-size: 12px;
  line-height: 1.35;
}

.shopify-store-profile > b {
  color: #008060;
  font-size: 13px;
  text-align: center;
}

.shopify-body {
  display: grid;
  grid-template-columns: var(--shopify-sidebar) minmax(0, 1fr);
  min-height: calc(100vh - var(--shopify-topbar));
}

.shopify-sidebar {
  position: sticky;
  z-index: 30;
  top: var(--shopify-topbar);
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--shopify-topbar));
  padding: 10px 8px 8px;
  background: #f1f1f1;
  border-right: 1px solid #ddd;
}

.shopify-primary-nav {
  flex: 1;
  overflow-y: auto;
}

.shopify-static-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 32px;
  padding: 5px 9px;
  color: #4a4a4a;
  border-radius: 8px;
  font-size: 13px;
  cursor: default;
  user-select: none;
}

.shopify-static-item {
  pointer-events: none;
  user-select: none;
}

.shopify-static-item span {
  flex: 1;
}

.shopify-static-item b {
  min-width: 22px;
  padding: 1px 5px;
  color: #616161;
  background: #ddd;
  border-radius: 8px;
  font-size: 10px;
  text-align: center;
}

.shopify-nav-section,
.shopify-app-context {
  margin-top: 8px;
}

.shopify-section-label {
  display: block;
  padding: 4px 9px 7px;
  color: #737373;
  font-size: 11px;
  font-weight: 500;
}

.shopify-app-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  align-items: center;
  gap: 2px;
  min-height: 34px;
  padding: 2px 3px;
  background: #fff;
  border-radius: 9px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
  transition: background .12s ease, box-shadow .12s ease;
}

.shopify-app-title:hover {
  background: #f8f8f8;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .1);
}

.shopify-app-home {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 30px;
  padding: 2px 5px;
  color: #303030;
  background: transparent;
  border: 0;
  border-radius: 7px;
  text-align: left;
}

.shopify-app-home:hover,
.shopify-app-home:focus-visible {
  background: #ececec;
}

.shopify-app-home strong {
  overflow: hidden;
  flex: 1;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bestcheckout-mark {
  display: grid;
  width: 26px;
  height: 26px;
  color: #fff;
  background: linear-gradient(145deg, #171717, #4d4d4d);
  border-radius: 7px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  place-items: center;
  font-size: 12px;
  font-weight: 800;
}

.app-nav {
  display: grid;
  position: relative;
  gap: 2px;
  margin: 4px 0 0 12px;
  padding: 0 0 0 17px;
}

.shopify-sidebar .app-nav::before {
  position: absolute;
  top: 0;
  bottom: 15px;
  left: 5px;
  width: 1px;
  background: #d2d2d2;
  content: '';
}

.app-nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 29px;
  padding: 4px 9px;
  color: #4a4a4a;
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 13px;
  text-align: left;
}

.shopify-sidebar .app-nav-item {
  position: relative;
  min-height: 28px;
  padding: 4px 8px;
  color: #616161;
  border-radius: 7px;
  transition: background .12s ease, color .12s ease, box-shadow .12s ease;
}

.shopify-sidebar .app-nav-item::before {
  position: absolute;
  top: 50%;
  left: -12px;
  width: 8px;
  height: 1px;
  background: #d2d2d2;
  content: '';
}

.shopify-sidebar .app-nav-item .icon {
  display: none;
}

.shopify-sidebar .app-nav-item:hover,
.shopify-sidebar .app-nav-item:focus-visible {
  color: var(--p-text);
  background: #e8e8e8;
}

.shopify-sidebar .app-nav-item.is-active {
  color: #202020;
  background: #fff;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
  font-weight: 600;
}

.shopify-sidebar .app-nav-item.is-active:hover {
  background: #fff;
}

.shopify-sidebar-footer {
  display: grid;
  gap: 4px;
  padding-top: 4px;
}

.language-widget {
  position: relative;
}

.desktop-language-floating {
  position: fixed;
  z-index: 48;
  bottom: 12px;
  left: calc(var(--shopify-sidebar) + 16px);
  display: flex;
  align-items: flex-end;
}

.language-trigger {
  display: inline-grid;
  grid-template-columns: 22px auto 12px;
  align-items: center;
  gap: 6px;
  width: auto;
  min-width: 82px;
  min-height: 32px;
  padding: 4px 8px;
  color: #4a4a4a;
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  text-align: left;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

.language-trigger:hover,
.language-trigger[aria-expanded="true"] {
  background: #f7f7f7;
  border-color: #bdbdbd;
}

.language-current-mark,
.language-option-flag {
  display: flex;
  width: 22px;
  height: 16px;
  align-items: center;
  justify-content: center;
}

.language-flag {
  position: relative;
  display: block;
  width: 22px;
  height: 15px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, .13);
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .34) inset;
}

.language-flag-us {
  background: repeating-linear-gradient(to bottom, #b22234 0 1.15px, #fff 1.15px 2.3px);
}

.language-flag-us::before {
  position: absolute;
  top: -1px;
  left: -1px;
  width: 10px;
  height: 8px;
  color: #fff;
  background: #3c3b6e;
  content: '★';
  font-size: 5px;
  line-height: 8px;
  text-align: center;
}

.language-flag-cn {
  background: #de2910;
}

.language-flag-cn::before {
  position: absolute;
  top: -1px;
  left: 2px;
  color: #ffde00;
  content: '★';
  font-size: 9px;
  line-height: 14px;
}

.language-trigger > strong {
  font-size: 12px;
}

.language-trigger > i {
  position: relative;
  justify-self: end;
  width: 9px;
  height: 9px;
  color: #777;
  font-style: normal;
  font-size: 0;
  line-height: 0;
}

.language-trigger > i::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: '';
  transform: translate(-50%, -50%) rotate(45deg);
  transform-origin: center;
}

.language-trigger[aria-expanded="true"] > i::before {
  transform: translate(-50%, -50%) rotate(225deg);
}

.language-menu {
  position: absolute;
  z-index: 90;
  right: auto;
  bottom: calc(100% + 6px);
  left: 0;
  display: grid;
  gap: 4px;
  width: 178px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--p-border);
  border-radius: 10px;
  box-shadow: var(--p-shadow-popover);
}

.language-option {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 5px 7px;
  color: var(--p-text);
  background: transparent;
  border: 0;
  border-radius: 7px;
  text-align: left;
}

.language-option:hover,
.language-option-active {
  background: #f0f0f0;
}

.language-option > strong {
  font-size: 12px;
  font-weight: 600;
}

.language-option > b {
  color: var(--p-success);
}

.mobile-language-widget {
  display: none;
}

.embedded-app {
  min-width: 0;
  background: var(--p-bg);
}

.embedded-titlebar {
  position: sticky;
  z-index: 25;
  top: var(--shopify-topbar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 9px 20px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--p-border);
  backdrop-filter: blur(10px);
}

.embedded-titlebar > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.embedded-titlebar strong {
  font-size: 14px;
}

.embedded-titlebar small {
  font-size: 11px;
}

.connection-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--p-text-subdued);
  font-size: 12px;
}

.connection-status i {
  width: 7px;
  height: 7px;
  background: var(--p-success);
  border-radius: 50%;
}

.mobile-app-nav {
  display: none;
}

.page-root {
  max-width: 1240px;
  min-height: calc(100vh - 112px);
  margin: 0 auto;
  padding: 24px 28px 48px;
}

.page-root-editor {
  max-width: none;
  padding: 0;
}

.page-root:focus {
  outline: 0;
}

.page-stack,
.settings-stack {
  display: grid;
  gap: 16px;
}

.page-header {
  display: grid;
  gap: 8px;
}

.page-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.page-heading p {
  max-width: 720px;
  margin-top: 4px;
  color: var(--p-text-subdued);
}

.page-actions,
.inline-actions,
.date-control {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.date-control-display {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 5px 12px;
  background: #fff;
  border: 1px solid var(--p-border-strong);
  border-radius: var(--p-radius-control);
  font-size: 13px;
  font-weight: 600;
}

.date-control-select {
  min-height: 32px;
  padding: 5px 30px 5px 12px;
  color: var(--p-text);
  background: #fff;
  border: 1px solid var(--p-border-strong);
  border-radius: var(--p-radius-control);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.date-control-select:focus-visible {
  outline: 2px solid var(--p-interactive);
  outline-offset: 1px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--p-text-subdued);
  font-size: 12px;
}

.breadcrumbs button {
  padding: 0;
  color: var(--p-interactive);
  background: transparent;
  border: 0;
}

.breadcrumb-separator {
  color: #a3a3a3;
}

.card {
  min-width: 0;
  background: var(--p-surface);
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
  box-shadow: var(--p-shadow-card);
}

.card-pad {
  padding: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 32px;
  padding: 5px 12px;
  border: 1px solid transparent;
  border-radius: var(--p-radius-control);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .08);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.button-primary {
  color: #fff;
  background: var(--p-action);
  border-color: #1d1d1d;
}

.button-primary:hover {
  background: var(--p-action-hover);
}

.button-secondary {
  color: var(--p-text);
  background: #fff;
  border-color: var(--p-border-strong);
}

.button-secondary:hover {
  background: var(--p-surface-hover);
}

.button-plain {
  min-height: 28px;
  padding: 4px 7px;
  color: var(--p-interactive);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.button-plain:hover {
  color: #004299;
  background: var(--p-info-bg);
}

.button-critical {
  color: var(--p-critical);
  background: #fff;
  border-color: var(--p-critical-border);
}

.button-block {
  width: 100%;
}

.icon-button,
.device-button {
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  color: var(--p-text-subdued);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  place-items: center;
}

.icon-button:hover,
.device-button:hover,
.device-button.is-active {
  color: var(--p-text);
  background: #ededed;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  min-height: 22px;
  padding: 2px 7px;
  color: var(--p-text-subdued);
  background: #eee;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: #777;
  border-radius: 50%;
}

.badge-success {
  color: #17663f;
  background: var(--p-success-bg);
}

.badge-success .badge-dot {
  background: var(--p-success);
}

.badge-warning {
  color: #704300;
  background: var(--p-warning-bg);
}

.badge-warning .badge-dot {
  background: #c47a0b;
}

.badge-critical {
  color: var(--p-critical);
  background: var(--p-critical-bg);
}

.badge-critical .badge-dot {
  background: #c43f28;
}

.badge-info {
  color: #315a8a;
  background: #edf3fa;
}

.badge-info .badge-dot {
  background: #5a88b7;
}

.banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 14px;
  border: 1px solid;
  border-radius: var(--p-radius);
}

.banner-success {
  color: #174c32;
  background: var(--p-success-bg);
  border-color: var(--p-success-border);
}

.banner-warning {
  color: #624000;
  background: var(--p-warning-bg);
  border-color: var(--p-warning-border);
}

.banner-info {
  color: #244c75;
  background: var(--p-info-bg);
  border-color: var(--p-info-border);
}

.banner-critical {
  color: var(--p-critical);
  background: var(--p-critical-bg);
  border-color: var(--p-critical-border);
}

.banner-copy p {
  margin-top: 2px;
  color: inherit;
  opacity: .84;
}

.banner-action {
  align-self: center;
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.section-header p {
  margin-top: 3px;
  color: var(--p-text-subdued);
  font-size: 13px;
}

.section-header.outside-card {
  margin-bottom: 10px;
}

.eyebrow,
.structure-group-label {
  color: var(--p-text-subdued);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

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

.metric-card {
  padding: 15px;
}

.metric-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--p-text-subdued);
  font-size: 12px;
}

.metric-icon {
  display: grid;
  width: 29px;
  height: 29px;
  color: #555;
  background: #f1f1f1;
  border-radius: 8px;
  place-items: center;
}

.metric-card > strong {
  display: block;
  margin-top: 9px;
  font-size: 24px;
  line-height: 1.1;
  letter-spacing: -.025em;
  font-variant-numeric: tabular-nums;
}

.metric-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  color: var(--p-text-subdued);
  font-size: 11px;
}

.metric-positive,
.text-success,
.table-lift {
  color: var(--p-success);
  font-weight: 700;
}

.progress-track {
  position: relative;
  height: 7px;
  overflow: hidden;
  background: #dedede;
  border-radius: 999px;
}

.progress-fill {
  display: block;
  height: 100%;
  background: var(--p-action);
  border-radius: inherit;
}

.progress-success {
  background: var(--p-success);
}

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

.overview-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, .75fr);
  gap: 16px;
  align-items: start;
}

.overview-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, .75fr);
  align-items: start;
  gap: 16px;
}

.overview-dashboard-column {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
}

.home-trend .card-pad {
  display: grid;
  gap: 8px;
  padding-block: 14px;
}

.home-trend-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.home-trend-heading h2 {
  margin: 0;
  color: var(--p-text);
  font-size: 14px;
  line-height: 1.3;
}

.home-trend-heading p {
  margin: 2px 0 0;
  color: var(--p-text-subdued);
  font-size: 11px;
  line-height: 1.35;
}

.home-trend-kpi {
  display: grid;
  min-width: 50px;
  gap: 1px;
  padding: 4px 7px;
  color: #005bd3;
  background: #edf3ff;
  border-radius: 6px;
  text-align: right;
}

.home-trend-kpi small {
  color: #4972b8;
  font-size: 10px;
  line-height: 1.1;
}

.home-trend-kpi strong {
  color: #005bd3;
  font-size: 15px;
  line-height: 1.05;
}

.home-trend-chart {
  display: grid;
  gap: 4px;
}

.home-trend-plot {
  height: 64px;
  overflow: hidden;
  background: linear-gradient(180deg, #fbfdfc 0%, #f5faf7 100%);
  border: 1px solid #e4eee8;
  border-radius: 7px 7px 4px 4px;
}

.home-trend-plot svg {
  display: block;
  width: 100%;
  height: 100%;
}

.home-trend-grid {
  stroke: #dce7e0;
  stroke-width: 1;
  stroke-dasharray: 2 3;
}

.home-trend-area {
  fill: url(#home-trend-area);
}

.home-trend-line {
  fill: none;
  stroke: #008060;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-trend-dot {
  fill: #fff;
  stroke: #008060;
  stroke-width: 1.5;
}

.home-trend-dot.is-current {
  fill: #005bd3;
  stroke: #fff;
  stroke-width: 2;
}

.home-trend-labels {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
  padding: 0 3px;
}

.home-trend-labels small {
  overflow: hidden;
  color: var(--p-text-subdued);
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-trend-labels small.is-current {
  color: #005bd3;
  font-weight: 700;
}

.home-trend-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 4px 14px;
  padding-top: 7px;
  border-top: 1px solid #e8e9eb;
  color: var(--p-text-subdued);
  font-size: 10px;
}

.home-trend-footer strong {
  color: var(--p-text);
  font-size: 10px;
}

.quickstart-card { display: grid; gap: 16px; padding: 18px; background: linear-gradient(112deg, #f1f6ff 0%, #fff 66%); border: 1px solid #b9cdf6; border-radius: 12px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.quickstart-overview { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.quickstart-copy { display: grid; align-content: start; }
.quickstart-kicker { color: #005bd3; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.quickstart-card h2 { margin: 4px 0 5px; color: #202223; font-size: 18px; letter-spacing: -.01em; }
.quickstart-card p { margin: 0; color: #5c5f62; font-size: 12px; line-height: 1.45; }
.quickstart-side { display: grid; grid-template-columns: auto auto; align-items: center; gap: 12px; }
.quickstart-progress { display: grid; gap: 2px; min-width: 88px; }
.quickstart-progress > div { display: flex; align-items: baseline; gap: 5px; }
.quickstart-progress strong { color: #202223; font-size: 20px; }
.quickstart-progress span, .quickstart-progress small { color: #5c5f62; font-size: 12px; }
.quickstart-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .38fr); gap: 14px; align-items: stretch; }
.quickstart-steps { display: grid; align-content: start; gap: 7px; min-width: 0; }
.quickstart-step { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto auto; align-items: center; gap: 9px; min-width: 0; min-height: 58px; padding: 9px 10px; color: #5c5f62; background: #fff; border: 1px solid #d6d6d6; border-radius: 8px; text-align: left; }
.quickstart-step:not(:last-child)::after { position: absolute; top: 38px; bottom: -8px; left: 23px; width: 1px; background: #d6dce5; content: ''; }
.quickstart-step > span { position: relative; z-index: 1; display: grid; width: 24px; height: 24px; color: #5c5f62; background: #ebebeb; border-radius: 50%; font-size: 12px; place-items: center; }
.quickstart-step > div { display: grid; gap: 2px; min-width: 0; }
.quickstart-step strong { color: #303030; font-size: 12px; line-height: 1.35; }
.quickstart-step small { display: block; color: #6d7175; font-size: 12px; line-height: 1.4; }
.quickstart-step em { padding: 3px 6px; color: #6d7175; background: #f1f3f5; border-radius: 999px; font-size: 12px; font-style: normal; white-space: nowrap; }
.quickstart-step-action { display: inline-flex; align-items: center; justify-content: center; min-height: 29px; gap: 4px; padding: 5px 7px; color: #005bd3; background: #fff; border: 1px solid #91b2f7; border-radius: 6px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.quickstart-step-action:hover { color: #003d99; background: #eaf3ff; border-color: #005bd3; }
.quickstart-step.is-complete { border-color: #a9dfc5; background: #f3fcf7; }
.quickstart-step.is-complete > span { color: #fff; background: #008060; }
.quickstart-step.is-current { border-color: #6199f7; box-shadow: 0 0 0 1px #6199f7; }
.quickstart-step.is-current > span { color: #fff; background: #005bd3; }
.quickstart-step:hover { border-color: #005bd3; }
.quickstart-step:disabled, .onboarding-step-row:disabled { cursor: not-allowed; opacity: .58; }
.quickstart-step:disabled:hover { border-color: #d6d6d6; }
.quickstart-system-steps .quickstart-step::after { display: none; }
.quickstart-system-check { grid-template-columns: 28px minmax(0, 1fr) auto auto; }
.quickstart-system-check > div > i { display: block; margin-top: 2px; color: #6d7175; font-size: 12px; font-style: normal; line-height: 1.35; }
.quickstart-system-check.is-complete { border-color: #a9dfc5; background: #f3fcf7; }
.quickstart-system-check.is-complete > span { color: #fff; background: #008060; }
.quickstart-system-check.is-action-required { border-color: #f0c36d; background: #fffaf0; }
.quickstart-system-check.is-action-required > span { color: #8a6116; background: #fff0cf; }
.quickstart-system-check.is-blocked { border-color: #f1a4a4; background: #fff5f5; }
.quickstart-system-check.is-blocked > span { color: #b42318; background: #fee4e2; }
.quickstart-system-check.is-ready { border-color: #91b2f7; background: #f5f9ff; }
.quickstart-system-check.is-ready > span { color: #fff; background: #005bd3; }
.quickstart-system-check em { min-width: 86px; text-align: center; }
.quickstart-optional-growth { border-color: #a9dfc5; background: #f3fcf7; }
.quickstart-optional-growth > span { color: #0b7a53; background: #ddf3e6; }
.quickstart-optional-growth em { color: #0b7a53; background: #ddf3e6; }
.onboarding-optional-growth { border-color: #a9dfc5; background: #f3fcf7; }
.onboarding-optional-growth > span { color: #0b7a53; background: #ddf3e6; }
.onboarding-optional-growth em { color: #0b7a53; }
.quickstart-system-card .quickstart-body { grid-template-columns: minmax(0, 1fr); }
.quickstart-system-card .quickstart-system-summary { display: none; }
.quickstart-system-card [data-action="open-onboarding"],
.banner [data-action="open-onboarding"] { display: none; }
.quickstart-system-summary { background: linear-gradient(180deg, #f8f8f8 0%, #fff 100%); border-color: #e1e3e5; }
.quickstart-system-summary > span, .quickstart-system-summary strong { color: #005bd3; }
.onboarding-dashboard-grid { grid-template-columns: minmax(0, 1fr); }
.onboarding-dashboard-grid > .overview-dashboard-column:last-child { display: none; }
.quickstart-current { display: grid; align-content: start; gap: 7px; padding: 18px; background: linear-gradient(180deg, #f7faff 0%, #fff 100%); border: 1px solid #d9e5fb; border-radius: 9px; }
.quickstart-current > span { color: #005bd3; font-size: 12px; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.quickstart-current h3 { margin: 0; color: #202223; font-size: 16px; line-height: 1.3; }
.quickstart-current > p { margin: 0; color: #5c5f62; font-size: 12px; line-height: 1.48; }
.quickstart-current > div { display: grid; gap: 2px; margin-top: 6px; padding-top: 10px; border-top: 1px solid #d9e5fb; }
.quickstart-current strong { color: #005bd3; font-size: 12px; }
.quickstart-current small { color: #6d7175; font-size: 12px; line-height: 1.35; }
.quickstart-current > .button { justify-self: start; margin-top: 4px; }
.onboarding-after-launch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.onboarding-after-launch > div { display: grid; align-content: start; gap: 5px; padding: 12px; background: #f6f6f7; border: 1px solid #e1e3e5; border-radius: 8px; }
.onboarding-after-launch > div > span { display: grid; width: 28px; height: 28px; color: #005bd3; background: #eaf3ff; border-radius: 7px; place-items: center; }
.onboarding-after-launch strong { color: #202223; font-size: 12px; }
.onboarding-after-launch small { color: #5c5f62; font-size: 11px; line-height: 1.45; }
.onboarding-health-preview .card-pad { display: grid; gap: 14px; }
.onboarding-health-note { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 9px; align-items: start; padding: 11px; background: #f6f6f7; border: 1px solid #e1e3e5; border-radius: 8px; }
.onboarding-health-note > span { display: grid; width: 30px; height: 30px; color: #005bd3; background: #eaf3ff; border-radius: 7px; place-items: center; }
.onboarding-health-note > div { display: grid; gap: 3px; }
.onboarding-health-note strong { color: #202223; font-size: 12px; }
.onboarding-health-note small { color: #5c5f62; font-size: 11px; line-height: 1.45; }

.onboarding-modal { display: grid; gap: 16px; }
.onboarding-modal-intro { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 12px; background: #edf6ff; border: 1px solid #c8e3fa; border-radius: 9px; }
.onboarding-modal-intro > span { display: grid; width: 34px; height: 34px; color: #005bd3; background: #d9ecff; border-radius: 8px; place-items: center; }
.onboarding-modal-intro > div { display: grid; gap: 2px; }
.onboarding-modal-intro strong { color: #1f3b57; font-size: 13px; }
.onboarding-modal-intro p { margin: 0; color: #4a6178; font-size: 11px; line-height: 1.4; }
.onboarding-modal-intro b { padding: 4px 7px; color: #005bd3; background: #fff; border-radius: 999px; font-size: 12px; }
.onboarding-modal-grid { display: grid; grid-template-columns: minmax(200px, .82fr) minmax(260px, 1.18fr); gap: 14px; }
.onboarding-step-list { display: grid; gap: 6px; }
.onboarding-step-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 9px; color: #303030; background: #fff; border: 1px solid #d6d6d6; border-radius: 8px; text-align: left; }
.onboarding-step-row > span { display: grid; width: 24px; height: 24px; color: #5c5f62; background: #ebebeb; border-radius: 50%; font-size: 10px; place-items: center; }
.onboarding-step-row > div { display: grid; gap: 2px; min-width: 0; }
.onboarding-step-row strong { font-size: 12px; line-height: 1.35; }
.onboarding-step-row small { color: #6d7175; font-size: 12px; line-height: 1.35; }
.onboarding-step-row em { padding: 3px 5px; color: #005bd3; background: #edf3ff; border-radius: 999px; font-size: 12px; font-style: normal; }
.onboarding-step-row.is-complete { border-color: #a9dfc5; background: #f3fcf7; }
.onboarding-step-row.is-complete > span { color: #fff; background: #008060; }
.onboarding-step-row.is-current { border-color: #6199f7; box-shadow: 0 0 0 1px #6199f7; }
.onboarding-step-row.is-current > span { color: #fff; background: #005bd3; }
.onboarding-system-row.is-complete { border-color: #a9dfc5; background: #f3fcf7; }
.onboarding-system-row.is-complete > span { color: #fff; background: #008060; }
.onboarding-system-row.is-action_required { border-color: #f0c36d; background: #fffaf0; }
.onboarding-system-row.is-action_required > span { color: #8a6116; background: #fff0cf; }
.onboarding-system-row.is-blocked { border-color: #f1a4a4; background: #fff5f5; }
.onboarding-system-row.is-blocked > span { color: #b42318; background: #fee4e2; }
.onboarding-system-row.is-ready { border-color: #91b2f7; background: #f5f9ff; }
.onboarding-system-row.is-ready > span { color: #fff; background: #005bd3; }
.onboarding-current-step { display: grid; align-content: start; gap: 8px; padding: 17px; background: #f6f6f7; border: 1px solid #e1e3e5; border-radius: 9px; }
.onboarding-current-step > span { color: #005bd3; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.onboarding-current-step h3 { margin: 0; color: #202223; font-size: 18px; }
.onboarding-current-step > p { margin: 0; color: #5c5f62; font-size: 12px; line-height: 1.45; }
.onboarding-time { display: inline-grid; grid-template-columns: 18px auto auto; align-items: center; justify-self: start; gap: 5px; padding: 6px 8px; color: #5c5f62; background: #fff; border: 1px solid #d6d6d6; border-radius: 6px; }
.onboarding-time strong { color: #303030; font-size: 11px; }
.onboarding-time small { font-size: 10px; }

.overview-funnel-list {
  display: grid;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--p-border);
  border-radius: 10px;
}

.overview-funnel-row {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) 94px 118px auto 16px;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 9px 12px;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--p-border);
  text-align: left;
}

.overview-funnel-row:last-child {
  border-bottom: 0;
}

.overview-funnel-row:hover {
  background: var(--p-surface-hover);
}

.overview-funnel-row > span:not(.overview-funnel-name) {
  display: grid;
  gap: 2px;
}

.overview-funnel-row small {
  color: var(--p-text-subdued);
  font-size: 10px;
}

.overview-funnel-name {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.overview-funnel-name strong,
.overview-funnel-name small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.check-list {
  border-top: 1px solid var(--p-border);
}

.check-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto 16px;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 11px 16px;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--p-border);
  text-align: left;
}

.check-row:last-child {
  border-bottom: 0;
  border-radius: 0 0 var(--p-radius) var(--p-radius);
}

.check-row:hover {
  background: var(--p-surface-hover);
}

.check-state,
.summary-icon {
  display: grid;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  place-items: center;
}

.check-state-complete,
.summary-success {
  color: var(--p-success);
  background: var(--p-success-bg);
}

.check-state-attention,
.summary-warning {
  color: var(--p-warning);
  background: var(--p-warning-bg);
}

.check-copy {
  display: grid;
  gap: 2px;
}

.check-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-summary .card-pad {
  display: grid;
  gap: 17px;
}

.today-score {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.today-score div {
  padding: 11px;
  background: #f7f7f7;
  border-radius: 9px;
}

.today-score span,
.today-score strong {
  display: block;
}

.today-score span {
  color: var(--p-text-subdued);
  font-size: 11px;
}

.today-score strong {
  margin-top: 2px;
  font-size: 18px;
}

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

.traffic-label,
.traffic-legend {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.traffic-label {
  font-size: 12px;
}

.traffic-legend {
  color: var(--p-text-subdued);
  font-size: 10px;
}

.traffic-legend span,
.traffic-allocation-preview span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.traffic-legend i,
.traffic-allocation-preview i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.legend-bestcheckout {
  background: var(--p-success);
}

.legend-native {
  background: #a7a7a7;
}

.outcome-list,
.mapping-list {
  display: grid;
  gap: 7px;
  padding-top: 10px;
  border-top: 1px solid var(--p-border);
}

.outcome-list div,
.mapping-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.outcome-list span,
.mapping-list span {
  color: var(--p-text-subdued);
}

.activity-compact-list {
  margin-top: 12px;
  padding: 0;
  list-style: none;
}

.activity-compact {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--p-border);
}

.activity-compact:first-child {
  border-top: 0;
}

.activity-icon,
.tracking-icon,
.sync-stat-icon {
  display: grid;
  width: 30px;
  height: 30px;
  color: #555;
  background: #f0f0f0;
  border-radius: 8px;
  place-items: center;
}

.activity-compact > div {
  display: grid;
  gap: 2px;
}

.activity-compact small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-compact time {
  color: var(--p-text-subdued);
  font-size: 11px;
}

.seed-callout,
.attribution-footnote {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 15px 17px;
  background: #e9e7ff;
  border: 1px solid #d1cdf7;
  border-radius: var(--p-radius);
}

.seed-icon {
  display: grid;
  width: 38px;
  height: 38px;
  color: #4e43bd;
  background: rgba(255, 255, 255, .7);
  border-radius: 10px;
  place-items: center;
}

.seed-callout p,
.attribution-footnote p {
  margin-top: 2px;
  color: #5f5a85;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.filter-group {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.filter-chip {
  min-height: 30px;
  padding: 4px 10px;
  color: var(--p-text-subdued);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.filter-chip:hover,
.filter-chip.is-active {
  color: var(--p-text);
  background: #fff;
  border-color: var(--p-border-strong);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}

.filter-chip.is-active {
  font-weight: 600;
}

.filter-meta {
  color: var(--p-text-subdued);
  font-size: 12px;
  white-space: nowrap;
}

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

.funnel-rail {
  position: sticky;
  top: 126px;
  overflow: hidden;
}

.funnel-rail-head {
  display: grid;
  gap: 2px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--p-border);
}

.funnel-rail-head span {
  color: var(--p-text-subdued);
  font-size: 11px;
}

.funnel-list {
  display: grid;
}

.funnel-list-item {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 12px 13px;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--p-border);
  text-align: left;
}

.funnel-list-item:last-child {
  border-bottom: 0;
}

.funnel-list-item:hover {
  background: #f8f8f8;
}

.funnel-list-item.is-active {
  background: #f1f1f1;
  box-shadow: inset 3px 0 var(--p-action);
}

.funnel-list-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}

.funnel-list-audience {
  display: -webkit-box;
  overflow: hidden;
  color: var(--p-text-subdued);
  font-size: 11px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.funnel-list-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.funnel-list-metrics span {
  display: grid;
}

.funnel-list-metrics small {
  font-size: 9px;
}

.funnel-list-metrics b {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.funnel-main,
.funnel-lower-grid {
  display: grid;
  gap: 14px;
}

.funnel-lower-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr);
}

.funnel-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.title-with-badge {
  display: flex;
  align-items: center;
  gap: 9px;
}

.funnel-title-row p {
  margin-top: 3px;
  color: var(--p-text-subdued);
  font-size: 12px;
}

.traffic-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 280px) auto;
  align-items: center;
  gap: 13px;
  padding: 10px 18px;
  background: #f8f8f8;
  border-top: 1px solid var(--p-border);
  border-bottom: 1px solid var(--p-border);
}

.traffic-bar > div:first-child {
  display: grid;
  gap: 1px;
  font-size: 11px;
}

.traffic-bar > div:first-child span {
  color: var(--p-text-subdued);
}

.canvas-wrap {
  overflow-x: auto;
  padding: 28px 20px 24px;
  background-color: #fbfbfb;
  background-image: radial-gradient(#ddd 1px, transparent 1px);
  background-size: 16px 16px;
}

.funnel-canvas {
  display: flex;
  align-items: center;
  min-width: 900px;
  min-height: 230px;
}

.canvas-stage {
  display: grid;
  align-items: center;
}

.canvas-stage-entry {
  width: 145px;
}

.canvas-stage-checkout {
  width: 180px;
  gap: 7px;
}

.canvas-stage-post {
  width: 210px;
}

.canvas-stage-thankyou {
  width: 160px;
}

.canvas-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  color: #999;
}

.canvas-node {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  background: #fff;
  border: 1px solid #cfcfcf;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .07);
  text-align: left;
}

.canvas-node:hover,
.canvas-node.is-selected {
  border-color: #6a6a6a;
  box-shadow: 0 0 0 2px rgba(48, 48, 48, .12), 0 4px 10px rgba(0, 0, 0, .08);
}

.node-icon {
  display: grid;
  width: 30px;
  height: 30px;
  color: #4a4a4a;
  background: #eee;
  border-radius: 8px;
  place-items: center;
}

.node-checkout .node-icon {
  color: #175d3a;
  background: var(--p-success-bg);
}

.node-upsell .node-icon,
.node-downsell .node-icon {
  color: #714800;
  background: var(--p-warning-bg);
}

.node-thank-you .node-icon {
  color: #315a8a;
  background: var(--p-info-bg);
}

.node-copy {
  display: grid;
  min-width: 0;
}

.node-copy small {
  font-size: 9px;
  text-transform: capitalize;
}

.node-copy strong,
.node-copy em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.node-copy em {
  color: var(--p-text-subdued);
  font-size: 9px;
  font-style: normal;
}

.node-edit {
  color: #888;
}

.control-split {
  color: var(--p-text-subdued);
  font-size: 9px;
  text-align: center;
}

.control-split i {
  display: inline-block;
  width: 1px;
  height: 10px;
  margin: 0 5px;
  background: #ccc;
  vertical-align: middle;
}

.canvas-branch {
  position: relative;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 34px;
}

.canvas-branch::before {
  position: absolute;
  top: 50%;
  left: -18px;
  width: 18px;
  height: 1px;
  background: #aaa;
  content: "";
}

.branch-up,
.branch-down {
  position: relative;
  display: grid;
  gap: 4px;
}

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

.branch-label {
  position: absolute;
  left: -5px;
  padding: 1px 4px;
  color: #7a7a7a;
  background: #fbfbfb;
  font-size: 8px;
}

.branch-accept {
  top: 41px;
}

.branch-decline {
  top: 41px;
}

.canvas-skip {
  display: grid;
  min-height: 54px;
  color: var(--p-text-subdued);
  background: rgba(255, 255, 255, .78);
  border: 1px dashed #c9c9c9;
  border-radius: 9px;
  place-items: center;
  font-size: 10px;
}

.canvas-skip-wide {
  min-width: 170px;
}

/* Merchant-facing Funnel journey: business steps first, graph details second. */
.funnel-canvas {
  display: grid;
  grid-template-columns: 135px 30px 160px 30px minmax(310px, 1fr) 30px 150px;
  align-items: start;
  gap: 0;
  min-width: 900px;
  min-height: 260px;
}

.journey-stage {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.journey-stage-label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 25px;
  color: var(--p-text-subdued);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.journey-stage-label b {
  display: grid;
  width: 20px;
  height: 20px;
  color: #fff;
  background: #555;
  border-radius: 50%;
  place-items: center;
  font-size: 9px;
}

.journey-connector {
  display: grid;
  height: 76px;
  color: #8a8a8a;
  place-items: end center;
}

.journey-stage-offers {
  min-width: 310px;
}

.node-select-indicator {
  color: #8a8a8a;
}

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

.offer-flow-list {
  gap: 12px;
}

.offer-flow-card {
  padding: 10px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid #dedede;
  border-radius: 12px;
}

.offer-outcomes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.offer-outcomes > span {
  display: grid;
  grid-template-columns: auto 14px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 6px 7px;
  border-radius: 7px;
  font-size: 9px;
}

.offer-outcomes b {
  font-size: 9px;
}

.offer-outcomes strong {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.outcome-accept {
  color: #205f43;
  background: var(--p-success-bg);
}

.outcome-decline {
  color: #725019;
  background: var(--p-warning-bg);
}

.offer-outcomes i {
  display: grid;
  font-style: normal;
  place-items: center;
}

.fallback-step {
  display: grid;
  gap: 5px;
  margin-left: 22px;
  padding-left: 10px;
  border-left: 2px solid #e3c26c;
}

.fallback-step-label {
  color: var(--p-text-subdued);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}

.journey-add-card,
.journey-inline-add {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  color: #3d3d3d;
  background: rgba(255, 255, 255, .9);
  border: 1px dashed #aaa;
  border-radius: 10px;
  text-align: left;
}

.journey-add-card {
  min-height: 112px;
  padding: 14px;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.journey-add-card > span,
.journey-inline-add > .icon {
  color: var(--p-interactive);
}

.journey-add-card small,
.journey-inline-add small {
  display: block;
  color: var(--p-text-subdued);
  font-size: 10px;
}

.journey-inline-add {
  min-height: 48px;
  padding: 8px 10px;
}

.journey-inline-add:hover,
.journey-add-card:hover {
  background: #fff;
  border-color: #666;
}

.journey-inline-add-primary {
  border-color: #7c9fca;
}

.funnel-draft-guide {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  color: #244568;
  background: var(--p-info-bg);
  border-top: 1px solid var(--p-info-border);
}

.funnel-draft-guide > span {
  display: grid;
  width: 30px;
  height: 30px;
  background: #fff;
  border-radius: 8px;
  place-items: center;
}

.funnel-draft-guide p {
  margin-top: 2px;
  color: #4e6780;
  font-size: 11px;
}

.funnel-draft-guide ol {
  display: flex;
  gap: 7px;
  padding: 0;
  list-style: none;
}

.funnel-draft-guide li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  font-size: 10px;
}

.funnel-draft-guide li b {
  display: grid;
  width: 18px;
  height: 18px;
  color: #fff;
  background: #537aa3;
  border-radius: 50%;
  place-items: center;
  font-size: 9px;
}

.funnel-advanced {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
  box-shadow: var(--p-shadow-card);
}

.funnel-advanced > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
}

.funnel-advanced > summary::-webkit-details-marker {
  display: none;
}

.funnel-advanced > summary > span {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 1px 8px;
}

.funnel-advanced > summary > span > .icon {
  grid-row: 1 / span 2;
}

.funnel-advanced > summary small {
  font-size: 11px;
}

.funnel-advanced[open] > summary {
  border-bottom: 1px solid var(--p-border);
}

.funnel-advanced[open] > summary > .icon {
  transform: rotate(90deg);
}

.funnel-advanced .funnel-lower-grid {
  padding: 14px;
  background: var(--p-bg-subdued);
}

.node-inspector {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 13px 17px;
  border-top: 1px solid var(--p-border);
}

.offer-settings-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.offer-settings-summary > div {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  background: #f7f7f7;
  border: 1px solid var(--p-border);
  border-radius: 8px;
}

.offer-settings-summary span {
  color: var(--p-text-subdued);
  font-size: 10px;
}

.offer-settings-summary strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.funnel-journey-help {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 10px 17px;
  color: var(--p-text-subdued);
  background: #f8f8f8;
  border-top: 1px solid var(--p-border);
  border-bottom: 1px solid var(--p-border);
  font-size: 12px;
}

.funnel-journey-help span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.funnel-journey-help b {
  display: grid;
  width: 18px;
  height: 18px;
  color: #fff;
  background: var(--p-action);
  border-radius: 50%;
  font-size: 10px;
  place-items: center;
}

.node-inspector h3 {
  margin-top: 2px;
}

.node-inspector p {
  margin-top: 3px;
  color: var(--p-text-subdued);
  font-size: 11px;
}

.node-inspector dl {
  display: flex;
  align-items: center;
  gap: 20px;
}

.node-inspector dl div {
  display: grid;
  gap: 2px;
}

.node-inspector dt {
  color: var(--p-text-subdued);
  font-size: 9px;
}

.node-inspector dd {
  font-size: 11px;
  font-weight: 600;
}

.rule-priority {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  margin-top: 13px;
  padding: 9px 10px;
  background: var(--p-info-bg);
  border-radius: 8px;
}

.rule-priority span,
.rule-priority strong {
  font-size: 12px;
}

.rule-priority small {
  grid-column: 1 / -1;
  color: var(--p-text-subdued);
}

.rule-list {
  display: grid;
  gap: 8px;
  margin-top: 13px;
  padding: 0;
  list-style: none;
}

.rule-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 7px 9px;
  background: #f7f7f7;
  border-radius: 8px;
  font-size: 12px;
}

.rule-list li > span {
  display: grid;
  width: 20px;
  height: 20px;
  color: #666;
  background: #e4e4e4;
  border-radius: 6px;
  place-items: center;
  font-size: 10px;
}

.rule-fallback {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 11px;
  padding: 9px;
  color: #3e5d4b;
  background: var(--p-success-bg);
  border-radius: 8px;
}

.rule-fallback span {
  display: grid;
}

.guardrail-list {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.guardrail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--p-border);
  font-size: 12px;
}

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

.page-card {
  overflow: hidden;
}

.page-thumb {
  position: relative;
  height: 156px;
  overflow: hidden;
  background: #f4f4f4;
  border-bottom: 1px solid var(--p-border);
}

.page-thumb-checkout {
  display: grid;
  grid-template-columns: 57% 43%;
  padding-top: 26px;
  background: linear-gradient(90deg, #fff 0 57%, #f1f1f1 57%);
}

.mini-logo {
  position: absolute;
  top: 13px;
  left: 18px;
  width: 58px;
  height: 6px;
  background: var(--page-accent);
  border-radius: 3px;
}

.mini-checkout-left,
.mini-checkout-right {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 13px 18px;
}

.mini-checkout-left i,
.mini-checkout-right span {
  display: block;
  height: 12px;
  background: #e6e6e6;
  border-radius: 3px;
}

.mini-checkout-left b {
  width: 100%;
  height: 24px;
  margin-top: 4px;
  background: var(--page-accent);
  border-radius: 4px;
}

.mini-checkout-right span:first-child {
  height: 31px;
  background: #d9d9d9;
}

.page-thumb-offer,
.page-thumb-thankyou {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  text-align: center;
}

.mini-product {
  width: 54px;
  height: 54px;
  background: linear-gradient(145deg, #d8d0c6, #a48873);
  border-radius: 10px;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .5);
}

.page-thumb-offer strong,
.page-thumb-thankyou strong {
  font-family: Georgia, serif;
  font-size: 13px;
}

.page-thumb-offer i,
.page-thumb-thankyou i {
  width: 45%;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
}

.page-thumb-offer button,
.page-thumb-thankyou div {
  width: 42%;
  height: 17px;
  background: var(--page-accent);
  border: 0;
  border-radius: 4px;
}

.page-thumb-offer span {
  width: 30%;
  height: 3px;
  background: #bbb;
}

.mini-check {
  display: grid;
  width: 36px;
  height: 36px;
  color: #fff;
  background: var(--page-accent);
  border-radius: 50%;
  place-items: center;
  font-size: 18px;
}

.page-card-body {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.page-card-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.page-card-title h2 {
  margin-top: 2px;
}

.page-card-meta {
  display: flex;
  gap: 8px;
  color: var(--p-text-subdued);
  font-size: 10px;
}

.page-card-meta span + span::before {
  margin-right: 8px;
  color: #aaa;
  content: "·";
}

.page-card-performance {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 9px;
  background: #f7f7f7;
  border-radius: 8px;
}

.page-card-performance span {
  display: grid;
}

.page-card-performance small {
  font-size: 10px;
}

.page-card-performance strong {
  font-size: 18px;
}

.page-card-performance em {
  color: var(--p-success);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.page-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-card-actions .icon-button {
  margin-left: auto;
}

.page-action-popover {
  position: relative;
  margin-left: auto;
}

.page-action-popover .icon-button {
  margin-left: 0;
}

.page-action-menu {
  position: absolute;
  z-index: 12;
  right: 0;
  bottom: calc(100% + 6px);
  display: grid;
  width: 184px;
  padding: 5px;
  background: #fff;
  border: 1px solid var(--p-border);
  border-radius: 9px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .16);
}

.page-action-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 34px;
  padding: 7px 8px;
  color: var(--p-text);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-size: 12px;
  text-align: left;
}

.page-action-menu button:hover,
.page-action-menu button:focus-visible {
  background: var(--p-surface-subdued);
  outline: 0;
}

.page-action-menu button.is-danger {
  color: var(--p-critical);
}

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

.page-version-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 11px;
  background: var(--p-surface-subdued);
  border-radius: 8px;
}

.page-version-list strong,
.page-version-list small {
  display: block;
}

.page-version-list small {
  margin-top: 3px;
  color: var(--p-text-subdued);
  font-size: 11px;
  line-height: 1.45;
}

.version-state {
  align-self: start;
  padding: 3px 6px;
  color: var(--p-text-subdued);
  background: #e4e5e7;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.version-state.is-draft { color: #1359ad; background: #d9ebff; }
.version-state.is-published { color: #087443; background: #d8f3e5; }

.shared-style-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.shared-style-grid > div {
  display: grid;
  grid-template-columns: 38px 1fr;
  column-gap: 9px;
  padding: 10px;
  background: #f7f7f7;
  border-radius: 9px;
}

.shared-style-grid strong,
.shared-style-grid small {
  grid-column: 2;
}

.style-swatch {
  display: grid;
  grid-row: 1 / span 2;
  width: 38px;
  height: 38px;
  border: 1px solid #d3d3d3;
  border-radius: 8px;
  place-items: center;
}

.style-swatch-logo {
  color: #fff;
  background: #303030;
  font-size: 10px;
  font-weight: 800;
}

.style-swatch-color {
  background: #6d5dfc;
}

.style-swatch-radius {
  width: 28px;
  height: 28px;
  margin: 5px;
  background: #ddd;
  border-radius: 9px;
}

.style-swatch-width {
  background: linear-gradient(90deg, #ddd 0 25%, transparent 25% 35%, #ddd 35% 65%, transparent 65% 75%, #ddd 75%);
}

.performance-chart-card {
  overflow: hidden;
}

.comparison-chip {
  padding: 5px 8px;
  color: var(--p-text-subdued);
  background: #f0f0f0;
  border-radius: 8px;
  font-size: 11px;
}

.comparison-chip strong {
  color: var(--p-success);
}

.chart-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
  margin-top: 22px;
}

.chart-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 20px;
  color: var(--p-text-subdued);
  font-size: 9px;
}

.performance-chart {
  width: 100%;
  height: 220px;
  overflow: visible;
  background: repeating-linear-gradient(to bottom, transparent 0 41px, #ebebeb 42px);
}

.chart-area {
  fill: url(#chartFill);
}

.chart-line {
  fill: none;
  stroke: var(--p-success);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.chart-points circle {
  fill: #fff;
  stroke: var(--p-success);
  stroke-width: 2;
}

.chart-dates {
  display: flex;
  grid-column: 2;
  justify-content: space-between;
  color: var(--p-text-subdued);
  font-size: 9px;
}

.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border-bottom: 1px solid var(--p-border);
}

.tabs {
  display: flex;
  gap: 18px;
}

.tab {
  position: relative;
  min-height: 44px;
  padding: 0 2px;
  color: var(--p-text-subdued);
  background: transparent;
  border: 0;
  font-size: 12px;
}

.tab.is-active {
  color: var(--p-text);
  font-weight: 700;
}

.tab.is-active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--p-action);
  content: "";
}

.table-scroll {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.data-table th,
.data-table td {
  padding: 10px 13px;
  border-bottom: 1px solid var(--p-border);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.data-table th {
  color: var(--p-text-subdued);
  background: #fafafa;
  font-size: 10px;
  font-weight: 600;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover td {
  background: #fafafa;
}

.data-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.attribution-footnote {
  background: #eef5ff;
  border-color: #cadcf3;
}

.attribution-footnote p {
  color: #536a81;
}

.activity-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.activity-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
}

.activity-summary > div {
  display: grid;
}

.activity-summary strong {
  font-size: 18px;
}

.summary-info {
  color: var(--p-info);
  background: var(--p-info-bg);
}

.summary-critical {
  color: var(--p-critical);
  background: var(--p-critical-bg);
}

.activity-filter-bar {
  justify-content: flex-start;
}

.activity-filter-rail {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 4px 7px 4px 10px;
  background: #fff;
  border: 1px solid var(--p-border);
  border-radius: 9px;
}

.activity-filter-select {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--p-text-subdued);
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.activity-filter-select select {
  height: 30px;
  min-width: 132px;
  padding: 4px 26px 4px 8px;
  color: var(--p-text);
  background: #f6f6f7;
  border: 0;
  border-radius: 6px;
  font-size: 12px;
}

.activity-filter-rail > i {
  width: 1px;
  height: 22px;
  margin: 0 8px;
  background: var(--p-border);
}

.activity-search-control {
  position: relative;
  min-width: 292px;
}

.activity-search-control svg {
  position: absolute;
  top: 8px;
  left: 1px;
  color: #777;
}

.activity-search-control input {
  width: 100%;
  height: 30px;
  padding: 4px 4px 4px 25px;
  color: var(--p-text);
  background: transparent;
  border: 0;
  font-size: 12px;
  outline: 0;
}

.activity-search-control input:focus-visible,
.activity-filter-select select:focus-visible {
  outline: 2px solid var(--p-interactive);
  outline-offset: 2px;
}

.filter-control {
  display: grid;
  gap: 3px;
}

.filter-control label {
  color: var(--p-text-subdued);
  font-size: 10px;
}

.filter-control select,
.filter-control input,
.form-stack input,
.form-stack select,
.inspector-form input,
.inspector-form select {
  min-height: 34px;
  padding: 6px 9px;
  background: #fff;
  border: 1px solid var(--p-border-strong);
  border-radius: 8px;
}

.search-control {
  position: relative;
  display: block;
  min-width: 290px;
}

.search-control svg {
  position: absolute;
  z-index: 1;
  top: 9px;
  left: 9px;
  color: #777;
}

.search-control input {
  width: 100%;
  padding-left: 32px;
}

.activity-filter-bar .filter-meta {
  margin-left: auto;
}

.timeline {
  position: relative;
  display: grid;
  gap: 12px;
  padding-left: 12px;
}

.timeline::before {
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 27px;
  width: 2px;
  background: #ddd;
  content: "";
}

.timeline-event {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
}

.timeline-marker {
  z-index: 1;
  display: grid;
  width: 32px;
  height: 32px;
  color: #555;
  background: #eee;
  border: 3px solid var(--p-bg);
  border-radius: 50%;
  place-items: center;
}

.activity-payment,
.activity-writeback {
  color: #17663f;
  background: var(--p-success-bg);
}

.activity-post-purchase {
  color: #704300;
  background: var(--p-warning-bg);
}

.activity-tracking {
  color: #315a8a;
  background: var(--p-info-bg);
}

.timeline-card {
  padding: 13px 15px;
  background: #fff;
  border: 1px solid var(--p-border);
  border-radius: 10px;
  box-shadow: var(--p-shadow-card);
}

.timeline-card header,
.timeline-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.timeline-card header > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.timeline-card header span,
.timeline-card footer {
  color: var(--p-text-subdued);
  font-size: 10px;
}

.timeline-card p {
  margin: 6px 0 9px;
  color: #505050;
}

.timeline-card footer {
  justify-content: flex-start;
  padding-top: 8px;
  border-top: 1px solid var(--p-border);
}

.timeline-card footer .button {
  margin-left: auto;
}

.settings-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 4px;
  background: #e5e5e5;
  border-radius: 10px;
}

.settings-tab {
  flex: 1 0 auto;
  min-height: 32px;
  padding: 5px 10px;
  color: var(--p-text-subdued);
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-size: 12px;
}

.settings-tab:hover,
.settings-tab.is-active {
  color: var(--p-text);
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}

.settings-tab.is-active {
  font-weight: 600;
}

.settings-tab {
  font-weight: 600;
}

.domain-setup {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding: 15px;
  background: #f8f8f8;
  border: 1px solid var(--p-border);
  border-radius: 10px;
}

.setup-assist {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 17px;
  padding: 11px;
  color: #194a78;
  background: #edf6ff;
  border: 1px solid #b8daf8;
  border-radius: 9px;
}

.setup-assist > span,
.setup-path-icon {
  display: grid;
  width: 30px;
  height: 30px;
  color: #005bd3;
  background: #dceeff;
  border-radius: 7px;
  place-items: center;
}

.setup-assist > div,
.setup-path header > div,
.domain-connected-status > span,
.payment-setup-head > div {
  display: grid;
  gap: 3px;
}

.setup-assist strong,
.setup-path strong,
.domain-connected-status strong {
  font-size: 12px;
}

.setup-assist small,
.setup-path small,
.domain-connected-status small,
.payment-setup-footnote,
.helper-copy {
  color: var(--p-text-subdued);
  font-size: 11px;
  line-height: 1.45;
}

.setup-assist code {
  padding: 1px 4px;
  color: #315a8a;
  background: #fff;
  border-radius: 4px;
  font-size: 10px;
}

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

.setup-path {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 13px;
  background: #fff;
  border: 1px solid var(--p-border);
  border-radius: 9px;
}

.setup-path-recommended {
  border-color: #75a9ee;
  box-shadow: 0 0 0 1px rgba(0, 91, 211, .06);
}

.setup-path header {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
}

.setup-path header em {
  padding: 3px 6px;
  color: #005bd3;
  background: #e8f2ff;
  border-radius: 999px;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.setup-path p,
.payment-setup p,
.advanced-connection-note p {
  margin: 0;
  color: var(--p-text-subdued);
  font-size: 11px;
  line-height: 1.48;
}

.setup-path-meta {
  display: grid;
  gap: 5px;
  padding: 8px;
  color: #315a8a;
  background: #f4f9ff;
  border-radius: 6px;
  font-size: 10px;
}

.setup-path-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.setup-path .button {
  justify-self: start;
}

.manual-domain-details {
  display: grid;
  gap: 8px;
  padding: 11px;
  background: #fff;
  border: 1px dashed #9ca3af;
  border-radius: 8px;
}

.helper-copy { margin: 0; }

.domain-connected-status {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 10px;
  color: #17663f;
  background: #f2fbf6;
  border: 1px solid #aee0c4;
  border-radius: 8px;
}

.domain-connected-status > svg {
  margin-top: 2px;
}

.payment-setup .card-pad { display: grid; gap: 15px; }

.payment-setup-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.payment-setup-head h2 {
  margin: 2px 0 0;
  font-size: 18px;
}

.connection-flow,
.provider-connect-flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
}

.connection-flow > div,
.provider-connect-flow > div {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 11px;
  background: #f6f6f7;
  border: 1px solid #e1e3e5;
  border-radius: 8px;
}

.connection-flow > div > span,
.provider-connect-flow > div > span {
  display: grid;
  width: 20px;
  height: 20px;
  color: #fff;
  background: #005bd3;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  place-items: center;
}

.connection-flow strong,
.provider-connect-flow strong { font-size: 11px; }

.connection-flow small,
.provider-connect-flow small {
  color: var(--p-text-subdued);
  font-size: 10px;
  line-height: 1.4;
}

.connection-flow > i {
  align-self: center;
  color: #8c9196;
}

.payment-setup-footnote {
  padding-top: 11px;
  border-top: 1px solid var(--p-border);
}

.secure-connect-summary {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 11px;
  color: #194a78;
  background: #edf6ff;
  border: 1px solid #b8daf8;
  border-radius: 8px;
}

.secure-connect-summary > span {
  display: grid;
  width: 34px;
  height: 34px;
  color: #005bd3;
  background: #dceeff;
  border-radius: 8px;
  place-items: center;
}

.secure-connect-summary > div { display: grid; gap: 3px; }
.secure-connect-summary strong { font-size: 12px; }
.secure-connect-summary small { color: #4a6178; font-size: 11px; line-height: 1.4; }

.provider-connect-flow {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.advanced-connection-note {
  padding: 10px;
  background: #f6f6f7;
  border: 1px solid #e1e3e5;
  border-radius: 8px;
}

.advanced-connection-note summary {
  color: var(--p-text);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
}

.advanced-connection-note p { margin-top: 8px; }

.provider-connect-stepper {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.provider-connect-stepper li {
  display: grid;
  grid-template-columns: 21px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  color: var(--p-text-subdued);
  font-size: 11px;
}

.provider-connect-stepper li > span {
  display: grid;
  width: 21px;
  height: 21px;
  color: #6d7175;
  background: #e4e5e7;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  place-items: center;
}

.provider-connect-stepper li.is-current,
.provider-connect-stepper li.is-complete { color: var(--p-text); }
.provider-connect-stepper li.is-current > span { color: #fff; background: #005bd3; }
.provider-connect-stepper li.is-complete > span { color: #fff; background: #008060; }

.provider-connect-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 2px 0;
}

.provider-connect-heading > div { display: grid; gap: 2px; }
.provider-connect-heading strong { font-size: 14px; }
.provider-connect-heading small { color: var(--p-text-subdued); font-size: 11px; }

.provider-oauth-card,
.provider-pending-card,
.provider-validation-list > li {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  padding: 11px;
  background: #f6f6f7;
  border: 1px solid #e1e3e5;
  border-radius: 8px;
}

.provider-oauth-card > span,
.provider-pending-card > span,
.provider-validation-list > li > span {
  display: grid;
  width: 28px;
  height: 28px;
  color: #005bd3;
  background: #dceeff;
  border-radius: 7px;
  place-items: center;
}

.provider-oauth-card > div,
.provider-pending-card > div,
.provider-validation-list > li > div { display: grid; gap: 3px; }
.provider-oauth-card strong,
.provider-pending-card strong,
.provider-validation-list strong { font-size: 12px; }
.provider-oauth-card small,
.provider-pending-card small,
.provider-validation-list small { color: var(--p-text-subdued); font-size: 11px; line-height: 1.4; }

.provider-validation-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.provider-validation-list > li > span { color: #fff; background: #008060; font-size: 13px; font-weight: 700; }
.provider-validation-list > li.is-pending > span { color: #6d7175; background: #e4e5e7; }
.provider-pending-card > span { color: #8a5600; background: #fff1c7; }

@media (max-width: 540px) {
  .provider-connect-stepper { grid-template-columns: 1fr; }
}

.domain-setup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.domain-setup-head > div {
  display: grid;
  gap: 3px;
}

.domain-setup-head small {
  color: var(--p-text-subdued);
}

.dns-record {
  display: grid;
  grid-template-columns: 110px minmax(100px, .7fr) minmax(190px, 1.4fr) 70px auto;
  gap: 1px;
  overflow: hidden;
  background: var(--p-border);
  border: 1px solid var(--p-border);
  border-radius: 8px;
}

.dns-record > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  background: #fff;
}

.dns-record small {
  color: var(--p-text-subdued);
  font-size: 10px;
}

.dns-record code,
.dns-record strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dns-record .button {
  align-self: stretch;
  border-radius: 0;
}

.domain-steps {
  margin: 0;
}

.editor-theme-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 9px;
  color: var(--p-text-subdued);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
}

.editor-theme-button:hover,
.editor-theme-button.is-active {
  color: var(--p-text);
  background: #fff;
  border-color: var(--p-border);
}

.embedded-app-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 15px;
}

.detail-grid > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  background: #f7f7f7;
  border-radius: 8px;
}

.detail-grid dt {
  color: var(--p-text-subdued);
  font-size: 10px;
}

.detail-grid dd {
  overflow: hidden;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
}

.detail-grid-single {
  grid-template-columns: 1fr;
}

.sync-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 13px;
}

.sync-stat {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--p-border);
  border-radius: 9px;
}

.sync-stat > div {
  display: grid;
}

.sync-stat strong {
  font-size: 17px;
}

.settings-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: 14px;
}

.setup-history,
.numbered-steps {
  display: grid;
  gap: 0;
  margin-top: 13px;
  padding: 0;
  list-style: none;
}

.setup-history li,
.numbered-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) auto;
  gap: 9px;
  padding: 8px 0;
}

.setup-history li > span,
.numbered-steps li > span {
  z-index: 1;
  display: grid;
  width: 24px;
  height: 24px;
  color: var(--p-success);
  background: var(--p-success-bg);
  border-radius: 50%;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
}

.setup-history li:not(:last-child)::after,
.numbered-steps li:not(:last-child)::after {
  position: absolute;
  top: 32px;
  bottom: -5px;
  left: 11px;
  width: 1px;
  background: #d5d5d5;
  content: "";
}

.setup-history li > div,
.numbered-steps li > div {
  display: grid;
}

.setup-history time {
  color: var(--p-text-subdued);
  font-size: 10px;
}

.mapping-health {
  display: grid;
  gap: 7px;
  margin: 15px 0;
}

.mapping-health strong {
  font-size: 28px;
}

.mapping-health span {
  color: var(--p-text-subdued);
  font-size: 11px;
}

.installation-card .card-pad {
  display: grid;
  gap: 13px;
}

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

.installation-card-head h2 {
  margin: 3px 0 4px;
  color: var(--p-text);
  font-size: 16px;
}

.installation-card-head p {
  max-width: 680px;
  margin: 0;
  color: var(--p-text-subdued);
  font-size: 12px;
  line-height: 1.45;
}

.installation-instance {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #f5f8ff;
  border: 1px solid #d6e2ff;
  border-radius: 8px;
}

.installation-instance > span {
  display: grid;
  width: 38px;
  height: 38px;
  color: #005bd3;
  background: #e4edff;
  border-radius: 8px;
  place-items: center;
}

.installation-instance > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.installation-instance small {
  color: #4972b8;
  font-size: 11px;
}

.installation-instance strong {
  overflow: hidden;
  color: var(--p-text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.installation-instance code {
  overflow: hidden;
  color: #5c5f62;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.installation-instance em {
  padding: 4px 7px;
  color: #005bd3;
  background: #fff;
  border: 1px solid #bad0ff;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  white-space: nowrap;
}

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

.installation-facts > div {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px 9px;
  background: #fafafa;
  border: 1px solid #e1e3e5;
  border-radius: 7px;
}

.installation-facts small {
  color: var(--p-text-subdued);
  font-size: 10px;
}

.installation-facts strong {
  overflow: hidden;
  color: var(--p-text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.installation-modal {
  display: grid;
  gap: 16px;
}

.installation-modal-lead {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  background: #f1f6ff;
  border: 1px solid #c9d8fb;
  border-radius: 9px;
}

.installation-modal-lead > span {
  display: grid;
  width: 36px;
  height: 36px;
  color: #005bd3;
  background: #dfeaff;
  border-radius: 8px;
  place-items: center;
}

.installation-modal-lead > div {
  display: grid;
  gap: 3px;
}

.installation-modal-lead strong {
  color: #1f3b57;
  font-size: 13px;
  line-height: 1.4;
}

.installation-modal-lead p {
  margin: 0;
  color: #4a6178;
  font-size: 12px;
  line-height: 1.45;
}

.installation-start {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #d9e1e8;
  border-radius: 9px;
}

.installation-start > div {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
}

.installation-start > div > span {
  display: grid;
  width: 30px;
  height: 30px;
  color: #005bd3;
  background: #eaf3ff;
  border-radius: 7px;
  place-items: center;
}

.installation-start > div > div {
  display: grid;
  gap: 2px;
}

.installation-start strong {
  color: var(--p-text);
  font-size: 12px;
}

.installation-start p,
.installation-start > small {
  margin: 0;
  color: var(--p-text-subdued);
  font-size: 11px;
  line-height: 1.45;
}

.installation-start code {
  display: block;
  overflow: hidden;
  padding: 7px 8px;
  color: #303030;
  background: #fff;
  border: 1px solid #c9d8fb;
  border-radius: 6px;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.installation-section-head {
  display: grid;
  gap: 3px;
  margin-bottom: 8px;
}

.installation-section-head > span {
  color: var(--p-text);
  font-size: 12px;
  font-weight: 700;
}

.installation-section-head > small {
  color: var(--p-text-subdued);
  font-size: 11px;
  line-height: 1.4;
}

.installation-flow {
  display: flex;
  align-items: stretch;
  gap: 6px;
}

.installation-flow-step {
  display: grid;
  flex: 1;
  gap: 7px;
  min-width: 0;
  padding: 9px;
  background: #fafafa;
  border: 1px solid #e1e3e5;
  border-radius: 8px;
}

.installation-flow-step > span {
  display: grid;
  width: 28px;
  height: 28px;
  color: #005bd3;
  background: #eaf3ff;
  border-radius: 7px;
  place-items: center;
}

.installation-flow-step > div {
  display: grid;
  gap: 3px;
}

.installation-flow-step b {
  color: #6d7175;
  font-size: 10px;
}

.installation-flow-step strong {
  color: var(--p-text);
  font-size: 12px;
  line-height: 1.35;
}

.installation-flow-step small {
  color: var(--p-text-subdued);
  font-size: 10px;
  line-height: 1.4;
}

.installation-flow-arrow {
  display: grid;
  flex: 0 0 17px;
  color: #8c9196;
  place-items: center;
}

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

.installation-scope-grid > article {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  background: #fff;
  border: 1px solid #dfe1e3;
  border-radius: 8px;
}

.installation-scope-grid strong {
  color: var(--p-text);
  font-size: 12px;
  line-height: 1.35;
}

.installation-scope-grid small {
  color: var(--p-text-subdued);
  font-size: 11px;
  line-height: 1.45;
}

.domain-hero-top {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.domain-icon {
  display: grid;
  width: 46px;
  height: 46px;
  color: #315a8a;
  background: var(--p-info-bg);
  border-radius: 12px;
  place-items: center;
}

.domain-hero-top h2 {
  margin-top: 2px;
  font-size: 20px;
}

.domain-hero-top p {
  margin-top: 3px;
  color: var(--p-text-subdued);
}

.domain-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 18px 0 14px;
  padding: 13px;
  background: #f7f7f7;
  border-radius: 9px;
}

.domain-facts div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.domain-facts dt {
  color: var(--p-text-subdued);
  font-size: 10px;
}

.domain-facts dd {
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
}

.url-pattern {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px 14px;
  margin-top: 15px;
  padding: 14px;
  background: #202020;
  border-radius: 10px;
}

.url-pattern span,
.url-pattern code {
  grid-column: auto;
  color: #fff;
}

.url-pattern span {
  color: #aaa;
  font-size: 10px;
}

.url-pattern code {
  grid-row: 2;
  font-size: 11px;
}

.url-pattern i {
  grid-row: 1 / span 2;
  color: #888;
}

.url-guardrails,
.policy-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 13px;
}

.url-guardrails > div,
.policy-list > div {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px;
  background: #f7f7f7;
  border-radius: 8px;
}

.url-guardrails span,
.policy-list span {
  display: grid;
}

.url-guardrails small,
.policy-list small {
  margin-top: 2px;
}

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

.provider-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--p-border);
  border-radius: var(--p-radius);
  box-shadow: var(--p-shadow-card);
}

.provider-card header {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

.provider-card header > div {
  display: grid;
  min-width: 0;
}

.provider-card header small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.provider-logo {
  display: grid;
  width: 36px;
  height: 36px;
  color: #fff;
  background: #333;
  border-radius: 9px;
  place-items: center;
  font-weight: 800;
}

.provider-stripe { background: #635bff; }
.provider-airwallex { background: #ff5a36; }
.provider-paypal { background: #0b5cab; }
.provider-klarna { color: #111; background: #ffb3c7; }
.provider-checkout-com { background: #111; }
.provider-braintree { background: #3d6fda; }

.provider-card dl {
  display: grid;
  gap: 7px;
}

.provider-card dl div {
  display: grid;
  grid-template-columns: 95px minmax(0, 1fr);
  gap: 7px;
}

.provider-card dt {
  color: var(--p-text-subdued);
  font-size: 10px;
}

.provider-card dd {
  font-size: 11px;
  font-weight: 600;
}

.provider-card p {
  color: var(--p-text-subdued);
  font-size: 11px;
}

.provider-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 9px;
  color: var(--p-text-subdued);
  border-top: 1px solid var(--p-border);
  font-size: 10px;
}

.tracking-name {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tracking-name > div {
  display: grid;
}

.attribution-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin-top: 16px;
  padding: 16px;
  overflow-x: auto;
  background: #f7f7f7;
  border-radius: 10px;
}

.attribution-flow > div {
  display: grid;
  min-width: 135px;
  gap: 2px;
  text-align: center;
}

.attribution-flow > div > span {
  display: grid;
  width: 36px;
  height: 36px;
  margin: 0 auto 4px;
  background: #fff;
  border: 1px solid var(--p-border);
  border-radius: 9px;
  place-items: center;
}

.attribution-flow > i {
  color: #999;
}

.contract-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 12px;
}

.contract-list div {
  display: grid;
  gap: 2px;
  padding: 10px;
  border: 1px solid var(--p-border);
  border-radius: 8px;
}

.contract-list span {
  color: var(--p-text-subdued);
  font-size: 11px;
}

.theme-editor-preview {
  overflow: hidden;
  border: 1px solid var(--p-border-strong);
  border-radius: 10px;
}

.theme-editor-preview header {
  display: flex;
  justify-content: space-between;
  padding: 9px 11px;
  color: #ddd;
  background: #272727;
  font-size: 11px;
}

.theme-app-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 13px;
}

.theme-app-row > div {
  display: grid;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch span {
  position: relative;
  display: block;
  width: 38px;
  height: 22px;
  background: #aaa;
  border-radius: 999px;
}

.switch span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .3);
  content: "";
  transition: transform .15s ease;
}

.switch input:checked + span {
  background: var(--p-success);
}

.switch input:checked + span::after {
  transform: translateX(16px);
}

.numbered-steps li > span {
  color: #555;
  background: #ededed;
}

.embed-boundaries {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.embed-boundaries > div {
  padding: 13px;
  border: 1px solid;
  border-radius: 9px;
}

.boundary-do {
  color: #24523b;
  background: var(--p-success-bg);
  border-color: var(--p-success-border) !important;
}

.boundary-dont {
  color: #624000;
  background: var(--p-warning-bg);
  border-color: var(--p-warning-border) !important;
}

.embed-boundaries ul {
  display: grid;
  gap: 5px;
  margin-top: 8px;
  padding-left: 18px;
}

.diagnostic-list {
  display: grid;
  margin-top: 14px;
  border: 1px solid var(--p-border);
  border-radius: 9px;
}

.diagnostic-row {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  border-bottom: 1px solid var(--p-border);
}

.diagnostic-row:last-child {
  border-bottom: 0;
}

.diagnostic-state {
  display: grid;
  width: 24px;
  height: 24px;
  color: var(--p-success);
  background: var(--p-success-bg);
  border-radius: 50%;
  place-items: center;
}

.diagnostic-row > div {
  display: grid;
}

.policy-list {
  grid-template-columns: 1fr;
}

.snapshot-code {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px 10px;
  margin: 13px 0;
  padding: 12px;
  color: #ddd;
  background: #242424;
  border-radius: 9px;
  font-size: 11px;
}

.projection-code {
  display: grid;
  gap: 3px;
  margin: -4px 0 13px;
  padding: 10px;
  color: #315a8a;
  background: var(--p-info-bg);
  border: 1px solid var(--p-info-border);
  border-radius: 8px;
  font-size: 10px;
}

.projection-code strong {
  color: var(--p-success);
}

.snapshot-code span {
  color: #999;
}

.editor-page {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 108px);
  background: #e8e8e8;
}

.editor-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 8px 12px;
  background: #fff;
  border-bottom: 1px solid var(--p-border);
}

.editor-toolbar-left,
.editor-toolbar-actions,
.editor-toolbar-center {
  display: flex;
  align-items: center;
  gap: 8px;
}

.editor-toolbar-actions {
  justify-content: flex-end;
}

.editor-breadcrumb {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  font-size: 11px;
}

.editor-breadcrumb span {
  color: var(--p-text-subdued);
}

.editor-breadcrumb strong {
  overflow: hidden;
  max-width: 180px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editor-breadcrumb i {
  color: #aaa;
  font-style: normal;
}

.editor-toolbar-center {
  gap: 2px;
  padding: 2px;
  background: #ededed;
  border-radius: 9px;
}

.device-button {
  width: 30px;
  height: 28px;
}

.device-button.is-active {
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}

.save-state {
  color: var(--p-text-subdued);
  font-size: 10px;
}

.editor-workspace {
  display: grid;
  flex: 1;
  grid-template-columns: 250px minmax(440px, 1fr) 280px;
  min-height: 0;
}

.editor-shared-notice {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  color: #624000;
  background: var(--p-warning-bg);
  border-bottom: 1px solid var(--p-warning-border);
  font-size: 11px;
}

.editor-shared-notice > span {
  display: grid;
  width: 27px;
  height: 27px;
  background: rgba(255, 255, 255, .55);
  border-radius: 7px;
  place-items: center;
}

.editor-shared-notice > div {
  display: grid;
}

.editor-shared-notice small {
  color: inherit;
  opacity: .78;
}

.editor-deployment-notice {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr)) minmax(220px, auto);
  align-items: center;
  gap: 10px;
  padding: 8px 13px;
  background: var(--p-info-bg);
  border-bottom: 1px solid var(--p-info-border);
}

.editor-deployment-notice > span {
  display: grid;
  gap: 1px;
}

.editor-deployment-notice small,
.editor-deployment-notice em {
  color: var(--p-text-subdued);
  font-size: 10px;
  font-style: normal;
}

.editor-deployment-notice strong {
  font-size: 12px;
}

.editor-panel {
  min-width: 0;
  overflow-y: auto;
  background: #fff;
}

.editor-structure {
  border-right: 1px solid var(--p-border);
}

.editor-inspector {
  border-left: 1px solid var(--p-border);
}

.editor-panel-head {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 8px 12px;
  background: #fff;
  border-bottom: 1px solid var(--p-border);
}

.editor-panel-head > span {
  display: grid;
}

.editor-panel-head small {
  font-size: 10px;
}

.structure-tree,
.editor-shared-settings {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.editor-shared-settings {
  border-top: 1px solid var(--p-border);
}

.structure-group-label {
  padding: 4px 5px;
}

.structure-item {
  display: grid;
  grid-template-columns: 15px minmax(0, 1fr) 15px;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 6px 7px;
  color: #4b4b4b;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 12px;
  text-align: left;
}

.structure-item:hover,
.structure-item.is-active {
  color: var(--p-text);
  background: #f1f1f1;
  border-color: #ddd;
}

.structure-item.is-active {
  box-shadow: inset 2px 0 var(--p-action);
  font-weight: 600;
}

.structure-item.is-locked {
  color: #777;
}

.drag-handle {
  color: #aaa;
  font-size: 9px;
  letter-spacing: -3px;
}

.structure-item.is-locked .drag-handle {
  visibility: hidden;
}

.add-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 33px;
  margin-top: 5px;
  color: var(--p-interactive);
  background: #fff;
  border: 1px dashed #a9bdd5;
  border-radius: 7px;
  font-size: 11px;
}

.editor-stage {
  min-width: 0;
  overflow: auto;
  padding: 14px 18px 28px;
  background: #dedede;
}

.editor-stage-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 980px;
  margin: 0 auto 8px;
  color: #666;
  font-size: 9px;
}

.preview-frame {
  max-width: 980px;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid #c9c9c9;
  border-radius: 11px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  transition: max-width .2s ease;
}

.preview-mobile {
  max-width: 390px;
}

.preview-browser-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 10px;
  background: #f0f0f0;
  border-bottom: 1px solid #ddd;
}

.preview-browser-bar > span {
  width: 7px;
  height: 7px;
  background: #bbb;
  border-radius: 50%;
}

.preview-browser-bar > div {
  flex: 1;
  max-width: 300px;
  margin: 0 auto;
  padding: 3px 8px;
  color: #777;
  background: #fff;
  border-radius: 5px;
  font-size: 8px;
  text-align: center;
}

.buyer-page {
  min-height: 650px;
  color: #242424;
  background: #fff;
  font-family: Arial, sans-serif;
}

.buyer-logo {
  padding: 17px 5%;
  border-bottom: 1px solid #e5e5e5;
  font: 700 13px/1.2 Georgia, serif;
  letter-spacing: .12em;
}

.buyer-checkout-grid,
.buyer-thankyou-grid {
  display: grid;
  grid-template-columns: 58% 42%;
}

.buyer-checkout-grid > main,
.buyer-thankyou-grid > main {
  padding: 28px 7% 40px 13%;
}

.buyer-checkout-grid > aside,
.buyer-thankyou-grid > aside {
  padding: 28px 11% 40px 8%;
  background: #f4f4f4;
  border-left: 1px solid #e3e3e3;
}

.express-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.express-buttons button {
  min-height: 30px;
  color: #fff;
  background: #5a31f4;
  border: 0;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 700;
}

.express-buttons button:nth-child(2) { color: #123; background: #ffc439; }
.express-buttons button:nth-child(3) { background: #111; }

.or-line {
  position: relative;
  margin: 17px 0;
  border-top: 1px solid #ddd;
  text-align: center;
}

.or-line span {
  position: relative;
  top: -8px;
  padding: 0 8px;
  color: #777;
  background: #fff;
  font-size: 7px;
}

.buyer-checkout main section {
  display: grid;
  gap: 7px;
  margin-top: 17px;
}

.buyer-section-title {
  display: flex;
  justify-content: space-between;
}

.buyer-section-title a,
.buyer-checkout label,
.buyer-checkout small {
  color: #686868;
  font-size: 8px;
}

.fake-input {
  height: 28px;
  background: #fff;
  border: 1px solid #c8c8c8;
  border-radius: 4px;
}

.input-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.shipping-option {
  display: flex;
  justify-content: space-between;
  padding: 9px;
  background: #eef5ff;
  border: 1px solid #7da9d8;
  border-radius: 5px;
  font-size: 9px;
}

.payment-box {
  overflow: hidden;
  border: 1px solid #777;
  border-radius: 5px;
}

.payment-box > div:first-child {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px;
  background: #f7f7f7;
  font-size: 9px;
}

.radio-on {
  width: 9px;
  height: 9px;
  border: 3px solid #303030;
  border-radius: 50%;
}

.card-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 9px;
}

.card-inputs i {
  height: 22px;
  border: 1px solid #ccc;
  border-radius: 3px;
}

.card-inputs i:first-child {
  grid-column: 1 / -1;
}

.trust-strip {
  margin: 14px 0 8px;
  color: #56705f;
  font-size: 8px;
  text-align: center;
}

.pay-button,
.offer-accept {
  width: 100%;
  min-height: 36px;
  color: #fff;
  background: #303030;
  border: 0;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
}

.buyer-product {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
  font-size: 8px;
}

.buyer-product > span {
  display: grid;
}

.product-art {
  width: 38px;
  height: 38px;
  background: linear-gradient(145deg, #d7cbc0, #8e7462);
  border: 1px solid #d0d0d0;
  border-radius: 6px;
}

.product-art-small {
  background: linear-gradient(145deg, #d8c5e2, #7b5b8a);
}

.discount-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px;
  margin: 16px 0;
}

.discount-row div,
.discount-row button {
  min-height: 27px;
  padding: 7px;
  color: #777;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 8px;
}

.discount-row button {
  color: #333;
  font-weight: 700;
}

.buyer-totals {
  display: grid;
  gap: 7px;
  padding-top: 12px;
  border-top: 1px solid #ddd;
  font-size: 8px;
}

.buyer-totals div {
  display: flex;
  justify-content: space-between;
}

.buyer-totals .total {
  margin-top: 4px;
  font-size: 12px;
}

.buyer-totals small {
  font-size: 7px;
  font-weight: 400;
}

.buyer-offer {
  text-align: center;
}

.secure-message {
  padding: 7px;
  color: #355c46;
  background: #ecf6f0;
  font-size: 8px;
}

.buyer-offer main {
  max-width: 410px;
  margin: 0 auto;
  padding: 26px 24px 45px;
}

.offer-kicker {
  color: #6d5dfc;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
}

.offer-product-art {
  width: 150px;
  height: 150px;
  margin: 13px auto;
  background: radial-gradient(circle at 35% 30%, #e9ded4, #a18572 60%, #6e5544);
  border-radius: 14px;
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, .35), 0 8px 20px rgba(79, 58, 44, .18);
}

.buyer-offer h1,
.buyer-thankyou h1 {
  font: 700 23px/1.15 Georgia, serif;
}

.buyer-offer p {
  max-width: 330px;
  margin: 8px auto;
  color: #666;
  font-size: 10px;
}

.offer-price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 10px 0;
}

.offer-price s {
  color: #888;
}

.offer-price strong {
  font-size: 19px;
}

.offer-price span {
  padding: 2px 5px;
  color: #8a5300;
  background: #fff0c7;
  border-radius: 4px;
  font-size: 8px;
  font-weight: 700;
}

.buyer-offer ul {
  display: inline-grid;
  gap: 4px;
  margin: 0 auto 13px;
  padding-left: 16px;
  color: #555;
  font-size: 9px;
  text-align: left;
}

.offer-accept {
  min-height: 39px;
  background: #6d5dfc;
}

.offer-decline {
  margin: 9px 0;
  color: #777;
  background: transparent;
  border: 0;
  font-size: 9px;
  text-decoration: underline;
}

.offer-trust {
  display: block;
  color: #777;
  font-size: 7px;
}

.confirmation-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 9px;
  color: #fff;
  background: #29845a;
  border-radius: 50%;
  place-items: center;
  font-size: 19px;
}

.buyer-thankyou main > span,
.buyer-thankyou main > p {
  color: #666;
  font-size: 9px;
}

.thankyou-map,
.thankyou-details,
.referral-card {
  margin-top: 17px;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 7px;
}

.thankyou-map {
  display: grid;
  gap: 2px;
}

.thankyou-map span,
.thankyou-details span {
  color: #777;
  font-size: 8px;
}

.map-lines {
  height: 65px;
  margin-top: 8px;
  background: linear-gradient(30deg, transparent 0 40%, #c3d8cc 40% 43%, transparent 43% 60%, #d9d9d9 60% 64%, transparent 64%), #f1f1ed;
  border-radius: 5px;
}

.thankyou-details {
  display: grid;
  gap: 9px;
}

.thankyou-details > div {
  display: grid;
  gap: 2px;
}

.thankyou-details b {
  font-size: 8px;
}

.referral-card {
  display: grid;
  gap: 4px;
  color: #fff;
  background: #6d5dfc;
  border: 0;
}

.referral-card span {
  color: #ddd8ff !important;
}

.referral-card button {
  width: fit-content;
  margin-top: 4px;
  padding: 5px 8px;
  color: #4437b1;
  background: #fff;
  border: 0;
  border-radius: 4px;
  font-size: 8px;
  font-weight: 700;
}

.preview-mobile .buyer-checkout-grid,
.preview-mobile .buyer-thankyou-grid {
  grid-template-columns: 1fr;
}

.preview-mobile .buyer-checkout-grid > main,
.preview-mobile .buyer-thankyou-grid > main,
.preview-mobile .buyer-checkout-grid > aside,
.preview-mobile .buyer-thankyou-grid > aside {
  padding: 22px 20px;
}

.preview-mobile .buyer-checkout-grid > aside,
.preview-mobile .buyer-thankyou-grid > aside {
  order: -1;
  border: 0;
  border-bottom: 1px solid #ddd;
}

.editor-inspector-empty {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 50px 20px;
  color: var(--p-text-subdued);
  text-align: center;
}

.editor-inspector-empty span {
  display: grid;
  width: 46px;
  height: 46px;
  background: #f0f0f0;
  border-radius: 12px;
  place-items: center;
}

.editor-inspector-empty p {
  font-size: 11px;
}

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

.inspector-form > label {
  display: grid;
  gap: 5px;
  color: #555;
  font-size: 11px;
  font-weight: 600;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 2px;
  background: #ededed;
  border-radius: 8px;
}

.segmented button {
  min-height: 28px;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 10px;
}

.segmented button.is-active {
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .12);
}

.color-control {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 7px;
}

.color-control span {
  border: 1px solid #c7c7c7;
  border-radius: 7px;
}

.toggle-field {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checkbox-row {
  display: grid !important;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: start;
  justify-content: initial;
  width: 100%;
  gap: 10px;
  padding: 2px 0;
}

.toggle-field > span,
.checkbox-row > span {
  display: grid;
  gap: 2px;
}

.toggle-field input,
.checkbox-row input {
  flex: 0 0 auto;
  min-height: auto;
  accent-color: var(--p-action);
}

.checkbox-row input {
  width: 14px;
  height: 14px;
  margin: 3px 0 0;
}

.checkbox-row small {
  color: var(--p-text-subdued);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.35;
}

.editor-runtime-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  padding: 5px 12px;
  color: #355c46;
  background: var(--p-success-bg);
  border-top: 1px solid var(--p-success-border);
  font-size: 10px;
}

.editor-runtime-note span:last-child {
  color: #5b7464;
}

.not-found {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 100px 20px;
}

.modal-backdrop {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  overflow-y: auto;
  padding: 30px 16px;
  background: rgba(0, 0, 0, .42);
  place-items: center;
}

.modal {
  width: min(500px, 100%);
  overflow: hidden;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--p-shadow-popover);
}

.modal-wide {
  width: min(680px, 100%);
}

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

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

.modal-header p {
  margin-top: 3px;
  color: var(--p-text-subdued);
  font-size: 12px;
}

.modal-header .icon-button {
  font-size: 22px;
}

.modal-body {
  max-height: min(70vh, 680px);
  overflow-y: auto;
  padding: 16px 18px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 18px;
  background: #fafafa;
  border-top: 1px solid var(--p-border);
}

.modal:has(.audience-product-control.is-open) { overflow: visible; }
.modal-body:has(.audience-product-control.is-open) { position: relative; z-index: 2; overflow: visible; }

.form-stack {
  display: grid;
  gap: 14px;
}

.form-stack > label,
.form-stack fieldset {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 12px;
  font-weight: 600;
}

.form-stack legend {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
}

.radio-card,
.tracking-review-row {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px !important;
  padding: 9px 10px;
  background: #fff;
  border: 1px solid var(--p-border);
  border-radius: 8px;
  font-weight: 400 !important;
}

.radio-card:has(input:checked) {
  background: #f1f1f1;
  border-color: #777;
}

.radio-card > span,
.tracking-review-row > span:not(.tracking-review-icon) {
  display: grid;
}

.wizard-progress {
  display: grid;
  grid-template-columns: 1fr 36px 1fr;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.wizard-progress > span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--p-text-subdued);
  font-size: 11px;
  font-weight: 600;
}

.wizard-progress > span:last-child {
  justify-content: flex-end;
}

.wizard-progress b {
  display: grid;
  width: 23px;
  height: 23px;
  background: #e5e5e5;
  border-radius: 50%;
  place-items: center;
  font-size: 10px;
}

.wizard-progress .is-current,
.wizard-progress .is-complete {
  color: var(--p-text);
}

.wizard-progress .is-current b,
.wizard-progress .is-complete b {
  color: #fff;
  background: var(--p-action);
}

.wizard-progress > i {
  height: 1px;
  background: #d7d7d7;
}

.goal-grid,
.product-choice-list {
  display: grid;
  gap: 9px;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
}

.goal-grid legend,
.product-choice-list legend {
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 700;
}

.offer-product-current {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 11px;
  background: #f6f8fb;
  border: 1px solid #c9d8fb;
  border-radius: 9px;
}

.offer-product-current > div { display: grid; gap: 2px; min-width: 0; }
.offer-product-current small { color: #6d7175; font-size: 10px; }
.offer-product-current strong { overflow: hidden; color: #202223; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.offer-product-current [data-offer-selected-meta] { color: #6d7175; font-size: 10px; }
.offer-product-current .button { min-height: 30px; white-space: nowrap; }
.offer-product-options { display: none; }

.offer-product-picker-modal .modal-body { display: grid; gap: 10px; }
.offer-product-picker-search { position: sticky; top: 0; z-index: 1; box-sizing: border-box; width: 100%; min-height: 36px; padding: 8px 10px; background: #fff; border: 1px solid #8eb8ea; border-radius: 8px; font: inherit; font-size: 12px; }
.offer-product-picker-list { display: grid; gap: 8px; }
.offer-product-picker-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 11px; color: #202223; background: #fff; border: 1px solid #dfe3e8; border-radius: 9px; cursor: pointer; font: inherit; text-align: left; }
.offer-product-picker-option:hover,
.offer-product-picker-option.is-selected { background: #f1f8ff; border-color: #557da9; }
.offer-product-picker-option > span { display: grid; gap: 2px; min-width: 0; }
.offer-product-picker-option strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.offer-product-picker-option small { color: #6d7175; font-size: 11px; }
.offer-product-picker-option em { flex: none; padding: 3px 7px; color: #315f8e; background: #e8f0fe; border-radius: 999px; font-size: 10px; font-style: normal; font-weight: 700; }

@media (max-width: 640px) {
  .offer-product-current { grid-template-columns: minmax(0, 1fr); }
  .offer-product-current .button { justify-self: start; }
}

.goal-card {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--p-border);
  border-radius: 10px;
  cursor: pointer;
}

.goal-card:has(input:checked) {
  background: #f6f8fb;
  border-color: #557da9;
  box-shadow: 0 0 0 1px rgba(85, 125, 169, .14);
}

.goal-card-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.goal-card-copy > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.goal-card-copy em {
  padding: 2px 6px;
  color: #235f43;
  background: var(--p-success-bg);
  border-radius: 999px;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.goal-card-copy small {
  font-size: 11px;
}

.goal-card-copy code {
  color: #454545;
  font-size: 10px;
}

.audience-starter-fieldset {
  padding: 0;
  border: 0;
}

.audience-starter-fieldset > p {
  margin: -1px 0 9px;
  color: var(--p-text-subdued);
  font-size: 12px;
  line-height: 1.45;
}

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

.audience-starter-card {
  position: relative;
  display: grid;
  grid-template-columns: 16px 31px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  min-height: 123px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--p-border);
  border-radius: 10px;
  cursor: pointer;
}

.audience-starter-card:has(input:checked) {
  border-color: #557da9;
  background: #f6f8fb;
  box-shadow: 0 0 0 1px rgba(85, 125, 169, .14);
}

.audience-starter-card > input {
  margin-top: 5px;
}

.audience-starter-icon {
  display: grid;
  width: 30px;
  height: 30px;
  color: #315f8e;
  background: #edf4ff;
  border-radius: 8px;
  place-items: center;
}

.audience-starter-copy {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
}

.audience-starter-copy > span {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 5px;
}

.audience-starter-copy strong {
  font-size: 12px;
  line-height: 1.25;
}

.audience-starter-copy em,
.audience-starter-availability {
  width: max-content;
  max-width: 100%;
  color: #315f8e;
  background: #edf4ff;
  border-radius: 999px;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.35;
  padding: 2px 6px;
}

.audience-starter-copy em {
  color: #235f43;
  background: var(--p-success-bg);
}

.audience-starter-availability.is-restricted {
  color: #7a4c09;
  background: #fff4d8;
}

.audience-starter-copy small {
  color: var(--p-text-subdued);
  font-size: 10px;
  line-height: 1.35;
}

.audience-starter-copy code {
  overflow: hidden;
  color: #454545;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.audience-capability-note {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  padding: 10px;
  color: #4e6780;
  background: var(--p-info-bg);
  border: 1px solid var(--p-info-border);
  border-radius: 9px;
}

.audience-capability-note > span {
  display: grid;
  width: 27px;
  height: 27px;
  color: #315f8e;
  background: #fff;
  border-radius: 7px;
  place-items: center;
}

.audience-capability-note > div {
  display: grid;
  gap: 2px;
}

.audience-capability-note strong {
  color: var(--p-text);
  font-size: 11px;
}

.audience-capability-note p,
.audience-capability-note small {
  margin: 0;
  font-size: 10px;
  line-height: 1.45;
}

.audience-capability-note small {
  color: #715420;
}

.journey-summary,
.offer-placement {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 11px;
  background: var(--p-info-bg);
  border: 1px solid var(--p-info-border);
  border-radius: 10px;
}

.journey-summary-icon,
.offer-placement > span {
  display: grid;
  width: 36px;
  height: 36px;
  color: #315f8e;
  background: #fff;
  border-radius: 9px;
  place-items: center;
}

.journey-summary > div,
.offer-placement > div {
  display: grid;
  gap: 2px;
}

.journey-summary code {
  margin-top: 3px;
  color: #315f8e;
  font-size: 10px;
}

.offer-placement p {
  color: #4e6780;
  font-size: 11px;
}

.offer-display-summary {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding: 10px 11px;
  background: #f6f8fb;
  border: 1px solid #dfe3e8;
  border-radius: 9px;
}

.offer-display-summary-head { display: grid; gap: 2px; }
.offer-display-summary-head strong { color: #202223; font-size: 13px; }
.offer-display-summary-head small,
.offer-display-summary p { margin: 0; color: #6d7175; font-size: 11px; line-height: 1.45; }
.offer-display-summary-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.offer-display-summary-chips span { padding: 3px 7px; color: #315f8e; background: #eef5ff; border-radius: 999px; font-size: 10px; font-weight: 650; line-height: 1.3; }

.auto-setup-list {
  display: grid;
  gap: 7px;
  padding: 10px;
  background: var(--p-bg-subdued);
  border-radius: 9px;
}

.auto-setup-list span {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #3f5f4e;
  font-size: 11px;
}

.product-choice {
  display: grid;
  grid-template-columns: 18px 36px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  background: #fff;
  border: 1px solid var(--p-border);
  border-radius: 9px;
  cursor: pointer;
}

.product-choice:has(input:checked) {
  background: #f6f8fb;
  border-color: #557da9;
}

.product-choice-art {
  display: grid;
  width: 34px;
  height: 34px;
  color: #6e4c12;
  background: var(--p-warning-bg);
  border-radius: 8px;
  place-items: center;
}

.product-choice > span:last-child {
  display: grid;
}

.offer-outcome-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.offer-outcome-preview span {
  display: grid;
  gap: 2px;
  padding: 9px;
  background: var(--p-bg-subdued);
  border-radius: 8px;
  font-size: 10px;
}

.advanced-disclosure {
  border-top: 1px solid var(--p-border);
}

.advanced-disclosure > summary {
  padding: 10px 0 0;
  color: var(--p-interactive);
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
}

.advanced-disclosure > .form-stack {
  margin-top: 12px;
  padding: 12px;
  background: var(--p-bg-subdued);
  border-radius: 9px;
}

.modal-callout {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px;
  color: #355c46;
  background: var(--p-success-bg);
  border-radius: 8px;
}

.modal-callout-warning {
  color: #624000;
  background: var(--p-warning-bg);
}

.modal-callout > span {
  display: grid;
}

.modal-callout small {
  color: inherit;
  opacity: .8;
}

.traffic-modal-value {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.traffic-modal-value strong {
  font-size: 26px;
}

.range-input {
  width: 100%;
  accent-color: var(--p-success);
}

.traffic-allocation-preview {
  display: flex;
  justify-content: space-between;
  color: var(--p-text-subdued);
  font-size: 11px;
}

.modal-intro,
.activity-detail-copy {
  margin-bottom: 13px;
  color: var(--p-text-subdued);
}

.tracking-review-list,
.publish-checks {
  display: grid;
  gap: 7px;
  margin-bottom: 15px;
}

.tracking-review-icon {
  display: grid;
  width: 28px;
  height: 28px;
  background: #eee;
  border-radius: 7px;
  place-items: center;
}

.publish-check {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 9px;
  border: 1px solid var(--p-border);
  border-radius: 8px;
}

.activity-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.info-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.info-modal-grid > div {
  display: grid;
  gap: 5px;
  padding: 12px;
  background: #f7f7f7;
  border-radius: 9px;
}

.info-modal-grid > div > span {
  display: grid;
  width: 34px;
  height: 34px;
  background: #fff;
  border: 1px solid var(--p-border);
  border-radius: 8px;
  place-items: center;
}

.info-modal-grid p {
  color: var(--p-text-subdued);
  font-size: 11px;
}

.architecture-diagram {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 15px;
  background: #f7f7f7;
  border-radius: 10px;
}

.architecture-diagram > div:first-child,
.architecture-hosts > div {
  display: grid;
  min-width: 230px;
  padding: 11px;
  background: #fff;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  text-align: center;
}

.architecture-split {
  width: 1px;
  height: 20px;
  background: #aaa;
}

.architecture-hosts {
  display: flex;
  gap: 12px;
}

.modal-bullets {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  padding-left: 20px;
  color: #4f4f4f;
}

.capability-formula {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 16px;
  overflow-x: auto;
  background: #232323;
  border-radius: 9px;
}

.capability-formula span {
  padding: 6px 8px;
  color: #fff;
  background: #414141;
  border-radius: 6px;
  white-space: nowrap;
}

.capability-formula b {
  color: #999;
}

.toast-root {
  position: fixed;
  z-index: 300;
  right: 18px;
  bottom: 18px;
  pointer-events: none;
}

.toast {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: min(420px, calc(100vw - 32px));
  padding: 11px 12px;
  color: #fff;
  background: #272727;
  border-radius: 10px;
  box-shadow: var(--p-shadow-popover);
  pointer-events: auto;
  animation: toast-in .18s ease-out;
}

.toast-info { background: #294d73; }
.toast-critical { background: #7d2417; }

.toast button {
  color: #fff;
  background: transparent;
  border: 0;
  font-size: 18px;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Funnel canvas: a merchant-facing journey map, using Shopify's neutral card and status language. */
.funnel-library-panel { overflow: hidden; }

.funnel-library-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.funnel-library-head > div { display: grid; gap: 2px; }
.funnel-library-head strong { font-size: 14px; }
.funnel-library-head span { color: var(--p-text-subdued); font-size: 12px; }

.funnel-library-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  border-top: 1px solid var(--p-border);
}

.funnel-library-list .funnel-list-item { min-width: 0; border-right: 1px solid var(--p-border); }
.funnel-library-list .funnel-list-item:last-child { border-right: 0; }
.funnel-library-list .funnel-list-item.is-active { background: #f6f6f7; box-shadow: inset 3px 0 #303030; }

.funnel-canvas-shell { border-top: 1px solid var(--p-border); }

.funnel-canvas-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: #fff;
  border-bottom: 1px solid var(--p-border);
}

.funnel-canvas-toolbar > div:first-child { display: grid; gap: 3px; }
.funnel-canvas-toolbar p { color: var(--p-text-subdued); font-size: 12px; }

.funnel-canvas-toolbar-compact { padding-block: 11px; }
.funnel-canvas-toolbar-compact > div:first-child { display: flex; align-items: center; gap: 9px; }
.funnel-canvas-toolbar-compact strong { color: #202223; font-size: 13px; }
.funnel-canvas-toolbar-compact small { color: var(--p-text-subdued); font-size: 11px; }

.funnel-canvas-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--p-text-subdued);
  font-size: 11px;
  white-space: nowrap;
}

.funnel-canvas-toolbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.canvas-zoom-controls { display: inline-flex; align-items: center; min-height: 32px; overflow: hidden; background: #f6f6f7; border: 1px solid var(--p-border); border-radius: 7px; }
.canvas-zoom-controls button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-width: 30px; min-height: 30px; padding: 4px 7px; color: #303030; background: transparent; border: 0; border-right: 1px solid var(--p-border); font-size: 12px; font-weight: 650; }
.canvas-zoom-controls button:hover { background: #fff; }
.canvas-zoom-controls button:focus-visible { position: relative; outline: 2px solid #005bd3; outline-offset: -2px; }
.canvas-zoom-controls button:first-child { padding-inline: 8px; }
.canvas-zoom-controls button:last-child { border-right: 0; font-size: 17px; line-height: 1; }
.canvas-zoom-controls output { min-width: 43px; color: #5c5f62; font-size: 11px; font-variant-numeric: tabular-nums; text-align: center; }
.canvas-fullscreen-launch { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 6px 9px; color: #303030; background: #fff; border: 1px solid var(--p-border); border-radius: 7px; font-size: 12px; font-weight: 650; }
.canvas-fullscreen-launch:hover { background: #f6f6f7; }
.canvas-fullscreen-launch:focus-visible { outline: 2px solid #005bd3; outline-offset: 2px; }

.funnel-canvas-legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }
.legend-dot-bestcheckout { background: #303030; }
.legend-dot-shopify { background: #8c9196; }

.focus-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 9px;
  color: var(--p-text);
  background: var(--p-bg-surface-secondary);
  border: 1px solid var(--p-border);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 650;
}

.focus-mode-toggle:hover { background: var(--p-bg-surface-hover); }
.focus-mode-toggle:focus-visible { outline: 2px solid #005bd3; outline-offset: 3px; }
.app-window-hostbar {
  position: fixed;
  z-index: 70;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 16px;
  color: #202223;
  background: #fff;
  border-bottom: 1px solid var(--p-border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .04);
}
.app-window-hostbrand { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.app-window-hostbrand .shopify-glyph { width: 24px; height: 24px; font-size: 15px; }
.app-window-hostdivider { width: 1px; height: 18px; background: var(--p-border); }
.app-window-hosttitle { color: var(--p-text-subdued); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-window-exit { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 6px 10px; color: var(--p-text); background: var(--p-bg-surface-secondary); border: 1px solid var(--p-border); border-radius: 6px; font-size: 12px; font-weight: 650; }
.app-window-exit:hover { background: var(--p-bg-surface-hover); }
.app-window-exit:focus-visible { outline: 2px solid #005bd3; outline-offset: 3px; }

/* Shopify App Window prototype: the host owns this exit bar and the app fills the Admin workspace below. */
.shopify-admin.is-focus-mode { min-height: 100vh; }
.shopify-admin.is-focus-mode .shopify-topbar,
.shopify-admin.is-focus-mode .shopify-sidebar,
.shopify-admin.is-focus-mode .embedded-titlebar,
.shopify-admin.is-focus-mode .mobile-app-nav { display: none; }
.shopify-admin.is-focus-mode .shopify-body { display: block; min-height: 100vh; }
.shopify-admin.is-focus-mode .embedded-app { min-height: 100vh; }
.shopify-admin.is-focus-mode .page-root { min-height: 100vh; padding: 52px 0 0; }

.is-focus-canvas .funnel-detail-page { display: block; height: calc(100vh - 52px); min-height: calc(100vh - 52px); padding: 0; overflow: hidden; }
.is-focus-canvas .funnel-detail-page > :not(.card) { display: none; }
.is-focus-canvas .funnel-detail-page > .card { display: flex; height: 100%; min-height: 0; border: 0; border-radius: 0; box-shadow: none; }
.is-focus-canvas .funnel-detail-intro,
.is-focus-canvas .node-inspector { display: none; }
.is-focus-canvas .funnel-canvas-shell { display: flex; flex: 1; flex-direction: column; min-height: 0; width: 100%; border-top: 0; }
.is-focus-canvas .funnel-canvas-toolbar { flex: 0 0 auto; padding: 14px 22px; }
.is-focus-canvas .funnel-canvas-shell .canvas-wrap { flex: 1; min-height: 0; padding: 18px 22px 30px; overflow: auto; border: 0; border-radius: 0; }
.is-focus-canvas .funnel-journey-board { margin: 0 auto; }

.is-focus-editor .editor-page { min-height: calc(100vh - 52px); }
.is-focus-editor .editor-toolbar { position: sticky; z-index: 10; top: 52px; }
.is-focus-editor .editor-shared-notice,
.is-focus-editor .editor-deployment-notice,
.is-focus-editor .editor-runtime-note { display: none; }
.is-focus-editor .editor-workspace { min-height: calc(100vh - 106px); height: calc(100vh - 106px); grid-template-columns: 230px minmax(520px, 1fr) 280px; }
.is-focus-editor .editor-panel,
.is-focus-editor .editor-stage { max-height: calc(100vh - 106px); }

/* Original BestShopio page designer. The App Window supplies the host bar; this
   surface intentionally keeps the original tree / preview / settings language. */
.bcx-editor-shell { height: calc(100vh - 52px); min-height: 620px; background: #fff; }
.bcx-editor { --bcx-ink: #1a2233; --bcx-muted: #697386; --bcx-line: #e1e6ec; --bcx-panel: #f5f7fa; --bcx-brand: #3b6fd4; display: flex; flex-direction: column; height: 100%; min-height: 0; color: var(--bcx-ink); background: #fff; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.bcx-toolbar { display: flex; align-items: center; min-height: 53px; gap: 9px; padding: 8px 14px; background: #fff; border-bottom: 1px solid var(--bcx-line); }
.bcx-back, .bcx-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 32px; padding: 6px 10px; color: #354052; background: #fff; border: 1px solid #d8dee7; border-radius: 7px; font-size: 12px; font-weight: 650; }
.bcx-back:hover, .bcx-button:hover { background: #f5f7fa; border-color: #bfc9d7; }
.bcx-button-primary { color: #fff; background: #2b62d6; border-color: #2b62d6; }
.bcx-button-primary:hover { color: #fff; background: #1f52bd; border-color: #1f52bd; }
.bcx-theme-trigger.is-active { color: #2354ba; background: #edf3ff; border-color: #8faedf; }
.bcx-title { display: grid; gap: 1px; min-width: 0; }
.bcx-title strong { max-width: 300px; overflow: hidden; font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
.bcx-title small { color: var(--bcx-muted); font-size: 10.5px; }
.bcx-toolbar-gap { flex: 1; }
.bcx-device { display: inline-flex; overflow: hidden; border: 1px solid #d8dee7; border-radius: 8px; }
.bcx-device button { display: inline-grid; width: 33px; height: 30px; color: var(--bcx-muted); background: #fff; border: 0; place-items: center; }
.bcx-device button.is-active { color: #fff; background: #2b62d6; }
.bcx-save-state { color: var(--bcx-muted); font-size: 10.5px; white-space: nowrap; }
.bcx-layout { display: grid; flex: 1; grid-template-columns: 238px minmax(460px, 1fr) 292px; min-height: 0; }
.bcx-tree, .bcx-settings { display: flex; flex-direction: column; min-width: 0; background: #fff; }
.bcx-tree { border-right: 1px solid var(--bcx-line); }
.bcx-settings { overflow: auto; border-left: 1px solid var(--bcx-line); }
.bcx-tree > header { display: grid; gap: 2px; padding: 14px 14px 11px; border-bottom: 1px solid var(--bcx-line); }
.bcx-tree > header strong { font-size: 13px; }.bcx-tree > header small { color: var(--bcx-muted); font-size: 11px; }
.bcx-tree-scroll { flex: 1; overflow: auto; padding: 8px 10px 15px; }.bcx-tree footer { padding: 10px; border-top: 1px solid var(--bcx-line); }
.bcx-tree-group { margin: 0 0 12px; }.bcx-tree-group h3 { margin: 0 7px 5px; color: #7a8492; font-size: 10.5px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.bcx-tree-item { display: grid; grid-template-columns: 12px minmax(0, 1fr) 14px; align-items: center; width: 100%; min-height: 34px; gap: 7px; padding: 6px 8px; color: #445064; background: transparent; border: 0; border-radius: 7px; font-size: 12.5px; text-align: left; }
.bcx-tree-item > i { display: inline-block; width: 6px; height: 6px; color: #b2bac5; background: #c7cfda; border-radius: 50%; }.bcx-tree-item > i .icon { display: block; width: 14px; height: 14px; color: #778294; background: transparent; }.bcx-tree-item > em { display: inline-flex; color: #929bab; font-style: normal; }.bcx-tree-item:hover { background: #f4f6f9; }.bcx-tree-item.is-selected { color: #2354ba; background: #edf3ff; font-weight: 700; }.bcx-tree-item.is-selected > i { background: #2b62d6; }.bcx-tree-item.is-selected > i .icon { color: #2b62d6; }
.bcx-canvas { display: flex; flex-direction: column; min-width: 0; background: #eef1f5; }.bcx-canvas-meta { display: flex; justify-content: space-between; padding: 8px 13px; color: #6c7684; background: #fff; border-bottom: 1px solid var(--bcx-line); font-size: 11px; }.bcx-canvas-scroll { display: flex; flex: 1; justify-content: center; overflow: auto; padding: 20px; }
.bcx-frame { width: min(940px, 100%); min-width: 640px; align-self: flex-start; overflow: hidden; background: var(--bcx-page); border: 1px solid #d7dee8; border-radius: 11px; box-shadow: 0 8px 30px rgba(20, 30, 50, .13); }.bcx-frame.is-mobile { width: 390px; min-width: 330px; }.bcx-browser { display: flex; align-items: center; gap: 5px; height: 29px; padding: 0 10px; background: #f5f6f7; border-bottom: 1px solid #e1e5e9; }.bcx-browser i { width: 7px; height: 7px; background: #c0c6ce; border-radius: 50%; }.bcx-browser span { width: min(260px, 50%); margin: 0 auto; padding: 3px 8px; color: #8b94a0; background: #fff; border-radius: 5px; font-size: 8px; text-align: center; }
.bcx-storefront { color: #1a2233; background: var(--bcx-page); font-family: Inter, system-ui, sans-serif; }.bcx-store-brand { padding: 16px 22px; color: #1a2233; background: #fff; border-bottom: 1px solid #edf0f3; font-family: Georgia, serif; font-size: 14px; font-weight: 800; letter-spacing: .13em; }.bcx-preview-block { position: relative; border: 2px solid transparent; cursor: pointer; }.bcx-preview-block:hover { border-color: rgba(43, 98, 214, .3); }.bcx-preview-block.is-selected { border-color: #2b62d6; }
.bcx-announcement { display: grid; padding: 7px 14px; font-size: 12.5px; font-weight: 650; place-items: center; text-align: center; }.bcx-banner { display: grid; height: 148px; color: #917d59; background: linear-gradient(120deg, #e7d6b8, #f2e6cf); place-items: center; font-size: 12px; }.bcx-checkout-columns { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 22px; padding: 21px; }.bcx-checkout-columns main, .bcx-checkout-columns aside { min-width: 0; }.bcx-bundle h3, .bcx-addon h3, .bcx-summary h3, .bcx-tracking h3, .bcx-benefits h3 { margin: 0 0 11px; font-size: 14px; }.bcx-tier { position: relative; display: grid; grid-template-columns: 17px minmax(0, 1fr) auto auto; align-items: start; gap: 8px; margin: 0 0 10px; padding: 13px; border: 1.5px solid #e0e6ee; border-radius: var(--bcx-radius); }.bcx-tier.is-default { border-color: #1a2233; }.bcx-radio { width: 14px; height: 14px; margin-top: 2px; border: 2px solid #c4ccd6; border-radius: 50%; }.bcx-tier.is-default .bcx-radio { border-color: #1a2233; background: radial-gradient(#1a2233 40%, #fff 45%); }.bcx-tier-copy { display: grid; gap: 3px; }.bcx-tier-copy strong { font-size: 13px; }.bcx-tier-copy small, .bcx-tier-copy span { color: #697386; font-size: 11px; }.bcx-tier > b { font-size: 14px; white-space: nowrap; }.bcx-tier > s { color: #98a2b1; font-size: 11px; }.bcx-tier > em { position: absolute; top: -9px; right: 8px; padding: 2px 7px; color: #fff; background: #1a2233; border-radius: 4px; font-size: 9px; font-style: normal; font-weight: 750; }.bcx-tier > i { position: absolute; right: 9px; bottom: 7px; color: #1f8052; font-size: 8.5px; font-style: normal; font-weight: 750; }
.bcx-addon { margin-top: 14px; padding: 13px; border: 1px solid #e0e6ee; border-radius: var(--bcx-radius); }.bcx-addon > div { display: grid; grid-template-columns: 16px 33px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 8px 0; border-top: 1px solid #f0f2f5; font-size: 12px; }.bcx-addon > div:first-of-type { border-top: 0; }.bcx-check { width: 13px; height: 13px; border: 2px solid #c5ced9; border-radius: 4px; }.bcx-product-image { width: 31px; height: 31px; background: linear-gradient(145deg, #d7cbc0, #8d7462); border-radius: 6px; }.bcx-addon b { font-size: 12px; }.bcx-addon b s { margin-left: 4px; color: #9ba3ae; font-size: 10px; font-weight: 400; }.bcx-express { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }.bcx-express span { display: grid; height: 36px; color: #fff; background: #ffc439; border-radius: 8px; place-items: center; font-size: 11px; font-weight: 800; }.bcx-express span:nth-child(2) { background: #1f6fd2; }.bcx-express span:nth-child(3) { color: #111; background: #ffd814; }.bcx-or { display: flex; align-items: center; gap: 8px; margin: 12px 0; color: #9ca5b0; font-size: 10px; }.bcx-or::before, .bcx-or::after { flex: 1; height: 1px; background: #e0e5eb; content: ''; }.bcx-payment label { display: block; margin: 10px 0 5px; font-size: 11px; font-weight: 700; }.bcx-input { height: 36px; padding: 0 11px; color: #9aa4af; border: 1px solid #e0e6ee; border-radius: 8px; font-size: 11px; line-height: 36px; }.bcx-card { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 10px; border: 1px solid #e0e6ee; border-radius: 8px; }.bcx-card strong { grid-column: 1 / -1; font-size: 11px; }.bcx-card span { height: 29px; border: 1px solid #e0e6ee; border-radius: 5px; }.bcx-payment button, .bcx-accept { width: 100%; height: 42px; margin-top: 12px; color: #fff; border: 0; border-radius: var(--bcx-radius); font-size: 12px; font-weight: 750; }.bcx-trust { display: grid; gap: 7px; margin-top: 13px; }.bcx-trust div { display: flex; align-items: center; gap: 7px; color: #5b6573; border: 1px solid #e0e6ee; border-radius: 8px; padding: 8px; font-size: 9.5px; font-weight: 700; }.bcx-trust i { color: #16834e; font-style: normal; }.bcx-reviews { padding: 18px 21px; border-top: 1px solid #edf0f3; text-align: center; }.bcx-reviews > strong { display: block; font-size: 20px; }.bcx-reviews > strong i { color: #efad00; font-size: 14px; font-style: normal; letter-spacing: 1px; }.bcx-reviews > small { display: block; margin-bottom: 10px; color: #748091; font-size: 11px; }.bcx-reviews article { padding: 10px 0; border-top: 1px solid #eef0f3; text-align: left; }.bcx-reviews article b { font-size: 11px; }.bcx-reviews article p { margin: 3px 0 0; color: #667181; font-size: 11px; line-height: 1.5; }.bcx-footer { padding: 18px 20px; background: #f7f8fa; text-align: center; }.bcx-footer strong { font-family: Georgia, serif; font-size: 13px; letter-spacing: .1em; }.bcx-footer div { display: flex; justify-content: center; gap: 12px; margin: 9px 0; color: #657080; font-size: 10px; }.bcx-footer small { color: #8a94a1; font-size: 9.5px; }
.bcx-thankyou-main { max-width: 650px; margin: 0 auto; padding: 20px; }.bcx-confirm { padding: 24px 18px; text-align: center; }.bcx-confirm > div { display: grid; width: 50px; height: 50px; margin: 0 auto 12px; color: #1f8052; background: #e7f7ee; border-radius: 50%; place-items: center; font-size: 25px; }.bcx-confirm h1 { margin: 0; font-size: 21px; }.bcx-confirm p { margin: 6px 0 0; color: #697386; font-size: 12px; }.bcx-summary, .bcx-tracking { margin: 14px 0; padding: 14px; border: 1px solid #e0e6ee; border-radius: var(--bcx-radius); }.bcx-summary > div { display: flex; justify-content: space-between; padding: 4px 0; color: #627081; font-size: 12px; }.bcx-summary .is-total { margin-top: 5px; padding-top: 9px; color: #1a2233; border-top: 1px solid #e0e6ee; }.bcx-tracking > div { height: 6px; overflow: hidden; background: #e0e6ee; border-radius: 99px; }.bcx-tracking > div i { display: block; width: 58%; height: 100%; background: #1f8052; }.bcx-tracking > span { display: inline-block; width: 33%; margin-top: 8px; color: #697386; font-size: 9px; }.bcx-offer-main { max-width: 520px; margin: 0 auto; padding: 26px 21px 42px; text-align: center; }.bcx-offer-head small { color: #2b62d6; font-size: 10px; font-weight: 800; letter-spacing: .12em; }.bcx-offer-head h1 { margin: 8px 0; font-family: Georgia, serif; font-size: 27px; }.bcx-offer-head p { margin: 0; color: #697386; font-size: 13px; line-height: 1.55; }.bcx-offer-product > div { width: 152px; height: 152px; margin: 18px auto 11px; background: radial-gradient(circle at 35% 30%, #e9ded4, #a18572 60%, #6e5544); border-radius: 16px; box-shadow: inset 0 0 0 8px rgba(255,255,255,.35); }.bcx-offer-product h2 { margin: 0; font-size: 18px; }.bcx-offer-product p { margin: 7px 0; }.bcx-offer-product s { color: #9da6b1; }.bcx-offer-product strong { margin: 0 4px; font-size: 19px; }.bcx-offer-product em { padding: 3px 6px; color: #8a5300; background: #fff0c7; border-radius: 4px; font-size: 9px; font-style: normal; font-weight: 800; }.bcx-benefits { display: inline-grid; gap: 6px; margin: 11px auto 2px; text-align: left; }.bcx-benefits h3 { text-align: center; }.bcx-benefits div { color: #5a6574; font-size: 12px; }.bcx-decline { margin-top: 9px; color: #6b7581; background: none; border: 0; font-size: 11px; text-decoration: underline; }
.bcx-settings-head { display: flex; align-items: center; gap: 9px; padding: 14px; border-bottom: 1px solid var(--bcx-line); }.bcx-settings-head > span { display: inline-grid; width: 27px; height: 27px; color: #2b62d6; background: #edf3ff; border-radius: 7px; place-items: center; }.bcx-settings-head div { display: grid; gap: 1px; }.bcx-settings-head strong { font-size: 13px; }.bcx-settings-head small { color: #778293; font-size: 10.5px; }.bcx-settings-form { padding: 14px; }.bcx-field { display: grid; gap: 5px; margin-bottom: 12px; color: #667181; font-size: 11px; font-weight: 650; }.bcx-field input, .bcx-field textarea { box-sizing: border-box; width: 100%; color: #283445; background: #fff; border: 1px solid #d7dee8; border-radius: 7px; font-size: 12.5px; font-weight: 400; }.bcx-field input { height: 34px; padding: 0 10px; }.bcx-field textarea { min-height: 66px; padding: 8px 10px; resize: vertical; }.bcx-field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.bcx-help { margin: 0 0 10px; color: #778293; font-size: 11.5px; line-height: 1.5; }.bcx-section-label { margin: 16px 0 7px; color: #657080; font-size: 11px; font-weight: 750; }.bcx-repeat { padding: 9px; margin: 0 0 8px; border: 1px solid #e0e6ee; border-radius: 9px; }.bcx-repeat header { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }.bcx-repeat header strong { flex: 1; overflow: hidden; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }.bcx-repeat header button { display: inline-grid; width: 23px; height: 23px; color: #8993a0; background: transparent; border: 0; border-radius: 5px; place-items: center; }.bcx-repeat header button:hover { color: #c53f36; background: #fdefed; }.bcx-repeat .bcx-field:last-child { margin-bottom: 0; }.bcx-add { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 33px; gap: 5px; color: #2b62d6; background: #fff; border: 1px dashed #8faedf; border-radius: 7px; font-size: 11.5px; font-weight: 700; }.bcx-add:hover { background: #edf3ff; }.bcx-toggle { display: flex; align-items: center; gap: 8px; min-height: 29px; margin: 0 0 8px; padding: 0; color: #394658; background: transparent; border: 0; font-size: 11.5px; text-align: left; }.bcx-toggle i { position: relative; width: 32px; height: 18px; background: #c9d1db; border-radius: 99px; }.bcx-toggle i::after { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; background: #fff; border-radius: 50%; content: ''; transition: left .15s; }.bcx-toggle.is-on i { background: #2b62d6; }.bcx-toggle.is-on i::after { left: 16px; }.bcx-empty { display: grid; justify-items: center; gap: 9px; padding: 48px 20px; color: #7a8492; text-align: center; }.bcx-empty > span { display: grid; width: 42px; height: 42px; background: #f1f3f6; border-radius: 11px; place-items: center; }.bcx-empty p { margin: 0; font-size: 11.5px; line-height: 1.5; }
@media (max-width: 1000px) { .bcx-layout { grid-template-columns: 210px minmax(380px, 1fr) 252px; }.bcx-save-state { display: none; }.bcx-toolbar .bcx-button:not(.bcx-button-primary) { display: none; }.bcx-checkout-columns { grid-template-columns: 1fr 310px; } }
@media (max-width: 760px) { .bcx-editor-shell { min-height: 0; height: auto; }.bcx-toolbar { flex-wrap: wrap; }.bcx-layout { grid-template-columns: 1fr; }.bcx-tree, .bcx-settings { max-height: none; border: 0; border-bottom: 1px solid var(--bcx-line); }.bcx-tree-scroll { max-height: 300px; }.bcx-canvas { min-height: 620px; }.bcx-frame { min-width: 600px; }.bcx-tree footer { display: none; } }

/* --------------------------------------------------------------------------
   BestShopio source-aligned Checkout editor
   Ported from the real Online Store checkout builder structure.  The Custom
   App only hosts it through App Window; these styles deliberately avoid the
   normal admin-page card layout.  Admin-facing labels stay at 12px or above.
   -------------------------------------------------------------------------- */
.source-editor-shell { height: calc(100vh - 52px); min-height: 640px; background: #fff; }
.source-checkout-editor { --sce-ink:#202223; --sce-body:#4a4a4a; --sce-muted:#6d7175; --sce-line:#e1e3e5; --sce-panel:#f6f6f7; --sce-brand:#005bd3; display:flex; flex-direction:column; height:100%; min-height:0; color:var(--sce-ink); background:#fff; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif; }
.sce-topbar { display:grid; grid-template-columns:minmax(280px,1fr) auto minmax(280px,1fr); align-items:center; gap:12px; min-height:56px; padding:9px 14px; background:#fff; border-bottom:1px solid var(--sce-line); }
.sce-top-left,.sce-top-center,.sce-top-right { display:flex; align-items:center; gap:8px; min-width:0; }
.sce-top-center { justify-content:center; }.sce-top-right { justify-content:flex-end; }
.sce-icon-button { display:grid; width:32px; height:30px; padding:0; color:var(--sce-muted); background:transparent; border:0; border-radius:6px; place-items:center; }
.sce-icon-button:hover { color:var(--sce-ink); background:var(--sce-panel); }.sce-icon-button.is-active { color:var(--sce-brand); background:#e8f0fe; }
.sce-rail,.sce-device { display:inline-flex; gap:2px; padding:3px; background:var(--sce-panel); border-radius:8px; }
.sce-device button { display:grid; width:30px; height:26px; padding:0; color:var(--sce-muted); background:transparent; border:0; border-radius:6px; place-items:center; }
.sce-device button.is-active { color:var(--sce-ink); background:#fff; box-shadow:0 1px 2px rgba(0,0,0,.12); }
.sce-title { display:grid; min-width:0; gap:1px; }.sce-title strong { overflow:hidden; font-size:13px; font-weight:650; text-overflow:ellipsis; white-space:nowrap; }.sce-title span { display:inline-flex; align-items:center; gap:4px; color:var(--sce-muted); font-size:12px; }
.sce-page-picker { display:flex; align-items:center; gap:7px; min-width:170px; height:32px; padding:0 10px; color:var(--sce-ink); background:#fff; border:1px solid #c9cccf; border-radius:7px; font-size:12px; font-weight:600; }.sce-page-picker:hover { border-color:#616161; }.sce-page-picker span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sce-button { min-height:32px; padding:6px 10px; color:#303030; background:#fff; border:1px solid #c9cccf; border-radius:7px; font-size:12px; font-weight:650; }.sce-button:hover { background:#f6f6f7; border-color:#8c9196; }.sce-button.primary { color:#fff; background:#005bd3; border-color:#005bd3; }.sce-button.primary:hover { color:#fff; background:#003d99; border-color:#003d99; }
.sce-workspace { display:grid; flex:1; min-height:0; grid-template-columns:260px minmax(420px,1fr) 312px; overflow:hidden; }
.sce-tree,.sce-inspector { display:flex; flex-direction:column; min-width:0; background:#fff; }.sce-tree { border-right:1px solid var(--sce-line); }.sce-inspector { border-left:1px solid var(--sce-line); }
.sce-tree>header { display:grid; gap:2px; padding:12px 14px; border-bottom:1px solid var(--sce-line); }.sce-tree>header strong { font-size:13px; }.sce-tree>header small { color:var(--sce-muted); font-size:12px; line-height:1.35; }
.sce-tree-scroll { position:relative; flex:1; overflow:auto; padding:9px; }
.sce-template-card { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:3px 8px; padding:10px; margin:1px 0 12px; background:#f7f9ff; border:1px solid #c9d8fb; border-radius:8px; }.sce-template-card>b { overflow:hidden; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }.sce-template-card small { overflow:hidden; color:#5c5f62; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }.sce-template-card button { grid-row:1 / 3; grid-column:2; display:inline-flex; align-items:center; gap:4px; height:28px; padding:0 7px; color:#005bd3; background:#fff; border:1px solid #c9d8fb; border-radius:6px; font-size:12px; font-weight:650; }
.sce-tree-group { margin:0 0 14px; }.sce-tree-group h3 { margin:0 6px 5px; color:#6d7175; font-size:12px; font-weight:700; letter-spacing:.035em; text-transform:uppercase; }
.sce-tree-row { display:grid; grid-template-columns:18px minmax(0,1fr) 18px; align-items:center; width:100%; min-height:34px; gap:8px; padding:6px 8px; color:#4a4a4a; background:transparent; border:0; border-radius:6px; font-size:12px; text-align:left; }.sce-tree-row:hover { color:#303030; background:#f6f6f7; }.sce-tree-row.is-selected { color:#005bd3; background:#e8f0fe; }.sce-tree-row b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.sce-tree-row>span,.sce-tree-row em,.sce-tree-row i { display:inline-grid; color:#6d7175; font-style:normal; place-items:center; }.sce-tree-row.is-selected>span { color:#005bd3; }.sce-tree-row em { color:#8c9196; }
.sce-add-section { display:flex; align-items:center; justify-content:center; width:100%; min-height:34px; gap:6px; color:#005bd3; background:#fff; border:1px dashed #8c9196; border-radius:7px; font-size:12px; font-weight:650; }.sce-add-section:hover { background:#f7f9ff; border-color:#005bd3; }
.sce-add-menu { position:absolute; z-index:12; right:9px; bottom:9px; left:9px; max-height:420px; overflow:auto; background:#fff; border:1px solid #c9cccf; border-radius:10px; box-shadow:0 8px 24px rgba(0,0,0,.16); }.sce-add-menu header { display:flex; align-items:center; justify-content:space-between; padding:10px 11px; border-bottom:1px solid var(--sce-line); }.sce-add-menu header b { font-size:13px; }.sce-add-menu header button { display:grid; width:26px; height:26px; padding:0; color:#5c5f62; background:transparent; border:0; border-radius:5px; place-items:center; }.sce-add-menu header button:hover { background:#f1f1f1; }.sce-add-menu>button { display:grid; width:100%; grid-template-columns:25px minmax(0,1fr); gap:0 7px; padding:9px 11px; color:#303030; text-align:left; background:#fff; border:0; border-bottom:1px solid #f0f0f0; }.sce-add-menu>button:hover { background:#f6f6f7; }.sce-add-menu>button>span { display:grid; grid-row:1 / 3; width:25px; height:25px; color:#005bd3; background:#e8f0fe; border-radius:6px; place-items:center; }.sce-add-menu>button b { overflow:hidden; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }.sce-add-menu>button small { color:#6d7175; font-size:12px; }
.sce-settings-nav button { display:flex; align-items:center; width:100%; gap:8px; min-height:34px; padding:6px 8px; color:#4a4a4a; text-align:left; background:transparent; border:0; border-radius:6px; font-size:12px; font-weight:600; }.sce-settings-nav button:hover { color:#005bd3; background:#e8f0fe; }.sce-nav-note { margin:2px 2px 12px; padding:9px; color:#5c5f62; background:#f6f6f7; border-radius:7px; font-size:12px; line-height:1.45; }
.sce-canvas { display:flex; flex-direction:column; min-width:0; background:#eef0f3; }.sce-canvas>header { min-height:34px; padding:8px 14px; color:#6d7175; background:#f7f8fa; border-bottom:1px solid var(--sce-line); font-size:12px; }.sce-canvas-notice { display:flex; align-items:flex-start; gap:6px; padding:7px 13px; color:#4a6178; background:#edf6ff; border-bottom:1px solid #c8e3fa; font-size:12px; line-height:1.4; }.sce-canvas-notice .icon { flex:none; margin-top:1px; }.sce-canvas-scroll { display:flex; flex:1; justify-content:center; overflow:auto; padding:20px; }
.sce-preview-frame { width:1000px; min-width:670px; align-self:flex-start; overflow:hidden; color:#202223; background:var(--sce-form); border:1px solid #d6d6d6; border-radius:4px; box-shadow:0 2px 8px rgba(0,0,0,.10); font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif; }.sce-preview-frame.is-mobile { width:390px; min-width:390px; }.sce-preview-frame * { box-sizing:border-box; }.sce-brandbar { display:flex; flex-direction:column; gap:7px; padding:20px var(--sce-pad); background:#fff; border-bottom:1px solid #e1e3e5; }.sce-brandbar.left { align-items:flex-start; }.sce-brandbar.center { align-items:center; }.sce-brandbar.right { align-items:flex-end; }.sce-brandbar>b { letter-spacing:.055em; line-height:1; }.sce-brandbar span { display:flex; align-items:center; gap:4px; color:#6d7175; font-size:12px; }
.sce-checkout-columns { display:grid; grid-template-columns:minmax(0,1fr) 42%; min-height:600px; }.sce-checkout-columns.is-left { grid-template-columns:42% minmax(0,1fr); }.sce-checkout-columns main { display:flex; flex-direction:column; gap:var(--sce-gap); padding:var(--sce-pad); background:var(--sce-form); }.sce-checkout-columns aside { display:flex; flex-direction:column; gap:var(--sce-gap); padding:var(--sce-pad); background:var(--sce-summary); }.sce-checkout-columns.is-left aside { order:-1; }.sce-single-page { display:flex; flex-direction:column; gap:var(--sce-gap); width:min(680px,100%); padding:var(--sce-pad); margin:0 auto; }.sce-offer-page { width:min(640px,100%); padding:var(--sce-pad); margin:0 auto; }.sce-preview-footer { padding:20px var(--sce-pad) 26px; color:#6d7175; background:#fff; border-top:1px solid #e1e3e5; font-size:12px; text-align:center; }
.sce-preview-frame.is-mobile .sce-checkout-columns,.sce-preview-frame.is-mobile .sce-checkout-columns.is-left { grid-template-columns:1fr; min-height:0; }.sce-preview-frame.is-mobile .sce-checkout-columns aside,.sce-preview-frame.is-mobile .sce-checkout-columns.is-left aside { order:initial; }.sce-preview-frame.is-mobile .sce-checkout-columns main,.sce-preview-frame.is-mobile .sce-checkout-columns aside { padding:20px; }
.sce-preview-section { position:relative; border:2px solid transparent; border-radius:6px; cursor:pointer; }.sce-preview-section:hover { border-color:#b9d2ff; }.sce-preview-section.is-selected { border-color:var(--sce-brand); }.sce-preview-tag { position:absolute; z-index:3; top:-2px; left:-2px; display:none; padding:2px 6px; color:#fff; background:var(--sce-brand); border-bottom-right-radius:5px; font-size:12px; font-weight:650; }.sce-preview-section:hover .sce-preview-tag,.sce-preview-section.is-selected .sce-preview-tag { display:block; }
.sce-urgency { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 12px; color:#7a5600; background:#fff7df; border:1px solid #eed59b; border-radius:7px; font-size:12px; }.sce-urgency b { font-variant-numeric:tabular-nums; }
.sce-payment { padding:2px; }.sce-payment h3,.sce-summary h3,.sce-addon h3,.sce-bundle h3,.sce-details h3,.sce-tracking h3 { margin:19px 0 9px; color:#202223; font-size:17px; line-height:1.25; }.sce-payment h3:first-of-type { margin-top:0; }.sce-express { display:flex; gap:8px; }.sce-express b { display:grid; flex:1; height:45px; border-radius:6px; place-items:center; font-size:13px; }.sce-express .paypal { color:#003087; background:#ffc439; }.sce-express .apple,.sce-express .gpay { color:#fff; background:#000; }.sce-or { display:flex; align-items:center; gap:10px; margin:16px 0; color:#6d7175; font-size:12px; letter-spacing:.06em; }.sce-or::before,.sce-or::after { flex:1; height:1px; background:#d6d6d6; content:""; }.sce-payment-rating { margin:0 0 17px; color:#5c5f62; font-size:12px; font-weight:650; letter-spacing:.025em; text-align:center; }.sce-checkout-heading { display:flex; align-items:baseline; justify-content:space-between; gap:10px; }.sce-checkout-heading h3 { margin-bottom:9px; }.sce-checkout-heading a { color:var(--sce-accent); font-size:12px; font-weight:650; }.sce-input,.sce-input-pair>div { min-height:42px; padding:12px; color:#8c9196; background:#fff; border:1px solid #c9cccf; border-radius:6px; font-size:12px; }.sce-input { margin-bottom:8px; }.sce-input-pair { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-bottom:8px; }.sce-checkline { display:flex; gap:7px; margin:1px 0 15px; color:#4a4a4a; font-size:12px; }.sce-ship { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:12px; color:#303030; background:#fff; border:1px solid #d6d6d6; font-size:12px; }.sce-ship:first-of-type { border-radius:6px 6px 0 0; }.sce-ship + .sce-ship { margin-top:-1px; border-radius:0 0 6px 6px; }.sce-insurance { display:grid; grid-template-columns:22px minmax(0,1fr) auto; align-items:center; gap:8px; padding:10px; margin-top:9px; background:#f7fbf9; border:1px dashed #8ebca7; border-radius:7px; }.sce-insurance>i { display:grid; width:20px; height:20px; color:#fff; background:var(--sce-accent); border-radius:4px; font-size:12px; font-style:normal; place-items:center; }.sce-insurance span { display:grid; gap:2px; }.sce-insurance b { font-size:12px; }.sce-insurance small { color:#6d7175; font-size:12px; }.sce-insurance strong { color:var(--sce-accent); font-size:12px; }.sce-cardbox { display:grid; gap:8px; padding:12px; background:#fff; border:1px solid #c9cccf; border-radius:7px; font-size:12px; }.sce-cardbox>div { min-height:40px; padding:11px; color:#8c9196; background:#f8f8f8; border:1px solid #e1e3e5; border-radius:5px; }.sce-cardbox>div>span { float:right; color:#5c5f62; font-size:12px; }.sce-payment>button,.sce-offer>button { width:100%; min-height:44px; margin-top:16px; color:#fff; border:0; border-radius:6px; font-size:13px; font-weight:750; }.sce-secure { margin:10px 0 0; color:#6d7175; font-size:12px; text-align:center; }
.sce-addon,.sce-bundle,.sce-summary,.sce-details,.sce-tracking { padding:14px; background:#fff; border:1px solid #d6d6d6; border-radius:8px; }.sce-addon h3,.sce-bundle h3,.sce-summary h3,.sce-details h3,.sce-tracking h3 { margin:0 0 12px; font-size:15px; }.sce-addon article,.sce-summary article,.sce-offer article { display:grid; grid-template-columns:18px 42px minmax(0,1fr) auto; align-items:center; gap:8px; }.sce-addon article>i { display:grid; width:17px; height:17px; color:#fff; background:var(--sce-accent); border-radius:4px; font-size:11px; font-style:normal; place-items:center; }.sce-addon article>span:nth-child(3),.sce-summary article>span:nth-child(2) { display:grid; gap:2px; }.sce-addon article b,.sce-summary article b { overflow:hidden; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }.sce-addon article small,.sce-summary article small { color:#6d7175; font-size:12px; }.sce-addon article strong { display:grid; gap:2px; color:#303030; font-size:12px; text-align:right; }.sce-addon article s { color:#8c9196; font-size:12px; font-weight:400; }.sce-product-shot { display:inline-block; width:40px; height:40px; background:linear-gradient(135deg,#eddfd0,#a88167); border:1px solid #dfd2c8; border-radius:6px; }.sce-product-shot.second { background:linear-gradient(135deg,#d9e8e0,#7e9f92); }.sce-product-shot.large { width:72px; height:72px; border-radius:8px; }
.sce-bundle article { display:grid; grid-template-columns:20px minmax(0,1fr) auto; align-items:center; gap:8px; padding:10px; margin-top:7px; border:1px solid #d6d6d6; border-radius:7px; color:#5c5f62; font-size:12px; }.sce-bundle article:first-of-type { color:var(--sce-accent); border-color:var(--sce-accent); }.sce-bundle article span { display:grid; gap:2px; color:#303030; }.sce-bundle article b { font-size:12px; }.sce-bundle article small { color:#6d7175; font-size:12px; }.sce-bundle article strong { color:#303030; font-size:12px; }
.sce-summary article { grid-template-columns:42px minmax(0,1fr) auto; padding:8px 0; border-bottom:1px solid #ececec; }.sce-summary article strong { font-size:12px; }.sce-coupon { display:flex; align-items:center; justify-content:space-between; min-height:36px; padding:9px; margin:12px 0; color:#8c9196; border:1px solid #c9cccf; border-radius:6px; font-size:12px; }.sce-coupon button { min-height:24px; padding:2px 7px; color:#fff; background:var(--sce-accent); border:0; border-radius:4px; font-size:12px; }.sce-summary dl { margin:0; }.sce-summary dl>div { display:flex; justify-content:space-between; gap:8px; padding:5px 0; color:#4a4a4a; font-size:12px; }.sce-summary dl .total { padding-top:11px; margin-top:6px; color:#202223; border-top:1px solid #d6d6d6; font-size:14px; font-weight:750; }
.sce-rating { display:flex; flex-direction:column; align-items:center; gap:5px; padding:14px; background:#fff; border:1px solid #d6d6d6; border-radius:8px; text-align:center; }.sce-rating>b { color:#00b67a; font-size:15px; letter-spacing:1px; }.sce-rating strong { font-size:14px; }.sce-rating span { color:#6d7175; font-size:12px; }.sce-trust,.sce-guarantee,.sce-endorsement { display:flex; align-items:center; gap:9px; padding:12px; background:#fff; border:1px solid #d6d6d6; border-radius:8px; }.sce-trust { flex-direction:column; align-items:flex-start; }.sce-trust b,.sce-guarantee strong,.sce-endorsement b { font-size:12px; }.sce-trust span,.sce-guarantee small,.sce-endorsement p { color:#6d7175; font-size:12px; line-height:1.4; }.sce-guarantee>b { display:grid; width:30px; height:30px; flex:none; color:#fff; background:var(--sce-accent); border-radius:50%; place-items:center; }.sce-guarantee span,.sce-endorsement div { display:grid; gap:2px; }.sce-endorsement>span { display:grid; width:34px; height:34px; flex:none; color:#fff; background:#8c6c59; border-radius:50%; font-size:12px; font-weight:700; place-items:center; }.sce-endorsement p { margin:0; }
.sce-confirm { display:flex; flex-direction:column; align-items:center; gap:7px; padding:30px 16px; background:#fff; border:1px solid #d6d6d6; border-radius:9px; text-align:center; }.sce-confirm>i { display:grid; width:50px; height:50px; background:#e3f1df; border-radius:50%; font-size:26px; font-style:normal; place-items:center; }.sce-confirm h1 { margin:4px 0 0; font-size:23px; letter-spacing:-.02em; }.sce-confirm p { margin:0; color:#6d7175; font-size:13px; }.sce-confirm>b { font-size:13px; }.sce-confirm small { color:#6d7175; font-size:12px; }
.sce-details>div { display:grid; grid-template-columns:120px minmax(0,1fr); gap:12px; padding:9px 0; border-top:1px solid #ececec; font-size:12px; }.sce-details>div span { color:#6d7175; }.sce-details>div b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }.sce-tracking>div { height:7px; overflow:hidden; background:#e4e5e7; border-radius:99px; }.sce-tracking>div i { display:block; height:100%; border-radius:99px; }.sce-tracking>span { display:inline-block; width:33%; margin-top:9px; color:#6d7175; font-size:12px; }.sce-tracking>span:last-child { text-align:right; }
.sce-offer { padding:22px; background:#fff; border:2px solid color-mix(in srgb,var(--sce-accent) 35%,white); border-radius:12px; text-align:center; }.sce-offer>em { display:inline-block; padding:3px 8px; color:#fff; background:#bd5b38; border-radius:5px; font-size:12px; font-style:normal; font-weight:700; letter-spacing:.04em; text-transform:uppercase; }.sce-offer h1 { margin:12px 0 6px; font-size:24px; letter-spacing:-.02em; }.sce-offer>p { margin:0 auto 12px; color:#6d7175; font-size:13px; line-height:1.45; }.sce-timer { display:inline-flex; padding:6px 8px; margin-bottom:13px; color:#b42318; background:#fff0ef; border-radius:5px; font-size:12px; }.sce-offer-runtime { display:grid; grid-template-columns:1fr 1fr; gap:7px; margin:0 0 14px; text-align:left; }.sce-offer-runtime span { display:grid; gap:3px; min-height:52px; padding:8px; color:#4a4a4a; border:1px solid #e1e3e5; border-radius:7px; font-size:12px; }.sce-offer-runtime b { color:#8c9196; font-size:12px; letter-spacing:.03em; text-transform:uppercase; }.sce-offer article { grid-template-columns:72px minmax(0,1fr); padding:11px; margin-bottom:12px; text-align:left; border:1px solid #d6d6d6; border-radius:8px; }.sce-offer article>span:nth-child(2) { display:grid; gap:3px; }.sce-offer article b { font-size:13px; }.sce-offer article small { color:#6d7175; font-size:12px; }.sce-offer article strong { color:#b42318; font-size:16px; }.sce-offer article s { color:#8c9196; font-size:12px; font-weight:400; }.sce-offer article em { padding:2px 5px; color:#8a5300; background:#fff0c7; border-radius:4px; font-size:11px; font-style:normal; }.sce-offer>a { display:inline-block; margin-top:11px; color:#6d7175; font-size:12px; text-decoration:underline; }
.sce-inspector-head { display:flex; align-items:center; gap:9px; padding:12px 13px; border-bottom:1px solid var(--sce-line); }.sce-inspector-head>span { display:grid; width:31px; height:31px; flex:none; color:#005bd3; background:#e8f0fe; border-radius:7px; place-items:center; }.sce-inspector-head div { display:grid; min-width:0; gap:2px; }.sce-inspector-head strong { overflow:hidden; font-size:13px; text-overflow:ellipsis; white-space:nowrap; }.sce-inspector-head small { color:#6d7175; font-size:12px; }.sce-inspector-scroll { flex:1; overflow:auto; padding:13px; }
.sce-info { margin:0 0 13px; padding:9px; color:#5c5f62; background:#f6f6f7; border-radius:7px; font-size:12px; line-height:1.45; }.sce-setting-subhead { padding-top:13px; margin:16px 0 9px; color:#6d7175; border-top:1px solid #ececec; font-size:12px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; }.sce-setting-subhead:first-of-type { padding-top:0; margin-top:0; border-top:0; }.sce-field { display:grid; gap:5px; margin-bottom:12px; color:#4a4a4a; font-size:12px; font-weight:650; }.sce-field input,.sce-field select { width:100%; height:34px; padding:0 9px; color:#202223; background:#fff; border:1px solid #c9cccf; border-radius:6px; font-family:inherit; font-size:12px; font-weight:400; }.sce-field input:focus,.sce-field select:focus { outline:2px solid #005bd3; outline-offset:1px; }.sce-field small { color:#6d7175; font-size:12px; font-weight:400; line-height:1.35; }.sce-field input[type="range"] { padding:0; accent-color:#005bd3; }.sce-field input[type="color"] { padding:2px; cursor:pointer; }.sce-image-picker { display:grid; width:100%; grid-template-columns:25px minmax(0,1fr); gap:1px 8px; padding:10px; margin:0 0 12px; color:#4a4a4a; text-align:left; background:#fff; border:1px dashed #8c9196; border-radius:7px; }.sce-image-picker>span { display:grid; grid-row:1 / 3; width:25px; height:25px; color:#6d7175; background:#f1f1f1; border-radius:5px; place-items:center; }.sce-image-picker b { font-size:12px; }.sce-image-picker small { color:#6d7175; font-size:12px; }.sce-image-picker:hover { border-color:#005bd3; background:#f7f9ff; }
.sce-toggle { display:flex; align-items:center; width:100%; gap:8px; min-height:34px; padding:4px 0; color:#303030; text-align:left; background:transparent; border:0; }.sce-toggle>i { position:relative; width:34px; height:20px; flex:none; background:#c9cccf; border-radius:99px; }.sce-toggle>i::after { position:absolute; top:3px; left:3px; width:14px; height:14px; background:#fff; border-radius:50%; box-shadow:0 1px 2px rgba(0,0,0,.15); content:""; transition:left .15s; }.sce-toggle.is-on>i { background:#005bd3; }.sce-toggle.is-on>i::after { left:17px; }.sce-toggle span { display:grid; gap:1px; }.sce-toggle b { font-size:12px; }.sce-toggle small { color:#6d7175; font-size:12px; }.sce-core-note { display:flex; align-items:center; gap:6px; padding:9px; color:#5c5f62; background:#f6f6f7; border-radius:7px; font-size:12px; line-height:1.4; }.sce-delete { display:flex; align-items:center; justify-content:center; width:100%; min-height:34px; margin-top:18px; color:#b42318; background:#fff; border:1px solid #f0b8b2; border-radius:7px; font-size:12px; font-weight:650; }.sce-delete:hover { background:#fff0ef; }
.source-checkout-editor .icon { display:block; }

/* Reference-aligned Checkout editor: tree hierarchy, schema inspector and buyer canvas. */
.sce-ref-topbar .sce-save-pill { width:max-content; padding:5px 9px; color:#064e3b; background:#dff5ec; border-radius:999px; font-weight:650; }
.sce-ref-workspace { box-sizing:border-box; grid-template-columns:300px minmax(560px,1fr) 332px; grid-template-rows:minmax(0,1fr); padding:12px 20px 12px 0; background:#eef1f5; }
.sce-ref-workspace .sce-inspector { min-height:0; margin:0; overflow:hidden; background:#fff; border:1px solid #dfe5ec; border-radius:9px; box-shadow:0 1px 2px rgba(31,41,55,.08); }
.sce-ref-tree>header { min-height:45px; padding:14px 16px; }.sce-ref-tree>header strong { color:#111827; }
.sce-ref-template { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px 8px; padding:9px 7px 12px; margin-bottom:11px; border-bottom:1px solid var(--sce-line); }.sce-ref-template>b { font-size:14px; }.sce-ref-template small { color:#5371a0; font-size:12px; }.sce-ref-template button { grid-row:2; grid-column:1 / 3; display:flex; align-items:center; justify-content:space-between; min-height:40px; padding:8px 10px; color:#233e68; background:#f7f9fd; border:0; border-radius:7px; font-size:12px; font-weight:650; text-align:left; }.sce-ref-template button:hover { background:#edf3ff; }.sce-ref-template button .icon { transform:rotate(90deg); }
.sce-ref-tree-heading { padding:7px 7px 5px; color:#5c6e87; font-size:11px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; }
.sce-ref-tree-wrap { position:relative; }.sce-ref-tree-wrap.is-hidden { opacity:.52; }
.sce-ref-tree-row { display:grid; grid-template-columns:14px 18px minmax(0,1fr) 35px; align-items:center; width:100%; min-height:34px; gap:8px; padding:5px 8px; color:#2d4772; text-align:left; background:transparent; border:0; border-radius:7px; font-size:13px; }.sce-ref-tree-row:hover { background:#f3f6fb; }.sce-ref-tree-row.is-selected { color:#0669da; background:#dfeeff; }.sce-ref-tree-row.is-locked { color:#35527c; }.sce-ref-tree-row b { overflow:hidden; font-weight:500; text-overflow:ellipsis; white-space:nowrap; }.sce-ref-tree-row>span { color:#406695; }.sce-ref-tree-row.is-selected>span { color:#0669da; }.sce-ref-tree-row>em { display:flex; align-items:center; justify-content:flex-end; color:#a7b2c2; font-style:normal; }.sce-ref-row-actions { gap:6px; }.sce-ref-row-actions button { padding:0; color:#78889e; background:transparent; border:0; font-size:13px; }.sce-tree-caret { display:grid; width:14px; height:20px; color:#76879e; place-items:center; transform:rotate(0); }.sce-tree-caret.is-open { transform:rotate(90deg); }
.sce-ref-block { grid-template-columns:18px minmax(0,1fr) 18px; min-height:31px; padding-left:42px; color:#35527c; background:transparent; border:0; border-radius:6px; font-size:12px; text-align:left; }.sce-ref-block:hover { background:#f5f7fb; }.sce-ref-block span,.sce-ref-block em { color:#6c86aa; }.sce-ref-block b { overflow:hidden; font-weight:500; text-overflow:ellipsis; white-space:nowrap; }
.sce-ref-tree .sce-add-section { justify-content:flex-start; padding:0 10px; margin:11px 0 4px; border-color:#b8cae5; color:#0b6fd9; }.sce-ref-tree .sce-add-section span { color:#6e86aa; font-weight:500; }.sce-ref-settings-nav { display:flex; align-items:center; width:100%; min-height:36px; gap:10px; padding:7px; color:#34537d; background:transparent; border:0; border-radius:7px; font-size:13px; text-align:left; }.sce-ref-settings-nav:hover { color:#086bd7; background:#edf4ff; }
.sce-ref-add-menu { right:8px; bottom:10px; left:8px; max-height:calc(100% - 22px); }.sce-ref-add-group { padding:7px 0; border-bottom:1px solid #edf0f4; }.sce-ref-add-group> b { display:block; padding:3px 11px 6px; color:#627592; font-size:11px; letter-spacing:.035em; text-transform:uppercase; }.sce-ref-add-group button { display:grid; grid-template-columns:25px minmax(0,1fr); gap:2px 8px; width:100%; padding:8px 11px; color:#263f67; text-align:left; background:#fff; border:0; }.sce-ref-add-group button:hover { background:#f2f6fc; }.sce-ref-add-group button span { display:grid; grid-row:1 / 3; width:25px; height:25px; color:#0875df; background:#e4f0ff; border-radius:6px; place-items:center; }.sce-ref-add-group button strong { overflow:hidden; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }.sce-ref-add-group button small { color:#7890ae; font-size:11px; }
.sce-ref-canvas { background:#edf0f4; }.sce-ref-canvas>header { color:#577093; background:#f7f9fc; }.sce-ref-canvas .sce-canvas-notice { color:#8d6000; background:#fff8df; border-color:#efd88e; }.sce-ref-canvas .sce-canvas-scroll { padding:20px 24px 56px; }
.sce-ref-frame { width:1080px; min-width:780px; overflow:hidden; color:var(--text); background:var(--page-bg); border:1px solid #dce1e8; border-radius:3px; box-shadow:0 2px 8px rgba(17,24,39,.12); font-size:var(--font-size); font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif; }.sce-ref-frame * { box-sizing:border-box; }.sce-ref-frame.is-mobile { width:390px; min-width:390px; }
.sce-ref-select { position:relative; border:2px solid transparent; border-radius:2px; cursor:pointer; }.sce-ref-select:hover { border-color:#94c5ff; }.sce-ref-select.is-selected { border-color:#076ee9; }.sce-ref-select.is-hidden { display:none; }.sce-ref-select-label { position:absolute; z-index:4; top:-2px; left:-2px; display:none; padding:2px 7px; color:#fff; background:#076ee9; border-radius:0 0 4px 0; font-size:11px; font-style:normal; font-weight:650; }.sce-ref-select:hover>.sce-ref-select-label,.sce-ref-select.is-selected>.sce-ref-select-label { display:block; }
.sce-ref-header { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; min-height:var(--header-height); padding:0 9.2%; color:var(--header-text); background:var(--header-bg); border-bottom:1px solid var(--line); }.sce-ref-header>b { letter-spacing:.17em; line-height:1; }.sce-ref-header>span { color:var(--header-text); font-size:12px; letter-spacing:.16em; text-transform:uppercase; }.sce-ref-header>i { justify-self:end; font-size:24px; font-style:normal; }.sce-ref-mobile-summary { display:none; }
.sce-ref-columns { display:grid; grid-template-columns:minmax(0,1.04fr) minmax(360px,.96fr); min-height:810px; }.sce-ref-form-side { padding:48px 7.6% 34px; background:var(--page-bg); }.sce-ref-columns>.sce-ref-select { border-radius:0; }.sce-ref-summary-side { min-height:100%; padding:68px 11% 38px 8%; color:var(--summary-text,#1f1f1f); background:var(--summary-bg); }.sce-ref-main { display:flex; flex-direction:column; gap:18px; }
.sce-ref-express { margin-bottom:2px; text-align:center; }.sce-ref-express p { margin:0 0 11px; color:var(--muted); font-size:12px; }.sce-ref-express>div { display:flex; gap:9px; }.sce-ref-express button { flex:1; height:46px; color:#fff; background:#5a31f4; border:0; border-radius:6px; font-size:13px; font-weight:750; }.sce-ref-express button:nth-child(2) { color:#0d3372; background:#ffc43d; }.sce-ref-express button:nth-child(3) { background:#050505; }.sce-ref-express>span { display:flex; align-items:center; gap:12px; margin:17px 0 0; color:#7e8895; font-size:12px; letter-spacing:.08em; }.sce-ref-express>span::before,.sce-ref-express>span::after { flex:1; height:1px; background:var(--line); content:""; }
.sce-ref-form-block h2,.sce-ref-section-title h2 { margin:0 0 13px; color:var(--text); font-size:var(--heading-size); line-height:1.2; }.sce-ref-form-block p { margin:-6px 0 11px; color:var(--muted); font-size:12px; }.sce-ref-heading,.sce-ref-section-title { display:flex; align-items:center; justify-content:space-between; gap:8px; }.sce-ref-heading a { color:#2b3b54; font-size:12px; }.sce-ref-form-block input,.sce-ref-form-block select,.sce-ref-upssell select { width:100%; height:var(--input-height,48px); padding:0 12px; color:#7a8494; background:var(--input-bg); border:1px solid var(--input-line); border-radius:var(--input-radius); font:inherit; font-size:13px; }.sce-ref-form-block input+input,.sce-ref-form-block select+input { margin-top:10px; }.sce-ref-input-pair { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:10px; }.sce-ref-card-input { display:grid; gap:9px; padding:13px; border:1px solid var(--input-line); border-radius:var(--input-radius); }.sce-ref-card-input>b { color:var(--text); font-size:13px; }
.sce-ref-shipping { display:flex; align-items:center; justify-content:space-between; min-height:61px; padding:10px 13px; color:var(--text); background:var(--input-bg); border:1px solid var(--input-line); font-size:13px; }.sce-ref-shipping:first-of-type { border-radius:var(--input-radius) var(--input-radius) 0 0; }.sce-ref-shipping+.sce-ref-shipping { margin-top:-1px; border-radius:0 0 var(--input-radius) var(--input-radius); }.sce-ref-shipping span { display:grid; gap:2px; }.sce-ref-shipping small { color:var(--muted); font-size:11px; }.sce-ref-shipping b { font-size:13px; }
.sce-ref-card { border:1px solid #e2e7ee; border-radius:7px; }.sce-ref-upsell { padding:14px; }.sce-ref-section-title h2 { margin:0; font-size:17px; }.sce-ref-section-title span,.sce-ref-section-title>b { display:grid; width:29px; height:29px; color:#78828d; background:#edf0f2; border-radius:50%; font-size:21px; font-weight:400; place-items:center; }.sce-ref-section-title>b { margin-left:-4px; color:#fff; background:#151515; }.sce-ref-upsell-grid { display:grid; grid-template-columns:1fr 1fr; gap:13px; margin-top:13px; overflow:hidden; }.sce-ref-upsell-grid article { display:grid; grid-template-columns:16px 67px minmax(0,1fr); gap:8px; min-width:240px; padding:9px; border:1px solid #e1e5eb; border-radius:7px; }.sce-ref-upsell-grid article>i { color:#8691a0; font-size:18px; font-style:normal; }.sce-ref-upsell-grid article>img { width:67px; height:77px; object-fit:cover; border-radius:5px; }.sce-ref-upsell-grid article>div { display:grid; align-content:start; gap:5px; }.sce-ref-upsell-grid article b { overflow:hidden; color:var(--text); font-size:12px; text-overflow:ellipsis; white-space:nowrap; }.sce-ref-upsell-grid select { height:30px; padding:0 7px; border:1px solid #dbe0e7; border-radius:5px; font-size:11px; }.sce-ref-upsell-grid strong { color:#151515; font-size:14px; }.sce-ref-upsell-grid strong s { color:#9099a6; font-size:10px; font-weight:400; }.sce-ref-upsell-grid small { width:max-content; padding:5px 8px; border:1px solid #e0e4e8; border-radius:5px; color:#212b36; font-size:11px; }
.sce-ref-insurance { display:grid; grid-template-columns:22px minmax(0,1fr) auto; align-items:center; gap:9px; padding:12px; color:var(--text); background:#f6fbf8; border:1px dashed #a2cdb4; border-radius:7px; }.sce-ref-insurance>i { display:grid; width:19px; height:19px; color:#fff; background:#1f7752; border-radius:4px; font-style:normal; place-items:center; }.sce-ref-insurance span { display:grid; gap:2px; }.sce-ref-insurance b { font-size:12px; }.sce-ref-insurance small { color:var(--muted); font-size:11px; }.sce-ref-insurance strong { font-size:12px; }.sce-ref-countdown,.sce-ref-trust,.sce-ref-static,.sce-ref-review { padding:10px 12px; color:#52657d; background:#f5f8fc; border:1px solid #dce7f6; border-radius:6px; font-size:12px; text-align:center; }.sce-ref-countdown { color:#8d6000; background:#fff7df; border-color:#efda95; }.sce-ref-review { color:#087457; background:#ebfbf5; border-color:#b9e7d7; }
.sce-ref-pay { width:100%; margin-top:1px; border:0; font-size:15px; font-weight:750; }.sce-ref-summary-inner { display:flex; flex-direction:column; gap:0; }.sce-ref-line { display:grid; grid-template-columns:60px minmax(0,1fr) auto; align-items:start; gap:10px; padding:11px 0; border-bottom:1px solid #dfe1e3; }.sce-ref-thumb { position:relative; width:58px; height:65px; overflow:visible; border-radius:7px; }.sce-ref-thumb img { width:58px; height:65px; object-fit:cover; border-radius:7px; }.sce-ref-thumb b { position:absolute; top:-7px; right:-7px; display:grid; width:19px; height:19px; color:#fff; background:#677078; border:2px solid var(--summary-bg); border-radius:50%; font-size:10px; place-items:center; }.sce-ref-line>span:nth-child(2) { display:grid; align-content:start; gap:3px; }.sce-ref-line>span:nth-child(2)>strong { color:#1a2735; font-size:13px; font-weight:600; line-height:1.25; }.sce-ref-line small { color:#748093; font-size:11px; }.sce-ref-line em { color:#788798; font-size:10px; font-style:normal; }.sce-ref-line>span:last-child { display:grid; gap:3px; color:#1d2939; font-size:12px; text-align:right; }.sce-ref-line s { color:#7f8a95; font-size:10px; }.sce-ref-coupon { display:grid; grid-template-columns:1fr auto; gap:8px; padding:20px 0; border-bottom:1px solid #dfe1e3; }.sce-ref-coupon span { display:flex; align-items:center; min-height:45px; padding:0 12px; color:#a1a9b5; background:#fff; border:1px solid #d8dce0; border-radius:6px; font-size:13px; }.sce-ref-coupon button { min-width:75px; color:#6d7782; background:#e0e2e4; border:0; border-radius:6px; font-size:13px; font-weight:700; }.sce-ref-summary-inner dl { margin:15px 0 0; }.sce-ref-summary-inner dl>div { display:flex; justify-content:space-between; gap:12px; padding:5px 0; color:#52606e; font-size:13px; }.sce-ref-summary-inner dl .total { padding-top:14px; margin-top:8px; color:#142033; border-top:1px solid #d5d9dc; font-size:16px; font-weight:750; }.sce-ref-footer { padding:26px 8%; color:#7c8796; border-top:1px solid var(--line); font-size:11px; text-align:center; }
.sce-ref-inspector { padding:0; }.sce-expand-all { margin-left:auto; color:#066bd8; background:transparent; border:0; font-size:12px; }.sce-lock-icon { margin-left:auto; color:#a5b0bf; font-style:normal; }.sce-ref-setting-group { border-bottom:1px solid #e7ebf0; }.sce-ref-setting-title { display:grid; grid-template-columns:16px minmax(0,1fr) auto; align-items:center; width:100%; gap:8px; padding:13px 14px; color:#1e3354; text-align:left; background:#fff; border:0; }.sce-ref-setting-title>i { display:grid; color:#6380a7; transform:rotate(0); place-items:center; }.sce-ref-setting-group.is-open .sce-ref-setting-title>i { transform:rotate(90deg); }.sce-ref-setting-title span { display:grid; gap:3px; }.sce-ref-setting-title b { font-size:13px; }.sce-ref-setting-title small { overflow:hidden; color:#6e84a5; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }.sce-ref-setting-title em { color:#52719b; font-size:11px; font-style:normal; }.sce-ref-setting-content { display:none; padding:1px 14px 13px; }.sce-ref-setting-group.is-open .sce-ref-setting-content { display:block; }.sce-ref-field { display:grid; gap:7px; padding:9px 0; color:#2b4165; font-size:12px; font-weight:650; }.sce-ref-field input,.sce-ref-field select { width:100%; height:33px; padding:0 9px; color:#243a5a; background:#fff; border:1px solid #d4dce6; border-radius:6px; font:inherit; font-size:12px; }.sce-ref-field small { color:#7489a5; font-size:11px; font-weight:400; line-height:1.35; }.sce-color { display:grid; grid-template-columns:32px minmax(0,1fr); gap:7px; }.sce-color>i { border:1px solid #ccd5e1; border-radius:6px; }.sce-range { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:8px; }.sce-range input { height:18px; padding:0; accent-color:#0874df; }.sce-range output { min-width:37px; color:#48678e; font-size:11px; text-align:right; }.sce-switch { display:flex; align-items:center; justify-content:space-between; width:100%; gap:9px; padding:9px 0; color:#294263; background:transparent; border:0; font:inherit; font-size:12px; font-weight:650; text-align:left; }.sce-switch i { position:relative; width:36px; height:21px; order:2; background:#cfd9e5; border-radius:999px; }.sce-switch i::after { position:absolute; top:3px; left:3px; width:15px; height:15px; background:#fff; border-radius:50%; box-shadow:0 1px 2px rgba(0,0,0,.18); content:""; }.sce-switch.is-on i { background:#0874df; }.sce-switch.is-on i::after { left:18px; }.sce-ref-kicker { padding:15px 0 5px; color:#7286a2; border-top:1px solid #e7ebef; font-size:11px; font-weight:750; letter-spacing:.04em; }.sce-ref-kicker:first-child { padding-top:3px; border-top:0; }.sce-ref-image-picker { display:grid; min-height:99px; grid-template-columns:1fr; gap:5px; padding:13px; color:#304d77; background:#f8faff; border:1px dashed #b9c9dd; border-radius:7px; font:inherit; place-items:center; }.sce-ref-image-picker b { font-size:12px; }.sce-ref-image-picker small { color:#6783a8; font-size:11px; }
@media (max-width:1180px) { .sce-ref-workspace { grid-template-columns:260px minmax(430px,1fr) 300px; }.sce-ref-frame { width:960px; }.sce-ref-summary-side { padding-right:8%; }.sce-ref-form-side { padding-left:6%; padding-right:6%; } }
@media (max-width:800px) { .sce-ref-workspace { grid-template-columns:1fr; }.sce-ref-canvas .sce-canvas-scroll { justify-content:flex-start; }.sce-ref-frame { min-width:780px; }.sce-ref-frame.is-mobile { min-width:390px; }.sce-ref-tree .sce-tree-scroll { max-height:370px; }.sce-ref-header { padding:0 18px; }.sce-ref-frame.is-mobile .sce-ref-header { grid-template-columns:1fr auto; }.sce-ref-frame.is-mobile .sce-ref-header>span { display:none; }.sce-ref-frame.is-mobile .sce-ref-mobile-summary { display:flex; align-items:center; gap:9px; padding:16px 18px; color:var(--text); background:var(--summary-bg); border-bottom:1px solid var(--line); font-size:13px; }.sce-ref-frame.is-mobile .sce-ref-mobile-summary b { margin-left:auto; }.sce-ref-frame.is-mobile .sce-ref-columns { grid-template-columns:1fr; min-height:0; }.sce-ref-frame.is-mobile .sce-ref-form-side { padding:24px var(--page-pad); }.sce-ref-frame.is-mobile .sce-ref-summary-side { padding:22px var(--page-pad); }.sce-ref-frame.is-mobile .sce-ref-upsell-grid { grid-template-columns:1fr; }.sce-ref-frame.is-mobile .sce-ref-express>div { gap:5px; }.sce-ref-frame.is-mobile .sce-ref-express button { font-size:11px; }.sce-ref-frame.is-mobile .sce-ref-footer { padding:20px 14px; }.sce-ref-frame.is-mobile .sce-ref-columns>.sce-ref-select { order:2; } }
@media (max-width:1100px) { .sce-workspace { grid-template-columns:225px minmax(360px,1fr) 270px; }.sce-topbar { grid-template-columns:minmax(220px,1fr) auto minmax(220px,1fr); }.sce-title span,.sce-top-right .sce-button:not(.primary) { display:none; }.sce-preview-frame { width:850px; } }
@media (max-width:800px) { .source-editor-shell { height:auto; min-height:0; }.source-checkout-editor { height:auto; }.sce-topbar { grid-template-columns:1fr; }.sce-top-center,.sce-top-right { justify-content:flex-start; }.sce-workspace { grid-template-columns:1fr; overflow:visible; }.sce-tree,.sce-inspector { max-height:none; border:0; border-bottom:1px solid var(--sce-line); }.sce-tree-scroll { max-height:330px; }.sce-canvas { min-height:650px; }.sce-preview-frame { min-width:670px; }.sce-canvas-scroll { justify-content:flex-start; } }

.funnel-canvas-shell .canvas-wrap {
  padding: 12px 14px 18px;
  overflow: auto;
  border: 0;
  background-color: #f6f6f7;
  background-image: radial-gradient(#d4d4d4 1px, transparent 1px);
  background-size: 16px 16px;
  cursor: grab;
  scrollbar-width: thin;
}

.funnel-canvas-shell .canvas-wrap.is-panning { cursor: grabbing; user-select: none; }
.funnel-journey-scale { width: 100%; min-width: 0; min-height: calc(650px * var(--journey-zoom)); }
.funnel-journey-scale .funnel-journey-board { width: 100%; min-width: 1050px; transform: scale(var(--journey-zoom)); transform-origin: top left; }

.funnel-graph { position: relative; height: 680px; min-width: 1480px; }

.funnel-graph-edges {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.funnel-graph-edges marker path { fill: #6d7175; }

.funnel-graph-path {
  fill: none;
  stroke: #303030;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.funnel-graph-path.path-success { stroke: #008060; }
.funnel-graph-path.path-decline { stroke: #b98900; }
.funnel-graph-path.path-control,
.funnel-graph-path.path-muted { stroke: #8c9196; }
.funnel-graph-path.is-dashed { stroke-dasharray: 6 5; }

.funnel-graph-annotations {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
}

.funnel-graph-edge-label {
  position: absolute;
  top: var(--edge-label-y);
  left: var(--edge-label-x);
  padding: 3px 6px;
  color: #303030;
  background: #fff;
  border: 1px solid #dcdcdc;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}

.funnel-graph-edge-label.edge-success { color: #006e52; border-color: #b7dfd1; }
.funnel-graph-edge-label.edge-decline { color: #795600; border-color: #ead8a5; }
.funnel-graph-edge-label.edge-control,
.funnel-graph-edge-label.edge-muted { color: #5c5f62; border-color: #d6d6d6; }

.funnel-graph-node,
.funnel-graph-add {
  position: absolute;
  z-index: 2;
  top: var(--graph-node-y);
  left: var(--graph-node-x);
  width: 238px;
  text-align: left;
}

.funnel-graph-node {
  display: grid;
  gap: 9px;
  min-height: 126px;
  padding: 12px;
  color: var(--p-text);
  background: #fff;
  border: 1px solid #c9cccf;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .08);
  transition: border-color .14s ease, box-shadow .14s ease, transform .14s ease;
}

.funnel-graph-node:hover {
  border-color: #616161;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .11);
  transform: translateY(-1px);
}

.funnel-graph-node.is-selected {
  border-color: #303030;
  box-shadow: 0 0 0 2px #303030, 0 4px 10px rgba(0, 0, 0, .12);
}

.funnel-graph-node-control {
  min-height: 104px;
  background: #f1f1f1;
  border-style: dashed;
  box-shadow: none;
}

.funnel-graph-node-control:hover { transform: none; }

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

.funnel-graph-node-head > span:last-child { display: grid; gap: 1px; min-width: 0; }
.funnel-graph-node-head small { color: var(--p-text-subdued); font-size: 10px; font-weight: 650; }

.funnel-graph-node-head strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.funnel-graph-node-icon {
  display: grid;
  width: 32px;
  height: 32px;
  color: #303030;
  background: #ebebeb;
  border-radius: 8px;
  place-items: center;
}

.funnel-graph-node-checkout .funnel-graph-node-icon { color: #005bd3; background: #e8f0fe; }
.funnel-graph-node-upsell .funnel-graph-node-icon,
.funnel-graph-node-downsell .funnel-graph-node-icon { color: #795600; background: #fff4db; }
.funnel-graph-node-thank-you .funnel-graph-node-icon { color: #006e52; background: #e3f1df; }

.funnel-graph-node-body {
  display: grid;
  gap: 3px;
  min-height: 26px;
  padding-top: 8px;
  border-top: 1px solid #ececec;
}

.funnel-graph-offer,
.funnel-graph-page {
  overflow: hidden;
  color: #4a4a4a;
  font-size: 11px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.funnel-graph-offer { color: #795600; font-weight: 650; }
.funnel-graph-node-action { color: #005bd3; font-size: 11px; font-weight: 650; }

.funnel-graph-add {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 184px;
  min-height: 52px;
  padding: 9px 10px;
  color: #303030;
  background: rgba(255, 255, 255, .88);
  border: 1px dashed #8c9196;
  border-radius: 10px;
}

.funnel-graph-add:hover { color: #005bd3; background: #fff; border-color: #005bd3; }
.funnel-graph-add > span { display: grid; gap: 1px; }
.funnel-graph-add small { font-size: 10px; }

/* Funnel list and multi-page journey canvas. */
.funnel-detail-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.funnel-detail-intro > div:first-child { display: grid; gap: 3px; }
.funnel-detail-intro p { color: var(--p-text-subdued); font-size: 12px; }

.funnel-index-card { overflow: hidden; }

.global-funnel-router .card-pad { display: grid; gap: 14px; }
.global-funnel-router-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.global-funnel-router-head h2 { margin: 3px 0 4px; color: #202223; font-size: 16px; letter-spacing: -.01em; }
.global-funnel-router-head p { margin: 0; color: #6d7175; font-size: 12px; line-height: 1.4; }
.global-funnel-router-note { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 5px; padding: 5px 7px; color: #3a4b67; background: #edf3ff; border-radius: 5px; font-size: 10px; font-weight: 650; }
.global-funnel-router-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.global-funnel-route,
.global-funnel-fallback { display: grid; grid-template-columns: 30px minmax(0, 1fr) 16px; align-items: center; gap: 9px; min-width: 0; padding: 10px; color: #303030; text-align: left; background: #fff; border: 1px solid #d6d6d6; border-radius: 8px; }
.global-funnel-route:hover { background: #f7f9ff; border-color: #005bd3; }
.global-funnel-route:focus-visible { outline: 2px solid #005bd3; outline-offset: 2px; }
.global-funnel-priority { display: grid; width: 30px; height: 30px; color: #005bd3; background: #e8f0fe; border-radius: 7px; font-size: 11px; font-weight: 700; place-items: center; }
.global-funnel-route-copy { display: grid; gap: 2px; min-width: 0; }
.global-funnel-route-copy > span { display: flex; align-items: center; gap: 6px; min-width: 0; }
.global-funnel-route-copy strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.global-funnel-route-copy .badge { transform: scale(.88); transform-origin: left center; }
.global-funnel-route-copy small { color: #6d7175; font-size: 10px; }
.global-funnel-route-copy em { overflow: hidden; color: #4a4a4a; font-size: 10px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.global-funnel-fallback { grid-template-columns: 30px minmax(0, 1fr); color: #5c5f62; background: #f6f6f7; border-style: dashed; }
.global-funnel-fallback > span { display: grid; width: 30px; height: 30px; background: #ebebeb; border-radius: 7px; place-items: center; }
.global-funnel-fallback > div { display: grid; gap: 1px; }
.global-funnel-fallback small { color: #6d7175; font-size: 10px; font-weight: 650; }
.global-funnel-fallback strong { font-size: 12px; }
.global-funnel-fallback p { margin: 0; color: #6d7175; font-size: 10px; }

.funnel-index-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 16px;
  border-bottom: 1px solid var(--p-border);
}

.funnel-index-tabs { display: flex; align-self: stretch; align-items: stretch; gap: 20px; }

.funnel-index-tab {
  position: relative;
  min-height: 56px;
  padding: 0;
  color: #5c5f62;
  background: transparent;
  border: 0;
  font-size: 13px;
  font-weight: 600;
}

.funnel-index-tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: transparent;
  content: '';
}

.funnel-index-tab:hover { color: #303030; }
.funnel-index-tab.is-active { color: #303030; }
.funnel-index-tab.is-active::after { background: #303030; }
.funnel-index-tab:focus-visible { outline: 2px solid #005bd3; outline-offset: -4px; border-radius: 4px; }

.funnel-index-count { color: #6d7175; font-size: 12px; }
.funnel-index-table { overflow-x: auto; }

.funnel-index-header,
.funnel-index-row {
  display: grid;
  grid-template-columns: minmax(300px, 1.8fr) 128px 104px 112px 100px 112px 68px;
  align-items: center;
  min-width: 940px;
}

.funnel-index-header {
  min-height: 40px;
  padding: 0 16px;
  color: #6d7175;
  background: #fafbfb;
  border-bottom: 1px solid var(--p-border);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .01em;
}

.funnel-index-row {
  min-height: 76px;
  padding: 0 16px;
  background: #fff;
  border-bottom: 1px solid #e1e3e5;
  transition: background .12s ease;
}

.funnel-index-row:last-child { border-bottom: 0; }
.funnel-index-row:hover { background: #f6f6f7; }

.funnel-index-primary { min-width: 0; }
.funnel-index-primary > button { display: grid; gap: 3px; width: 100%; min-width: 0; padding: 0; color: #005bd3; text-align: left; background: transparent; border: 0; }
.funnel-index-primary > button:hover strong { text-decoration: underline; }
.funnel-index-primary > button:focus-visible { outline: 2px solid #005bd3; outline-offset: 3px; border-radius: 3px; }
.funnel-index-primary strong,
.funnel-index-primary small,
.funnel-index-primary em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.funnel-index-primary strong { color: #005bd3; font-size: 13px; font-weight: 650; }
.funnel-index-primary small { color: #5c5f62; font-size: 11px; }
.funnel-index-primary em { color: #8c9196; font-size: 10px; font-style: normal; }

.funnel-index-status,
.funnel-index-value,
.funnel-index-updated { min-width: 0; }
.funnel-index-value { display: grid; gap: 2px; }
.funnel-index-value strong { color: #303030; font-size: 13px; }
.funnel-index-value small,
.funnel-index-updated { color: #6d7175; font-size: 11px; }

.funnel-index-action { justify-self: end; }
.funnel-index-action > button { display: inline-flex; align-items: center; gap: 2px; padding: 6px; color: #005bd3; font-size: 12px; font-weight: 600; background: transparent; border: 0; border-radius: 4px; }
.funnel-index-action > button:hover { background: #e8f0fe; }
.funnel-index-action > button:focus-visible { outline: 2px solid #005bd3; outline-offset: 2px; }

.funnels-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 64px 20px;
  color: var(--p-text-subdued);
  text-align: center;
}

.funnels-empty > span { display: grid; width: 42px; height: 42px; color: #5c5f62; background: #f1f1f1; border-radius: 12px; place-items: center; }
.funnels-empty strong { color: var(--p-text); }
.funnels-empty p { max-width: 300px; font-size: 12px; }

.funnel-detail-intro { padding-bottom: 12px; }
.funnel-detail-intro .title-with-badge { align-self: flex-start; }

.funnel-journey-board {
  display: grid;
  grid-template-columns: minmax(150px, .78fr) 28px minmax(240px, 1.15fr) 28px minmax(300px, 1.55fr) 28px minmax(180px, .85fr);
  align-items: start;
  min-width: 1050px;
}

.journey-entry-stage,
.journey-lane {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  background: rgba(255, 255, 255, .86);
  border: 1px solid #d6d6d6;
  border-radius: 12px;
}

.journey-entry-stage > header,
.journey-lane > header {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.journey-entry-stage > header > span:nth-child(2),
.journey-lane > header > span:nth-child(2) { display: grid; gap: 1px; min-width: 0; }
.journey-entry-stage small,
.journey-lane small { color: var(--p-text-subdued); font-size: 10px; font-weight: 650; }
.journey-entry-stage strong,
.journey-lane strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.journey-lane > header > b { min-width: 22px; margin-left: auto; padding: 2px 6px; color: #5c5f62; background: #ebebeb; border-radius: 999px; font-size: 11px; text-align: center; }

.journey-lane-icon {
  display: grid;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  color: #303030;
  background: #ebebeb;
  border-radius: 8px;
  place-items: center;
}

.journey-lane-checkout .journey-lane-icon { color: #005bd3; background: #e8f0fe; }
.journey-lane-upsell .journey-lane-icon,
.journey-lane-downsell .journey-lane-icon { color: #795600; background: #fff4db; }
.journey-lane-thankyou .journey-lane-icon { color: #006e52; background: #e3f1df; }

.journey-lane-stack { display: grid; gap: 10px; }

.checkout-route-summary {
  display: grid;
  gap: 8px;
  padding: 9px;
  background: #f7f9ff;
  border: 1px solid #c9d8fb;
  border-radius: 9px;
}

.checkout-route-summary > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
}

.checkout-route-summary > header > div { display: grid; gap: 1px; min-width: 0; }
.checkout-route-summary > header small { color: #315a8a; font-size: 9px; font-weight: 650; }
.checkout-route-summary > header strong { overflow: visible; color: #202223; font-size: 11px; text-overflow: clip; white-space: normal; }
.checkout-route-summary .button { min-height: 26px; padding: 4px 6px; font-size: 10px; white-space: nowrap; }

.checkout-route-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.checkout-route-pills > span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  max-width: 100%;
  padding: 3px 5px;
  overflow: hidden;
  color: #4a4a4a;
  font-size: 9px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: #fff;
  border: 1px solid #d6d6d6;
  border-radius: 999px;
}

.checkout-route-pills .checkout-route-native { color: #5c5f62; }
.checkout-route-pills .checkout-route-hosted { color: #005bd3; border-color: #aac9f4; }
.checkout-route-helper { color: #5c5f62; font-size: 9px; line-height: 1.35; }

.journey-page-card {
  display: grid;
  gap: 8px;
  width: 100%;
  min-height: 0;
  padding: 10px;
  color: var(--p-text);
  text-align: left;
  background: #fff;
  border: 1px solid #c9cccf;
  border-radius: 9px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
  transition: border-color .14s ease, box-shadow .14s ease, transform .14s ease;
}

.journey-page-card:hover { border-color: #616161; box-shadow: 0 3px 8px rgba(0, 0, 0, .10); transform: translateY(-1px); }
.journey-page-card.is-selected { border-color: #303030; box-shadow: 0 0 0 2px #303030; }

.journey-page-card-select {
  display: grid;
  gap: 8px;
  width: 100%;
  min-width: 0;
  padding: 0;
  color: var(--p-text);
  text-align: left;
  background: transparent;
  border: 0;
}

.journey-page-card-select:focus-visible { outline: 2px solid #005bd3; outline-offset: 3px; border-radius: 4px; }

.journey-page-card-head { display: grid; grid-template-columns: minmax(0, 1fr); }
.journey-page-card-head > span:last-child { display: grid; gap: 1px; min-width: 0; }
.journey-page-card-head small { color: var(--p-text-subdued); font-size: 9px; font-weight: 650; }
.journey-page-card-head strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.journey-page-card-body { display: grid; min-width: 0; padding-top: 7px; border-top: 1px solid #ececec; }
.journey-page-card-product,
.journey-page-card-page,
.journey-page-card-pending,
.journey-page-card-allocation { overflow: hidden; color: #4a4a4a; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.journey-page-card-product { color: #795600; font-weight: 650; }
.journey-page-card-pending { color: #b98900; }
.journey-page-card-allocation { color: #006e52; font-weight: 650; }

.journey-page-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-height: 16px;
}

.journey-page-card-edit,
.journey-page-card-config {
  padding: 0;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.2;
  background: transparent;
  border: 0;
}

.journey-page-card-edit {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #005bd3;
}

.journey-page-card-config { color: #4a4a4a; }

.journey-page-card-edit:hover { color: #003d99; text-decoration: underline; }
.journey-page-card-config:hover { color: #003d99; text-decoration: underline; }
.journey-page-card-edit:focus-visible,
.journey-page-card-config:focus-visible { outline: 2px solid #005bd3; outline-offset: 3px; border-radius: 3px; }

.journey-page-card-remove {
  display: inline-grid;
  width: 19px;
  height: 19px;
  margin-left: auto;
  padding: 0;
  color: #b42318;
  background: transparent;
  border: 0;
  border-radius: 4px;
  font-size: 17px;
  line-height: 1;
  place-items: center;
}

.journey-page-card-remove:hover { background: #fef0ef; }
.journey-page-card-remove:focus-visible { outline: 2px solid #d92d20; outline-offset: 2px; }
.journey-page-card-required { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; color: #8c9196; font-size: 9px; white-space: nowrap; }
.remove-journey-page-summary { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 9px; margin-top: 13px; padding: 11px; background: #f6f6f7; border: 1px solid #e1e3e5; border-radius: 8px; }
.remove-journey-page-summary > span { display: grid; width: 32px; height: 32px; color: #5c5f62; background: #ebebeb; border-radius: 7px; place-items: center; }
.remove-journey-page-summary > div { display: grid; gap: 2px; min-width: 0; }.remove-journey-page-summary small { color: #6d7175; font-size: 10px; }.remove-journey-page-summary strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.journey-add-page {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 56px;
  padding: 9px;
  color: #303030;
  text-align: left;
  background: rgba(255, 255, 255, .62);
  border: 1px dashed #8c9196;
  border-radius: 9px;
}

.journey-add-page:hover { color: #005bd3; background: #fff; border-color: #005bd3; }
.journey-add-page > span:first-child { display: grid; width: 26px; height: 26px; border: 1px solid currentColor; border-radius: 7px; place-items: center; }
.journey-add-page > span:last-child { display: grid; gap: 1px; }
.journey-add-page strong { font-size: 11px; }
.journey-add-page small { color: var(--p-text-subdued); font-size: 10px; }

.journey-lane-empty { display: grid; justify-items: start; gap: 6px; padding: 10px; color: var(--p-text-subdued); background: rgba(255, 255, 255, .55); border: 1px dashed #c9cccf; border-radius: 9px; }
.journey-lane-empty > span { color: #8c9196; }
.journey-lane-empty p { font-size: 11px; }

.journey-entry-split { display: grid; gap: 6px; padding: 8px 0 2px; }
.journey-entry-split span { display: flex; align-items: center; justify-content: space-between; gap: 6px; color: #5c5f62; font-size: 10px; }
.journey-entry-split b { color: #303030; font-size: 11px; }

.journey-native-card { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 7px; padding: 9px; color: #5c5f62; background: #f1f1f1; border: 1px dashed #8c9196; border-radius: 9px; }
.journey-native-card > span { display: grid; place-items: center; }
.journey-native-card div { display: grid; gap: 1px; min-width: 0; }
.journey-native-card small { color: #6d7175; font-size: 9px; }
.journey-native-card strong { font-size: 11px; }
.journey-native-card b { font-size: 11px; }

.journey-stage-arrow { display: grid; align-self: start; justify-items: center; gap: 4px; margin-top: 74px; color: #6d7175; }
.journey-stage-arrow small { color: #6d7175; font-size: 9px; font-weight: 650; white-space: nowrap; }
.journey-stage-arrow-checkout { margin-top: 116px; }
.journey-stage-arrow-routing { margin-top: 138px; }
.journey-stage-arrow-to-checkout { margin-top: 104px; }

.journey-routing-stage {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  background: rgba(255, 255, 255, .90);
  border: 1px solid #b9c4d8;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}

.journey-routing-stage > header { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 8px; }
.journey-routing-stage > header > span:last-child { display: grid; gap: 1px; min-width: 0; }
.journey-routing-stage > header small { color: #5c5f62; font-size: 10px; font-weight: 650; }
.journey-routing-stage > header strong { font-size: 12px; }
.journey-routing-stage > p { color: #5c5f62; font-size: 11px; line-height: 1.35; }

.journey-routing-path {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 8px;
  background: #f6f6f7;
  border: 1px solid #d6d6d6;
  border-radius: 8px;
}

.journey-routing-path > span:nth-child(2) { display: grid; gap: 1px; min-width: 0; }
.journey-routing-path small { color: #6d7175; font-size: 9px; }
.journey-routing-path strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.journey-routing-path b { color: #303030; font-size: 12px; }
.journey-routing-path-icon { display: grid; width: 28px; height: 28px; color: #5c5f62; background: #ebebeb; border-radius: 7px; place-items: center; }
.journey-routing-best { background: #f7f9ff; border-color: #c9d8fb; }
.journey-routing-best .journey-routing-path-icon { color: #005bd3; background: #e8f0fe; }

.journey-routing-variants { display: grid; gap: 5px; padding: 2px 8px 0 17px; border-left: 1px dashed #8c9196; }
.journey-routing-variant { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: center; gap: 6px; min-width: 0; color: #4a4a4a; font-size: 10px; }
.journey-routing-variant > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.journey-routing-variant b { color: #006e52; font-size: 10px; }
.journey-routing-variant-dot { width: 6px; height: 6px; background: #005bd3; border-radius: 50%; }
.journey-routing-empty { color: #6d7175; font-size: 10px; }

.journey-routing-config { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 30px; padding: 6px 8px; color: #005bd3; font-size: 11px; font-weight: 650; background: transparent; border: 0; border-radius: 5px; }
.journey-routing-config:hover { background: #e8f0fe; }
.journey-routing-config:focus-visible { outline: 2px solid #005bd3; outline-offset: 2px; }

.routing-allocation-section { display: grid; gap: 8px; padding: 10px; background: #f6f6f7; border: 1px solid #d6d6d6; border-radius: 8px; }
.routing-allocation-heading { display: flex; align-items: center; justify-content: space-between; color: #303030; font-size: 12px; font-weight: 650; }
.routing-allocation-heading strong { color: #006e52; }
.routing-allocation-heading strong.is-invalid { color: #d72c0d; }
.routing-allocation-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) 76px; align-items: center; gap: 8px; padding: 8px; background: #fff; border: 1px solid #d6d6d6; border-radius: 7px; }
.routing-allocation-row > div { display: grid; gap: 1px; min-width: 0; }
.routing-allocation-row strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.routing-allocation-row small { color: #6d7175; font-size: 10px; }
.routing-allocation-icon { display: grid; width: 30px; height: 30px; color: #005bd3; background: #e8f0fe; border-radius: 7px; place-items: center; }
.routing-allocation-native .routing-allocation-icon { color: #5c5f62; background: #ebebeb; }
.routing-allocation-row label { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3px; }
.routing-allocation-row input { min-width: 0; padding: 5px; text-align: right; }
.routing-allocation-row label b { color: #6d7175; font-size: 11px; }
.routing-allocation-group-label { display: flex; align-items: center; justify-content: space-between; padding: 4px 1px 0; }
.routing-allocation-group-label span { color: #303030; font-size: 11px; font-weight: 650; }
.routing-allocation-group-label small { color: #6d7175; font-size: 10px; }
.routing-add-checkout { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 32px; color: #005bd3; font-size: 11px; font-weight: 650; background: #fff; border: 1px dashed #8c9196; border-radius: 7px; }
.routing-add-checkout:hover { border-color: #005bd3; background: #f7f9ff; }
.routing-allocation-empty { padding: 8px; color: #6d7175; font-size: 11px; background: #fff; border: 1px dashed #c9cccf; border-radius: 7px; }

.audience-builder { display: grid; gap: 9px; padding: 11px; background: #f6f6f7; border: 1px solid #d6d6d6; border-radius: 8px; }
.audience-builder > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.audience-builder > header > span { display: grid; gap: 2px; }
.audience-builder > header strong { color: #303030; font-size: 12px; font-weight: 650; }
.audience-builder > header small, .audience-builder > p { color: #6d7175; font-size: 10px; line-height: 1.45; }
.audience-builder > header em { flex: 0 0 auto; padding: 3px 6px; color: #5c5f62; background: #ebebeb; border-radius: 999px; font-size: 10px; font-style: normal; white-space: nowrap; }
.audience-builder > p { margin: 0; }
.audience-rule-list { display: grid; gap: 7px; }
.audience-rule-row { display: grid; grid-template-columns: minmax(138px, 1.25fr) minmax(98px, .85fr) minmax(128px, 1.1fr) 28px; align-items: center; gap: 6px; padding: 7px; background: #fff; border: 1px solid #d6d6d6; border-radius: 7px; }
.audience-rule-row select, .audience-rule-row input { min-width: 0; min-height: 30px; padding: 5px 7px; font-size: 11px; }
.audience-number-range { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 3px; min-width: 0; }
.audience-number-range > span { color: #6d7175; font-size: 10px; text-align: center; }
.audience-number-range input { width: 100%; }
.audience-money-field { position: relative; display: block; min-width: 0; }
.audience-money-field > b { position: absolute; z-index: 1; top: 50%; left: 7px; color: #6d7175; font-size: 11px; font-weight: 600; line-height: 1; pointer-events: none; transform: translateY(-50%); }
.audience-money-field input { box-sizing: border-box; width: 100%; padding-left: 18px !important; }
.audience-days-field { display: inline-flex; align-items: center; min-width: 0; }
.audience-days-field input { box-sizing: border-box; width: 100%; padding-right: 27px !important; }
.audience-days-field em { margin-left: -24px; color: #6d7175; font-size: 11px; font-style: normal; pointer-events: none; }
.audience-tag-editor { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 30px; padding: 3px 5px; background: #fff; border: 1px solid #c9cccf; border-radius: 6px; }
.audience-tag-editor:focus-within { border-color: #005bd3; box-shadow: 0 0 0 1px #005bd3; }
.audience-tag-list { display: flex; flex-wrap: wrap; gap: 4px; }
.audience-tag-chip { display: inline-flex; align-items: center; gap: 3px; max-width: 100%; padding: 2px 4px 2px 6px; color: #004b8d; background: #e8f2ff; border: 1px solid #b8d4f4; border-radius: 999px; font-size: 10px; line-height: 1.3; }
.audience-tag-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audience-tag-chip button { display: grid; width: 14px; height: 14px; padding: 0; color: #34617e; background: transparent; border: 0; border-radius: 50%; cursor: pointer; font-size: 13px; line-height: 1; place-items: center; }
.audience-tag-chip button:hover { color: #fff; background: #34617e; }
.audience-tag-editor [data-audience-tag-input] { flex: 1 1 72px; width: 72px; min-width: 0; min-height: 22px; padding: 2px !important; background: transparent; border: 0; outline: 0; box-shadow: none; }
.audience-product-control { position: relative; display: grid; gap: 5px; min-width: 0; }
.audience-product-summary { display: flex; flex-wrap: wrap; gap: 4px; min-height: 20px; }
.audience-product-placeholder { align-self: center; color: #6d7175; font-size: 10px; }
.audience-product-chip { display: inline-flex; align-items: center; gap: 3px; max-width: 100%; padding: 2px 4px 2px 6px; color: #004b8d; background: #e8f2ff; border: 1px solid #b8d4f4; border-radius: 999px; font-size: 10px; line-height: 1.3; }
.audience-product-chip > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audience-product-chip button { display: grid; width: 14px; height: 14px; padding: 0; color: #34617e; background: transparent; border: 0; border-radius: 50%; cursor: pointer; font-size: 13px; line-height: 1; place-items: center; }
.audience-product-chip button:hover { color: #fff; background: #34617e; }
.audience-product-trigger { display: inline-flex; align-items: center; justify-content: space-between; min-height: 30px; gap: 5px; padding: 5px 7px; color: #005bd3; background: #fff; border: 1px solid #8c9196; border-radius: 6px; font: inherit; font-size: 11px; font-weight: 650; cursor: pointer; }
.audience-product-trigger:hover { background: #f1f8ff; border-color: #005bd3; }
.audience-product-control.has-error .audience-product-trigger { border-color: #d72c0d; }
.audience-product-error { color: #d72c0d; font-size: 10px; line-height: 1.3; }
.audience-product-trigger .icon { transition: transform .15s ease; }
.audience-product-control.is-open { z-index: 2; }
.audience-product-control.is-open .audience-product-trigger .icon { transform: rotate(90deg); }
.audience-product-menu { position: absolute; z-index: 3; top: calc(100% + 4px); right: 0; left: 0; display: none; gap: 6px; padding: 7px; background: #f6f8fb; border: 1px solid #c9d8fb; border-radius: 7px; box-shadow: 0 8px 18px rgba(33, 43, 54, .16); }
.audience-product-control.is-open .audience-product-menu { display: grid; }
.audience-product-menu [data-audience-product-search] { box-sizing: border-box; width: 100%; min-height: 30px; padding: 5px 7px; background: #fff; border: 1px solid #c9cccf; border-radius: 5px; font: inherit; font-size: 11px; }
.audience-product-option-list { display: grid; gap: 4px; max-height: 168px; overflow: auto; }
.audience-product-option { display: grid; grid-template-columns: 15px minmax(0, 1fr); align-items: center; gap: 7px; padding: 6px; background: #fff; border: 1px solid #e1e3e5; border-radius: 5px; cursor: pointer; }
.audience-product-option:hover, .audience-product-option:has(input:checked) { background: #f1f8ff; border-color: #8eb8ea; }
.audience-product-option > span { display: grid; gap: 1px; min-width: 0; }
.audience-product-option strong { overflow: hidden; color: #303030; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.audience-product-option small { color: #6d7175; font-size: 10px; }
.audience-product-empty { margin: 0; color: #6d7175; font-size: 11px; }
.audience-rule-remove { display: grid; width: 28px; height: 28px; color: #8c9196; background: transparent; border: 0; border-radius: 5px; cursor: pointer; font-size: 19px; line-height: 1; place-items: center; }
.audience-rule-remove:hover { color: #d72c0d; background: #fff0f0; }
.audience-add-rule { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 32px; color: #005bd3; background: #fff; border: 1px dashed #8c9196; border-radius: 7px; cursor: pointer; font-size: 11px; font-weight: 650; }
.audience-add-rule:hover { border-color: #005bd3; background: #f7f9ff; }

/* Funnel routing is deliberately separate from the experiment that runs after entry. */
.funnel-entry-summary {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #c9d8fb;
  border-radius: 9px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}

.funnel-entry-summary-icon {
  display: grid;
  width: 30px;
  height: 30px;
  color: #005bd3;
  background: #e8f0fe;
  border-radius: 7px;
  place-items: center;
}

.funnel-entry-summary-audience { display: grid; gap: 4px; min-width: 0; }
.funnel-entry-summary-audience > small,
.funnel-entry-summary-meta small { color: #5c5f62; font-size: 9px; font-weight: 650; }
.funnel-entry-summary .funnel-entry-rule-chips { margin: 0; }
.funnel-entry-summary .funnel-entry-rule-chips span { max-width: 180px; }

.funnel-entry-summary-meta {
  display: grid;
  gap: 1px;
  min-width: 54px;
  padding-left: 10px;
  border-left: 1px solid #e1e3e5;
}

.funnel-entry-summary-meta strong { color: #303030; font-size: 12px; }

.funnel-entry-summary-fallback {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-left: 10px;
  color: #5c5f62;
  border-left: 1px solid #e1e3e5;
}

.funnel-entry-summary-fallback small { max-width: 155px; font-size: 10px; line-height: 1.25; }
.funnel-entry-summary > .button { min-height: 30px; padding: 5px 7px; font-size: 10px; white-space: nowrap; }

.funnel-entry-overview { display: grid; gap: 14px; padding: 16px; background: #fff; border: 1px solid #c9d8fb; border-radius: 12px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.funnel-entry-overview > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.funnel-entry-overview h2 { margin: 3px 0 4px; color: #202223; font-size: 16px; letter-spacing: -.01em; }
.funnel-entry-overview p { margin: 0; color: #6d7175; font-size: 12px; line-height: 1.45; }
.funnel-entry-overview-grid { display: grid; grid-template-columns: minmax(280px, 1.45fr) minmax(205px, 1fr) minmax(205px, 1fr); gap: 10px; }
.funnel-entry-overview-grid article { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: start; gap: 9px; min-width: 0; padding: 11px; background: #f6f6f7; border: 1px solid #e1e3e5; border-radius: 9px; }
.funnel-entry-overview-grid article > div { display: grid; gap: 3px; min-width: 0; }
.funnel-entry-overview-grid small { color: #6d7175; font-size: 10px; font-weight: 650; }
.funnel-entry-overview-grid strong { color: #303030; font-size: 12px; }
.funnel-entry-overview-grid p { font-size: 10px; }
.funnel-entry-overview-icon { display: grid; width: 30px; height: 30px; color: #005bd3; background: #e8f0fe; border-radius: 7px; place-items: center; }
.funnel-entry-priority-icon { color: #795600; background: #fff5d6; }
.funnel-entry-fallback-icon { color: #5c5f62; background: #ebebeb; }
.funnel-entry-rule-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.funnel-entry-rule-chips span { max-width: 100%; padding: 3px 5px; overflow: hidden; color: #3a4b67; font-size: 10px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; background: #edf3ff; border-radius: 4px; }

.funnel-preview-session { display: grid; gap: 16px; }
.funnel-preview-session-head { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 10px; color: #204f75; background: #edf6ff; border: 1px solid #c8e3fa; border-radius: 8px; }
.funnel-preview-session-head > span { display: grid; width: 30px; height: 30px; color: #005bd3; background: #d9ecff; border-radius: 7px; place-items: center; }
.funnel-preview-session-head > div { display: grid; gap: 1px; min-width: 0; }
.funnel-preview-session-head strong { color: #1f3b57; font-size: 12px; }
.funnel-preview-session-head small { color: #4a6178; font-size: 10px; }
.funnel-preview-session-head code { color: #4a6178; font-size: 10px; }
.funnel-preview-steps { display: flex; gap: 5px; padding: 1px 0; overflow-x: auto; }
.funnel-preview-step { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 5px 8px; color: #5c5f62; background: #f6f6f7; border: 1px solid #d6d6d6; border-radius: 999px; font-size: 11px; font-weight: 650; white-space: nowrap; }
.funnel-preview-step > span { display: grid; width: 16px; height: 16px; color: #5c5f62; background: #e4e5e7; border-radius: 50%; font-size: 9px; place-items: center; }
.funnel-preview-step.is-active { color: #005bd3; background: #f1f6ff; border-color: #91b2f7; }
.funnel-preview-step.is-active > span { color: #fff; background: #005bd3; }
.funnel-preview-stage { display: grid; grid-template-columns: minmax(200px, .72fr) minmax(340px, 1.28fr); gap: 18px; align-items: center; min-height: 340px; padding: 20px; background: #f6f6f7; border: 1px solid #e1e3e5; border-radius: 10px; }
.funnel-preview-stage > header { display: grid; gap: 6px; }
.funnel-preview-stage > header > span { color: #005bd3; font-size: 11px; font-weight: 650; text-transform: uppercase; }
.funnel-preview-stage h3 { margin: 0; color: #202223; font-size: 20px; }
.funnel-preview-stage p { margin: 0; color: #5c5f62; font-size: 12px; line-height: 1.45; }
.funnel-preview-device { overflow: hidden; background: #fff; border: 1px solid #c9cccf; border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, .08); }
.funnel-preview-browser { display: flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 11px; color: #6d7175; background: #f1f1f1; border-bottom: 1px solid #d6d6d6; font-size: 9px; }
.funnel-preview-browser i { width: 6px; height: 6px; background: #b5b5b5; border-radius: 50%; }
.funnel-preview-browser span { width: 56%; margin-left: 5px; padding: 3px 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: #fff; border-radius: 4px; }
.funnel-preview-content { display: grid; gap: 16px; min-height: 270px; padding: 24px; }
.funnel-preview-checkout { display: grid; gap: 13px; padding: 17px; border: 1px solid #e1e3e5; border-radius: 8px; }
.funnel-preview-checkout > div:first-child { display: grid; gap: 2px; }
.funnel-preview-checkout strong { color: #202223; font-size: 15px; }
.funnel-preview-checkout span { color: #6d7175; font-size: 10px; }
.funnel-preview-lines { display: grid; gap: 7px; }
.funnel-preview-lines i { height: 12px; background: #eceeef; border-radius: 4px; }
.funnel-preview-lines i:nth-child(2) { width: 84%; }
.funnel-preview-lines i:nth-child(3) { width: 66%; }
.funnel-preview-total { display: flex; justify-content: space-between; padding-top: 10px; border-top: 1px solid #e1e3e5; }
.funnel-preview-total strong { font-size: 16px; }
.funnel-preview-offer { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-items: center; gap: 14px; padding: 18px; background: #fff8e8; border: 1px solid #f0d9a6; border-radius: 8px; }
.funnel-preview-product-image { width: 76px; height: 76px; background: linear-gradient(135deg, #e4d1a4, #9f806c); border-radius: 8px; }
.funnel-preview-offer > div:last-child { display: grid; gap: 4px; min-width: 0; }
.funnel-preview-offer span { color: #795600; font-size: 10px; font-weight: 650; text-transform: uppercase; }
.funnel-preview-offer strong { overflow: hidden; color: #202223; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.funnel-preview-offer small { color: #795600; font-size: 14px; font-weight: 650; }
.funnel-preview-thankyou { display: grid; justify-items: center; gap: 10px; padding: 30px 20px; color: #006e52; text-align: center; }
.funnel-preview-thankyou > span { display: grid; width: 50px; height: 50px; background: #dff5eb; border-radius: 50%; place-items: center; }
.funnel-preview-thankyou strong { color: #202223; font-size: 17px; }
.funnel-preview-thankyou small { color: #5c5f62; font-size: 11px; }
.funnel-preview-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: auto; }

/* Buyer-facing preview content: this is intentionally a small but believable checkout session,
   not a wireframe. It mirrors the main editor's page language within the preview modal. */
.funnel-preview-store { overflow: hidden; color: #202223; background: #fff; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.funnel-preview-merchant { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid #eceff2; }
.funnel-preview-merchant strong { font-family: Georgia, serif; font-size: 13px; letter-spacing: .1em; }
.funnel-preview-merchant span { color: #6d7175; font-size: 9px; }
.funnel-preview-store-checkout > main { display: grid; gap: 11px; padding: 14px 16px 17px; }
.funnel-preview-order-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 10px 16px; background: #f7f7f8; border-bottom: 1px solid #e7e9eb; }
.funnel-preview-cart-thumb { width: 32px; height: 32px; background: linear-gradient(145deg, #d7cbc0, #8e7462); border: 1px solid #d4d4d4; border-radius: 6px; }
.funnel-preview-order-row div { display: grid; gap: 1px; min-width: 0; }.funnel-preview-order-row strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.funnel-preview-order-row small { color: #6d7175; font-size: 8px; }.funnel-preview-order-row > b { font-size: 10px; }
.funnel-preview-express { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }.funnel-preview-express span { display: grid; min-height: 29px; color: #fff; background: #5a31f4; border-radius: 5px; font-size: 8px; font-weight: 800; place-items: center; }.funnel-preview-express span:nth-child(2) { color: #123; background: #ffc439; }.funnel-preview-express span:nth-child(3) { background: #111; }
.funnel-preview-or { display: flex; align-items: center; gap: 7px; color: #85898e; font-size: 7px; text-align: center; }.funnel-preview-or::before, .funnel-preview-or::after { flex: 1; height: 1px; background: #e2e4e7; content: ''; }
.funnel-preview-form-section { display: grid; gap: 5px; }.funnel-preview-form-section > div:first-child { display: flex; justify-content: space-between; }.funnel-preview-form-section strong { font-size: 10px; }.funnel-preview-form-section a, .funnel-preview-form-section label { color: #6d7175; font-size: 8px; }.funnel-preview-form-section > i { display: block; height: 28px; border: 1px solid #c9cdd1; border-radius: 4px; }.funnel-preview-field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }.funnel-preview-field-pair i { height: 24px; border: 1px solid #c9cdd1; border-radius: 4px; }.funnel-preview-card-field { display: flex; align-items: center; gap: 5px; min-height: 28px; padding: 0 8px; background: #f7f7f8; border: 1px solid #555; border-radius: 4px; font-size: 8px; }.funnel-preview-card-field b { font-size: 11px; }.funnel-preview-total-row { display: flex; justify-content: space-between; padding-top: 9px; border-top: 1px solid #e2e4e7; font-size: 10px; }.funnel-preview-total-row strong { font-size: 14px; }
.funnel-preview-store-offer { text-align: center; }.funnel-preview-postpurchase-note { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 7px 10px; color: #2e6547; background: #edf8f1; font-size: 8px; }.funnel-preview-store-offer main { padding: 19px 20px 16px; }.funnel-preview-offer-kicker { color: #5f4ac6; font-size: 8px; font-weight: 800; letter-spacing: .13em; }.funnel-preview-store-offer h4 { margin: 9px 0 5px; font-family: Georgia, serif; font-size: 18px; }.funnel-preview-store-offer p { margin: 0; color: #6d7175; font-size: 10px; line-height: 1.45; }.funnel-preview-store-offer .funnel-preview-product-image { width: 104px; height: 104px; margin: 13px auto 0; background: radial-gradient(circle at 35% 30%, #e9ded4, #a18572 60%, #6e5544); border-radius: 14px; box-shadow: inset 0 0 0 6px rgba(255,255,255,.35), 0 7px 16px rgba(79,58,44,.15); }.funnel-preview-price { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 9px 0; }.funnel-preview-price s { color: #90969d; font-size: 11px; }.funnel-preview-price strong { font-size: 18px; }.funnel-preview-price em { padding: 2px 5px; color: #805200; background: #fff0c7; border-radius: 4px; font-size: 7px; font-style: normal; font-weight: 800; }.funnel-preview-store-offer ul { display: inline-grid; gap: 4px; margin: 4px auto 0; padding: 0; color: #5c6570; font-size: 9px; list-style: none; text-align: left; }.funnel-preview-store-offer li::before { color: #18794e; content: '✓ '; }
.funnel-preview-store-thankyou main { padding: 20px 16px; }.funnel-preview-store-thankyou .funnel-preview-thankyou { display: grid; justify-items: center; gap: 5px; padding: 4px 0 17px; text-align: center; }.funnel-preview-thankyou > span { display: grid; width: 42px; height: 42px; color: #167a4b; background: #e2f5ea; border-radius: 50%; place-items: center; }.funnel-preview-thankyou small { color: #6d7175; font-size: 9px; }.funnel-preview-thankyou strong { font-family: Georgia, serif; font-size: 18px; }.funnel-preview-thankyou p { margin: 0; color: #6d7175; font-size: 9px; }.funnel-preview-delivery-card, .funnel-preview-receipt { display: grid; gap: 5px; padding: 11px; border: 1px solid #e0e3e6; border-radius: 7px; }.funnel-preview-delivery-card > span, .funnel-preview-delivery-card small { color: #6d7175; font-size: 8px; }.funnel-preview-delivery-card > strong { font-size: 11px; }.funnel-preview-delivery-card i { display: block; height: 5px; overflow: hidden; background: #e2e6e9; border-radius: 999px; }.funnel-preview-delivery-card i b { display: block; width: 58%; height: 100%; background: #1f8052; }.funnel-preview-receipt { gap: 4px; margin-top: 10px; }.funnel-preview-receipt div { display: flex; justify-content: space-between; color: #5d6773; font-size: 9px; }.funnel-preview-receipt div:last-child { padding-top: 7px; color: #202223; border-top: 1px solid #e1e3e5; font-size: 10px; }

.funnel-entry-modal-intro { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 9px; padding: 11px; color: #303030; background: #f1f6ff; border: 1px solid #c9d8fb; border-radius: 8px; }
.funnel-entry-modal-intro > span { display: grid; width: 30px; height: 30px; color: #005bd3; background: #e8f0fe; border-radius: 7px; place-items: center; }
.funnel-entry-modal-intro > div { display: grid; gap: 2px; }
.funnel-entry-modal-intro small { color: #005bd3; font-size: 10px; font-weight: 650; }
.funnel-entry-modal-intro strong { font-size: 12px; }
.funnel-entry-modal-intro p { margin: 0; color: #5c5f62; font-size: 11px; line-height: 1.4; }
.funnel-priority-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.funnel-priority-fields label { display: grid; grid-template-rows: 16px 34px minmax(27px, auto); align-content: start; gap: 5px; color: #303030; font-size: 12px; font-weight: 650; }
.funnel-priority-fields small { color: #6d7175; font-size: 10px; font-weight: 400; line-height: 1.35; }
.funnel-priority-fields input { box-sizing: border-box; width: 100%; min-height: 34px; height: 34px; margin: 0; }
.funnel-priority-fields input:disabled { color: #5c5f62; background: #f1f1f1; }

.experiment-entry-summary { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 10px; background: #f1f6ff; border: 1px solid #c9d8fb; border-radius: 8px; }
.experiment-entry-summary > span { display: grid; width: 30px; height: 30px; color: #005bd3; background: #e8f0fe; border-radius: 7px; place-items: center; }
.experiment-entry-summary > div { display: grid; gap: 1px; min-width: 0; }
.experiment-entry-summary small { color: #005bd3; font-size: 10px; font-weight: 650; }
.experiment-entry-summary strong { color: #303030; font-size: 12px; }
.experiment-entry-summary p { margin: 0; overflow: hidden; color: #5c5f62; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 980px) {
  .funnel-entry-overview-grid { grid-template-columns: 1fr; }
  .funnel-entry-summary { grid-template-columns: 30px minmax(0, 1fr) auto; }
  .funnel-entry-summary-fallback { grid-column: 2; padding-left: 0; border-left: 0; }
  .funnel-entry-summary > .button { grid-column: 3; grid-row: 1 / span 2; }
}

@media (max-width: 600px) {
  .funnel-entry-overview > header { display: grid; }
  .funnel-entry-overview > header .button { justify-self: start; }
  .funnel-priority-fields { grid-template-columns: 1fr; }
  .experiment-entry-summary { grid-template-columns: 30px minmax(0, 1fr); }
  .experiment-entry-summary .button { grid-column: 2; justify-self: start; }
  .funnel-entry-summary { grid-template-columns: 30px minmax(0, 1fr); }
  .funnel-entry-summary-meta { grid-column: 2; padding-left: 0; border-left: 0; }
  .funnel-entry-summary-fallback { grid-column: 2; }
  .funnel-entry-summary > .button { grid-column: 2; grid-row: auto; justify-self: start; }
  .audience-rule-row { grid-template-columns: minmax(0, 1fr) 28px; align-items: start; }
  .audience-rule-row > select,
  .audience-rule-row > input,
  .audience-rule-row > .audience-tag-editor,
  .audience-rule-row > [data-audience-product-control],
  .audience-rule-row > .audience-number-range,
  .audience-rule-row > [data-audience-money-control],
  .audience-rule-row > [data-audience-days-control] { grid-column: 1; }
  .audience-rule-remove { grid-column: 2; grid-row: 1; }
}

.journey-offer-lanes { display: grid; gap: 16px; min-width: 0; }
.journey-offer-fallback { position: relative; padding-top: 15px; }
.journey-offer-fallback::before { position: absolute; top: 0; left: 19px; width: calc(100% - 38px); border-top: 1px dashed #b98900; content: ''; }
.journey-decline-connector { display: inline-flex; align-items: center; gap: 4px; margin: -3px 0 -5px 18px; color: #795600; font-size: 10px; }
.journey-decline-connector span { transform: rotate(90deg); }
.journey-decline-connector small { font-size: 10px; }

.journey-page-choice-list { display: grid; gap: 8px; }
.journey-page-choice { display: grid; grid-template-columns: 28px minmax(0, 1fr) 18px; align-items: center; gap: 10px; width: 100%; padding: 11px; color: var(--p-text); text-align: left; background: #fff; border: 1px solid var(--p-border); border-radius: 9px; }
.journey-page-choice:hover { border-color: #005bd3; background: #f7f9ff; }
.journey-page-choice > span:first-child { display: grid; width: 28px; height: 28px; color: #005bd3; background: #e8f0fe; border-radius: 7px; place-items: center; }
.journey-page-choice > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.journey-page-choice strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.journey-page-choice small { color: var(--p-text-subdued); font-size: 10px; }
.journey-page-choice-empty { display: grid; justify-items: center; gap: 7px; padding: 28px 12px; color: var(--p-text-subdued); text-align: center; background: #f6f6f7; border: 1px dashed #c9cccf; border-radius: 9px; }
.journey-page-choice-empty strong { color: var(--p-text); }
.journey-page-choice-empty p { font-size: 11px; }

@media (max-width: 1100px) {
  .global-funnel-router-list { grid-template-columns: 1fr; }
  .funnel-index-tabs { gap: 16px; }
}

@media (max-width: 760px) {
  .global-funnel-router-head { display: grid; }
  .global-funnel-router-note { justify-self: start; }
  .funnel-index-toolbar { min-height: 52px; padding: 0 12px; }
  .funnel-index-tabs { gap: 14px; }
  .funnel-index-tab { min-height: 52px; font-size: 12px; }
  .funnel-index-count { display: none; }
  .funnel-detail-intro { align-items: flex-start; }
  .funnel-detail-intro .title-with-badge { display: none; }
}

@media (max-width: 1360px) {
  .funnel-workspace { grid-template-columns: 1fr; }
  .funnel-rail { position: static; }
  .funnel-list { grid-template-columns: repeat(3, minmax(220px, 1fr)); overflow-x: auto; }
  .funnel-list-item { border-right: 1px solid var(--p-border); }
}

@media (max-width: 1180px) {
  :root { --shopify-sidebar: 220px; }
  .page-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .provider-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .editor-workspace { grid-template-columns: 220px minmax(400px, 1fr) 250px; }
  .node-inspector { grid-template-columns: 1fr auto; }
  .node-inspector dl { display: none; }
}

@media (max-width: 980px) {
  :root { --shopify-sidebar: 0px; }
  .shopify-topbar { grid-template-columns: 160px minmax(180px, 1fr) auto; }
  .shopify-sidebar { display: none; }
  .desktop-language-floating { display: none; }
  .mobile-language-widget { display: block; }
  .mobile-language-widget .language-trigger {
    display: grid;
    grid-template-columns: 25px;
    width: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 5px;
  }
  .mobile-language-widget .language-trigger > strong,
  .mobile-language-widget .language-trigger > i { display: none; }
  .mobile-language-widget .language-menu {
    top: calc(100% + 6px);
    right: 0;
    bottom: auto;
    left: auto;
    width: 210px;
  }
  .shopify-body { grid-template-columns: 1fr; }
  .mobile-app-nav {
    position: sticky;
    z-index: 24;
    top: calc(var(--shopify-topbar) + 56px);
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding: 6px 12px;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--p-border);
  }
  .mobile-app-nav .app-nav-item {
    flex: 0 0 auto;
    width: auto;
    min-height: 44px;
  }
  .mobile-app-nav .app-nav-item.is-active { box-shadow: inset 0 -2px var(--p-action); }
  .page-root { min-height: calc(100vh - 150px); padding: 20px 18px 42px; }
  .page-root-editor { padding: 0; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .funnel-workspace { grid-template-columns: 1fr; }
  .funnel-rail { position: static; }
  .funnel-list { grid-template-columns: repeat(3, minmax(220px, 1fr)); overflow-x: auto; }
  .funnel-list-item { border-right: 1px solid var(--p-border); }
  .settings-two-col { grid-template-columns: 1fr; }
  .editor-toolbar { grid-template-columns: 1fr auto; }
  .editor-toolbar-center { display: none; }
  .editor-workspace { grid-template-columns: 1fr; }
  .editor-deployment-notice { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .editor-deployment-notice em { grid-column: 1 / -1; }
  .editor-panel { max-height: none; overflow: visible; border: 0; border-bottom: 1px solid var(--p-border); }
  .editor-structure { order: 2; }
  .editor-stage { order: 1; min-height: 600px; }
  .editor-inspector { order: 3; }
  .structure-tree { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .structure-group-label, .add-section { grid-column: 1 / -1; }
  .editor-runtime-note { flex-wrap: wrap; text-align: center; }
}

@media (max-width: 760px) {
  .funnel-library-list { display: flex; overflow-x: auto; }
  .funnel-library-list .funnel-list-item { min-width: 235px; border-right: 1px solid var(--p-border); }
  .funnel-canvas-toolbar { align-items: flex-start; flex-direction: column; }
  .funnel-canvas-legend { white-space: normal; }
  .shopify-topbar { grid-template-columns: 130px 1fr auto; }
  .shopify-search kbd, .shopify-top-actions strong { display: none; }
  .shopify-top-actions { gap: 2px; }
  .embedded-titlebar { padding: 8px 13px; }
  .connection-status { display: none; }
  .page-header-row { flex-direction: column; }
  .page-actions { width: 100%; }
  .home-grid, .overview-main-grid, .overview-dashboard-grid, .funnel-lower-grid { grid-template-columns: 1fr; }
  .quickstart-overview, .quickstart-body { grid-template-columns: 1fr; }
  .quickstart-side { justify-content: space-between; }
  .onboarding-modal-grid, .onboarding-after-launch { grid-template-columns: 1fr; }
  .overview-funnel-row { grid-template-columns: minmax(150px, 1fr) 80px auto 16px; }
  .overview-funnel-row > span:nth-child(3) { display: none; }
  .funnel-draft-guide { grid-template-columns: 32px minmax(0, 1fr); }
  .funnel-draft-guide ol { grid-column: 2; flex-wrap: wrap; }
  .page-card-grid, .provider-grid { grid-template-columns: 1fr; }
  .setup-path-grid, .connection-flow { grid-template-columns: 1fr; }
  .connection-flow > i { display: none; }
  .payment-setup-head { align-items: flex-start; flex-direction: column; }
  .activity-summary-grid { grid-template-columns: repeat(2, 1fr); }
  .sync-stats, .domain-facts { grid-template-columns: repeat(2, 1fr); }
  .url-guardrails, .contract-list { grid-template-columns: 1fr; }
  .shared-style-grid { grid-template-columns: repeat(2, 1fr); }
  .installation-facts, .installation-scope-grid { grid-template-columns: 1fr; }
  .installation-flow { display: grid; grid-template-columns: 1fr; }
  .installation-flow-arrow { justify-self: center; transform: rotate(90deg); }
  .seed-callout, .attribution-footnote { grid-template-columns: auto 1fr; }
  .seed-callout .button, .attribution-footnote .button { grid-column: 1 / -1; justify-self: start; }
  .traffic-bar { grid-template-columns: 1fr auto; }
  .traffic-bar .progress-track { grid-column: 1 / -1; grid-row: 2; }
  .node-inspector { grid-template-columns: 1fr; }
  .activity-filter-bar { align-items: center; flex-wrap: wrap; }
  .activity-filter-rail { flex: 1; min-width: min(100%, 380px); }
  .activity-search-control { min-width: 180px; flex: 1; }
  .activity-filter-bar .filter-meta { width: auto; margin-left: auto; }
  .timeline-card header { align-items: flex-start; }
  .timeline-card header > div { display: grid; gap: 2px; }
  .timeline-card footer { flex-wrap: wrap; }
  .timeline-card footer .button { width: 100%; margin-left: 0; justify-content: flex-start; }
  .embed-boundaries { grid-template-columns: 1fr; }
  .settings-tab { min-height: 44px; }
  .architecture-hosts { flex-direction: column; }
  .editor-toolbar { grid-template-columns: 1fr; }
  .editor-toolbar-actions { justify-content: flex-start; padding-left: 39px; }
  .editor-stage { padding: 12px 8px 24px; }
  .editor-stage-meta span:last-child { display: none; }
}

@media (max-width: 520px) {
  .shopify-topbar { grid-template-columns: auto minmax(120px, 1fr) auto; padding: 0 8px; }
  .shopify-brand strong, .shopify-top-actions button:first-child { display: none; }
  .shopify-brand { width: 42px; }
  .shopify-search { height: 32px; }
  .shopify-top-actions .shopify-account { margin-left: 2px; }
  .embedded-titlebar small { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .page-root { padding: 16px 12px 36px; }
  .quickstart-card { padding: 14px; }
  .quickstart-side { grid-template-columns: 1fr; align-items: stretch; }
  .quickstart-side .button { width: 100%; }
  .quickstart-steps { grid-template-columns: 1fr; }
  .onboarding-modal-intro { grid-template-columns: 30px minmax(0, 1fr); }
  .onboarding-modal-intro > b { grid-column: 2; justify-self: start; }
  .onboarding-current-step { padding: 13px; }
  .setup-assist { grid-template-columns: 28px minmax(0, 1fr); }
  .setup-assist .button { grid-column: 2; justify-self: start; }
  .provider-connect-flow { grid-template-columns: 1fr; }
  .metric-grid, .activity-summary-grid, .sync-stats, .detail-grid, .domain-facts, .shared-style-grid { grid-template-columns: 1fr; }
  .metric-card > strong { font-size: 22px; }
  .check-row { grid-template-columns: 28px minmax(0, 1fr) 16px; }
  .check-row .badge { display: none; }
  .check-copy small { white-space: normal; }
  .activity-compact { grid-template-columns: 32px minmax(0, 1fr); }
  .activity-compact time { grid-column: 2; }
  .filter-bar { align-items: flex-start; flex-direction: column; }
  .funnel-title-row { flex-direction: column; }
  .funnel-title-row .inline-actions { width: 100%; }
  .funnel-title-row .button { flex: 1; }
  .traffic-bar { grid-template-columns: 1fr auto; padding: 10px 12px; }
  .funnel-canvas { grid-template-columns: 1fr; align-items: stretch; gap: 8px; min-width: 0; min-height: 0; }
  .journey-stage { width: 100%; }
  .journey-connector { width: 100%; height: 24px; place-items: center; transform: rotate(90deg); }
  .journey-stage-offers { min-width: 0; }
  .offer-outcomes, .offer-outcome-preview { grid-template-columns: 1fr; }
  .fallback-step { margin-left: 12px; }
  .funnel-draft-guide { grid-template-columns: 30px minmax(0, 1fr); padding: 10px 12px; }
  .funnel-draft-guide ol { grid-column: 1 / -1; }
  .overview-funnel-row { grid-template-columns: minmax(0, 1fr) auto 16px; }
  .overview-funnel-row > span:nth-child(2),
  .overview-funnel-row > span:nth-child(3) { display: none; }
  .wizard-progress { grid-template-columns: 1fr 20px 1fr; }
  .wizard-progress > span { font-size: 10px; }
  .goal-card-copy > span { align-items: flex-start; }
  .audience-starter-grid { grid-template-columns: 1fr; }
  .canvas-stage-entry,
  .canvas-stage-checkout,
  .canvas-stage-post,
  .canvas-stage-thankyou {
    width: 100%;
  }
  .canvas-link {
    width: 100%;
    height: 24px;
    transform: rotate(90deg);
  }
  .canvas-branch { gap: 10px; }
  .canvas-branch::before { display: none; }
  .branch-label {
    position: static;
    display: inline-flex;
    justify-self: start;
    padding: 2px 6px;
    color: var(--p-text-subdued);
    background: var(--p-surface-subdued);
    border-radius: 999px;
    font-size: 9px;
  }
  .page-card-actions { flex-wrap: wrap; }
  .page-card-actions .button { flex: 1; }
  .page-card-actions .icon-button { margin-left: 0; }
  .table-toolbar { align-items: flex-start; flex-direction: column; padding-top: 8px; }
  .tabs { width: 100%; gap: 12px; overflow-x: auto; }
  .tab { flex: 0 0 auto; }
  .timeline { padding-left: 0; }
  .timeline::before { left: 15px; }
  .timeline-event { grid-template-columns: 30px minmax(0, 1fr); gap: 7px; }
  .timeline-marker { width: 30px; height: 30px; }
  .timeline-card { padding: 11px; }
  .domain-hero-top { grid-template-columns: 42px minmax(0, 1fr); }
  .domain-hero-top > .badge { grid-column: 2; }
  .url-pattern { grid-template-columns: 1fr; }
  .url-pattern i { grid-row: auto; transform: rotate(90deg); }
  .url-pattern span, .url-pattern code { grid-column: 1; grid-row: auto; }
  .attribution-flow { justify-content: flex-start; }
  .modal-backdrop { align-items: end; padding: 0; }
  .modal, .modal-wide { width: 100%; border-radius: 16px 16px 0 0; }
  .modal-body { max-height: 68vh; }
  .modal-footer .button { flex: 1; }
  .info-modal-grid { grid-template-columns: 1fr; }
  .capability-formula { justify-content: flex-start; }
  .structure-tree { grid-template-columns: 1fr; }
  .editor-breadcrumb span:first-child, .editor-breadcrumb i:first-of-type, .editor-toolbar-left .badge { display: none; }
  .editor-toolbar-actions { padding-left: 0; }
  .save-state { width: 100%; }
  .editor-toolbar-actions { flex-wrap: wrap; }
  .editor-toolbar-actions .button { flex: 1; }
  .editor-runtime-note span:last-child { display: none; }
  .editor-shared-notice { grid-template-columns: 28px minmax(0, 1fr); }
  .editor-shared-notice .button { grid-column: 1 / -1; justify-self: start; }
  .editor-deployment-notice { grid-template-columns: 1fr 1fr; }
  .editor-deployment-notice > span:last-of-type,
  .editor-deployment-notice em { grid-column: 1 / -1; }
  .preview-frame { border-radius: 8px; }
  .buyer-checkout-grid, .buyer-thankyou-grid { grid-template-columns: 1fr; }
  .buyer-checkout-grid > main, .buyer-thankyou-grid > main, .buyer-checkout-grid > aside, .buyer-thankyou-grid > aside { padding: 22px 20px; }
  .buyer-checkout-grid > aside, .buyer-thankyou-grid > aside { order: -1; border: 0; border-bottom: 1px solid #ddd; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Keep Checkout edits completable on narrow screens. */
.sce-ref-topbar .sce-top-right .sce-button:not(.primary) { display:inline-flex; align-items:center; justify-content:center; }
@media (max-width:800px) {
  .sce-ref-frame.is-mobile { width:min(390px,100%); min-width:0; }
}
