.be-page {
  background:
    radial-gradient(circle at top left, rgba(245, 158, 11, 0.12), transparent 34%),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, #f7fafc 34%, #ffffff 100%);
  font-size: .94rem;
}

.be-page .wrapper {
  max-width: min(1760px, calc(100vw - 40px));
  padding-left: 20px;
  padding-right: 20px;
}

.be-hero {
  padding: 40px 0 28px;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(247, 250, 252, 0.88)),
    radial-gradient(circle at 12% 18%, rgba(245, 158, 11, 0.22), transparent 32%),
    radial-gradient(circle at 88% 8%, rgba(14, 165, 233, 0.18), transparent 24%);
}

.be-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 22px;
  align-items: start;
}

.be-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(11, 18, 32, 0.08);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.2px;
}

.be-hero__title {
  margin: 14px 0 10px;
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.be-hero__lede {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 1rem;
}

.be-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.be-stat {
  padding: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.be-stat__label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.be-stat__value {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--ink);
}

.be-stat__meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.be-hero__panel,
.be-panel,
.be-chart-card,
.be-note-card,
.be-table-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07);
}

.be-hero__panel,
.be-panel,
.be-note-card,
.be-table-card {
  padding: 20px;
}

.be-hero__panel {
  position: relative;
  overflow: hidden;
}

.be-hero__panel::after {
  content: "";
  position: absolute;
  inset: auto -32px -36px auto;
  width: 160px;
  height: 160px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.14), transparent 70%);
  pointer-events: none;
}

.be-panel__eyebrow {
  margin: 0 0 10px;
  color: #8a6b00;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.be-panel__title {
  margin: 0 0 10px;
  font-size: 1.24rem;
  line-height: 1.15;
}

.be-panel__text,
.be-panel p,
.be-note-card p {
  margin: 0;
  color: var(--muted);
}

.be-checklist,
.be-bullet-list,
.be-formula-list,
.be-insight-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.be-checklist strong,
.be-bullet-list strong,
.be-formula-list strong,
.be-insight-list strong {
  color: var(--ink);
}

.be-grid {
  display: grid;
  gap: 16px;
}

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

.be-grid--intro {
  grid-template-columns: 1.1fr 0.9fr;
}

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

.be-grid--full {
  grid-column: 1 / -1;
}

.be-stack-lg {
  display: grid;
  gap: 16px;
}

.be-panel__header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.be-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

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

.be-field {
  display: grid;
  gap: 8px;
}

.be-field label {
  font-weight: 700;
  color: var(--ink);
  font-size: .9rem;
}

.be-field__hint {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: -2px;
}

.be-field input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(248, 250, 252, 0.9);
  color: var(--ink);
  font-size: .94rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.be-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(14, 165, 233, 0.18);
  background: rgba(14, 165, 233, 0.08);
  color: #0c4a6e;
  font-weight: 600;
}

.be-status[data-tone="warning"] {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.1);
  color: #92400e;
}

.be-status[data-tone="danger"] {
  border-color: rgba(220, 38, 38, 0.25);
  background: rgba(254, 242, 242, 0.95);
  color: #991b1b;
}

.be-status[data-tone="success"] {
  border-color: rgba(22, 163, 74, 0.24);
  background: rgba(240, 253, 244, 0.95);
  color: #166534;
}

.be-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.be-kpi {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.95), rgba(255, 255, 255, 1));
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.be-kpi__label {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.be-kpi__value {
  margin-top: 8px;
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  line-height: 1.05;
  font-weight: 800;
  color: var(--ink);
}

.be-kpi__meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.be-kpi[data-tone="success"] .be-kpi__value {
  color: #166534;
}

.be-kpi[data-tone="warning"] .be-kpi__value {
  color: #92400e;
}

.be-kpi[data-tone="danger"] .be-kpi__value {
  color: #b91c1c;
}

.be-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.be-chart-card {
  padding: 20px;
  overflow: hidden;
}

.be-chart-card.be-grid--full {
  grid-column: 1 / -1;
}

.be-chart-card__header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
  margin-bottom: 14px;
}

.be-chart-card__title {
  margin: 0;
  font-size: 1.18rem;
}

.be-chart-card__meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.be-chart-card__canvas {
  position: relative;
  height: 340px;
}

