Jump to content

MediaWiki:Gadget-wix-interactive.css

From Insurer Brain

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* ================================================================
   WIX-INTERACTIVE.CSS — Wiki Interactive Experience: Complex Widgets
   ================================================================
   Loaded via ResourceLoader alongside wix-interactive.js.
   Depends on design tokens defined in wix-core.css.

   Dispatches styles by widget type. Each widget uses a distinct
   class prefix (e.g. wix-sim- for simulators).
   ================================================================ */


/* ================================================================
   POOL SIMULATOR — data-wix-module="pool-simulator"
   Side-by-side comparison: self-insured vs pooled risk.
   ================================================================ */


/* ── 1. Panels Grid ──────────────────────────────────────────────
   Two-column layout for the Alone / Pool panels.
   Stacks vertically on narrow screens.
   ──────────────────────────────────────────────────────────────── */

.wix-sim-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 640px) {
  .wix-sim-panels {
    grid-template-columns: 1fr;
  }
}


/* ── 2. Panel Base + Variants ────────────────────────────────────
   Each panel is a card with a colored top border.
   ──────────────────────────────────────────────────────────────── */

.wix-sim-panel {
  background: var(--wix-bg-subtle);
  border: 1px solid var(--wix-border);
  border-radius: var(--wix-radius);
  padding: 1.25rem;
}

.wix-sim-panel--alone {
  border-top: 3px solid var(--wix-wrong);
}

.wix-sim-panel--pool {
  border-top: 3px solid var(--wix-correct);
}


/* ── 3. Panel Header ─────────────────────────────────────────────
   Small label + title at top of each panel.
   ──────────────────────────────────────────────────────────────── */

