@font-face {
  font-family: FEInter;
  src: url("../demand-scan/fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: FEInter;
  src: url("../demand-scan/fonts/inter-600.woff2") format("woff2");
  font-weight: 600 900;
  font-display: swap;
}
#bwfe-root,
.fe-dialog {
  --fe-ink: #202131;
  --fe-muted: #5e687b;
  --fe-border: #e7e8ee;
  --fe-purple: #6754d6;
  --fe-soft: #f7f7fb;
  font-family: FEInter, system-ui, sans-serif;
  color: var(--fe-ink);
  font-size: 14px;
  line-height: 1.55;
}
#bwfe-root *,
.fe-dialog,
.fe-dialog * {
  box-sizing: border-box;
}
#bwfe-root button,
.fe-dialog button,
#bwfe-root input,
#bwfe-root select,
#bwfe-root textarea,
.fe-dialog input,
.fe-dialog select,
.fe-dialog textarea {
  font: inherit;
}
#bwfe-root button,
.fe-dialog button {
  cursor: pointer;
  border: 1px solid var(--fe-border);
  border-radius: 8px;
  background: #fff;
  color: var(--fe-ink);
  padding: 9px 14px;
  min-height: 42px;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
#bwfe-root button:hover,
.fe-dialog button:hover {
  background: #f3f1fc;
}
#bwfe-root button:disabled,
.fe-dialog button:disabled {
  cursor: default;
  opacity: 0.4;
}
#bwfe-root :focus-visible,
.fe-dialog :focus-visible {
  outline: 3px solid #a79aef;
  outline-offset: 3px;
}
#bwfe-root a,
.fe-dialog a {
  color: #5947bc;
  text-decoration: none;
}
#bwfe-root h1,
#bwfe-root h2,
#bwfe-root h3,
.fe-dialog h1,
.fe-dialog h2,
.fe-dialog h3 {
  color: var(--fe-ink);
  line-height: 1.2;
  font-weight: 600;
  margin: 0 0 12px;
}
#bwfe-root h1 {
  font-size: 32px;
  letter-spacing: -1px;
}
#bwfe-root h2,
.fe-dialog h2 {
  font-size: 19px;
}
#bwfe-root h3 {
  font-size: 16px;
}
#bwfe-root p,
.fe-dialog p {
  margin: 8px 0 16px;
}
#bwfe-root small,
.fe-dialog small {
  display: block;
  color: var(--fe-muted);
  font-size: 12px;
}
#bwfe-root .fe-primary,
.fe-dialog .fe-primary {
  background: var(--fe-purple);
  border-color: var(--fe-purple);
  color: #fff;
  font-weight: 600;
}
#bwfe-root .fe-primary:hover,
.fe-dialog .fe-primary:hover {
  background: #5340bb;
}
#bwfe-root .fe-danger,
.fe-dialog .fe-danger {
  color: #a82e3b;
}
#bwfe-root .fe-link {
  border: 0;
  background: none;
  padding: 0;
  min-height: 32px;
  text-align: left;
  color: var(--fe-purple);
  font-weight: 600;
}
.fe-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.fe-help,
.fe-footnote {
  color: var(--fe-muted);
  font-size: 12px;
}
.fe-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0 0 16px;
  font-weight: 600;
  font-size: 12px;
}
.fe-field input,
.fe-field textarea,
.fe-field select {
  border: 1px solid #dfe1e8 !important;
  border-radius: 8px !important;
  padding: 11px 12px !important;
  background: #fff !important;
  width: 100%;
  min-height: 44px !important;
  color: var(--fe-ink) !important;
  font-size: 14px !important;
  font-weight: 400;
  max-width: 100%;
}
.fe-field textarea {
  resize: vertical;
}
.fe-field input[aria-invalid="true"] {
  border-color: #bc3646 !important;
}
.fe-field .fe-help {
  font-weight: 400;
}
.fe-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  font-size: 13px;
  margin: 14px 0;
}
.fe-consent input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--fe-purple);
}
.fe-error {
  color: #ad293b;
  background: #fff3f3;
  border-radius: 8px;
  padding: 12px;
  margin: 12px 0;
}
.fe-error:empty {
  display: none;
}
.fe-notice {
  background: #f2effe;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
}
.fe-pill {
  display: inline-flex;
  border: 1px solid var(--fe-border);
  background: #f8f8fb;
  border-radius: 20px;
  font-size: 12px;
  padding: 5px 10px;
  white-space: nowrap;
}
.fe-pill.good {
  background: #edf9f1;
  color: #226d43;
  border-color: #d6eede;
}
.fe-studio-top {
  background: white;
  border-bottom: 1px solid var(--fe-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  gap: 20px;
}
.fe-wordmark {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 600;
  font-size: 17px;
}
.fe-wordmark img {
  max-width: 126px;
  max-height: 36px;
  object-fit: contain;
}
.fe-wordmark span {
  border-left: 1px solid var(--fe-border);
  padding-left: 20px;
}
.fe-workspace {
  padding: 0 32px 48px;
  max-width: 1800px;
  margin: auto;
}
.fe-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid var(--fe-border);
  padding: 12px 0;
  margin-bottom: 34px;
  flex-wrap: wrap;
}
#bwfe-root .fe-nav button {
  border: 0;
  padding: 6px 0;
  background: none;
}
.fe-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.fe-page-heading p {
  color: #576175;
}
.fe-eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: 600;
}
.fe-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 18px 0;
}
.fe-toolbar > :first-child {
  margin-right: auto;
}
.fe-save-state {
  color: var(--fe-muted);
  font-size: 12px;
}
.fe-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.fe-metric {
  background: #fff;
  border: 1px solid var(--fe-border);
  padding: 22px;
  border-radius: 12px;
}
.fe-metric span {
  display: block;
  font-size: 12px;
  color: var(--fe-muted);
  margin-bottom: 12px;
}
.fe-metric strong {
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.7px;
}
.fe-panel {
  border: 1px solid var(--fe-border);
  border-radius: 12px;
  background: #fff;
  padding: 24px;
  margin-bottom: 22px;
}
.fe-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}
.fe-panel-heading h2 {
  margin: 0 !important;
}
.fe-panel-heading span {
  color: var(--fe-muted);
  font-size: 12px;
}
.fe-table-wrap {
  overflow: auto;
}
#bwfe-root table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}
#bwfe-root th {
  font-weight: 400;
  color: var(--fe-muted);
  font-size: 11px;
  padding: 12px 10px;
  border-bottom: 1px solid var(--fe-border);
}
#bwfe-root td {
  padding: 18px 10px;
  border-bottom: 1px solid #f0f0f4;
}
.fe-empty {
  text-align: center;
  padding: 64px 24px;
  margin: auto;
  max-width: 680px;
}
.fe-empty p {
  color: var(--fe-muted);
}
.fe-empty-symbol {
  font-size: 34px;
  background: #f1edfc;
  border-radius: 16px;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 0 auto 24px;
  color: var(--fe-purple);
}
.fe-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--fe-border);
  overflow: auto;
  margin-bottom: 20px;
}
#bwfe-root .fe-tabs button {
  border: 0;
  border-radius: 0;
  background: none;
  padding: 14px 0;
  white-space: nowrap;
}
#bwfe-root .fe-tabs .active {
  border-bottom: 2px solid var(--fe-purple);
  color: var(--fe-purple);
}
.fe-editor {
  display: grid;
  grid-template-columns: 210px minmax(320px, 1fr) 320px;
  gap: 0;
  border: 1px solid var(--fe-border);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  align-items: start;
}
.fe-stage-list {
  max-height: 1000px;
  overflow: auto;
  padding: 20px 12px;
}
.fe-stage-list .fe-panel-heading {
  padding: 0 6px;
}
.fe-stage-item {
  margin: 8px 0;
  border: 1px solid transparent;
  border-radius: 8px;
}
.fe-stage-item.selected {
  background: #f3efff;
  border-color: #ddd4fb;
}
#bwfe-root .fe-stage-item > button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  padding: 12px 8px;
  font-size: 12px;
}
.fe-stage-number {
  border: 1px solid #ddd8ed;
  border-radius: 6px;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  background: #fff;
  flex-shrink: 0;
}
.fe-move {
  display: flex;
  justify-content: flex-end;
  gap: 3px;
  padding: 0 7px 5px;
}
#bwfe-root .fe-move button {
  font-size: 12px;
  min-height: 26px;
  padding: 0 6px;
  border: 0;
  background: none;
}
.fe-add-stage {
  width: 100%;
  margin-top: 14px;
  border-style: dashed !important;
}
.fe-canvas {
  background: #f5f5f9;
  min-height: 850px;
  padding: 24px 20px;
  border-left: 1px solid var(--fe-border);
  border-right: 1px solid var(--fe-border);
}
.fe-canvas-label {
  font-size: 10px;
  letter-spacing: 1px;
  color: #626a7b;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.fe-canvas-label span {
  letter-spacing: 0;
}
.fe-canvas .fe-runtime {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 30px #29244808;
  max-width: 520px;
  margin: auto;
  min-height: 650px;
  padding: 0 28px;
}
.fe-static {
  pointer-events: none;
}
.fe-static .fw-card { pointer-events:auto; }
.fe-static .fe-stage {
  animation: none !important;
  opacity: 1;
  transform: none;
}
.fe-inspector {
  padding: 20px;
  max-height: 1000px;
  overflow: auto;
}
.fe-inspector details {
  padding: 16px 0;
  border-bottom: 1px solid var(--fe-border);
}
.fe-inspector summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 16px;
}
.fe-editor-card {
  padding: 16px;
  border: 1px solid var(--fe-border);
  border-radius: 8px;
  margin-bottom: 14px;
  background: #fafafe;
}
.fe-editor-card small {
  overflow-wrap: anywhere;
}
.fe-token {
  display: block;
  font-size: 11px;
  margin: 5px 0;
  overflow-wrap: anywhere;
}
.fe-condition {
  background: #f2f2f7;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 14px;
}
.fe-warning {
  background: #fff7e6;
  border: 1px solid #f0dfb3;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  color: #755616;
}
.fe-warning summary {
  cursor: pointer;
}
.fe-settings {
  max-width: 760px;
  padding: 32px;
}
.fe-settings .fe-field {
  margin-bottom: 24px;
}
.fe-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  padding: 16px 24px;
  border: 1px solid #d4ccf7;
  border-radius: 10px;
  background: #f7f4ff;
  box-shadow: 0 8px 32px #2222;
  z-index: 100100;
}
.fe-toast.error {
  background: #fff2f2;
  border-color: #e9bdc2;
}
.fe-board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 18px;
  overflow: auto;
}
.fe-board > section {
  background: #f0f1f7;
  border-radius: 10px;
  padding: 18px;
  min-height: 380px;
}
.fe-board h3 {
  display: flex;
  justify-content: space-between;
}
.fe-board h3 span {
  font-size: 12px;
  color: var(--fe-muted);
}
#bwfe-root .fe-contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  width: 100%;
  background: white;
  margin: 14px 0;
  padding: 18px;
  overflow-wrap: anywhere;
}
.fe-dialog {
  border: 1px solid var(--fe-border);
  border-radius: 16px;
  padding: 34px;
  width: min(760px, calc(100vw - 32px));
  max-height: 90dvh;
  box-shadow: 0 28px 100px #17122844;
}
.fe-dialog.wide {
  width: min(1320px, calc(100vw - 32px));
}
.fe-dialog::backdrop {
  background: #16132177;
  backdrop-filter: blur(3px);
}
.fe-dialog .fe-close {
  float: right;
  font-size: 22px;
  border: 0;
  line-height: 1;
  margin: -14px -12px 12px 12px;
}
.fe-dialog pre {
  font-size: 11px;
  background: #f4f4f8;
  padding: 16px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 400px;
  overflow: auto;
}
.fe-timeline {
  list-style: none;
  padding: 0;
  border-left: 2px solid #e3ddf4;
  margin-left: 10px;
}
.fe-timeline li {
  padding: 8px 18px;
  font-size: 12px;
}
.fe-timeline time {
  display: block;
  color: var(--fe-muted);
  font-size: 11px;
}
.fe-preview-tools {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.fe-preview-tools h2 {
  width: 100%;
}
.fe-preview-tools select {
  padding: 8px;
  border: 1px solid var(--fe-border);
  border-radius: 6px;
}
.fe-preview-layout {
  background: #f1f1f6;
  padding: 20px;
  border-radius: 10px;
}
.fe-preview-runtime {
  background: white;
  max-width: 900px;
  margin: auto;
}
.fe-preview-runtime.mobile {
  max-width: 390px;
}
.fe-preview-trace {
  margin-top: 20px;
}
.fe-preview-trace summary {
  cursor: pointer;
}
.fe-preview-label {
  background: #f1edff;
  color: #5e4bad;
  padding: 7px 12px;
  font-size: 10px;
  text-align: center;
  border-radius: 6px;
  margin-bottom: 12px;
}
.fe-public {
  margin: 0;
  min-height: 100dvh;
  background: #fff;
}
body:has(> .fe-public),
body:has(> #bwfe-root.fe-public) {
  margin: 0;
}
.fe-runtime {
  max-width: 660px;
  margin: 0 auto;
  padding: 0 32px;
  min-height: 100dvh;
  --fe-purple: #6754d6;
}
.fe-runtime-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  padding: 28px 0 18px;
  gap: 8px;
}
.fe-runtime-header img {
  height: 30px;
  width: 100%;
  min-width: 0;
  max-width: 150px;
  justify-self: center;
  object-fit: contain;
}
.fe-runtime-header > span {
  width: 44px;
}
#bwfe-root .fe-back,
.fe-dialog .fe-back {
  font-size: 32px;
  border: 0;
  background: none;
  width: 44px;
  height: 44px;
  line-height: 1;
  padding: 0;
}
.fe-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 42px;
  flex-wrap: wrap;
}
.fe-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e5e5ed;
  display: inline-block;
}
.fe-dot.complete {
  background: #bcb0ee;
}
.fe-dot.current {
  background: var(--fe-purple);
  box-shadow: 0 0 0 4px #eee9fb;
}
#bwfe-root .fe-stage:focus {
  outline: none;
}
.fe-stage {
  animation: fe-appear 0.22s ease-out;
  padding-bottom: 24px;
}
.fe-runtime .fe-stage h1 {
  font-size: clamp(28px, 3vw, 42px) !important;
  letter-spacing: -1.2px;
  text-align: center;
  line-height: 1.2;
  margin: 0 0 18px !important;
}
.fe-intro {
  text-align: center;
  color: #626b7d;
  line-height: 1.65;
  font-size: 16px;
  margin-bottom: 30px !important;
}
.fe-answer-form {
  margin-top: 30px;
}
.fe-runtime .fe-field {
  font-size: 13px;
  margin-bottom: 20px;
}
.fe-runtime .fe-field input,
.fe-runtime .fe-field textarea,
.fe-runtime .fe-field select {
  font-size: 16px !important;
  min-height: 56px !important;
  border-radius: 11px !important;
  padding: 14px 16px !important;
}
.fe-options {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.fe-option {
  min-height: 64px;
  border: 1px solid #e1e0e9;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  color: #46465c;
  font-size: 16px;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.fe-option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.fe-option i {
  width: 22px;
  height: 22px;
  border: 1.5px solid #d9d7e5;
  border-radius: 50%;
  margin-left: auto;
  flex-shrink: 0;
}
.fe-option:hover {
  border-color: #ec4899;
  box-shadow: 0 0 0 1px #ec4899;
}
.fe-option:has(input:checked) {
  background: #f0fbf5;
  border-color: #219568;
}
.fe-option input:checked ~ i {
  border: 0;
  background: #16865a;
  color: #fff;
  display:grid;
  place-items:center;
  font-style:normal;
  animation:fe-answer-selected .25s ease-out;
}
.fe-option input:checked ~ i::after { content:'✓'; font-weight:700; font-size:15px; }
@keyframes fe-answer-selected { from { transform:scale(.65) rotate(-12deg); } to { transform:scale(1) rotate(0); } }
@media(prefers-reduced-motion:reduce) { .fe-option input:checked ~ i { animation:none; } }
.fe-option:has(input:focus-visible) {
  outline: 3px solid #ad9feb;
  outline-offset: 3px;
}
.fe-runtime-footer {
  margin-top: 34px;
  padding: 12px 0 max(18px, env(safe-area-inset-bottom));
  text-align: center;
}
.fe-runtime .fe-primary {
  width: 100%;
  min-height: 58px !important;
  border-radius: 30px !important;
  font-size: 16px !important;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
.fe-runtime-footer small {
  margin-top: 16px;
  font-size: 10px !important;
  color: #626b7d !important;
}
.fe-timer {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  font-size: 12px;
}
.fe-timer button {
  font-size: 12px !important;
  border: 0 !important;
}
.fe-media {
  display: block;
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  border-radius: 12px;
  margin: 22px auto;
}
.fe-runtime details {
  margin: 12px 0;
  font-size: 13px;
}
.fe-runtime cite {
  display: block;
  font-size: 11px;
  color: var(--fe-muted);
}
.fe-runtime blockquote {
  margin: 24px 0;
  padding: 20px;
  border-left: 3px solid var(--fe-purple);
  background: #f7f4ff;
}
.fe-reward {
  padding: 20px;
  background: #f4f0fd;
  border-radius: 12px;
}
.fe-saved {
  padding: 18px;
  background: #edf7f0;
  border-radius: 12px;
  color: #28683f;
}
.fe-canvas .fe-progress {
  margin-bottom: 28px;
}
.fe-canvas .fe-stage h1 {
  font-size: 29px !important;
}
.fe-canvas .fe-runtime {
  min-height: 620px;
}
.fe-canvas .fe-runtime-header {
  padding-top: 20px;
}
.fe-preview-runtime .fe-runtime {
  min-height: 650px;
  padding: 0 20px;
}
.fe-preview-runtime.mobile .fe-stage h1 {
  font-size: 28px !important;
}
@keyframes fe-appear {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.fe-runtime[data-motion="none"] .fe-stage {
  animation: none;
}
.fe-runtime[data-motion="flip"] .fe-stage {
  animation: fe-flip 0.22s ease-out;
}
@keyframes fe-flip {
  from {
    opacity: 0;
    transform: perspective(900px) rotateY(12deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fe-stage {
    animation: none !important;
  }
  #bwfe-root *,
  .fe-dialog * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 1280px) {
  .fe-editor {
    grid-template-columns: 170px minmax(260px, 1fr) 285px;
  }
  .fe-workspace {
    padding: 0 20px 36px;
  }
  .fe-canvas {
    padding: 20px 12px;
  }
  .fe-canvas .fe-runtime {
    padding: 0 20px;
  }
  .fe-wordmark {
    font-size: 15px;
  }
}
@media (max-width: 1000px) {
  .fe-editor {
    grid-template-columns: 170px minmax(300px, 1fr);
  }
  .fe-inspector {
    grid-column: 1/-1;
    max-height: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .fe-inspector > h2,
  .fe-inspector > .fe-help {
    grid-column: 1/-1;
  }
  .fe-canvas {
    border-right: 0;
  }
  .fe-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .fe-studio-top {
    padding: 16px;
  }
  .fe-wordmark {
    gap: 10px;
  }
  .fe-wordmark img {
    max-width: 90px;
  }
  .fe-wordmark span {
    padding-left: 10px;
    font-size: 12px;
  }
  .fe-studio-top > a {
    font-size: 10px;
  }
  .fe-workspace {
    padding: 0 14px 28px;
  }
  .fe-nav {
    gap: 16px;
    margin-bottom: 24px;
  }
  .fe-nav a,
  .fe-nav button {
    font-size: 12px !important;
  }
  .fe-metric {
    padding: 16px;
  }
  .fe-metric strong {
    font-size: 24px;
  }
  .fe-editor {
    grid-template-columns: 1fr;
  }
  .fe-stage-list {
    display: flex;
    overflow: auto;
    gap: 8px;
    padding: 12px;
    align-items: center;
  }
  .fe-stage-list .fe-panel-heading {
    display: none;
  }
  .fe-stage-item {
    min-width: 150px;
  }
  .fe-add-stage {
    min-width: 100px;
    margin: 0;
  }
  .fe-canvas {
    min-height: 0;
    border: 0;
    padding: 18px;
  }
  .fe-canvas-label span {
    display: none;
  }
  .fe-inspector {
    display: block;
  }
  .fe-panel {
    padding: 18px;
  }
  .fe-settings {
    padding: 20px;
  }
  .fe-runtime {
    padding: 0 20px;
  }
  .fe-runtime-header {
    padding-top: 16px;
  }
  .fe-progress {
    margin-bottom: 32px;
  }
  .fe-stage h1 {
    letter-spacing: -0.8px !important;
  }
  .fe-dialog {
    padding: 22px;
  }
  .fe-preview-layout {
    padding: 0;
  }
  .fe-preview-runtime.mobile {
    max-width: 100%;
  }
  .fe-tabs {
    gap: 20px;
  }
  .fe-toast {
    right: 14px;
    left: 14px;
    bottom: 14px;
  }
  .fe-runtime-footer {
    margin-top: 26px;
  }
}
@media (max-width: 360px) {
  .fe-runtime .fe-stage h1 {
    font-size: 27px !important;
  }
  .fe-option {
    padding: 14px;
  }
  .fe-runtime-header img {
    max-width: 126px;
  }
}
#bwfe-root button.fe-dot,
.fe-dialog button.fe-dot {
  border: 0;
  border-radius: 50%;
  min-height: 7px;
  width: 7px;
  height: 7px;
  padding: 0;
  background: #e5e5ed;
  opacity: 1;
  position: relative;
}
#bwfe-root button.fe-dot:before,
.fe-dialog button.fe-dot:before {
  content: "";
  position: absolute;
  inset: -12px;
}
#bwfe-root button.fe-dot.current,
.fe-dialog button.fe-dot.current {
  background: var(--fe-purple);
}
#bwfe-root button.fe-dot.complete,
.fe-dialog button.fe-dot.complete {
  background: #bcb0ee;
}
.fe-progress {
  gap: 18px;
  min-height: 24px;
  align-items: center;
}
.fe-filters {
  display: flex;
  gap: 16px;
  align-items: end;
  flex-wrap: wrap;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--fe-border);
  border-radius: 10px;
}
.fe-filters label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--fe-muted);
  font-size: 11px;
}
.fe-filters input,
.fe-filters select {
  border: 1px solid var(--fe-border);
  border-radius: 6px;
  min-height: 40px;
  padding: 8px;
  max-width: 180px;
}
#bwfe-root button.fe-dot,
.fe-dialog button.fe-dot {
  width: 44px;
  height: 44px;
  min-height: 44px;
  background: none !important;
  box-shadow: none !important;
}
#bwfe-root button.fe-dot:after,
.fe-dialog button.fe-dot:after {
  content: "";
  position: absolute;
  top: 18px;
  left: 18px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e5e5ed;
}
#bwfe-root button.fe-dot.current:after,
.fe-dialog button.fe-dot.current:after {
  background: var(--fe-purple);
  box-shadow: 0 0 0 4px #eee9fb;
}
#bwfe-root button.fe-dot.complete:after,
.fe-dialog button.fe-dot.complete:after {
  background: #bcb0ee;
}
#bwfe-root button.fe-dot:before,
.fe-dialog button.fe-dot:before {
  inset: 0;
}
.fe-progress {
  gap: 0;
  margin-top: 0;
  margin-bottom: 26px;
}
.fe-runtime {
  max-width: 624px;
}
/* Workspace configuration and reusable content. */
.bwfe-admin .fe-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.bwfe-admin .fe-setting-toggle {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--fe-border, #e6e4ef);
}
.bwfe-admin .fe-setting-toggle input {
  margin-top: 3px;
  flex: none;
}
.bwfe-admin .fe-setting-toggle span {
  display: grid;
  gap: 6px;
}
.bwfe-admin .fe-setting-toggle small {
  color: #66627a;
  line-height: 1.5;
}
.bwfe-admin .fe-connection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px;
}
.bwfe-admin .fe-connection-grid > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  padding: 16px;
  background: #f8f7fc;
  border-radius: 12px;
}
.bwfe-admin .fe-section-intro {
  max-width: 780px;
  margin: 24px 0 32px;
}
.bwfe-admin .fe-section-intro h2 {
  font-size: 28px;
  line-height: 1.3;
}
.bwfe-admin .fe-section-intro p {
  line-height: 1.7;
}
.bwfe-admin .fe-token-grid,
.fe-library {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.bwfe-admin .fe-token-grid > div {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid #e6e4ef;
  border-radius: 10px;
  overflow-wrap: anywhere;
}
.bwfe-admin .fe-token-grid small {
  color: #686179;
}
.bwfe-admin .fe-token-grid p {
  margin: 0;
  font-size: 13px;
}
.bwfe-admin .fe-library-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid #e6e4ef;
  gap: 16px;
}
.bwfe-admin .fe-library-row small {
  display: block;
  margin-top: 5px;
  color: #686179;
}
@media (max-width: 1000px) {
  .bwfe-admin .fe-settings-grid {
    grid-template-columns: 1fr;
  }
}
.fe-option img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
}
.fe-stage input[type="range"] {
  padding: 0;
  accent-color: var(--fe-purple);
}
.fe-stage output {
  font-size: 24px;
  font-weight: 600;
  text-align: center;
}
.fe-primary:link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.bwfe-admin .fe-reveal-item {
  width: 100%;
  text-align: left;
  padding: 8px 12px 8px 28px;
  font-size: 12px;
  line-height: 1.5;
  background: transparent;
  border: 0;
  color: #6c6286;
}
/* Personalized package: exclusions first, plan second, one clear checkout owner. */
.bwfe-admin .fe-package-rule {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 24px;
  margin: 20px 0;
  border: 1px solid #e6e4ef;
  border-radius: 12px;
  background: #faf9fd;
}
#bwfe-root .fe-package-shell {
  max-width: 1260px;
  margin: 0 auto;
  padding: 32px 40px;
  color: #252337;
}
#bwfe-root .fe-package-header {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e9e7ef;
}
#bwfe-root .fe-package-header button {
  margin-left: auto;
}
#bwfe-root .fe-package-logo {
  width: 150px;
  height: auto;
}
#bwfe-root .fe-package-hero {
  padding: 72px 0 44px;
  max-width: 780px;
}
#bwfe-root .fe-package-hero h1 {
  font-size: clamp(36px, 4.5vw, 58px);
  line-height: 1.08;
  letter-spacing: -2px;
  margin: 16px 0 24px;
}
#bwfe-root .fe-package-hero > p:not(.fe-eyebrow) {
  font-size: 19px;
  line-height: 1.6;
  color: #696478;
}
#bwfe-root .fe-package-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 36px;
  align-items: start;
}
#bwfe-root .fe-package-section {
  margin-bottom: 52px;
}
#bwfe-root .fe-package-section h2 {
  font-size: 28px;
  letter-spacing: -0.7px;
  margin: 14px 0;
}
#bwfe-root .fe-package-section > p:not(.fe-eyebrow) {
  line-height: 1.6;
  color: #696478;
  max-width: 620px;
}
#bwfe-root .fe-plan-grid {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}
#bwfe-root .fe-plan-card {
  border: 1px solid #e3e0ec;
  border-radius: 18px;
  padding: 26px;
  background: #fff;
  box-shadow: 0 5px 24px #28233c04;
}
#bwfe-root .fe-plan-card.selected {
  border-color: #8771df;
  box-shadow: 0 0 0 1px #8771df;
}
#bwfe-root .fe-plan-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
#bwfe-root .fe-plan-card h3 {
  font-size: 22px;
  margin: 8px 0;
}
#bwfe-root .fe-plan-price {
  font-size: 22px;
  font-weight: 600;
  white-space: nowrap;
}
#bwfe-root .fe-plan-price small {
  display: block;
  color: #777085;
  font-size: 12px;
  text-align: right;
  font-weight: 400;
}
#bwfe-root .fe-plan-reason {
  font-size: 14px;
  line-height: 1.6;
  padding: 12px 14px;
  border-radius: 9px;
  background: #f5f2fc;
  color: #574580;
}
#bwfe-root .fe-plan-card ul {
  display: grid;
  gap: 10px;
  margin: 20px 0;
  padding-left: 20px;
  color: #696478;
  font-size: 14px;
  line-height: 1.5;
}
#bwfe-root .fe-package-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #efecf4;
  padding-top: 18px;
  font-weight: 600;
  cursor: pointer;
}
#bwfe-root .fe-package-choice input {
  width: 20px;
  height: 20px;
  accent-color: #6754d6;
}
#bwfe-root .fe-package-summary {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 20px;
}
#bwfe-root .fe-plan-total {
  background: #252135;
  color: white;
  padding: 28px;
  border-radius: 18px;
}
#bwfe-root .fe-plan-total .fe-eyebrow {
  color: #c1b7df;
}
#bwfe-root .fe-plan-total h2 {
  font-size: 26px;
  margin: 16px 0 22px;
  color: white;
}
#bwfe-root .fe-summary-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid #ffffff20;
  font-size: 13px;
}
#bwfe-root .fe-summary-price {
  margin: 26px 0;
  font-size: 36px;
  letter-spacing: -1px;
}
#bwfe-root .fe-summary-price small {
  display: block;
  font-size: 13px;
  color: #c1b7df;
  letter-spacing: 0;
  margin-top: 4px;
}
#bwfe-root .fe-plan-total .fe-primary {
  width: 100%;
  box-sizing: border-box;
  padding: 15px 12px;
  font-size: 14px;
}
#bwfe-root .fe-plan-total .fe-help {
  color: #cbc4dd;
  line-height: 1.6;
}
#bwfe-root .fe-plan-total > button {
  color: #e4dff2;
  background: transparent;
  border-color: #ffffff30;
  font-size: 12px;
}
#bwfe-root .fe-agent-card {
  padding: 26px;
  background: #f5f2fc;
  border-radius: 18px;
}
#bwfe-root .fe-agent-card h2 {
  font-size: 22px;
  line-height: 1.2;
}
#bwfe-root .fe-agent-card p {
  color: #696478;
  font-size: 14px;
  line-height: 1.6;
}
#bwfe-root .fe-agent-icon {
  display: inline-grid;
  place-content: center;
  color: #7055be;
  background: #e8defb;
  border-radius: 50%;
  width: 42px;
  height: 42px;
  font-size: 22px;
}
#bwfe-root .fe-agent-card iframe {
  border: 0;
  border-radius: 12px;
  width: 100%;
  height: 420px;
  margin-top: 20px;
}
#bwfe-root .fe-package-notice:not(:empty) {
  padding: 16px 20px;
  margin-bottom: 24px;
  background: #f1edf9;
  border-radius: 12px;
  line-height: 1.6;
}
#bwfe-root .fe-package-footer {
  margin-top: 60px;
  padding: 28px 0;
  border-top: 1px solid #e9e7ef;
  color: #777085;
  font-size: 13px;
}
#bwfe-root .fe-mobile-package {
  display: none;
}
@media (max-width: 900px) {
  #bwfe-root .fe-package-layout {
    grid-template-columns: 1fr;
  }
  #bwfe-root .fe-package-summary {
    position: static;
  }
  #bwfe-root .fe-package-shell {
    padding: 24px;
  }
  #bwfe-root .fe-package-header .fe-pill {
    display: none;
  }
  .bwfe-admin .fe-package-rule {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  #bwfe-root .fe-package-shell {
    padding: 24px 18px;
  }
  #bwfe-root .fe-package-header {
    gap: 14px;
  }
  #bwfe-root .fe-package-logo {
    width: 125px;
  }
  #bwfe-root .fe-package-header button {
    font-size: 12px;
    padding: 9px;
  }
  #bwfe-root .fe-package-hero {
    padding: 40px 0 24px;
  }
  #bwfe-root .fe-package-hero h1 {
    letter-spacing: -1.3px;
  }
  #bwfe-root .fe-mobile-package {
    display: block;
    background: #f5f2fc;
    padding: 22px;
    border-radius: 16px;
    margin: 26px 0 8px;
  }
  #bwfe-root .fe-mobile-package p {
    font-size: 14px;
    line-height: 1.6;
    color: #696478;
  }
  #bwfe-root .fe-mobile-package button {
    width: 100%;
  }
  #bwfe-root .fe-plan-card {
    padding: 20px;
  }
  #bwfe-root .fe-plan-card h3 {
    font-size: 20px;
  }
  #bwfe-root .fe-plan-price {
    font-size: 19px;
  }
}

