:root{--ink:#173047;--navy:#123350;--teal:#229e92;--border:#dce5e9;--muted:#607987;--bg:#f4f7f8}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.5 Arial,Helvetica,sans-serif}button,input,select{font:inherit}button,a{touch-action:manipulation}a{color:#177d83}.topbar{background:var(--navy);color:#fff;min-height:74px;padding:0 max(28px,calc((100vw - 1360px)/2));display:flex;align-items:center;justify-content:space-between}.logo{font-size:20px;font-weight:750;letter-spacing:-.03em}.logout{border:1px solid #7c9baa;border-radius:8px;background:transparent;color:#fff;padding:8px 14px;cursor:pointer}.content{max-width:1360px;margin:auto;padding:34px 28px 60px}.overview,.account-panel,.auth-card{background:#fff;border:1px solid var(--border);border-radius:18px;box-shadow:0 8px 24px #13354a08}.overview{overflow:hidden}.overview-head{display:flex;align-items:end;justify-content:space-between;gap:24px;padding:30px 32px 28px}.eyebrow{font-size:12px;font-weight:800;letter-spacing:.12em;color:#537386}.overview h1{font-size:clamp(29px,3vw,40px);letter-spacing:-.045em;line-height:1.1;margin:7px 0 5px}.overview p{margin:0;color:#657b89}.month-nav{display:flex;align-items:center;gap:11px;white-space:nowrap;font-weight:700;font-size:15px}.month-nav span{min-width:132px;text-align:center}.month-nav a{width:38px;height:38px;display:grid;place-items:center;border:1px solid #d4e0e3;border-radius:8px;text-decoration:none;color:var(--navy);font-size:27px;line-height:1}.month-nav a:hover,.logout:hover{background:#e2f1ef;color:var(--navy)}.summary{display:grid;grid-template-columns:1.35fr 1fr 1fr;background:#ecf4f5;border-top:1px solid #dce9eb}.summary>div{padding:21px 32px 23px;min-width:0}.summary>div+div{border-left:1px solid #d4e4e7}.summary strong{display:block;font-size:29px;letter-spacing:-.035em;line-height:1.25;margin-top:5px}.summary strong small{font-size:17px;font-weight:500;color:#718996}.summary strong.summary-date,.summary strong.late{font-size:24px}.late{color:#aa343b;font-weight:700}.bar{height:6px;background:#cedfe2;border-radius:99px;margin-top:10px;max-width:280px;overflow:hidden}.bar span{height:100%;display:block;background:#24a698;border-radius:99px}.list-tools{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:22px 0}.hint{margin:0;border-left:3px solid #55b8ac;padding-left:14px;color:#577080;font-size:14px;line-height:1.55;max-width:880px}.primary{border:0;border-radius:8px;background:var(--navy);color:#fff;font-weight:700;padding:10px 17px;cursor:pointer;text-decoration:none;display:inline-block;white-space:nowrap}.primary:hover{background:#225678;color:#fff}.account-panel{padding:24px;margin:22px 0;scroll-margin-top:18px}.account-panel .section-head{margin-bottom:17px}.account-form{display:grid;grid-template-columns:2fr 1.2fr 1fr 1fr;gap:14px;align-items:end}.account-form label,.auth-card label{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:700;color:#375568}.account-form input,.account-form select,.auth-card input{width:100%;border:1px solid #b9cbd2;background:#fff;color:var(--ink);border-radius:8px;min-height:42px;padding:8px 10px;font-size:16px}.form-actions{grid-column:1/-1}.delete-form{border-top:1px solid var(--border);margin-top:20px;padding-top:14px}.delete-button{border:1px solid #d7a8aa;border-radius:8px;color:#a7363b;background:#fff;padding:8px 13px;cursor:pointer}.delete-button:hover{background:#fff0f0}.payment-section{margin-top:28px}.section-head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:13px;gap:12px}.section-head h2{font-size:20px;letter-spacing:-.025em;margin:0}.section-head span{font-size:14px;color:#718591}.table-wrap{border:1px solid var(--border);background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 5px 18px #12335006}table{border-collapse:collapse;width:100%;table-layout:fixed}th{text-align:left;background:#f8fafb;color:#607986;text-transform:uppercase;letter-spacing:.08em;font-size:12px;font-weight:800;padding:14px 18px}th:first-child{width:29%;padding-left:24px}th:nth-child(2),th:nth-child(3){width:15%}th:nth-child(4){width:18%}th:last-child{width:23%}td{padding:14px 18px;border-top:1px solid #e9eef0;color:#364f5f;font-size:14px;vertical-align:middle}td:first-child{padding-left:24px}.account strong{font-size:15px;color:#203a4c}.edit-link{display:block;width:max-content;font-size:13px;margin-top:3px}.row-paid{background:#f9fcfb}.payment-cell{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.payment-cell form{margin:0}.status-button{border:0;background:none;color:#364f5f;display:inline-flex;align-items:center;gap:9px;padding:3px 0;cursor:pointer;white-space:nowrap;font-size:14px}.status-button.done{color:#167f76;font-weight:700}.box{border:1.5px solid #9db6bd;border-radius:4px;width:20px;height:20px;display:inline-grid;place-items:center;line-height:1;color:#fff}.done .box{border-color:var(--teal);background:var(--teal)}button:disabled{opacity:.55;cursor:not-allowed}.date-form{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.date-form input{border:1px solid #cddde1;border-radius:7px;padding:5px 7px;color:#344f5e;background:#fff;font-size:13px;max-width:150px;min-height:32px}.save-date{border:1px solid #cddde1;border-radius:6px;background:#fff;color:var(--navy);padding:5px 7px;font-size:12px;cursor:pointer}.late-tag{display:inline-block;margin-left:6px;background:#fcebec;color:#a9363c;border-radius:4px;padding:2px 5px;font-size:12px;font-weight:700}.mobile-dates{display:none}.empty{padding:25px;color:var(--muted)}.error,.success{padding:13px 16px;margin:18px 0;border-radius:9px}.error{background:#fff1f1;border:1px solid #f0c3c6;color:#913035}.success{background:#e4f5f1;border:1px solid #b6ded4;color:#176e67}footer{text-align:center;color:#728793;font-size:13px;padding-top:36px}.auth-card{max-width:440px;margin:9vh auto;padding:32px}.auth-card .logo{color:var(--navy)}.auth-card h1{margin:26px 0 4px;font-size:30px;letter-spacing:-.04em}.auth-card p{color:var(--muted);margin:0 0 22px}.auth-card form{display:grid;gap:16px}.auth-card .primary{margin-top:4px;min-height:44px}.auth-card .small{font-size:14px;margin:22px 0 0}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}:focus-visible{outline:3px solid #3da99d;outline-offset:2px}
@media(max-width:1050px){.content{padding:26px 18px 50px}.topbar{padding:0 18px}th,td{padding-left:10px;padding-right:10px}th:first-child,td:first-child{padding-left:16px}.account-form{grid-template-columns:1fr 1fr}.payment-cell{gap:4px}}
@media(max-width:760px){.overview-head{display:block;padding:25px 20px}.month-nav{justify-content:space-between;margin-top:18px}.summary{grid-template-columns:1fr 1fr}.summary>div{padding:18px 20px}.summary>div:first-child{grid-column:span 2;border-bottom:1px solid #d4e4e7}.summary>div:nth-child(2){border-left:0}.summary strong{font-size:25px}.summary strong.summary-date,.summary strong.late{font-size:20px}.list-tools{display:block}.add-button{margin-top:16px}.account-form{grid-template-columns:1fr 1fr}table,tbody{display:block}thead{display:none}tr{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid #e9eef0;padding:16px 18px;gap:11px}tr:first-child{border-top:0}td,td:first-child{display:block;border:0;padding:0}.account{grid-column:span 2}.account strong{font-size:16px}.date-cell{display:none}.mobile-dates{display:block;color:#667f8b;margin-top:5px;font-size:13px}.payment-cell{display:block}.date-form{margin-top:4px!important}.auth-card{margin:5vh 15px}}
@media(max-width:450px){.content{padding-left:12px;padding-right:12px}.account-panel{padding:17px}.account-form{grid-template-columns:1fr}.summary>div{padding-left:14px;padding-right:14px}tr{padding-left:14px;padding-right:14px}.logo{font-size:18px}}
.type-label{display:inline-block;margin-left:8px;padding:2px 6px;border-radius:5px;background:#eaf2f4;color:#537282;font-size:12px;font-weight:700;white-space:nowrap}
@media(max-width:760px){.type-label{margin-left:7px}}
[hidden]{display:none!important}.loan-table th:first-child{width:38%}.loan-table th:nth-child(2){width:18%}.loan-table th:nth-child(3){width:20%}.loan-table th:nth-child(4){width:24%}
/* Navy and teal ledger rows: each account is a distinct band. */
.table-wrap{background:#e7eff3;border-color:#b6cbd4;padding:0 10px 8px;box-shadow:0 8px 24px #12335012}
.table-wrap table{border-collapse:separate;border-spacing:0 9px}
.table-wrap thead th{background:#d6e6ec;color:#24495e;border-bottom:1px solid #b4cbd5}
.table-wrap thead th:first-child{border-radius:8px 0 0 8px}
.table-wrap thead th:last-child{border-radius:0 8px 8px 0}
.table-wrap tbody tr td{background:#fff;border-top:1px solid #b5cbd5;border-bottom:1px solid #b5cbd5;padding-top:18px;padding-bottom:18px}
.table-wrap tbody tr:nth-child(even) td{background:#dceef3;border-color:#9ebfca}
.table-wrap tbody tr.row-paid td,.table-wrap tbody tr.row-paid:nth-child(even) td{background:#dff3e9;border-color:#9dceb6}
.table-wrap tbody tr:hover td{background:#cde9f0}
.table-wrap tbody tr.row-paid:hover td{background:#c9ebda}
.table-wrap tbody tr td:first-child{border-left:6px solid #3d8796;border-radius:8px 0 0 8px;padding-left:18px}
.table-wrap tbody tr:nth-child(even) td:first-child{border-left-color:#197e90}
.table-wrap tbody tr.row-paid td:first-child{border-left-color:#25956e}
.table-wrap tbody tr td:last-child{border-right:1px solid #b5cbd5;border-radius:0 8px 8px 0}
.table-wrap tbody tr:nth-child(even) td:last-child{border-right-color:#9ebfca}
.table-wrap tbody tr.row-paid td:last-child{border-right-color:#9dceb6}
.section-head h2{color:#15384d}
@media(max-width:760px){
  .table-wrap{padding:9px 8px 0}
  .table-wrap table,.table-wrap tbody{display:block}
  .table-wrap tbody tr{display:grid;grid-template-columns:1fr 1fr;margin:0 0 10px;padding:15px 16px;border:1px solid #b5cbd5;border-left:6px solid #3d8796;border-radius:9px;background:#fff;gap:10px}
  .table-wrap tbody tr:nth-child(even){background:#dceef3;border-color:#9ebfca;border-left-color:#197e90}
  .table-wrap tbody tr.row-paid,.table-wrap tbody tr.row-paid:nth-child(even){background:#dff3e9;border-color:#9dceb6;border-left-color:#25956e}
  .table-wrap tbody tr:hover{background:#cde9f0}
  .table-wrap tbody tr.row-paid:hover{background:#c9ebda}
  .table-wrap tbody tr td,.table-wrap tbody tr:nth-child(even) td,.table-wrap tbody tr.row-paid td{background:transparent;border:0;border-radius:0;padding:0}
  .table-wrap tbody tr td:first-child{border:0;padding:0}
}
a{color:#0f6975}
.status-button.done{color:#0d6d66}
.edit-link{font-weight:700}
.account-actions{display:flex;align-items:center;flex-wrap:wrap;gap:7px 14px;margin-top:7px}
.account-actions .edit-link{margin:0}
.account-actions form{margin:0}
.no-bill-button{border:1px solid #92abb7;border-radius:7px;background:#fff;color:#345a6c;font-size:13px;font-weight:700;min-height:30px;padding:4px 10px;cursor:pointer}
.no-bill-button:hover{background:#e7f1f4;border-color:#538c9b}
.no-bill-button.active{background:#dce5ea;border-color:#77929f;color:#244757}
.not-applicable{color:#607681;font-style:italic;font-size:14px}
.summary-footnote{display:block;margin-top:7px;color:#496978;font-size:13px;font-weight:700}
.table-wrap tbody tr.row-no-bill td,.table-wrap tbody tr.row-no-bill:nth-child(even) td{background:#edf1f3;border-color:#bdcbd1}
.table-wrap tbody tr.row-no-bill td:first-child,.table-wrap tbody tr.row-no-bill:nth-child(even) td:first-child{border-left-color:#708994}
.table-wrap tbody tr.row-no-bill td:last-child{border-right-color:#bdcbd1}
.table-wrap tbody tr.row-no-bill:hover td{background:#e2eaee}
.upcoming-section{border-top:2px solid #9dc6d0;padding-top:22px;margin-top:30px}
.upcoming-section .section-head h2{color:#155b70}
.section-note{margin:-5px 0 13px;color:#486b7d;font-size:14px;line-height:1.5}
@media(max-width:760px){
  .table-wrap tbody tr.row-no-bill,.table-wrap tbody tr.row-no-bill:nth-child(even){background:#edf1f3;border-color:#bdcbd1;border-left-color:#708994}
  .table-wrap tbody tr.row-no-bill:hover{background:#e2eaee}
  .table-wrap tbody tr.row-no-bill td,.table-wrap tbody tr.row-no-bill:nth-child(even) td{background:transparent;border:0}
}
.inline-error{margin-top:8px;color:#a22c34;font-size:13px;font-weight:700}
.is-saving{opacity:.72}
tr[id^="account-row-"]{scroll-margin-top:18px}
tr[id^="upcoming-account-row-"]{scroll-margin-top:18px}
.all-clear{background:#e4f5f1;border:1px solid #b6ded4;border-radius:10px;padding:17px;margin-top:22px;color:#176e67;font-weight:700}
.completed-panel{margin-top:38px;border-top:2px solid #9dc6d0;padding-top:20px}
.completed-panel>summary{cursor:pointer;background:#e3edf1;border:1px solid #afc5ce;border-radius:10px;padding:15px 18px;color:#15384d;font-size:19px;font-weight:800;list-style-position:inside}
.completed-panel>summary:hover{background:#d3e6ec}
.completed-panel>p{color:#537282;font-size:14px;margin:12px 3px}
.resolved-section{margin-top:20px}
.amount-form{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.amount-form label{width:100%;font-size:12px;font-weight:700;color:#486b7d}
.amount-form input{width:112px;max-width:100%;min-height:34px;border:1px solid #a9c0c9;border-radius:7px;padding:5px 7px;color:#173047;background:#fff}
.amount-form .status-button{border:1px solid #197e90;border-radius:7px;padding:6px 9px;background:#e8f5f4;color:#155b70;font-weight:700}
.amount-saved{width:100%;font-size:14px;font-weight:800;color:#126d60}
@media(max-width:760px){.table-wrap tbody tr td:last-child{grid-column:span 2}.amount-form input{width:140px}}