.wix-sim-label {
  font-size: 0.85em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.wix-sim-label--alone {
  color: var(--wix-wrong);
}

.wix-sim-label--pool {
  color: var(--wix-correct);
}

.wix-sim-title {
  font-weight: 600;
  margin-bottom: 0.75rem;
}


/* ── 4. Stat Boxes ───────────────────────────────────────────────
   Row of key figures (savings, total spent).
   ──────────────────────────────────────────────────────────────── */

.wix-sim-stats {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.wix-sim-stat {
  flex: 1;
  background: var(--wix-bg);
  border: 1px solid var(--wix-border-subtle);
  border-radius: var(--wix-radius);
  padding: 0.5rem 0.65rem;
}

.wix-sim-stat-label {
  font-size: 0.85em;
  color: var(--wix-text-muted);
  margin-bottom: 0.15rem;
}

.wix-sim-stat-val {
  font-weight: 700;
}


/* ── 5. Chart Area ───────────────────────────────────────────────
   Canvas wrapper with fixed height.
   ──────────────────────────────────────────────────────────────── */

.wix-sim-chart {
  position: relative;
  height: 140px;
  margin-top: 0.5rem;
}

.wix-sim-chart canvas {
  width: 100%;
  height: 100%;
}


/* ── 6. Event Log ────────────────────────────────────────────────
   Single-line status message below the chart.
   ──────────────────────────────────────────────────────────────── */

.wix-sim-log {
  margin-top: 0.75rem;
  font-size: 0.85em;
  min-height: 1.25em;
  line-height: 1.45;
}

.wix-sim-log--hit {
  color: var(--wix-wrong);
  font-weight: 600;
}

.wix-sim-log--safe {
  color: var(--wix-text-muted);
}


/* ── 7. Controls Bar ─────────────────────────────────────────────
   Flex row: buttons + year display + speed slider.
   ──────────────────────────────────────────────────────────────── */

.wix-sim-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.wix-sim-year {
  font-size: 0.85em;
  color: var(--wix-text-muted);
  min-width: 5.5rem;
}

.wix-sim-speed {
  font-size: 0.85em;
  color: var(--wix-text-muted);
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.wix-sim-speed input[type="range"] {
  width: 4.5rem;
  vertical-align: middle;
}


/* ── 8. Summary ──────────────────────────────────────────────────
   Results panel shown after the simulation ends.
   ──────────────────────────────────────────────────────────────── */

.wix-sim-summary {
  margin-top: 1rem;
  padding: 1.25rem;
  border-radius: var(--wix-radius);
  background: var(--wix-bg-subtle);
  border: 1px solid var(--wix-border);
}

.wix-sim-summary-title {
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.wix-sim-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 480px) {
  .wix-sim-summary-grid {
    grid-template-columns: 1fr;
  }
}

.wix-sim-summary-heading {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.wix-sim-summary-heading--alone {
  color: var(--wix-wrong);
}

.wix-sim-summary-heading--pool {
  color: var(--wix-correct);
}

.wix-sim-summary-item {
  font-size: 0.85em;
  line-height: 1.6;
}


/* ── 9. Mobile Adjustments ───────────────────────────────────────
   Tighter padding on narrow screens.
   ──────────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
  .wix-sim-panel {
    padding: 1rem;
  }

  .wix-sim-stat {
    padding: 0.4rem 0.5rem;
  }
}


/* ================================================================
   INSURER ENGINES — data-wix-module="insurer-engines"
   Two-engine profit simulator: underwriting + investment.
   ================================================================ */


/* ── 10. Outer Wrapper ───────────────────────────────────────────
    Single containing card for the entire widget.
    ──────────────────────────────────────────────────────────────── */

.wix-eng-wrapper {
  background: var(--wix-bg-subtle);
  border: 1px solid var(--wix-border);
  border-radius: var(--wix-radius);
  padding: 1.5rem;
}

@media (max-width: 480px) {
  .wix-eng-wrapper {
    padding: 1rem;
  }
}


/* ── 11. Fixed Info Row ──────────────────────────────────────────
    Key facts strip at the top (policies, premiums, expenses).
    ──────────────────────────────────────────────────────────────── */

.wix-eng-fixed {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-bottom: 1.25rem;
  padding: 0.65rem 1rem;
  border-radius: var(--wix-radius);
  background: var(--wix-bg-subtle);
  font-size: 0.85em;
  color: var(--wix-text-muted);
}

.wix-eng-fixed span {
  color: var(--wix-text);
  font-weight: 600;
}


/* ── 11. Scenario Strip ──────────────────────────────────────────
    Row of preset scenario buttons.
    ──────────────────────────────────────────────────────────────── */

.wix-eng-section-label {
  font-size: 0.85em;
  color: var(--wix-text-muted);
  margin-bottom: 0.4rem;
}

.wix-eng-scenario-strip {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.wix-eng-scenario-btn {
  flex: 1;
  padding: 0.55rem 0.5rem;
  border-radius: var(--wix-radius);
  border: 1px solid var(--wix-border);
  background: var(--wix-bg);
  font: inherit;
  font-size: 0.85em;
  color: var(--wix-text-muted);
  cursor: pointer;
  text-align: center;
  line-height: 1.35;
  transition:
    border-color var(--wix-transition),
    background   var(--wix-transition),
    color        var(--wix-transition);
  -webkit-tap-highlight-color: transparent;
}

.wix-eng-scenario-btn:hover {
  border-color: var(--wix-accent);
  background: var(--wix-accent-light);
}

.wix-eng-scenario-btn--active {
  border-color: var(--wix-accent);
  background: var(--wix-accent-light);
  color: var(--wix-accent);
  font-weight: 600;
}


/* ── 12. Slider Rows ─────────────────────────────────────────────
    Label + range input + value display.
    ──────────────────────────────────────────────────────────────── */

.wix-eng-slider-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.wix-eng-slider-label {
  font-size: 0.85em;
  color: var(--wix-text-muted);
  min-width: 8rem;
}

.wix-eng-slider-row input[type="range"] {
  flex: 1;
}

.wix-eng-slider-val {
  font-weight: 600;
  min-width: 4rem;
  text-align: right;
}


/* ── 13. Divider ─────────────────────────────────────────────────
    Horizontal rule between sections.
    ──────────────────────────────────────────────────────────────── */

.wix-eng-divider {
  height: 1px;
  background: var(--wix-border-subtle);
  margin: 1.25rem 0;
}


/* ── 14. Engine Cards ────────────────────────────────────────────
    Underwriting and investment engine displays.
    ──────────────────────────────────────────────────────────────── */

.wix-eng-card {
  border: 1px solid var(--wix-border);
  border-radius: var(--wix-radius);
  padding: 1rem;
  background: var(--wix-bg);
  margin-bottom: 0.65rem;
}

.wix-eng-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.wix-eng-title {
  font-size: 0.85em;
  color: var(--wix-text-muted);
}

.wix-eng-val {
  font-weight: 700;
}

.wix-eng-detail {
  font-size: 0.85em;
  color: var(--wix-text-muted);
  margin-top: 0.35rem;
  line-height: 1.55;
}

.wix-eng-bar-track {
  height: 6px;
  border-radius: 3px;
  background: var(--wix-bg-subtle);
  margin-top: 0.6rem;
}

.wix-eng-bar {
  height: 6px;
  border-radius: 3px;
  transition: width 0.35s ease, background 0.35s ease;
  min-width: 2px;
}


/* ── 15. Combined Ratio Box ──────────────────────────────────────
    Single-line metric between the two engine cards.
    ──────────────────────────────────────────────────────────────── */

.wix-eng-cr {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  border-radius: var(--wix-radius);
  background: var(--wix-bg-subtle);
  margin-bottom: 0.65rem;
}

.wix-eng-cr-label {
  font-size: 0.85em;
  color: var(--wix-text-muted);
}

.wix-eng-cr-val {
  font-weight: 700;
}

.wix-eng-cr-sub {
  font-size: 0.85em;
  color: var(--wix-text-muted);
  margin-left: auto;
}


/* ── 16. Total Profit Box ────────────────────────────────────────
    Bottom-line result card.
    ──────────────────────────────────────────────────────────────── */

.wix-eng-total {
  border: 1px solid var(--wix-border);
  border-radius: var(--wix-radius);
  padding: 1rem;
  background: var(--wix-bg);
  margin-bottom: 0.65rem;
}

.wix-eng-total-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.wix-eng-total-label {
  font-size: 0.85em;
  color: var(--wix-text-muted);
}

.wix-eng-total-val {
  font-weight: 700;
}

.wix-eng-total-sub {
  font-size: 0.85em;
  color: var(--wix-text-muted);
  margin-top: 0.2rem;
}


/* ── 17. Callout ─────────────────────────────────────────────────
    Contextual message below the total.
    ──────────────────────────────────────────────────────────────── */

.wix-eng-callout {
  padding: 0.65rem 1rem;
  border-radius: var(--wix-radius);
  font-size: 0.85em;
  line-height: 1.55;
  border-left: 4px solid transparent;
  transition:
    background   var(--wix-transition),
    color        var(--wix-transition),
    border-color var(--wix-transition);
}

.wix-eng-callout--profit {
  background: var(--wix-correct-bg);
  border-left-color: var(--wix-correct);
  color: var(--wix-correct);
}

.wix-eng-callout--loss {
  background: var(--wix-wrong-bg);
  border-left-color: var(--wix-wrong);
  color: var(--wix-wrong);
}


/* ── 18. Insurer Engines Mobile ──────────────────────────────────
    Adjustments for narrow screens.
    ──────────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
  .wix-eng-slider-label {
    min-width: 6rem;
  }

  .wix-eng-card,
  .wix-eng-total {
    padding: 0.75rem;
  }

  .wix-eng-cr {
    flex-wrap: wrap;
  }

  .wix-eng-cr-sub {
    margin-left: 0;
    width: 100%;
  }
}


/* ================================================================
   PREMIUM MATCHING — data-wix-module="premium-matching"
   Revenue recognition: front-loaded vs matched.
   ================================================================ */


/* ── 19. Mode Toggle Buttons ────────────────────────────────────
   Row of two mode-selection buttons.
   ──────────────────────────────────────────────────────────────── */

.wix-pm-modes {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.wix-pm-mode-btn {
  padding: 0.45rem 0.85rem;
  border-radius: var(--wix-radius);
  border: 1px solid var(--wix-border);
  background: var(--wix-bg);
  font: inherit;
  font-size: 0.85em;
  color: var(--wix-text-muted);
  cursor: pointer;
  transition:
    border-color var(--wix-transition),
    background   var(--wix-transition),
    color        var(--wix-transition);
  -webkit-tap-highlight-color: transparent;
}

.wix-pm-mode-btn:hover {
  border-color: var(--wix-accent);
  background: var(--wix-accent-light);
}

.wix-pm-mode-btn--active {
  border-color: var(--wix-accent);
  background: var(--wix-accent-light);
  color: var(--wix-accent);
  font-weight: 600;
}


/* ── 20. Stat Cards Row ─────────────────────────────────────────
   Three side-by-side metric cards.
   ──────────────────────────────────────────────────────────────── */

.wix-pm-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 480px) {
  .wix-pm-stats {
    grid-template-columns: 1fr;
  }
}

.wix-pm-stat {
  background: var(--wix-bg-subtle);
  border: 1px solid var(--wix-border);
  border-radius: var(--wix-radius);
  padding: 0.65rem 0.85rem;
}

.wix-pm-stat-label {
  font-size: 0.85em;
  color: var(--wix-text-muted);
  margin-bottom: 0.15rem;
}

.wix-pm-stat-val {
  font-size: 1.25em;
  font-weight: 700;
}

.wix-pm-stat-val--profit {
  color: var(--wix-correct);
}


/* ── 21. Chart Area ─────────────────────────────────────────────
   Canvas wrapper with fixed height.
   ──────────────────────────────────────────────────────────────── */

.wix-pm-chart {
  position: relative;
  height: 280px;
  margin-bottom: 0.5rem;
}

.wix-pm-chart canvas {
  width: 100%;
  height: 100%;
}

@media (max-width: 480px) {
  .wix-pm-chart {
    height: 220px;
  }
}


/* ── 22. Legend ──────────────────────────────────────────────────
   Horizontal legend row below the chart.
   ──────────────────────────────────────────────────────────────── */

.wix-pm-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85em;
  color: var(--wix-text-muted);
}

.wix-pm-legend-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.wix-pm-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.wix-pm-swatch--rev {
  background: var(--wix-correct);
}

.wix-pm-swatch--exp {
  background: var(--wix-wrong);
}

.wix-pm-swatch--profit {
  background: var(--wix-accent);
}


/* ================================================================
   RESERVE SENSITIVITY — data-wix-module="reserve-sensitivity"
   Slider showing reserve reassessment impact on P&L and equity.
   ================================================================ */


/* ── 23. Slider Row ─────────────────────────────────────────────
   Range input flanked by -5% / +5% labels.
   ──────────────────────────────────────────────────────────────── */

.wix-rs-slider-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.wix-rs-slider-row input[type="range"] {
  flex: 1;
}

.wix-rs-bound {
  font-size: 0.85em;
  color: var(--wix-text-muted);
  flex-shrink: 0;
}


/* ── 24. Stat Cards Grid ────────────────────────────────────────
   Two-column grid of metric cards.
   ──────────────────────────────────────────────────────────────── */

.wix-rs-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 480px) {
  .wix-rs-cards {
    grid-template-columns: 1fr;
  }
}

.wix-rs-card {
  background: var(--wix-bg);
  border: 1px solid var(--wix-border-subtle);
  border-radius: var(--wix-radius);
  padding: 0.75rem 1rem;
}

.wix-rs-card-label {
  font-size: 0.85em;
  color: var(--wix-text-muted);
  margin-bottom: 0.15rem;
}

.wix-rs-card-num {
  font-size: 1.3em;
  font-weight: 700;
}

.wix-rs-card-num--pos {
  color: var(--wix-correct);
}

.wix-rs-card-num--neg {
  color: var(--wix-wrong);
}

.wix-rs-card-num--muted {
  color: var(--wix-text-muted);
}


/* ── 25. Bar Charts ─────────────────────────────────────────────
   Horizontal bidirectional bars with a center line.
   ──────────────────────────────────────────────────────────────── */

.wix-rs-bars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1.25rem;
}

@media (max-width: 480px) {
  .wix-rs-bars {
    grid-template-columns: 1fr;
  }
}

.wix-rs-bar-label {
  font-size: 0.85em;
  color: var(--wix-text-muted);
  margin-bottom: 0.35rem;
}

.wix-rs-bar-track {
  height: 32px;
  background: var(--wix-bg);
  border: 1px solid var(--wix-border-subtle);
  border-radius: var(--wix-radius);
  position: relative;
  overflow: hidden;
}

.wix-rs-bar-fill {
  position: absolute;
  top: 0;
  height: 100%;
  transition: left 0.15s ease, width 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85em;
  font-weight: 600;
  color: #fff;
}

.wix-rs-bar-center {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 100%;
  background: var(--wix-border);
}


/* ================================================================
   IFRS TIMELINE — data-wix-module="ifrs-timeline"
   Interactive horizontal milestone timeline.
   ================================================================ */


/* ── 26. Track ──────────────────────────────────────────────────
   Horizontal line with positioned dots.
   ──────────────────────────────────────────────────────────────── */

.wix-tl-track {
  position: relative;
  margin: 0 0 1.25rem;
  padding: 0 0.75rem;
}

.wix-tl-line {
  position: absolute;
  top: 7px;
  left: 0.75rem;
  right: 0.75rem;
  height: 2px;
  background: var(--wix-border);
}

.wix-tl-dots {
  display: flex;
  justify-content: space-between;
  position: relative;
}


/* ── 27. Dot Wraps ──────────────────────────────────────────────
   Clickable dot + year label pairs along the track.
   ──────────────────────────────────────────────────────────────── */

.wix-tl-dot-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  z-index: 1;
  -webkit-tap-highlight-color: transparent;
}

.wix-tl-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--wix-accent);
  background: var(--wix-bg);
  transition:
    border-color var(--wix-transition),
    background   var(--wix-transition),
    transform    var(--wix-transition);
}

