/* C049, C051, C056: debt presentation only; values and settlement flow unchanged. */
/* Reported card balances need opaque light surfaces, not dark-theme overlays. */
html[data-theme="light"] #page .fv-debts-view .credit-balance-breakdown {
  background: #f7f3fc;
  border-color: #ded2ee;
}
html[data-theme="light"] #page .fv-debts-view .credit-balance-breakdown > header {
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
  border-bottom-color: #ded2ee;
}
html[data-theme="light"] #page .fv-debts-view .credit-balance-breakdown > header > span {
  max-width: none;
  text-align: left;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: normal;
  color: #665276;
}
html[data-theme="light"] #page .fv-debts-view .credit-balance-breakdown > header small {
  color: #665276;
  font-size: 11px;
  line-height: 1.5;
}
html[data-theme="light"] #page .fv-debts-view .credit-balance-breakdown h3 {
  color: #3b1f6b;
  line-height: 1.3;
}
html[data-theme="light"] #page .fv-debts-view .credit-balance-breakdown > div {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
html[data-theme="light"] #page .fv-debts-view .credit-balance-breakdown > div > article {
  min-width: 0;
  padding: 16px;
  gap: 10px;
  background: #fff;
  border-color: #ded2ee;
  box-shadow: 0 2px 8px #3b1f6b06;
}
html[data-theme="light"] #page .fv-debts-view .credit-balance-breakdown article > span {
  color: #665276;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .02em;
}
html[data-theme="light"] #page .fv-debts-view .credit-balance-breakdown article > b {
  color: #3b1f6b;
  font-size: 20px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
