.amp-page {
  --amp-ink: #17212B;
  --amp-navy: #17324D;
  --amp-blue: #2563EB;
  --amp-teal: #0F766E;
  --amp-copy: #52677C;
  --amp-muted: #718397;
  --amp-line: #DCE5EC;
  --amp-soft: #F4F7F9;
  min-height: calc(100vh - 72px);
  padding: 32px 0 72px;
  background: #F4F4F3;
  color: var(--amp-ink);
  font-family: "Avenir Next", Avenir, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.amp-page * {
  box-sizing: border-box;
  letter-spacing: 0;
}

.amp-shell {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
}

.amp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: #7B8DA0;
  font-size: 12px;
}

.amp-breadcrumb a {
  color: #52677C;
  text-decoration: none;
}

.amp-breadcrumb a:hover {
  color: var(--amp-blue);
}

.amp-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 500px);
  align-items: end;
  gap: 48px;
  margin-bottom: 28px;
}

.amp-kicker {
  margin: 0 0 7px;
  color: var(--amp-blue);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.amp-heading h1,
.amp-knowledge h2 {
  margin: 0;
  color: var(--amp-navy);
  font-weight: 600;
}

.amp-heading h1 {
  max-width: 760px;
  font-size: 46px;
  line-height: 1.08;
}

.amp-heading > p,
.amp-knowledge-intro > p:last-child {
  margin: 0 0 3px;
  color: var(--amp-copy);
  font-size: 15px;
  line-height: 1.65;
}

.amp-planner {
  display: grid;
  grid-template-columns: minmax(380px, .72fr) minmax(600px, 1.28fr);
  overflow: hidden;
  border: 1px solid var(--amp-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 38px rgba(15, 23, 42, .07);
}

.amp-controls,
.amp-results {
  min-width: 0;
  padding: 28px;
}

.amp-controls {
  border-right: 1px solid var(--amp-line);
  background: #fff;
}

.amp-results {
  background: #FBFCFD;
}

.amp-panel-heading,
.amp-result-head,
.amp-visual-head,
.amp-schedule-head,
.amp-schedule-actions,
.amp-extra-head,
.amp-schedule-foot {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.amp-panel-heading {
  margin-bottom: 24px;
}

.amp-panel-heading span:first-child,
.amp-result-head > div > span,
.amp-visual-head > div > span,
.amp-schedule-head > div > span,
.amp-key-metrics span,
.amp-payoff-date span {
  color: #6A7D90;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.amp-panel-heading h2,
.amp-visual-head h2,
.amp-schedule-head h2 {
  margin: 4px 0 0;
  color: var(--amp-navy);
  font-size: 19px;
  line-height: 1.25;
  font-weight: 600;
}

.amp-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid #BFE2D9;
  border-radius: 999px;
  background: #EFF9F6;
  color: var(--amp-teal) !important;
  font-size: 9px !important;
  white-space: nowrap;
}

.amp-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
}

.amp-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 12px;
}

.amp-field {
  display: grid;
  min-width: 0;
  gap: 6px;
  color: #3F4F60;
  font-size: 11px;
  font-weight: 500;
}

.amp-field-wide {
  grid-column: span 2;
}

.amp-input-shell {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 44px;
  align-items: center;
  overflow: hidden;
  border: 1px solid #AEBCC8;
  border-radius: 5px;
  background: #fff;
  color: #52677C;
}

.amp-input-shell:focus-within {
  border-color: var(--amp-blue);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, .13);
}

.amp-input-shell input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 11px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--amp-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.amp-input-shell i {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 13px;
}

.amp-money > i {
  padding-left: 11px;
}

.amp-percent > i {
  padding-right: 11px;
}

.amp-money input {
  padding-left: 7px;
}

.amp-percent input {
  padding-right: 5px;
}

.amp-term-field {
  min-width: 0;
  margin: 19px 0 0;
  padding: 0;
  border: 0;
}

.amp-term-field legend {
  margin-bottom: 8px;
  color: #3F4F60;
  font-size: 11px;
  font-weight: 500;
}

.amp-segments {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(82px, auto);
  gap: 2px;
  padding: 3px;
  border: 1px solid #D8E2EA;
  border-radius: 6px;
  background: #EEF2F4;
}

.amp-segments button,
.amp-chart-modes button,
.amp-presets button {
  border: 0;
  font-family: inherit;
  cursor: pointer;
}

