.bgw-skip {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 9999;
  transform: translateY(-160%);
  padding: 0.65rem 0.85rem;
  color: #0b1020;
  font: 800 0.88rem/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  text-decoration: none;
  background: #f8fafc;
  border: 2px solid #60a5fa;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(2, 6, 23, 0.28);
}

.bgw-skip:focus,
.bgw-skip:focus-visible {
  transform: translateY(0);
  outline: none;
}

.bgw-band {
  --bgw-bg: #0b1020;
  --bgw-panel: rgba(15, 23, 42, 0.78);
  --bgw-panel-strong: rgba(15, 23, 42, 0.94);
  --bgw-line: rgba(148, 163, 184, 0.22);
  --bgw-text: #f8fafc;
  --bgw-muted: #cbd5e1;
  --bgw-soft: #94a3b8;
  --bgw-brand: #60a5fa;
  --bgw-front: #818cf8;
  --bgw-back: #f59e0b;
  --bgw-agent: #38bdf8;
  --bgw-green: #34d399;
  margin: clamp(1.25rem, 3vw, 2.75rem) 0;
  padding: clamp(1.5rem, 4vw, 3rem) 0;
  color: var(--bgw-text);
  background:
    linear-gradient(135deg, rgba(129, 140, 248, 0.16), rgba(56, 189, 248, 0.08) 46%, rgba(245, 158, 11, 0.1)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    var(--bgw-bg);
  background-size: auto, 36px 36px, 36px 36px, auto;
  border-block: 1px solid var(--bgw-line);
  overflow: clip;
}

.bgw-wrap {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.bgw-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 220px);
  gap: 1.25rem;
  align-items: center;
}

.bgw-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.65rem;
  color: var(--bgw-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bgw-kicker::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--bgw-axis, var(--bgw-brand));
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--bgw-axis, var(--bgw-brand)) 15%, transparent);
}

.bgw-title {
  margin: 0;
  color: var(--bgw-text);
  font: 700 clamp(1.45rem, 2.7vw, 2.3rem) / 1.12 Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.bgw-lede {
  max-width: 74ch;
  margin: 0.75rem 0 0;
  color: var(--bgw-muted);
  font-size: 0.98rem;
  line-height: 1.75;
  text-align: justify;
  hyphens: auto;
}

.bgw-score {
  justify-self: end;
  width: min(100%, 210px);
  min-height: 178px;
  padding: 1rem;
  background: var(--bgw-panel);
  border: 1px solid var(--bgw-line);
  border-radius: 8px;
}

.bgw-score svg {
  display: block;
  width: 100%;
  height: auto;
}

.bgw-score-track {
  fill: none;
  stroke: rgba(148, 163, 184, 0.18);
  stroke-width: 12;
}

.bgw-score-fill {
  fill: none;
  stroke: var(--bgw-axis, var(--bgw-brand));
  stroke-width: 12;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  stroke-dasharray: 339.292;
  stroke-dashoffset: calc(339.292 - (339.292 * var(--score, 72) / 100));
}

.bgw-score-label {
  fill: var(--bgw-text);
  font: 800 2rem/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  text-anchor: middle;
}

.bgw-score-caption {
  fill: var(--bgw-soft);
  font: 600 0.72rem/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: 0.08em;
  text-anchor: middle;
  text-transform: uppercase;
}

.bgw-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}

.bgw-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.38rem 0.7rem;
  color: var(--bgw-muted);
  font-size: 0.78rem;
  font-weight: 650;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--bgw-line);
  border-radius: 999px;
}

.bgw-exec-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.1rem;
}

.bgw-exec-strip div {
  min-width: 0;
  padding: 0.78rem 0.85rem;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--bgw-line);
  border-radius: 8px;
  box-shadow: inset 0 3px 0 color-mix(in srgb, var(--bgw-axis, var(--bgw-brand)) 60%, transparent);
}