html[data-theme="light"] #page .fv-debts-view .credit-balance-breakdown article > small,
html[data-theme="light"] #page .fv-debts-view .credit-balance-breakdown > p {
  color: #665276;
  font-size: 12px;
  line-height: 1.6;
}
@media (max-width: 480px) {
  html[data-theme="light"] #page .fv-debts-view .credit-balance-breakdown > div {
    grid-template-columns: minmax(0, 1fr);
  }
}
.fv-debts-view{--debt-review-total:#6040b4;--debt-review-paid:#0e7663;--debt-review-pending:#955014}
html[data-theme="dark"] .fv-debts-view{--debt-review-total:#c3acff;--debt-review-paid:#75debd;--debt-review-pending:#ffd195}
html[data-theme] #page .fv-debts-view .niwwi-debt-current-summary{grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-template-areas:none;gap:14px}
html[data-theme] #page .fv-debts-view .niwwi-debt-current-summary>article{grid-area:auto!important;grid-column:auto!important;min-width:0;min-height:118px;padding:18px;gap:9px}
html[data-theme] #page .fv-debts-view .niwwi-debt-current-summary>article>span{font-size:12px;line-height:1.5}
html[data-theme] #page .fv-debts-view .niwwi-debt-current-summary>article>b{font-size:clamp(23px,2.2vw,29px);line-height:1.25;overflow-wrap:anywhere}
html[data-theme] #page .fv-debts-view .niwwi-debt-current-summary>article>small{font-size:12px;line-height:1.5}
.fv-debts-view .niwwi-debt-history{margin:22px 0;padding:22px;border:1px solid var(--line);border-radius:20px;background:var(--surface2)}
.fv-debts-view .niwwi-debt-history header{margin-bottom:16px}
.fv-debts-view .niwwi-debt-history h2{margin:0 0 6px;font-size:19px;line-height:1.4}
.fv-debts-view .niwwi-debt-history header p{margin:0;color:var(--muted);font-size:13px;line-height:1.6}
.fv-debts-view .niwwi-debt-history-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.fv-debts-view .niwwi-debt-history-metrics>article{display:grid;align-content:start;gap:10px;min-width:0;padding:18px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.fv-debts-view .niwwi-debt-history-metrics>article>span{font-size:12px;line-height:1.5;color:var(--muted);letter-spacing:.04em}
.fv-debts-view .niwwi-debt-history-metrics>article>b{font-size:25px;line-height:1.3;color:var(--debt-review-paid);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.fv-debts-view .niwwi-debt-history .progress-global>i{display:block;height:7px;border-radius:99px;overflow:hidden;background:var(--line)}
.fv-debts-view .niwwi-debt-history .progress-global>i>em{display:block;height:100%;background:var(--debt-review-paid);border-radius:inherit}
.fv-debts-view .niwwi-period-groups{padding:22px}
.fv-debts-view .niwwi-period-groups h2{margin:0 0 18px;font-size:21px;line-height:1.4}
.fv-debts-view .niwwi-period-groups table{table-layout:fixed}
.fv-debts-view .niwwi-period-groups th:first-child{width:43%;white-space:normal;overflow-wrap:anywhere}
.fv-debts-view .niwwi-period-groups th,.fv-debts-view .niwwi-period-groups td{padding:16px 12px;line-height:1.5}
.fv-debts-view .niwwi-period-groups thead th{font-size:12px;font-weight:700}
.fv-debts-view .niwwi-period-groups tbody th{font-size:14px;line-height:1.6}
.fv-debts-view .niwwi-period-groups td{font-size:16px;font-weight:700;text-align:right;white-space:normal;overflow-wrap:anywhere}
.fv-debts-view .niwwi-period-groups th:not(:first-child){text-align:right}
.fv-debts-view .niwwi-period-groups .niwwi-period-total{color:var(--debt-review-total);background:color-mix(in srgb,var(--debt-review-total) 7%,transparent)}
.fv-debts-view .niwwi-period-groups .niwwi-period-paid{color:var(--debt-review-paid);background:color-mix(in srgb,var(--debt-review-paid) 7%,transparent)}
.fv-debts-view .niwwi-period-groups .niwwi-period-pending{color:var(--debt-review-pending);background:color-mix(in srgb,var(--debt-review-pending) 9%,transparent)}
.fv-debts-view .niwwi-period-groups tfoot th,.fv-debts-view .niwwi-period-groups tfoot td{border-top:2px solid var(--line);font-weight:750}
.fv-debts-view .niwwi-period-groups small{font-size:12px;line-height:1.5}
.fv-debts-view .niwwi-period-groups details{font-size:13px;line-height:1.7}
.fv-debts-view .niwwi-period-groups details>summary{min-height:44px;padding:10px 0;cursor:pointer}
html[data-theme] #page .fv-debts-view .personal-account-card .personal-account-name{display:grid;grid-template-columns:minmax(0,1fr);gap:5px;min-width:0}
html[data-theme] #page .fv-debts-view .personal-account-name>.niwwi-person-action{justify-self:start;max-width:100%;min-height:44px;margin:8px 0 0;padding:10px 14px;white-space:normal;font-size:13px;line-height:1.5}
.fv-debts-view .niwwi-person-action:focus-visible{outline:3px solid var(--purple);outline-offset:3px}
@media(min-width:1200px){html[data-theme] #page .fv-debts-view .personal-account-name{grid-template-columns:minmax(0,1fr) auto;column-gap:14px}html[data-theme] #page .fv-debts-view .personal-account-name>.niwwi-person-action{grid-column:2;grid-row:1/3;align-self:center;margin:0}}
@media(max-width:900px){html[data-theme] #page .fv-debts-view .niwwi-debt-current-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}.fv-debts-view .niwwi-period-groups{padding:18px}.fv-debts-view .niwwi-period-groups th:first-child{width:37%}.fv-debts-view .niwwi-period-groups td{font-size:14px}}
@media(max-width:650px){
  .fv-debts-view .niwwi-debt-history{padding:18px}.fv-debts-view .niwwi-debt-history-metrics{grid-template-columns:1fr;gap:12px}
  .fv-debts-view .niwwi-period-groups .mova-local-scroll{overflow:visible}.fv-debts-view .niwwi-period-groups table,.fv-debts-view .niwwi-period-groups tbody,.fv-debts-view .niwwi-period-groups tfoot{display:block}
  .fv-debts-view .niwwi-period-groups thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .fv-debts-view .niwwi-period-groups tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin-bottom:14px;border:1px solid var(--line);border-radius:13px;overflow:clip}
  .fv-debts-view .niwwi-period-groups th[scope="row"]{grid-column:1/-1;width:auto;padding:13px 12px;font-size:14px}
  .fv-debts-view .niwwi-period-groups td{padding:12px 9px;border-bottom:0;text-align:left;font-size:15px;line-height:1.5}
  .fv-debts-view .niwwi-period-groups td::before{content:attr(data-label);display:block;margin-bottom:6px;font-size:11px;font-weight:600}
  .fv-debts-view .niwwi-period-groups tfoot th,.fv-debts-view .niwwi-period-groups tfoot td{border-top:0}
  html[data-theme] #page .fv-debts-view .personal-account-name>.niwwi-person-action{justify-self:stretch;text-align:center}
}
@media(max-width:420px){html[data-theme] #page .fv-debts-view .niwwi-debt-current-summary{grid-template-columns:1fr!important}.fv-debts-view .niwwi-period-groups{padding:14px}.fv-debts-view .niwwi-period-groups td{padding:12px 7px;font-size:14px}}

/* Financial sections retain their semantics; color sits behind readable text. */
html[data-theme] #page .fv-debts-view :is(.debt-position-overview strong, .niwwi-debt-current-summary > article > b, .niwwi-debt-history-metrics > article > b, .niwwi-period-groups td, .revolving-primary strong, .grouped-loan-primary strong, .debt-main-amount strong, .revolving-metrics b, .grouped-loan-card-facts b, .credit-balance-breakdown h3, .credit-balance-breakdown article > b, .personal-account-metric b, .debt-period-box > b) { font-family: var(--niwwi-heading-font, Manrope, sans-serif); font-variant-numeric: tabular-nums; }
html[data-theme] #page .fv-debts-view :is(.debt-account-card, .personal-account-card, .niwwi-debt-history, .niwwi-period-groups) { border-color: color-mix(in srgb, var(--purple) 28%, var(--line)); background: radial-gradient(ellipse at 100% 0, color-mix(in srgb, var(--purple) 9%, transparent), transparent 60%), var(--surface); }
html[data-theme] #page .fv-debts-view .debt-account-card { padding: 22px; }
html[data-theme] #page .fv-debts-view .debt-card-brand { min-width: 0; gap: 12px; }
html[data-theme] #page .fv-debts-view .debt-card-brand h2 { font-size: 20px; line-height: 1.4; overflow-wrap: anywhere; }
html[data-theme] #page .fv-debts-view :is(.debt-card-brand > div > span, .debt-period-status, .revolving-primary > span, .grouped-loan-primary > span, .revolving-metrics small, .grouped-loan-card-facts small, .debt-period-box > span) { font-size: 12px; line-height: 1.5; letter-spacing: .035em; }
html[data-theme] #page .fv-debts-view :is(.revolving-primary, .grouped-loan-primary) { padding: 18px; border-color: color-mix(in srgb, var(--purple) 30%, var(--line)); background: linear-gradient(120deg, color-mix(in srgb, var(--purple) 9%, var(--surface2)), var(--surface2)); }
html[data-theme] #page .fv-debts-view :is(.revolving-primary strong, .grouped-loan-primary strong, .debt-main-amount strong) { font-size: clamp(27px, 2.6vw, 34px); line-height: 1.3; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
html[data-theme] #page .fv-debts-view :is(.revolving-primary > b, .grouped-loan-primary > b, .debt-progress-copy, .debt-period-box small) { font-size: 13px; line-height: 1.5; }
html[data-theme] #page .fv-debts-view :is(.revolving-metrics, .grouped-loan-card-facts) { gap: 10px; }
html[data-theme] #page .fv-debts-view :is(.revolving-metrics > span, .grouped-loan-card-facts > span) { min-width: 0; padding: 14px; border-color: var(--line); background: var(--surface2); }
html[data-theme] #page .fv-debts-view :is(.revolving-metrics b, .grouped-loan-card-facts b) { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.4; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
html[data-theme] #page .fv-debts-view :is(.credit-card-actions button, .full-button, .personal-account-detail button) { min-height: 44px; font-size: 13px; line-height: 1.45; white-space: normal; }
html[data-theme] #page .fv-debts-view .credit-card-actions { gap: 10px; }
html[data-theme] #page .fv-debts-view .credit-balance-breakdown { padding: 20px; border-color: var(--line); background: var(--surface2); }
html[data-theme] #page .fv-debts-view .credit-balance-breakdown > header { align-items: start; flex-direction: column; gap: 10px; border-color: var(--line); }
html[data-theme] #page .fv-debts-view .credit-balance-breakdown > header > span { max-width: none; text-align: left; }
html[data-theme] #page .fv-debts-view .credit-balance-breakdown :is(header small, header > span, article > span, article > small),
html[data-theme] #page .fv-debts-view .credit-balance-breakdown > p { color: var(--muted); font-size: 13px; line-height: 1.6; }
html[data-theme] #page .fv-debts-view .credit-balance-breakdown > div { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
html[data-theme] #page .fv-debts-view .credit-balance-breakdown article { min-width: 0; padding: 16px; background: var(--surface); border-color: var(--line); }
html[data-theme] #page .fv-debts-view .credit-balance-breakdown article > b { font-size: 22px; line-height: 1.35; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
html[data-theme] #page .fv-debts-view .personal-account-name > b { font-size: 18px; line-height: 1.4; overflow-wrap: anywhere; }
html[data-theme] #page .fv-debts-view :is(.personal-account-name > small, .personal-account-metric small, .debt-month-disclosure) { font-size: 13px; line-height: 1.6; }
html[data-theme] #page .fv-debts-view .personal-account-metric b { font-size: 20px; line-height: 1.4; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
html[data-theme] #page .fv-debts-view :is(button, summary):focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
@media (max-width: 760px) {
  html[data-theme] #page .fv-debts-view :is(.debt-account-card, .credit-balance-breakdown) { padding: 18px; }
  html[data-theme] #page .fv-debts-view .debt-card-head { flex-wrap: wrap; gap: 12px; }
  html[data-theme] #page .fv-debts-view :is(.revolving-metrics, .grouped-loan-card-facts) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html[data-theme] #page .fv-debts-view :is(.revolving-metrics, .grouped-loan-card-facts) > span:last-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  html[data-theme] #page .fv-debts-view .credit-balance-breakdown > div { grid-template-columns: minmax(0, 1fr); }
  html[data-theme] #page .fv-debts-view :is(.revolving-metrics > span, .grouped-loan-card-facts > span) { padding: 12px; }
}
