.home-balance-month{display:inline-block;margin-left:5px;padding:3px 7px;border-radius:999px;background:var(--surface-alt);color:var(--primary);font-size:10px;font-weight:800;vertical-align:middle}
.home-debts{display:grid;gap:17px;min-width:0}
.home-debts-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.home-debts-head h2{margin:5px 0 0;font-size:18px}
.home-debt-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.home-debt-tab{position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:8px;min-width:0;min-height:98px;padding:16px 18px;border:1px solid var(--border);border-radius:14px;background:var(--surface-alt);color:var(--text);text-align:left;cursor:pointer;transition:transform .2s ease,box-shadow .2s ease,background .2s ease}
.home-debt-tab::after{content:'';position:absolute;right:-27px;top:-46px;width:120px;height:120px;border:17px solid currentColor;border-radius:50%;opacity:.065;pointer-events:none}
.home-debt-tab:hover,.home-debt-tab:focus-visible{transform:translateY(-2px);box-shadow:0 9px 20px var(--shadow);outline:none}
.home-debt-tab.active{background:linear-gradient(135deg,#1c3455,#285b94);border-color:#285b94;color:#fff}
.home-debt-tab span{font-size:11px;font-weight:800;letter-spacing:.03em}
.home-debt-tab strong{font-size:clamp(20px,2.4vw,28px);line-height:1.1;letter-spacing:-.05em;overflow-wrap:anywhere}
.home-debt-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:9px;max-height:320px;overflow-y:auto;align-content:start}
.home-debt-person{display:grid;grid-template-columns:38px minmax(0,1fr) auto 10px;align-items:center;gap:10px;min-width:0;width:100%;padding:11px 13px;border:1px solid var(--border);border-radius:12px;background:var(--surface);color:var(--text);text-align:left;cursor:pointer;transition:border-color .2s ease,transform .2s ease}
.home-debt-person:hover,.home-debt-person:focus-visible{border-color:var(--primary);transform:translateY(-2px);outline:none}
.home-debt-person:disabled{cursor:default;opacity:.75}
.home-debt-avatar{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:var(--surface-alt);color:var(--primary);font-weight:800}
.home-debt-name{min-width:0;white-space:normal;overflow-wrap:anywhere;font-size:13px;font-weight:750;line-height:1.3}
.home-debt-person strong{font-size:13px;white-space:nowrap}
.home-debt-arrow{color:var(--muted);font-size:20px;line-height:1}
.home-debt-empty{grid-column:1/-1;margin:0;padding:20px;border:1px dashed var(--border);border-radius:12px;color:var(--muted);text-align:center;font-size:12px}
.debt-row .tx-info strong{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.35}
@media(max-width:700px){.home-debt-list{grid-template-columns:1fr;max-height:360px}}
@media(max-width:600px){
  .home-debt-tab{min-height:88px;padding:13px}
  .home-debt-tab strong{font-size:20px}
  .debt-row .tx-info{flex:1 1 calc(100% - 55px);min-width:0}
  .debt-row .tx-amount{flex:1 1 100%;margin-left:53px;text-align:left}
  .debt-row>button.tiny{margin-top:3px}
}
@media(max-width:390px){
  .home-debt-switch{gap:8px}
  .home-debt-tab{min-height:82px;padding:10px}
  .home-debt-tab span{font-size:10px}
  .home-debt-tab strong{font-size:17px}
  .home-debt-person{grid-template-columns:32px minmax(0,1fr) auto 8px;gap:8px;padding:9px}
  .home-debt-avatar{width:32px;height:32px}
  .home-debt-person strong{font-size:12px}
}
@media(prefers-reduced-motion:reduce){.home-debt-tab,.home-debt-person{transition:none}.home-debt-tab:hover,.home-debt-person:hover{transform:none}}