.wix-tl-dot-wrap:hover .wix-tl-dot {
  transform: scale(1.2);
}

.wix-tl-dot-wrap--active .wix-tl-dot {
  border-color: var(--wix-accent);
  background: var(--wix-accent);
  transform: scale(1.3);
}

/* Insurance-specific category */
.wix-tl-dot-wrap--ins .wix-tl-dot {
  border-color: var(--wix-wrong);
}

.wix-tl-dot-wrap--ins.wix-tl-dot-wrap--active .wix-tl-dot {
  background: var(--wix-wrong);
  border-color: var(--wix-wrong);
}

.wix-tl-year {
  font-size: 0.75em;
  color: var(--wix-text-muted);
  margin-top: 0.35rem;
  white-space: nowrap;
}

.wix-tl-dot-wrap--active .wix-tl-year {
  color: var(--wix-text);
  font-weight: 600;
}


/* ── 28. Detail Card ────────────────────────────────────────────
   Content panel shown for the selected event.
   ──────────────────────────────────────────────────────────────── */

.wix-tl-card {
  background: var(--wix-bg);
  border: 1px solid var(--wix-border-subtle);
  border-left: 4px solid var(--wix-accent);
  border-radius: var(--wix-radius);
  padding: 0.85rem 1rem;
  min-height: 4.5rem;
  transition: border-left-color var(--wix-transition);
}