.amp-segments button {
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 4px;
  background: transparent;
  color: #52677C;
  font-size: 12px;
  font-weight: 500;
}

.amp-segments button.active {
  background: #fff;
  color: var(--amp-navy);
  box-shadow: 0 1px 3px rgba(15, 23, 42, .13);
}

.amp-extra-block {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--amp-line);
}

.amp-extra-head {
  align-items: center;
  margin-bottom: 14px;
}

.amp-extra-head > div {
  display: grid;
  gap: 3px;
}

.amp-extra-head > div > span {
  color: #334E68;
  font-size: 12px;
  font-weight: 600;
}

.amp-extra-head small {
  color: #7B8DA0;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.4;
}

.amp-extra-input {
  width: 112px;
  flex: 0 0 112px;
}

.amp-slider {
  width: 100%;
  height: 5px;
  margin: 4px 0 14px;
  appearance: none;
  border-radius: 999px;
  background-color: #DDE6ED;
  background-image: linear-gradient(var(--amp-blue), var(--amp-blue));
  background-repeat: no-repeat;
}

.amp-slider::-webkit-slider-thumb {
  width: 21px;
  height: 21px;
  appearance: none;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--amp-blue);
  box-shadow: 0 0 0 1px var(--amp-blue), 0 3px 8px rgba(16, 42, 67, .18);
}

.amp-slider::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--amp-blue);
  box-shadow: 0 0 0 1px var(--amp-blue);
}

.amp-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.amp-presets button {
  min-height: 32px;
  padding: 5px 11px;
  border: 1px solid #CBD7E1;
  border-radius: 5px;
  background: #fff;
  color: #52677C;
  font-size: 11px;
  font-weight: 500;
}

.amp-presets button:hover,
.amp-presets button.active {
  border-color: #9BB9DA;
  background: #EFF6FF;
  color: #1D4ED8;
}

.amp-advanced {
  margin-top: 20px;
  border-top: 1px solid var(--amp-line);
}

.amp-advanced summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 0 5px;
  list-style: none;
  cursor: pointer;
}

.amp-advanced summary::-webkit-details-marker {
  display: none;
}

.amp-advanced summary > span {
  display: grid;
  gap: 3px;
}

.amp-advanced summary strong {
  color: #334E68;
  font-size: 12px;
  font-weight: 600;
}

.amp-advanced summary small {
  color: #7B8DA0;
  font-size: 10px;
  font-weight: 400;
}

.amp-advanced summary > i {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 1px solid #CAD6E0;
  border-radius: 5px;
  color: var(--amp-blue);
  font-style: normal;
  font-size: 17px;
}

.amp-advanced[open] summary > i {
  transform: rotate(45deg);
}

.amp-advanced > .amp-field-grid {
  padding-top: 15px;
}

.amp-control-note {
  display: grid;
  gap: 3px;
  margin-top: 22px;
  padding: 13px 14px;
  border-left: 3px solid #D09A30;
  background: #FFF9EB;
}

.amp-control-note strong {
  color: #6D4C12;
  font-size: 11px;
  font-weight: 600;
}

.amp-control-note span {
  color: #78613B;
  font-size: 10px;
  line-height: 1.45;
}

.amp-result-head {
  align-items: center;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--amp-line);
}

.amp-result-head > div:first-child > strong {
  display: block;
  margin-top: 5px;
  color: var(--amp-navy);
  font-size: 32px;
  line-height: 1.15;
  font-weight: 600;
}

.amp-result-head p {
  margin: 7px 0 0;
  color: var(--amp-copy);
  font-size: 12px;
  line-height: 1.5;
}

.amp-payoff-date {
  min-width: 144px;
  padding: 13px 14px;
  border-left: 3px solid var(--amp-teal);
  background: #EFF9F6;
}

.amp-payoff-date strong {
  display: block;
  margin-top: 5px;
  color: var(--amp-navy);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.amp-key-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 18px 0;
  border: 1px solid var(--amp-line);
  background: var(--amp-line);
  gap: 1px;
}

.amp-key-metrics > div {
  min-width: 0;
  min-height: 92px;
  padding: 14px;
  background: #fff;
}

.amp-key-metrics strong,
.amp-key-metrics small {
  display: block;
}

