:root{--ink:#201b2b;--muted:#625d6d;--purple:#4a2b86;--purple2:#7955c8;--teal:#168875;--bg:#f5f3f8;--line:#e5e0ec;font-family:Arial,Helvetica,sans-serif;font-size:20px;color:var(--ink)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);padding-bottom:92px}.topbar{background:#38236f;color:#fff;padding:18px 20px;display:flex;justify-content:space-between;align-items:center;gap:10px}.brand{font-size:24px;font-weight:900}.brand span{font-weight:600}.subbrand{font-size:15px;margin-top:3px;opacity:.85}.status{font-size:14px;background:#ffffff20;border-radius:20px;padding:8px}.dot{display:inline-block;width:9px;height:9px;background:#6ee7a5;border-radius:50%;margin-right:5px}.container{max-width:760px;margin:auto;padding:20px 16px}.page{display:none}.page.active{display:block}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:4px 0 20px}.eyebrow{font-size:14px;letter-spacing:1px;color:var(--purple2);font-weight:900;margin:0 0 5px}h1{font-size:34px;line-height:1.1;margin:0}h2{font-size:24px;margin:0}.hero-card{background:linear-gradient(135deg,#39216e,#6745a5);color:white;padding:23px;border-radius:20px;margin-bottom:14px}.muted-light{font-size:16px;font-weight:800;opacity:.9}.small{font-size:14px}.hero-amount{font-size:42px;font-weight:900;margin:8px 0}.stats-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.stat-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:17px}.stat-icon{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;font-size:24px;font-weight:900;margin-bottom:12px}.purple{background:#eee7fa;color:#563695}.teal{background:#e0f4ef;color:#137b69}.orange{background:#fff0df;color:#a65a12}.red{background:#fde9e9;color:#b93838}.blue{background:#e5efff;color:#315b9a}.stat-label{font-size:14px;font-weight:900;color:var(--muted)}.stat-value{font-size:27px;font-weight:900;margin-top:6px;overflow-wrap:anywhere}.stat-foot{font-size:16px;color:var(--muted);margin-top:5px}.section-heading{display:flex;justify-content:space-between;align-items:center;margin:25px 2px 12px;gap:10px}.button{border:0;border-radius:12px;padding:14px 16px;font-size:18px;font-weight:900;cursor:pointer}.primary{background:var(--purple2);color:#fff}.secondary{background:#ebe5f5;color:var(--purple)}.quick-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.quick-action{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:15px;text-align:left;font-size:18px;font-weight:900;color:var(--ink);min-height:72px}.quick-symbol{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;font-size:24px}.list-card{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden}.empty-state{padding:22px;text-align:center;color:var(--muted)}.record-row{padding:16px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:12px}.record-row:last-child{border-bottom:0}.record-main{min-width:0}.record-name{font-size:21px;font-weight:900;overflow-wrap:anywhere}.record-meta{font-size:16px;color:var(--muted);margin-top:4px}.record-amount{text-align:right;font-size:21px;font-weight:900;white-space:nowrap}.record-status{font-size:14px;font-weight:900;margin-top:4px;color:var(--muted)}.text-button{border:0;background:none;color:var(--purple2);font-size:17px;font-weight:900;padding:8px}.search{width:100%;padding:16px;border:1px solid #d8d1e2;border-radius:13px;font-size:19px;margin-bottom:14px;background:#fff}.module-summary{background:#eee7fa;color:var(--purple);padding:18px;border-radius:16px;margin-bottom:14px;display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:18px;font-weight:900}.module-summary strong{font-size:27px}.teal-panel{background:#e0f4ef;color:#126f60}.compact .stat-card{padding:15px}.report-grid{display:grid;gap:12px}.report-button{border:1px solid var(--line);background:#fff;border-radius:15px;padding:18px;text-align:left;display:grid;gap:7px;color:var(--ink);font-size:19px}.report-button strong{font-size:21px}.report-button span{font-size:17px;color:var(--muted)}.notice{background:#fff5df;border:1px solid #f0d9a7;padding:16px;border-radius:14px;margin-top:18px;font-size:17px;line-height:1.45}.bottom-nav{position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid var(--line);display:flex;justify-content:space-around;padding:9px 4px max(9px,env(safe-area-inset-bottom));z-index:5}.nav-item{border:0;background:none;color:#716b7b;display:grid;justify-items:center;gap:3px;min-width:55px;font-weight:900}.nav-item span{font-size:27px}.nav-item small{font-size:13px}.nav-item.active{color:var(--purple2)}dialog{border:0;border-radius:20px;padding:0;width:min(94vw,560px);max-height:90vh;box-shadow:0 20px 80px #17102055}dialog::backdrop{background:#17102088}.dialog-shell{padding:20px;max-height:90vh;overflow:auto}.dialog-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.icon-button{border:0;background:#f0edf4;border-radius:50%;width:44px;height:44px;font-size:21px}.field{display:grid;gap:7px;margin:14px 0}.field label{font-size:18px;font-weight:900}.field input,.field select,.field textarea{width:100%;padding:15px;border:1px solid #cfc7da;border-radius:11px;font-size:20px;background:#fff;color:var(--ink)}.field small{font-size:15px;color:var(--muted)}.dialog-actions{display:flex;gap:10px;margin-top:20px}.dialog-actions button{flex:1}.detail-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:12px}.outline-button,.danger-button{border:1px solid #cfc5df;background:#fff;color:var(--purple);border-radius:11px;padding:13px;font-size:17px;font-weight:900}.danger-button{border-color:#e8baba;color:#b93838}#toast{position:fixed;bottom:100px;left:50%;transform:translateX(-50%);background:#251b35;color:#fff;padding:13px 18px;border-radius:12px;font-size:17px;opacity:0;pointer-events:none;z-index:10;max-width:90vw;text-align:center}#toast.show{opacity:1}.paid{color:#168875}.due{color:#a65a12}.overdue{color:#b93838}.empty-note{padding:20px;text-align:center;color:var(--muted)}
@media(min-width:650px){.stats-grid{grid-template-columns:repeat(4,1fr)}.compact{grid-template-columns:repeat(2,1fr)}.quick-grid{grid-template-columns:repeat(4,1fr)}}
@media(max-width:390px){:root{font-size:19px}.topbar{padding:15px}.container{padding:16px 12px}.hero-amount{font-size:35px}.stat-value{font-size:23px}h1{font-size:30px}.button{padding:12px;font-size:16px}}

/* Owner access gate and security controls */
#owner-gate{position:fixed;inset:0;z-index:10000;background:#241744;display:grid;place-items:center;padding:20px}
#owner-gate[hidden]{display:none}.gate-card{width:min(100%,460px);background:#fff;border-radius:24px;padding:28px;box-shadow:0 24px 80px #0005}
.gate-brand{font-size:24px;font-weight:900;color:#38236f;text-align:center;margin:4px 0 24px}
.gate-brand-sub{font-size:20px;font-weight:700;color:#38236f;text-align:center;margin:-18px 0 24px}.gate-brand span{font-weight:600}
.gate-card h1{font-size:30px;margin:24px 0 10px}.gate-card p{font-size:17px;line-height:1.45;color:#625d6d}
.gate-card label{display:block;font-size:18px;font-weight:900;margin:14px 0 7px}.gate-card input{width:100%;padding:17px;border:2px solid #cfc7da;border-radius:12px;font-size:26px;letter-spacing:7px}
.gate-submit{width:100%;margin-top:18px;min-height:58px}.gate-card .gate-error{color:#b93838;font-weight:800;min-height:22px}.gate-card .gate-foot{font-size:14px;margin-top:22px}
#lock-app-btn{margin-left:auto;white-space:nowrap}.security-note{border-color:#e4c47a}body.app-locked{overflow:hidden}
@media(max-width:480px){.gate-card{padding:22px}.gate-card h1{font-size:27px}}


.schedule-details{margin-top:10px;font-size:16px}
.schedule-details summary{cursor:pointer;color:var(--purple,#7650c8);font-weight:800;padding:8px 0}
.schedule-list{border-left:3px solid var(--purple,#7650c8);padding-left:10px;margin-top:6px}
.schedule-list .record-row{padding:8px 0}
.schedule-list .record-name{font-size:15px}
.schedule-list .record-meta{font-size:13px}
.schedule-list .record-amount{font-size:15px}


/* Written PAUTANG disclosure and acknowledgment */
.disclosure-card{background:#fff;border:2px solid #d9d0e8;border-radius:15px;padding:16px;margin:18px 0}
.disclosure-card h3{font-size:21px;margin:0 0 12px;color:var(--purple)}
.disclosure-content dl{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:9px 12px;margin:0}
.disclosure-content dt{font-size:15px;color:var(--muted);font-weight:800}
.disclosure-content dd{font-size:16px;font-weight:800;text-align:right;margin:0;overflow-wrap:anywhere}
.disclosure-content .disclosure-total{font-size:20px;color:var(--purple)}
.acknowledgment-check{display:flex;align-items:flex-start;gap:12px;background:#f0edf8;border:1px solid #d9d0e8;border-radius:13px;padding:15px;margin:16px 0;font-size:17px;font-weight:800;line-height:1.4}
.acknowledgment-check input{width:25px;height:25px;flex:0 0 25px;margin:0;accent-color:var(--purple2)}


/* PALISTA grouped by customer */
.palista-customer-group{padding:18px 20px;border-bottom:1px solid var(--line,#e4deed)}
.palista-customer-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;padding-bottom:12px}
.palista-customer-heading .record-name{font-size:19px}
.palista-entry-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0 12px 14px;border-top:1px dashed #ded7e8}
.palista-entry-row .record-meta{margin-bottom:5px}
.palista-entry-row .record-amount{font-size:16px}


/* PALISTA customer register */
.palista-customer-group{padding:16px 18px;border-bottom:1px solid #e6e0ed}
.palista-customer-group:last-child{border-bottom:0}
.palista-customer-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:2px 0 12px}
.palista-customer-heading .record-name{font-size:19px;font-weight:900}
.palista-customer-heading .record-amount{font-size:20px}
.palista-entry-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0 12px 14px;border-top:1px dashed #ded7e8}
.palista-entry-row .record-main{min-width:0}
.palista-entry-row .record-name{font-size:16px;font-weight:700}
.palista-entry-row .record-meta{margin:3px 0 5px}
.palista-entry-row .record-amount{font-size:17px;white-space:nowrap}


/* Customer-level PALISTA payment allocation */
.palista-customer-pay{width:100%;margin:0 0 8px;min-height:48px}
.allocation-preview{margin:14px 0;padding:13px;background:#f7f4fb;border:1px solid #e3d9f1;border-radius:12px}
.allocation-preview>strong{display:block;margin-bottom:8px}
.allocation-preview-row{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-top:1px dashed #ddd4e9;font-size:14px}
.allocation-preview-row span{min-width:0}
.allocation-preview-row strong{white-space:nowrap}

/* Dialog and PAUTANG schedule layout refinement */
dialog{overflow:hidden;}
.dialog-shell{max-height:90vh;overflow-y:auto;overscroll-behavior:contain;}
.dialog-header{position:sticky;top:-20px;z-index:3;background:#fff;padding:4px 0 12px;margin-bottom:12px;}
.schedule-list .record-row{align-items:flex-start;gap:8px;}
.schedule-list .record-main{flex:1;min-width:0;}
.schedule-list .record-amount{flex:0 0 auto;white-space:normal;text-align:right;}

.loan-card-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:5px}.payment-history-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 16px}.payment-history-summary>div{background:#f4f0fa;border:1px solid #e5ddef;border-radius:12px;padding:10px;min-width:0}.payment-history-summary span{display:block;font-size:13px;color:var(--muted);font-weight:700}.payment-history-summary strong{display:block;font-size:17px;margin-top:5px;overflow-wrap:anywhere}.payment-history-table-wrap{width:100%;overflow-x:auto;border:1px solid var(--line);border-radius:12px}.payment-history-table{width:100%;border-collapse:collapse;font-size:14px;min-width:430px}.payment-history-table th,.payment-history-table td{text-align:left;padding:11px 9px;border-bottom:1px solid var(--line);vertical-align:top}.payment-history-table th{background:#f4f0fa;color:var(--purple);font-weight:900}.payment-history-table tr:last-child td{border-bottom:0}.payment-history-amount{font-weight:900;white-space:nowrap}.payment-history-status{font-size:11px;font-weight:900;white-space:nowrap}@media(max-width:390px){.payment-history-summary strong{font-size:15px}.payment-history-summary span{font-size:12px}.loan-card-actions{gap:2px}}

.payment-history-table-wrap{width:100%;overflow-x:auto;margin-top:12px}.payment-history-table{width:100%;border-collapse:collapse;font-size:14px;min-width:480px}.payment-history-table th,.payment-history-table td{padding:11px 9px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}.payment-history-table th{background:#f4f0fa;color:var(--purple)}.payment-history-amount{font-weight:900;white-space:nowrap}.payment-history-status{font-size:12px;font-weight:900}.payment-history-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}.payment-history-summary>div{background:#f4f0fa;border-radius:11px;padding:11px;min-width:0}.payment-history-summary span{display:block;font-size:12px;color:var(--muted)}.payment-history-summary strong{display:block;font-size:17px;overflow-wrap:anywhere;margin-top:5px}.allocation-preview{margin:14px 0;padding:13px;background:#f7f4fb;border:1px solid #e3d9f1;border-radius:12px}.allocation-preview-row{display:flex;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid #e5deef;font-size:14px}.receipt-print{background:#fff;border:1px dashed #b9adca;border-radius:12px;padding:20px;line-height:1.5}.receipt-print h2,.receipt-print h3{text-align:center;color:var(--purple)}.receipt-thanks{text-align:center;margin-top:22px;font-weight:800}@media(max-width:420px){.payment-history-summary{grid-template-columns:1fr}.payment-history-summary>div{display:flex;justify-content:space-between;align-items:center;gap:8px}.payment-history-summary strong{font-size:16px}}
.allocation-preview{margin:14px 0;padding:13px;background:#f7f4fb;border:1px solid #e3d9f1;border-radius:12px}
.allocation-preview-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid #e5deef;font-size:14px}
.allocation-amount{text-align:right;display:flex;flex-direction:column;align-items:flex-end;gap:5px;white-space:nowrap}
.coverage-tag{font-size:10px;font-weight:900;letter-spacing:.04em}
.coverage-tag.covered{color:#167347}.coverage-tag.partial{color:#9a6500}
.allocation-total{display:flex;justify-content:space-between;gap:10px;padding-top:12px;margin-top:5px;font-weight:900}
.payment-history-table-wrap{width:100%;overflow-x:auto;margin-top:12px}
.payment-history-table{width:100%;border-collapse:collapse;font-size:14px;min-width:480px}
.payment-history-table th,.payment-history-table td{padding:11px 9px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.payment-history-table th{background:#f4f0fa;color:var(--purple)}
.payment-history-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0}
.payment-history-summary>div{background:#f4f0fa;border-radius:11px;padding:11px;min-width:0}
.payment-history-summary span{display:block;font-size:12px;color:var(--muted)}
.payment-history-summary strong{display:block;font-size:17px;overflow-wrap:anywhere;margin-top:5px}
.receipt-print{background:#fff;border:1px dashed #b9adca;border-radius:12px;padding:20px;line-height:1.5}
.receipt-print h2,.receipt-print h3{text-align:center;color:var(--purple)}
.receipt-thanks{text-align:center;margin-top:22px;font-weight:800}
@media(max-width:420px){.payment-history-summary{grid-template-columns:1fr}.payment-history-summary>div{display:flex;justify-content:space-between;align-items:center;gap:8px}.payment-history-summary strong{font-size:16px}}

.last-payment-summary{margin:8px 0 14px;padding:10px 12px;border:1px solid #e5deef;border-radius:10px;background:#faf8fd;color:var(--muted);font-size:14px;font-weight:700}

.last-payment-summary{margin:8px 0 14px;padding:12px;border:1px solid #e5deef;border-radius:10px;background:#faf8fd;color:var(--muted);font-size:14px;line-height:1.55}
.last-payment-summary>strong{display:block;color:var(--ink);margin-bottom:5px}
.recommended-payment-date{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-top:7px;padding-top:8px;border-top:1px solid #e5deef;font-weight:800;color:var(--purple)}
.recommended-payment-date .text-button{white-space:nowrap}

.customer-summary-link{display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;padding:22px 20px;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink);font:inherit;font-size:19px;font-weight:850;text-align:left;cursor:pointer;min-height:76px}
.customer-summary-link:last-child{border-bottom:0}
.customer-summary-link:active{background:#f2edf9}
.customer-summary-arrow{font-size:28px;color:var(--purple);line-height:1}
.customer-summary-link:focus-visible{outline:3px solid var(--purple);outline-offset:-3px;border-radius:10px}

#backup-status{padding:10px 12px;background:#f4f0fa;border:1px solid var(--line);border-radius:10px;line-height:1.45}
.report-button{min-height:76px}


/* Clear separation of PAUTANG and PALISTA in the customer ledger */
.account-balance-breakdown{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:-5px 0 16px}
.account-balance-breakdown>div{display:flex;flex-direction:column;gap:5px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#faf8fd;min-width:0}
.account-balance-breakdown>div:first-child{border-left:4px solid var(--purple2)}
.account-balance-breakdown>div:last-child{border-left:4px solid var(--teal)}
.account-balance-breakdown span{font-size:14px;color:var(--muted);font-weight:800}
.account-balance-breakdown strong{font-size:20px;overflow-wrap:anywhere}
.account-section-note{margin:-5px 0 10px;color:var(--muted);font-size:14px;line-height:1.4}
@media(min-width:650px){dialog{width:min(94vw,760px)}}
@media(max-width:420px){.account-balance-breakdown{grid-template-columns:1fr}.account-balance-breakdown>div{flex-direction:row;justify-content:space-between;align-items:center}}


/* Clear, consistent PAUTANG and PALISTA account cards */
.account-record-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px;margin:12px 0 16px;box-shadow:0 2px 8px #2417440a}
.account-card-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:12px}
.account-card-title{font-size:19px;font-weight:900;line-height:1.3;color:var(--ink)}
.account-card-subtitle{font-size:13px;font-weight:800;color:var(--muted);margin-top:3px;text-transform:uppercase;letter-spacing:.04em}
.account-card-balance{display:flex;flex-direction:column;gap:3px;padding:13px 15px;border-radius:12px;background:#f0eafa;color:var(--purple);margin-bottom:12px}
.palista-account-card .account-card-balance{background:#e0f4ef;color:#126f60}
.account-card-balance span{font-size:13px;font-weight:800}
.account-card-balance strong{font-size:28px;line-height:1.15;font-weight:900;overflow-wrap:anywhere}
.account-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:10px 0 14px}
.account-card-grid>div{display:flex;flex-direction:column;gap:4px;min-width:0;padding:9px 10px;background:#faf9fc;border:1px solid var(--line);border-radius:10px}
.account-card-grid span,.account-card-facts span{font-size:12px;color:var(--muted);font-weight:800}
.account-card-grid strong,.account-card-facts strong{font-size:15px;line-height:1.3;overflow-wrap:anywhere}
.account-card-section-title{font-size:15px;font-weight:900;margin:14px 0 8px;color:var(--ink)}
.account-card-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}
.account-card-facts>div{display:flex;flex-direction:column;gap:3px;min-width:0}
.account-card-action{width:100%;margin-top:15px}
.account-record-card .schedule-details{border-top:1px solid var(--line);margin-top:10px;padding-top:6px}
.palista-account-card{border-left:4px solid var(--teal)}
.loan-account-card{border-left:4px solid var(--purple2)}
@media(max-width:420px){.account-record-card{padding:13px}.account-card-balance strong{font-size:25px}.account-card-grid{gap:7px}.account-card-facts{gap:9px}}

/* Small text preference for owners who prefer a more compact display */
html[data-font-size="small"]{font-size:16px}
html[data-font-size="small"] :is(.brand,h1,h2,.hero-amount,.stat-value,.record-name,.record-amount,.module-summary strong,.button,.quick-action,.search,.field label,.field input,.field select,.field textarea,.report-button,.nav-item span,.dialog-header h2,.account-card-title,.account-card-balance strong,.account-card-grid strong,.account-card-facts strong){font-size:.88em}
html[data-font-size="small"] :is(.subbrand,.status,.eyebrow,.muted-light,.stat-label,.stat-foot,.record-meta,.record-status,.text-button,.nav-item small,.notice,.account-card-subtitle,.account-card-balance span,.account-card-grid span,.account-card-facts span){font-size:.88em}


/* Apply the selected text scale consistently across the whole interface */
html[data-font-size="small"] body{zoom:.82}
html[data-font-size="medium"] body{zoom:.92}
html[data-font-size="large"] body{zoom:1}
html[data-font-size="extra"] body{zoom:1.08}


/* Premium, consistent customer account presentation */
.account-record-card{
 display:block;width:100%;box-sizing:border-box;
 background:linear-gradient(180deg,#fff 0%,#fdfcff 100%);
 border:1px solid #e7e0f0;border-radius:18px;
 padding:18px;margin:14px 0 18px;
 box-shadow:0 5px 18px rgba(48,31,83,.07);
}
.loan-account-card{border-top:4px solid #7955c8;border-left:1px solid #e7e0f0}
.palista-account-card{border-top:4px solid #15977e;border-left:1px solid #e7e0f0}
.account-card-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 14px}
.account-card-title{font-size:18px;font-weight:900;line-height:1.3;letter-spacing:.01em}
.account-card-subtitle{display:inline-flex;align-items:center;width:max-content;max-width:100%;margin-top:5px;padding:4px 9px;border-radius:99px;background:#f0ebfa;color:#5c3a9b;font-size:11px;font-weight:900;letter-spacing:.05em}
.palista-account-card .account-card-subtitle{background:#e2f4ef;color:#08745f}
.account-card-balance{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:15px 16px;margin:0 0 14px;border-radius:14px;background:#f0eafa;color:#4f318d}
.palista-account-card .account-card-balance{background:#e1f4ef;color:#08745f}
.account-card-balance span{font-size:12px;font-weight:850;text-transform:uppercase;letter-spacing:.06em}
.account-card-balance strong{font-size:30px;line-height:1.12;font-weight:950;letter-spacing:-.025em;font-variant-numeric:tabular-nums}
.account-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:0 0 16px}
.account-card-grid>div{display:flex;flex-direction:column;justify-content:center;gap:5px;min-height:57px;padding:10px 12px;background:#faf9fc;border:1px solid #eee9f4;border-radius:12px;box-sizing:border-box}
.account-card-grid span,.account-card-facts span{display:block;color:#746d80;font-size:11px;font-weight:800;letter-spacing:.025em}
.account-card-grid strong,.account-card-facts strong{display:block;color:#25202d;font-size:15px;font-weight:850;line-height:1.3;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.account-card-section-title{margin:16px 0 10px;padding-top:13px;border-top:1px solid #eee9f4;color:#33274b;font-size:14px;font-weight:950;text-transform:uppercase;letter-spacing:.055em}
.account-card-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 16px}
.account-card-facts>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.account-card-action{width:100%;min-height:48px;margin:17px 0 8px;border-radius:12px;font-weight:900}
.account-record-card .schedule-details{margin-top:8px;padding-top:12px;border-top:1px solid #eee9f4}
.account-record-card .schedule-details summary{color:#563793;font-size:13px;font-weight:850;cursor:pointer}
.account-record-card .schedule-list{margin-top:10px}
.account-module-total{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 17px;border-radius:14px;margin:0 0 14px}
.account-module-total span{font-size:13px;font-weight:850}
.account-module-total strong{font-size:25px;font-weight:950;font-variant-numeric:tabular-nums}
.loan-total{background:#f0eafa;color:#50318f}
.palista-total{background:#e1f4ef;color:#08745f}
.palista-payment-action{margin:0 0 12px;min-height:46px}
.profile-contact{display:grid;gap:10px;margin:4px 0 18px}
.profile-contact>div{display:flex;flex-direction:column;gap:4px;padding:12px 14px;border:1px solid #eee9f4;border-radius:12px;background:#fbfaff}
.profile-contact span,.profile-account-tile>span{font-size:12px;font-weight:850;color:#746d80}
.profile-contact strong{font-size:15px;line-height:1.4;overflow-wrap:anywhere}
.profile-account-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.profile-account-tile{min-width:0;padding:15px;border-radius:15px;border:1px solid #e8e1f0;background:#fff;display:flex;flex-direction:column;gap:8px}
.profile-account-tile strong{font-size:22px;font-weight:950;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.profile-account-tile button{display:flex;align-items:center;justify-content:space-between;gap:5px;padding:9px 0 0;border:0;border-top:1px solid #eee9f4;background:transparent;color:#563793;font-size:12px;font-weight:900;text-align:left}
.profile-account-tile.palista-tile button{color:#08745f}
.loan-tile{border-top:4px solid #7955c8}.palista-tile{border-top:4px solid #15977e}
@media(max-width:520px){
 .account-record-card{padding:14px;border-radius:15px}
 .account-card-balance strong{font-size:27px}
 .account-card-grid{gap:7px}
 .account-card-grid>div{padding:9px;min-height:54px}
 .account-card-facts{gap:11px}
 .profile-account-links{grid-template-columns:1fr}
}

.license-gate{position:fixed;inset:0;z-index:10001;display:grid;place-items:center;overflow:auto;padding:20px;background:linear-gradient(145deg,#21153e,#50318f 65%,#7955c8)}
.license-gate[hidden]{display:none}.license-card{width:min(100%,520px);max-height:calc(100dvh - 40px);overflow:auto;background:#fff;border-radius:24px;padding:26px;box-shadow:0 24px 90px #120a2b66}
.license-mark{width:58px;height:58px;border-radius:18px;background:#eee7fa;color:#563695;display:grid;place-items:center;font-size:32px;font-weight:950;margin-bottom:18px}
.license-card h1{font-size:32px;margin-bottom:12px}.license-intro{font-size:17px;line-height:1.5;color:var(--muted);margin:0 0 18px}
.license-submit{width:100%;min-height:54px}.license-message{min-height:24px;font-size:16px;font-weight:800;color:var(--purple);line-height:1.4}
.license-message.error{color:#b93838}.license-footnote{font-size:14px;line-height:1.45;color:var(--muted);border-top:1px solid var(--line);padding-top:14px}
.license-card .field{margin:12px 0}.license-card .field input{font-size:18px}