#bwfe-root .fe-package-shell a.fe-primary {
  border-radius: 10px;
}
#bwfe-root .fe-trend-chart {
  display: flex;
  gap: 5px;
  height: 190px;
  align-items: flex-end;
  overflow-x: auto;
  padding: 12px 0;
}
#bwfe-root .fe-trend-day {
  flex: 1;
  min-width: 26px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
#bwfe-root .fe-trend-bars {
  height: 150px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
}
#bwfe-root .fe-trend-bars i,
#bwfe-root .fe-trend-bars b {
  display: block;
  flex: 1;
  min-height: 2px;
  background: #e4def8;
  border-radius: 4px 4px 0 0;
}
#bwfe-root .fe-trend-bars b {
  background: #6754d6;
}
#bwfe-root .fe-trend-day small {
  font-size: 9px;
  text-align: center;
  margin-top: 6px;
}
#bwfe-root .fe-health-list {
  display: grid;
  gap: 10px;
}
#bwfe-root .fe-trend-day {
  max-width: 52px;
}
#bwfe-root .fe-filters select {
  min-width: 115px;
  padding-right: 28px;
}
#bwfe-root .fe-filters label:has(select[name="version"]) {
  min-width: 185px;
}
.fe-dialog table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.fe-dialog th,
.fe-dialog td {
  padding: 14px 16px;
  border-bottom: 1px solid #e7e8ee;
  font-size: 13px;
}
.fe-facts {
  margin: 18px 0;
}
.fe-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 11px 0;
  border-bottom: 1px solid #e7e8ee;
}
.fe-facts dt {
  color: #687184;
}
.fe-facts dd {
  margin: 0;
  font-weight: 600;
}
.fe-experiment .fe-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fe-experiment .fe-settings-grid {
  margin: 24px 0;
}
.fe-exp-rate {
  font-size: 42px;
  font-weight: 650;
  letter-spacing: -1.4px;
  line-height: 1.2;
  margin-top: 14px;
}
.fe-rate-track {
  height: 7px;
  background: #efecfc;
  border-radius: 9px;
  overflow: hidden;
}
.fe-rate-track i {
  display: block;
  height: 100%;
  background: #7255e8;
}
.fe-callout {
  border-left: 3px solid #7255e8;
  padding: 14px 18px;
  background: #f6f3ff;
  border-radius: 4px 10px 10px 4px;
}
.fe-dialog .fe-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
}
.fe-experiment .fe-facts {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px 18px;
}
.fe-experiment .fe-facts dt,
.fe-experiment .fe-facts dd {
  margin: 0;
  padding: 0;
}
@media (max-width: 760px) {
  .fe-dialog .fe-settings-grid {
    grid-template-columns: 1fr;
  }
}
.fe-contact-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: #eee8fc;
  color: #6550bd;
  font-weight: 700;
  border-radius: 14px;
  font-size: 19px;
  flex: none;
}
.fe-contact-card .fe-contact-avatar {
  margin-bottom: 10px;
}
.fe-contact-card dl {
  width: 100%;
  margin: 12px 0 0;
  border-top: 1px solid #e7e8ef;
  padding-top: 10px;
}
.fe-contact-card dl div {
  margin: 9px 0;
}
.fe-contact-card dt {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #757184;
}
.fe-contact-card dd {
  margin: 3px 0 0;
  color: #363346;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 400;
}
.fe-contact-heading {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 0 28px 24px 0;
}
.fe-contact-heading h2 {
  margin: 3px 0;
}
.fe-contact-heading p {
  margin: 5px 0;
}
.fe-contact-heading .fe-pill {
  margin-left: auto;
}
.fe-contact-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 14px;
  border-bottom: 1px solid #e7e8ef;
}
.fe-contact-tabs button {
  white-space: nowrap;
  border: none;
  background: transparent;
}
.fe-contact-tabs button[aria-pressed="true"] {
  color: #6346ce;
  background: #f1edfc;
}
.fe-contact-body {
  padding-top: 24px;
}
.fe-contact-body small {
  display: block;
  color: #737085;
  margin-top: 5px;
}
.fe-contact-body .fe-facts dd {
  max-width: 65%;
  text-align: right;
  overflow-wrap: anywhere;
  font-weight: 500;
}
.fe-contact-body .fe-timeline li {
  padding: 12px 0 18px 18px;
}
.fe-contact-body .fe-timeline li > div {
  display: flex;
  gap: 20px;
  justify-content: space-between;
}
.fe-contact-body .fe-settings-grid {
  align-items: start;
}
.fe-dialog .fe-setting-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}
.fe-contact-body blockquote {
  margin: 12px 0;
  padding-left: 15px;
  border-left: 3px solid #ddd4f5;
}
.fe-dialog .fe-contact-tabs button {
  transition: none;
}
.fe-dialog .fe-contact-tabs button[aria-pressed="true"] {
  background: #f1edfc;
  color: #6346ce;
}
.fe-recovery {
  min-height: 100svh;
  box-sizing: border-box;
  max-width: 680px;
  margin: 0 auto;
  padding: 64px 30px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.fe-recovery-logo {
  width: 170px;
  height: auto;
  margin: 0 0 40px;
}
.fe-recovery h1 {
  font-size: clamp(32px, 6vw, 48px);
  line-height: 1.12;
  letter-spacing: -1.5px;
  margin: 14px 0;
  color: #222130;
}
.fe-recovery p:not(.fe-eyebrow) {
  line-height: 1.65;
  color: #6d6980;
  max-width: 500px;
}
.fe-recovery .fe-primary {
  margin-top: 22px;
  min-width: 280px;
  min-height: 56px;
  border-radius: 40px !important;
}
.fe-recovery-symbol {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: #f1ebff;
  color: #7155d9;
  font-size: 32px;
  margin-bottom: 25px;
}
#bwfe-root .fe-recovery h1 {
  font-size: clamp(32px, 6vw, 48px);
  line-height: 1.12;
}
#bwfe-root .fe-recovery .fe-primary {
  min-height: 56px;
}
.fe-recovery-entry {
  max-width: 660px;
  margin: 0 auto;
  padding-top: 8vh;
}
.fe-recovery-entry button {
  margin: 6px;
}

