.debt-page { max-width: 1120px; min-width: 0; }
.debt-page section { padding-block: 22px; border-bottom: 1px solid var(--line, #343d4a); }
.debt-answer { max-width: 850px; font-size: 18px; line-height: 1.65; }
.debt-page h2 { font-size: 24px; }
.debt-page h3 { font-size: 19px; }
.debt-table-wrap { max-width: 100%; overflow-x: auto; margin: 16px 0; }
.debt-table-wrap:focus-visible { outline: 2px solid var(--cyan, #30bcde); outline-offset: 2px; }
.debt-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 14px; }
.debt-table caption { text-align: left; padding-bottom: 12px; color: var(--muted, #a3acb8); }
.debt-table th, .debt-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line, #343d4a); vertical-align: top; }
.debt-table td { min-width: 90px; }
.debt-table th { font-weight: 600; }
.debt-table a { display: inline-block; padding-block: 10px; }
.debt-controls { display: flex; flex-wrap: wrap; gap: 16px; align-items: end; }
.debt-controls label { display: grid; gap: 8px; flex: 1 1 180px; min-width: 0; }
.debt-controls input, .debt-controls select { min-height: 44px; font-size: 16px; width: 100%; max-width: 100%; min-width: 0; padding: 8px; }
.debt-controls button { min-height: 44px; }
.debt-summary dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 24px 0; }
.debt-summary dt { font-size: 13px; color: var(--muted, #a3acb8); }
.debt-summary dd { margin: 8px 0 0; font-size: 18px; overflow-wrap: anywhere; }
.debt-bars { margin: 24px 0; }
.debt-bars figcaption { margin-bottom: 16px; }
.debt-bar-row { display: grid; grid-template-columns: 95px minmax(30px, 1fr) 118px; align-items: center; gap: 12px; min-height: 34px; font-size: 13px; font-variant-numeric: tabular-nums; }
.debt-bar-row strong { text-align: right; }
.debt-bar-track { display: block; height: 12px; background: #64748b26; }
.debt-bar-track > span { display: block; height: 100%; background: var(--cyan, #30bcde); }
.debt-links > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.debt-links article { border-left: 3px solid var(--cyan, #30bcde); padding: 0 16px; }
.debt-related { display: flex; gap: 12px 20px; flex-wrap: wrap; padding-block: 24px; }
.debt-related a { min-height: 44px; display: inline-flex; align-items: center; }
#debtError { color: var(--red, #ef6b72); }
@media (max-width: 600px) {
  .debt-page h1 { font-size: 28px; overflow-wrap: anywhere; }
  .debt-page h2 { font-size: 22px; }
  .debt-summary dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .debt-links > div { grid-template-columns: minmax(0, 1fr); }
  .debt-bar-row { grid-template-columns: 76px minmax(15px, 1fr) 110px; gap: 8px; font-size: 12px; }
  .debt-controls button { width: 100%; }
}