.bgw-exec-strip span {
  display: block;
  color: var(--bgw-soft);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bgw-exec-strip strong {
  display: block;
  margin-top: 0.28rem;
  color: var(--bgw-text);
  font-size: 0.84rem;
  line-height: 1.35;
}

.bgw-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

.bgw-module {
  min-width: 0;
  padding: 1rem;
  background: var(--bgw-panel-strong);
  border: 1px solid var(--bgw-line);
  border-radius: 8px;
}

.bgw-module h3 {
  margin: 0 0 0.75rem;
  color: var(--bgw-text);
  font-size: 0.98rem;
  line-height: 1.25;
}

.bgw-module p {
  color: var(--bgw-muted);
  text-align: justify;
}

.bgw-chart-box {
  position: relative;
  width: 100%;
  height: 270px;
  min-height: 270px;
}

.bgw-chart-box canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.bgw-chart-insight {
  margin: 0.72rem 0 0;
  color: var(--bgw-muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.bgw-chart-insight strong {
  color: var(--bgw-text);
}

.bgw-flow {
  display: grid;
  gap: 0.7rem;
}

.bgw-flow svg {
  width: 100%;
  height: auto;
  min-height: 150px;
}

.bgw-flow-line {
  fill: none;
  stroke: color-mix(in srgb, var(--bgw-axis, var(--bgw-brand)) 70%, #ffffff 10%);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 7 9;
}

.bgw-flow-node {
  fill: rgba(15, 23, 42, 0.96);
  stroke: var(--bgw-axis, var(--bgw-brand));
  stroke-width: 1.5;
}

.bgw-flow-text {
  fill: var(--bgw-text);
  font: 700 0.78rem/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  text-anchor: middle;
}

.bgw-flow-step .bgw-flow-node {
  transition: fill 0.18s ease, stroke-width 0.18s ease, filter 0.18s ease;
}

.bgw-flow-step.is-active .bgw-flow-node {
  fill: color-mix(in srgb, var(--bgw-axis, var(--bgw-brand)) 28%, #111827);
  stroke-width: 2.2;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--bgw-axis, var(--bgw-brand)) 42%, transparent));
}

.bgw-flow-note {
  margin: 0;
  color: var(--bgw-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.bgw-table-card {
  grid-column: 1 / -1;
}

.bgw-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--bgw-line);
  border-radius: 8px;
}

.bgw-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.bgw-table th,
.bgw-table td {
  padding: 0.72rem 0.8rem;
  border-bottom: 1px solid var(--bgw-line);
  text-align: left;
  vertical-align: top;
}

.bgw-table th {
  color: var(--bgw-text);
  background: rgba(148, 163, 184, 0.1);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bgw-table td {
  color: var(--bgw-muted);
  line-height: 1.55;
}

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

.bgw-module-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.75rem;
}

.bgw-module-head h3 {
  margin: 0;
}

.bgw-play {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.1rem;
  padding: 0.42rem 0.72rem;
  color: var(--bgw-text);
  font: 750 0.78rem/1 system-ui, -apple-system, "Segoe UI", sans-serif;
  background: color-mix(in srgb, var(--bgw-axis, var(--bgw-brand)) 18%, rgba(15, 23, 42, 0.9));
  border: 1px solid color-mix(in srgb, var(--bgw-axis, var(--bgw-brand)) 42%, var(--bgw-line));
  border-radius: 8px;
  cursor: pointer;
}

.bgw-play span {
  width: 0;
  height: 0;
  border-block: 0.32rem solid transparent;
  border-left: 0.48rem solid currentColor;
}

.bgw-play:hover {
  border-color: var(--bgw-axis, var(--bgw-brand));
  background: color-mix(in srgb, var(--bgw-axis, var(--bgw-brand)) 26%, rgba(15, 23, 42, 0.96));
}

.bgw-sim {
  display: grid;
  align-content: start;
}

.bgw-sim-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.15rem;
}

.bgw-sim-rail::before {
  content: "";
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  top: 1.05rem;
  height: 2px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--bgw-axis, var(--bgw-brand)) 72%, transparent), transparent);
  opacity: 0.45;
}

.bgw-sim-step {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 2.15rem;
  padding: 0.38rem 0.45rem;
  color: var(--bgw-muted);
  font: 760 0.72rem/1.18 system-ui, -apple-system, "Segoe UI", sans-serif;
  text-align: center;
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid var(--bgw-line);
  border-radius: 8px;
  cursor: pointer;
}