.fe-version-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--fe-border, #e6e6ee);
}
.fe-version-row p {
  margin: 8px 0;
}
.fe-diff {
  table-layout: fixed;
  width: 100%;
}
.fe-diff th:first-child {
  width: 26%;
  overflow-wrap: anywhere;
}
.fe-diff pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 220px;
  overflow: auto;
  font: 12px/1.6 monospace;
  margin: 0;
}
.fe-conflict {
  margin: 20px 0;
  padding: 20px;
  border: 1px solid #dddce8;
  border-radius: 12px;
  min-width: 0;
}
.fe-conflict legend {
  font-weight: 700;
  overflow-wrap: anywhere;
}
.fe-conflict > label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 12px 20px 0 0;
}
@media (max-width: 760px) {
  .fe-version-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .fe-conflict {
    padding: 12px;
  }
}
#bwfe-root .fe-button-row,
.fe-dialog .fe-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.fe-dialog form > .fe-button-row {
  margin-top: 20px;
}
#bwfe-root .fe-contact-tabs button[aria-pressed="true"] {
  background: #eeeafd;
  color: #4939b5;
  border-color: #cfc5f6;
}
#bwfe-root .fe-recovery-entry a.fe-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  border-radius: 999px;
  min-height: 52px;
  margin-top: 16px;
  text-decoration: none;
  color: white;
  font-weight: 600;
}
#bwfe-root .fe-field select,
.fe-dialog .fe-field select,
.fe-dialog .fe-preview-tools select {
  appearance: none;
  padding-right: 36px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23635e79' stroke-width='1.7'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 12px center !important;
}
.fe-preview-layout:has(.fe-preview-trace[open]) {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
  gap: 24px;
  align-items: start;
}
.fe-preview-trace[open] {
  background: white;
  padding: 20px;
  margin-top: 0;
  border-radius: 12px;
  max-height: 76vh;
  overflow: auto;
}
.fe-preview-trace .fe-facts div {
  display: block;
}
.fe-preview-trace .fe-facts dd {
  margin: 6px 0 0;
}
.fe-preview-runtime {
  width: 100%;
}
@media (max-width: 900px) {
  .fe-preview-layout:has(.fe-preview-trace[open]) {
    display: block;
  }
  .fe-preview-trace[open] {
    margin-top: 20px;
  }
}
.fe-reward-card {
  padding: 24px;
  border: 1px solid #d9d0f4;
  border-radius: 16px;
  background: #f7f4ff;
  margin: 24px 0;
  text-align: left;
}
.fe-reward-card p {
  margin: 12px 0;
  line-height: 1.6;
}
.fe-reward-card a {
  display: inline-block;
  margin: 10px;
}
.fe-reward-card [data-reward-status]:empty {
  display: none;
}
#bwfe-root .fe-reward-card button[data-reward]:disabled,
.fe-dialog .fe-reward-card button[data-reward]:disabled {
  color: #4a3b82;
  background: #e8e2f8;
  opacity: 1;
  border-color: #d6cdef;
}
.fe-reward-card [data-reward-status] button {
  margin: 12px 0;
}
.fe-reward-card [data-recovery-status] {
  display: block;
}
.fe-template-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 24px;
  margin: 26px 0;
}
.fe-template-card {
  padding: 28px;
  border: 1px solid #dedbe9;
  border-radius: 18px;
  background: #faf9ff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.fe-template-card h3 {
  font-size: 23px;
  margin: 22px 0 10px;
}
.fe-template-card p,
.fe-template-card li {
  line-height: 1.7;
}
.fe-template-card ul {
  padding-left: 20px;
  margin: 10px 0 25px;
}
.fe-template-card button {
  margin-top: auto;
}
@media (max-width: 760px) {
  .fe-template-grid {
    grid-template-columns: 1fr;
  }
}

