body.ge-app .custody-page{display:grid;gap:20px;min-width:0}
body.ge-app .custody-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}
body.ge-app .custody-heading>p{max-width:760px;margin:0;color:var(--muted);line-height:1.6}
body.ge-app .custody-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
body.ge-app .custody-stats>div{display:grid;gap:8px;background:var(--white);border:1px solid var(--line);border-radius:14px;padding:16px}
body.ge-app .custody-stats span{color:var(--muted);font-size:13px}body.ge-app .custody-stats strong{font-size:26px}
body.ge-app .custody-filters{display:grid;grid-template-columns:minmax(0,2fr) repeat(2,minmax(0,1fr));gap:14px}
body.ge-app .custody-filters label{display:grid;gap:8px;min-width:0}body.ge-app .custody-filters :is(input,select){width:100%;min-width:0}
body.ge-app .custody-page select,body.ge-app #editor form:has([name=identifier]) select,body.ge-app #editor form:has([name=member_id]) select{background-position:right 18px center!important;padding-right:48px!important;padding-inline-end:48px!important}
body.ge-app .custody-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
body.ge-app .custody-card{display:flex;flex-direction:column;gap:12px;min-width:0;margin:0;padding:20px}
body.ge-app .custody-card>header,body.ge-app .custody-loan-row>header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
body.ge-app .custody-card h2{font-size:18px;line-height:1.4;margin:0;overflow-wrap:anywhere}body.ge-app .custody-card p{margin:4px 0;overflow-wrap:anywhere}
body.ge-app .custody-card header p{color:var(--muted);font-size:13px}body.ge-app .custody-card .badge{white-space:nowrap}
body.ge-app .custody-holder{padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--ge-field)}body.ge-app .custody-holder p{font-size:13px;color:var(--muted)}
body.ge-app .custody-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:auto;padding-top:4px}
body.ge-app .custody-pagination{display:flex;gap:12px;align-items:center;justify-content:flex-end;flex-wrap:wrap}body.ge-app .custody-pagination span{font-size:13px;color:var(--muted)}
body.ge-app .custody-empty{grid-column:1/-1;border:1px dashed var(--line);border-radius:14px;padding:24px;margin:0;color:var(--muted)}
body.ge-app .custody-loan-row{padding:16px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}body.ge-app .custody-loan-row h3{font-size:16px;margin:10px 0}body.ge-app .custody-loan-row p{margin:6px 0;font-size:14px}
body.ge-app [data-custody-error]:empty,body.ge-app [data-history-error]:empty,body.ge-app [data-custody-loan-error]:empty{display:none}
body.ge-app :is([data-custody-error],[data-history-error],[data-custody-loan-error]){color:var(--danger,#cb796c);overflow-wrap:anywhere}
body.ge-app .record-history-entry{margin-block:4px}
body.ge-app #record-history-dialog{padding:0;width:min(850px,calc(100vw - 48px));max-width:100%;height:min(800px,90dvh);max-height:90dvh;border:1px solid var(--line);border-radius:18px;background:var(--white);color:var(--ink);overflow:hidden;box-shadow:0 24px 100px #0006}
body.ge-app #record-history-dialog::backdrop{background:#061015b3;backdrop-filter:blur(3px)}
body.ge-app .record-history-shell{display:grid;grid-template-rows:auto minmax(0,1fr) auto;height:100%;min-width:0}
body.ge-app .record-history-shell>header{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:20px 24px;border-bottom:1px solid var(--line)}
body.ge-app .record-history-shell h2{font-size:20px;margin:0}body.ge-app .record-history-shell>header p{font-size:13px;color:var(--muted);margin:6px 0 0}
body.ge-app .record-history-body{overflow:auto;overscroll-behavior:contain;padding:20px 24px;min-width:0}
body.ge-app .record-history-shell>footer{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end;align-items:center;border-top:1px solid var(--line);padding:14px 24px}
body.ge-app .record-history-shell>footer span{font-size:13px;color:var(--muted)}
body.ge-app .record-history-row{border:1px solid var(--line);border-radius:12px;padding:16px;margin:16px 0;background:var(--ge-field);min-width:0}
body.ge-app .record-history-row>header{display:flex;flex-wrap:wrap;gap:8px 16px;align-items:center}body.ge-app .record-history-row time{font-size:13px;color:var(--muted);margin-left:auto}
body.ge-app .record-history-row dl{display:grid;gap:14px;margin:16px 0 0}body.ge-app .record-history-row dt{font-weight:600;font-size:14px;margin-bottom:8px}
body.ge-app .record-history-row dd{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0}body.ge-app .record-history-row dd>div{display:grid;gap:6px;min-width:0}
body.ge-app .record-history-row dd span{font-size:12px;color:var(--muted)}body.ge-app .record-history-row :is(del,ins){text-decoration:none;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}
body.ge-app .record-history-row ins{font-weight:600}body.ge-app .record-history-empty{padding:20px;border:1px dashed var(--line);border-radius:12px;color:var(--muted)}
@media(max-width:760px){body.ge-app .custody-heading{flex-direction:column;gap:12px}body.ge-app .custody-stats{grid-template-columns:repeat(2,minmax(0,1fr))}body.ge-app .custody-filters{grid-template-columns:repeat(2,minmax(0,1fr))}body.ge-app .custody-filters>label:first-child{grid-column:1/-1}body.ge-app .custody-items{grid-template-columns:minmax(0,1fr)}body.ge-app .custody-card{padding:16px}body.ge-app #record-history-dialog{width:100%;max-height:94dvh;height:90dvh;border-radius:16px}body.ge-app .record-history-shell>header,body.ge-app .record-history-body{padding:16px}body.ge-app .record-history-shell>footer{padding:12px}body.ge-app .record-history-row{padding:12px}body.ge-app .record-history-row dd{grid-template-columns:minmax(0,1fr)}body.ge-app .record-history-row time{margin-left:0}}
