/*
  BBA Interactive Framework
  Phase 1 shared CSS.

  Scope:
  - Reusable launcher component.
  - Reusable modal application shell.
  - Placeholder renderer styles.
  - WordPress-friendly class names.
  - No tool-specific visual rules.
*/

:root {
  --bba-ifw-blue: #2477a8;
  --bba-ifw-blue-dark: #185a82;
  --bba-ifw-blue-soft: #e7f4fb;
  --bba-ifw-text: #1d2f3d;
  --bba-ifw-muted: #667784;
  --bba-ifw-border: #d7e3ec;
  --bba-ifw-surface: #ffffff;
  --bba-ifw-soft: #f5faff;
  --bba-ifw-focus: #2f7dd1;
  --bba-ifw-shadow: 0 1.25rem 3rem rgba(24, 90, 130, 0.18);
}

.bba-interactive-launcher,
.bba-interactive-launcher *,
.bba-interactive-modal,
.bba-interactive-modal *,
.bba-interactive-standalone,
.bba-interactive-standalone * {
  box-sizing: border-box;
}

.bba-interactive-launcher {
  max-width: 680px;
  margin: 1.5rem auto;
  padding: 1.25rem;
  border: 1px solid var(--bba-ifw-border);
  border-radius: 12px;
  background: var(--bba-ifw-surface);
  color: var(--bba-ifw-text);
  box-shadow: 0 0.85rem 2rem rgba(24, 90, 130, 0.1);
}

.bba-launcher-kicker,
.bba-launcher-title,
.bba-launcher-copy {
  margin-top: 0;
}

.bba-launcher-kicker {
  margin-bottom: 0.4rem;
  color: var(--bba-ifw-muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bba-launcher-title {
  margin-bottom: 0.55rem;
  color: var(--bba-ifw-text);
  font-size: 1.45rem;
  font-weight: 850;
  line-height: 1.16;
}

.bba-launcher-copy {
  margin-bottom: 1rem;
  color: var(--bba-ifw-muted);
  font-size: 1rem;
  line-height: 1.45;
}

.bba-launcher-button,
.bba-interactive-close,
.bba-interactive-primary-action,
.bba-interactive-secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  border-radius: 10px;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.bba-launcher-button,
.bba-interactive-primary-action {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--bba-ifw-blue);
  background: var(--bba-ifw-blue);
  color: #ffffff;
  box-shadow: 0 0.45rem 1rem rgba(36, 119, 168, 0.18);
}

.bba-launcher-button:hover,
.bba-interactive-primary-action:hover {
  border-color: var(--bba-ifw-blue-dark);
  background: var(--bba-ifw-blue-dark);
  color: #ffffff;
  transform: translateY(-1px);
}

.bba-interactive-primary-action:disabled,
.bba-interactive-secondary-action:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
  box-shadow: none;
}

.bba-launcher-button:focus-visible,
.bba-interactive-close:focus-visible,
.bba-interactive-primary-action:focus-visible,
.bba-interactive-secondary-action:focus-visible {
  outline: 3px solid var(--bba-ifw-focus);
  outline-offset: 3px;
}

.bba-interactive-scroll-lock {
  overflow: hidden !important;
}

.bba-interactive-modal[hidden] {
  display: none !important;
}

/* Author display rules must never override the runtime's question/result state. */
.bba-quiz [data-bba-question-container][hidden],
.bba-quiz [data-bba-result-container][hidden] {
  display: none !important;
}

.bba-interactive-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  min-height: 100vh;
  padding: 0;
  background: rgba(10, 28, 40, 0.58);
  color: var(--bba-ifw-text);
}

.bba-interactive-dialog {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  width: 100%;
  min-height: 100vh;
  max-height: 100vh;
  margin: 0;
  overflow: hidden;
  background: var(--bba-ifw-surface);
}

.bba-interactive-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  border-bottom: 1px solid var(--bba-ifw-border);
  background: var(--bba-ifw-surface);
}

.bba-interactive-eyebrow,
.bba-interactive-title,
.bba-interactive-attribution,
.bba-interactive-intro,
.bba-interactive-time {
  margin-top: 0;
}

.bba-interactive-brand-logo {
  display: inline-flex;
  width: min(100%, 220px);
  margin: 0 0 0.85rem;
}

.bba-interactive-brand-logo img {
  display: block;
  width: 100%;
  height: auto;
}

.bba-interactive-brand-logo:focus-visible {
  outline: 3px solid var(--bba-ifw-focus);
  outline-offset: 4px;
  border-radius: 4px;
}

