/* Member-first deposit ledger: compact cards, purpose picker, history sheet. */
.mm-deposit-page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:2px 0 18px}.mm-deposit-page-head h2{margin:3px 0 4px;font-size:28px;letter-spacing:-.035em}.mm-deposit-page-head p{margin:0;max-width:620px;color:#73829a;font-size:13px;line-height:1.55}.mm-deposit-add{min-height:48px;white-space:nowrap;padding-inline:20px!important;border-radius:16px!important}.mm-deposit-add span{font-size:19px;margin-right:4px}.mm-deposit-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:15px}.mm-deposit-overview>div{min-width:0;padding:13px 15px;border:1px solid #dbe5f1;border-radius:17px;background:linear-gradient(145deg,rgba(255,255,255,.98),rgba(247,250,255,.98));box-shadow:0 9px 24px rgba(30,60,108,.07)}.mm-deposit-overview span,.mm-deposit-overview strong{display:block}.mm-deposit-overview span{font-size:10px;font-weight:800;letter-spacing:.035em;text-transform:uppercase;color:#8593a7}.mm-deposit-overview strong{margin-top:3px;font-size:20px;line-height:1.05;color:#152645}.mm-deposit-member-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.mm-deposit-member-card{width:100%;min-width:0;min-height:112px;padding:16px;border:1px solid #d9e4f0;border-radius:22px;background:linear-gradient(145deg,#fff,#f9fbff);box-shadow:0 10px 28px rgba(29,59,108,.08);color:#172a49;display:flex;align-items:center;justify-content:space-between;gap:14px;text-align:left;cursor:pointer;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}.mm-deposit-member-card:hover{transform:translateY(-1px);box-shadow:0 14px 32px rgba(29,59,108,.11);border-color:#cbdbee}.mm-deposit-member-card:active{transform:scale(.992)}.mm-deposit-member-main{display:flex;align-items:center;gap:12px;min-width:0}.mm-deposit-avatar{width:52px;height:52px;flex:0 0 52px;border-radius:17px;object-fit:cover;border:1px solid rgba(199,216,237,.85);box-shadow:0 7px 18px rgba(27,67,130,.08)}.mm-deposit-avatar-fallback{display:grid;place-items:center;background:linear-gradient(145deg,#dceaff,#dcf7ee);color:#2266ca;font-weight:900;font-size:16px}.mm-deposit-member-copy{min-width:0}.mm-deposit-member-copy strong,.mm-deposit-member-copy small{display:block}.mm-deposit-member-copy strong{font-size:18px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mm-deposit-member-copy small{margin-top:5px;color:#7c8ba1;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mm-deposit-member-total{text-align:right;flex:0 0 auto}.mm-deposit-member-total small,.mm-deposit-member-total strong,.mm-deposit-tap{display:block}.mm-deposit-member-total small{font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:#93a0b2}.mm-deposit-member-total strong{margin-top:3px;font-size:22px;letter-spacing:-.035em;color:#12345e}.mm-deposit-tap{margin-top:7px;color:#2d72df;font-size:10px;font-weight:800}.mm-deposit-tap i{font-style:normal;font-size:15px;vertical-align:-1px}.mm-deposit-empty{grid-column:1/-1;padding:28px;border:1px dashed #ccd9e8;border-radius:20px;text-align:center;color:#7b8aa0;background:rgba(255,255,255,.72)}

.mm-deposit-layer,.mm-deposit-purpose-layer,.mm-deposit-confirm-layer{position:fixed;inset:0;z-index:13000;background:rgba(11,28,51,.55);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);display:flex;align-items:flex-end;justify-content:center;padding:18px}.mm-deposit-sheet,.mm-deposit-purpose-sheet{width:min(620px,100%);max-height:min(82dvh,760px);overflow:auto;background:linear-gradient(180deg,#fff,#f7faff);border:1px solid rgba(215,226,240,.96);border-radius:28px;box-shadow:0 30px 90px rgba(10,31,61,.28);padding:10px 18px calc(18px + env(safe-area-inset-bottom))}.mm-deposit-sheet-handle{width:42px;height:5px;border-radius:999px;background:#d6dfeb;margin:1px auto 11px}.mm-deposit-sheet-head,.mm-deposit-purpose-sheet header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:3px 2px 13px}.mm-deposit-sheet-person{display:flex;align-items:center;gap:11px;min-width:0}.mm-deposit-sheet-person small,.mm-deposit-sheet-person h3,.mm-deposit-purpose-sheet header small,.mm-deposit-purpose-sheet header h3{display:block;margin:0}.mm-deposit-sheet-person small,.mm-deposit-purpose-sheet header small{color:#8290a4;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.mm-deposit-sheet-person h3,.mm-deposit-purpose-sheet header h3{margin-top:2px;font-size:22px;letter-spacing:-.03em;color:#172a49}.mm-deposit-close{width:38px;height:38px;flex:0 0 38px;border:1px solid #dce5ef;border-radius:50%;background:#f1f5fa;color:#64758b;font-size:24px;line-height:1;display:grid;place-items:center}.mm-deposit-sheet-summary{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-bottom:10px}.mm-deposit-sheet-summary>div{padding:12px 14px;border-radius:16px;background:linear-gradient(145deg,#eef4ff,#eaf8f4);border:1px solid #dae6f0}.mm-deposit-sheet-summary span,.mm-deposit-sheet-summary strong{display:block}.mm-deposit-sheet-summary span{font-size:10px;font-weight:750;color:#71829a}.mm-deposit-sheet-summary strong{margin-top:2px;font-size:19px;color:#18365e}.mm-deposit-entry-list{display:grid;gap:8px}.mm-deposit-entry-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 13px;border:1px solid #e0e8f2;border-radius:17px;background:#fff;box-shadow:0 5px 15px rgba(25,56,104,.045)}.mm-deposit-entry-date{display:flex;align-items:center;gap:10px;min-width:0}.mm-deposit-entry-calendar{width:38px;height:38px;flex:0 0 38px;border-radius:12px;background:#edf4ff;color:#2c6fd6;position:relative}.mm-deposit-entry-calendar::after{content:"";position:absolute;inset:9px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 3v3M18 3v3M4 8h16M5.5 5h13A1.5 1.5 0 0 1 20 6.5v13A1.5 1.5 0 0 1 18.5 21h-13A1.5 1.5 0 0 1 4 19.5v-13A1.5 1.5 0 0 1 5.5 5Z' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 3v3M18 3v3M4 8h16M5.5 5h13A1.5 1.5 0 0 1 20 6.5v13A1.5 1.5 0 0 1 18.5 21h-13A1.5 1.5 0 0 1 4 19.5v-13A1.5 1.5 0 0 1 5.5 5Z' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat}.mm-deposit-entry-date>div{min-width:0}.mm-deposit-entry-date strong{display:block;color:#203b61;font-size:13px;line-height:1.2}.mm-deposit-entry-side{text-align:right;flex:0 0 auto}.mm-deposit-entry-amount{display:block;font-size:18px;color:#132e55;letter-spacing:-.025em}.mm-deposit-entry-actions{display:flex;justify-content:flex-end;gap:5px;margin-top:6px}.mm-deposit-entry-actions button{border:0;border-radius:9px;padding:5px 8px;background:#edf3fa;color:#49617e;font-size:9px;font-weight:800}.mm-deposit-entry-actions button.danger{background:#fff0f1;color:#ce4052}.mm-deposit-note{display:inline-flex;align-items:center;gap:4px;max-width:175px;margin-top:5px;padding:4px 7px;border-radius:999px;font-size:9px;font-weight:800;line-height:1;color:#65748a;background:#f0f4f8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.mm-deposit-note-bazar{background:#edf4ff;color:#2868cb}.mm-deposit-note-gas{background:#fff2e9;color:#be661f}.mm-deposit-note-current{background:#fff7db;color:#97711c}.mm-deposit-note-wifi{background:#edfaf6;color:#148365}.mm-deposit-note-other{background:#f4efff;color:#7750b8}.mm-deposit-purpose-icon{display:inline-block;width:18px;height:18px;flex:0 0 18px;background:currentColor;-webkit-mask:var(--mm-deposit-purpose-icon) center/contain no-repeat;mask:var(--mm-deposit-purpose-icon) center/contain no-repeat}.mm-deposit-note .mm-deposit-purpose-icon{width:11px;height:11px;flex-basis:11px}.mm-deposit-purpose-basket{--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='M4 9h16l-1.5 10h-13L4 9ZM8 9l2-5m6 5-2-5M8 13h8' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}.mm-deposit-purpose-flame{--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 21c4 0 7-2.8 7-6.5 0-3-1.8-5.5-5-8.5.1 2.5-.9 4.1-2.4 5.2.1-3.7-1.8-6-4.1-8.2.2 4.1-2.5 6.6-2.5 10.8C5 18 8 21 12 21Z' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'/%3E%3C/svg%3E")}.mm-deposit-purpose-bolt{--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='m13 2-7 11h5l-1 9 8-13h-5V2Z' fill='none' stroke='black' stroke-width='1.7' stroke-linejoin='round'/%3E%3C/svg%3E")}.mm-deposit-purpose-wifi{--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='M4 9.5a12 12 0 0 1 16 0M7.5 13a7 7 0 0 1 9 0M10.5 16.2a2.5 2.5 0 0 1 3 0M12 20h.01' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E")}.mm-deposit-purpose-note{--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='M5 4h14v16H5zM8 8h8M8 12h8M8 16h5' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}.mm-deposit-sheet-add{width:100%;min-height:47px;margin-top:12px;border-radius:15px!important}.mm-deposit-empty-sheet{margin-top:2px}

.mm-deposit-purpose-layer{z-index:14000}.mm-deposit-purpose-sheet{width:min(520px,100%)}.mm-deposit-purpose-grid{display:grid;gap:8px}.mm-deposit-purpose-option{width:100%;min-height:62px;display:grid;grid-template-columns:42px minmax(0,1fr) 22px;align-items:center;gap:10px;padding:9px 12px;border:1px solid #dfe7f1;border-radius:17px;background:#fff;text-align:left;color:#243b5d}.mm-deposit-purpose-option>i{width:42px;height:42px;border-radius:13px;background:#eaf2ff;color:#2c6fd6;display:grid;place-items:center;padding:10px;box-sizing:border-box;-webkit-mask:none;mask:none;position:relative}.mm-deposit-purpose-option>i::after{content:"";position:absolute;inset:10px;background:currentColor;-webkit-mask:var(--mm-deposit-purpose-icon) center/contain no-repeat;mask:var(--mm-deposit-purpose-icon) center/contain no-repeat}.mm-deposit-purpose-option>span strong,.mm-deposit-purpose-option>span small{display:block}.mm-deposit-purpose-option>span strong{font-size:14px}.mm-deposit-purpose-option>span small{margin-top:2px;color:#8391a4;font-size:10px}.mm-deposit-purpose-option>b{opacity:0;color:#2572db;font-size:17px}.mm-deposit-purpose-option.selected{border-color:#86ace6;background:#f2f7ff;box-shadow:inset 0 0 0 1px rgba(60,119,209,.12)}.mm-deposit-purpose-option.selected>b{opacity:1}.mm-deposit-purpose-option[data-purpose="Gas"]>i{background:#fff2e8;color:#c26822}.mm-deposit-purpose-option[data-purpose="Current"]>i{background:#fff7dc;color:#a17816}.mm-deposit-purpose-option[data-purpose="WiFi"]>i{background:#eaf9f4;color:#138367}.mm-deposit-purpose-option[data-purpose="Other"]>i{background:#f2edff;color:#7851ba}

.mm-deposit-editor-wrap{z-index:13500!important}.mm-deposit-editor-wrap .mm-deposit-editor{width:min(560px,100%)!important;padding:20px!important;border-radius:27px!important;background:linear-gradient(180deg,#fff,#f7faff)!important}.mm-deposit-editor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:15px}.mm-deposit-editor-head h2{margin:3px 0 3px;font-size:25px;letter-spacing:-.035em}.mm-deposit-editor-head p{margin:0;color:#7a899e;font-size:11px}.mm-deposit-editor-form{display:grid;gap:12px}.mm-deposit-field-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.mm-deposit-field{display:block}.mm-deposit-field>span{display:block;margin:0 0 6px;color:#73839a;font-size:11px;font-weight:800}.mm-deposit-field input,.mm-deposit-field select{width:100%;height:48px;border:1px solid #d9e3ef;border-radius:14px;background:#fff;color:#1a3152;padding:10px 12px;outline:none}.mm-deposit-field input:focus,.mm-deposit-field select:focus{border-color:#6f9bdd;box-shadow:0 0 0 3px rgba(61,116,205,.10)}.mm-deposit-amount-input{height:58px;display:flex;align-items:center;border:1px solid #d4e0ed;border-radius:17px;background:#fff;overflow:hidden;box-shadow:0 5px 16px rgba(28,62,112,.05)}.mm-deposit-amount-input>b{padding-left:15px;font-size:23px;color:#3671c8}.mm-deposit-amount-input input{height:58px!important;border:0!important;box-shadow:none!important;font-size:23px;font-weight:850;letter-spacing:-.02em}.mm-deposit-note-picker{width:100%;min-height:58px;padding:8px 12px;border:1px solid #d7e2ee;border-radius:16px;background:#fff;color:#1f385b;display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:10px;text-align:left}.mm-deposit-note-picker>i{width:38px;height:38px;border-radius:12px;background:#edf4ff;color:#2c6fd6;-webkit-mask:none;mask:none;position:relative}.mm-deposit-note-picker>i::after{content:"";position:absolute;inset:10px;background:currentColor;-webkit-mask:var(--mm-deposit-purpose-icon) center/contain no-repeat;mask:var(--mm-deposit-purpose-icon) center/contain no-repeat}.mm-deposit-note-picker>span small,.mm-deposit-note-picker>span strong{display:block}.mm-deposit-note-picker>span small{color:#8b98aa;font-size:9px}.mm-deposit-note-picker>span strong{margin-top:2px;font-size:13px}.mm-deposit-note-picker>b{font-size:22px;color:#7d8ba0}.mm-deposit-editor-actions{display:grid;grid-template-columns:1fr 1.15fr;gap:9px;margin-top:4px}.mm-deposit-editor-actions button{min-height:48px;border-radius:15px!important}.mm-deposit-other-wrap.hidden{display:none!important}

.mm-deposit-confirm-layer{z-index:15000;align-items:center}.mm-deposit-confirm{width:min(360px,100%);padding:23px 20px 19px;border:1px solid #e0e7ef;border-radius:25px;background:#fff;text-align:center;box-shadow:0 28px 80px rgba(13,31,56,.30)}.mm-deposit-confirm-icon{width:58px;height:58px;margin:0 auto 12px;border-radius:18px;background:#fff0f1;color:#d24959;display:block;position:relative}.mm-deposit-confirm-icon::after{content:"";position:absolute;inset:15px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 7h16M9 7V4h6v3m-8 0 1 13h8l1-13M10 11v5m4-5v5' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 7h16M9 7V4h6v3m-8 0 1 13h8l1-13M10 11v5m4-5v5' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}.mm-deposit-confirm h3{margin:0;font-size:20px;color:#223653}.mm-deposit-confirm p{margin:8px 0 17px;color:#78889d;font-size:11px;line-height:1.5}.mm-deposit-confirm>div{display:grid;grid-template-columns:1fr 1fr;gap:8px}.mm-deposit-confirm .btn{min-height:45px;border-radius:14px!important}

html[data-theme="dark"] .mm-deposit-page-head p{color:#97aabe}html[data-theme="dark"] .mm-deposit-overview>div,html[data-theme="dark"] .mm-deposit-member-card,html[data-theme="dark"] .mm-deposit-entry-row,html[data-theme="dark"] .mm-deposit-purpose-option,html[data-theme="dark"] .mm-deposit-field input,html[data-theme="dark"] .mm-deposit-field select,html[data-theme="dark"] .mm-deposit-amount-input,html[data-theme="dark"] .mm-deposit-note-picker{background:#102439!important;border-color:#29445d!important;color:#edf5fd!important}html[data-theme="dark"] .mm-deposit-member-copy strong,html[data-theme="dark"] .mm-deposit-member-total strong,html[data-theme="dark"] .mm-deposit-overview strong,html[data-theme="dark"] .mm-deposit-entry-date strong,html[data-theme="dark"] .mm-deposit-entry-amount,html[data-theme="dark"] .mm-deposit-sheet-person h3,html[data-theme="dark"] .mm-deposit-purpose-sheet header h3,html[data-theme="dark"] .mm-deposit-editor-head h2{color:#eff6fd!important}html[data-theme="dark"] .mm-deposit-sheet,html[data-theme="dark"] .mm-deposit-purpose-sheet,html[data-theme="dark"] .mm-deposit-editor-wrap .mm-deposit-editor,html[data-theme="dark"] .mm-deposit-confirm{background:linear-gradient(180deg,#10253a,#0b1b2b)!important;border-color:#29455e!important;color:#edf5fd!important}html[data-theme="dark"] .mm-deposit-sheet-summary>div{background:#153047;border-color:#2d4b63}html[data-theme="dark"] .mm-deposit-sheet-summary strong{color:#eef6fd}html[data-theme="dark"] .mm-deposit-close{background:#153047;border-color:#315068;color:#c5d4e3}html[data-theme="dark"] .mm-deposit-confirm h3{color:#f1f6fb}html[data-theme="dark"] .mm-deposit-note{filter:saturate(.85) brightness(.9)}

@media(max-width:900px){.mm-deposit-member-grid{grid-template-columns:1fr}.mm-deposit-page-head h2{font-size:25px}.mm-deposit-member-card{min-height:102px}.mm-deposit-layer,.mm-deposit-purpose-layer{padding:12px 12px max(10px,env(safe-area-inset-bottom))}.mm-deposit-sheet,.mm-deposit-purpose-sheet{max-height:86dvh}}
@media(max-width:600px){.mm-deposit-page-head{align-items:center;margin-top:0}.mm-deposit-page-head p{display:none}.mm-deposit-page-head h2{font-size:22px}.mm-deposit-add{min-height:43px;padding:9px 13px!important;font-size:12px}.mm-deposit-overview{gap:7px}.mm-deposit-overview>div{padding:10px 9px;border-radius:15px}.mm-deposit-overview span{font-size:8px}.mm-deposit-overview strong{font-size:17px}.mm-deposit-member-grid{gap:9px}.mm-deposit-member-card{min-height:92px;padding:12px;border-radius:19px}.mm-deposit-avatar{width:45px;height:45px;flex-basis:45px;border-radius:15px}.mm-deposit-member-copy strong{font-size:16px}.mm-deposit-member-copy small{font-size:9px}.mm-deposit-member-total strong{font-size:19px}.mm-deposit-member-total small{font-size:8px}.mm-deposit-tap{font-size:9px}.mm-deposit-layer,.mm-deposit-purpose-layer{padding:0;align-items:flex-end}.mm-deposit-sheet,.mm-deposit-purpose-sheet{width:100%;max-height:88dvh;border-radius:28px 28px 0 0;border-bottom:0;padding:9px 14px calc(16px + env(safe-area-inset-bottom))}.mm-deposit-editor-wrap{align-items:flex-end!important;padding:0!important}.mm-deposit-editor-wrap .mm-deposit-editor{width:100%!important;max-height:91dvh!important;border-radius:28px 28px 0 0!important;padding:17px 14px calc(16px + env(safe-area-inset-bottom))!important}.mm-deposit-editor-head h2{font-size:22px}.mm-deposit-field-grid{grid-template-columns:1fr 1fr;gap:8px}.mm-deposit-field input,.mm-deposit-field select{height:46px!important;min-height:46px!important}.mm-deposit-amount-input,.mm-deposit-amount-input input{height:54px!important;min-height:54px!important}.mm-deposit-note-picker{min-height:55px}.mm-deposit-entry-row{padding:10px}.mm-deposit-entry-calendar{width:34px;height:34px;flex-basis:34px}.mm-deposit-entry-date strong{font-size:12px}.mm-deposit-entry-amount{font-size:16px}.mm-deposit-note{max-width:145px}.mm-deposit-confirm-layer{padding:16px}.mm-deposit-confirm{border-radius:23px}}
@media(max-width:380px){.mm-deposit-member-card{gap:8px}.mm-deposit-member-total strong{font-size:17px}.mm-deposit-member-copy small{max-width:130px}.mm-deposit-overview strong{font-size:15.5px}.mm-deposit-field-grid{grid-template-columns:1fr}.mm-deposit-entry-date{gap:7px}.mm-deposit-note{max-width:120px}.mm-deposit-entry-actions button{padding:4px 6px}}
