.member-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:22px 0}
.member-sale-kind-hint{margin:8px 0 14px;line-height:1.7;overflow-wrap:anywhere}.member-sale-kind-hint.has-history{padding:12px;border-radius:10px;background:#fff6e4;color:#795521;border:1px solid #ead9b8}
.member-toolbar{padding:18px;background:#eef0e7;border:1px solid #e0e4d9;border-radius:18px;margin:20px 0}
.member-tabs{display:flex;gap:8px;flex-wrap:wrap}
.member-tabs button{min-height:44px;border:1px solid #dce1d5;background:#fff;color:#526151;border-radius:24px;padding:10px 18px;font:inherit;font-size:13px;cursor:pointer}
.member-tabs button[aria-pressed=true]{background:#394a3c;color:#fff;border-color:#394a3c}
.member-filters{display:grid;grid-template-columns:1fr 1fr 1.4fr;gap:14px;margin-top:18px}
.member-filters label,.member-threshold-fields label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#64735b;min-width:0}
.member-filters input,.member-filters select,.member-threshold-fields input{width:100%;min-height:44px;font-size:16px;border:1px solid #d8dece;border-radius:10px;background:#fff;color:#394a3c;padding:9px 12px;box-sizing:border-box;min-width:0}
.member-threshold-settings{margin-top:16px;border-top:1px solid #d9dfd0;padding-top:8px}
.member-threshold-settings summary,.member-unknown-panel summary,.member-acquisition-summary summary,.member-usage-history summary{cursor:pointer;min-height:44px;align-content:center;font-weight:600;font-size:13px;line-height:1.6}
.member-threshold-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;max-width:420px;margin:12px 0}
.member-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
.member-grid>.empty-state{grid-column:1/-1}
.member-card{padding:22px;overflow:hidden;min-width:0}
.member-card-top{display:flex;justify-content:space-between;align-items:start;gap:12px;margin-bottom:14px}
.member-card-top h2{font-size:18px;margin:0 0 8px}
.member-card-top p{font-size:12px;margin:0;color:#6b765f;line-height:1.65}
.member-card-top>div{min-width:0;overflow-wrap:anywhere}
.member-card-top>.tag{flex:none;max-width:45%;white-space:normal;text-align:center}
.member-phone{display:inline-flex;align-items:center;min-height:44px;color:#526a4e;font-size:14px;text-decoration:underline;text-underline-offset:4px;overflow-wrap:anywhere}
.member-contract-list{list-style:none;padding:0;margin:14px 0}
.member-contract-list>li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 8px;padding:14px 0;border-top:1px solid #eceee7}
.member-contract-list strong{font-size:13px;display:block;line-height:1.7;overflow-wrap:anywhere}
.member-contract-list small{display:block;font-size:11px;color:#78816e;line-height:1.7;margin-top:5px}
.member-contract-list .tag{font-size:10px;margin-left:4px}
.member-remaining{font-weight:700;font-size:13px;align-self:start;white-space:nowrap;line-height:1.7;color:#4e684c}
.member-remaining.unknown{font-weight:500;color:#967442}
.member-contract-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px}
.member-card-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px;padding-top:16px;border-top:1px solid #edf0e7}
.member-card-actions>.btn,.member-contract-actions>.btn,.member-unknown-row>.btn{min-height:44px;font-size:12px;padding:10px 12px;box-sizing:border-box;white-space:normal}
.member-note{padding:10px 12px;background:#f6f7f1;border-radius:8px;color:#626e58;font-size:12px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}
.member-unconfirmed,.member-queue-help{background:#f6f3e9;color:#8a7249;border-radius:10px;padding:12px 14px;font-size:12px;line-height:1.8}
.member-identities-note{margin-top:0;margin-bottom:18px}
.member-renewal-status{font-size:13px;line-height:1.7;color:#526151;background:#eef2e7;padding:10px 12px;border-radius:8px}
.member-unknown-panel,.member-acquisition-summary{margin-top:20px;padding:14px 20px}
.member-unknown-row{display:flex;gap:10px;align-items:center;padding:12px 0;border-top:1px solid #eef0e7;min-width:0}
.member-unknown-row>div{flex:1;min-width:0;overflow-wrap:anywhere}
.member-unknown-row strong{font-size:13px}
.member-unknown-row small{display:block;font-size:11px;color:#76826a;margin-top:5px;line-height:1.7}
.member-unlinked-note{margin-top:20px}
.member-unlinked-note p{font-size:12px;line-height:1.8;margin:8px 0 0}
.member-lead-axes{display:grid;gap:10px;margin:12px 0}
.member-lead-axes>div{display:grid;grid-template-columns:92px minmax(0,1fr);gap:10px}
.member-lead-axes dt{font-size:11px;color:#7b8472}
.member-lead-axes dd{margin:0;font-size:12px;color:#4a5c45;line-height:1.6;overflow-wrap:anywhere}
.member-axis-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin:16px 0}
.member-axis-summary h3{font-size:13px;margin:0 0 12px}
.member-axis-summary p{display:flex;justify-content:space-between;gap:12px;font-size:11px;line-height:1.7;padding:10px 0;border-bottom:1px solid #eef0e7;margin:0}
.member-axis-summary strong{font-weight:500;text-align:right}
.member-acquisition{border:1px solid #dfe5d7;border-radius:14px;padding:16px;margin:18px 0;min-width:0}
.member-acquisition legend{font-size:13px;font-weight:600;color:#526a4e;padding:0 7px}
.member-acquisition .field-grid{gap:14px}
.member-acquisition .field-grid small{font-size:11px;line-height:1.7;font-weight:400;color:#7b8472}
.member-choice-title{font-size:12px;font-weight:600;color:#53654a;margin:12px 0}
.member-choice-title small{font-weight:400;color:#7b8472;margin-left:8px}
.member-choice-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0 18px}
.member-choice-options>label{display:flex;align-items:center;gap:9px;min-height:44px;padding:8px 10px;background:#f4f6ef;border-radius:9px;box-sizing:border-box;font-size:12px;font-weight:400;cursor:pointer;line-height:1.5}
.member-choice-options input[type=checkbox]{width:18px;height:18px;min-height:0;flex:none;accent-color:#526a4e}
.member-sale-link label{margin-top:14px}
.member-sale-link select{font-size:16px;min-height:44px}
.member-sale-link .extra-info{margin-top:14px}
.member-sale-link .member-acquisition label{margin-top:0}
.member-sale-paths{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end}
.member-sale-paths>.btn{min-height:44px;white-space:normal;line-height:1.6}
.member-sale-link .member-unlinked-choice{display:flex;align-items:flex-start;gap:10px;padding:14px;background:#f6f3e9;border:1px solid #e8dfce;border-radius:10px;font-size:12px;font-weight:400;line-height:1.7;cursor:pointer}
.member-unlinked-choice input[type=checkbox]{width:20px;height:20px;min-height:0;margin:2px 0 0;flex:none;accent-color:#526a4e}
.member-unlinked-choice small{display:block;font-size:11px;line-height:1.8;color:#7d715c;margin-top:4px}
.member-sale-load-error{margin:16px 0;line-height:1.8}
.member-sale-load-error .btn{min-height:44px;margin-top:8px}
.member-sale-link .member-lead-link{margin-top:12px}
.member-manager-handoff{flex-basis:100%;margin:0;padding:12px;border-radius:10px;background:#f6f3e9;color:#78664b;font-size:12px;line-height:1.8;overflow-wrap:anywhere}
.member-acquisition input:disabled,.member-acquisition select:disabled{opacity:.8;background:#f0f2eb}
.member-usage-history{margin-top:18px;padding-top:10px;border-top:1px solid #e7ebdf}
.member-usage-history p{display:flex;flex-direction:column;gap:5px;padding:10px 0;border-bottom:1px solid #eef0e7;font-size:12px;line-height:1.7}
.member-usage-history p>span{color:#74816a;overflow-wrap:anywhere}
.member-import-intro>p{font-size:13px;line-height:1.8}
.member-import-intro>.btn{margin:16px 0;min-height:44px}
.member-import-file-label{margin:12px 0;display:flex;flex-direction:column;gap:10px}
.member-import-file-label input{min-height:44px;max-width:100%;font-size:16px;box-sizing:border-box}
.member-import-summary{display:flex;flex-wrap:wrap;gap:12px;background:#eef2e7;padding:14px;border-radius:10px;margin:14px 0;font-size:13px}
.member-import-summary span{color:#6f7e60;font-size:12px}
.member-import-rows{display:grid;gap:12px;max-height:55vh;overflow:auto;overscroll-behavior:contain;margin:16px 0}
.member-import-row{border:1px solid #e1e7d8;border-radius:12px;padding:14px;overflow-wrap:anywhere}
.member-import-row.invalid{border-color:#d9a690;background:#fff6ef}
.member-import-row>div{display:flex;justify-content:space-between;gap:10px;font-size:12px;line-height:1.8}
.member-import-row>div>span{color:#768469}
.member-import-row.invalid>div>span{color:#a0523a}
.member-import-row dl{display:grid;gap:7px;margin:12px 0 0;font-size:11px}
.member-import-row dl>div{display:grid;grid-template-columns:85px minmax(0,1fr);gap:10px}
.member-import-row dt{color:#849174}
.member-import-row dd{margin:0;color:#526746;line-height:1.7}
.member-import-intro .check-label{min-height:44px;line-height:1.8;font-size:12px;margin:14px 0}
.member-import-intro .check-label input{width:18px;height:18px;min-height:0;flex:none;accent-color:#526a4e}
.member-import-intro #member-import-preview>.btn{min-height:44px;margin:10px 0}
.member-tabs button:focus-visible,.member-phone:focus-visible,.member-toolbar summary:focus-visible,.member-unknown-panel summary:focus-visible{outline:3px solid #bd9864;outline-offset:3px}
@media(max-width:900px){
 .member-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
 .member-grid,.member-axis-summary{grid-template-columns:1fr}
}
@media(max-width:600px){
 .member-summary{gap:10px;margin:16px 0}
 .member-toolbar{padding:14px;margin:16px 0}
 .member-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
 .member-tabs button{padding:9px 5px;font-size:12px}
 .member-filters{grid-template-columns:1fr 1fr;gap:12px}
 .member-search-label{grid-column:1/-1}
 .member-card{padding:17px}
 .member-card-top h2{font-size:17px}
 .member-card-actions>.btn{flex:1;min-width:120px;text-align:center}
 .member-contract-actions>.btn{flex:1}
 .member-contract-list>li{grid-template-columns:minmax(0,1fr) auto}
 .member-contract-list small{font-size:11px}
 .member-unknown-panel,.member-acquisition-summary{padding:12px 16px}
 .member-unknown-row{flex-wrap:wrap;gap:8px}
 .member-unknown-row>div{min-width:calc(100% - 90px)}
 .member-unknown-row>.btn{width:100%;text-align:center}
 .member-acquisition{padding:12px}
 .member-choice-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .member-choice-options>label{font-size:12px}
 .member-sale-link .step-heading h2{font-size:16px}
 .member-sale-paths{grid-template-columns:1fr;gap:10px}
 .member-sale-paths>.btn{width:100%}
 .member-threshold-fields{max-width:none}
 .member-import-row>div{flex-direction:column;gap:4px}
 .member-import-intro #member-import-preview>.btn{width:100%}
}
@media(prefers-reduced-motion:reduce){.member-card{scroll-behavior:auto}}
.member-import-progress{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:18px 0 22px;padding:0;list-style:none}
.member-import-progress li{display:flex;align-items:center;justify-content:center;min-height:44px;background:#eef2e7;border-radius:9px;color:#4e6246;font-size:12px;line-height:1.6;padding:8px;box-sizing:border-box;text-align:center}
.member-import-step{padding:18px 0;border-top:1px solid #e3e8dc;min-width:0}
.member-import-step h3{margin:0 0 14px;font-size:15px;line-height:1.7;color:#40563b}
.member-import-existing{background:#f3f5ee;border:1px solid #e1e7d8;border-radius:12px;padding:15px;margin-top:16px;font-size:13px;line-height:1.7;min-width:0}
.member-import-existing .btn,.member-import-complete-actions .btn,.member-import-step .btn{min-height:44px;box-sizing:border-box;white-space:normal;line-height:1.6;overflow-wrap:anywhere}
.member-import-existing .form-hint{margin:7px 0 13px}
.member-import-file-label{font-size:13px;font-weight:600;color:#4e6246;line-height:1.7}
.member-import-file-label input{border:1px dashed #adbc9d;border-radius:12px;background:#f8f9f5;padding:12px;min-width:0;width:100%;font-size:14px;font-weight:400;color:#4e6246}
.member-import-file-label input::file-selector-button{min-height:44px;margin-right:10px;border:1px solid #d2dbc8;border-radius:8px;background:#fff;color:#4e6246;padding:8px 12px;font:inherit;cursor:pointer}
.member-import-waiting{border:1px dashed #d5deca;border-radius:12px;padding:20px 15px;color:#74816a;font-size:13px;line-height:1.7}
.member-import-filename{font-weight:600;overflow-wrap:anywhere;font-size:13px;line-height:1.7}
.member-import-excluded{border:1px solid #e3d8bd;border-radius:12px;background:#faf7ef;padding:10px 14px;margin:14px 0;color:#766343}
.member-import-excluded summary{display:list-item;min-height:44px;align-content:center;cursor:pointer;line-height:1.7;font-size:13px;font-weight:600}
.member-import-excluded ul{padding-left:18px;max-height:240px;overflow:auto;overscroll-behavior:contain}
.member-import-excluded li{padding:9px 0;font-size:12px;line-height:1.8;overflow-wrap:anywhere}
.member-import-excluded li span{display:block;color:#8a7754}
.member-import-complete>h3{font-size:20px;line-height:1.6;margin:18px 0 10px}
.member-import-complete>p{overflow-wrap:anywhere}
.member-import-complete-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.member-import-complete-actions .btn{flex:1;min-width:150px}
.member-import-step .btn:focus-visible,.member-import-existing .btn:focus-visible,.member-import-excluded summary:focus-visible,.member-import-complete-actions .btn:focus-visible{outline:3px solid #bd9864;outline-offset:3px}
@media(max-width:600px){
 .member-import-progress{gap:5px}.member-import-progress li{font-size:11px;padding:7px 3px}
 .member-import-step{padding:16px 0}.member-import-step h3{font-size:14px}
 .member-import-existing{padding:13px}.member-import-existing .btn{width:100%}
 .member-import-summary{flex-direction:column;gap:7px}
 .member-import-intro .check-label{display:flex;align-items:flex-start;gap:9px}.member-import-intro .check-label input{margin-top:3px}
 .member-import-complete-actions{flex-direction:column}.member-import-complete-actions .btn{width:100%;min-width:0}
}
.member-extra-actions{border:1px solid #e1e5d9;border-radius:12px;margin:0 0 18px;padding:0 14px;background:#fafbf6}
.member-extra-actions summary{min-height:44px;align-content:center;font-size:13px;font-weight:600;cursor:pointer;color:#526448}
.member-extra-actions .actions{padding:4px 0 14px;flex-wrap:wrap}
.member-extra-actions .btn{min-height:44px}
.member-extra-actions summary:focus-visible{outline:3px solid #bd9864;outline-offset:2px}
.member-summary-context{font-size:12px;line-height:1.7;color:#66725e;margin:18px 0 0;overflow-wrap:anywhere}
.member-summary-context+.member-summary{margin-top:10px}
.member-inquiry-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
.member-count-guide,.member-scope-guide{border:1px solid #e1e5d9;border-radius:10px;padding:0 14px;background:#fafbf6;margin:0 0 16px}
.member-count-guide summary,.member-scope-guide summary,.member-connection-details summary,.member-unlinked-note summary{min-height:44px;align-content:center;cursor:pointer;font-size:13px;font-weight:600;line-height:1.65}
.member-count-guide p,.member-scope-guide p{font-size:12px;line-height:1.8;margin:0 0 12px;color:#68765e}
.member-inquiry-filters{grid-template-columns:minmax(150px,1fr) minmax(0,1.4fr)}
.member-inquiry-filters .member-search-label{grid-column:auto}
.member-contract-blocked{grid-column:1/-1;background:#fbf4e7;border:1px solid #eddfc1;padding:11px 12px;border-radius:9px}
.member-contract-blocked strong{font-size:12px;color:#80622d}
.member-contract-blocked p,.member-package-note{font-size:12px;color:#786b51;line-height:1.7;margin:5px 0 0;overflow-wrap:anywhere}
.member-package-note{grid-column:1/-1}
.member-contract-actions button:disabled{background:#f0f1eb;border-color:#e0e3d8;color:#818a79;cursor:not-allowed;box-shadow:none}
.member-connection-details{margin-top:18px;border-top:1px solid #e5e8df;padding-top:5px}
.member-connection-details dl{margin:7px 0 0;display:grid;gap:12px}
.member-connection-details dt{font-size:12px;color:#718066}
.member-connection-details dd{font-size:12px;overflow-wrap:anywhere;margin:5px 0 0;line-height:1.7}
details.member-unlinked-note{display:block}
.member-count-guide summary:focus-visible,.member-scope-guide summary:focus-visible,.member-connection-details summary:focus-visible,.member-unlinked-note summary:focus-visible{outline:3px solid #bd9864;outline-offset:2px}
@media(max-width:420px){.member-inquiry-filters{grid-template-columns:1fr}}
/* Receipt counts do not represent people or lesson rights. */
.member-unlinked-counts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:16px 0}.member-unlinked-counts>div{display:flex;flex-direction:column;gap:6px;padding:12px;border:1px solid #e9ddbb;border-radius:10px;background:#fffdf7;min-width:0}.member-unlinked-counts strong{font-size:20px}.member-unlinked-counts span{font-size:12px;line-height:1.6;overflow-wrap:anywhere}.member-unlinked-note>.btn{min-height:46px;white-space:normal}
@media(max-width:600px){.member-unlinked-counts{grid-template-columns:1fr}.member-unlinked-counts>div{flex-direction:row;align-items:center;gap:12px}.member-unlinked-counts strong{min-width:58px}.member-unlinked-note>.btn{width:100%}}
/* Daily member work comes before migration, filters and explanatory totals. */
.member-daily-toolbar{margin:12px 0;padding:16px;background:#fff;border-color:#dce1d5}
.member-daily-toolbar>.member-search-label{display:flex;flex-direction:column;gap:8px;font-size:13px;font-weight:600;color:#394a3c}
.member-daily-toolbar #member-search{width:100%;box-sizing:border-box;min-width:0;min-height:48px;border:1px solid #b7c3af;background:#fafbf7;border-radius:12px;font-size:16px;padding:12px 14px;color:#273d2e}
.member-daily-toolbar .member-tabs{margin-top:14px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.member-daily-toolbar .member-tabs button{min-height:48px;padding:9px 5px;border-radius:10px;white-space:normal}
.member-view-options{margin-top:8px;border-top:1px solid #e9ece3}
.member-view-options>summary,.member-tools>summary,.member-statistics>summary{min-height:48px;align-content:center;cursor:pointer;font-size:13px;line-height:1.6;color:#40573d}
.member-view-options>.member-filters{grid-template-columns:repeat(2,minmax(0,1fr));margin:8px 0 14px}
.member-tools,.member-statistics{border:1px solid #e0e5d7;border-radius:12px;padding:0 14px;margin:12px 0;background:#f8f9f3}
.member-tools>summary{font-weight:600}.member-tools>summary span{font-size:11px;font-weight:400;color:#6c7763;display:block;margin-left:15px}
.member-tools[open]{padding-bottom:14px}.member-tools .member-preparation-panel{margin-top:12px}
.member-tools .member-preparation-heading{flex-wrap:wrap}.member-tools .member-preparation-heading>div{min-width:0}
.member-statistics{margin-top:22px}.member-statistics .member-summary-context{margin-top:6px}
.member-result-summary{font-size:12px;color:#68745d;line-height:1.6;margin:14px 0 10px}.member-result-summary strong{font-size:14px;color:#394a3c}
.member-daily-toolbar input:focus-visible,.member-view-options>summary:focus-visible,.member-tools>summary:focus-visible,.member-statistics>summary:focus-visible{outline:3px solid #bd9864;outline-offset:3px}
@media(max-width:600px){.member-daily-toolbar{padding:12px}.member-daily-toolbar .member-tabs button{font-size:12px}.member-view-options>.member-filters{grid-template-columns:1fr}.member-tools .member-preparation-heading>.btn{width:100%}.member-tools .member-preparation-files{grid-template-columns:1fr}.member-tools .member-preparation-latest{flex-direction:column;align-items:stretch}.member-tools .member-preparation-latest .btn{width:100%}.member-extra-actions{margin-bottom:12px}.member-card-actions>.btn,.member-contract-actions>.btn{min-height:48px}}