.be-note-card h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.be-formula-box {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.be-formula-row {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(248, 250, 252, 0.9);
}

.be-formula-row strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
}

.be-formula-row code {
  display: block;
  margin-top: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  color: #0f172a;
  white-space: normal;
}

.be-highlight {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  color: #8a6b00;
  font-weight: 800;
  font-size: 0.86rem;
}

.be-table-card {
  overflow: hidden;
}

.be-table-wrap {
  overflow-x: hidden;
  margin-top: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.85);
}

.be-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: collapse;
}

.be-table th,
.be-table td {
  padding: 10px 8px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  text-align: left;
  vertical-align: middle;
}

.be-table th:nth-child(1),
.be-table td:nth-child(1) { width: 11%; }
.be-table th:nth-child(2),
.be-table td:nth-child(2),
.be-table th:nth-child(3),
.be-table td:nth-child(3),
.be-table th:nth-child(4),
.be-table td:nth-child(4) { width: 8.5%; }
.be-table th:nth-child(5),
.be-table td:nth-child(5),
.be-table th:nth-child(8),
.be-table td:nth-child(8) { width: 10.5%; }
.be-table th:nth-child(6),
.be-table td:nth-child(6) { width: 9.5%; }
.be-table th:nth-child(7),
.be-table td:nth-child(7),
.be-table th:nth-child(9),
.be-table td:nth-child(9),
.be-table th:nth-child(10),
.be-table td:nth-child(10) { width: 7.5%; }
.be-table th:nth-child(11),
.be-table td:nth-child(11) { width: 8%; }

.be-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

.be-table td {
  color: var(--ink);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.be-table tbody tr:hover {
  background: rgba(245, 158, 11, 0.06);
}

.be-table td.numeric,
.be-table th.numeric {
  text-align: right;
}

.be-table input {
  width: 100%;
  min-width: 0;
  padding: 8px 7px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--ink);
  font-size: 0.82rem;
  appearance: textfield;
}

.be-table input[type="number"]::-webkit-outer-spin-button,
.be-table input[type="number"]::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.be-table button {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  color: var(--ink);
  border-radius: 10px;
  padding: 7px 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.78rem;
  white-space: nowrap;
}

.be-table button:hover {
  background: #f8fafc;
}

.be-table [data-tone="danger"] {
  color: #b91c1c;
  font-weight: 700;
}

.be-table [data-tone="success"] {
  color: #166534;
  font-weight: 700;
}

.be-table [data-tone="warning"] {
  color: #92400e;
  font-weight: 700;
}

.be-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 14px;
}

.be-toolbar__meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.be-footer-cta {
  display: grid;
  gap: 12px;
  padding: 24px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.96) 54%, rgba(255, 251, 235, 0.92)),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.12), transparent 34%);
  color: var(--ink);
  border: 1px solid rgba(14, 165, 233, 0.2);
  box-shadow: var(--shadow-sm);
}

.be-footer-cta p {
  margin: 0;
  color: var(--muted);
}

.be-footer-cta .btn {
  width: fit-content;
}

.be-scenario-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.be-empty {
  color: var(--muted);
  font-style: italic;
}

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

.be-reading-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

.be-reading-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.be-reading-card p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 1080px) {
  .be-hero__grid,
  .be-grid--intro,
  .be-grid--two,
  .be-chart-grid,
  .be-grid--charts,
  .be-reading-grid {
    grid-template-columns: 1fr;
  }

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

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

  .be-hero__stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .be-hero {
    padding-top: 42px;
  }

  .be-panel,
  .be-note-card,
  .be-table-card,
  .be-chart-card,
  .be-hero__panel {
    padding: 18px;
    border-radius: 18px;
  }

  .be-panel__header {
    flex-direction: column;
  }

  .be-kpi-grid,
  .be-input-grid {
    grid-template-columns: 1fr;
  }

  .be-chart-card__canvas {
    height: 300px;
  }

  .be-table th,
  .be-table td {
    padding: 8px 6px;
  }

  .be-table th {
    font-size: 0.68rem;
  }

  .be-table td,
  .be-table input {
    font-size: 0.78rem;
  }

  .be-table input {
    padding: 7px 6px;
  }

  .be-table button {
    padding: 6px;
    font-size: 0.72rem;
  }
}
