:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC",sans-serif;color:#23352f;background:#f4f7f5;font-size:14px;--green:#146e54;--muted:#718078;--border:#e0e8e2}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid var(--border);background:white;color:inherit;border-radius:9px;padding:9px 14px}button:hover{background:#edf5ef}button:disabled{cursor:not-allowed;opacity:.45}.primary{background:var(--green);color:white;border-color:var(--green)}.primary:hover{background:#0e5843}.danger{color:#ad443e}.muted,small{color:var(--muted)}small{display:block;font-size:12px;line-height:1.7}a{color:var(--green)}h1,h2,h3,p{margin:0}h1{font-size:26px}h2{font-size:21px}h3{font-size:16px}p{line-height:1.8}.shell{display:grid;grid-template-columns:235px minmax(0,1fr);min-height:100vh}.sidebar{background:#fff;border-right:1px solid var(--border);padding:28px 18px;display:flex;flex-direction:column;gap:24px}.brand{display:flex;gap:11px;align-items:center;font-weight:700;font-size:19px}.brand-mark{border-radius:13px;background:var(--green);color:white;padding:10px 13px}.member-card{background:#f1f6f2;padding:16px;border-radius:12px}.sidebar nav{display:grid;gap:7px}.sidebar nav button{border:0;text-align:left;background:transparent;padding:13px}.sidebar nav button.active{background:#e8f4ed;color:var(--green);font-weight:600}.sidebar-footer{margin-top:auto;font-size:12px;color:var(--muted);line-height:1.8}.main{padding:30px 36px;min-width:0}.top{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:26px}.eyebrow{letter-spacing:2px;font-size:11px;color:var(--green);font-weight:600;margin-bottom:8px}.actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.sync{font-size:12px;color:var(--muted)}.offline{background:#fff0de;color:#855319;padding:14px;border-radius:10px;margin-bottom:18px}.hero{background:#e6f2ea;padding:26px;border-radius:16px;display:flex;justify-content:space-between;gap:20px;margin-bottom:22px}.hero p{color:#527163;margin-top:7px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:22px}.stat{background:white;border:1px solid var(--border);padding:20px;border-radius:13px}.stat strong{display:block;font-size:34px;margin:8px 0}.card{background:white;border:1px solid var(--border);border-radius:14px;padding:22px;margin-bottom:20px}.card-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px}.grid{display:grid;grid-template-columns:1.4fr 1fr;gap:20px}.row{padding:14px 0;border-bottom:1px solid #edf1ed;display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.row:last-child{border:0}.row p{margin:6px 0;white-space:pre-wrap}.empty{padding:44px 15px;text-align:center;color:var(--muted)}.empty h3{color:#435c4e;margin-bottom:9px}.filters{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px}.filters input{flex:1;min-width:190px}.filters select{max-width:190px}input,select,textarea{border:1px solid #cedbd1;border-radius:8px;background:#fff;padding:10px 12px;color:inherit;min-width:0}input:focus,textarea:focus,select:focus{outline:2px solid #9bbfab;outline-offset:1px}textarea{resize:vertical;min-height:86px;width:100%}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:13px}th{text-align:left;background:#f7f9f7;font-size:12px;color:#64796a;white-space:nowrap}td,th{padding:15px 11px;border-bottom:1px solid #e9efea}tr[data-user]{cursor:pointer}tr[data-user]:hover{background:#f6faf7}.pill{display:inline-block;padding:4px 8px;background:#edf4ef;color:#436d55;border-radius:6px;font-size:11px;white-space:nowrap}.pill.warn{background:#fff0d8;color:#906418}.pill.red{background:#fbe6e3;color:#a84f43}.pill.gray{background:#eef0f0;color:#74817c}.detail-title{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px}.detail-data{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:18px}.detail-data strong{display:block;margin-top:6px}.timeline{border-left:2px solid #dae8df;padding-left:18px;margin-left:5px}.timeline .row{display:block}.timeline .row>strong{display:block;margin-bottom:5px}.prewrap{white-space:pre-wrap;line-height:1.8}.login{max-width:455px;margin:10vh auto;padding:35px;background:white;border:1px solid var(--border);border-radius:18px;box-shadow:0 10px 45px #285c3810}.login h1{margin:20px 0 8px}.login p{color:var(--muted);margin-bottom:25px}.form{display:grid;gap:15px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.field{display:grid;gap:7px;font-size:13px}.field.full{grid-column:1/-1}.checkbox{display:flex;align-items:center;gap:7px}.form-footer{display:flex;justify-content:flex-end;gap:8px;margin-top:8px}.error{color:#b24338;white-space:pre-wrap;font-size:13px;min-height:18px}.hint{background:#f3f7f3;padding:12px;border-radius:9px;font-size:12px;color:#637d6b;line-height:1.8}dialog{width:min(760px,94vw);max-height:90vh;border:1px solid var(--border);border-radius:16px;padding:24px;box-shadow:0 25px 100px #22382c30}dialog::backdrop{background:#1a322766}.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.modal-head button{border:0;font-size:23px;padding:2px 8px}#toast{display:none;position:fixed;bottom:28px;left:50%;transform:translateX(-50%);max-width:80vw;background:#233d30;color:white;border-radius:10px;padding:14px 20px;z-index:5;white-space:pre-wrap}#toast.show{display:block}.heading-note{font-size:12px;color:var(--muted);margin-top:8px}.money{font-variant-numeric:tabular-nums}.handover-note{background:#fff8e9;border-left:3px solid #d6ad5f;padding:16px;border-radius:8px;margin-bottom:16px}.account{display:flex;align-items:center;gap:14px;padding:16px;background:#f5f8f5;border-radius:10px;margin-bottom:12px}.account strong{flex:1}.batch-box{padding:12px;background:#eef5f0;border-radius:9px;margin-bottom:15px;display:flex;gap:10px;align-items:center}.check-user{width:16px;height:16px}.brand small{letter-spacing:1px;font-size:10px}.selected-count{font-weight:600}.readonly{border-left:3px solid #b3c8b9;padding-left:10px;color:var(--muted);font-size:12px;margin-bottom:20px}@media(max-width:1000px){.shell{grid-template-columns:190px 1fr}.main{padding:24px}.stats{grid-template-columns:repeat(2,1fr)}.grid{grid-template-columns:1fr}.detail-data{grid-template-columns:repeat(2,1fr)}}@media(max-width:700px){.shell{display:block}.sidebar{padding:14px;border-right:0;border-bottom:1px solid var(--border);gap:12px}.sidebar nav{display:flex;overflow:auto}.sidebar nav button{white-space:nowrap;padding:10px}.member-card,.sidebar-footer{display:none}.main{padding:18px}.top,.hero{align-items:flex-start;flex-direction:column}.stats{gap:10px}.stat{padding:15px}.stat strong{font-size:28px}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.detail-data{grid-template-columns:1fr 1fr}.detail-title{flex-direction:column;align-items:flex-start}.login{margin:7vh 18px}.card{padding:16px}h1{font-size:23px}}
:root .grid>div{min-width:0}