.amp-key-metrics strong {
  margin-top: 7px;
  color: var(--amp-navy);
  font-size: 18px;
  line-height: 1.15;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.amp-key-metrics small {
  margin-top: 4px;
  color: #718397;
  font-size: 9.5px;
  line-height: 1.35;
}

.amp-key-metrics .amp-good strong {
  color: var(--amp-teal);
}

.amp-visual,
.amp-cost-comparison {
  padding-top: 20px;
  border-top: 1px solid var(--amp-line);
}

.amp-visual-head {
  align-items: center;
}

.amp-chart-modes {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 6px;
  background: #EAF0F4;
}

.amp-chart-modes button {
  min-height: 32px;
  padding: 5px 11px;
  border-radius: 4px;
  background: transparent;
  color: #52677C;
  font-size: 11px;
  font-weight: 500;
}

.amp-chart-modes button.active {
  background: #fff;
  color: var(--amp-navy);
  box-shadow: 0 1px 3px rgba(15, 23, 42, .12);
}

.amp-chart-legend {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 13px;
  color: #52677C;
  font-size: 10px;
}

.amp-chart-legend span::before {
  display: inline-block;
  width: 15px;
  height: 2px;
  margin: 0 6px 3px 0;
  background: currentColor;
  content: "";
}

.amp-chart-legend .scheduled {
  color: var(--amp-blue);
}

.amp-chart-legend .faster {
  color: var(--amp-teal);
}

.amp-chart {
  display: block;
  width: 100%;
  min-height: 240px;
  margin-top: 4px;
  overflow: visible;
}

.amp-grid-lines line {
  stroke: #DCE5EC;
  stroke-width: 1;
}

.amp-grid-lines text,
.amp-chart-labels text,
.amp-payoff-marker text {
  fill: #718397;
  font-family: inherit;
  font-size: 10px;
}

.amp-chart-labels text {
  text-anchor: middle;
}

.amp-chart-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.amp-chart-line.scheduled {
  stroke: var(--amp-blue);
}

.amp-chart-line.faster {
  stroke: var(--amp-teal);
}

.amp-savings-area {
  fill: rgba(15, 118, 110, .09);
}

.amp-payoff-marker line {
  stroke: var(--amp-teal);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.amp-payoff-marker circle {
  fill: #fff;
  stroke: var(--amp-teal);
  stroke-width: 3;
}

.amp-chart-note,
.amp-efficiency-note {
  margin: 3px 0 0;
  color: #718397;
  font-size: 10px;
  line-height: 1.5;
}

.amp-cost-comparison {
  margin-top: 18px;
}

.amp-cost-row {
  display: grid;
  grid-template-columns: 145px minmax(140px, 1fr) 138px;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}

.amp-cost-label {
  display: grid;
  gap: 2px;
}

.amp-cost-label strong {
  color: #334E68;
  font-size: 11px;
  font-weight: 600;
}

.amp-cost-label span {
  color: #718397;
  font-size: 10px;
}

.amp-cost-track {
  height: 10px;
  overflow: hidden;
  background: #E3EAF0;
}

.amp-cost-track i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--amp-blue);
  transition: width 220ms ease;
}

.amp-cost-row.faster .amp-cost-track i {
  background: var(--amp-teal);
}

.amp-cost-row > strong {
  color: var(--amp-navy);
  font-size: 11px;
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.amp-efficiency-note {
  margin-top: 14px;
}

.amp-schedule {
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid var(--amp-line);
  border-radius: 8px;
  background: #fff;
}

.amp-schedule-head {
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--amp-line);
}

.amp-schedule-head p {
  margin: 5px 0 0;
  color: #718397;
  font-size: 11px;
}

.amp-schedule-actions {
  align-items: center;
}

.amp-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: 1px solid var(--amp-navy);
  border-radius: 6px;
  background: var(--amp-navy);
  color: #fff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
}

.amp-button:hover {
  border-color: #0C2538;
  background: #0C2538;
  color: #fff;
}

.amp-button.secondary {
  min-height: 40px;
  padding: 7px 13px;
  border-color: #CBD9E4;
  background: #fff;
  color: var(--amp-navy);
}

.amp-button.secondary:hover {
  border-color: #9FB4C4;
  background: #F3F7FA;
}

.amp-table-wrap {
  max-height: 470px;
  overflow: auto;
}

.amp-table {
  width: 100%;
  border-collapse: collapse;
  color: #3F4F60;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.amp-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 11px 16px;
  border-bottom: 1px solid var(--amp-line);
  background: #F5F7F8;
  color: #667A8E;
  font-size: 9.5px;
  font-weight: 600;
  text-align: right;
  text-transform: uppercase;
}