.wix-tl-card-title {
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.wix-tl-card-body {
  font-size: 0.85em;
  color: var(--wix-text-muted);
  line-height: 1.6;
}


/* ── 29. Legend ──────────────────────────────────────────────────
   Category legend below the card.
   ──────────────────────────────────────────────────────────────── */

.wix-tl-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.85em;
  color: var(--wix-text-muted);
}

.wix-tl-legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.wix-tl-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.wix-tl-legend-dot--ifrs {
  background: var(--wix-accent);
}

.wix-tl-legend-dot--ins {
  background: var(--wix-wrong);
}


/* ── 30. Navigation Buttons ─────────────────────────────────────
   Previous / Next row.
   ──────────────────────────────────────────────────────────────── */

.wix-tl-nav {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}


/* ── 31. Timeline Mobile ────────────────────────────────────────
   On narrow screens, hide year labels for non-active dots to
   prevent overlap, and tighten padding.
   ──────────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
  .wix-tl-dot-wrap:not(.wix-tl-dot-wrap--active) .wix-tl-year {
    display: none;
  }

  .wix-tl-track {
    padding: 0 0.25rem;
  }

  .wix-tl-line {
    left: 0.25rem;
    right: 0.25rem;
  }
}


/* ================================================================
   LIABILITY WATERFALL — data-wix-module="liability-waterfall"
   Waterfall chart decomposing an insurance liability into IFRS 17
   building blocks.
   ================================================================ */


/* ── 32. Chart Area ─────────────────────────────────────────────
   Canvas wrapper with fixed height.
   ──────────────────────────────────────────────────────────────── */

.wix-wf-chart {
  position: relative;
  height: 290px;
  margin-bottom: 0.5rem;
}

.wix-wf-chart canvas {
  width: 100%;
  height: 100%;
}


/* ── 33. Detail Card ────────────────────────────────────────────
   Info panel below the chart for the selected block.
   ──────────────────────────────────────────────────────────────── */

.wix-wf-detail {
  background: var(--wix-bg);
  border: 1px solid var(--wix-border-subtle);
  border-radius: var(--wix-radius);
  padding: 0.85rem 1rem;
  margin-top: 1rem;
  min-height: 3.5rem;
}

.wix-wf-detail-title {
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.wix-wf-detail-body {
  font-size: 0.85em;
  color: var(--wix-text-muted);
  line-height: 1.6;
}


/* ================================================================
   PROB-WEIGHTED — data-wix-module="prob-weighted"
   Probability-weighted estimate calculator with two scenarios.
   ================================================================ */


/* ── 34. Scenario Calc Grid ─────────────────────────────────────
   Three-column layout: quiet | + | flood.
   ──────────────────────────────────────────────────────────────── */

.wix-pw-calc {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.5rem;
  align-items: start;
  margin-bottom: 0.65rem;
}

.wix-pw-scene {
  border-radius: var(--wix-radius);
  padding: 0.85rem 1rem;
  text-align: center;
}

.wix-pw-scene-title {
  font-size: 0.85em;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.wix-pw-scene-val {
  font-size: 1.25em;
  font-weight: 700;
}

.wix-pw-op {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15em;
  font-weight: 600;
  color: var(--wix-text-muted);
  align-self: center;
}


/* ── 35. Probability Row ────────────────────────────────────────
   Multiplier row: x quiet% | (spacer) | x flood%.
   ──────────────────────────────────────────────────────────────── */

.wix-pw-prob-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.wix-pw-mult-x {
  font-size: 0.95em;
  color: var(--wix-text-muted);
  margin-bottom: 0.2rem;
}

.wix-pw-prob {
  text-align: center;
  border-radius: var(--wix-radius);
  padding: 0.5rem 0.75rem;
}

.wix-pw-prob-num {
  font-size: 1.1em;
  font-weight: 700;
}


/* ── 36. Equals Sign ────────────────────────────────────────────
   Centered = between probability row and result.
   ──────────────────────────────────────────────────────────────── */

.wix-pw-eq {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.wix-pw-eq-sign {
  font-size: 1.25em;
  color: var(--wix-text-muted);
}


/* ── 37. Result Card ────────────────────────────────────────────
   Final probability-weighted estimate.
   ──────────────────────────────────────────────────────────────── */

.wix-pw-result {
  background: var(--wix-accent-light);
  border-radius: var(--wix-radius);
  padding: 0.85rem 1rem;
  text-align: center;
}

.wix-pw-result-label {
  font-size: 0.85em;
  color: var(--wix-accent);
  margin-bottom: 0.2rem;
}

.wix-pw-result-num {
  font-size: 1.5em;
  font-weight: 700;
  color: var(--wix-accent);
  margin-bottom: 0.3rem;
}

.wix-pw-result-vs {
  font-size: 0.85em;
  color: var(--wix-accent);
}


/* ================================================================
   DISCOUNT RATE — data-wix-module="discount-rate"
   Discount-rate dashboard with chart and table.
   ================================================================ */


/* ── 38. Stat Cards (3-column) ──────────────────────────────────
   ──────────────────────────────────────────────────────────────── */

.wix-dr-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0;
}

@media (max-width: 480px) {
  .wix-dr-cards {
    grid-template-columns: 1fr;
  }
}

.wix-dr-box {
  margin-top: 0.65rem;
}


/* ── 39. Chart Area ─────────────────────────────────────────────
   ──────────────────────────────────────────────────────────────── */

.wix-dr-chart {
  position: relative;
  height: 260px;
  margin-bottom: 0.5rem;
}

.wix-dr-chart canvas {
  width: 100%;
  height: 100%;
}

@media (max-width: 480px) {
  .wix-dr-chart {
    height: 200px;
  }
}


/* ── 40. Nominal Legend Swatch ───────────────────────────────────
   Dashed line swatch for the nominal reference line.
   ──────────────────────────────────────────────────────────────── */

.wix-dr-nom-swatch {
  display: inline-block;
  width: 16px;
  height: 0;
  border-top: 1.5px dashed var(--wix-border);
  vertical-align: middle;
}


/* ── 41. Table ──────────────────────────────────────────────────
   Year-by-year unwinding table.
   ──────────────────────────────────────────────────────────────── */

.wix-dr-table {
  margin-top: 0.75rem;
}

.wix-dr-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85em;
}

.wix-dr-tbl th,
.wix-dr-tbl td {
  padding: 0.4rem 0.6rem;
  border-bottom: 1px solid var(--wix-border-subtle);
}

.wix-dr-tbl th {
  text-align: right;
  color: var(--wix-text-muted);
  font-weight: 600;
}

.wix-dr-tbl th:first-child {
  text-align: left;
}

.wix-dr-tbl td {
  text-align: right;
}

.wix-dr-tbl td:first-child {
  text-align: left;
}


/* ================================================================
   BALANCE SHEET — data-wix-module="balance-sheet"
   Two-column stacked bar: assets vs liabilities with brackets.
   ================================================================ */


/* ── 42. Chart Area ─────────────────────────────────────────────
   Canvas wrapper with fixed height.
   ──────────────────────────────────────────────────────────────── */

.wix-bs-chart {
  position: relative;
  height: 400px;
  margin-bottom: 0.5rem;
}

.wix-bs-chart canvas {
  width: 100%;
  height: 100%;
}

@media (max-width: 480px) {
  .wix-bs-chart {
    height: 340px;
  }
}


/* ================================================================
   RISK ADJUSTMENT — data-wix-module="risk-adjustment"
   Brittany storm: lognormal claim distribution with confidence slider.
   ================================================================ */


/* ── 51. Confidence Slider Row ──────────────────────────────────── */

.wix-ra-slider-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.wix-ra-slider-label {
  font-size: 0.85em;
  color: var(--wix-text-muted);
  white-space: nowrap;
}

.wix-ra-slider-row input[type="range"] {
  flex: 1;
}

.wix-ra-slider-val {
  font-weight: 600;
  min-width: 2.5rem;
  text-align: right;
}


/* ── 52. Stat Cards Row ─────────────────────────────────────────── */

.wix-ra-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 480px) {
  .wix-ra-stats {
    grid-template-columns: 1fr;
  }
}

