.scenario-page {
  max-width: 1320px;
  padding-top: 44px;
}
.scenario-hero {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  align-items: center;
  gap: 70px;
  margin-bottom: 32px;
}
.scenario-hero h1 {
  font-size: clamp(34px, 4vw, 51px);
  line-height: 1.13;
  letter-spacing: -2px;
  margin: 15px 0;
}
.scenario-hero h1 span {
  color: #315ce7;
}
.scenario-lead {
  max-width: 610px;
  color: #63718a;
  font-size: 16px;
  line-height: 1.7;
}
.hero-note {
  padding: 25px;
  border-radius: 20px;
  background: #edf2ff;
  border: 1px solid #dce4fc;
}
.hero-symbol {
  float: right;
  font-size: 27px;
  color: #6986eb;
}
.hero-note strong {
  font-size: 17px;
}
.hero-note p {
  margin: 10px 0 14px;
  color: #63718a;
}
.hero-note a {
  font-weight: 650;
  color: #315ce7;
}
.scenario-status {
  color: #65748d;
  margin: 12px 0;
}
.scenario-status:empty {
  display: none;
}
.preset-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 23px;
}
.scenario-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 16px;
}
.group-button {
  border: 1px solid #d9e2f1;
  border-radius: 20px;
  padding: 9px 17px;
  color: #627592;
  background: white;
  font-size: 12px;
  font-weight: 600;
}
.group-button[aria-pressed="true"] {
  color: #244edc;
  border-color: #96adee;
  background: #eaf0ff;
}
#publicFxQuotes {
  display: grid;
  gap: 8px;
  margin: 10px 0;
}
#publicFxQuotes a {
  text-decoration: underline;
}
#publicFxNotice {
  color: #74664c;
}
.fx-warning {
  margin: 22px 0;
  padding: 20px 24px;
  border: 1px solid #edcf8a;
  border-radius: 17px;
  background: #fff8e7;
  color: #624812;
}
.fx-warning strong {
  font-size: 18px;
}
.fx-warning p {
  margin: 10px 0;
  line-height: 1.6;
}
.fx-warning a {
  font-weight: 600;
  text-decoration: underline;
}
#savingsOptions .top-card:first-child {
  border-top: 1px solid #e0e6f1;
  padding-top: 22px;
}
.preset-card {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 9px;
  border: 1px solid #dfe5f0;
  border-radius: 16px;
  background: white;
  color: #25334b;
  padding: 20px;
  transition:
    background 180ms,
    border-color 180ms;
}
.preset-card[aria-pressed="true"] {
  background: #244edc;
  border-color: #244edc;
  color: white;
  box-shadow: 0 8px 22px #244edc1c;
}
.preset-number {
  font:
    13px ui-monospace,
    monospace;
  color: #697eaf;
}
.preset-card[aria-pressed="true"] .preset-number {
  color: #b9caff;
}
.preset-card strong {
  font-size: 16px;
  line-height: 1.35;
}
.preset-card small {
  font-size: 12px;
  opacity: 0.78;
  line-height: 1.6;
}
.payment-panel,
.calculation,
.comparison-panel {
  background: white;
  border: 1px solid #e0e6f1;
  border-radius: 21px;
  padding: 27px;
  margin-bottom: 28px;
}
.section-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 13px;
}
.section-line h2,
.exchange-panel h2 {
  font-size: 23px;
  letter-spacing: -0.7px;
  line-height: 1.3;
}
.scenario-page .eyebrow {
  margin-bottom: 9px;
  font-size: 10px;
  letter-spacing: 1.8px;
}
.muted,
.scope-note {
  color: #69788e;
  font-size: 13px;
  line-height: 1.7;
}
.small-pill {
  flex-shrink: 0;
  border-radius: 20px;
  padding: 6px 11px;
  background: #eef3ff;
  color: #4965ae;
  font-size: 11px;
}
.payment-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}
.scenario-page label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #4c5e7a;
  font-size: 12px;
  font-weight: 550;
  min-width: 0;
}
.scenario-page input,
.scenario-page select {
  width: 100%;
  min-width: 0;
  height: 43px;
  border: 1px solid #d6e0ef;
  border-radius: 9px;
  padding: 9px 11px;
  background: #f9fbff;
  color: #25334b;
  font-size: 14px;
}
.scenario-page input:invalid {
  border-color: #d69480;
}
.extra-inputs {
  grid-column: 1/-1;
  font-size: 12px;
  color: #526ca7;
}
.extra-inputs summary,
.method-details summary {
  cursor: pointer;
}
.extra-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 17px 0 10px;
}
.chart-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.chart-actions select {
  width: auto;
}
.primary-button,
.quiet-button {
  border-radius: 9px;
  padding: 11px 14px;
  border: 1px solid #d9e3f5;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.primary-button {
  background: #2c59e6;
  color: white;
  border-color: #2c59e6;
}
.quiet-button {
  background: #f5f8ff;
  color: #4e679b;
}
.story-steps {
  display: flex;
  gap: 8px;
  margin: 23px 0 9px;
  flex-wrap: wrap;
}
.story-step {
  font-size: 11px;
  padding: 7px 12px;
  border-radius: 7px;
  background: #f0f3f9;
  color: #8b97a9;
}
.story-step.is-active {
  color: #2754dc;
  background: #edf2ff;
}
.animation-status {
  font-size: 12px;
  color: #6e7c92;
  min-height: 20px;
}
.cost-chart {
  margin-top: 19px;
  display: grid;
  gap: 15px;
}
.cost-row {
  display: grid;
  grid-template-columns: 155px minmax(0, 1fr) 138px;
  gap: 14px;
  align-items: center;
}
.chart-bank {
  font-size: 13px;
  font-weight: 650;
}
.chart-bank small {
  display: block;
  margin-top: 3px;
  color: #8793a6;
  font-size: 10px;
  font-weight: 400;
}
.bar-track {
  display: flex;
  align-items: stretch;
  height: 29px;
  background: #f3f5fa;
  border-radius: 7px;
  overflow: hidden;
}
.bar-segment {
  display: block;
  min-width: 0;
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0;
  transition:
    transform 430ms cubic-bezier(0.2, 0.7, 0.3, 1),
    opacity 300ms;
}
.bar-segment.is-visible {
  transform: scaleX(1);
  opacity: 1;
}
.part-monthly {
  background: #4268e8;
}
.part-digital {
  background: #28a795;
}
.part-external {
  background: #edb24a;
}
.part-internal {
  background: #df8b47;
}
.part-incoming {
  background: #9477ce;
}
.chart-total {
  text-align: right;
  font:
    650 15px ui-monospace,
    monospace;
  font-variant-numeric: tabular-nums;
}
.chart-total small {
  display: block;
  font:
    10px system-ui,
    sans-serif;
  color: #78859b;
  margin-top: 3px;
}
.cost-row.is-incomplete .bar-track {
  background: repeating-linear-gradient(135deg, #f1f3f7 0 5px, #fff 5px 9px);
  border: 1px dashed #c9d1e1;
}
.cost-row.is-incomplete .chart-total {
  color: #7b6c50;
}
.cost-legend {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin: 23px 0 14px;
  font-size: 11px;
  color: #6b7890;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend-swatch {
  width: 9px;
  height: 9px;
  border-radius: 3px;
}
.scope-note {
  font-size: 11px;
  border-top: 1px solid #edf0f6;
  padding-top: 13px;
}
.recommendations {
  margin: 33px 0;
}
.scenario-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 18px;
}
.top-card {
  background: white;
  border: 1px solid #e0e6f1;
  border-radius: 17px;
  padding: 22px;
  min-width: 0;
}
.scenario-top:not(.unranked) .top-card:first-child {
  border-top: 3px solid #4268e8;
  padding-top: 20px;
}
.top-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.top-heading h3 {
  font-size: 18px;
}
.score-tag {
  color: #315ce7;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.top-price {
  font-size: 27px;
  letter-spacing: -1px;
  line-height: 1.2;
  margin: 8px 0 5px;
}
.top-caption {
  color: #6c7c96;
  font-size: 11px;
  margin-bottom: 14px;
}
.service-list {
  list-style: none;
  padding: 0;
  margin: 13px 0;
  font-size: 12px;
  color: #51647e;
  display: grid;
  gap: 6px;
}
.service-list a {
  text-decoration: underline;
  text-decoration-color: #b7c5dc;
  text-underline-offset: 3px;
}
.service-yes {
  color: #258670;
}
.service-unknown {
  color: #9a7d47;
}
.top-card .quiet-button {
  width: 100%;
  margin-top: 12px;
}
.top-source {
  color: #426bb3;
  font-size: 11px;
}
.top-start {
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid #edf0f6;
  font-size: 11px;
  color: #7a8495;
}
.method-details {
  font-size: 12px;
  color: #6a7b93;
  margin-top: 18px;
  line-height: 1.8;
}
.method-details p {
  margin: 9px 0;
}
.comparison-selects {
  display: flex;
  gap: 12px;
}
.comparison-selects select {
  font-size: 12px;
}
.preset-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin: 17px 0;
}
.preset-summary article {
  padding: 18px;
  border-radius: 12px;
  background: #f3f6fd;
  font-size: 12px;
  color: #65748e;
}
.preset-summary strong {
  display: block;
  color: #25334b;
  font-size: 16px;
  margin: 5px 0;
}
.comparison-scroll {
  overflow: auto;
}
.scenario-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 650px;
  font-size: 12px;
}
.scenario-table th {
  text-align: left;
  font-size: 11px;
  color: #78849a;
  font-weight: 550;
  padding: 11px;
  background: #f8faff;
}
.scenario-table td {
  padding: 14px 11px;
  border-bottom: 1px solid #edf0f6;
  vertical-align: top;
}
.scenario-table small {
  display: block;
  color: #7c899d;
  font-size: 10px;
  margin-top: 4px;
}
.scenario-table td:last-child {
  max-width: 250px;
}
.exchange-panel {
  border-radius: 20px;
  border: 1px solid #cfdfe9;
  background: #edf6f5;
  padding: 28px;
  margin: 28px 0;
}
.exchange-panel h2 {
  margin-bottom: 12px;
}
.exchange-panel p {
  max-width: 900px;
  font-size: 13px;
  line-height: 1.7;
}
.exchange-fields {
  margin: 20px 0;
  display: grid;
  grid-template-columns: 0.9fr 1fr 0.9fr 1fr 0.9fr;
  gap: 13px;
}
.exchange-result {
  padding-top: 13px;
  border-top: 1px solid #cddfda;
  color: #23705c;
  font-weight: 600;
}
.scenario-footer {
  color: #8090a5;
  font-size: 11px;
  display: grid;
  gap: 7px;
  padding: 10px 0 28px;
}
.scenario-footer a {
  color: #426bb3;
}
.form-error {
  color: #a34530;
  margin-top: 14px;
  font-size: 13px;
}
#scenarioReviews {
  max-width: 760px;
  width: calc(100% - 30px);
  border: 1px solid #d9e1ed;
  border-radius: 19px;
  padding: 25px;
  color: #25334b;
}
#scenarioReviews::backdrop {
  background: #16264080;
}
.review-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 16px;
}
.review-entry {
  padding: 15px 0;
  border-top: 1px solid #e8edf5;
  font-size: 13px;
  line-height: 1.8;
}
.review-entry small {
  color: #7b8ba4;
  display: block;
}
#scenarioReviews > a {
  color: #426bb3;
  font-size: 13px;
}
@media (max-width: 1050px) {
  .preset-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .scenario-hero {
    gap: 25px;
  }
  .scenario-top {
    grid-template-columns: 1fr;
  }
  .section-line {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .exchange-fields {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 650px) {
  .scenario-page {
    padding: 25px 16px;
  }
  .scenario-hero {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .scenario-hero h1 {
    letter-spacing: -1.3px;
    font-size: 35px;
  }
  .scenario-lead {
    font-size: 14px;
  }
  .hero-note {
    padding: 18px;
  }
  .preset-cards {
    gap: 9px;
  }
  .preset-card {
    padding: 15px;
  }
  .preset-card strong {
    font-size: 14px;
  }
  .preset-card small {
    font-size: 11px;
  }
  .payment-panel,
  .calculation,
  .comparison-panel,
  .exchange-panel {
    padding: 19px 16px;
  }
  .payment-fields,
  .extra-fields {
    grid-template-columns: 1fr 1fr;
    gap: 13px;
  }
  .section-line h2,
  .exchange-panel h2 {
    font-size: 21px;
  }
  .chart-actions {
    gap: 7px;
  }
  .chart-actions select,
  .primary-button,
  .quiet-button {
    font-size: 11px;
    padding: 9px 10px;
  }
  .cost-row {
    grid-template-columns: minmax(0, 1fr) 105px;
    gap: 6px;
  }
  .chart-bank {
    grid-row: 1;
    font-size: 12px;
  }
  .chart-bank small {
    display: inline;
    margin-left: 6px;
  }
  .bar-track {
    grid-column: 1/-1;
    grid-row: 2;
    height: 23px;
  }
  .chart-total {
    grid-row: 1;
    font-size: 13px;
  }
  .chart-total small {
    font-size: 9px;
  }
  .cost-legend {
    gap: 9px;
    font-size: 10px;
  }
  .comparison-selects {
    flex-wrap: wrap;
    width: 100%;
  }
  .comparison-selects label {
    flex: 1;
  }
  .preset-summary {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .exchange-fields {
    grid-template-columns: 1fr 1fr;
  }
  .exchange-fields label:first-child {
    grid-column: 1/-1;
  }
  .scenario-page .eyebrow {
    font-size: 9px;
    letter-spacing: 1.4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .scenario-page *,
  .scenario-page *::before {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto;
  }
}

.scenario-page .fx-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 650;
}
.fx-toggle input {
  width: auto;
}
.fx-amount-line {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin: 15px 0;
}
.fx-amount-line label {
  display: grid;
  gap: 7px;
}
.fx-bank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr));
  gap: 14px;
}
.fx-bank-card {
  padding: 17px;
  border: 1px solid #dce4ef;
  border-radius: 12px;
  min-width: 0;
}
.fx-bank-card h3 {
  margin: 0;
}
.fx-bank-card label {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  font-size: 13px;
}
.fx-bank-card input,
.fx-bank-card select {
  width: 100%;
  min-width: 0;
}
.fx-source-note {
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.6;
}
.fx-net {
  font-size: 14px;
  font-weight: 650;
  color: #2046af;
}
.fx-comment {
  padding: 15px 0;
}
.fx-comment blockquote {
  margin: 12px 0;
  padding-left: 14px;
  border-left: 3px solid #ccd9f5;
  overflow-wrap: anywhere;
}

#fxAllPanel {
  padding: 14px 18px;
  margin: 16px 0;
  border-radius: 12px;
}
#fxAllPanel .fx-toggle {
  flex-direction: row;
  font-size: 15px;
  line-height: 1.5;
}
#fxAllPanel .fx-toggle input {
  width: 16px;
  height: 16px;
  min-height: 0;
  flex-shrink: 0;
  padding: 0;
  margin: 0;
}
#fxAllPanel > .fx-intro {
  margin: 4px 0 0 25px;
  font-size: 12px;
  line-height: 1.5;
}

.payment-note {
  grid-column: 1 / -1;
}

.scenario-page .fx-checkbox {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0.8rem 0;
}
.fx-checkbox input {
  width: auto;
  margin-top: 0.2rem;
}
.fx-checkbox[hidden] {
  display: none;
}

@media (max-width: 640px) {
  .fx-comparison .scenario-table {
    min-width: 0;
  }
  .fx-comparison thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .fx-comparison tbody {
    display: block;
  }
  .fx-comparison tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #dce4ef;
    border-radius: 10px;
  }
  .fx-comparison td {
    min-width: 0;
    border: 0;
    padding: 7px;
    overflow-wrap: anywhere;
  }
  .fx-comparison td:nth-child(-n + 2) {
    grid-column: 1 / -1;
  }
  .fx-comparison td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    color: #667b9c;
    margin-bottom: 4px;
  }
}