.amp-table th:first-child,
.amp-table td:first-child {
  text-align: left;
}

.amp-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #E8EDF1;
  text-align: right;
}

.amp-table td:first-child,
.amp-table td:last-child {
  color: var(--amp-navy);
  font-weight: 600;
}

.amp-table td:nth-child(5) {
  color: var(--amp-teal);
  font-weight: 600;
}

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

.amp-schedule-foot {
  align-items: center;
  padding: 17px 24px;
  border-top: 1px solid var(--amp-line);
  background: #FBFCFD;
}

.amp-schedule-foot p {
  max-width: 820px;
  margin: 0;
  color: #718397;
  font-size: 10px;
  line-height: 1.5;
}

.amp-knowledge {
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
  gap: 70px;
  padding: 64px 0 10px;
}

.amp-knowledge h2 {
  font-size: 28px;
  line-height: 1.25;
}

.amp-knowledge-intro > p:last-child {
  margin-top: 16px;
  color: #41576D;
  font-size: 15px;
  line-height: 1.7;
}

.amp-knowledge-list {
  border-top: 1px solid #C9D5DE;
}

.amp-knowledge-list details {
  border-bottom: 1px solid #C9D5DE;
}

.amp-knowledge-list summary {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  list-style: none;
  color: var(--amp-navy);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.amp-knowledge-list summary::-webkit-details-marker {
  display: none;
}

.amp-knowledge-list summary i {
  color: var(--amp-blue);
  font-style: normal;
  font-size: 20px;
  font-weight: 400;
}

.amp-knowledge-list details[open] summary i {
  transform: rotate(45deg);
}

.amp-knowledge-list details p {
  max-width: 760px;
  margin: -2px 40px 18px 0;
  color: #41576D;
  font-size: 14px;
  line-height: 1.7;
}

@media (max-width: 1080px) {
  .amp-heading {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .amp-planner {
    grid-template-columns: 1fr;
  }

  .amp-controls {
    border-right: 0;
    border-bottom: 1px solid var(--amp-line);
  }

  .amp-key-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body:has(.amp-page) .mdbot-fab,
  body:has(.amp-page) .mdbot-panel {
    display: none !important;
  }

  .amp-page {
    padding: 24px 0 52px;
  }

  .amp-shell {
    width: min(100% - 24px, 1320px);
  }

  .amp-heading h1 {
    font-size: 34px;
  }

  .amp-controls,
  .amp-results {
    padding: 20px 16px;
  }

  .amp-result-head,
  .amp-schedule-head,
  .amp-schedule-actions,
  .amp-schedule-foot {
    align-items: stretch;
    flex-direction: column;
  }

  .amp-payoff-date {
    min-width: 0;
  }

  .amp-cost-row {
    grid-template-columns: 118px minmax(90px, 1fr);
    gap: 10px;
  }

  .amp-cost-row > strong {
    grid-column: 2;
    text-align: left;
  }

  .amp-schedule-actions {
    gap: 10px;
  }

  .amp-schedule-actions .amp-segments {
    width: 100%;
  }

  .amp-schedule-actions .amp-segments button {
    width: 100%;
  }

  .amp-button.secondary {
    align-self: flex-start;
  }

  .amp-table {
    min-width: 760px;
  }

  .amp-knowledge {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 48px;
  }
}

@media (max-width: 480px) {
  .amp-field-grid,
  .amp-key-metrics {
    grid-template-columns: 1fr;
  }

  .amp-field-wide {
    grid-column: auto;
  }

  .amp-live {
    display: none;
  }

  .amp-extra-head {
    align-items: flex-start;
  }

  .amp-extra-input {
    width: 102px;
    flex-basis: 102px;
  }

  .amp-segments {
    width: 100%;
    grid-auto-columns: 1fr;
  }

  .amp-result-head > div:first-child > strong {
    font-size: 28px;
  }

  .amp-chart {
    min-height: 190px;
  }

  .amp-chart-legend {
    justify-content: flex-start;
  }

  .amp-schedule-head {
    padding: 18px 16px;
  }

  .amp-schedule-foot {
    padding: 16px;
  }

  .amp-schedule-foot .amp-button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .amp-cost-track i {
    transition: none;
  }
}
