/* Business sale for retirement (BADR): same shell as GIA/ISA/Pension and DB CETV (RetirementCalculators.uk) */

:root {
  --bsrc-ink: #0f172a;
  --bsrc-muted: #475569;
  --bsrc-navy: #083141;
}

#bsrc-root.bsrc-app {
  width: auto;
  max-width: none;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0 14px;
  box-sizing: border-box;
  overflow-x: hidden;
}

.bsrc-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 18px 30px;
  border: 2px solid rgba(8, 49, 65, 0.18);
  border-radius: 22px;
  box-shadow: 0 20px 60px rgba(2, 6, 23, 0.1);
  background: #fff;
  color: var(--bsrc-ink);
}

.bsrc-hero {
  border: 1px solid rgba(8, 49, 65, 0.2);
  border-radius: 18px;
  padding: 22px;
  background: linear-gradient(135deg, #fff 0%, #f0f9ff 52%, #e0f2fe 100%);
}

.bsrc-title {
  margin: 0 0 8px;
  font-size: clamp(1.45rem, 3.6vw, 2.15rem);
  font-weight: 950;
  color: var(--bsrc-navy);
  letter-spacing: -0.02em;
}

.bsrc-sub {
  margin: 0;
  color: var(--bsrc-muted);
  font-weight: 650;
  line-height: 1.55;
}

.bsrc-hero-context {
  margin: 12px 0 0;
  color: #0c4a6e;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.55;
}

.bsrc-plain-english {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(8, 49, 65, 0.14);
  background: linear-gradient(165deg, #f8fafc 0%, #fff 100%);
}

.bsrc-plain-english__title {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 950;
  color: var(--bsrc-navy);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.bsrc-plain-english__list {
  margin: 0;
  padding-left: 1.15rem;
  color: #334155;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.55;
}

.bsrc-plain-english__list li {
  margin: 0 0 8px;
}

.bsrc-plain-english__list li:last-child {
  margin-bottom: 0;
}

.bsrc-card {
  margin-top: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px;
  background: #fff;
}

.bsrc-card--inputs {
  border: 2px solid rgba(8, 49, 65, 0.2);
  border-left: 5px solid var(--bsrc-navy);
  background: linear-gradient(165deg, #f1f5f9 0%, #fff 42%);
  box-shadow: 0 6px 22px rgba(8, 49, 65, 0.07);
}

.bsrc-card--inputs .bsrc-h3::before {
  content: "✎";
  display: inline-block;
  margin-right: 8px;
  font-size: 1em;
  opacity: 0.9;
}

.bsrc-h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  font-weight: 950;
  color: var(--bsrc-navy);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.bsrc-card-lead {
  margin: -4px 0 14px;
  color: var(--bsrc-muted);
  font-weight: 650;
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Three-step input flow */
.bsrc-step {
  margin-top: 20px;
  border-radius: 16px;
  border: 1px solid rgba(8, 49, 65, 0.14);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.55);
}

.bsrc-step:first-of-type {
  margin-top: 12px;
}

.bsrc-step__head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  background: linear-gradient(135deg, #f0f9ff 0%, #fff 72%);
  border-bottom: 1px solid rgba(8, 49, 65, 0.1);
}

.bsrc-step__num {
  flex-shrink: 0;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
  font-size: 1.05rem;
  color: #fff;
  background: var(--bsrc-navy);
  line-height: 1;
}

.bsrc-step__titles {
  min-width: 0;
}

.bsrc-step__title {
  margin: 0 0 4px;
  font-size: 1.12rem;
  font-weight: 950;
  color: var(--bsrc-navy);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.bsrc-step__sub {
  margin: 0;
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.45;
  font-weight: 650;
}

.bsrc-step__body {
  padding: 8px 12px 14px;
}

.bsrc-step__body .bsrc-input-section {
  margin-top: 12px;
}

.bsrc-step__body .bsrc-input-section:first-of-type {
  margin-top: 6px;
}

.bsrc-step__body .bsrc-input-section--contributions {
  margin-top: 14px;
}

.bsrc-input-section {
  margin-top: 18px;
  padding: 16px 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(8, 49, 65, 0.12);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.bsrc-input-section:first-of-type {
  margin-top: 6px;
}

.bsrc-input-section--timeline {
  border-left: 4px solid #0e7490;
  background: linear-gradient(135deg, rgba(236, 254, 255, 0.5) 0%, rgba(255, 255, 255, 0.9) 48%);
}

.bsrc-input-section--contributions {
  margin-top: 22px;
  border-left: 4px solid #4f46e5;
  background: linear-gradient(135deg, rgba(238, 242, 255, 0.55) 0%, rgba(255, 255, 255, 0.92) 50%);
}

.bsrc-input-section .bsrc-input-group-title {
  margin: 0 0 6px;
  font-size: 1.12rem;
  font-weight: 950;
  color: var(--bsrc-navy);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.bsrc-input-section-lead {
  margin: 0 0 14px;
  font-size: 0.84rem;
  font-weight: 650;
  color: #64748b;
  line-height: 1.5;
}

.bsrc-input-section .bsrc-grid {
  margin-top: 0;
}

.bsrc-input-section .bsrc-presets {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(8, 49, 65, 0.1);
}

.bsrc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.bsrc-field {
  display: grid;
  gap: 6px;
}

.bsrc-field--checkbox {
  gap: 0;
}

.bsrc-checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(8, 49, 65, 0.14);
  background: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  cursor: pointer;
  box-sizing: border-box;
}

.bsrc-checkbox-line:hover {
  border-color: rgba(21, 94, 117, 0.35);
  background: linear-gradient(165deg, #fff 0%, #f8fafc 100%);
}

.bsrc-checkbox-line:focus-within {
  border-color: rgba(21, 94, 117, 0.55);
  box-shadow: 0 0 0 3px rgba(21, 94, 117, 0.12);
}

.bsrc-checkbox-input {
  width: 1.2rem;
  height: 1.2rem;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: #0e7490;
  cursor: pointer;
}

.bsrc-checkbox-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  flex: 1 1 auto;
}

.bsrc-checkbox-title {
  font-size: 0.93rem;
  font-weight: 800;
  color: var(--bsrc-navy);
  line-height: 1.35;
}

.bsrc-checkbox-sub {
  font-size: 0.8rem;
  font-weight: 650;
  color: #64748b;
  line-height: 1.45;
}

.bsrc-label {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--bsrc-navy);
}

.bsrc-hint {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 650;
  color: #64748b;
  line-height: 1.45;
}

.bsrc-input {
  width: 100%;
  padding: 12px;
  border: 2px solid rgba(8, 49, 65, 0.2);
  border-radius: 12px;
  box-sizing: border-box;
  font-size: max(16px, 1rem);
}

.bsrc-input:focus {
  outline: none;
  border-color: rgba(21, 94, 117, 0.55);
  box-shadow: 0 0 0 5px rgba(21, 94, 117, 0.12);
}

.bsrc-presets {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(8, 49, 65, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.bsrc-presets-label {
  font-size: 0.82rem;
  font-weight: 850;
  color: #64748b;
  margin-right: 4px;
}

.bsrc-preset-btn {
  padding: 10px 14px;
  font-size: 0.84rem;
  font-weight: 800;
  background: #fff;
  border: 2px solid rgba(8, 49, 65, 0.18);
  color: var(--bsrc-navy);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.bsrc-preset-btn:hover {
  background: #f8fafc;
  border-color: rgba(21, 94, 117, 0.45);
}

/* Results dashboard: banded sections, tax strip, timeline, tiles */
.bsrc-results-dashboard {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0 0 22px;
}

.bsrc-dash-section {
  border-radius: 16px;
  padding: 14px 14px 16px;
  border: 1px solid rgba(8, 49, 65, 0.1);
  box-shadow: 0 4px 18px rgba(2, 6, 23, 0.04);
}

.bsrc-dash-section--tax {
  background: linear-gradient(135deg, #fff 0%, #f1f5f9 55%, #e2e8f0 100%);
  border-color: rgba(71, 85, 105, 0.22);
}

.bsrc-dash-section--timeline {
  background: linear-gradient(135deg, #faf5ff 0%, #f5f3ff 40%, #fff 100%);
  border-color: rgba(109, 40, 217, 0.2);
}

.bsrc-dash-section--metrics {
  background: linear-gradient(135deg, #fff 0%, #f0f9ff 50%, #ecfeff 100%);
  border-color: rgba(14, 116, 144, 0.22);
}

.bsrc-dash-section__kicker {
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0 0 10px 4px;
}

.bsrc-dash-section--timeline .bsrc-dash-section__kicker {
  color: #6d28d9;
}

.bsrc-dash-section--metrics .bsrc-dash-section__kicker {
  color: #0e7490;
}

.bsrc-tax-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 720px) {
  .bsrc-tax-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.bsrc-tax-strip__item {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(2, 6, 23, 0.04);
  border-left: 4px solid #94a3b8;
}

.bsrc-tax-strip__item--sale {
  border-left-color: #64748b;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.bsrc-tax-strip__item--cgt {
  border-left-color: #e11d48;
  background: linear-gradient(180deg, #fff1f2 0%, #fff 70%);
}

.bsrc-tax-strip__item--cgt .bsrc-tax-strip__k {
  color: #9f1239;
}

.bsrc-tax-strip__item--cash {
  border-left-color: #059669;
  background: linear-gradient(145deg, #ecfdf5 0%, #fff 60%);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.12);
}

.bsrc-tax-strip__item--cash .bsrc-tax-strip__k {
  color: #047857;
}

.bsrc-tax-strip__item--retire {
  border-left-color: #2563eb;
  background: linear-gradient(180deg, #eff6ff 0%, #fff 75%);
}

.bsrc-tax-strip__item--retire .bsrc-tax-strip__k {
  color: #1d4ed8;
}

.bsrc-tax-strip__k {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.bsrc-tax-strip__v {
  margin-top: 6px;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  font-weight: 950;
  color: var(--bsrc-navy);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.bsrc-cgt-note {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(14, 116, 144, 0.22);
  background: linear-gradient(135deg, #f0fdfa 0%, #fff 55%);
}

.bsrc-cgt-note__text {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 650;
  color: #334155;
  line-height: 1.55;
}

.bsrc-cgt-note__text a {
  color: #0e7490;
  font-weight: 800;
}

.bsrc-timeline {
  padding: 14px 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(8, 49, 65, 0.12);
  background: linear-gradient(180deg, #f8fafc 0%, #fff 65%);
}

.bsrc-dash-section--timeline .bsrc-timeline,
.bsrc-timeline--band {
  border: none;
  background: transparent;
  padding: 6px 4px 4px;
}

.bsrc-timeline__flex {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  padding: 6px 2px 12px;
  border-bottom: 3px solid rgba(109, 40, 217, 0.22);
  box-sizing: border-box;
}

.bsrc-timeline--band .bsrc-timeline__flex {
  border-bottom-color: rgba(91, 33, 182, 0.35);
}

.bsrc-timeline__node {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  padding: 0 2px;
}

.bsrc-timeline__age {
  display: block;
  font-weight: 950;
  font-size: clamp(0.95rem, 2.2vw, 1.08rem);
  color: var(--bsrc-navy);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.bsrc-timeline--band .bsrc-timeline__age {
  color: #5b21b6;
}

.bsrc-timeline__lbl {
  display: block;
  margin-top: 4px;
  font-size: 0.58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  line-height: 1.2;
  hyphens: auto;
  overflow-wrap: anywhere;
}

.bsrc-timeline--band .bsrc-timeline__lbl {
  color: #7c3aed;
}

.bsrc-timeline__note {
  margin: 10px 0 0;
  padding-top: 8px;
  font-size: 0.78rem;
  font-weight: 650;
  color: #64748b;
  line-height: 1.45;
}

.bsrc-dash-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 560px) {
  .bsrc-dash-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .bsrc-dash-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.bsrc-dash-tile {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(8, 49, 65, 0.1);
  background: #fff;
  box-shadow: 0 3px 12px rgba(2, 6, 23, 0.05);
  min-height: 7.5rem;
  display: flex;
  flex-direction: column;
  border-left: 4px solid #94a3b8;
}

.bsrc-dash-tile--phase {
  border-left-color: #7c3aed;
  background: linear-gradient(165deg, #faf5ff 0%, #fff 55%);
}

.bsrc-dash-tile--spend {
  border-left-color: #0d9488;
  background: linear-gradient(165deg, #f0fdfa 0%, #fff 55%);
}

.bsrc-dash-tile--bridge {
  border-left-color: #ea580c;
  background: linear-gradient(165deg, #fff7ed 0%, #fff 55%);
}

.bsrc-dash-tile--bridgeck {
  border-left-color: #d97706;
  background: linear-gradient(165deg, #fffbeb 0%, #fff 55%);
}

.bsrc-dash-tile--afterspa {
  border-left-color: #0284c7;
  background: linear-gradient(165deg, #f0f9ff 0%, #fff 55%);
}

.bsrc-dash-tile--potspa {
  border-left-color: #4f46e5;
  background: linear-gradient(165deg, #eef2ff 0%, #fff 55%);
}

.bsrc-dash-tile--potplan {
  border-left-color: #059669;
  background: linear-gradient(165deg, #ecfdf5 0%, #fff 55%);
}

.bsrc-dash-tile--runway {
  border-left-color: #475569;
  background: linear-gradient(165deg, #f8fafc 0%, #fff 55%);
}

.bsrc-dash-tile__label {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #0e7490;
  line-height: 1.3;
}

.bsrc-dash-tile--phase .bsrc-dash-tile__label {
  color: #6d28d9;
}

.bsrc-dash-tile--spend .bsrc-dash-tile__label {
  color: #0f766e;
}

.bsrc-dash-tile--bridge .bsrc-dash-tile__label,
.bsrc-dash-tile--bridgeck .bsrc-dash-tile__label {
  color: #c2410c;
}

.bsrc-dash-tile--afterspa .bsrc-dash-tile__label {
  color: #0369a1;
}

.bsrc-dash-tile--potspa .bsrc-dash-tile__label {
  color: #4338ca;
}

.bsrc-dash-tile--potplan .bsrc-dash-tile__label {
  color: #047857;
}

.bsrc-dash-tile--runway .bsrc-dash-tile__label {
  color: #334155;
}

.bsrc-dash-tile__value {
  margin: 8px 0 auto;
  font-size: clamp(1.05rem, 2.4vw, 1.28rem);
  font-weight: 950;
  color: var(--bsrc-navy);
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}

.bsrc-dash-tile__hint {
  margin-top: 10px;
  font-size: 0.8rem;
  font-weight: 650;
  color: #64748b;
  line-height: 1.45;
}

/* Results: DB CETV rhythm */
.bsrc-results {
  margin-top: 24px;
  padding: 20px 16px 8px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid rgba(8, 49, 65, 0.12);
}

.bsrc-results-header {
  width: 100%;
  margin: 0 0 16px;
  padding: 0 0 14px;
  border-bottom: 3px solid rgba(8, 49, 65, 0.22);
}

.bsrc-results-heading.bsrc-h3 {
  margin: 0 0 8px;
}

.bsrc-results-lead {
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(8, 49, 65, 0.1);
  box-shadow: 0 2px 10px rgba(2, 6, 23, 0.04);
  color: var(--bsrc-muted);
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.55;
}

.bsrc-results-snapshot {
  margin: 0 0 18px;
}

.bsrc-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 900px) {
  .bsrc-snapshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.bsrc-snapshot-card {
  border-radius: 14px;
  border: 1px solid rgba(8, 49, 65, 0.14);
  background: #fff;
  padding: 14px 14px 12px;
  box-shadow: 0 4px 14px rgba(2, 6, 23, 0.05);
  border-left: 4px solid #94a3b8;
}

.bsrc-snapshot-card--sale {
  border-left-color: #059669;
  background: linear-gradient(165deg, #ecfdf5 0%, #fff 65%);
}

.bsrc-snapshot-card--sale .bsrc-snapshot-card__eyebrow {
  color: #047857;
}

.bsrc-snapshot-card--bridge {
  border-left-color: #0284c7;
  background: linear-gradient(165deg, #e0f2fe 0%, #fff 65%);
}

.bsrc-snapshot-card--bridge .bsrc-snapshot-card__eyebrow {
  color: #0369a1;
}

.bsrc-snapshot-card--pots {
  border-left-color: #4f46e5;
  background: linear-gradient(165deg, #eef2ff 0%, #fff 65%);
}

.bsrc-snapshot-card--pots .bsrc-snapshot-card__eyebrow {
  color: #4338ca;
}

.bsrc-snapshot-card--warn {
  border-color: rgba(217, 119, 6, 0.5);
  border-left-color: #d97706;
  background: linear-gradient(165deg, #fffbeb 0%, #fff 100%);
}

.bsrc-snapshot-card__eyebrow {
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 6px;
}

.bsrc-snapshot-card--warn .bsrc-snapshot-card__eyebrow {
  color: #b45309;
}

.bsrc-snapshot-card__value {
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  font-weight: 950;
  color: var(--bsrc-navy);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}

.bsrc-snapshot-card__hint {
  margin: 8px 0 0;
  font-size: 0.78rem;
  font-weight: 650;
  color: #64748b;
  line-height: 1.45;
}

.bsrc-snapshot-card--warn .bsrc-snapshot-card__hint {
  color: #78350f;
}

.bsrc-results-disclaimer {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(241, 245, 249, 0.85);
  border: 1px solid rgba(8, 49, 65, 0.1);
  font-size: 0.82rem;
  font-weight: 650;
  color: #475569;
  line-height: 1.5;
}

.bsrc-results-disclaimer__link {
  color: #0e7490;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bsrc-route-details {
  margin: 0 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(8, 49, 65, 0.14);
  background: #fff;
  box-shadow: 0 2px 10px rgba(2, 6, 23, 0.04);
}

.bsrc-route-summary {
  cursor: pointer;
  padding: 14px 16px;
  font-size: 0.9rem;
  font-weight: 850;
  color: var(--bsrc-navy);
  list-style: none;
  line-height: 1.4;
}

.bsrc-route-summary::-webkit-details-marker {
  display: none;
}

.bsrc-route-details[open] .bsrc-route-summary {
  border-bottom: 1px solid rgba(8, 49, 65, 0.1);
}

.bsrc-route-details .bsrc-investment-route {
  margin: 0;
  border: none;
  border-radius: 0;
  background: linear-gradient(145deg, #f8fafc 0%, #eff6ff 38%, #fff 100%);
}

#bsrc-methodology-block {
  scroll-margin-top: 88px;
}

.bsrc-investment-route {
  margin: 0 0 18px;
  padding: 16px 18px 14px;
  border-radius: 16px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  background: linear-gradient(145deg, #f8fafc 0%, #eff6ff 38%, #fff 100%);
}

.bsrc-route-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 950;
  color: var(--bsrc-navy);
  letter-spacing: -0.02em;
}

.bsrc-route-lead {
  margin: 0 0 14px;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--bsrc-muted);
  line-height: 1.55;
}

.bsrc-route-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px 6px;
  margin-bottom: 12px;
}

.bsrc-route-step {
  flex: 1 1 140px;
  min-width: 120px;
  border-radius: 12px;
  padding: 12px 12px 10px;
  border: 1px solid rgba(8, 49, 65, 0.12);
  background: #fff;
}

.bsrc-route-step--pool {
  border-left: 4px solid #64748b;
}

.bsrc-route-step--isa {
  border-left: 4px solid #2563eb;
}

.bsrc-route-step--pen {
  border-left: 4px solid #c2410c;
}

.bsrc-route-step--gia {
  border-left: 4px solid #059669;
}

.bsrc-route-step__title {
  font-size: 0.82rem;
  font-weight: 950;
  color: var(--bsrc-navy);
  line-height: 1.25;
}

.bsrc-route-step__desc {
  margin: 6px 0 0;
  font-size: 0.76rem;
  font-weight: 650;
  color: #475569;
  line-height: 1.45;
}

.bsrc-route-arrow {
  align-self: center;
  font-weight: 950;
  color: #94a3b8;
  font-size: 1.1rem;
  padding: 0 2px;
  user-select: none;
}

.bsrc-route-footnote {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 650;
  color: #475569;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .bsrc-snapshot-grid {
    grid-template-columns: 1fr;
  }

  .bsrc-route-arrow {
    display: none;
  }

  .bsrc-route-flow {
    flex-direction: column;
  }
}

.bsrc-illustration-callout {
  margin: 0 0 18px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 2px solid rgba(217, 119, 6, 0.35);
  background: linear-gradient(145deg, #fffbeb 0%, #fff 55%);
  box-shadow: 0 4px 14px rgba(180, 83, 9, 0.08);
}

.bsrc-illustration-callout__kicker {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b45309;
}

.bsrc-illustration-callout__text {
  margin: 0 0 12px;
  font-size: clamp(0.9rem, 2.2vw, 1rem);
  font-weight: 650;
  color: #451a03;
  line-height: 1.6;
}

.bsrc-illustration-callout__text:last-child {
  margin-bottom: 0;
}

.bsrc-illustration-callout__text a {
  color: #0e7490;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bsrc-illustration-callout__text--warn {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(217, 119, 6, 0.25);
  font-weight: 650;
  color: #78350f;
}

.bsrc-gap-panel {
  margin: 16px 0;
  padding: 18px 20px;
  border-radius: 16px;
  border: 2px solid rgba(21, 94, 117, 0.28);
  background: linear-gradient(135deg, #ecfeff 0%, #f0f9ff 45%, #fff 100%);
  text-align: center;
  box-shadow: 0 6px 20px rgba(8, 49, 65, 0.08);
}

.bsrc-gap-panel__eyebrow {
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0e7490;
  margin-bottom: 8px;
}

.bsrc-gap-panel__figure {
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 950;
  color: var(--bsrc-navy);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  margin-bottom: 10px;
}

.bsrc-gap-panel__text {
  margin: 0;
  font-size: clamp(0.88rem, 2.1vw, 0.98rem);
  font-weight: 650;
  color: #334155;
  line-height: 1.55;
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}

.bsrc-life-after-spa {
  margin: 16px 0;
  padding: 20px 20px 18px;
  border-radius: 18px;
  border: 2px solid rgba(22, 101, 52, 0.22);
  background: linear-gradient(160deg, #ecfdf5 0%, #f8fafc 38%, #fff 100%);
  box-shadow: 0 8px 28px rgba(8, 49, 65, 0.07);
}

.bsrc-life-after-spa--calm {
  border-color: rgba(22, 101, 52, 0.28);
}

.bsrc-life-after-spa--warn {
  border-color: rgba(217, 119, 6, 0.45);
  background: linear-gradient(160deg, #fffbeb 0%, #fff 55%);
}

.bsrc-life-after-spa__title {
  margin: 0 0 12px;
  font-size: clamp(1.12rem, 2.7vw, 1.28rem);
  font-weight: 950;
  color: var(--bsrc-navy);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.bsrc-life-after-spa__lead {
  margin: 0 0 14px;
  font-size: 0.92rem;
  font-weight: 650;
  color: #475569;
  line-height: 1.6;
}

.bsrc-life-after-spa__p {
  margin: 0 0 12px;
  font-size: 0.92rem;
  font-weight: 650;
  color: #334155;
  line-height: 1.6;
}

.bsrc-life-after-spa__p:last-of-type {
  margin-bottom: 0;
}

.bsrc-life-after-spa__p--highlight {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(22, 101, 52, 0.15);
  font-size: 0.95rem;
}

.bsrc-life-after-spa--warn .bsrc-life-after-spa__p--highlight {
  border-color: rgba(217, 119, 6, 0.28);
  background: rgba(255, 255, 255, 0.9);
}

.bsrc-life-after-spa__p strong {
  font-weight: 950;
  color: #14532d;
}

.bsrc-life-after-spa--warn .bsrc-life-after-spa__p strong {
  color: #92400e;
}

.bsrc-life-after-spa__footnote {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px dashed rgba(8, 49, 65, 0.12);
  font-size: 0.82rem;
  font-weight: 650;
  color: #64748b;
  line-height: 1.5;
}

.bsrc-visual-board {
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid rgba(8, 49, 65, 0.14);
  box-shadow: 0 12px 40px rgba(2, 6, 23, 0.08);
  background: #fff;
}

.bsrc-visual-board-intro {
  padding: 16px 18px;
  background: linear-gradient(135deg, #f0f9ff 0%, #fff 55%);
  border-bottom: 1px solid rgba(8, 49, 65, 0.1);
}

.bsrc-visual-board-title {
  margin: 0 0 8px;
  font-size: clamp(1.18rem, 2.85vw, 1.35rem);
  font-weight: 950;
  color: var(--bsrc-navy);
  letter-spacing: -0.02em;
  line-height: 1.28;
}

.bsrc-visual-board-sub {
  margin: 0;
  font-size: clamp(0.86rem, 2vw, 0.95rem);
  font-weight: 650;
  color: #475569;
  line-height: 1.55;
}

/* Pot size bar chart (scaled to largest pot in run) */
.bsrc-pot-chart {
  border-top: 1px solid rgba(8, 49, 65, 0.1);
  padding: 16px 18px 18px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 55%);
}

.bsrc-pot-chart__intro {
  margin-bottom: 14px;
}

.bsrc-pot-chart__title {
  margin: 0 0 6px;
  font-size: clamp(1.05rem, 2.55vw, 1.22rem);
  font-weight: 950;
  color: var(--bsrc-navy);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.bsrc-pot-chart__lead {
  margin: 0;
  font-size: clamp(0.82rem, 2vw, 0.92rem);
  font-weight: 650;
  color: #64748b;
  line-height: 1.45;
}

.bsrc-funding-narrative {
  padding: 16px 18px 18px;
  border-top: 1px solid rgba(8, 49, 65, 0.1);
  background: #fff;
}

.bsrc-funding-narrative__p {
  margin: 0 0 12px;
  font-size: clamp(0.86rem, 2vw, 0.95rem);
  font-weight: 650;
  color: #334155;
  line-height: 1.55;
}

.bsrc-funding-narrative__p:last-child {
  margin-bottom: 0;
}

.bsrc-pot-bar-row {
  display: grid;
  grid-template-columns: minmax(4.25rem, 5.25rem) minmax(0, 1fr) minmax(4.5rem, 6.5rem);
  gap: 8px 12px;
  align-items: center;
  margin-bottom: 12px;
}

.bsrc-pot-bar-row:last-child {
  margin-bottom: 0;
}

.bsrc-pot-bar-row__label {
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--bsrc-navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bsrc-pot-bar-row__track {
  height: 16px;
  border-radius: 9px;
  background: rgba(8, 49, 65, 0.09);
  overflow: hidden;
  min-width: 0;
}

.bsrc-pot-bar-row__fill {
  height: 100%;
  min-width: 2px;
  border-radius: 9px;
  transition: width 0.38s ease;
}

.bsrc-pot-bar-row--gia .bsrc-pot-bar-row__fill {
  background: linear-gradient(90deg, #059669, #34d399);
}

.bsrc-pot-bar-row--isa .bsrc-pot-bar-row__fill {
  background: linear-gradient(90deg, #1d4ed8, #60a5fa);
}

.bsrc-pot-bar-row--pen .bsrc-pot-bar-row__fill {
  background: linear-gradient(90deg, #9a3412, #fb923c);
}

.bsrc-pot-bar-row--net .bsrc-pot-bar-row__fill {
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
}

.bsrc-pot-bar-row__value {
  font-size: clamp(0.92rem, 2.4vw, 1.05rem);
  font-weight: 950;
  color: var(--bsrc-navy);
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

@media (max-width: 400px) {
  .bsrc-pot-bar-row {
    grid-template-columns: 3.5rem minmax(0, 1fr) auto;
    gap: 6px 8px;
  }

  .bsrc-pot-bar-row__value {
    font-size: 0.86rem;
  }
}

.bsrc-visual-columns--triple {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  align-items: stretch;
}

.bsrc-visual-path {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.bsrc-visual-path--gia {
  background: linear-gradient(180deg, #ecfdf5 0%, #fff 28%);
  border-right: 1px solid rgba(8, 49, 65, 0.08);
}

.bsrc-visual-path--isa {
  background: linear-gradient(180deg, #eff6ff 0%, #fff 28%);
  border-right: 1px solid rgba(8, 49, 65, 0.08);
}

.bsrc-visual-path--pen {
  background: linear-gradient(180deg, #fff7ed 0%, #fff 28%);
}

.bsrc-visual-path--winner {
  box-shadow: inset 0 0 0 3px rgba(220, 38, 38, 0.55);
  position: relative;
  z-index: 1;
}

.bsrc-visual-path-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  font-weight: 950;
  font-size: 0.95rem;
  color: #fff;
}

.bsrc-visual-path--gia .bsrc-visual-path-head {
  background: linear-gradient(135deg, #059669, #047857);
}

.bsrc-visual-path--isa .bsrc-visual-path-head {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.bsrc-visual-path--pen .bsrc-visual-path-head {
  background: linear-gradient(135deg, #c2410c, #9a3412);
}

.bsrc-visual-path-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.bsrc-visual-path-name {
  line-height: 1.25;
}

.bsrc-visual-path-tag {
  padding: 8px 16px;
  font-size: 0.72rem;
  font-weight: 750;
  color: #64748b;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(8, 49, 65, 0.06);
}

.bsrc-visual-path--gia .bsrc-visual-path-tag {
  background: rgba(236, 253, 245, 0.95);
}

.bsrc-visual-path--isa .bsrc-visual-path-tag {
  background: rgba(239, 246, 255, 0.95);
}

.bsrc-visual-path--pen .bsrc-visual-path-tag {
  background: rgba(255, 247, 237, 0.95);
}

.bsrc-visual-metrics {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.bsrc-visual-metric {
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(8, 49, 65, 0.1);
}

.bsrc-visual-path--gia .bsrc-visual-metric {
  border-left: 3px solid #10b981;
}

.bsrc-visual-path--isa .bsrc-visual-metric {
  border-left: 3px solid #3b82f6;
}

.bsrc-visual-path--pen .bsrc-visual-metric {
  border-left: 3px solid #ea580c;
}

.bsrc-visual-metric-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.bsrc-visual-metric-value {
  margin-top: 6px;
  font-size: clamp(1.05rem, 2.8vw, 1.35rem);
  font-weight: 950;
  color: var(--bsrc-navy);
  font-variant-numeric: tabular-nums;
}

.bsrc-visual-metric-note {
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 650;
  color: #64748b;
  line-height: 1.35;
}

.bsrc-visual-metric--secondary {
  padding-top: 8px;
  margin-top: 4px;
  border-top: 1px dashed rgba(8, 49, 65, 0.12);
}

.bsrc-visual-metric--gain .bsrc-visual-metric-value {
  color: #0f766e;
}

.bsrc-visual-metric-value--sm {
  font-size: clamp(0.95rem, 2.5vw, 1.12rem);
  font-weight: 900;
}

.bsrc-verdict-strip {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 2px solid rgba(88, 28, 135, 0.22);
  background: linear-gradient(145deg, #faf5ff 0%, #fff 45%);
  font-size: clamp(0.92rem, 2.2vw, 1.02rem);
  font-weight: 700;
  color: #4c1d95;
  line-height: 1.55;
  text-align: center;
}

.bsrc-bridge-panel {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.55;
}

.bsrc-bridge-panel--warn {
  background: linear-gradient(145deg, #fffbeb 0%, #fff 50%);
  border: 2px solid rgba(217, 119, 6, 0.35);
  color: #92400e;
}

.bsrc-bridge-panel--ok {
  background: linear-gradient(145deg, #ecfdf5 0%, #fff 50%);
  border: 2px solid rgba(22, 101, 52, 0.28);
  color: #14532d;
}

.bsrc-bridge-panel strong {
  font-weight: 900;
}

.bsrc-card--results {
  margin-top: 16px;
  border: 2px solid rgba(21, 94, 117, 0.2);
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  box-shadow: 0 8px 24px rgba(21, 94, 117, 0.08);
}

.bsrc-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  margin-top: 12px;
}

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

.bsrc-table th,
.bsrc-table td {
  border: 1px solid #e2e8f0;
  padding: 10px;
}

.bsrc-table th {
  background: #f1f5f9;
  color: var(--bsrc-navy);
  font-weight: 900;
}

.bsrc-th-neutral {
  background: #f9fafb !important;
}

.bsrc-th-gia {
  background: #d1fae5 !important;
  color: #065f46;
}

.bsrc-th-isa {
  background: #dbeafe !important;
  color: #1e40af;
}

.bsrc-th-pen {
  background: #ffedd5 !important;
  color: #9a3412;
}

.bsrc-td-neutral {
  font-weight: 650;
  color: #334155;
}

.bsrc-td-gia {
  background: #f0fdf4;
  font-weight: 650;
  color: #065f46;
}

.bsrc-td-isa {
  background: #eff6ff;
  font-weight: 650;
  color: #1e40af;
}

.bsrc-td-pen {
  background: #fff7ed;
  font-weight: 650;
  color: #9a3412;
}

.bsrc-table tbody tr:nth-child(even) .bsrc-td-gia {
  background: #ecfdf5;
}

.bsrc-table tbody tr:nth-child(even) .bsrc-td-isa {
  background: #e0f2fe;
}

.bsrc-table tbody tr:nth-child(even) .bsrc-td-pen {
  background: #ffedd5;
}

.bsrc-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.bsrc-mechanics-details {
  margin-top: 14px;
  border-radius: 14px;
  border: 1px dashed rgba(8, 49, 65, 0.22);
  background: #fafafa;
}

.bsrc-mechanics-summary {
  cursor: pointer;
  padding: 16px 18px;
  font-size: clamp(1.1rem, 2.55vw, 1.22rem);
  font-weight: 950;
  color: var(--bsrc-navy);
  list-style: none;
  line-height: 1.4;
  letter-spacing: -0.02em;
}

.bsrc-mechanics-summary::-webkit-details-marker {
  display: none;
}

.bsrc-mechanics-body {
  padding: 0 18px 20px;
}

.bsrc-mechanics-body .bsrc-table-wrap--rules {
  margin-top: 0;
}

.bsrc-methodology-details {
  margin-top: 14px;
  border-radius: 14px;
  border: 1px solid rgba(21, 94, 117, 0.22);
  background: linear-gradient(165deg, #f0fdfa 0%, #fff 55%);
  box-shadow: 0 4px 18px rgba(2, 6, 23, 0.06);
}

.bsrc-methodology-summary {
  cursor: pointer;
  padding: 16px 18px;
  font-size: clamp(1.02rem, 2.45vw, 1.15rem);
  font-weight: 950;
  color: var(--bsrc-navy);
  list-style: none;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.bsrc-methodology-summary::-webkit-details-marker {
  display: none;
}

.bsrc-methodology-body {
  padding: 0 18px 18px;
}

.bsrc-methodology-list {
  margin: 0;
  padding-left: 1.2rem;
  color: #334155;
  font-size: clamp(0.88rem, 2vw, 0.95rem);
  font-weight: 650;
  line-height: 1.55;
}

.bsrc-methodology-list li {
  margin-bottom: 10px;
}

.bsrc-methodology-list li:last-child {
  margin-bottom: 0;
}

.bsrc-rules-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: clamp(0.94rem, 2.1vw, 1.05rem);
}

.bsrc-rules-table th,
.bsrc-rules-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
  line-height: 1.55;
}

.bsrc-rules-table th {
  background: #f8fafc;
  color: var(--bsrc-navy);
  text-align: left;
}

.bsrc-rules-table thead th {
  font-size: clamp(0.98rem, 2.2vw, 1.08rem);
  font-weight: 900;
  padding-bottom: 14px;
}

.bsrc-rules-table tbody th {
  font-weight: 800;
  font-size: clamp(0.95rem, 2.1vw, 1.02rem);
}

.bsrc-rules-table td {
  font-weight: 650;
  color: #334155;
}

.bsrc-rh-gia {
  background: rgba(5, 150, 105, 0.08);
}

.bsrc-rh-isa {
  background: rgba(37, 99, 235, 0.08);
}

.bsrc-rh-pen {
  background: rgba(194, 65, 12, 0.08);
}

.bsrc-results-footnote {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(254, 243, 199, 0.45);
  border: 1px solid rgba(217, 119, 6, 0.22);
  color: #92400e;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.45;
}

.bsrc-export {
  margin-top: 20px;
  padding: 20px;
  border-radius: 16px;
  border: 2px solid rgba(21, 94, 117, 0.3);
  background: linear-gradient(135deg, #fff 0%, #ecfeff 100%);
  text-align: center;
}

.bsrc-export-title {
  margin: 0 0 8px;
  color: var(--bsrc-navy);
  font-size: clamp(1.22rem, 3.25vw, 1.58rem);
  font-weight: 950;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.bsrc-export-sub {
  margin: 0 0 14px;
  color: var(--bsrc-muted);
  font-weight: 650;
  font-size: 0.92rem;
  line-height: 1.5;
}

.bsrc-export-brand {
  margin: 0 0 16px;
  font-size: 0.88rem;
  font-weight: 800;
}

.bsrc-export-brand a {
  color: #0e7490;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.bsrc-export-brand a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bsrc-export-btn {
  width: 100%;
  max-width: 420px;
  padding: 17px 18px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 950;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #0e7490 0%, #155e75 55%, #164e63 100%);
  box-shadow: 0 6px 0 #0c4a5f, 0 16px 34px rgba(21, 94, 117, 0.35);
}

.bsrc-export-btn:hover {
  filter: brightness(1.03);
}

.bsrc-export-btn:active {
  transform: translateY(2px);
  box-shadow: 0 3px 0 #0c4a5f, 0 8px 20px rgba(21, 94, 117, 0.28);
}

/* Modal: DB CETV */
.bsrc-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
  box-sizing: border-box;
  overflow-y: auto;
}

.bsrc-modal {
  width: 100%;
  max-width: 560px;
  max-height: min(92vh, calc(100dvh - 32px));
  background: #fff;
  border: 3px solid var(--bsrc-navy);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.bsrc-modal-header {
  padding: 22px;
  background: linear-gradient(135deg, var(--bsrc-navy), #0a4a5f);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.bsrc-modal-header-text {
  flex: 1;
  min-width: 0;
}

.bsrc-modal-header h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.22rem, 4.2vw, 1.55rem);
  font-weight: 950;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.bsrc-modal-header-sub {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.875rem;
  font-weight: 550;
  line-height: 1.45;
}

.bsrc-modal-close {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.bsrc-modal-body {
  padding: 22px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.bsrc-modal-lead {
  margin: 0 0 14px;
  color: #1e293b;
  font-weight: 650;
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  line-height: 1.55;
}

.bsrc-modal-trust {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 100%);
  border: 1px solid rgba(16, 185, 129, 0.28);
  font-size: 0.84rem;
  font-weight: 700;
  color: #065f46;
  line-height: 1.45;
}

.bsrc-modal-brand {
  margin: 0 0 18px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 800;
}

.bsrc-modal-brand a {
  color: #0e7490;
  text-decoration: none;
}

.bsrc-modal-brand a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bsrc-modal-label {
  display: block;
  margin: 10px 0 7px;
  font-weight: 900;
  color: #0f172a;
  font-size: 0.95rem;
}

.bsrc-modal-input {
  width: 100%;
  padding: 12px;
  border: 2px solid rgba(8, 49, 65, 0.28);
  border-radius: 12px;
  box-sizing: border-box;
  font-size: max(16px, 1rem);
}

.bsrc-modal-error {
  margin-top: 10px;
  color: #b91c1c;
  font-weight: 700;
  font-size: 0.92rem;
}

.bsrc-modal-footer {
  padding: 18px 22px;
  background: #ecfeff;
  border-top: 2px solid rgba(21, 94, 117, 0.22);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.bsrc-modal-submit {
  flex: 1 1 auto;
  min-width: min(100%, 240px);
  min-height: 54px;
  border-radius: 14px;
  border: 2px solid #0c4a5f;
  background: linear-gradient(180deg, #0e7490 0%, #155e75 55%, #164e63 100%);
  color: #fff;
  font-weight: 950;
  cursor: pointer;
}

.bsrc-modal-secondary {
  border: 2px solid rgba(8, 49, 65, 0.25);
  background: #fff;
  color: var(--bsrc-navy);
  border-radius: 14px;
  padding: 14px 18px;
  font-weight: 850;
  cursor: pointer;
  min-height: 54px;
}

.bsrc-modal-success {
  margin: 0;
  padding: 8px 0;
  text-align: center;
  color: #059669;
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .bsrc-visual-columns--triple {
    grid-template-columns: 1fr;
  }

  .bsrc-visual-path--gia,
  .bsrc-visual-path--isa {
    border-right: none;
    border-bottom: 1px solid rgba(8, 49, 65, 0.08);
  }

  .bsrc-modal-overlay {
    align-items: flex-start;
    padding-top: max(12px, env(safe-area-inset-top));
  }
}

@media (prefers-reduced-motion: reduce) {
  .bsrc-pot-bar-row__fill {
    transition: none;
  }
}

@media (max-width: 520px) {
  #bsrc-root.bsrc-app {
    padding: 0 10px;
  }

  .bsrc-shell {
    padding: 16px 12px 22px;
    border-radius: 16px;
  }

  .bsrc-hero {
    padding: 16px;
    border-radius: 14px;
  }

  .bsrc-card {
    padding: 14px;
  }

  .bsrc-results {
    padding: 16px 12px 2px;
    border-radius: 14px;
  }

  .bsrc-pot-chart {
    padding: 14px 12px 16px;
  }

  .bsrc-methodology-summary {
    padding: 14px 14px;
  }

  .bsrc-methodology-body {
    padding: 0 14px 14px;
  }

  .bsrc-export {
    padding: 16px 14px;
  }

  .bsrc-export-btn {
    max-width: none;
  }

  .bsrc-modal-header,
  .bsrc-modal-body,
  .bsrc-modal-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .bsrc-modal-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .bsrc-modal-submit,
  .bsrc-modal-secondary {
    width: 100%;
    min-width: 0;
  }
}