.wix-ra-stat {
  background: var(--wix-bg-subtle);
  border: 1px solid var(--wix-border);
  border-radius: var(--wix-radius);
  padding: 0.65rem 0.85rem;
}

.wix-ra-stat-label {
  font-size: 0.85em;
  color: var(--wix-text-muted);
  margin-bottom: 0.15rem;
}

.wix-ra-stat-val {
  font-size: 1.35em;
  font-weight: 700;
}

.wix-ra-stat-val--accent {
  color: var(--wix-wrong);
}


/* ── 53. Chart Container ────────────────────────────────────────── */

.wix-ra-chart {
  position: relative;
  height: 280px;
  margin-bottom: 0.5rem;
}

.wix-ra-chart canvas {
  width: 100%;
  height: 100%;
}

@media (max-width: 480px) {
  .wix-ra-chart {
    height: 220px;
  }
}


/* ── 54. Legend Row ──────────────────────────────────────────────── */

.wix-ra-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8em;
  color: var(--wix-text-muted);
  margin-bottom: 0.75rem;
}

.wix-ra-legend-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.wix-ra-legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}


/* ── 55. Explanation Text ───────────────────────────────────────── */

.wix-ra-explain {
  font-size: 0.85em;
  color: var(--wix-text-muted);
  line-height: 1.6;
}


/* ================================================================
   GROUPING FUNNEL — data-wix-module="grouping-funnel"
   3-step walkthrough: portfolio → profitability → annual cohort.
   ================================================================ */


/* ── 56. Progress Steps ─────────────────────────────────────────── */

.wix-gf-steps {
  display: flex;
  gap: 4px;
  margin-bottom: 1.25rem;
}

.wix-gf-step {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--wix-border);
  transition: background var(--wix-transition);
}

.wix-gf-step--done {
  background: var(--wix-accent);
}


/* ── 57. Step Label ─────────────────────────────────────────────── */

.wix-gf-label {
  font-size: 0.85em;
  color: var(--wix-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.wix-gf-label b {
  font-weight: 600;
  color: var(--wix-text);
}


/* ── 58. Visual Area ────────────────────────────────────────────── */

.wix-gf-visual {
  min-height: 200px;
  margin-bottom: 1.25rem;
}


/* ── 59. Bar Rows ───────────────────────────────────────────────── */

.wix-gf-bar-row {
  margin-bottom: 10px;
}

.wix-gf-bar-label {
  font-size: 0.8em;
  color: var(--wix-text-muted);
  margin-bottom: 4px;
}

.wix-gf-bar {
  display: flex;
  height: 40px;
  border-radius: var(--wix-radius);
  overflow: hidden;
  gap: 3px;
}

.wix-gf-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8em;
  font-weight: 500;
  border-radius: var(--wix-radius);
  transition: all 0.4s ease;
}

.wix-gf-group-label {
  font-size: 0.75em;
  color: var(--wix-text-muted);
  margin: 2px 0 0 2px;
}


/* ── 60. Annotation Row (under profitability bar) ───────────────── */

.wix-gf-annot {
  display: flex;
  gap: 3px;
  margin: 4px 0 0;
}

.wix-gf-annot-item {
  font-size: 0.75em;
  text-align: center;
}


/* ── 61. Cohort Rows (step 3) ───────────────────────────────────── */

.wix-gf-cohort-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.wix-gf-cohort-label {
  font-size: 0.8em;
  color: var(--wix-text-muted);
  min-width: 75px;
  text-align: right;
}

.wix-gf-cohort-bar {
  display: flex;
  gap: 3px;
  flex: 1;
}

.wix-gf-cohort-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8em;
  font-weight: 500;
  height: 36px;
  border-radius: var(--wix-radius);
  transition: all 0.4s ease;
}


/* ── 62. Count Box ──────────────────────────────────────────────── */

.wix-gf-count {
  background: var(--wix-bg-subtle);
  border: 1px solid var(--wix-border);
  border-radius: var(--wix-radius);
  padding: 0.5rem 0.85rem;
  margin-bottom: 1.25rem;
  font-size: 0.85em;
  color: var(--wix-text-muted);
  line-height: 1.5;
}

.wix-gf-count b {
  font-weight: 600;
  color: var(--wix-text);
}


/* ── 63. Navigation Buttons ─────────────────────────────────────── */

.wix-gf-nav {
  display: flex;
  gap: 8px;
}

@media (max-width: 480px) {
  .wix-gf-cohort-label {
    min-width: 60px;
    font-size: 0.75em;
  }
}


/* ================================================================
   CSM ROLLFORWARD — data-wix-module="csm-rollforward"
   Horizontal waterfall: FY24 opening → movements → FY25 closing.
   ================================================================ */


/* ── 64. Slider Grid ────────────────────────────────────────────── */

.wix-csm-sliders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 1.25rem;
}

.wix-csm-slider-group label {
  font-size: 0.8em;
  color: var(--wix-text-muted);
  display: block;
  margin-bottom: 4px;
}

.wix-csm-slider-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wix-csm-slider-row input[type="range"] {
  flex: 1;
}

