@font-face {
  font-family: RegionalNoto;
  src: url(fonts/noto-sans-sc-subset.woff2?v=20261014) format("woff2");
  font-display: swap;
}
@font-face {
  font-family: RegionalNotoBold;
  src: url(fonts/noto-sans-sc-bold-subset.woff2?v=20261014) format("woff2");
  font-weight: 700;
  font-display: swap;
}
@media (max-width: 760px) and (orientation: landscape) {
  #chartModal {
    padding: 0 !important;
    align-items: stretch !important;
  }
  #chartModal .chart-panel {
    width: 100% !important;
    height: 100% !important;
    max-height: 100% !important;
    min-height: 0 !important;
    border-radius: 0 !important;
  }
  #chartModal .chart-scroll {
    height: 100% !important;
    min-height: 0 !important;
    padding: 8px 18px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
  }
  #chartModal .repayment-chart {
    height: 100% !important;
    min-height: 0 !important;
    padding-bottom: 24px !important;
  }
}
@media (orientation: landscape) {
  #chartModal .chart-note {
    display: none !important;
  }
}
@media (max-width: 760px) and (orientation: portrait) {
  #chartModal[hidden] {
    display: none !important;
  }
  #chartModal {
    padding: 0 !important;
    display: block !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  #chartModal .chart-panel {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100dvh !important;
    max-height: none !important;
    overflow: visible !important;
    border-radius: 0 !important;
    padding-bottom: calc(10px + env(safe-area-inset-bottom)) !important;
  }
  #chartModal .chart-scroll {
    display: block !important;
    width: 100% !important;
    height: 320px !important;
    min-height: 320px !important;
    max-height: 320px !important;
    padding: 6px 4px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  #chartModal .repayment-chart {
    display: block !important;
    width: 100% !important;
    height: 308px !important;
    min-width: 0 !important;
    min-height: 308px !important;
    max-height: 308px !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  #chartModal .annual-wrap {
    display: block !important;
    width: calc(100% - 28px) !important;
    height: auto !important;
    max-height: 250px !important;
    overflow: auto !important;
    margin: 0 14px 8px !important;
  }
}
@media (max-width: 760px) and (orientation: landscape) {
  #chartModal .policy-head {
    min-height: 48px;
  }
  #chartModal .chart-key {
    padding: 8px 16px 0;
  }
  #chartModal .chart-note {
    padding: 8px 16px;
    font-size: 11px;
  }
}
@media (max-width: 760px) {
  .chart-rule {
    display: none;
  }
  html {
    scroll-padding-bottom: calc(132px + env(safe-area-inset-bottom));
  }
  body {
    min-height: 100dvh;
    touch-action: pan-y;
  }
  main {
    overflow-anchor: none;
  }
  body::after {
    content: "";
    display: block;
    height: calc(112px + env(safe-area-inset-bottom));
  }
}
.settlement-toggle {
  justify-self: start !important;
  margin-left: 24px !important;
}
@media (max-width: 760px) {
  .settlement-toggle {
    margin-left: 16px !important;
  }
}
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.result-actions .schedule {
  margin-top: 18px;
}
.chart-panel {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto auto;
  width: min(960px, 100%);
  height: min(720px, 100%);
  overflow: hidden;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}
