:root {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #202938;
  background: #f1f2f4;
  --blue: #335cde;
  --proof-blue: #245fe5;
  --profile-blue: #335bd9;
  --nav-surface: #fff;
  --sub-header-surface: #fff;
  --link: #315ced;
  --muted: #9ba1b1;
  --shadow: 0 5px 16px #18233110;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--link); text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid #163dae; outline-offset: 3px; }
h1, h2, p { margin: 0; }
h1 { font-size: 17px; }
h2 { font-size: 16px; }
small { color: var(--muted); font-size: 12px; }
svg { width: 1.25em; height: 1.25em; flex: 0 0 auto; }
.shell {
  max-width: 460px;
  min-height: 100dvh;
  margin: auto;
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}
.shell { --top-color: var(--proof-blue); }
.shell::before { content: ""; display: block; height: env(safe-area-inset-top, 0px); background: var(--top-color); }
.profile-page { --top-color: var(--profile-blue); }
.account-subpage { --top-color: var(--sub-header-surface); }
.account-subpage.repayment-page { --top-color: var(--proof-blue); }
.hero, .page-head {
  background: linear-gradient(#335cd9 12%, #497be3);
  color: white;
  border-radius: 0 0 26px 26px;
}
.hero {
  height: 322px;
  padding: 34px 16px 0;
  text-align: center;
  background: linear-gradient(#245cde, #377fec);
}
.hero h1 { text-align: left; margin-bottom: 27px; }
.hero p, .page-head p { font-size: 14px; color: #dce5ff; }
.hero b { display: block; font-size: clamp(38px, 11.6vw, 48px); line-height: 1.25; margin: 4px 0 6px; }
.hero .rate { color: #c3d5ff; }
.pill { display: inline-grid; place-items: center; height: 44px; min-width: 125px; margin-top: 24px; border-radius: 24px; background: white; font-weight: 650; }
.cards { position: relative; display: grid; gap: 16px; margin: 16px; }
.public-home .cards { margin-top: -30px; }
section, .tile-grid a { background: #fff; border-radius: 12px; padding: 17px 16px; box-shadow: var(--shadow); }
.features, .steps, .metrics, .profile-metrics, .shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.features, .steps, .profile-metrics, .shortcuts { text-align: center; }
.features { margin: 20px 0 8px; }
.features strong, .features small, .steps small { display: block; }
.features strong { font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.features i, .steps i, .shortcuts i, .tile-grid i, .contact-card i, .identity i {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0 auto 5px;
  border-radius: 50%;
  background: #eff3fd;
  color: var(--link);
  font: normal 16px system-ui;
}
.steps { margin-top: 13px; }
.steps i { width: 32px; height: 32px; background: var(--blue); color: white; font-size: 14px; margin-bottom: 8px; }
.steps small { color: #4b5565; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.section-title a { font-size: 14px; }
.risk { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 15px; font-size: 12px; color: #4b5565; }
.risk small { display: block; }
.banks { margin: 12px 0; font-size: 12px; color: #6c7485; }
.bank-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; font-size: 12px; color: #6c7485; }
.bank-list span { background: #f7f7f8; border-radius: 4px; padding: 6px 0; }
.privacy { display: flex; justify-content: center; align-items: center; gap: 4px; text-align: center; padding: 7px 8px; color: var(--muted); font-size: 12px; }
nav {
  position: fixed;
  z-index: 2;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 460px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--nav-surface);
  border-top: 1px solid #dfe1e6;
  padding-bottom: env(safe-area-inset-bottom);
}
nav a { display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 54px; color: var(--muted); font-size: 12px; }
nav a svg { width: 20px; height: 20px; }
nav [aria-current] { color: var(--link); }
.floating {
  position: fixed;
  z-index: 1;
  right: max(0px, calc((100vw - 460px) / 2));
  bottom: calc(86px + env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  background: var(--blue);
  color: white;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 17px;
  box-shadow: var(--shadow);
}
.page-head { padding: 34px 16px 46px; }
.page-head + .cards { margin-top: -30px; }
.page-head.center { text-align: center; min-height: 150px; padding-bottom: 62px; }
.page-head.center p { margin-top: 13px; }
.support-page .cards { gap: 12px; margin-top: -38px; }
.contact { padding: 20px; }
.contact-card { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 12px; background: #eff3fd; color: inherit; }
.contact-card i { margin: 0; background: var(--blue); color: white; }
.contact-card small { display: block; margin-top: 3px; }
.contact-card span, .menu a span { margin-left: auto; color: #c7ccd6; font-size: 24px; }
.email { display: flex; align-items: center; gap: 8px; color: #374151; margin-top: 12px; padding: 12px 4px; border-top: 1px solid #f1f2f4; font-size: 15px; }
.email svg { color: var(--muted); }
.faq { margin-top: 10px; color: #4b5565; }
.faq details { border-bottom: 1px solid #f3f4f5; padding: 10px 0; font-size: 14px; }
.faq details:last-child { border-bottom: 0; }
.faq summary { color: #202938; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { padding-top: 8px; font-size: 13px; }
.login .page-head { height: 172px; text-align: center; padding-top: 47px; }
.login h1 { font-size: 24px; }
.login header p { margin-top: 9px; }
.login section { position: relative; margin: -40px 16px 8px; padding: 20px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: #f1f2f4; border-radius: 8px; padding: 4px; margin-bottom: 20px; }
.tabs button { border: 0; background: none; min-height: 32px; color: #6b7280; border-radius: 6px; font-size: 13px; }
.tabs [aria-pressed="true"] { background: white; color: var(--link); box-shadow: 0 2px 4px #0002; font-weight: 650; }
label { display: grid; gap: 7px; font-size: 14px; color: #4b5565; margin-bottom: 14px; }
input, select { width: 100%; min-width: 0; border: 1px solid #dfe2e8; background: white; color: #202938; border-radius: 8px; padding: 9px 12px; min-height: 38px; }
input::placeholder { color: var(--muted); opacity: 1; }
input:disabled { opacity: 1; }
.code { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.code button { border: 1px solid #bfd4ff; border-radius: 8px; background: white; color: var(--link); padding: 0 10px; }
.consent { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #6b7280; }
.consent input { width: 16px; min-height: 16px; margin: 0; accent-color: #3278ef; flex: 0 0 auto; }
.primary { width: 100%; min-height: 44px; background: var(--blue); border: 0; border-radius: 8px; color: white; font-weight: 650; }
.primary:disabled { opacity: .65; }
output { display: block; color: #a92d35; font-size: 13px; }
output:not(:empty) { margin-top: 10px; }
.account-head, .repay-head { padding-bottom: 60px; }
.account-head h1 { display: flex; justify-content: space-between; align-items: center; }
.account-head h1 span { font-size: 12px; font-weight: 400; color: #e0eaff; }
.page-head .hero-label { margin-top: 24px; }
.total { display: block; font-size: 36px; line-height: 1.2; margin: 7px 0 4px; }
.page-head .fine { font-size: 11px; }
.next-pay, .metrics, .profile-metrics { margin-top: 20px; }
.next-pay { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 8px; background: #ffffff2b; padding: 12px; border-radius: 12px; }
.next-pay > div, .metrics > div { display: flex; flex-direction: column-reverse; gap: 3px; }
.next-pay small, .metrics small, .profile-metrics small, .identity small { color: #dbe7ff; }
.next-pay a { background: white; border-radius: 8px; padding: 8px 10px; font-size: 13px; font-weight: 650; }
.progress { margin-top: 13px; }
.shortcuts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.shortcuts a, .tile-grid a { color: #374151; font-size: 12px; }
.tile-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile-grid a { display: flex; align-items: center; gap: 8px; padding: 16px; font-size: 14px; }
.tile-grid i { margin: 0; width: 36px; height: 36px; flex: 0 0 auto; }
.settled { min-height: 120px; display: grid; justify-items: center; align-content: center; gap: 9px; text-align: center; color: var(--muted); font-size: 14px; }
.settled svg { width: 27px; height: 27px; color: #56be6b; }
.identity { display: flex; gap: 12px; align-items: center; }
.identity i { width: 56px; height: 56px; margin: 0; font-size: 20px; background: #ffffff30; color: white; }
.identity a { margin-left: auto; color: #edf3ff; font-size: 14px; }
.profile-head { padding-top: clamp(40px, 15vw, 58px); padding-bottom: 62px; background: linear-gradient(var(--profile-blue) 12%, #4879e2); }
.profile-head .identity i { border-radius: 50%; flex: 0 0 56px; }
.identity-details { flex: 1; min-width: 0; }
.identity-details h1 { margin: 0 0 4px; font-size: 19px; overflow-wrap: anywhere; }
.identity-details small { font-size: 14px; }
.profile-head .identity a { flex: 0 0 auto; font-size: 13px; }
.profile-metrics { gap: 8px 4px; margin-top: 22px; }
.profile-metrics strong, .profile-metrics small { display: block; }
.profile-metrics strong { font-size: clamp(15px, 5vw, 22px); margin-bottom: 5px; overflow-wrap: anywhere; }
.profile-metrics small { font-size: 12px; }
.menu { padding: 0; }
.menu a { display: flex; gap: 12px; padding: 12px 16px; align-items: center; min-height: 49px; color: #374151; border-bottom: 1px solid #f4f5f7; font-size: 14px; }
.menu a:last-child { border: 0; }
.menu a svg { color: var(--link); }
.profile-page .menu a { font-size: clamp(13px, 3.4vw, 15px); }
.logout { padding: 0; }
.logout button { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; background: transparent; border: 0; color: #e5423e; }
.bill { display: grid; grid-template-columns: 1fr auto; gap: 3px 8px; padding: 14px 0 10px; border-bottom: 1px solid #f3f4f5; font-size: 14px; }
.bill:last-child { border-bottom: 0; }
.bill > :nth-child(even) { text-align: right; }
.muted { margin-top: 10px; color: var(--muted); }
@media (max-width: 360px) {
  .tile-grid a { padding: 12px; font-size: 12px; }
  .login section { padding: 16px; }
  .banks { font-size: 11px; }
}

.phone { display: flex; align-items: center; gap: 8px; border: 1px solid #dfe2e8; border-radius: 8px; padding-left: 12px; }
.phone span { color: var(--muted); white-space: nowrap; }
.phone input { border: 0; padding-left: 0; }
.login-note { font-size: 12px; margin: 0 0 12px; }
.code button:disabled { min-width: 50px; color: var(--muted); border-color: #dfe2e8; }
.code-notice { position: fixed; z-index: 3; top: max(12px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); width: min(calc(100% - 24px), 436px); display: flex; gap: 12px; border-radius: 16px; padding: 13px; background: #f2f6ff; box-shadow: 0 8px 24px #14377638; color: #202938; }
.code-notice[hidden] { display: none; }
.code-notice i { display: grid; place-items: center; border-radius: 12px; width: 40px; height: 40px; color: white; background: #2461e5; flex: 0 0 auto; }
.code-notice p { font-size: 13px; margin-top: 5px; }
.code-notice b { color: #164be1; letter-spacing: .08em; }

/* Keep iOS Safari from zooming on focus while preserving pinch zoom. */
.login input[type="tel"], .login input[name="code"], .login input[type="password"] { font-size: 16px; }
.login .code { grid-template-columns: minmax(0, 1fr) 98px; }
.login .code button { white-space: nowrap; padding-inline: 4px; font-variant-numeric: tabular-nums; }

.sub-head { position: relative; background: var(--sub-header-surface); text-align: center; padding: 17px 48px; }
.sub-head h1 { font-size: 16px; }
.sub-head a { position: absolute; left: 16px; top: 15px; font-size: 19px; color: #4b5565; }
.sub-head p { margin-top: 6px; color: var(--muted); font-size: 12px; }
.support-page .page-head { background: linear-gradient(var(--proof-blue) 12%, #377fec); }
.proof-page .sub-head h1 { font-size: 17px; }
.proof-page .cards { margin: 12px 16px 24px; }
.proof-page .proof-card, .proof-page .proof-submissions { padding: 16px; border-radius: 15px; background: #fff; box-shadow: 0 5px 18px #18233114; }
.proof-card form { display: grid; gap: 14px; color: #495467; font-size: 14px; }
.proof-summary { display: flex; gap: 8px; align-items: center; justify-content: space-between; color: #657085; font-size: 13px; }
.proof-summary strong { display: inline-flex; align-items: center; gap: 5px; border-radius: 24px; padding: 5px 9px; color: #245fe5; background: #edf4ff; font-weight: 600; }
.proof-picker { position: relative; display: grid; justify-items: center; align-content: center; gap: 9px; min-height: 156px; margin-bottom: 4px; padding: 12px; border: 2px dashed #e0e4eb; border-radius: 12px; color: #68758a; text-align: center; overflow-wrap: anywhere; cursor: pointer; }
.proof-picker:focus-within { outline: 2px solid var(--link); outline-offset: 3px; }
.proof-picker svg { width: 28px; height: 28px; }
.proof-picker .proof-input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.proof-field { display: grid; gap: 7px; }
.proof-field select, .proof-amount { width: 100%; min-width: 0; min-height: 38px; padding: 7px 10px; border: 1px solid #e0e4eb; border-radius: 8px; color: #162238; }
.proof-field select { background: #fff; }
.proof-amount { display: flex; gap: 8px; align-items: center; font-size: 17px; }
.proof-amount > span { color: #68758a; }
.proof-note, .proof-reminder { border-radius: 10px; padding: 10px 12px; font-size: 12px; line-height: 1.65; }
.proof-note { background: #f5f7fa; }
.proof-reminder { background: #fffae8; border: 1px solid #f0d77d; }
.proof-reminder p { margin-top: 3px; }
.proof-card button { min-height: 44px; border-radius: 8px; background: var(--proof-blue); }
.proof-card button:disabled { opacity: .65; }
.proof-card output:empty { display: none; }
.proof-submissions h2 { margin-bottom: 10px; }
.proof-submission { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid #eef1f5; font-size: 13px; }
.proof-submission:first-child { border-top: 0; }
.proof-submission:last-child { padding-bottom: 0; }
.proof-submission strong { font-weight: 600; }
.proof-submission time { display: block; margin-top: 2px; color: #657287; font-size: 12px; font-variant-numeric: tabular-nums; }
.proof-submission-status { flex: none; padding: 3px 7px; border-radius: 5px; font-size: 12px; }
.proof-submission-status.pending { color: #765400; background: #fff4d7; }
.proof-submission-status.confirmed { color: #126047; background: #e4f7ed; }
.proof-submission-status.rejected { color: #a12330; background: #fff0f0; }
[data-proof-result]:empty { display: none; }
[data-proof-result] { margin-top: 10px; color: #126047; font-size: 13px; }
.account-subpage .cards { gap: 12px; margin-top: 12px; }
.account-subpage .settings-list { padding: 0; }
.setting-row { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 16px; min-height: 53px; }
.setting-row + .setting-row { border-top: 1px solid #f1f2f4; }
.setting-row svg { color: var(--link); }
.setting-row small { display: block; margin-top: 3px; }
.setting-row > span { color: var(--muted); font-size: 12px; }
.setting-row button { background: none; color: var(--link); border: 0; }
.setting-toggle { appearance: none; width: 44px; min-height: 24px; padding: 0; margin: 0; border: 0; border-radius: 20px; background: #a8afbd; position: relative; }
.setting-toggle:checked { background: var(--blue); }
.setting-toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; background: white; border-radius: 50%; }
.setting-toggle:checked::after { left: 22px; }
.personal-fields { padding: 22px 20px; display: grid; gap: 15px; }
.personal-fields span { font-size: 14px; color: #4b5565; }
.personal-fields div p { margin-top: 7px; padding: 8px 12px; min-height: 38px; border: 1px solid #eef0f3; border-radius: 8px; background: #fafafb; color: #7b8495; }
.sub-state { padding: 24px; text-align: center; }
.sub-state svg { display: block; margin: 0 auto 11px; width: 35px; height: 35px; color: var(--blue); }
.sub-state p, .sub-empty { margin-top: 6px; color: #748095; font-size: 13px; }
.sub-action { display: grid; place-items: center; margin-top: 16px; }
.recharge-image { display: block; width: auto; max-width: min(100%, 320px); max-height: 420px; margin: 14px auto; object-fit: contain; }
.recharge-state [data-recharge-notice] { white-space: pre-wrap; overflow-wrap: anywhere; }
.recharge-method { margin-top: 8px; padding: 9px 12px; border: 1px solid #e3eaf4; border-radius: 8px; text-align: left; }
.recharge-method summary { cursor: pointer; font-weight: 600; }
.bank-payment-details { display: grid; gap: 7px; margin: 10px 0; padding: 10px 12px; border-radius: 8px; background: #f5f7fb; font-size: 13px; text-align: left; }
.bank-payment-details div { display: grid; grid-template-columns: 5em 1fr; gap: 8px; }
.bank-payment-details dt { color: #566785; }
.bank-payment-details dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.history-summary { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); text-align: center; gap: 5px; }
.history-summary strong, .history-summary small { display: block; }
.history-summary strong { font-size: clamp(16px, 4.8vw, 23px); color: var(--link); margin-bottom: 5px; }
.history-tabs { margin-inline: -16px; padding: 4px 8px; border-radius: 12px; background: #fff; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.history-tabs button { background: transparent; border: 0; border-radius: 8px; padding: 8px 1px; color: #626d81; font-size: clamp(10px,3.1vw,14px); }
.history-tabs button[aria-pressed=true] { background: #eef5ff; color: var(--link); font-weight: 650; }
.history-list { display: grid; gap: 12px; }
.history-list .bill { padding: 0; }

.overdue-page section { line-height: 1.55; }
.overdue-warning { background: #fff2f2; border: 1px solid #ffdadb; color: #d92325; box-shadow: none; }
.overdue-warning h2 { display: flex; align-items: center; gap: 8px; }
.overdue-warning p { margin-top: 8px; font-size: 14px; }
.overdue-notice p { color: #4b5565; font-size: 14px; margin-top: 8px; }
.overdue-notice h3 { font-size: 14px; margin: 14px 0 0; }
.overdue-notice .overdue-balance { margin-top: 10px; color: #202938; }
.overdue-balance strong { color: #d92325; }

.login .phone:focus-within { border-color: var(--link); }
.login .phone input:focus-visible { outline: none; }
.login .tabs.single { display: block; text-align: center; padding: 8px; color: var(--link); font-size: 14px; font-weight: 650; }

.login #login-mode { margin-bottom: 14px; }
.login .code-label { margin-bottom: 7px; }
.login .code button[aria-disabled="true"] { color: var(--muted); border-color: #dfe2e8; cursor: default; }

.login .login-note { min-height: 36px; }

.login .login-note:empty { display: none; }

.account-head { background: linear-gradient(165deg, #245bdc 6%, #367cf0 100%); padding-top: 36px; }
.account-head .total { font-size: clamp(33px, 9vw, 48px); }
.account-head .fine { line-height: 1.5; overflow-wrap: anywhere; }
.account-head .next-pay a { white-space: nowrap; }
.account-page .shortcuts { padding-block: 20px; }
.account-page .overdue-warning { border-radius: 12px; }

.installment-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 108px; }
.installment-card h2 { margin-bottom: 6px; }
.installment-card h2 small { font-weight: 400; }
.installment-card p { color: #697588; font-size: 12px; line-height: 1.55; margin-top: 3px; }
.installment-side { display: grid; justify-items: end; gap: 6px; }
.installment-side strong { font-size: 16px; }
.installment-status, .installment-side a { padding: 4px 10px; border-radius: 999px; font-size: 12px; }
.installment-status { background: #edf4ff; color: #2356c1; }
.installment-status.overdue { background: #fff0f0; color: #c62828; }
.installment-side a { background: #245ce5; color: white; }
.account-page .installment-card { padding-inline: 0; border-radius: 0; box-shadow: none; border-top: 1px solid #edf0f4; }

.repayment-card { padding: 18px; }
.principal-waiver { border: 1px solid #e1eaff; background: #f5f8ff; color: #193c86; }
.principal-waiver h2 { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.principal-waiver p { margin-top: 4px; font-size: 13px; }
.repay-hero { padding: 36px 16px 74px; background: linear-gradient(var(--proof-blue) 12%, #377fec); }
.repay-hero h1 { margin-bottom: 23px; }
.repay-hero .repay-caption { font-size: 13px; }
.repay-hero-total { display: block; margin: 5px 0; font-size: clamp(30px, 8.5vw, 42px); line-height: 1.15; overflow-wrap: anywhere; }
.repay-hero .repay-components, .repay-hero > p:last-child { font-size: 12px; line-height: 1.5; }
.repay-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 19px 0 12px; }
.repay-overview dt { font-size: 12px; color: #dce5ff; }
.repay-overview dd { margin: 2px 0 0; font-weight: 650; overflow-wrap: anywhere; }
.repayment-page .repay-hero + .cards { margin-top: -44px; gap: 16px; }
.repay-current, .repay-schedule { padding: 16px; }
.repay-current-head { display: flex; align-items: start; justify-content: space-between; gap: 8px; }
.repay-current-head h2 { display: inline; margin-right: 6px; }
.repay-current-head > div:last-child, .repay-schedule-row > div { text-align: right; }
.repay-current-head strong { font-size: clamp(20px, 5.6vw, 28px); color: #131b2b; }
.repay-status { display: block; margin-top: 3px; color: #677489; font-size: 11px; }
.repay-status.overdue { color: #c32732; }
.repay-current-breakdown { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 10px; margin: 12px 0; padding-top: 12px; border-top: 1px solid #edf0f4; color: #637086; font-size: 12px; }
.repay-now { display: grid; place-items: center; margin-top: 15px; background: var(--proof-blue); }
.repay-plan { margin-top: 12px; text-align: center; font-size: 13px; }
.repay-schedule-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 9px; padding: 10px 0; border-bottom: 1px solid #edf0f4; font-size: 14px; }
.repay-schedule-row:last-child { border-bottom: 0; padding-bottom: 0; }
.repay-cta { padding: 6px 11px; border-radius: 20px; white-space: nowrap; background: var(--proof-blue); color: #fff; font-size: 12px; }
.repayment-page #payment-options { scroll-margin-top: 12px; }
#payment-options:not([hidden]) { display: grid; gap: 12px; }
.repay-overdue { display: flex; align-items: flex-start; gap: 9px; padding: 14px 15px; }
.repay-overdue > svg { margin-top: 2px; }
.repay-overdue h2 { font-size: 14px; }
.repay-overdue p { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: 13px; }
.repay-shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-bottom: 12px; }
.repay-shortcuts a { display: flex; align-items: center; gap: 8px; min-height: 66px; padding: 10px 12px; border-radius: 12px; background: #fff; box-shadow: var(--shadow); color: #374151; font-size: 13px; }
.repay-shortcuts i { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #eef3ff; color: var(--link); }
.repay-shortcuts a[aria-disabled="true"] { opacity: .55; cursor: default; }
.repayment-note { color: #637086; font-size: 13px; margin: 10px 0; line-height: 1.5; }
.repayment-amount-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.repayment-overdue-badge { padding: 3px 7px; border-radius: 5px; background: #fff0f0; color: #be2430; }
.repayment-selected-amount { display: block; margin-top: 8px; color: #131b2b; font-size: clamp(26px, 8vw, 36px); line-height: 1.2; }
.repayment-breakdown { margin: 12px 0; border: 1px solid #eef0f4; border-radius: 12px; overflow: hidden; }
.repayment-breakdown div { display: flex; justify-content: space-between; gap: 8px; padding: 9px 12px; border-bottom: 1px solid #eef0f4; }
.repayment-breakdown div:first-child { background: #f6f7f9; }
.repayment-breakdown div:last-child { border: 0; background: #eef4ff; font-weight: 700; }
.repayment-breakdown dd { margin: 0; font-weight: 650; }
.repayment-breakdown div:nth-child(3) dd { color: #c32732; }
.repayment-breakdown div:last-child dd { color: var(--proof-blue); }
.repayment-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; border: 0; padding: 0; margin: 12px 0; }
.repayment-modes label { position: relative; display: flex; align-items: start; gap: 6px; padding: 11px 9px; border: 1px solid #dce2eb; border-radius: 12px; font-weight: 650; cursor: pointer; }
.repayment-modes label:has(input:checked) { color: #2356d8; background: #eef4ff; border-color: #4678f3; }
.repayment-modes label:focus-within { outline: 2px solid var(--proof-blue); outline-offset: 2px; }
.repayment-modes input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.repayment-radio { display: grid; place-items: center; flex: 0 0 16px; height: 16px; margin-top: 2px; border: 1px solid #c5cdd9; border-radius: 50%; }
.repayment-modes input:checked + .repayment-radio { border-color: var(--proof-blue); background: var(--proof-blue); color: #fff; }
.repayment-modes input:checked + .repayment-radio::after { content: '✓'; font-size: 11px; line-height: 1; }
.repayment-modes small { display: block; margin-top: 4px; font-weight: 400; }
.repayment-modes input:checked ~ span small { color: inherit; }
.partial-amount:not([hidden]) { display: block; }
.partial-amount > label { display: flex; align-items: center; gap: 7px; padding: 0 10px; border: 1px solid #dce2eb; border-radius: 8px; color: #637086; }
.partial-amount > label:focus-within { border-color: var(--proof-blue); }
.partial-amount input { width: 100%; min-width: 0; padding: 11px 0; border: 0; background: transparent; font-weight: 650; }
.repayment-quick { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.repayment-quick button { padding: 5px 8px; border: 1px solid #dce2eb; border-radius: 999px; background: #fff; color: #43526a; font-size: 12px; }
.repayment-quick button[aria-pressed="true"] { border-color: #bfd2ff; background: #eef4ff; color: #2356d8; }
.repayment-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin: 12px 0 0; text-align: center; }
.repayment-metrics div { padding: 8px 4px; border-radius: 8px; background: #f6f7f9; overflow-wrap: anywhere; }
.repayment-metrics dt { font-size: 11px; color: #637086; }
.repayment-metrics dd { margin: 3px 0 0; font-weight: 700; }
.payment-method { border: 1px solid #dce2eb; border-radius: 12px; margin-top: 9px; }
.payment-method[open] { background: #eef4ff; border-color: #4678f3; }
.payment-method[open] summary, .payment-method[open] summary svg, .payment-method[open] summary span { color: #2356d8; }
.payment-method summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 12px; cursor: pointer; font-size: 14px; font-weight: 650; }
.payment-method summary svg { color: #929db0; }
.payment-method summary::-webkit-details-marker { display: none; }
.payment-method summary span { margin-left: auto; color: #a5afbf; }
.payment-method[open] summary span { transform: rotate(90deg); }
.payment-method p { margin: 0 10px 10px; padding: 12px; border-radius: 8px; background: white; color: #637086; font-size: 13px; }
.payment-method-empty { display: grid; justify-items: center; gap: 5px; margin: 0 10px 10px; padding: 13px 8px; border-radius: 8px; background: #fff; text-align: center; }
.payment-method-empty svg { width: 23px; height: 23px; color: #aab3c3; }
.payment-method .payment-method-empty p { margin: 0; padding: 0; font-size: 12px; }
.repayment-upload { display: block; text-align: center; margin-top: 12px; padding: 12px; }
.repayment-upload[aria-disabled="true"] { opacity: .5; cursor: default; }
.repayment-reminder { text-align: center; }
.security-status { padding-block: 23px; }
.security-status svg { color: #43a85a; }
.security-settings .setting-row { padding-block: 14px; }

.repayment-modes .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.login .login-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 9px; background: #f2f5fa; }
.login .login-methods button { padding: 9px 6px; border: 0; border-radius: 7px; background: transparent; font-size: 13px; color: #5e6b80; }
.login .login-methods button[aria-pressed=true] { background: white; color: #2356d8; font-weight: 650; }
.login-note:empty, .repayment-estimate:empty, .partial-amount[hidden] { display: none; }
.login form label, .security-settings .setting-row, .personal-fields div, .repayment-modes label { font-size: 13px; }
.security-status h2 { font-size: 16px; }
.security-status p, .security-settings small { font-size: 12px; }
.personal-fields p { font-size: 13px; overflow-wrap: anywhere; }

.settlement-certificate { padding: clamp(17px, 6vw, 28px); border-radius: 14px; background: #fff; box-shadow: var(--shadow); color: #334155; line-height: 1.65; overflow-wrap: anywhere; }
.settlement-certificate header { text-align: center; margin-bottom: 22px; }
.settlement-certificate h2 { font-size: 21px; color: #172334; }
.settlement-certificate header p { font-size: 12px; color: #607088; }
.settlement-certificate > p { font-size: 14px; margin-top: 9px; }
.settlement-certificate footer { position: relative; isolation: isolate; display: grid; align-content: center; gap: 3px; min-height: 112px; margin-top: 12px; text-align: right; font-size: 13px; }
.settlement-seal { position: absolute; z-index: 1; inset-block-start: 50%; inset-inline-end: clamp(8px, 6vw, 24px); width: clamp(95px, 28vw, 128px); height: auto; transform: translateY(-50%); opacity: .64; mix-blend-mode: multiply; pointer-events: none; }

.contract-card { padding: clamp(17px, 5vw, 26px); border-radius: 14px; background: #fff; box-shadow: var(--shadow); color: #435066; line-height: 1.55; }
.contract-card header { margin: 2px 0 18px; text-align: center; }
.contract-card header h2 { font-size: 21px; color: #202938; }
.contract-card header p { margin-top: 5px; color: #963d20; font-size: 12px; }
.contract-card h3 { margin: 18px 0 6px; font-size: 14px; color: #202938; }
.contract-card > p { font-size: 13px; }
.contract-card dl { margin: 0; border-bottom: 1px solid #edf0f4; padding-bottom: 8px; }
.contract-card dl div { display: grid; grid-template-columns: minmax(6em, 1fr) minmax(0, 2fr); gap: 8px; padding: 5px 0; font-size: 13px; }
.contract-card dd { margin: 0; text-align: right; color: #202938; overflow-wrap: anywhere; }
.contract-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.overdue-notice .overdue-balance { margin-top: 14px; }

.contract-card { padding: clamp(20px, 6vw, 28px); }
.contract-card header { margin: 4px 0 22px; }
.contract-card h3 { margin-top: 20px; }
.contract-card dl div { padding-block: 6px; }
.overdue-page .overdue-warning, .overdue-page .overdue-notice { padding: 17px; }
.overdue-page .overdue-notice h2, .overdue-page .overdue-warning h2 { font-size: 16px; }

.contract-clauses > div + div { margin-top: 18px; }
.contract-clauses h3 { margin: 18px 0 6px; font-size: 15px; }
.contract-clauses p { font-size: 13px; line-height: 1.75; }
.contract-card .contract-signing { margin-top: 22px; padding-top: 8px; border-top: 1px solid #edf0f4; }

.overdue-page .overdue-risk {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 13px;
  padding: 16px;
  box-shadow: 0 4px 16px #0001;
}
.overdue-risk > span { font: 20px/26px "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.overdue-risk h2 { font-size: 13px; font-weight: 650; line-height: 20px; }
.overdue-risk p { margin-top: 4px; color: #6b7484; font-size: 11px; line-height: 16px; }
.overdue-reminder { padding: 4px 0 18px; color: #9ca3af; font-size: 11px; line-height: 16px; text-align: center; }

.contract-clauses { margin-top: 20px; }
.contract-clauses h3 { margin: 16px 0 4px; font-size: 13px; line-height: 24px; }
.contract-clauses p { font-size: 11.5px; line-height: 24px; }
.contract-clauses > p:first-child { color: #6b7485; }
.contract-clauses .contract-signing { margin: 28px 0 24px; padding: 0; border: 0; }
.contract-signing p + p { margin-top: 24px; }

.contract-borrower { display: flex; align-items: center; min-height: 108px; margin-bottom: 16px; }
.contract-borrower-name { position: relative; display: inline-block; min-width: 106px; text-align: center; isolation: isolate; }
.contract-borrower-name img { position: absolute; inset: 50% auto auto 50%; width: 106px; height: auto; transform: translate(-50%, -50%); opacity: .8; z-index: -1; }
.contract-borrower-name [data-contract-borrower] { overflow-wrap: anywhere; }
.signed-contract-preview { display: block; width: 100%; height: min(72vh, 780px); margin: 16px 0; border: 1px solid #e3eaf4; border-radius: 8px; }

.support-panel { position: fixed; inset: auto 0 0; width: min(100%, 560px); max-width: none; height: min(78dvh, 680px); max-height: none; margin: 0 auto; padding: 0; border: 0; border-radius: 18px 18px 0 0; background: #fff; color: #192944; overflow: hidden; }
.support-panel[open] { display: flex; flex-direction: column; }
.support-panel.support-panel-full { inset: 0; width: 100%; height: 100%; border-radius: 0; }
.support-panel::backdrop { background: rgb(15 23 42 / 42%); }
.support-panel header { display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; color: #fff; background: #3855c8; }
.support-panel button { min-width: 40px; min-height: 40px; padding: 0; border: 0; background: transparent; color: inherit; font-size: 25px; cursor: pointer; }
.support-panel #support-panel-title:focus { outline: none; }
.support-panel button:focus:not(:focus-visible) { outline: none; }
.support-panel button:focus-visible { border-radius: 8px; outline: 2px solid #fff; outline-offset: -3px; }
.support-panel p { padding: 12px 16px; }
.support-panel iframe { flex: 1; width: 100%; min-height: 0; border: 0; }
.support-panel [hidden] { display: none; }