.wix-csm-slider-val {
  font-size: 0.8em;
  font-weight: 500;
  min-width: 52px;
  text-align: right;
}


/* ── 65. Chart Container ────────────────────────────────────────── */

.wix-csm-chart {
  position: relative;
  margin-bottom: 0.5rem;
}

.wix-csm-chart canvas {
  width: 100%;
  height: 100%;
}


/* ── 66. Explainer Panel ────────────────────────────────────────── */

.wix-csm-explainer {
  padding: 0.75rem 1rem;
  border-radius: var(--wix-radius);
  border: 1px solid var(--wix-border);
  background: var(--wix-bg-subtle);
  margin-bottom: 0.75rem;
}

.wix-csm-explainer--hidden {
  display: none;
}

.wix-csm-ex-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.wix-csm-ex-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.wix-csm-ex-title {
  font-weight: 500;
  font-size: 0.9em;
}

.wix-csm-ex-val {
  font-size: 0.85em;
  color: var(--wix-text-muted);
  margin-left: auto;
}

.wix-csm-ex-body {
  font-size: 0.85em;
  color: var(--wix-text-muted);
  line-height: 1.6;
  margin: 0;
}


/* ── 67. Hint ───────────────────────────────────────────────────── */

.wix-csm-hint {
  font-size: 0.8em;
  color: var(--wix-text-muted);
  margin-top: 0.5rem;
}


/* ── 68. Mobile ─────────────────────────────────────────────────── */

@media (max-width: 480px) {
  .wix-csm-sliders {
    grid-template-columns: 1fr;
  }
}


/* ================================================================
   BUILDING BLOCKS — data-wix-module="building-blocks"
   Stacked-bar visualisation of initial recognition building blocks.
   ================================================================ */


/* ── 69. Status Banner ──────────────────────────────────────────── */

.wix-bb-banner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  border-radius: var(--wix-radius);
  margin-bottom: 1.25rem;
  font-size: 0.85em;
  font-weight: 600;
  border: 1px solid transparent;
  transition:
    background var(--wix-transition),
    color      var(--wix-transition);
}

.wix-bb-banner--profit {
  background: var(--wix-correct-bg);
  color: var(--wix-correct);
  border-color: var(--wix-correct-border, #82e0aa);
}

.wix-bb-banner--onerous {
  background: var(--wix-wrong-bg);
  color: var(--wix-wrong);
  border-color: var(--wix-wrong-border, #f1948a);
}

.wix-bb-banner-detail {
  font-weight: 400;
  opacity: 0.85;
}


/* ── 70. Chart Area ─────────────────────────────────────────────── */

.wix-bb-chart {
  background: var(--wix-bg);
  border: 1px solid var(--wix-border);
  border-radius: var(--wix-radius);
  padding: 1.25rem 1rem 0.75rem;
  margin-bottom: 1.25rem;
  overflow: hidden;
}


/* ── 71. Bar Row ────────────────────────────────────────────────── */

.wix-bb-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 1.4rem;
  height: 340px;
  padding-bottom: 20px;
  position: relative;
}

.wix-bb-row::before {
  content: '';
  position: absolute;
  bottom: 19px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--wix-border);
}

.wix-bb-zero {
  position: absolute;
  bottom: 22px;
  left: 6px;
  font-size: 0.7em;
  color: var(--wix-text-muted);
  font-weight: 500;
}


/* ── 72. Bar Groups + Stacks ────────────────────────────────────── */

.wix-bb-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  width: 100px;
}

.wix-bb-stack {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 62px;
  height: 260px;
}

.wix-bb-seg {
  width: 100%;
  border-radius: 0;
  position: relative;
  transition: height 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.wix-bb-seg:first-child {
  border-radius: var(--wix-radius) var(--wix-radius) 0 0;
}

.wix-bb-seg-val {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.68em;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  pointer-events: none;
}

.wix-bb-bar-label {
  font-size: 0.72em;
  font-weight: 600;
  text-align: center;
  color: var(--wix-text-muted);
  line-height: 1.25;
}


/* ── 73. Operator Signs ─────────────────────────────────────────── */

.wix-bb-op {
  font-size: 1.5rem;
  color: var(--wix-text-muted);
  align-self: center;
  padding-bottom: 20px;
  opacity: 0.5;
}


/* ── 74. Legend ──────────────────────────────────────────────────── */

.wix-bb-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 0.25rem;
  font-size: 0.72em;
  color: var(--wix-text-muted);
}

.wix-bb-legend-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 500;
}

.wix-bb-legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}


/* ── 75. Slider Controls ────────────────────────────────────────── */

.wix-bb-controls {
  margin-bottom: 1.25rem;
}

.wix-bb-controls-title {
  font-size: 0.78em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--wix-text-muted);
  margin-bottom: 0.85rem;
}