/* Source-sheet profiles keep the account ID visible while scrolling. */
.profile-scroll{max-width:100%;max-height:70vh;overflow:auto;isolation:isolate;margin-top:12px}
.profile-table{min-width:2480px;white-space:nowrap}.profile-table th{position:sticky;top:0;z-index:2}
.profile-table .profile-id-col{position:sticky;left:0;z-index:1;background:#fff;min-width:130px;box-shadow:2px 0 3px #23352f0b}
.profile-table th.profile-id-col{z-index:3;background:#f7f9f7}.profile-table .select-col{position:sticky;left:0;z-index:2;background:#fff;width:48px;min-width:48px}
.profile-table th.select-col{z-index:4;background:#f7f9f7}.profile-table.with-selection .profile-id-col{left:48px}.profile-table .profile-id-col button{border:0;background:transparent;padding:0;color:var(--green);font-weight:600}
.profile-table tr:hover td{background:#f6faf7}.profile-details strong{overflow-wrap:anywhere;font-size:14px}.profile-section-title{margin:8px 0 14px}.legacy-details{margin:18px 0;padding:14px;background:#f7f9f7;border-radius:9px}.legacy-details summary{cursor:pointer;font-size:13px;color:var(--muted)}.legacy-details[open] summary{margin-bottom:14px}
