/* Final scoped finance UI: deposit buckets + fixed/shared utility allocation. */
.mm-fin-avatar{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border-radius:12px;object-fit:cover;border:1px solid #dce6f2;background:linear-gradient(145deg,#e8f1ff,#e1f8ef);color:#2467ce;font-size:11px;font-weight:900}.mm-fin-avatar-fallback{line-height:38px;text-align:center}

/* Member summary: exactly three compact columns across, two rows. */
.mm-fin-member-summary{padding:14px 15px!important}.mm-fin-member-head{gap:11px!important}.mm-fin-member-head>div:nth-child(2){min-width:0;flex:1}.mm-fin-summary-avatar{width:48px;height:48px;flex-basis:48px;border-radius:15px}.mm-fin-member-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px 8px!important;margin-top:13px!important;padding-top:12px!important}.mm-fin-member-grid>div{min-width:0}.mm-fin-member-grid span{font-size:9px!important;line-height:1.1!important;font-weight:650!important;color:#78869b!important;white-space:normal}.mm-fin-member-grid b{margin-top:3px;font-size:15px!important;line-height:1.05!important;letter-spacing:-.025em;color:#172a49;white-space:nowrap}

/* Deposit overview/history: Bazar / Utility / Transactions. */
.mm-deposit-sheet-summary{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important}.mm-deposit-sheet-summary>div{min-width:0;padding:10px 9px!important;text-align:center}.mm-deposit-sheet-summary span{font-size:8px!important;line-height:1.15!important}.mm-deposit-sheet-summary strong{font-size:16px!important;white-space:nowrap}.mm-deposit-purpose-broom{--mm-deposit-purpose-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m14 3 3 3-6.5 6.5M8.5 11.5l4 4M5 13l6 6M4 20h8l2-4-6-6-4 10Z' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}.mm-deposit-purpose-drop{--mm-deposit-purpose-icon:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3S6 10 6 14a6 6 0 0 0 12 0c0-4-6-11-6-11Z' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'/%3E%3C/svg%3E")}.mm-deposit-note-bua{background:#f4efff;color:#7651b5}.mm-deposit-note-water{background:#eaf7ff;color:#2575b8}.mm-deposit-purpose-option[data-purpose="Bua"]>i{background:#f3efff;color:#7751b7}.mm-deposit-purpose-option[data-purpose="Water"]>i{background:#e9f7ff;color:#2477ba}.mm-deposit-purpose-option[data-purpose="Other"]>i{background:#f1f3f7;color:#68788f}

/* Utility page. */
.mm-fin-utility-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin:2px 0 17px}.mm-fin-utility-head h2{margin:3px 0 4px;font-size:28px;letter-spacing:-.035em}.mm-fin-utility-head p{margin:0;max-width:620px;color:#75849a;font-size:12px;line-height:1.5}.mm-fin-add-bill{min-height:48px;white-space:nowrap;border-radius:16px!important;padding-inline:20px!important}.mm-fin-utility-section{margin-top:15px;padding:15px;border:1px solid #d9e4f0;border-radius:23px;background:rgba(255,255,255,.8);box-shadow:0 10px 30px rgba(29,59,108,.07)}.mm-fin-utility-section>header{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:11px;padding:0 2px}.mm-fin-utility-section>header span{display:block;color:#7c8ba1;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.08em}.mm-fin-utility-section>header h3{margin:3px 0 0;font-size:18px;letter-spacing:-.025em}.mm-fin-utility-section>header>small{color:#8d99aa;font-size:9px}.mm-fin-utility-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.mm-fin-utility-category{width:100%;min-width:0;min-height:84px;display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:9px;padding:11px;border:1px solid #dce6f2;border-radius:17px;background:linear-gradient(145deg,#fff,#f8fbff);color:#183052;text-align:left;box-shadow:0 5px 15px rgba(28,59,105,.045);cursor:pointer}.mm-fin-utility-category:active{transform:scale(.992)}.mm-fin-utility-category.is-fixed{background:linear-gradient(145deg,#fff,#fff9f4)}.mm-fin-utility-category.is-shared{background:linear-gradient(145deg,#fff,#f4fbf8)}.mm-fin-type-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:13px;background:#edf4ff;font-size:19px}.mm-fin-utility-category.is-fixed .mm-fin-type-icon{background:#fff1e7}.mm-fin-utility-category.is-shared .mm-fin-type-icon{background:#eaf8f3}.mm-fin-type-copy{min-width:0}.mm-fin-type-copy b,.mm-fin-type-copy small,.mm-fin-type-money strong,.mm-fin-type-money small{display:block}.mm-fin-type-copy b{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mm-fin-type-copy small{margin-top:3px;color:#8492a5;font-size:8.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mm-fin-type-money{text-align:right;min-width:0}.mm-fin-type-money strong{font-size:15px;letter-spacing:-.03em;white-space:nowrap}.mm-fin-type-money small{margin-top:4px;color:#2a70d8;font-size:7.5px;font-weight:800;white-space:nowrap}

/* Utility/detail bottom sheets. */
.mm-fin-layer,.mm-fin-choice-layer{position:fixed;inset:0;z-index:15000;display:flex;align-items:flex-end;justify-content:center;padding:18px;background:rgba(10,25,47,.54);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}.mm-fin-choice-layer{z-index:17000}.mm-fin-sheet,.mm-fin-choice-sheet{width:min(620px,100%);max-height:min(86dvh,790px);overflow:auto;padding:9px 18px calc(18px + env(safe-area-inset-bottom));border:1px solid rgba(215,226,240,.97);border-radius:28px;background:linear-gradient(180deg,#fff,#f7faff);box-shadow:0 30px 90px rgba(10,31,61,.28)}.mm-fin-choice-sheet{width:min(520px,100%);max-height:min(75dvh,650px)}.mm-fin-sheet-handle{width:42px;height:5px;margin:1px auto 11px;border-radius:999px;background:#d4deeb}.mm-fin-sheet-head,.mm-fin-choice-sheet>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:3px 2px 13px}.mm-fin-sheet-title{display:flex;align-items:center;gap:10px;min-width:0}.mm-fin-sheet-title small,.mm-fin-sheet-title h3,.mm-fin-choice-sheet header small,.mm-fin-choice-sheet header h3{display:block;margin:0}.mm-fin-sheet-title small,.mm-fin-choice-sheet header small{color:#8290a4;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.07em}.mm-fin-sheet-title h3,.mm-fin-choice-sheet header h3{margin-top:2px;font-size:21px;letter-spacing:-.03em}.mm-fin-close{width:38px;height:38px;flex:0 0 38px;border:1px solid #dce5ef;border-radius:50%;background:#f1f5fa;color:#64758b;font-size:23px;line-height:1;display:grid;place-items:center}.mm-fin-detail-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-bottom:10px}.mm-fin-detail-stats>div{min-width:0;padding:10px 8px;border:1px solid #dae6f0;border-radius:15px;background:linear-gradient(145deg,#eef4ff,#eaf8f4);text-align:center}.mm-fin-detail-stats span,.mm-fin-detail-stats b{display:block}.mm-fin-detail-stats span{color:#78899f;font-size:7.5px;font-weight:750}.mm-fin-detail-stats b{margin-top:3px;font-size:15px;letter-spacing:-.025em;white-space:nowrap}.mm-fin-allocation-list{display:grid;gap:7px}.mm-fin-allocation-row{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:58px;padding:9px 11px;border:1px solid #e0e8f2;border-radius:15px;background:#fff}.mm-fin-allocation-row>div{min-width:0}.mm-fin-allocation-row b,.mm-fin-allocation-row small{display:block}.mm-fin-allocation-row b{font-size:12px}.mm-fin-allocation-row small{margin-top:2px;color:#8291a5;font-size:8.5px}.mm-fin-allocation-row>strong{font-size:14px;color:#173d8f;white-space:nowrap}.mm-fin-source-head{display:flex;align-items:center;justify-content:space-between;margin:15px 1px 7px}.mm-fin-source-head span{color:#71829a;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.07em}.mm-fin-source-head b{min-width:24px;padding:4px 7px;border-radius:99px;background:#e9f1ff;color:#2665c9;font-size:9px;text-align:center}.mm-fin-source-list{display:grid;gap:7px}.mm-fin-source-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 11px;border:1px solid #e0e8f2;border-radius:14px;background:#fff}.mm-fin-source-row>div:first-child{min-width:0}.mm-fin-source-row span,.mm-fin-source-row b,.mm-fin-source-row small{display:block}.mm-fin-source-row span{font-size:8.5px;color:#7b899d}.mm-fin-source-row b{margin-top:2px;font-size:11px}.mm-fin-source-row small{margin-top:2px;color:#8a97a8;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mm-fin-source-row>div:last-child{display:flex;gap:5px;flex:0 0 auto}.mm-fin-source-row button{border:0;border-radius:9px;padding:5px 8px;background:#edf3fa;color:#49617e;font-size:8px;font-weight:850}.mm-fin-source-row button.danger{background:#fff0f1;color:#ce4052}.mm-fin-sheet-add{width:100%;min-height:46px;margin-top:12px;border-radius:15px!important}.mm-fin-empty{padding:22px;border:1px dashed #ccd9e8;border-radius:16px;text-align:center;color:#7b8aa0;background:rgba(255,255,255,.72);font-size:10px}.mm-fin-empty.compact{padding:13px}

/* Type + Fixed/Shared chooser. */
.mm-fin-choice-list{display:grid;gap:8px}.mm-fin-choice-row{width:100%;min-height:66px;display:grid;grid-template-columns:44px minmax(0,1fr) 20px;align-items:center;gap:10px;padding:10px 12px;border:1px solid #dfe7f1;border-radius:17px;background:#fff;color:#203a5d;text-align:left}.mm-fin-choice-row.selected{border-color:#82abe8;background:#f2f7ff}.mm-fin-choice-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:13px;background:#edf4ff;color:#276bd0;font-size:18px;font-style:normal}.mm-fin-choice-icon.fixed{background:#fff0e7;color:#b86528}.mm-fin-choice-icon.shared{background:#eaf9f4;color:#168369}.mm-fin-choice-row>span:nth-child(2){min-width:0}.mm-fin-choice-row b,.mm-fin-choice-row small{display:block}.mm-fin-choice-row b{font-size:13px}.mm-fin-choice-row small{margin-top:3px;color:#8492a5;font-size:9px;line-height:1.35}.mm-fin-choice-row>i{font-style:normal;color:#2b70d8;font-size:17px}.mm-fin-utility-editor .entry-form-icon{font-size:22px!important}.mm-fin-utility-editor .mm-fin-mode-button .entry-type-icon{background:#edf4ff!important}.mm-fin-utility-editor .utility-member-option .mm-fin-avatar{width:30px!important;height:30px!important;flex-basis:30px!important;border-radius:10px!important;font-size:9px!important;line-height:30px!important}

html[data-theme="dark"] .mm-fin-member-grid span{color:#91a4b8!important}html[data-theme="dark"] .mm-fin-member-grid b{color:#edf5fd}.mm-fin-utility-section html[data-theme="dark"]{color:inherit}
html[data-theme="dark"] .mm-fin-utility-section{border-color:#294359;background:rgba(13,31,48,.88);box-shadow:none}html[data-theme="dark"] .mm-fin-utility-section>header h3{color:#eef5fc}html[data-theme="dark"] .mm-fin-utility-section>header span,html[data-theme="dark"] .mm-fin-utility-section>header>small{color:#8ea3b7}html[data-theme="dark"] .mm-fin-utility-category{border-color:#2d465d;background:linear-gradient(145deg,#12273a,#0f2132);color:#eef5fc;box-shadow:none}html[data-theme="dark"] .mm-fin-utility-category.is-fixed{background:linear-gradient(145deg,#32271f,#1d242d)}html[data-theme="dark"] .mm-fin-utility-category.is-shared{background:linear-gradient(145deg,#12302e,#102530)}html[data-theme="dark"] .mm-fin-type-copy small{color:#91a4b8}html[data-theme="dark"] .mm-fin-layer,html[data-theme="dark"] .mm-fin-choice-layer{background:rgba(0,8,16,.72)}html[data-theme="dark"] .mm-fin-sheet,html[data-theme="dark"] .mm-fin-choice-sheet{border-color:#29445c;background:linear-gradient(180deg,#102337,#0b1928);color:#eef5fc}html[data-theme="dark"] .mm-fin-close{border-color:#304b63;background:#142a3f;color:#d8e4ef}html[data-theme="dark"] .mm-fin-detail-stats>div{border-color:#2c465d;background:linear-gradient(145deg,#17344d,#163d3a)}html[data-theme="dark"] .mm-fin-allocation-row,html[data-theme="dark"] .mm-fin-source-row,html[data-theme="dark"] .mm-fin-choice-row{border-color:#29445c;background:#102337;color:#edf5fd}html[data-theme="dark"] .mm-fin-allocation-row>strong{color:#86b6ff}html[data-theme="dark"] .mm-fin-empty{border-color:#36526a;background:#102337;color:#95a9bc}

@media(max-width:600px){
  .mm-fin-utility-head{align-items:center;margin:0 0 13px}.mm-fin-utility-head h2{font-size:23px}.mm-fin-utility-head p{display:none}.mm-fin-add-bill{min-height:44px;padding:9px 13px!important;font-size:11px}
  .mm-fin-utility-section{margin-top:11px;padding:11px;border-radius:19px}.mm-fin-utility-section>header{margin-bottom:8px}.mm-fin-utility-section>header h3{font-size:15px}.mm-fin-utility-section>header>small{font-size:7.5px}
  .mm-fin-utility-grid{gap:7px}.mm-fin-utility-category{min-height:72px;grid-template-columns:34px minmax(0,1fr) auto;gap:7px;padding:8px;border-radius:14px}.mm-fin-type-icon{width:34px;height:34px;border-radius:11px;font-size:16px}.mm-fin-type-copy b{font-size:11px}.mm-fin-type-copy small{font-size:7.5px}.mm-fin-type-money strong{font-size:12.5px}.mm-fin-type-money small{font-size:6.8px}
  .mm-fin-layer,.mm-fin-choice-layer{padding:0}.mm-fin-sheet,.mm-fin-choice-sheet{width:100%;max-width:none;border-radius:28px 28px 0 0;padding:9px 14px calc(16px + env(safe-area-inset-bottom))}.mm-fin-sheet{max-height:88dvh}.mm-fin-detail-stats>div{padding:9px 5px}.mm-fin-detail-stats span{font-size:7px}.mm-fin-detail-stats b{font-size:13.5px}.mm-fin-choice-sheet{max-height:78dvh}
  .mm-deposit-sheet-summary strong{font-size:14px!important}.mm-deposit-sheet-summary span{font-size:7.3px!important}.mm-deposit-page-head p{display:none!important}
  .mm-fin-member-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:11px 6px!important}.mm-fin-member-grid span{font-size:8px!important}.mm-fin-member-grid b{font-size:14px!important}.mm-fin-summary-avatar{width:46px;height:46px;flex-basis:46px}
  .mm-dashboard-kpi .label{font-size:8.8px!important}.mm-dashboard-kpi .value{font-size:17.6px!important}
}
@media(max-width:390px){
  .mm-fin-utility-category{grid-template-columns:31px minmax(0,1fr) auto}.mm-fin-type-icon{width:31px;height:31px;font-size:14px}.mm-fin-type-copy b{font-size:10.5px}.mm-fin-type-money strong{font-size:11.5px}
  .mm-fin-member-grid span{font-size:7.4px!important}.mm-fin-member-grid b{font-size:13.2px!important}.mm-deposit-sheet-summary strong{font-size:13px!important}
}