.wix-bb-slider-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.wix-bb-slider-label {
  font-size: 0.82em;
  font-weight: 600;
  width: 160px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.wix-bb-slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.wix-bb-slider-row input[type="range"] {
  flex: 1;
}

.wix-bb-slider-val {
  width: 100px;
  text-align: right;
  font-size: 0.82em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}


/* ── 76. Insight Box ────────────────────────────────────────────── */

.wix-bb-insight {
  font-size: 0.85em;
  line-height: 1.65;
  color: var(--wix-text);
}

.wix-bb-insight strong { font-weight: 700; }
.wix-bb-hl-csm  { color: #27ae60; font-weight: 700; }
.wix-bb-hl-loss { color: #e74c3c; font-weight: 700; }


/* ── 77. Mobile ─────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .wix-bb-row { gap: 0.5rem; }
  .wix-bb-group { width: 68px; }
  .wix-bb-stack { width: 44px; }
  .wix-bb-bar-label { font-size: 0.62em; }
  .wix-bb-slider-label { width: 120px; font-size: 0.76em; }
  .wix-bb-slider-val { width: 85px; font-size: 0.76em; }
  .wix-bb-op { font-size: 1.2rem; }
}


/* ================================================================
   IMPACT SORT — data-wix-module="impact-sort"
   Binary classification: "Adjusts CSM" vs "Hits P&L directly".
   ================================================================ */


/* ── 78. Decision Rule Banner ───────────────────────────────────── */

.wix-is-rule {
  font-size: 0.82em;
  line-height: 1.5;
  background: #fefce8;
  border: 1px solid #fde68a;
  border-radius: var(--wix-radius);
  padding: 0.6rem 1rem;
  margin-bottom: 1.25rem;
}


/* ── 79. Score Badges ───────────────────────────────────────────── */

.wix-is-score-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.wix-is-badge {
  font-size: 0.78em;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 20px;
  border: 1px solid;
}

.wix-is-badge--correct {
  background: var(--wix-correct-bg);
  color: var(--wix-correct);
  border-color: var(--wix-correct-border, #82e0aa);
}

.wix-is-badge--wrong {
  background: var(--wix-wrong-bg);
  color: var(--wix-wrong);
  border-color: var(--wix-wrong-border, #f1948a);
}


/* ── 80. Scenario Card ──────────────────────────────────────────── */

.wix-is-card {
  background: var(--wix-bg);
  border: 2px solid var(--wix-border);
  border-radius: var(--wix-radius);
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
  position: relative;
  transition: border-color var(--wix-transition);
}

.wix-is-card-num {
  font-size: 0.68em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--wix-text-muted);
  margin-bottom: 0.4rem;
}

.wix-is-card-text {
  font-size: 0.88em;
  line-height: 1.55;
  font-weight: 500;
}

.wix-is-card-icon {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  font-size: 1.1em;
}

.wix-is-card--correct { border-color: var(--wix-correct); }
.wix-is-card--wrong   { border-color: var(--wix-wrong); }


/* ── 81. Choice Buttons ─────────────────────────────────────────── */

.wix-is-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.wix-is-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 1rem;
  border-radius: var(--wix-radius);
  border: 2px dashed;
  font: inherit;
  cursor: pointer;
  transition:
    transform   0.15s ease,
    box-shadow  0.15s ease,
    background  0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.wix-is-choice:hover {
  transform: scale(1.02);
}

.wix-is-choice:active {
  transform: scale(0.98);
}

.wix-is-choice:disabled {
  opacity: 0.45;
  cursor: default;
  transform: none;
}

.wix-is-choice-icon { font-size: 1.4em; }

.wix-is-choice-title {
  font-size: 0.85em;
  font-weight: 700;
}

.wix-is-choice-sub {
  font-size: 0.72em;
  color: var(--wix-text-muted);
  font-weight: 500;
}

.wix-is-choice--csm {
  border-color: #bfdbfe;
  background: #eff6ff;
}
.wix-is-choice--csm .wix-is-choice-title { color: #2563eb; }

.wix-is-choice--pl {
  border-color: #fecaca;
  background: #fef2f2;
}
.wix-is-choice--pl .wix-is-choice-title { color: #dc2626; }


/* ── 82. Feedback Panel ─────────────────────────────────────────── */

.wix-is-feedback {
  border-radius: var(--wix-radius);
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
  font-size: 0.85em;
  line-height: 1.6;
  animation: wixFadeIn 0.3s ease;
}

.wix-is-feedback--correct {
  background: var(--wix-correct-bg);
  border: 1px solid var(--wix-correct-border, #82e0aa);
  color: var(--wix-correct);
}

.wix-is-feedback--wrong {
  background: var(--wix-wrong-bg);
  border: 1px solid var(--wix-wrong-border, #f1948a);
  color: var(--wix-wrong);
}

.wix-is-fb-head {
  font-weight: 700;
  margin-bottom: 0.25rem;
  font-size: 0.9em;
}


/* ── 83. Final Screen ───────────────────────────────────────────── */

.wix-is-final {
  text-align: center;
  padding: 2rem 1.25rem;
}

.wix-is-final-icon { font-size: 2.5rem; margin-bottom: 0.65rem; }

.wix-is-final-title {
  font-weight: 600;
  font-size: 1.25em;
  margin-bottom: 0.4rem;
}

.wix-is-final-body {
  font-size: 0.88em;
  color: var(--wix-text-muted);
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto 1.15rem;
}


/* ── 84. Mobile ─────────────────────────────────────────────────── */

@media (max-width: 480px) {
  .wix-is-choices {
    grid-template-columns: 1fr;
  }
}


/* ================================================================
   INCOME BUILDER — data-wix-module="income-builder"
   Sort 9 items into 3 IFRS 17 income statement sections.
   ================================================================ */

/* ── category colour tokens (scoped) ── */
[data-wix-module="income-builder"] {
  --ib-rev:        #1d4ed8;
  --ib-rev-bg:     #eff6ff;
  --ib-rev-border: #bfdbfe;
  --ib-exp:        #b45309;
  --ib-exp-bg:     #fffbeb;
  --ib-exp-border: #fde68a;
  --ib-fin:        #7c3aed;
  --ib-fin-bg:     #f5f3ff;
  --ib-fin-border: #ddd6fe;
  --ib-res:        #15803d;
  --ib-res-bg:     #f0fdf4;
  --ib-res-border: #bbf7d0;
}


/* ── 85. Tile (current item) ────────────────────────────────────── */

.wix-ib-tile {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--wix-bg);
  border: 2px solid var(--wix-border);
  border-radius: var(--wix-radius);
  padding: 0.55rem 0.9rem;
  font-size: 0.82em;
  font-weight: 600;
  line-height: 1.35;
  transition: border-color var(--wix-transition);
}

.wix-ib-tile-desc {
  font-size: 0.76em;
  color: var(--wix-text-muted);
  margin-top: 0.35rem;
  padding-left: 0.15rem;
  line-height: 1.45;
}


/* ── 86. Choice Buttons (3-column) ──────────────────────────────── */

.wix-ib-choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.wix-ib-choice {
  padding: 0.65rem 0.4rem;
  border-radius: var(--wix-radius);
  border: 2px solid;
  font: inherit;
  font-size: 0.75em;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  line-height: 1.35;
  transition: transform 0.15s, opacity 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.wix-ib-choice:active { transform: scale(0.97); }
.wix-ib-choice:disabled { opacity: 0.45; cursor: default; transform: none; }

.wix-ib-choice--rev { background: var(--ib-rev-bg); border-color: var(--ib-rev-border); color: var(--ib-rev); }
.wix-ib-choice--exp { background: var(--ib-exp-bg); border-color: var(--ib-exp-border); color: var(--ib-exp); }
.wix-ib-choice--fin { background: var(--ib-fin-bg); border-color: var(--ib-fin-border); color: var(--ib-fin); }


/* ── 87. Income Statement Skeleton ──────────────────────────────── */

.wix-ib-stmt {
  background: var(--wix-bg);
  border: 1px solid var(--wix-border);
  border-radius: var(--wix-radius);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.wix-ib-section {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--wix-border);
}

.wix-ib-section:last-child { border-bottom: none; }

.wix-ib-sec-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.4rem;
}

.wix-ib-sec-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.wix-ib-sec-title {
  font-size: 0.82em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wix-ib-sec-count {
  font-size: 0.7em;
  font-weight: 600;
  color: var(--wix-text-muted);
  margin-left: auto;
}


/* ── 88. Drop Area + Placed Chips ───────────────────────────────── */

.wix-ib-drop {
  min-height: 40px;
  border: 2px dashed var(--wix-border);
  border-radius: var(--wix-radius);
  padding: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.wix-ib-drop-ph {
  font-size: 0.76em;
  color: #b0b0b0;
  font-style: italic;
  padding: 0.2rem 0.35rem;
}

.wix-ib-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--wix-radius);
  font-size: 0.74em;
  font-weight: 600;
  animation: wixFadeIn 0.3s ease;
}

.wix-ib-chip--rev { background: var(--ib-rev-bg); color: var(--ib-rev); border: 1px solid var(--ib-rev-border); }
.wix-ib-chip--exp { background: var(--ib-exp-bg); color: var(--ib-exp); border: 1px solid var(--ib-exp-border); }
.wix-ib-chip--fin { background: var(--ib-fin-bg); color: var(--ib-fin); border: 1px solid var(--ib-fin-border); }


/* ── 89. Result Row ─────────────────────────────────────────────── */

.wix-ib-result {
  background: var(--ib-res-bg);
  border-bottom: 1px solid var(--ib-res-border);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wix-ib-result-label {
  font-size: 0.82em;
  font-weight: 700;
  color: var(--ib-res);
}

.wix-ib-result-eq {
  font-size: 0.76em;
  font-weight: 600;
  color: var(--ib-res);
  font-style: italic;
}


/* ── 90. Mobile ─────────────────────────────────────────────────── */

@media (max-width: 480px) {
  .wix-ib-choices {
    grid-template-columns: 1fr;
  }
}


/* ================================================================
   GM vs PAA / VFA STEPPER — data-wix-module="gm-paa"
   Side-by-side table: step through General Model vs PAA or VFA.
   ================================================================ */

[data-wix-module="gm-paa"] {
  --gp-gm:  #1a5276;
  --gp-alt: #6b4c8a;
  --gp-alt-light: #f3eef8;
  --gp-yes: #217a4b;
  --gp-no:  #b8423a;
}

/* VFA variant overrides (applied via JS-set class) */
[data-wix-module="gm-paa"].wix-gp--vfa {
  --gp-alt: #7a4422;
  --gp-alt-light: #f5ede6;
}


/* ── 91. Scenario Callout ───────────────────────────────────────── */

.wix-gp-scenario {
  display: inline-block;
  background: #fdf6e0;
  border: 1px solid #e6d9a0;
  border-radius: var(--wix-radius);
  padding: 0.5rem 0.85rem;
  font-size: 0.78em;
  color: #6b5a10;
  line-height: 1.45;
  margin-bottom: 1.25rem;
}


/* ── 92. Comparison Table ───────────────────────────────────────── */

.wix-gp-table {
  background: var(--wix-bg);
  border: 1px solid var(--wix-border);
  border-radius: var(--wix-radius);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.wix-gp-thead {
  display: grid;
  grid-template-columns: 1fr 80px 80px;
  padding: 0.6rem 1rem;
  border-bottom: 2px solid var(--wix-border);
  align-items: center;
}

.wix-gp-th {
  font-size: 0.68em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: center;
}

.wix-gp-th:first-child {
  text-align: left;
  color: var(--wix-text-muted);
}

.wix-gp-th--gm  { color: var(--gp-gm); }
.wix-gp-th--alt { color: var(--gp-alt); }


/* ── 93. Row ────────────────────────────────────────────────────── */

.wix-gp-row {
  display: grid;
  grid-template-columns: 1fr 80px 80px;
  padding: 0 1rem;
  border-bottom: 1px solid var(--wix-border-subtle);
  transition: background var(--wix-transition);
}

.wix-gp-row:last-child { border-bottom: none; }

.wix-gp-row-label {
  font-size: 0.8em;
  padding: 0.65rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--wix-text-muted);
  transition: color 0.3s;
}

.wix-gp-row--revealed .wix-gp-row-label { color: var(--wix-text); }
.wix-gp-row--current { background: var(--gp-alt-light); }
.wix-gp-row--current .wix-gp-row-label { font-weight: 600; }

.wix-gp-num {
  font-size: 0.65em;
  font-weight: 700;
  width: 18px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.wix-gp-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0;
  font-size: 1.05em;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.3s;
}

.wix-gp-row--revealed .wix-gp-mark { opacity: 1; }
.wix-gp-mark--yes { color: var(--gp-yes); }
.wix-gp-mark--no  { color: var(--gp-no); }
.wix-gp-mark--mod { color: var(--gp-alt); font-size: 0.7em; font-weight: 700; }


/* ── 94. Explanation Box ────────────────────────────────────────── */

.wix-gp-explain {
  background: var(--wix-bg);
  border: 1px solid var(--wix-border);
  border-radius: var(--wix-radius);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  min-height: 44px;
}

.wix-gp-explain-step {
  font-size: 0.64em;
  font-weight: 600;
  color: var(--gp-alt);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.wix-gp-explain-body {
  font-size: 0.82em;
  color: var(--wix-text-muted);
  line-height: 1.5;
}


/* ── 95. Counters Row ───────────────────────────────────────────── */

.wix-gp-counters {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.wix-gp-cbox {
  background: var(--wix-bg);
  border: 1px solid var(--wix-border);
  border-radius: var(--wix-radius);
  padding: 0.5rem 1rem;
  text-align: center;
  min-width: 100px;
}

.wix-gp-cbox-num {
  font-size: 1.25em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s;
}

.wix-gp-cbox-num--kept { color: var(--gp-yes); }
.wix-gp-cbox-num--skip { color: var(--gp-no); }
.wix-gp-cbox-num--pct  { color: var(--gp-alt); }

.wix-gp-cbox-lbl {
  font-size: 0.62em;
  color: var(--wix-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.15rem;
}


/* ── 96. Controls ───────────────────────────────────────────────── */

.wix-gp-controls {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
}


/* ── 97. Footnote ───────────────────────────────────────────────── */

.wix-gp-footnote {
  text-align: center;
  font-size: 0.72em;
  color: var(--wix-text-muted);
  margin-top: 1rem;
}


/* ── 98. Mobile ─────────────────────────────────────────────────── */

@media (max-width: 520px) {
  .wix-gp-thead,
  .wix-gp-row {
    grid-template-columns: 1fr 64px 64px;
    padding-left: 0.6rem;
    padding-right: 0.6rem;
  }
}