.bgw-sim-step.is-active {
  color: var(--bgw-text);
  border-color: var(--bgw-axis, var(--bgw-brand));
  background: color-mix(in srgb, var(--bgw-axis, var(--bgw-brand)) 24%, rgba(15, 23, 42, 0.96));
}

.bgw-sim-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.bgw-sim-metric {
  min-width: 0;
}

.bgw-sim-metric span {
  display: block;
  color: var(--bgw-soft);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bgw-sim-metric strong {
  display: block;
  margin-top: 0.12rem;
  color: var(--bgw-text);
  font-size: 1.35rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.bgw-sim-metric i {
  display: block;
  height: 0.38rem;
  margin-top: 0.42rem;
  background: linear-gradient(90deg, var(--bgw-axis, var(--bgw-brand)) calc(var(--v, 0) * 1%), rgba(148, 163, 184, 0.18) 0);
  border-radius: 999px;
}

.bgw-heat {
  overflow: hidden;
}

.bgw-heat-grid {
  display: grid;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.1rem;
}

.bgw-heat-head,
.bgw-heat-row {
  display: grid;
  grid-template-columns: 5.8rem repeat(4, minmax(4.3rem, 1fr));
  gap: 0.45rem;
  min-width: 520px;
  align-items: center;
}

.bgw-heat-head span {
  color: var(--bgw-soft);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bgw-heat-period {
  color: var(--bgw-muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.bgw-heat-cell {
  display: grid;
  place-items: center;
  min-height: 2.35rem;
  color: var(--bgw-text);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--bgw-axis, var(--bgw-brand)) calc(var(--v) * 0.8%), rgba(15, 23, 42, 0.98)), rgba(15, 23, 42, 0.92));
  border: 1px solid var(--bgw-line);
  border-radius: 8px;
}

.bgw-heat-cell b {
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.bgw-heat-cell.alto {
  border-color: color-mix(in srgb, #34d399 52%, var(--bgw-line));
}

.bgw-heat-cell.medio {
  border-color: color-mix(in srgb, #f59e0b 48%, var(--bgw-line));
}

.bgw-heat-cell.baixo {
  border-color: color-mix(in srgb, #fb7185 42%, var(--bgw-line));
}

.bgw-personas {
  grid-column: 1 / -1;
}

.bgw-taxonomy {
  grid-column: 1 / -1;
}

.bgw-tax-copy {
  margin: -0.15rem 0 0.8rem;
  color: var(--bgw-muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.bgw-tax-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.bgw-tax-node {
  min-width: 0;
  padding: 0.75rem 0 0;
  color: var(--bgw-text);
  text-decoration: none;
  border-top: 2px solid color-mix(in srgb, var(--bgw-axis, var(--bgw-brand)) 64%, var(--bgw-line));
}

.bgw-tax-node span {
  display: block;
  color: var(--bgw-soft);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bgw-tax-node strong {
  display: block;
  margin-top: 0.28rem;
  color: var(--bgw-text);
  font-size: 0.9rem;
  line-height: 1.35;
}

.bgw-tax-node p {
  margin: 0.35rem 0 0;
  color: var(--bgw-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.bgw-tax-node:hover strong {
  color: color-mix(in srgb, var(--bgw-axis, var(--bgw-brand)) 80%, #ffffff);
}

.bgw-persona-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.bgw-persona-card {
  min-width: 0;
  padding-top: 0.75rem;
  border-top: 2px solid color-mix(in srgb, var(--bgw-axis, var(--bgw-brand)) 58%, var(--bgw-line));
}

.bgw-persona-card span {
  display: block;
  color: var(--bgw-soft);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bgw-persona-card strong {
  display: block;
  margin-top: 0.3rem;
  color: var(--bgw-text);
  font-size: 0.9rem;
  line-height: 1.35;
}

.bgw-persona-card p {
  margin: 0.35rem 0 0;
  color: var(--bgw-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.bgw-timeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: bgw-step;
}

.bgw-timeline li {
  position: relative;
  min-width: 0;
  padding-top: 0.8rem;
  border-top: 1px solid var(--bgw-line);
  counter-increment: bgw-step;
}

.bgw-timeline li::before {
  content: counter(bgw-step);
  display: grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  margin-bottom: 0.45rem;
  color: var(--bgw-text);
  font-size: 0.72rem;
  font-weight: 800;
  background: color-mix(in srgb, var(--bgw-axis, var(--bgw-brand)) 35%, rgba(15, 23, 42, 0.98));
  border: 1px solid color-mix(in srgb, var(--bgw-axis, var(--bgw-brand)) 54%, var(--bgw-line));
  border-radius: 50%;
}

.bgw-timeline span {
  display: block;
  color: var(--bgw-text);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

.bgw-timeline p {
  margin: 0.28rem 0 0;
  color: var(--bgw-muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.bgw-related {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1rem;
}

.bgw-related a {
  display: block;
  min-height: 100%;
  padding: 0.9rem;
  color: var(--bgw-text);
  text-decoration: none;
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid var(--bgw-line);
  border-radius: 8px;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.bgw-related a:hover {
  transform: translateY(-2px);
  border-color: var(--bgw-axis, var(--bgw-brand));
  background: rgba(15, 23, 42, 0.96);
}

.bgw-related span {
  display: block;
  color: var(--bgw-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bgw-related strong {
  display: block;
  margin-top: 0.35rem;
  color: var(--bgw-text);
  font-size: 0.93rem;
  line-height: 1.35;
}

.bgw-related p {
  margin: 0.45rem 0 0;
  color: var(--bgw-muted);
  font-size: 0.82rem;
  line-height: 1.45;
  text-align: justify;
}

.bgw-fallback {
  display: grid;
  gap: 0.55rem;
  align-content: center;
  min-height: 100%;
}

.bgw-fallback-row {
  display: grid;
  grid-template-columns: 6rem 1fr 2.4rem;
  gap: 0.6rem;
  align-items: center;
  color: var(--bgw-muted);
  font-size: 0.8rem;
}

.bgw-fallback-bar {
  height: 0.55rem;
  background: rgba(148, 163, 184, 0.2);
  border-radius: 999px;
  overflow: hidden;
}

.bgw-fallback-bar i {
  display: block;
  width: calc(var(--v) * 1%);
  height: 100%;
  background: var(--bgw-axis, var(--bgw-brand));
}

@media (max-width: 900px) {
  .bgw-head,
  .bgw-grid,
  .bgw-exec-strip,
  .bgw-related {
    grid-template-columns: 1fr;
  }

  .bgw-persona-grid,
  .bgw-tax-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bgw-timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bgw-score {
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .bgw-wrap {
    width: min(100% - 1rem, 1120px);
  }

  .bgw-band {
    padding-block: 1rem;
  }

  .bgw-module,
  .bgw-score,
  .bgw-related a {
    padding: 0.85rem;
  }

  .bgw-chart-box {
    height: 235px;
    min-height: 235px;
  }

  .bgw-title {
    font-size: 1.35rem;
  }

  .bgw-module-head,
  .bgw-sim-metrics,
  .bgw-persona-grid,
  .bgw-tax-grid,
  .bgw-timeline {
    grid-template-columns: 1fr;
  }

  .bgw-module-head {
    display: grid;
    align-items: stretch;
  }

  .bgw-play {
    justify-content: center;
    width: 100%;
  }

  .bgw-sim-rail {
    grid-template-columns: repeat(5, minmax(5.8rem, 1fr));
    overflow-x: auto;
    padding-bottom: 0.15rem;
  }

  .bgw-sim-rail::before {
    right: auto;
    width: 28rem;
  }

  .bgw-table {
    min-width: 0;
    border-collapse: separate;
    border-spacing: 0;
  }

  .bgw-table thead {
    display: none;
  }

  .bgw-table,
  .bgw-table tbody,
  .bgw-table tr,
  .bgw-table td {
    display: block;
    width: 100%;
  }

  .bgw-table tr {
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--bgw-line);
  }

  .bgw-table tr:last-child {
    border-bottom: 0;
  }

  .bgw-table td {
    display: grid;
    grid-template-columns: minmax(6.8rem, 0.36fr) minmax(0, 1fr);
    gap: 0.6rem;
    padding: 0.38rem 0.65rem;
    border-bottom: 0;
  }

  .bgw-table td::before {
    content: attr(data-label);
    color: var(--bgw-soft);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bgw-related a,
  .bgw-flow-step .bgw-flow-node {
    transition: none;
  }
}