.bba-interactive-eyebrow {
  margin-bottom: 0.35rem;
  color: var(--bba-ifw-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bba-interactive-title {
  margin-bottom: 0.45rem;
  color: var(--bba-ifw-text);
  font-size: 1.55rem;
  font-weight: 850;
  line-height: 1.12;
}

.bba-interactive-attribution {
  margin-bottom: 0.55rem;
  color: var(--bba-ifw-muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.bba-interactive-intro {
  margin-bottom: 0;
  color: var(--bba-ifw-muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.bba-interactive-time {
  margin: 0.65rem 0 0;
  color: var(--bba-ifw-blue-dark);
  font-size: 0.85rem;
  font-weight: 750;
}

.bba-interactive-close {
  width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  border: 1px solid var(--bba-ifw-border);
  background: #ffffff;
  color: var(--bba-ifw-text);
  font-size: 1.35rem;
  box-shadow: none;
}

.bba-interactive-close:hover {
  border-color: var(--bba-ifw-blue);
  background: var(--bba-ifw-blue-soft);
  color: var(--bba-ifw-blue-dark);
}

.bba-interactive-close-label {
  display: none;
}

.bba-interactive-body {
  min-height: 0;
  overflow-y: auto;
  padding: 1rem;
  background: linear-gradient(180deg, #ffffff 0%, var(--bba-ifw-soft) 100%);
}

.bba-interactive-shell {
  max-width: 680px;
  margin: 0 auto;
}

.bba-interactive-placeholder {
  padding: 1.25rem;
  border: 1px solid var(--bba-ifw-border);
  border-radius: 12px;
  background: var(--bba-ifw-surface);
  box-shadow: 0 0.8rem 2rem rgba(24, 90, 130, 0.08);
}

.bba-interactive-placeholder h3 {
  margin: 0 0 0.75rem;
  color: var(--bba-ifw-text);
  font-size: 1.35rem;
  line-height: 1.2;
}

.bba-interactive-placeholder p {
  margin: 0 0 1rem;
  color: var(--bba-ifw-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.bba-interactive-placeholder p:last-child {
  margin-bottom: 0;
}

.bba-quiz {
  display: block;
}

.bba-quiz-progress {
  margin-bottom: 1.5rem;
  padding: 1.1rem;
  border: 1px solid var(--bba-ifw-border);
  border-radius: 10px;
  background: var(--bba-ifw-soft);
}

.bba-quiz-progress h3,
.bba-question-step {
  margin: 0 0 0.75rem;
  color: var(--bba-ifw-blue-dark);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bba-quiz-progress p {
  margin: 0 0 0.75rem;
  color: var(--bba-ifw-muted);
  font-weight: 700;
}

.bba-quiz-progress progress {
  display: block;
  width: 100%;
  height: 0.9rem;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #dcebf5;
  color: var(--bba-ifw-blue);
}

.bba-quiz-progress progress::-webkit-progress-bar {
  border-radius: 999px;
  background: #dcebf5;
}

.bba-quiz-progress progress::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--bba-ifw-blue), #65add4);
}

.bba-quiz-progress progress::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--bba-ifw-blue), #65add4);
}

.bba-question {
  margin-bottom: 1.5rem;
  padding: 1.35rem;
  border: 1px solid var(--bba-ifw-border);
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
}

.bba-question fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.bba-question legend {
  width: 100%;
  margin-bottom: 1.25rem;
  padding: 0;
  color: var(--bba-ifw-text);
  font-size: 1.35rem;
  font-weight: 850;
  line-height: 1.25;
}

.bba-question-help {
  margin: -0.65rem 0 1.15rem;
  color: var(--bba-ifw-muted);
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.45;
}

.bba-question p {
  margin: 0 0 0.9rem;
}

.bba-question p:last-child {
  margin-bottom: 0;
}

.bba-question input[type="radio"],
.bba-question input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.bba-question label {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--bba-ifw-border);
  border-radius: 10px;
  background: var(--bba-ifw-soft);
  color: var(--bba-ifw-text);
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.35;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.bba-question label::before {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 1.45rem;
  width: 1.45rem;
  height: 1.45rem;
  border: 2px solid var(--bba-ifw-border);
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 850;
  line-height: 1;
  content: "";
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.bba-question label:hover {
  border-color: var(--bba-ifw-blue);
  background: #eef8ff;
  transform: translateY(-1px);
}

.bba-question input[type="radio"]:checked + label,
.bba-question input[type="checkbox"]:checked + label {
  border-color: var(--bba-ifw-blue);
  background: var(--bba-ifw-blue);
  color: #ffffff;
  box-shadow: 0 0.55rem 1.15rem rgba(36, 119, 168, 0.22);
}

.bba-question input[type="radio"]:checked + label::before,
.bba-question input[type="checkbox"]:checked + label::before {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--bba-ifw-blue);
  content: "✓";
}

.bba-question input[type="radio"]:focus-visible + label,
.bba-question input[type="checkbox"]:focus-visible + label {
  outline: 3px solid var(--bba-ifw-focus);
  outline-offset: 2px;
}

.bba-question input[type="checkbox"] + label::before {
  border-radius: 0.32rem;
}

.bba-question-selection-instruction {
  margin: -0.35rem 0 1rem;
  color: var(--bba-ifw-forest, #1f6048);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.4;
}

.bba-question-introduction {
  margin: 0 0 1rem;
  color: var(--bba-ifw-muted);
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.5;
}

.bba-answer-image {
  flex: 0 0 auto;
  width: 4rem;
  height: 4rem;
  border-radius: 8px;
  object-fit: contain;
}

.bba-answer-label-text {
  min-width: 0;
}

.bba-question-comparison {
  margin: 0 0 1.2rem;
  padding: 1rem;
  border: 1px solid var(--bba-ifw-border);
  border-radius: 10px;
  background: #ffffff;
}

.bba-question-comparison-title,
.bba-question-comparison-item h5 {
  margin: 0;
  color: var(--bba-ifw-text);
}

.bba-question-comparison-title {
  font-size: 1.05rem;
}

.bba-question-comparison-intro,
.bba-question-comparison-item p {
  margin: 0.35rem 0 0;
  color: var(--bba-ifw-muted);
  line-height: 1.45;
}

.bba-question-comparison-items {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.8rem;
}

.bba-question-comparison-item {
  padding: 0.85rem;
  border: 1px solid var(--bba-ifw-border);
  border-radius: 8px;
  background: var(--bba-ifw-soft);
}

.bba-question-comparison-item img {
  display: block;
  width: 100%;
  max-width: 7rem;
  height: 5rem;
  margin: 0 0 0.65rem;
  object-fit: contain;
}

.bba-quiz-navigation {
  margin-top: 1.5rem;
}

.bba-quiz-navigation [hidden] {
  display: none !important;
}

.bba-quiz-navigation-group {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.bba-result {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 2px solid var(--bba-ifw-border);
  border-radius: 12px;
  background: var(--bba-ifw-surface);
}

.bba-result-hero {
  display: block;
  width: 100%;
  max-width: 600px;
  height: auto;
  margin: 0 auto 2rem;
  border-radius: 12px;
  box-shadow: 0 1rem 2.25rem rgba(24, 90, 130, 0.18);
}

.bba-result-title {
  margin: 0 0 1.5rem;
  color: inherit;
  font-size: 1.85rem;
  line-height: 1.25;
}

.bba-result-category {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.bba-result-explanation {
  margin: 0 0 1.6rem;
  font-size: 1.08rem;
  font-weight: 750;
}

.bba-result-next-steps {
  margin-top: 1.5rem;
}

.bba-result-next-steps h4,
.bba-result-detail h4,
.bba-safety-notice h4,
.bba-learn-more h4 {
  margin: 0 0 0.5rem;
  color: inherit;
  font-size: 1rem;
  line-height: 1.25;
}

.bba-result-detail {
  margin-top: 1.45rem;
}

.bba-result-detail p {
  margin: 0;
  font-weight: 650;
  line-height: 1.55;
}

.bba-result-next-steps ol {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding-left: 1.25rem;
}

.bba-result-next-steps li {
  padding: 0.9rem 1rem;
  border: 1px solid currentColor;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.56);
  font-weight: 650;
}

.bba-safety-notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  margin-top: 2rem;
  padding: 1.15rem;
  border: 1px solid #b8d3ed;
  border-radius: 10px;
  background: #eef7ff;
  color: #1f4d72;
}

.bba-safety-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2.2rem;
  padding-bottom: 0.15rem;
  background: #2f6f9f;
  color: #ffffff;
  clip-path: polygon(50% 0, 88% 14%, 82% 72%, 50% 100%, 18% 72%, 12% 14%);
  font-size: 0.95rem;
  font-weight: 850;
  line-height: 1;
}

.bba-safety-notice p {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  font-weight: 650;
}

.bba-safety-notice p:last-child {
  margin-bottom: 0;
}

.bba-learn-more {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid currentColor;
}

.bba-learn-more p {
  margin: 0 0 0.9rem;
  font-weight: 750;
}

.bba-learn-more a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.95rem 1.25rem;
  border: 1px solid var(--bba-ifw-blue);
  border-radius: 10px;
  background: var(--bba-ifw-blue);
  color: #ffffff;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 0.45rem 1rem rgba(36, 119, 168, 0.18);
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.bba-learn-more a:hover {
  border-color: var(--bba-ifw-blue-dark);
  background: var(--bba-ifw-blue-dark);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 0.65rem 1.25rem rgba(24, 90, 130, 0.22);
  transform: translateY(-1px);
}

.bba-learn-more a:focus-visible {
  outline: 3px solid var(--bba-ifw-focus);
  outline-offset: 2px;
}

.bba-result[data-bba-result-color="green"] {
  border-color: #59ad76;
  background: #eaf7ef;
  color: #174f2d;
}

.bba-result[data-bba-result-color="yellow"] {
  border-color: #dfb246;
  background: #fff7df;
  color: #654a05;
}

.bba-result[data-bba-result-color="blue"] {
  border-color: #6fb1df;
  background: #edf7ff;
  color: #1f5f8c;
}

.bba-result[data-bba-result-color="red"] {
  border-color: #d97968;
  background: #fff0ed;
  color: #7b2b21;
}

.bba-result[data-bba-result-color="gray"] {
  border-color: #b7c0c8;
  background: #f4f6f8;
  color: #3f4b55;
}

.bba-interactive-action-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  margin-top: 1.25rem;
}

.bba-interactive-secondary-action {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--bba-ifw-blue);
  background: #ffffff;
  color: var(--bba-ifw-blue-dark);
}

.bba-interactive-secondary-action:hover {
  background: var(--bba-ifw-blue-soft);
}

.bba-interactive-status {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.bba-interactive-standalone {
  max-width: 760px;
  margin: 1.5rem auto;
}

.bba-interactive-standalone .bba-interactive-dialog {
  min-height: auto;
  max-height: none;
  border: 1px solid var(--bba-ifw-border);
  border-radius: 12px;
  box-shadow: var(--bba-ifw-shadow);
}

.bba-interactive-standalone .bba-interactive-body {
  overflow: visible;
}

.bba-interactive-standalone .bba-interactive-close {
  display: none;
}

@media (min-width: 42rem) {
  .bba-interactive-launcher {
    padding: 1.5rem;
  }

  .bba-launcher-button,
  .bba-interactive-primary-action,
  .bba-interactive-secondary-action {
    width: auto;
  }

  .bba-interactive-modal {
    place-items: center;
    padding: 2rem;
  }

  .bba-interactive-dialog {
    width: min(100%, 760px);
    min-height: 0;
    max-height: min(86vh, 820px);
    border-radius: 14px;
    box-shadow: var(--bba-ifw-shadow);
  }

  .bba-interactive-header {
    padding: 1.4rem 1.5rem;
  }

  .bba-interactive-title {
    font-size: 1.9rem;
  }

  .bba-interactive-body {
    padding: 1.5rem;
  }

  .bba-interactive-placeholder {
    padding: 1.5rem;
  }

  .bba-interactive-action-row {
    grid-template-columns: auto auto;
    justify-content: start;
  }

  .bba-question,
  .bba-result {
    padding: 2.25rem;
  }

  .bba-quiz-navigation-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Decision Fox theme. Legacy machines remain on the shared defaults above. */
[data-bba-presentation-mode="decision-fox"] {
  --bba-df-ivory: #fffaf0;
  --bba-df-ivory-deep: #f6eddc;
  --bba-df-forest: #1f5a46;
  --bba-df-forest-dark: #174536;
  --bba-df-navy: #142d3b;
  --bba-df-orange: #c7632b;
  --bba-df-orange-soft: #f7e2d2;
  --bba-ifw-blue: var(--bba-df-forest);
  --bba-ifw-blue-dark: var(--bba-df-forest-dark);
  --bba-ifw-blue-soft: #e5f1eb;
  --bba-ifw-text: var(--bba-df-navy);
  --bba-ifw-muted: #53656d;
  --bba-ifw-border: #d8cdbb;
  --bba-ifw-surface: var(--bba-df-ivory);
  --bba-ifw-soft: #fbf5e9;
  --bba-ifw-focus: #b64f1e;
  --bba-ifw-shadow: 0 1.25rem 3rem rgba(20, 45, 59, 0.2);
}

/* Decision Fox launcher. All copy and imagery continue to come from WordPress. */
.bba-interactive-launcher[data-bba-presentation-mode="decision-fox"] {
  display: grid;
  grid-template-columns: minmax(11.5rem, 0.82fr) minmax(0, 1.18fr);
  width: min(100%, 58rem);
  max-width: 58rem;
  min-height: 18rem;
  margin: 1.75rem auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #ded3c1;
  border-radius: 1.25rem;
  background: #fffaf0;
  color: var(--bba-df-navy);
  box-shadow: 0 1rem 2.5rem rgba(20, 45, 59, 0.13);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.bba-interactive-launcher[data-bba-presentation-mode="decision-fox"]:not(.bba-launcher-has-image) {
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
}

.bba-interactive-launcher[data-bba-presentation-mode="decision-fox"] .bba-launcher-media {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-width: 0;
  padding: 1rem 1rem 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, 0.9) 0 28%, rgba(255, 255, 255, 0) 65%),
    linear-gradient(145deg, #f8edda 0%, #f2e3cc 100%);
}

.bba-interactive-launcher[data-bba-presentation-mode="decision-fox"] .bba-launcher-image {
  display: block;
  width: 100%;
  max-width: 19rem;
  height: min(19rem, 31vw);
  max-height: 100%;
  margin: 0;
  object-fit: contain;
  object-position: center bottom;
}

.bba-interactive-launcher[data-bba-presentation-mode="decision-fox"] .bba-launcher-content {
  align-self: center;
  min-width: 0;
  padding: clamp(1.5rem, 4vw, 2.75rem);
}

.bba-interactive-launcher[data-bba-presentation-mode="decision-fox"] .bba-launcher-kicker {
  margin-bottom: 0.65rem;
  color: var(--bba-df-orange);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.bba-interactive-launcher[data-bba-presentation-mode="decision-fox"] .bba-launcher-title {
  margin-bottom: 0.8rem;
  color: var(--bba-df-navy);
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.06;
}

.bba-interactive-launcher[data-bba-presentation-mode="decision-fox"] .bba-launcher-copy {
  max-width: 35rem;
  margin-bottom: 0;
  color: #40545f;
  font-size: clamp(0.98rem, 1.8vw, 1.08rem);
  line-height: 1.55;
}

.bba-interactive-launcher[data-bba-presentation-mode="decision-fox"] .bba-launcher-actions {
  margin: 1.25rem 0 0;
}

.bba-interactive-launcher[data-bba-presentation-mode="decision-fox"] .bba-launcher-button {
  width: auto;
  min-width: 13rem;
  min-height: 3.35rem;
  padding: 0.9rem 1.5rem;
  border-color: var(--bba-df-forest);
  border-radius: 0.7rem;
  background: var(--bba-df-forest);
  color: #ffffff;
  box-shadow: 0 0.55rem 1.1rem rgba(31, 90, 70, 0.2);
  font-size: 1rem;
}

.bba-interactive-launcher[data-bba-presentation-mode="decision-fox"] .bba-launcher-button:hover {
  border-color: var(--bba-df-forest-dark);
  background: var(--bba-df-forest-dark);
}

@media (max-width: 42rem) {
  .bba-interactive-launcher[data-bba-presentation-mode="decision-fox"] {
    grid-template-columns: minmax(7.75rem, 34%) minmax(0, 1fr);
    min-height: 0;
    margin: 1.25rem auto;
    border-radius: 1rem;
  }

  .bba-interactive-launcher[data-bba-presentation-mode="decision-fox"] .bba-launcher-media {
    padding: 0.8rem 0.4rem 0;
  }

  .bba-interactive-launcher[data-bba-presentation-mode="decision-fox"] .bba-launcher-image {
    height: auto;
    max-height: 13rem;
  }

  .bba-interactive-launcher[data-bba-presentation-mode="decision-fox"] .bba-launcher-content {
    padding: 1.35rem 1rem;
  }

  .bba-interactive-launcher[data-bba-presentation-mode="decision-fox"] .bba-launcher-title {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }

  .bba-interactive-launcher[data-bba-presentation-mode="decision-fox"] .bba-launcher-copy {
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .bba-interactive-launcher[data-bba-presentation-mode="decision-fox"] .bba-launcher-actions {
    margin-top: 1rem;
  }

  .bba-interactive-launcher[data-bba-presentation-mode="decision-fox"] .bba-launcher-button {
    width: 100%;
    min-width: 0;
    min-height: 3.25rem;
  }
}

@media (max-width: 30rem) {
  .bba-interactive-launcher[data-bba-presentation-mode="decision-fox"] {
    grid-template-columns: minmax(0, 1fr);
  }

  .bba-interactive-launcher[data-bba-presentation-mode="decision-fox"] .bba-launcher-media {
    min-height: 0;
    max-height: 10rem;
    padding: 0.65rem 1rem 0;
  }

  .bba-interactive-launcher[data-bba-presentation-mode="decision-fox"] .bba-launcher-image {
    width: min(60%, 11rem);
    max-height: 9.5rem;
  }

  .bba-interactive-launcher[data-bba-presentation-mode="decision-fox"] .bba-launcher-content {
    padding: 1.15rem;
    text-align: left;
  }
}

/* Decision Fox Phase 4.1 mobile investigation layout. */
[data-bba-presentation-mode="decision-fox"] .bba-mobile-question-character {
  display: none;
}

@media (max-width: 59.999rem) {
  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] {
    padding: 0;
    overflow-x: hidden;
    background: var(--bba-df-ivory);
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-dialog {
    width: 100%;
    min-height: 100dvh;
    border-radius: 0;
    background: var(--bba-df-ivory);
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-header {
    min-height: 66px;
    padding: 6px max(10px, env(safe-area-inset-right)) 6px max(10px, env(safe-area-inset-left));
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-brand-logo {
    width: min(76vw, 300px);
    max-width: calc(100vw - 76px - env(safe-area-inset-left) - env(safe-area-inset-right));
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-close {
    min-width: 42px;
    min-height: 42px;
    padding: 6px 9px;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-close .bba-interactive-close-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-body {
    padding: 14px max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    overflow-x: hidden;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) .bba-investigation-workspace {
    display: flex;
    flex-direction: column;
    min-height: calc(100dvh - 94px - env(safe-area-inset-bottom));
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) .bba-investigation-sidebar.bba-quiz-progress {
    flex: 0 0 auto;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    padding: 0 0 12px;
    border-bottom: 1px solid #e2d7c5;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) .bba-investigation-sidebar.bba-quiz-progress h3,
  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) .bba-investigation-sidebar.bba-quiz-progress p {
    margin: 0;
    color: var(--bba-df-orange);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) .bba-investigation-sidebar.bba-quiz-progress progress {
    width: 100%;
    height: 6px;
    margin: 0;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) .bba-investigation-main {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) [data-bba-question-container] {
    min-width: 0;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) .bba-question {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) .bba-question fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) .bba-question legend {
    display: grid;
    grid-template-columns: clamp(65px, 19vw, 82px) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: none;
    margin: 0 0 14px;
    padding: 0;
    color: var(--bba-df-navy);
    font-size: clamp(19px, 5.4vw, 23px);
    font-weight: 760;
    line-height: 1.22;
    overflow-wrap: anywhere;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-mobile-question-character {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: clamp(65px, 19vw, 82px);
    height: clamp(72px, 22vw, 90px);
    overflow: hidden;
    border: 1px solid #e2d7c5;
    border-radius: 13px;
    background: #fffaf2;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-mobile-question-character img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) .bba-question-help {
    margin: -4px 0 14px;
    font-size: 15px;
    line-height: 1.45;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) .bba-answer-grid {
    display: block;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) .bba-answer-grid p,
  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) .bba-question fieldset > p:not(.bba-question-help) {
    margin: 0 0 11px;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) .bba-question label {
    justify-content: flex-start;
    min-height: 52px;
    padding: 12px 14px;
    font-size: 16px;
    font-weight: 520;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) .bba-quiz-navigation {
    margin-top: auto;
    padding-top: 20px;
    padding-bottom: env(safe-area-inset-bottom);
    border: 0;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) .bba-quiz-navigation-group {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
    gap: 8px;
    width: 100%;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) [data-bba-action="back"] {
    grid-column: 1;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) [data-bba-action="next"],
  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) [data-bba-action="diagnose"] {
    grid-column: 2;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result).bba-quiz-first-step .bba-quiz-navigation-group {
    grid-template-columns: 1fr;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result).bba-quiz-first-step [data-bba-action="next"],
  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result).bba-quiz-first-step [data-bba-action="diagnose"] {
    grid-column: 1;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) [data-bba-action="back"],
  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) [data-bba-action="next"],
  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) [data-bba-action="diagnose"] {
    width: 100%;
    min-width: 0;
    min-height: 54px;
    padding: 10px;
    font-size: 15px;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) [data-bba-action="restart"] {
    grid-column: 1 / -1;
    justify-self: center;
    min-height: 36px;
    padding: 7px 10px;
    border: 0;
    background: transparent;
    color: var(--bba-ifw-muted);
    font-size: 12px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
    box-shadow: none;
  }
}

@media (max-width: 22.5rem) {
  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-body {
    padding-inline: max(10px, env(safe-area-inset-left));
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) .bba-question legend {
    grid-template-columns: 65px minmax(0, 1fr);
    gap: 8px;
    font-size: 19px;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-mobile-question-character {
    width: 65px;
    height: 72px;
  }
}

/* Optional concise findings layout. Machines opt in through findingsPresentation. */
.bba-educational-image {
  width: min(100%, 440px);
  margin: 4px auto 16px;
}

.bba-educational-image-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(20, 61, 47, 0.2);
  border-radius: 12px;
  background: #fffdf7;
  color: var(--bba-ifw-navy, #0b2940);
  cursor: zoom-in;
  box-shadow: 0 5px 18px rgba(8, 31, 48, 0.08);
}

.bba-educational-image-trigger img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 270px;
  object-fit: contain;
}

.bba-educational-image-hint {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(8, 31, 48, 0.86);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.bba-educational-image-trigger:focus-visible,
.bba-educational-image-close:focus-visible {
  outline: 3px solid var(--bba-ifw-focus);
  outline-offset: 3px;
}

.bba-educational-image-dialog {
  width: min(94vw, 1100px);
  max-width: 1100px;
  max-height: 92vh;
  padding: 54px 16px 16px;
  border: 0;
  border-radius: 14px;
  background: #fffaf0;
  box-shadow: 0 24px 80px rgba(8, 31, 48, 0.36);
}

.bba-educational-image-dialog::backdrop {
  background: rgba(6, 22, 33, 0.78);
}

.bba-educational-image-dialog img {
  display: block;
  width: 100%;
  max-height: calc(92vh - 74px);
  object-fit: contain;
}

.bba-educational-image-close {
  position: absolute;
  top: 10px;
  right: 10px;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid rgba(20, 61, 47, 0.25);
  border-radius: 8px;
  background: #fff;
  color: var(--bba-ifw-navy, #0b2940);
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

.bba-question-comparison-image {
  width: 100%;
  margin: 0 0 10px;
}

.bba-question-comparison-image .bba-educational-image-trigger img {
  max-height: 210px;
}

.bba-recommendation-educational-image,
.bba-findings-educational-image {
  width: min(100%, 320px);
  margin: 10px 0 0;
}

.bba-decision-fox-report-simplified {
  gap: 18px;
  padding-bottom: 18px;
}

.bba-decision-fox-report-simplified .bba-decision-fox-finding-hero {
  min-height: 260px;
}

.bba-decision-fox-report-simplified .bba-decision-fox-finding-intro {
  max-width: 740px;
  padding-block: 26px;
}

.bba-decision-fox-report-simplified .bba-decision-fox-explanation {
  max-width: 68ch;
  margin-top: 10px;
  font-size: 18px;
  line-height: 1.5;
}

.bba-decision-fox-report-simplified .bba-decision-fox-primary-recommendation,
.bba-decision-fox-report-simplified .bba-decision-fox-complementary,
.bba-decision-fox-report-simplified .bba-decision-fox-simplified-details,
.bba-decision-fox-report-simplified .bba-decision-fox-email-slot,
.bba-decision-fox-report-simplified .bba-safety-notice {
  width: min(100% - 64px, 1120px);
  margin-inline: auto;
}

.bba-decision-fox-report-simplified .bba-decision-fox-section-title {
  margin-bottom: 10px;
}

.bba-decision-fox-report-simplified .bba-decision-fox-recommendation-card {
  padding: 18px;
  border: 0;
  box-shadow: 0 8px 24px rgba(8, 31, 48, 0.08);
}

.bba-decision-fox-report-simplified .bba-decision-fox-recommendation-card.is-primary {
  border-left: 6px solid var(--bba-ifw-forest, #1f6048);
}

.bba-decision-fox-report-simplified .bba-decision-fox-recommendation-grid {
  gap: 12px;
}

.bba-decision-fox-report-simplified .bba-result-disclosure {
  margin: 0 0 8px;
  border: 1px solid rgba(20, 61, 47, 0.2);
  box-shadow: none;
}

.bba-decision-fox-report-simplified .bba-result-disclosure summary {
  min-height: 54px;
  padding: 12px 16px;
}

.bba-decision-fox-report-simplified .bba-result-disclosure-content {
  padding: 4px 16px 16px;
}

.bba-decision-fox-report-simplified .bba-decision-fox-clue-summary.is-compact {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.bba-decision-fox-report-simplified .bba-decision-fox-clue-summary.is-compact .bba-decision-fox-clue-grid {
  margin-top: 10px;
}

.bba-decision-fox-education-group {
  display: grid;
  gap: 14px;
}

.bba-decision-fox-education-item + .bba-decision-fox-education-item {
  padding-top: 14px;
  border-top: 1px solid rgba(20, 61, 47, 0.14);
}

.bba-decision-fox-education-item h5 {
  margin: 0 0 5px;
  color: var(--bba-ifw-navy, #0b2940);
  font-size: 18px;
}

.bba-decision-fox-report-simplified .bba-safety-notice {
  padding: 14px 18px;
}

.bba-decision-fox-report-simplified .bba-decision-fox-report-brandbar {
  position: sticky;
  top: 0;
  z-index: 4;
}

@media (max-width: 48rem) {
  .bba-educational-image {
    width: min(100%, 360px);
    margin-bottom: 12px;
  }

  .bba-educational-image-trigger img {
    max-height: 210px;
  }

  .bba-educational-image-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 16px);
    padding: 50px 8px 8px;
  }

  .bba-educational-image-dialog img {
    max-height: calc(100dvh - 74px);
  }

  .bba-decision-fox-report-simplified .bba-decision-fox-primary-recommendation,
  .bba-decision-fox-report-simplified .bba-decision-fox-complementary,
  .bba-decision-fox-report-simplified .bba-decision-fox-simplified-details,
  .bba-decision-fox-report-simplified .bba-decision-fox-email-slot,
  .bba-decision-fox-report-simplified .bba-safety-notice {
    width: min(100% - 24px, 1120px);
  }

  .bba-decision-fox-report-simplified .bba-decision-fox-finding-intro {
    padding-block: 18px;
  }

  .bba-decision-fox-report-simplified .bba-decision-fox-explanation {
    font-size: 16px;
  }
}

/* Decision Fox HVAC Phase 4 recommendation and educational content infrastructure */
.bba-decision-fox-primary-recommendation .bba-decision-fox-recommendation-card,
.bba-decision-fox-recommendation-grid { width: 100%; }

.bba-decision-fox-recommendation-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(18, 71, 43, 0.2);
  border-radius: 16px;
  background: rgba(255, 253, 247, 0.92);
}

.bba-decision-fox-recommendation-card.is-primary {
  border-left: 6px solid var(--bba-df-forest);
  background: linear-gradient(105deg, rgba(236, 246, 225, 0.94), rgba(255, 253, 247, 0.96));
}

.bba-decision-fox-recommendation-card .bba-result-hero {
  width: min(180px, 100%);
  max-height: 140px;
  object-fit: contain;
}

.bba-decision-fox-recommendation-card h4,
.bba-decision-fox-recommendation-card h5 {
  margin: 0 0 8px;
  color: var(--bba-df-navy);
  font-size: 20px;
  line-height: 1.2;
}

.bba-decision-fox-recommendation-description,
.bba-decision-fox-education-copy {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
}

.bba-decision-fox-complementary { margin-top: 24px; }

.bba-decision-fox-recommendation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.bba-decision-fox-related-article {
  display: block;
  width: fit-content;
  margin-top: 12px;
  color: var(--bba-df-forest);
  font-weight: 650;
}

.bba-decision-fox-commercial-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 14px;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--bba-df-forest);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.bba-decision-fox-product-placement {
  width: 100%;
  min-width: 0;
  margin-top: 14px;
}

.bba-decision-fox-product-placement.is-preview-placeholder {
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px dashed rgba(29, 95, 66, 0.55);
  border-radius: 10px;
  background: rgba(237, 244, 224, 0.72);
  color: #214f3a;
  font: 600 14px/1.45 Arial, Helvetica, sans-serif;
}

.bba-decision-fox-primary-recommendation .bba-decision-fox-product-placement {
  margin-top: 18px;
}

.bba-decision-fox-education-body > :first-child { margin-top: 0; }

@media (max-width: 47.999rem) {
  .bba-decision-fox-recommendation-grid { grid-template-columns: minmax(0, 1fr); }
  .bba-decision-fox-recommendation-card { padding: 16px; }
  .bba-decision-fox-recommendation-description,
  .bba-decision-fox-education-copy { font-size: 16px; }
}

/* Phase 4.2 final mobile cascade overrides. */
@media (max-width: 59.999rem) {
  html body .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-brand-logo {
    width: min(84vw, 360px);
    max-width: calc(100vw - 58px - env(safe-area-inset-left) - env(safe-area-inset-right));
  }

  html body .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) .bba-investigation-sidebar.bba-quiz-progress {
    border-bottom: 0;
    border-radius: 0;
  }
}

/* Decision Fox Phase 4.2 mobile questionnaire and findings. */
[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-footer-finish {
  display: none;
}

@media (max-width: 59.999rem) {
  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-brand-logo {
    width: min(84vw, 360px);
    max-width: calc(100vw - 58px - env(safe-area-inset-left) - env(safe-area-inset-right));
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) .bba-investigation-sidebar.bba-quiz-progress {
    border-bottom: 0;
    border-radius: 0;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) .bba-quiz.bba-quiz-first-step .bba-quiz-navigation-group {
    grid-template-columns: 1fr;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) .bba-quiz.bba-quiz-first-step [data-bba-action="next"],
  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) .bba-quiz.bba-quiz-first-step [data-bba-action="diagnose"] {
    grid-column: 1;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-interactive-body {
    padding: 10px max(12px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-investigation-workspace,
  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-investigation-main {
    display: block;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-investigation-sidebar,
  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-quiz-navigation {
    display: none;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-result {
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-report {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    min-width: 0;
    padding: 0;
    background: transparent;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-report-brandbar {
    display: none;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-finding-hero {
    display: grid;
    grid-template-columns: clamp(70px, 23vw, 92px) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-width: 0;
    margin: 0;
    padding: 8px 2px 4px;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-finding-character {
    display: flex;
    align-self: center;
    justify-content: center;
    width: clamp(70px, 23vw, 92px);
    height: clamp(92px, 29vw, 118px);
    margin: 0;
    overflow: hidden;
    border-radius: 14px;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-finding-character img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-finding-intro {
    min-width: 0;
    padding: 0;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-finding-eyebrow {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 5px;
    color: var(--bba-df-orange);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-finding-eyebrow .bba-decision-fox-icon {
    width: 22px;
    height: 22px;
    padding: 4px;
    border-radius: 50%;
    background: var(--bba-df-forest);
    color: #fff;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-finding-intro .bba-result-category {
    margin: 0 0 5px;
    color: var(--bba-df-forest-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.25;
    text-transform: uppercase;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-finding-intro .bba-result-title {
    margin: 0;
    color: var(--bba-df-navy);
    font-size: clamp(24px, 7vw, 31px);
    font-weight: 850;
    letter-spacing: -0.02em;
    line-height: 1.08;
    overflow-wrap: anywhere;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-finding-intro .bba-decision-fox-comment {
    grid-column: 1 / -1;
    margin: 8px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--bba-df-navy);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.42;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-explanation-section {
    margin: 0;
    padding: 0 2px 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-explanation-section > .bba-decision-fox-section-title {
    margin: 0 0 5px;
    font-size: 18px;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-explanation {
    margin: 0;
    color: var(--bba-df-navy);
    font-size: 16px;
    font-weight: 450;
    line-height: 1.48;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-explanation-section .bba-result-hero {
    max-width: 100%;
    margin: 8px 0;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-recommendation {
    margin: 0;
    padding: 13px 14px 13px 17px;
    border: 1px solid #c8d7b2;
    border-left: 5px solid var(--bba-df-forest);
    border-radius: 13px;
    background: #f1f6e9;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-recommendation .bba-result-first-action h4 {
    margin: 0 0 4px;
    color: var(--bba-df-forest-dark);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.2;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-recommendation .bba-result-first-action p,
  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-recommendation .bba-result-first-action li {
    margin: 0;
    color: var(--bba-df-navy);
    font-size: 16px;
    font-weight: 450;
    line-height: 1.45;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-clue-summary {
    margin: 0;
    padding: 3px 12px 7px;
    overflow: hidden;
    border: 1px solid #d5c7b2;
    border-radius: 13px;
    background: rgba(255, 250, 240, 0.72);
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-clue-summary > .bba-decision-fox-section-title {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 -2px;
    padding: 10px 0 7px;
    color: var(--bba-df-navy);
    font-size: 20px;
    line-height: 1.2;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-clue-summary > .bba-decision-fox-section-title .bba-decision-fox-icon {
    width: 27px;
    height: 27px;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-clue-intro {
    display: none;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-clue-grid {
    display: block;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-clue-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    min-height: 0;
    margin: 0;
    padding: 8px 2px;
    border: 0;
    border-bottom: 1px solid #ddd0be;
    border-radius: 0;
    background: transparent;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-clue-card:last-child {
    border-bottom: 0;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-clue-card > .bba-decision-fox-icon {
    display: none;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-clue-label,
  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-clue-answer {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 15px;
    line-height: 1.32;
    overflow-wrap: anywhere;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-clue-label {
    color: var(--bba-df-navy);
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-clue-answer {
    color: var(--bba-df-forest-dark);
    font-weight: 800;
    text-align: right;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-disclosures {
    display: grid;
    gap: 8px;
    margin: 0;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-result-disclosure {
    margin: 0;
    border: 1px solid #d2c2aa;
    border-radius: 12px;
    background: rgba(255, 250, 240, 0.72);
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-result-disclosure summary {
    gap: 10px;
    min-height: 48px;
    padding: 8px 42px 8px 12px;
    color: var(--bba-df-navy);
    font-size: 16px;
    font-weight: 750;
    line-height: 1.25;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-result-disclosure summary .bba-decision-fox-icon {
    width: 25px;
    height: 25px;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-result-disclosure summary::after {
    right: 14px;
    color: var(--bba-df-forest);
    font-size: 24px;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-result-disclosure-content {
    padding: 0 14px 13px 47px;
    font-size: 15px;
    line-height: 1.45;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-result-critical-safety,
  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-safety-notice {
    margin: 0;
    padding: 12px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-safety-notice h4,
  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-result-critical-safety h4 {
    margin-bottom: 2px;
    font-size: 16px;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-report-footer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 7px 12px;
    margin: 2px 0 0;
    padding: 8px 0 0;
    border: 0;
    text-align: center;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-footer-finish {
    display: flex;
    grid-column: 1 / -1;
    grid-row: 1;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    padding: 10px 14px;
    border: 1px solid var(--bba-df-forest);
    border-radius: 13px;
    background: var(--bba-df-forest);
    color: #fff;
    font-family: inherit;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    box-shadow: 0 8px 18px rgba(31, 90, 70, 0.16);
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-footer-back,
  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-footer-restart {
    min-height: 38px;
    padding: 6px 8px;
    border: 0;
    background: transparent;
    color: var(--bba-df-forest-dark);
    font-family: inherit;
    font-size: 13px;
    font-weight: 650;
    text-decoration: underline;
    text-underline-offset: 2px;
    box-shadow: none;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-footer-back {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-footer-restart {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-footer-brand {
    display: none;
  }
}

@media (max-width: 22.5rem) {
  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-finding-hero {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 9px;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-finding-character {
    width: 68px;
    height: 88px;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-finding-intro .bba-result-title {
    font-size: 23px;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-clue-card {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 8px;
  }
}

[data-bba-presentation-mode="decision-fox"] .bba-interactive-header {
  border-bottom-color: #d8cdbb;
  background: linear-gradient(135deg, #fffaf0 0%, #f7eddd 100%);
}

[data-bba-presentation-mode="decision-fox"] .bba-interactive-eyebrow,
[data-bba-presentation-mode="decision-fox"] .bba-question-step,
[data-bba-presentation-mode="decision-fox"] .bba-quiz-progress h3 {
  color: var(--bba-df-orange);
  letter-spacing: 0.1em;
}

[data-bba-presentation-mode="decision-fox"] .bba-interactive-title,
[data-bba-presentation-mode="decision-fox"] .bba-question legend,
[data-bba-presentation-mode="decision-fox"] .bba-result-title {
  color: var(--bba-df-navy);
}

[data-bba-presentation-mode="decision-fox"] .bba-interactive-body,
[data-bba-presentation-mode="decision-fox"] .bba-question {
  background: var(--bba-df-ivory);
}

[data-bba-presentation-mode="decision-fox"] .bba-quiz-progress {
  border-color: #d4c5ad;
  background: #f7eddd;
}

.bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-quiz-progress {
  margin-bottom: 0.75rem;
  padding: 0;
}

[data-bba-presentation-mode="decision-fox"] .bba-quiz-progress progress,
[data-bba-presentation-mode="decision-fox"] .bba-quiz-progress progress::-webkit-progress-bar {
  background: #e5d8c4;
}

[data-bba-presentation-mode="decision-fox"] .bba-quiz-progress progress::-webkit-progress-value,
[data-bba-presentation-mode="decision-fox"] .bba-quiz-progress progress::-moz-progress-bar {
  background: linear-gradient(90deg, var(--bba-df-forest), var(--bba-df-orange));
}

[data-bba-presentation-mode="decision-fox"] .bba-question label {
  border-color: #d8cdbb;
  background: #fffdf8;
  color: var(--bba-df-navy);
}

[data-bba-presentation-mode="decision-fox"] .bba-question label:hover {
  border-color: var(--bba-df-forest);
  background: #edf5f0;
}

[data-bba-presentation-mode="decision-fox"] .bba-question input[type="radio"]:checked + label,
[data-bba-presentation-mode="decision-fox"] .bba-question input[type="checkbox"]:checked + label {
  border-color: var(--bba-df-forest);
  background: var(--bba-df-forest);
  color: #ffffff;
  box-shadow: 0 0.55rem 1.15rem rgba(31, 90, 70, 0.22);
}

[data-bba-presentation-mode="decision-fox"] .bba-interactive-primary-action {
  border-color: var(--bba-df-forest);
  background: var(--bba-df-forest);
}

[data-bba-presentation-mode="decision-fox"] .bba-interactive-primary-action:hover {
  border-color: var(--bba-df-forest-dark);
  background: var(--bba-df-forest-dark);
}

[data-bba-presentation-mode="decision-fox"] .bba-result {
  border-color: #cdbb9f;
  background: #fffdf8;
  color: var(--bba-df-navy);
}

[data-bba-presentation-mode="decision-fox"] .bba-result-category {
  color: var(--bba-df-orange);
}

[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-comment {
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--bba-df-orange);
  border-radius: 0 8px 8px 0;
  background: var(--bba-df-orange-soft);
}

[data-bba-presentation-mode="decision-fox"] .bba-result-relevant-clues,
[data-bba-presentation-mode="decision-fox"] .bba-result-first-action,
[data-bba-presentation-mode="decision-fox"] .bba-result-watch,
[data-bba-presentation-mode="decision-fox"] .bba-result-direction {
  padding: 1rem 1.1rem;
  border: 1px solid #d8cdbb;
  border-radius: 10px;
  background: #fffaf0;
}

[data-bba-presentation-mode="decision-fox"] .bba-result-direction {
  border-color: #9db9aa;
  background: #e8f2ed;
}

[data-bba-presentation-mode="decision-fox"] .bba-result-detail ul {
  margin: 0;
  padding-left: 1.2rem;
}

[data-bba-presentation-mode="decision-fox"] .bba-result-detail li + li {
  margin-top: 0.45rem;
}

.bba-decision-fox-mascot-slot {
  display: none;
}

[data-bba-presentation-mode="decision-fox"] .bba-result-relevant-clues,
[data-bba-presentation-mode="decision-fox"] .bba-result-first-action,
[data-bba-presentation-mode="decision-fox"] .bba-result-watch {
  margin-top: 1rem;
}

/* Decision Fox investigation shell. The legacy modal and quiz layout are unchanged. */
.bba-interactive-modal[data-bba-presentation-mode="decision-fox"] {
  place-items: stretch;
  padding: 0;
  background: var(--bba-df-ivory);
}

.bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-dialog {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  border-radius: 0;
  box-shadow: none;
}

.bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-header {
  align-items: center;
  min-width: 0;
  padding: 0.75rem 1rem;
}

.bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-header-content {
  min-width: 0;
}

.bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-brand-logo {
  width: min(100%, 10rem);
  margin: 0 0 0.35rem;
}

.bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-eyebrow {
  margin-bottom: 0.2rem;
  font-size: 0.66rem;
}

.bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-title {
  margin: 0;
  font-size: clamp(1.1rem, 4.8vw, 1.4rem);
  line-height: 1.15;
}

.bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-attribution,
.bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-intro,
.bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-time {
  display: none;
}

.bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-close {
  gap: 0.35rem;
  width: auto;
  min-height: 2.75rem;
  padding: 0.55rem 0.75rem;
  border-color: #cdbb9f;
  background: #fffdf8;
  color: var(--bba-df-navy);
  font-size: 0.95rem;
}

.bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-close-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-close-label {
  display: inline;
}

.bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-body {
  min-width: 0;
  padding: 1rem;
  overscroll-behavior: contain;
  background: var(--bba-df-ivory);
}

.bba-interactive-modal[data-bba-presentation-mode="decision-fox"] [data-bba-modal-body] {
  width: 100%;
  max-width: 760px;
}

.bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-quiz-progress {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
}

.bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-question {
  margin-bottom: 1rem;
  padding: 1.15rem;
}

.bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-question legend {
  margin-bottom: 1rem;
  font-size: clamp(1.2rem, 5vw, 1.45rem);
}

.bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-question label {
  min-height: 3.5rem;
  padding: 0.9rem 1rem;
}

.bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-quiz-navigation {
  margin-top: 1rem;
  padding-bottom: max(0.25rem, env(safe-area-inset-bottom));
}

@media (min-width: 42rem) {
  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-header {
    padding: 0.9rem clamp(1.5rem, 4vw, 3rem);
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-title {
    font-size: 1.55rem;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-body {
    padding: clamp(1.5rem, 4vh, 3rem) clamp(1.5rem, 5vw, 4rem);
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-question {
    padding: clamp(1.75rem, 3vw, 2.25rem);
  }
}

@media (max-width: 24rem) {
  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-header {
    gap: 0.65rem;
    padding: 0.65rem 0.75rem;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-eyebrow {
    display: none;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-title {
    font-size: 1.05rem;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-close {
    padding-inline: 0.65rem;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-body {
    padding: 0.75rem;
  }
}

/* Decision Fox Step 2: compact clues and action-first findings. */
[data-bba-presentation-mode="decision-fox"] .bba-quiz-progress {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(6rem, 1fr);
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
  padding: 0;
  border: 0;
  background: transparent;
}

[data-bba-presentation-mode="decision-fox"] .bba-quiz-progress h3 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

[data-bba-presentation-mode="decision-fox"] .bba-quiz-progress p {
  margin: 0;
  color: var(--bba-df-orange);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

[data-bba-presentation-mode="decision-fox"] .bba-quiz-progress progress {
  height: 0.5rem;
}

[data-bba-presentation-mode="decision-fox"] .bba-question {
  border-color: #d8cdbb;
  box-shadow: 0 0.8rem 2rem rgba(20, 45, 59, 0.06);
}

[data-bba-presentation-mode="decision-fox"] .bba-question p {
  min-width: 0;
}

[data-bba-presentation-mode="decision-fox"] .bba-quiz-navigation-group {
  align-items: center;
}

.bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-quiz-navigation {
  margin-top: 0.75rem;
}

[data-bba-presentation-mode="decision-fox"] [data-bba-action="restart"] {
  min-height: 2.75rem;
  padding: 0.55rem 0;
  border: 0;
  background: transparent;
  color: var(--bba-ifw-muted);
  font-size: 0.8rem;
  text-decoration: underline;
  box-shadow: none;
}

[data-bba-presentation-mode="decision-fox"] [data-bba-action="restart"]:hover {
  background: transparent;
  color: var(--bba-df-forest-dark);
}

[data-bba-presentation-mode="decision-fox"] .bba-result {
  margin-top: 0;
  padding: clamp(1.15rem, 4vw, 2rem);
}

[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-finding-summary {
  display: grid;
  gap: 1rem;
}

[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-finding-summary .bba-result-category,
[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-finding-summary .bba-result-title,
[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-finding-summary .bba-result-detail {
  margin: 0;
}

[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-finding-summary .bba-result-title {
  font-size: clamp(1.65rem, 5vw, 2.25rem);
  line-height: 1.12;
}

[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-finding-summary .bba-result-direction,
[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-finding-summary .bba-result-first-action {
  padding: 1rem 1.1rem;
  border-radius: 10px;
}

[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-finding-summary .bba-result-direction {
  border: 1px solid #8eaf9e;
  background: #e8f2ed;
}

[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-finding-summary .bba-result-first-action {
  border: 1px solid #d8c29f;
  border-left: 4px solid var(--bba-df-orange);
  background: #fff7ea;
}

[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-finding-summary .bba-result-detail h4 {
  color: var(--bba-df-navy);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-disclosures {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

[data-bba-presentation-mode="decision-fox"] .bba-result-disclosure {
  overflow: hidden;
  border: 1px solid #d8cdbb;
  border-radius: 10px;
  background: #fffaf0;
}

[data-bba-presentation-mode="decision-fox"] .bba-result-disclosure summary {
  position: relative;
  min-height: 3.25rem;
  padding: 0.9rem 3rem 0.9rem 1rem;
  color: var(--bba-df-navy);
  font-weight: 800;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}

[data-bba-presentation-mode="decision-fox"] .bba-result-disclosure summary::-webkit-details-marker {
  display: none;
}

[data-bba-presentation-mode="decision-fox"] .bba-result-disclosure summary::after {
  position: absolute;
  top: 50%;
  right: 1rem;
  color: var(--bba-df-forest);
  font-size: 1.35rem;
  line-height: 1;
  content: "+";
  transform: translateY(-50%);
}

[data-bba-presentation-mode="decision-fox"] .bba-result-disclosure[open] summary::after {
  content: "−";
}

[data-bba-presentation-mode="decision-fox"] .bba-result-disclosure summary:hover {
  background: #f5ecdc;
}

[data-bba-presentation-mode="decision-fox"] .bba-result-disclosure summary:focus-visible {
  outline: 3px solid var(--bba-ifw-focus);
  outline-offset: -3px;
}

[data-bba-presentation-mode="decision-fox"] .bba-result-disclosure-content {
  padding: 0 1rem 1rem;
  border-top: 1px solid #e5dac7;
}

[data-bba-presentation-mode="decision-fox"] .bba-result-disclosure-content .bba-result-detail,
[data-bba-presentation-mode="decision-fox"] .bba-result-disclosure-content .bba-learn-more {
  margin-top: 1rem;
}

[data-bba-presentation-mode="decision-fox"] .bba-result-disclosure-content .bba-decision-fox-comment,
[data-bba-presentation-mode="decision-fox"] .bba-result-disclosure-content .bba-result-relevant-clues,
[data-bba-presentation-mode="decision-fox"] .bba-result-disclosure-content .bba-result-watch {
  padding: 0;
  border: 0;
  background: transparent;
}

[data-bba-presentation-mode="decision-fox"] .bba-result-critical-safety {
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  border: 2px solid #c76858;
  border-radius: 10px;
  background: #fff0ed;
  color: #71291f;
}

[data-bba-presentation-mode="decision-fox"] .bba-safety-notice {
  margin-top: 1.25rem;
}

@media (min-width: 48rem) {
  [data-bba-presentation-mode="decision-fox"] .bba-answer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-answer-grid p {
    margin: 0;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-answer-grid legend,
  [data-bba-presentation-mode="decision-fox"] .bba-answer-grid .bba-question-help,
  [data-bba-presentation-mode="decision-fox"] .bba-answer-grid .bba-question-comparison {
    grid-column: 1 / -1;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-question-comparison-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  [data-bba-presentation-mode="decision-fox"] .bba-answer-grid label {
    height: 100%;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-quiz-navigation-group {
    grid-template-columns: auto minmax(12rem, 1fr);
  }

  [data-bba-presentation-mode="decision-fox"] [data-bba-action="next"],
  [data-bba-presentation-mode="decision-fox"] [data-bba-action="diagnose"] {
    grid-column: 2;
    justify-self: end;
    min-width: 12rem;
  }

  [data-bba-presentation-mode="decision-fox"] [data-bba-action="restart"] {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

/* Decision Fox Phase 2 questionnaire workspace. Findings retain their existing layout. */
[data-bba-presentation-mode="decision-fox"] {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[data-bba-presentation-mode="decision-fox"] .bba-investigation-workspace,
[data-bba-presentation-mode="decision-fox"] .bba-investigation-main {
  min-width: 0;
}

[data-bba-presentation-mode="decision-fox"] .bba-investigation-character {
  margin: 0;
}

[data-bba-presentation-mode="decision-fox"] .bba-investigation-character img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

[data-bba-presentation-mode="decision-fox"] .bba-investigation-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

[data-bba-presentation-mode="decision-fox"] .bba-investigation-step {
  position: relative;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  min-height: 2.75rem;
  color: #68777d;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
}

[data-bba-presentation-mode="decision-fox"] .bba-investigation-step + .bba-investigation-step::before {
  position: absolute;
  bottom: calc(50% + 1rem);
  left: calc(1rem - 1px);
  width: 2px;
  height: calc(100% - 2rem);
  background: #d9d1c3;
  content: "";
}

[data-bba-presentation-mode="decision-fox"] .bba-investigation-step-number {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid #d6ccba;
  border-radius: 50%;
  background: #f3ecdf;
  color: #68777d;
  font-size: 0.8rem;
  font-weight: 850;
}

[data-bba-presentation-mode="decision-fox"] .bba-investigation-step.is-current {
  color: var(--bba-df-orange);
}

[data-bba-presentation-mode="decision-fox"] .bba-investigation-step.is-current .bba-investigation-step-number {
  border-color: var(--bba-df-orange);
  background: var(--bba-df-orange);
  color: #ffffff;
  box-shadow: 0 0.35rem 0.8rem rgba(199, 99, 43, 0.22);
}

[data-bba-presentation-mode="decision-fox"] .bba-investigation-step.is-complete .bba-investigation-step-number {
  border-color: var(--bba-df-forest);
  background: var(--bba-df-forest);
  color: #ffffff;
  font-size: 0;
}

[data-bba-presentation-mode="decision-fox"] .bba-investigation-step.is-complete .bba-investigation-step-number::after {
  font-size: 0.8rem;
  content: "✓";
}

@media (min-width: 60rem) {
  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-header {
    padding: 0.7rem clamp(1.5rem, 3vw, 2.75rem);
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-title {
    font-size: 1.4rem;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-body {
    padding: clamp(1.25rem, 2.5vw, 2.25rem);
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] [data-bba-modal-body] {
    max-width: 1180px;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-investigation-workspace {
    display: grid;
    grid-template-columns: minmax(13.5rem, 15.5rem) minmax(0, 1fr);
    gap: clamp(1rem, 2vw, 1.75rem);
    align-items: stretch;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-investigation-main {
    display: flex;
    flex-direction: column;
    min-height: min(38rem, calc(100dvh - 9rem));
    padding: clamp(1.5rem, 3vw, 2.35rem);
    border: 1px solid #ded3c2;
    border-radius: 16px;
    background: #fffdf8;
    box-shadow: 0 1rem 2.5rem rgba(20, 45, 59, 0.08);
  }

  [data-bba-presentation-mode="decision-fox"] .bba-investigation-sidebar.bba-quiz-progress {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 1rem 1rem 1.25rem;
    border: 1px solid #ded3c2;
    border-radius: 16px;
    background: linear-gradient(180deg, #fffdf8 0%, #f5ecdc 100%);
    box-shadow: 0 0.8rem 2rem rgba(20, 45, 59, 0.06);
  }

  [data-bba-presentation-mode="decision-fox"] .bba-investigation-character {
    height: clamp(7rem, 14vh, 10rem);
    margin: -0.25rem 0 0.65rem;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-investigation-sidebar.bba-quiz-progress h3 {
    position: static;
    width: auto;
    height: auto;
    margin: 0 -1rem 0.85rem;
    padding: 0.7rem 1rem;
    overflow: visible;
    clip: auto;
    border-radius: 8px;
    background: var(--bba-df-forest);
    color: #ffffff;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    white-space: normal;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-investigation-sidebar.bba-quiz-progress p {
    margin: 0 0 0.55rem;
    font-size: 0.72rem;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-investigation-sidebar.bba-quiz-progress progress {
    height: 0.4rem;
    margin-bottom: 0.85rem;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-question {
    flex: 1 0 auto;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-question legend {
    max-width: 48rem;
    margin-bottom: 1.1rem;
    font-size: clamp(1.65rem, 2.5vw, 2.2rem);
    line-height: 1.12;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-question-help {
    max-width: 46rem;
    margin: -0.45rem 0 1.35rem;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-answer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-answer-grid.bba-answer-count-2,
  [data-bba-presentation-mode="decision-fox"] .bba-answer-grid.bba-answer-count-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  [data-bba-presentation-mode="decision-fox"] .bba-question label {
    min-height: 5.5rem;
    padding: 1rem 1.1rem;
    justify-content: center;
    text-align: center;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-quiz-navigation {
    margin-top: auto;
    padding-top: 1.35rem;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-quiz-navigation-group {
    grid-template-columns: auto 1fr auto;
  }

  [data-bba-presentation-mode="decision-fox"] [data-bba-action="next"],
  [data-bba-presentation-mode="decision-fox"] [data-bba-action="diagnose"] {
    grid-column: 3;
    min-width: 13rem;
  }

  [data-bba-presentation-mode="decision-fox"] [data-bba-action="restart"] {
    grid-column: 1 / -1;
  }

  [data-bba-presentation-mode="decision-fox"].bba-quiz-showing-result .bba-investigation-workspace {
    display: block;
  }

  [data-bba-presentation-mode="decision-fox"].bba-quiz-showing-result .bba-investigation-sidebar {
    display: none;
  }

  [data-bba-presentation-mode="decision-fox"].bba-quiz-showing-result .bba-investigation-main {
    display: block;
    max-width: 760px;
    min-height: 0;
    margin: 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
}

/* Decision Fox Phase 3.1 approved findings reference implementation. */
[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-report-brandbar,
[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-report-footer {
  display: none;
}

[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-icon {
  display: inline-flex;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  color: var(--bba-df-forest);
}

[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

@media (min-width: 60rem) {
  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result > .bba-interactive-dialog > .bba-interactive-header {
    display: none;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-interactive-body {
    padding: 0 32px 24px;
    background: var(--bba-df-ivory);
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result [data-bba-modal-body] {
    width: min(100%, 1420px);
    max-width: 1420px;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-investigation-main {
    width: 100%;
    max-width: none;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-result {
    margin: 0;
    padding: 0;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-quiz-showing-result > .bba-quiz-navigation {
    display: none;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-report {
    grid-template-columns: minmax(0, 55fr) minmax(390px, 45fr);
    gap: 16px 38px;
    width: 100%;
    padding: 0;
    background: var(--bba-df-ivory);
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-report-brandbar {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    padding: 8px 10px 8px 16px;
    border-bottom: 1px solid #ded0bc;
    background: #fffaf0;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-report-brand {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-report-brand-image {
    display: block;
    width: 58px;
    height: 58px;
    object-fit: contain;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-report-brand-name,
  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-report-tagline {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-report-brand-name {
    color: var(--bba-df-navy);
    font-size: 34px;
    font-weight: 850;
    letter-spacing: 1px;
    line-height: 1;
    text-transform: uppercase;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-report-tagline {
    margin-top: 5px;
    color: var(--bba-df-forest-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.4px;
    line-height: 1;
    text-transform: uppercase;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-report-close {
    min-height: 42px;
    padding: 7px 16px;
    border: 1px solid #cbb38e;
    border-radius: 12px;
    background: #fffaf0;
    color: var(--bba-df-navy);
    font-family: inherit;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-report-close:hover {
    border-color: var(--bba-df-forest);
    background: #f7eddd;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-finding-hero {
    position: relative;
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 58fr) minmax(340px, 42fr);
    min-height: 278px;
    padding: 0 22px 0 38px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background:
      radial-gradient(circle at 78% 48%, rgba(225, 203, 165, 0.66), transparent 30%),
      linear-gradient(90deg, #fff8ea 0%, #f6ead7 56%, #ead7b9 100%);
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-finding-hero::before {
    position: absolute;
    top: 38px;
    bottom: 30px;
    left: 16px;
    width: 8px;
    border-radius: 8px;
    background: var(--bba-df-orange);
    content: "";
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-finding-character {
    z-index: 1;
    display: flex;
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    justify-content: center;
    height: 278px;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-finding-character img {
    width: min(100%, 390px);
    max-height: 294px;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 10px 18px rgba(38, 42, 28, 0.12));
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-finding-intro {
    z-index: 2;
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    padding: 28px 16px 28px 0;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-finding-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
    color: #df690b;
    font-size: 19px;
    font-weight: 850;
    letter-spacing: 1.5px;
    line-height: 1.2;
    text-transform: uppercase;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-finding-eyebrow .bba-decision-fox-icon {
    width: 34px;
    height: 34px;
    padding: 7px;
    border-radius: 50%;
    background: var(--bba-df-orange);
    color: #fff;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-finding-intro .bba-result-category {
    display: none;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-finding-intro .bba-result-title {
    max-width: 720px;
    margin: 0;
    color: var(--bba-df-navy);
    font-size: clamp(40px, 3.4vw, 50px);
    font-weight: 850;
    letter-spacing: -1.2px;
    line-height: 1.05;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-finding-intro .bba-decision-fox-comment {
    max-width: 690px;
    margin: 12px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--bba-df-navy);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.35;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-explanation-section {
    grid-column: 1;
    grid-row: 3;
    padding: 8px 6px 4px 10px;
    border: 0;
    background: transparent;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-explanation-section .bba-result-hero {
    max-width: 100%;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-section-title {
    margin: 0 0 7px;
    color: var(--bba-df-navy);
    font-size: 28px;
    font-weight: 850;
    line-height: 1.15;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-explanation {
    max-width: 760px;
    margin: 0;
    color: var(--bba-df-navy);
    font-size: 18px;
    font-weight: 450;
    line-height: 1.48;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-recommendation {
    grid-column: 1;
    grid-row: 4;
    margin: 2px 0 0;
    padding: 18px 22px 18px 28px;
    border: 1px solid #cbd2a4;
    border-left: 7px solid var(--bba-df-forest);
    border-radius: 14px;
    background: linear-gradient(110deg, #f1f5d9 0%, #eef1dc 100%);
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-recommendation .bba-result-first-action h4 {
    margin: 0 0 4px;
    color: #104d26;
    font-size: 24px;
    font-weight: 850;
    line-height: 1.2;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-recommendation .bba-result-first-action p,
  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-recommendation .bba-result-first-action li {
    margin: 0;
    color: var(--bba-df-navy);
    font-size: 18px;
    font-weight: 450;
    line-height: 1.45;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-disclosures {
    display: grid;
    grid-column: 1;
    grid-row: 5;
    grid-template-columns: 1fr;
    gap: 9px;
    margin: 0;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-result-disclosure {
    border: 1px solid #cbb38e;
    border-radius: 12px;
    background: #fffaf0;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-result-disclosure summary {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 54px;
    padding: 10px 52px 10px 24px;
    color: var(--bba-df-navy);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.25;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-result-disclosure summary::after {
    right: 22px;
    color: var(--bba-df-forest);
    font-size: 28px;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-result-disclosure-content {
    padding: 0 24px 20px 68px;
    font-size: 17px;
    line-height: 1.5;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-clue-summary {
    grid-column: 2;
    grid-row: 3 / span 3;
    align-self: start;
    padding: 0 22px 12px;
    overflow: hidden;
    border: 1px solid #bfa888;
    border-radius: 15px;
    background: #fffaf0;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-clue-summary > .bba-decision-fox-section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 -22px;
    padding: 16px 24px;
    background: linear-gradient(115deg, #176237 0%, #0e4b2a 100%);
    color: #fff;
    font-size: 25px;
    line-height: 1.15;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-clue-summary > .bba-decision-fox-section-title .bba-decision-fox-icon {
    color: #fff;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-clue-intro {
    display: none;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-clue-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-clue-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) minmax(150px, 0.85fr);
    gap: 12px;
    align-items: center;
    min-height: 68px;
    padding: 8px 4px;
    border: 0;
    border-bottom: 1px solid #d9cdbc;
    border-radius: 0;
    background: transparent;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-clue-card:last-child {
    border-bottom: 0;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-clue-card > .bba-decision-fox-icon {
    justify-self: center;
    width: 38px;
    height: 38px;
    color: #12642f;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-clue-label {
    color: var(--bba-df-navy);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.25;
    text-transform: none;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-clue-answer {
    margin: 0;
    padding: 9px 14px;
    border-radius: 11px;
    background: #e8eccb;
    color: #162116;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-result-critical-safety,
  [data-bba-presentation-mode="decision-fox"] .bba-safety-notice {
    grid-column: 1 / -1;
    font-size: 16px;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-report-footer {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
    margin-top: 12px;
    padding: 20px 6px 4px;
    border-top: 1px solid #cdbda6;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-footer-back,
  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-footer-restart {
    min-height: 48px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 17px;
    font-weight: 800;
    text-transform: uppercase;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-footer-back {
    padding: 9px 22px;
    border: 2px solid var(--bba-df-forest);
    background: #fffaf0;
    color: var(--bba-df-navy);
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-footer-brand {
    margin: 0;
    color: var(--bba-df-navy);
    font-size: 16px;
    font-weight: 500;
    text-align: center;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-footer-restart {
    padding: 10px 28px;
    border: 1px solid var(--bba-df-forest);
    background: var(--bba-df-forest);
    color: #fff;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-footer-restart:hover {
    background: var(--bba-df-forest-dark);
  }

  [data-bba-presentation-mode="decision-fox"] .bba-result[data-bba-result-color="red"] .bba-decision-fox-recommendation {
    border-color: #d6a095;
    border-left-color: #a84635;
    background: #fff0ed;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-result[data-bba-result-color="red"] .bba-decision-fox-recommendation .bba-result-first-action h4 {
    color: #7b2b21;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-result[data-bba-result-color="yellow"] .bba-decision-fox-recommendation {
    border-color: #e0c47d;
    border-left-color: var(--bba-df-orange);
    background: #fff7df;
  }
}

@media (max-width: 59.999rem) {
  [data-bba-presentation-mode="decision-fox"] .bba-investigation-character,
  [data-bba-presentation-mode="decision-fox"] .bba-investigation-steps {
    display: none;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-investigation-sidebar.bba-quiz-progress {
    display: grid;
    grid-template-columns: auto minmax(6rem, 1fr);
    gap: 0.7rem;
    margin-bottom: 0.75rem;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
}

@media (max-width: 47.999rem) {
  [data-bba-presentation-mode="decision-fox"] .bba-answer-grid {
    display: block;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-answer-grid p {
    margin-bottom: 0.75rem;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-question label {
    min-height: 3.65rem;
    text-align: left;
  }
}

/* Decision Fox Phase 2.1 desktop refinement. */
[data-bba-presentation-mode="decision-fox"] .bba-quiz-progress progress::-webkit-progress-value {
  background: var(--bba-df-forest);
}

[data-bba-presentation-mode="decision-fox"] .bba-quiz-progress progress::-moz-progress-bar {
  background: var(--bba-df-forest);
}

@media (min-width: 60rem) {
  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] {
    place-items: center;
    padding: 1rem;
    background: rgba(20, 45, 59, 0.32);
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-dialog {
    width: min(calc(100% - 2rem), 1180px);
    max-width: 1180px;
    min-height: 0;
    height: min(820px, calc(100dvh - 2rem));
    max-height: calc(100dvh - 2rem);
    border: 1px solid #d6cab7;
    border-radius: 18px;
    box-shadow: 0 1.5rem 4rem rgba(20, 45, 59, 0.24);
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-body {
    padding: clamp(1.35rem, 2.5vw, 2.25rem);
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] [data-bba-modal-body] {
    width: 100%;
    max-width: 1180px;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-investigation-workspace {
    grid-template-columns: minmax(17rem, 18.5rem) minmax(0, 1fr);
    gap: clamp(1.25rem, 2.2vw, 2rem);
    min-height: 100%;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-investigation-sidebar.bba-quiz-progress {
    padding: 1.15rem 1.15rem 1.4rem;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-investigation-character {
    height: clamp(10rem, 20vh, 13rem);
    margin: -0.35rem 0 0.8rem;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-investigation-sidebar.bba-quiz-progress h3 {
    margin-inline: -1.15rem;
    padding: 0.8rem 1.15rem;
    font-size: 0.8rem;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-investigation-step {
    grid-template-columns: 2.2rem minmax(0, 1fr);
    gap: 0.8rem;
    min-height: 3rem;
    font-size: 0.95rem;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-investigation-step-number {
    width: 2.2rem;
    height: 2.2rem;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-investigation-step + .bba-investigation-step::before {
    left: calc(1.1rem - 1px);
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-investigation-main {
    min-height: 100%;
    padding: clamp(2rem, 3vw, 3rem);
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] [data-bba-question-container] {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-question {
    flex: 1 1 auto;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-question legend {
    max-width: 52rem;
    margin-bottom: 1.25rem;
    font-size: clamp(2rem, 2.5vw, 2.55rem);
    line-height: 1.1;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-question-help {
    max-width: 50rem;
    margin: -0.45rem 0 1.5rem;
    font-size: 1.02rem;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-answer-grid {
    gap: 1rem;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-question label {
    min-height: 6.25rem;
    padding: 1.15rem 1.25rem;
    font-size: 1.08rem;
    line-height: 1.35;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-quiz-navigation {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5dac7;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-quiz-navigation-group {
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] [data-bba-action="back"] {
    min-width: 9.5rem;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] [data-bba-action="next"],
  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] [data-bba-action="diagnose"] {
    grid-column: 3;
    min-width: 14rem;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-quiz-showing-result .bba-investigation-main,
  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-quiz-showing-result .bba-investigation-main {
    max-width: 760px;
    padding: 0;
  }
}

/* Decision Fox Phase 2.2 final questionnaire refinements. */
.bba-interactive-modal[data-bba-presentation-mode="decision-fox"] {
  background: var(--bba-df-ivory);
}

.bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-question label {
  font-size: 16px;
  line-height: 1.4;
}

@media (min-width: 60rem) {
  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] {
    background: var(--bba-df-ivory);
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-investigation-step {
    font-size: 16px;
    line-height: 1.3;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-question label {
    font-size: 16px;
  }
}

/* Decision Fox Phase 3 mobile-compatible findings baseline. */
[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-report {
  display: grid;
  gap: 1rem;
  color: var(--bba-df-navy);
}

[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-finding-hero,
[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-explanation-section,
[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-recommendation,
[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-clue-summary {
  border: 1px solid #d8cdbb;
  border-radius: 14px;
  background: #fffaf0;
}

[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-finding-hero {
  padding: 1.25rem;
}

[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-finding-character {
  display: none;
  margin: 0;
}

[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-finding-eyebrow {
  margin: 0 0 0.45rem;
  color: var(--bba-df-orange);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-finding-intro .bba-result-category {
  margin-bottom: 0.5rem;
  color: var(--bba-df-forest);
}

[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-finding-intro .bba-result-title {
  margin: 0;
}

[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-finding-intro .bba-decision-fox-comment {
  margin: 1rem 0 0;
}

[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-explanation-section,
[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-clue-summary {
  padding: 1.25rem;
}

[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-section-title {
  margin: 0 0 0.65rem;
  color: var(--bba-df-navy);
  font-size: 1.25rem;
  line-height: 1.25;
}

[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-explanation {
  max-width: 48rem;
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
}

[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-explanation-section .bba-result-hero {
  max-width: 30rem;
  margin: 1rem 0;
}

[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-recommendation {
  padding: 1.25rem;
  border-left: 5px solid var(--bba-df-orange);
  background: #fff4e2;
}

[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-recommendation .bba-result-first-action {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-recommendation .bba-result-first-action h4 {
  margin-bottom: 0.6rem;
  color: var(--bba-df-forest-dark);
  font-size: 1.2rem;
  letter-spacing: 0;
  text-transform: none;
}

[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-recommendation .bba-result-first-action p,
[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-recommendation .bba-result-first-action li {
  font-weight: 500;
  line-height: 1.6;
}

[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-clue-intro {
  margin: 0 0 1rem;
  color: var(--bba-ifw-muted);
}

[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-clue-grid {
  display: grid;
  gap: 0.75rem;
}

[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-clue-card {
  min-width: 0;
  padding: 0.9rem 1rem;
  border: 1px solid #ded2c0;
  border-top: 3px solid var(--bba-df-forest);
  border-radius: 10px;
  background: #fffdf8;
}

[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-clue-label,
[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-clue-answer {
  margin: 0;
  overflow-wrap: anywhere;
}

/* Optional contextual commerce remains subordinate to the active question. */
[data-bba-presentation-mode="decision-fox"] .bba-question-commercial-placement {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0.35rem 0 0;
  padding: 0.9rem 1rem;
  border: 1px solid #ded2c0;
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.78);
}

[data-bba-presentation-mode="decision-fox"] .bba-question-commercial-content h4,
[data-bba-presentation-mode="decision-fox"] .bba-question-commercial-content p {
  margin: 0;
}

[data-bba-presentation-mode="decision-fox"] .bba-question-commercial-content h4 {
  color: var(--bba-df-navy);
  font-size: 17px;
  line-height: 1.3;
}

[data-bba-presentation-mode="decision-fox"] .bba-question-commercial-explanation {
  margin-top: 0.3rem !important;
  color: #42515d;
  font-size: 15px;
  line-height: 1.45;
}

[data-bba-presentation-mode="decision-fox"] .bba-question-commercial-placement .bba-decision-fox-product-placement {
  margin-top: 0.7rem;
}

[data-bba-presentation-mode="decision-fox"] .bba-question-commercial-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  margin-top: 0.7rem;
  padding: 0.55rem 0.95rem;
  border-radius: 8px;
  background: var(--bba-df-forest);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

[data-bba-presentation-mode="decision-fox"] .bba-question-commercial-disclosure {
  margin: 0.55rem 0 0;
  color: #5f6870;
  font-size: 12px;
  line-height: 1.4;
}

@media (max-width: 700px) {
  [data-bba-presentation-mode="decision-fox"] .bba-question-commercial-placement {
    padding: 0.8rem;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-question-commercial-link {
    justify-content: center;
    width: 100%;
  }
}

[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-clue-label {
  color: var(--bba-df-orange);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-clue-answer {
  margin-top: 0.4rem;
  color: var(--bba-df-navy);
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.35;
}

[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-report-footer {
  padding: 0.9rem 0 0.25rem;
  border-top: 1px solid #d8cdbb;
  color: var(--bba-df-forest-dark);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-align: center;
}

@media (min-width: 60rem) {
  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-quiz-showing-result .bba-investigation-workspace,
  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-quiz-showing-result .bba-investigation-workspace {
    display: block;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-quiz-showing-result .bba-investigation-main,
  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-quiz-showing-result .bba-investigation-main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-result {
    padding: 0;
    border: 0;
    background: transparent;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-report {
    grid-template-columns: minmax(0, 1.35fr) minmax(19rem, 0.65fr);
    gap: 1.25rem;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-finding-hero {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(13rem, 0.65fr) minmax(0, 1.35fr);
    align-items: center;
    min-height: 18rem;
    padding: 1.5rem 2rem 0;
    overflow: hidden;
    background: linear-gradient(120deg, #f8ead6 0%, #fffaf0 60%);
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-finding-character {
    display: flex;
    align-self: end;
    justify-content: center;
    min-width: 0;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-finding-character img {
    display: block;
    width: min(100%, 17rem);
    max-height: 17rem;
    object-fit: contain;
    object-position: center bottom;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-finding-intro {
    padding: 1.5rem 1rem 2rem;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-finding-intro .bba-result-title {
    max-width: 42rem;
    font-size: clamp(2.35rem, 3.4vw, 3.4rem);
    line-height: 1.05;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-finding-intro .bba-decision-fox-comment {
    max-width: 42rem;
    font-size: 1.08rem;
    line-height: 1.55;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-explanation-section,
  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-recommendation,
  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-clue-summary,
  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-disclosures,
  [data-bba-presentation-mode="decision-fox"] .bba-result-critical-safety,
  [data-bba-presentation-mode="decision-fox"] .bba-safety-notice,
  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-report-footer {
    grid-column: 1 / -1;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-explanation-section {
    padding: 1.6rem 2rem;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-recommendation {
    grid-column: 1;
    padding: 1.6rem 1.8rem;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-clue-summary {
    grid-column: 2;
    grid-row: 3 / span 2;
    padding: 1.5rem;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-clue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  [data-bba-presentation-mode="decision-fox"] .bba-decision-fox-disclosures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-result-guidance-disclosure:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

/* Decision Fox Phase 3.2 official branding integration. */
.bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 72px;
  padding: 8px 18px;
  background: #fffaf0;
}

.bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-header-content {
  display: flex;
  align-items: center;
}

.bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-brand-logo,
.bba-interactive-dialog[data-bba-presentation-mode="decision-fox"] .bba-interactive-brand-logo {
  display: block;
  width: min(72vw, 360px);
  max-width: 360px;
  margin: 0;
}

.bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-brand-logo img,
.bba-interactive-dialog[data-bba-presentation-mode="decision-fox"] .bba-interactive-brand-logo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-eyebrow,
.bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-title,
.bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-attribution,
.bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-intro,
.bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-time,
.bba-interactive-dialog[data-bba-presentation-mode="decision-fox"] .bba-interactive-eyebrow {
  display: none;
}

[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-report-logo {
  display: block;
  width: min(64vw, 370px);
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-report-brand-fallback {
  margin: 0;
  color: var(--bba-df-navy);
  font-size: 30px;
  font-weight: 850;
  letter-spacing: 1px;
  text-transform: uppercase;
}

@media (max-width: 30rem) {
  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-header {
    min-height: 64px;
    padding: 6px 10px;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-brand-logo {
    width: min(66vw, 245px);
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-close {
    min-height: 42px;
    padding: 6px 10px;
  }
}

/* Phase 4.1 cascade guard: mobile investigation rules must follow prior phases. */
@media (max-width: 59.999rem) {
  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] {
    padding: 0;
    overflow-x: hidden;
    background: var(--bba-df-ivory);
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-dialog {
    width: 100%;
    min-height: 100dvh;
    border-radius: 0;
    background: var(--bba-df-ivory);
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-header {
    min-height: 66px;
    padding: 6px max(10px, env(safe-area-inset-right)) 6px max(10px, env(safe-area-inset-left));
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-brand-logo {
    width: min(76vw, 300px);
    max-width: calc(100vw - 76px - env(safe-area-inset-left) - env(safe-area-inset-right));
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-close {
    min-width: 42px;
    min-height: 42px;
    padding: 6px 9px;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-close .bba-interactive-close-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-body {
    padding: 14px max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
    overflow-x: hidden;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) .bba-investigation-workspace {
    display: flex;
    flex-direction: column;
    min-height: calc(100dvh - 94px - env(safe-area-inset-bottom));
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) .bba-investigation-sidebar.bba-quiz-progress {
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    padding: 0 0 12px;
    border: 0;
    border-bottom: 1px solid #e2d7c5;
    background: transparent;
    box-shadow: none;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) .bba-investigation-sidebar.bba-quiz-progress h3,
  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) .bba-investigation-sidebar.bba-quiz-progress p {
    margin: 0;
    color: var(--bba-df-orange);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) .bba-investigation-sidebar.bba-quiz-progress progress {
    width: 100%;
    height: 6px;
    margin: 0;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) .bba-investigation-main {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) .bba-question,
  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) .bba-question fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) .bba-question legend {
    display: grid;
    grid-template-columns: clamp(65px, 19vw, 82px) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: none;
    margin: 0 0 14px;
    padding: 0;
    font-size: clamp(19px, 5.4vw, 23px);
    font-weight: 760;
    line-height: 1.22;
    overflow-wrap: anywhere;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) .bba-question-help {
    margin: -4px 0 14px;
    font-size: 15px;
    line-height: 1.45;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) .bba-answer-grid {
    display: block;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) .bba-answer-grid p,
  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) .bba-question fieldset > p:not(.bba-question-help) {
    margin: 0 0 11px;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) .bba-question label {
    justify-content: flex-start;
    min-height: 52px;
    padding: 12px 14px;
    font-size: 16px;
    font-weight: 520;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) .bba-quiz-navigation {
    margin-top: auto;
    padding: 20px 0 env(safe-area-inset-bottom);
    border: 0;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) .bba-quiz-navigation-group {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 7fr);
    gap: 8px;
    width: 100%;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) [data-bba-action="back"] {
    grid-column: 1;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) [data-bba-action="next"],
  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) [data-bba-action="diagnose"] {
    grid-column: 2;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result).bba-quiz-first-step .bba-quiz-navigation-group {
    grid-template-columns: 1fr;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result).bba-quiz-first-step [data-bba-action="next"],
  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result).bba-quiz-first-step [data-bba-action="diagnose"] {
    grid-column: 1;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) [data-bba-action="back"],
  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) [data-bba-action="next"],
  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) [data-bba-action="diagnose"] {
    width: 100%;
    min-width: 0;
    min-height: 54px;
    padding: 10px;
    font-size: 15px;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) [data-bba-action="restart"] {
    grid-column: 1 / -1;
    justify-self: center;
    min-height: 36px;
    padding: 7px 10px;
    border: 0;
    background: transparent;
    color: var(--bba-ifw-muted);
    font-size: 12px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
    box-shadow: none;
  }
}

@media (max-width: 22.5rem) {
  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-body {
    padding-inline: max(10px, env(safe-area-inset-left));
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) .bba-question legend {
    grid-template-columns: 65px minmax(0, 1fr);
    gap: 8px;
    font-size: 19px;
  }
}

/* Public correction cascade guard — intentionally the final rules in this file. */
.bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-answer-grid > :is(.bba-question-introduction, .bba-question-selection-instruction, .bba-question-educational-image, .bba-question-help, .bba-question-comparison) {
  grid-column: 1 / -1;
}

.bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-brand-logo,
[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-report-logo {
  width: min(72vw, 300px);
  max-width: 100%;
}

.bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-brand-logo img,
[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-report-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}

.bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-quiz-navigation[hidden],
.bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-quiz-navigation {
  display: none !important;
}

[data-bba-presentation-mode="decision-fox"] .bba-question-comparison-item img {
  width: 120px;
  max-width: 120px;
  height: 80px;
  max-height: 80px;
  object-fit: contain;
}

@media (min-width: 60rem) {
  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) .bba-investigation-main {
    padding: clamp(20px, 2vw, 32px);
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) :is(.bba-question-introduction, .bba-question-selection-instruction, .bba-question-help) {
    margin-bottom: 10px;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) .bba-educational-image {
    width: min(100%, 360px);
    margin: 2px auto 10px;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) .bba-question-educational-image .bba-educational-image-trigger img {
    max-height: 180px;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) .bba-answer-grid {
    gap: 12px;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) .bba-question label {
    min-height: 72px;
    padding: 14px 16px;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-question-comparison-item img {
    width: 150px;
    max-width: 150px;
    height: 100px;
    max-height: 100px;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result :is(.bba-investigation-workspace, .bba-investigation-main, .bba-decision-fox-report) {
    width: 100%;
    max-width: none;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-investigation-main {
    margin: 0;
    padding: 0;
  }
}

/* November 24 presentation refinements. Scoped to Decision Fox. */
.bba-interactive-launcher[data-bba-presentation-mode="decision-fox"] .bba-launcher-title {
  hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

.bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-header,
.bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-header-content,
.bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-brand-logo {
  overflow: visible;
}

.bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-brand-logo,
[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-report-logo {
  width: min(72vw, 300px);
}

.bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-brand-logo img,
[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-report-logo {
  aspect-ratio: 2172 / 724;
  max-height: none !important;
  clip-path: none;
  object-fit: contain;
  object-position: center;
}

.bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-question-introduction {
  font-size: 17px;
  line-height: 1.5;
}

.bba-interactive-modal[data-bba-presentation-mode="decision-fox"] :is(.bba-question-selection-instruction, .bba-question-help) {
  font-size: 16px;
  line-height: 1.5;
}

.bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-section-title {
  font-size: 24px;
  line-height: 1.25;
}

.bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-report-footer {
  display: grid;
}

@media (min-width: 60rem) {
  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-header {
    min-height: 116px;
    padding-block: 8px;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"]:not(.bba-interactive-showing-result) .bba-answer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 59.999rem) {
  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-brand-logo {
    width: min(72vw, 270px);
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-question-introduction {
    font-size: 16px;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-decision-fox-section-title {
    font-size: 21px;
  }
}

/* November 24 responsive layout correction. Keep this final in the cascade. */
@media (max-width: 59.999rem) {
  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-header {
    min-height: 72px;
    padding: 7px max(10px, env(safe-area-inset-right)) 7px max(10px, env(safe-area-inset-left));
    align-items: center;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-header-content {
    display: flex;
    align-items: center;
    min-width: 0;
  }

  html body .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-brand-logo {
    width: min(58vw, 218px);
    max-width: calc(100vw - 76px - env(safe-area-inset-left) - env(safe-area-inset-right));
    height: auto;
    max-height: none;
    margin: 0;
    line-height: 0;
  }

  html body .bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-brand-logo img {
    width: 100%;
    height: auto !important;
    max-height: 72px !important;
    object-fit: contain;
    object-position: left center;
  }

  .bba-interactive-launcher[data-bba-presentation-mode="decision-fox"] .bba-launcher-media {
    min-height: 0;
    max-height: 8rem;
    padding: 0.5rem 0.65rem 0;
    align-items: center;
  }

  .bba-interactive-launcher[data-bba-presentation-mode="decision-fox"] .bba-launcher-image {
    width: min(100%, 9rem);
    height: auto;
    max-height: 7.25rem;
    object-position: center;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-question-comparison-items {
    grid-template-columns: minmax(0, 1fr);
  }

  [data-bba-presentation-mode="decision-fox"] .bba-question-comparison-item,
  [data-bba-presentation-mode="decision-fox"] .bba-question-comparison-image,
  [data-bba-presentation-mode="decision-fox"] .bba-question-comparison-image .bba-educational-image-trigger {
    width: 100%;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-question-comparison-image {
    margin: 0 auto 10px;
    text-align: center;
  }

  [data-bba-presentation-mode="decision-fox"] .bba-question-comparison-image .bba-educational-image-trigger img,
  [data-bba-presentation-mode="decision-fox"] .bba-question-comparison-item img {
    width: min(100%, 360px) !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 220px !important;
    margin-inline: auto;
    object-fit: contain;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-report-simplified {
    gap: 10px;
    padding-bottom: 10px;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-report-simplified .bba-decision-fox-finding-hero {
    min-height: 0;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-report-simplified .bba-decision-fox-finding-intro {
    padding-block: 12px;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-report-simplified :is(.bba-decision-fox-primary-recommendation, .bba-decision-fox-complementary, .bba-decision-fox-simplified-details, .bba-decision-fox-email-slot, .bba-safety-notice) {
    width: min(100% - 16px, 1120px);
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-report-simplified .bba-decision-fox-complementary {
    margin-top: 8px;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-report-simplified .bba-decision-fox-recommendation-card {
    gap: 10px;
    padding: 14px;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-report-simplified .bba-decision-fox-section-title {
    margin-bottom: 6px;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-report-simplified .bba-result-disclosure {
    margin-bottom: 5px;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-report-simplified .bba-result-disclosure summary {
    min-height: 48px;
    padding-block: 9px;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-report-simplified .bba-result-disclosure-content {
    padding-bottom: 12px;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-report-simplified .bba-safety-notice {
    padding: 10px 12px;
  }
}

@media (min-width: 60rem) {
  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-report-simplified > .bba-decision-fox-primary-recommendation,
  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-report-simplified > .bba-decision-fox-complementary {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-report-footer {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-footer-finish {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 9px 22px;
    border: 1px solid var(--bba-df-forest);
    border-radius: 12px;
    background: var(--bba-df-forest);
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
  }
}

/* Final publisher-attribution cascade guard. */
.bba-interactive-launcher[data-bba-presentation-mode="decision-fox"] .bba-launcher-publisher-attribution {
  margin: 12px 0 0;
  color: #607078;
  font-size: 13px;
  font-weight: 550;
  line-height: 1.35;
}

.bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-attribution {
  display: none !important;
}

.bba-interactive-modal[data-bba-presentation-mode="decision-fox"] :is(.bba-question, .bba-question fieldset, .bba-question legend, .bba-decision-fox-report-simplified) {
  width: 100%;
  max-width: none;
}

.bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-footer-brand {
  color: #607078;
  font-size: 13px;
  font-weight: 550;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}

@media (max-width: 59.999rem) {
  .bba-interactive-launcher[data-bba-presentation-mode="decision-fox"] .bba-launcher-publisher-attribution {
    margin-top: 9px;
    font-size: 12px;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-footer-brand:not([hidden]) {
    display: block;
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 2px 0 0;
    text-align: center;
  }
}

/* Publisher/character compatibility guard for previously published Decision Fox configs. */
.bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-finding-hero-no-character {
  grid-template-columns: minmax(0, 1fr);
}

.bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-finding-hero-no-character .bba-decision-fox-finding-intro {
  grid-column: 1;
  max-width: none;
}

.bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-report-footer {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
}

.bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-footer-finish {
  grid-column: 1;
  grid-row: 1;
  width: min(100%, 420px);
}

.bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-footer-brand:not([hidden]) {
  display: block;
  grid-column: 1;
  grid-row: 2;
  margin: 2px 0 0;
  text-align: center;
}

@media (min-width: 60rem) {
  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-finding-hero-no-character {
    padding-right: 38px;
  }
}

/* Focused findings-character and question-position refinements. Keep final. */
.bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-interactive-body {
  scroll-padding-top: 12px;
}

.bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-question legend,
.bba-interactive-modal[data-bba-presentation-mode="decision-fox"] .bba-question-step {
  scroll-margin-top: 12px;
}

@media (min-width: 60rem) {
  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-finding-hero-has-character {
    grid-template-columns: minmax(0, 1fr) 280px;
    min-height: 250px;
    padding: 0 24px 0 38px;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-finding-character {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    justify-content: center;
    width: 100%;
    height: 240px;
    margin: 0;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-finding-character img {
    width: auto;
    max-width: 100%;
    height: 240px;
    max-height: 240px;
    object-fit: contain;
    object-position: center bottom;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-finding-intro {
    grid-column: 1;
    grid-row: 1;
    padding: 24px 18px 24px 0;
  }
}

@media (max-width: 59.999rem) {
  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-finding-hero-has-character {
    grid-template-columns: minmax(0, 1fr) minmax(96px, 30vw);
    align-items: end;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-finding-character {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    justify-content: center;
    width: 100%;
    height: clamp(112px, 32vw, 150px);
    margin: 0;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-finding-character img {
    width: auto;
    max-width: 100%;
    height: 100%;
    max-height: 150px;
    object-fit: contain;
    object-position: center bottom;
  }

  .bba-interactive-modal[data-bba-presentation-mode="decision-fox"].bba-interactive-showing-result .bba-decision-fox-finding-intro {
    grid-column: 1;
    grid-row: 1;
    padding-right: 8px;
  }
}
