.debt-intro{margin-bottom:22px}.debt-intro p{margin:0 0 5px;font-size:17px}.debt-intro small{color:#63757d}.debt-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:6px;background:#eaf0ed;border-radius:14px;margin-bottom:22px;max-width:620px}.debt-tabs button{border:0;background:transparent;text-align:left;padding:15px 18px;border-radius:10px;color:#435d53}.debt-tabs button[aria-pressed=true]{background:#fff;color:#076447}.debt-tabs span{display:block;font-size:18px;font-weight:650}.debt-tabs small{display:block;margin-top:3px;font-size:13px}.debt-overview{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:24px;background:#e8f3ed;border-radius:16px;margin-bottom:24px}.debt-overview>div>span{color:#3b6754;font-size:14px}#debt-totals{display:flex;flex-wrap:wrap;gap:10px 24px;margin-top:6px}#debt-totals strong{font-size:27px;overflow-wrap:anywhere;color:#163e2c}.debt-tools{display:flex;gap:16px;align-items:end;margin:18px 0 6px}.debt-tools label{font-size:13px;color:#52676e;display:block}.debt-tools .debt-search{flex:1}.debt-tools input,.debt-tools select{display:block;border:1px solid #d6e0dc;border-radius:9px;padding:12px;width:100%;margin-top:6px;min-height:46px;font-size:16px;background:#fff;color:#21343d}.debt-card{background:#fff;border:1px solid #e0e7e3;border-radius:14px;padding:22px;margin:14px 0}.debt-card-top{display:flex;justify-content:space-between;gap:20px;align-items:start}.debt-card h2{margin:0 0 6px;font-size:20px;overflow-wrap:anywhere}.debt-status{font-size:12px;color:#547163}.debt-late{color:#a52c22!important}.debt-remaining{text-align:right;flex-shrink:0}.debt-remaining small{display:block;color:#6b7d75;font-size:12px}.debt-remaining strong{display:block;font-size:22px;color:#153e2b;overflow-wrap:anywhere}.debt-card-meta{display:flex;gap:8px 20px;flex-wrap:wrap;color:#61746b;font-size:13px;margin:16px 0}.debt-note{font-size:14px;overflow-wrap:anywhere}.debt-card-actions{display:flex;gap:18px;margin:16px 0}.debt-card details{border-top:1px solid #eaf0ec;margin-top:16px;padding-top:4px}.debt-card summary{font-size:13px;color:#51655a}.debt-history{font-size:13px}.debt-history-row{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #edf1ef;padding:10px 0}.debt-history-row small{display:block;color:#64776b;margin-top:4px;overflow-wrap:anywhere}.debt-empty{text-align:center;padding:48px 16px;border:1px dashed #ccd9d0;border-radius:14px;margin-top:16px}.debt-empty p{color:#63746b}.debt-form-row{display:grid;grid-template-columns:2fr 1fr;gap:12px}.debt-form-row label{min-width:0}.debt-form-row input,.debt-form-row select,#debt-form details input{display:block;width:100%;margin-top:6px;padding:12px;border:1px solid #dbe3e8;border-radius:8px;min-height:48px;font-size:16px}#debt-form details label{display:block;margin:12px 0}.debt-form-actions{position:sticky;bottom:-24px;background:#fff;display:flex;align-items:center;gap:16px;padding:16px 0 8px;margin-top:12px}.debt-form-actions .primary{flex:1}.debt-form-error,#debt-error{color:#a52c22;font-size:14px}.debt-pay-balance{background:#eef5f0;padding:18px;border-radius:12px;margin:18px 0}.debt-pay-balance small,.debt-pay-balance strong{display:block}.debt-pay-balance strong{font-size:24px;margin-top:5px}#debt-pay-after{font-size:14px;color:#236149}.debt-card button{min-height:44px}#debt-list{max-width:1000px}
@media(max-width:700px){aside nav{grid-template-columns:repeat(6,minmax(0,1fr));gap:1px}.nav{white-space:normal;font-size:11px;padding:8px 2px}.debt-tabs button{padding:12px}.debt-tabs span{font-size:17px}.debt-tabs small{font-size:12px}.debt-overview{padding:18px;display:block}#debt-totals strong{font-size:24px}#debt-due-summary{margin-top:12px;font-size:13px}.debt-tools{gap:8px}.debt-tools label:last-child{max-width:145px}.debt-card{padding:17px}.debt-card-top{gap:12px}.debt-card h2{font-size:18px}.debt-remaining{flex-shrink:1;min-width:110px;max-width:55%}.debt-remaining strong{font-size:19px}.debt-card-meta{display:grid;gap:6px}.debt-form-actions{bottom:-24px;padding-bottom:calc(12px + env(safe-area-inset-bottom))}.debt-history-row{flex-wrap:wrap}}
.debt-tabs{margin-bottom:16px}.debt-overview{padding:18px 22px;margin-bottom:18px}.debt-intro{margin-bottom:16px}
/* People-first ledger: independent balances and actions for each currency. */
#debt-list{max-width:1100px}.person-card{margin:18px 0 24px;background:#fff;border:1px solid #dce6e0;border-radius:18px;overflow:hidden}.person-heading{height:auto;padding:20px 24px;display:flex;align-items:center;justify-content:space-between;gap:18px;border-bottom:1px solid #e7ede9;background:#fff}.person-identity{display:flex;align-items:center;gap:14px;min-width:0}.person-avatar{width:44px;height:44px;flex-shrink:0;border-radius:13px;background:#eaf3ed;display:grid;place-items:center;color:#286447;font-size:15px;font-weight:650}.person-heading h2{font-size:19px;margin:0 0 4px;overflow-wrap:anywhere}.person-status{font-size:12px;color:#62786b}.person-add{background:#f1f6f3;border:1px solid #d7e4dc;color:#1c6547;border-radius:9px;padding:10px 14px;min-height:44px;white-space:nowrap;font-size:14px}.person-currencies{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:0}.person-currency{padding:22px 24px;min-width:0;border-right:1px solid #e8eee9;border-bottom:1px solid #e8eee9}.currency-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.currency-heading>div{flex-shrink:0}.currency-code{display:inline-block;font-size:12px;font-weight:650;letter-spacing:.7px;color:#27573d;background:#edf5ef;padding:4px 7px;border-radius:5px}.currency-heading small{display:block;color:#6c7e72;font-size:12px;margin-top:7px}.currency-heading strong{font-size:24px;line-height:1.4;text-align:right;color:#163d2b;overflow-wrap:anywhere}.currency-meta{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:12px;color:#617267;margin:16px 0 6px}.person-entry{border-top:1px solid #edf1ee;margin-top:16px;padding-top:14px}.entry-due{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:13px;color:#536e5e}.entry-due button{min-height:44px;white-space:nowrap}.person-entry summary{font-size:12px;color:#6a7d70;font-weight:400;line-height:1.6;padding:14px 0 0}.person-entry details[open] summary{padding-bottom:14px}.entry-maintenance{display:flex;gap:18px;flex-wrap:wrap;margin-top:12px}.person-help{display:block;color:#65766a;margin-top:8px;font-size:12px;line-height:1.5}.debt-date-visible{display:block;margin-top:18px}#debt-pay-who{font-weight:600}#debt-pay-after{padding:10px 12px;background:#eef6f0;border-radius:8px}#debt-form .debt-form-error:not(:empty){padding:12px;border-radius:8px;background:#fff1ee}
@media(max-width:700px){.person-heading{padding:16px;gap:8px}.person-identity{gap:10px}.person-heading h2{font-size:17px}.person-avatar{width:36px;height:36px;border-radius:10px;font-size:12px}.person-add{padding:8px 10px;font-size:12px}.person-currency{padding:18px 16px}.currency-heading strong{font-size:22px}.currency-meta{font-size:12px}.entry-due{font-size:12px}.entry-due button{padding:10px 12px;font-size:13px}.person-card{border-radius:14px}.debt-intro p{font-size:15px}.debt-overview{padding:16px}}