.chart-summary-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin: 12px 18px 0;
}
.chart-summary {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 10px 12px;
  background: #fff7f8;
  border: 1px solid #f0c9d0;
  border-left: 4px solid var(--red);
  border-radius: 8px;
  color: var(--red-dark);
  font-size: 13px;
}
.chart-summary strong {
  font-size: 15px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chart-summary span {
  flex: 0 0 auto;
  font-weight: 700;
}
.chart-export {
  align-self: stretch;
  flex: 0 0 auto;
  margin-left: 0;
  min-width: 122px;
  padding: 0 12px;
  border: 1px solid #2f8f67;
  border-radius: 3px;
  color: #246e4f;
  background: #fff;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}
.chart-key {
  display: flex;
  gap: 10px;
  padding: 14px 18px 0;
  color: var(--muted);
  font-size: 13px;
}
.chart-key span {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid #e4e7ea;
  border-radius: 999px;
  background: #fafbfc;
}
.chart-key i {
  width: 11px;
  height: 11px;
  border-radius: 2px;
}
.chart-rule {
  display: none;
  color: var(--red-dark);
  font-size: 12px;
  font-weight: 700;
}
.principal-key {
  background: var(--red);
}
.interest-key {
  background: #f4b6c1;
}
.chart-scroll {
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 18px;
  background: #fcfcfd;
}
.repayment-chart {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  min-width: max-content;
  height: 100%;
  min-height: 330px;
  padding: 0 5px 28px;
  border-bottom: 1px solid var(--line);
}
.chart-note {
  margin: 0;
  padding: 12px 18px 16px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--line);
}
.annual-wrap {
  min-height: 0;
  max-height: 150px;
  overflow: auto;
  margin: 0 18px 8px;
  border: 1px solid #e2e5e8;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(32, 39, 45, 0.04);
}
.annual-table {
  width: 100%;
  min-width: 0 !important;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 13px;
}
.annual-table th, .annual-table td {
  width: 33.333% !important;
  height: 38px;
  padding: 6px 8px;
  text-align: center;
  border-bottom: 1px solid #e8eaec;
  white-space: nowrap;
}
.annual-table thead th {
  height: 42px;
  color: #626a72;
  background: #f4f5f6;
  font-weight: 700;
}
.annual-table thead th:nth-child(3) {
  color: var(--red-dark);
}
.annual-table th:first-child, .annual-table td:first-child {
  text-align: center;
  font-weight: 700;
}
.annual-table th, .annual-table td {
  overflow: hidden;
  text-overflow: ellipsis;
}
.annual-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}
.annual-table tbody tr:last-child th, .annual-table tbody tr:last-child td {
  border-bottom: 0;
}
.annual-table tbody tr:nth-child(even) {
  background: #fbfcfd;
}
.annual-table tbody td:nth-child(3) {
  color: var(--red-dark);
  font-weight: 700;
}
@keyframes chart-rise {from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }}
@media (max-width: 760px) {
  .chart-panel {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
  .chart-summary-row {
    margin: 10px 14px 0;
    gap: 8px;
    justify-content: space-between;
  }
  .chart-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin: 0;
  }
  .chart-summary strong {
    max-width: 100%;
  }
  .chart-summary > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .chart-export {
    align-self: stretch;
    width: 58px;
    min-width: 58px;
    padding: 0 5px;
    font-size: 11px;
    line-height: 1.35;
    white-space: normal;
  }
  .annual-wrap {
    max-height: none;
    width: calc(100% - 28px);
    overflow-x: hidden;
    margin: 0 14px 8px;
  }
  .chart-scroll {
    padding: 16px;
  }
  .repayment-chart {
    min-height: 300px;
  }
  .result-actions {
    gap: 16px;
  }
}
@media (max-width: 760px) and (orientation: landscape) {
  #chartModal .chart-panel {
    grid-template-rows: 48px auto 32px minmax(130px, 1fr) auto 32px !important;
  }
  #chartModal .chart-summary {
    flex-direction: row;
    align-items: center;
    margin: 0;
  }
  #chartModal .chart-summary-row {
    margin: 6px 16px 0;
  }
  #chartModal .chart-summary > span {
    width: auto;
  }
  #chartModal .annual-wrap {
    max-height: 108px;
    margin: 0 16px 4px;
  }
  #chartModal .annual-wrap {
    display: none !important;
  }
}
@media (max-width: 1000px) and (orientation: landscape) {
  #chartModal .chart-export {
    display: none !important;
  }
  #chartModal .chart-summary-row, #chartModal .chart-summary, #chartModal .chart-note {
    display: none !important;
  }
  #chartModal .annual-wrap {
    display: none !important;
  }
  #chartModal .chart-panel {
    height: 100dvh !important;
    max-height: 100dvh !important;
  }
  #chartModal .chart-scroll {
    min-height: 0 !important;
    height: auto !important;
    overflow: hidden !important;
  }
  #chartModal .repayment-chart {
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    min-height: 0 !important;
  }
}
@media (min-width: 1001px) and (orientation: landscape) {
  #chartModal {
    padding: 24px !important;
  }
  #chartModal .chart-panel {
    padding: 0 22px 14px !important;
  }
  #chartModal .chart-scroll {
    padding: 14px 8px 8px !important;
  }
  #chartModal .annual-wrap {
    width: 100% !important;
  }
  #chartModal .annual-table {
    font-size: 14px !important;
  }
  #chartModal .annual-table th, #chartModal .annual-table td {
    height: 44px !important;
    padding: 8px 10px !important;
  }
  #chartModal .chart-panel {
    padding-bottom: 10px;
  }
  #chartModal .policy-head {
    grid-column: 1 / -1;
  }
  #chartModal .chart-summary-row {
    grid-column: 1 / -1;
  }
  #chartModal .chart-scroll {
    display: block !important;
    overflow: hidden !important;
  }
  #chartModal .repayment-chart {
    display: block !important;
  }
}
@media (min-width: 761px) {
  #chartModal .chart-panel {
    grid-template-rows: auto auto minmax(180px, 1fr) auto !important;
  }
}
.settlement-toggle {
  grid-column: 1/-1;
  width: 42px;
  height: 42px;
  margin: -6px 0 0;
  color: var(--red-dark);
  background: #fff;
  border: 1px solid #e1a3af;
  border-radius: 50%;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(120, 15, 35, 0.12);
}
.settlement-toggle:hover {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}
:root {
  --ink: #202124;
  --muted: #6d7278;
  --line: #dddfe1;
  --paper: #f7f7f7;
  --red: #c8102e;
  --red-dark: #9f0c25;
}
* {
  box-sizing: border-box;
}
html, body {
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: RegionalNoto, "Microsoft YaHei", sans-serif;
}
h1, h2, p {
  margin: 0;
}
h1 {
  margin-top: 4px;
  font-size: 24px;
}
h2 {
  margin: 5px 0 21px;
  font-size: 19px;
}
small {
  color: var(--red);
  font-weight: 700;
}
header {
  padding: 22px max(24px, calc((100% - 1100px) / 2));
  background: #fff;
  border-top: 4px solid var(--red);
  border-bottom: 1px solid var(--line);
}
header small, .plan-head small {
  font-family: RegionalNotoBold, RegionalNoto, "Microsoft YaHei", sans-serif;
}
header .brand-title {
  display: block;
  color: var(--red);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.25;
}
.vehicle-tabs {
  position: relative;
  display: flex;
  gap: 0;
  width: min(760px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 4px;
  overflow: hidden;
  background: #f5f6f7;
  border: 1px solid #e0e2e5;
  border-radius: 8px;
  box-shadow: 0 3px 12px rgba(24, 31, 38, 0.08);
}
.vehicle-tabs::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  background: var(--red);
  border: 1px solid #b60c29;
  border-radius: 5px;
  box-shadow: 0 3px 8px rgba(159, 12, 37, 0.26);
  transform: translateX(0);
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1),
    background 0.25s ease,
    box-shadow 0.25s ease;
}
.vehicle-tabs.ev-active::before {
  background: #dff3e4;
  border-color: #b9dec3;
  box-shadow: 0 3px 8px rgba(49, 125, 72, 0.16);
  transform: translateX(100%);
}
.vehicle-tabs button {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 42px;
  padding: 0 22px;
  color: #6b7178;
  background: transparent;
  border: 0;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.22s ease;
}
.vehicle-tabs button.active {
  color: #fff;
}
.vehicle-tabs.ev-active button.active {
  color: #287344;
}
main {
  width: min(1100px, calc(100% - 32px));
  margin: 20px auto 28px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: start;
}
.card, .fields, label {
  min-width: 0;
}
.card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.model-picker, .amount-pair, .product-field {
  grid-column: 1/-1;
}
.model-picker {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 16px;
  align-items: start;
}
.model-picker figure {
  display: grid;
  min-height: 92px;
  margin: 0;
  overflow: hidden;
}
.model-picker img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.amount-pair {
  display: grid;
  grid-template-columns: 1fr 1fr 0.62fr;
  gap: 16px;
}
label {
  display: grid;
  gap: 7px;
  color: #454b50;
  font-size: 13px;
  font-weight: 700;
}
input, select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 11px;
  border: 1px solid #c7cbd0;
  border-radius: 4px;
  background: #fff;
  font: inherit;
}
select {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ratio-field {
  align-content: start;
}
.ratio-title, .invoice-title {
  display: block;
  white-space: nowrap;
  font-family: RegionalNotoBold, RegionalNoto, "Microsoft YaHei", sans-serif;
}
.percent-input {
  display: flex;
  align-items: center;
  height: 44px;
  border: 1px solid #c7cbd0;
  border-radius: 4px;
  background: #fff;
  overflow: hidden;
}
.percent-input input {
  height: 42px;
  padding-right: 4px;
  border: 0;
  border-radius: 0;
  text-align: center;
}
.percent-input b {
  padding: 0 11px 0 4px;
  color: var(--muted);
  font-size: 16px;
}
input:focus, select:focus {
  outline: 3px solid #f8cbd2;
  border-color: var(--red);
}
.percent-input:focus-within {
  outline: 3px solid #f8cbd2;
  border-color: var(--red);
}
#hint {
  min-height: 20px;
  margin: 13px 0;
  color: var(--muted);
  font-family: RegionalNoto, "Microsoft YaHei", sans-serif;
  font-size: 13px;
}
.action-row {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 16px;
}
.action-row output {
  color: var(--red-dark);
  font-size: 14px;
  font-weight: 700;
}
.action-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
#calculate, .action-buttons #benefitsPreview, .print {
  min-height: 44px;
  padding: 0 20px;
  color: #fff;
  background: var(--red);
  border: 0;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.action-buttons #benefitsPreview {
  color: var(--red);
  background: #fff;
  border: 1px solid var(--red);
}
.action-buttons #benefitsPreview:hover, .action-buttons #benefitsPreview:focus-visible {
  color: #fff;
  background: var(--red-dark);
}
.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.metric {
  min-height: 90px;
  padding: 14px;
  background: #fff6f7;
  border-left: 3px solid var(--red);
}
.metric.alert {
  background: #fff0eb;
  border-color: #d65a32;
}
.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.metric strong {
  display: block;
  margin-top: 9px;
  font-size: 20px;
  overflow-wrap: anywhere;
}
dl {
  display: grid;
  grid-template-columns: 130px 1fr;
  margin: 20px 0 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
dt, dd {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
dt {
  color: var(--muted);
}
dd {
  font-weight: 700;
}
.schedule {
  display: inline-block;
  margin-top: 18px;
  color: var(--red-dark);
  font: 700 14px RegionalNoto,
    "Microsoft YaHei",
    sans-serif;
  text-decoration: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid;
  cursor: pointer;
}
.settlement {
  grid-column: 1/-1;
}
.settlement .metrics {
  margin-top: 18px;
}
.settlement em, footer, .plan > p {
  display: block;
  margin-top: 17px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}
footer {
  padding: 0 20px 30px;
  text-align: center;
}
.policy-modal {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(20, 24, 28, 0.58);
}
.policy-modal[hidden] {
  display: none;
}
.policy-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(960px, 100%);
  height: min(860px, 100%);
  overflow: hidden;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}
.policy-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 14px 0 18px;
  border-bottom: 1px solid var(--line);
}
.policy-head button {
  width: 36px;
  height: 36px;
  color: #43484e;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.benefits-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(920px, 100%);
  height: min(92dvh, 920px);
  overflow: hidden;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}