.fe-automation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.fe-message-settings {
  max-width: none !important;
}
.fe-message-template {
  border-top: 1px solid #e7e3f0;
  padding: 19px 0;
}
.fe-message-template summary {
  font-weight: 650;
  cursor: pointer;
}
.fe-message-template summary small {
  display: block;
  margin: 6px 0 0 16px;
  color: #6c637e;
  font-weight: 400;
}
.fe-message-preview-controls {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 18px;
  align-items: end;
}
.fe-message-preview-controls .fe-field {
  margin: 0;
}
.fe-email-preview {
  background: white;
  border: 1px solid #e6e1ed;
  border-radius: 14px;
  padding: 30px;
  margin: 24px 0;
}
.fe-message-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.7;
}
@media (max-width: 900px) {
  .fe-automation-grid,
  .fe-message-preview-controls {
    grid-template-columns: 1fr;
  }
}

#bwfe-root .fe-operation-counts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0;
}
#bwfe-root .fe-operation-counts button {
  display: grid;
  gap: 8px;
  text-align: left;
  padding: 18px;
  border: 1px solid var(--fe-border);
  border-radius: 14px;
  background: #f9f8ff;
  font-size: 12px;
}
#bwfe-root .fe-operation-counts strong {
  font-size: 26px;
  color: #242331;
}
#bwfe-root .fe-operation-counts [aria-pressed="true"] {
  border-color: #6650dc;
  box-shadow: 0 0 0 1px #6650dc;
}
.fe-dialog .fe-operation-facts {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 12px;
  padding: 20px;
  background: #f9f8ff;
  border-radius: 14px;
}
.fe-dialog .fe-operation-facts dd {
  margin: 0;
  font-weight: 600;
}
.fe-dialog .fe-operation-result {
  color: #684721;
}
@media (max-width: 900px) {
  #bwfe-root .fe-operation-counts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Keep the working canvas above the fold, with readable stage names. */
#bwfe-root:has(.fe-editor) .fe-studio-top { padding:12px 24px; }
#bwfe-root:has(.fe-editor) .fe-nav { margin-bottom:12px; padding:6px 0; }
#bwfe-root:has(.fe-editor) .fe-page-heading { margin-bottom:8px; }
#bwfe-root:has(.fe-editor) .fe-page-heading .fe-eyebrow,
#bwfe-root:has(.fe-editor) .fe-page-heading p { display:none; }
#bwfe-root:has(.fe-editor) .fe-page-heading h1 { font-size:24px; margin:8px 0; }
#bwfe-root:has(.fe-editor) .fe-toolbar { margin:8px 0; }
#bwfe-root:has(.fe-editor) .fe-tabs { margin-bottom:12px; }
#bwfe-root .fe-editor { grid-template-columns:260px minmax(320px,1fr) 300px; }
#bwfe-root .fe-stage-list,#bwfe-root .fe-inspector { max-height:calc(100vh - 270px); min-height:440px; }
#bwfe-root .fe-canvas { padding:16px; }
#bwfe-root .fe-canvas-label { align-items:center; margin-bottom:12px; }
#bwfe-root .fe-canvas-label button { font-size:12px; padding:7px 12px; }
#bwfe-root .fe-reveal-item { font-size:12px; line-height:1.5; }
#bwfe-root .fe-stage-list { padding:12px; }
#bwfe-root .fe-static .fw-card :is(button,summary,.fw-diagram) { pointer-events:auto; }
@media(max-width:1100px) {
  #bwfe-root .fe-editor { grid-template-columns:230px minmax(300px,1fr); }
  #bwfe-root .fe-inspector { grid-column:1/-1; max-height:none; min-height:0; border-top:1px solid var(--fe-border); }
}
@media(max-width:700px) { #bwfe-root .fe-editor { grid-template-columns:1fr; } #bwfe-root .fe-stage-list { max-height:240px; min-height:0; } }

/* Signup lifecycle and private plan summary. */
#bwfe-root .fe-signups-menu { display:flex; align-items:center; gap:8px; font-size:14px; }
#bwfe-root .fe-signups-menu select { width:auto; min-height:36px; padding:6px 32px 6px 10px; border:1px solid var(--fe-border); border-radius:8px; font:inherit; }
#bwfe-root .fe-contact-plan-compact { display:grid; gap:5px; min-width:200px; }
.fe-contact-plan { display:grid; grid-template-columns:minmax(0,2fr) minmax(180px,1fr); gap:28px; padding:24px; margin:0 0 24px; background:#f7f6fc; border:1px solid #e3deef; border-radius:16px; }
.fe-contact-plan strong,.fe-contact-plan small { display:block; margin-bottom:7px; }
.fe-contact-plan .button { display:inline-block; padding:10px 16px; }
@media(max-width:700px) { .fe-contact-plan {grid-template-columns:1fr;} #bwfe-root .fe-signups-menu {flex-wrap:wrap;} }

@media(max-width:767px){
#bwfe-root .fe-runtime[data-face="reveal"]{padding-bottom:110px;transform:none;filter:none}
#bwfe-root .fe-runtime[data-face="reveal"] .fe-stage{transform:none;animation:none}
#bwfe-root .fe-runtime[data-face="reveal"] .fe-runtime-footer{position:fixed;bottom:0;left:0;right:0;z-index:40;margin:0;max-width:none;padding:12px 20px max(16px,env(safe-area-inset-bottom));background:rgba(255,255,255,.97);border-top:1px solid #ece7f4;box-shadow:0 -8px 24px #29213a08}
#bwfe-root .fe-runtime[data-face="reveal"] .fe-runtime-footer>.fe-primary{max-width:600px;margin:auto}
}

#bwfe-root .fd-watch{text-align:center;margin:28px 0}#bwfe-root .fd-watch button{background:#f6f3fb;color:#302640;border:1px solid #d9cee9;border-radius:12px;padding:15px 22px;font:inherit;font-weight:600}#bwfe-root .fd-watch button:hover{border-color:#d829b5;background:#eee8f8}#bwfe-root .fd-watch span{font-weight:400}.fd-video-dialog{width:min(920px,calc(100vw - 32px));max-width:none;padding:24px;border:0;border-radius:20px;color:#282234;box-sizing:border-box}.fd-video-dialog::backdrop{background:rgba(25,17,43,.72)}.fd-video-dialog h2{margin:0 40px 20px 0;font:600 24px/1.3 Arial,sans-serif}.fd-video-dialog iframe{width:100%;aspect-ratio:16/9;border:0}.fd-video-close{position:absolute;right:20px;top:14px;width:40px;height:40px;background:#f3eff8;border:0;border-radius:50%;font:28px Arial;color:#302640}