.benefits-image-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #eef0f2;
}
.benefits-image-wrap img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.plan {
  display: block;
  width: min(100% - 32px, 1180px);
  margin: 32px auto;
}
.plan-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
}
.summary span {
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 13px;
}
.summary strong {
  margin-left: 8px;
}
.table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}
table {
  width: 100%;
  min-width: 760px;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 14px;
}
th, td {
  padding: 11px 14px;
  text-align: right;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
th:first-child, td:first-child {
  width: 10%;
  text-align: center;
}
th:not(:first-child), td:not(:first-child) {
  width: 22.5%;
}
th {
  color: #fff;
  background: var(--red-dark);
}
@media (max-width: 760px) {
  header {
    padding: 16px 18px;
  }
  header .brand-title {
    font-size: 21px;
  }
  .vehicle-tabs, main {
    width: 100%;
  }
  .vehicle-tabs {
    width: calc(100% - 32px);
    margin: 10px 16px 0;
    padding: 4px;
    background: #f5f6f7;
  }
  .vehicle-tabs button {
    flex: 1;
    min-height: 48px;
    padding: 0;
    font-size: 18px;
  }
  main {
    margin: 0 auto 18px;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .card {
    padding: 18px 16px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }
  .fields {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .model-picker {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 13px;
    align-items: start;
  }
  .model-picker figure {
    min-height: 108px;
  }
  .amount-pair {
    grid-template-columns: minmax(0, 1fr) minmax(126px, 0.72fr);
    gap: 13px;
  }
  .amount-pair > label:not(.ratio-field) {
    grid-column: 1;
  }
  .ratio-field {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: grid;
    grid-template-rows: auto 1fr;
    align-content: stretch;
    gap: 8px;
    padding: 12px;
    background: rgba(200, 16, 46, 0.08);
    border: 1px solid rgba(200, 16, 46, 0.24);
    border-radius: 4px;
  }
  .ratio-title {
    color: var(--red-dark);
    font-size: 15px;
  }
  .percent-input {
    min-height: 0;
    height: auto;
    border-color: rgba(200, 16, 46, 0.32);
    background: rgba(255, 255, 255, 0.8);
  }
  .percent-input input {
    height: 100%;
    padding: 0 2px 0 6px;
    color: var(--red-dark);
    font-size: 25px;
    font-weight: 700;
  }
  .percent-input b {
    padding: 0 9px 0 3px;
    color: var(--red-dark);
    font-size: 20px;
    font-weight: 700;
  }
  label {
    font-size: 15px;
  }
  input, select {
    height: 50px;
    font-size: 17px;
  }
  #hint {
    margin: 12px 0;
    line-height: 1.55;
  }
  .action-row output {
    font-size: 15px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .metric {
    min-height: 78px;
    padding: 12px;
  }
  .metric strong {
    margin-top: 7px;
    font-size: 18px;
  }
  .settlement {
    grid-column: auto;
  }
  dl {
    grid-template-columns: 105px 1fr;
    margin-top: 16px;
  }
  .schedule {
    margin-top: 16px;
  }
  .policy-modal {
    padding: 0;
  }
  .policy-panel {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
  .benefits-panel {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
  .benefits-image-wrap {
    padding: 0;
  }
  .plan {
    width: 100%;
    margin: 0;
    padding: 18px 14px;
  }
  .plan-head {
    align-items: flex-start;
  }
  .plan-head h1 {
    font-size: 21px;
  }
}
@media print {
  body {
    background: #fff;
  }
  .plan {
    width: 100%;
    margin: 0;
  }
  .print {
    display: none;
  }
}
#hint.show-fuel-plus::before {
  content: "+";
  color: #c8102e;
  font-family: Arial, sans-serif;
  font-weight: 800;
  font-size: 1.75em;
  line-height: 1;
  vertical-align: middle;
  position: relative;
  top: 1px;
  margin-right: 8px;
  display: inline-block;
}
#modelImage {
  will-change: opacity, transform;
  image-rendering: auto;
}
#modelImage.model-image-pixel-switch {
  opacity: 0.55;
  transform: scale(0.985);
  image-rendering: pixelated;
}
#modelImage.model-image-reveal {
  animation: model-pixel-reveal 0.28s steps(5, end) both;
}
@keyframes model-pixel-reveal {0% {
    opacity: 0.35;
    transform: scale(0.985);
    image-rendering: pixelated;
  }
  45% {
    opacity: 0.72;
    transform: scale(0.995);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    image-rendering: auto;
  }}
@media (min-width: 1001px) and (orientation: landscape) {
  #chartModal .chart-rule {
    margin: 0 0 0 230px !important;
    padding: 0 !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  #modelImage.model-image-pixel-switch, #modelImage.model-image-reveal {
    animation: none;
    opacity: 1;
    transform: none;
    image-rendering: auto;
  }
}
@media (min-width: 1001px) and (orientation: landscape) {
  #chartModal .chart-scroll {
    overflow-x: auto !important;
    overflow-y: hidden !important;
  }
  #chartModal .repayment-chart {
    min-width: 620px !important;
  }
  #chartModal .chart-panel {
    width: min(1180px, calc(100vw - 40px)) !important;
    height: auto !important;
    max-height: calc(100vh - 40px) !important;
    min-height: 0 !important;
    grid-template-columns: minmax(0, 1.7fr) minmax(340px, 1fr) !important;
    grid-template-rows: auto auto auto 300px auto !important;
    column-gap: 22px !important;
  }
  #chartModal .policy-head, #chartModal .chart-summary-row {
    grid-column: 1 / -1 !important;
  }
  #chartModal .chart-scroll {
    grid-column: 1 !important;
    grid-row: 4 !important;
    height: 300px !important;
    min-height: 300px !important;
    align-self: stretch !important;
  }
  #chartModal .repayment-chart {
    width: 100% !important;
    height: 100% !important;
    min-height: 300px !important;
  }
  #chartModal .annual-wrap {
    display: block !important;
    grid-column: 2 !important;
    grid-row: 4 !important;
    height: 300px !important;
    max-height: 300px !important;
    align-self: stretch !important;
    margin: 0 !important;
  }
  #chartModal .chart-note {
    grid-column: 1 / -1 !important;
    grid-row: 5 !important;
  }
  #chartModal .chart-panel {
    overflow: visible !important;
  }
  #chartModal .chart-summary {
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 4px !important;
  }
  #chartModal .chart-key {
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    justify-self: start !important;
    align-self: center !important;
  }
  #chartModal .chart-rule {
    display: block !important;
    grid-column: 1 / -1 !important;
    grid-row: 3 !important;
    justify-self: start !important;
    align-self: center !important;
    margin-left: 230px !important;
    max-width: calc(100% - 240px) !important;
    white-space: nowrap !important;
    overflow: visible !important;
    text-align: left !important;
  }
}
.settlement-choice {
  display: grid;
  grid-template-columns: 96px minmax(160px, 240px) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #e1e4e7;
  border-left: 4px solid var(--red);
  background: #fafbfc;
}
.settlement-choice label, .settlement-choice select {
  font-weight: 700;
}
.settlement-choice span {
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.settlement #settlementMetrics {
  margin-top: 14px;
}
.settlement #settlementMetrics .metric:last-child {
  background: #fff0eb;
  border-color: #d65a32;
}
.settlement #settlementMetrics .metric:last-child strong {
  color: var(--red-dark);
}
@media (max-width: 760px) {
  .settlement-choice {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 9px 10px;
    padding: 12px;
  }
  .settlement-choice span {
    grid-column: 1 / -1;
  }
}
.action-row {
  justify-content: flex-end !important;
}
.action-row output {
  margin-right: auto;
}
@media (min-width:761px) {
  main {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }
}
@media (orientation:landscape) and (max-height:760px) {
  #chartModal .chart-scroll {
    padding-bottom: 16px !important;
  }
  .lieflat-repayment-chart {
    padding-bottom: 0 !important;
  }
  #chartModal {
    align-items: stretch !important;
  }
  #chartModal .chart-panel {
    max-height: 100% !important;
    min-height: 0 !important;
  }
  #chartModal .chart-scroll {
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  #chartModal .repayment-chart {
    display: grid !important;
    grid-template-columns: repeat(60,minmax(0,1fr)) !important;
    gap: 2px !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 0 32px 24px !important;
  }
  #chartModal {
    padding: 14px !important;
    place-items: center !important;
    background: rgba(20,24,28,.42) !important;
  }
  #chartModal .chart-panel {
    width: min(1120px,100%) !important;
    height: calc(100% - 28px) !important;
    border-radius: 8px !important;
    grid-template-rows: 48px 34px minmax(0,1fr) 38px !important;
  }
  #chartModal .policy-head {
    min-height: 48px !important;
    padding: 0 16px !important;
  }
  #chartModal .chart-key {
    padding: 8px 16px 0 !important;
  }
  #chartModal .chart-scroll {
    padding: 6px 16px 2px !important;
  }
  #chartModal .chart-note {
    padding: 10px 16px !important;
    font-size: 12px !important;
  }
}
@media (max-width:760px) and (orientation:portrait) {
  #chartModal .chart-key {
    padding-top: 14px !important;
  }
  #chartModal .chart-note {
    padding-bottom: calc(14px + env(safe-area-inset-bottom)) !important;
  }
}
@media (orientation:landscape) and (min-width:1001px) {
  #chartModal {
    padding: 18px !important;
    place-items: center !important;
    background: rgba(20,24,28,.58) !important;
  }
  #chartModal .chart-panel {
    width: min(960px,100%) !important;
    height: min(720px,100%) !important;
    border-radius: 6px !important;
    grid-template-rows: auto auto minmax(0,1fr) auto !important;
  }
  #chartModal .chart-scroll {
    padding: 18px !important;
    overflow: hidden !important;
  }
  #chartModal .repayment-chart {
    height: 100% !important;
    min-height: 300px !important;
    padding: 0 !important;
  }
}
.lieflat-repayment-chart {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  min-height: 300px !important;
  padding: 0 !important;
  border-bottom: 0 !important;
  overflow: visible;
}
.lieflat-repayment-chart .lieflat-grid {
  stroke: #e4e6e8;
  stroke-width: 1;
}
.lieflat-repayment-chart .lieflat-axis {
  stroke: #b8bdc3;
  stroke-width: 1.2;
}
.lieflat-repayment-chart .lieflat-principal {
  fill: #c8102e;
}
.lieflat-repayment-chart .lieflat-interest {
  fill: #f4b6c1;
}
.lieflat-repayment-chart .lieflat-bar {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: lieflat-rise .52s cubic-bezier(.2,.8,.2,1) both;
}
.lieflat-repayment-chart .lieflat-label-box {
  fill: #fff;
  stroke: #c8102e;
  stroke-width: 1;
}
.lieflat-repayment-chart .lieflat-value {
  fill: #9f0c25;
  font-size: 13px;
  font-weight: 800;
}
.lieflat-repayment-chart .lieflat-period {
  fill: #6d7278;
  font-size: 10px;
  font-weight: 700;
}
.lieflat-repayment-chart .lieflat-guide {
  fill: #7a8087;
  font-size: 10px;
  font-weight: 600;
}
@keyframes lieflat-rise {0%{transform:scaleY(0);opacity:.25}12%{opacity:1}100%{transform:scaleY(1);opacity:1}}
@media (orientation:landscape) and (max-height:760px) {
  .lieflat-repayment-chart {
    min-height: 0 !important;
    height: 100% !important;
  }
  .lieflat-repayment-chart .lieflat-value {
    font-size: 11px;
  }
  .lieflat-repayment-chart .lieflat-period {
    font-size: 8px;
  }
}
@media (prefers-reduced-motion:reduce) {
  .lieflat-repayment-chart .lieflat-bar {
    animation: none !important;
  }
}
@media (min-width:1001px) and (orientation:landscape) {
  #chartModal .chart-panel {
    height: auto !important;
    max-height: calc(100vh - 32px) !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  #chartModal .chart-scroll {
    height: 300px !important;
    min-height: 300px !important;
    overflow: hidden !important;
  }
  #chartModal .repayment-chart {
    width: 100% !important;
    min-width: 0 !important;
    height: 292px !important;
    min-height: 292px !important;
  }
}
.fee-info-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}
.fee-info-trigger {
  flex: 0 0 auto;
  margin-left: auto;
  width: 20px;
  height: 20px;
  padding: 0;
  color: #c8102e;
  background: transparent;
  border: 1px solid #c8102e;
  border-radius: 50%;
  font: 700 13px/18px Arial;
  text-align: center;
  cursor: pointer;
}
.fee-info-trigger:hover {
  color: #fff;
  background: #c8102e;
}
.fee-modal {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(20,24,28,.58);
}
.fee-modal[hidden] {
  display: none;
}
.fee-modal-panel {
  width: min(420px,calc(100% - 36px));
  overflow: hidden;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 16px 40px rgba(0,0,0,.28);
}
.fee-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 12px 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--red-dark);
}
.fee-modal-head button {
  width: 34px;
  height: 34px;
  color: #43484e;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.fee-modal-body {
  padding: 4px 18px 12px;
}
.fee-modal-body div {
  display: flex;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.fee-modal-body strong {
  color: var(--ink);
}
#metrics .metric.alert span, #metrics .metric.alert strong {
  color: var(--red-dark);
  font-weight: 800;
}
.policy-panel iframe {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  border: 0;
}
