/* Scoped to historical membership setup and its forms. */
.workspace:has(#reportsView:not([hidden]) #legacyMembershipWorkspace) > .page-heading {display:none}
.lm-workspace {--lm-ink:#172f47;--lm-muted:#65758a;--lm-line:#e1e7ee;--lm-blue:#215c90;color:var(--lm-ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;max-width:1460px;margin:0 auto;padding:8px 0 30px;font-size:14px;line-height:1.5}
.lm-workspace *, .lm-dialog * {box-sizing:border-box}
.lm-workspace [hidden], .lm-dialog [hidden] {display:none!important}
.lm-workspace button,.lm-workspace input,.lm-workspace select,.lm-dialog input,.lm-dialog select,.lm-dialog textarea {font:inherit}
.lm-workspace button {cursor:pointer}
.lm-workspace button:disabled {cursor:default;opacity:.45}
.lm-workspace button:focus-visible,.lm-workspace input:focus-visible,.lm-workspace select:focus-visible,.lm-dialog input:focus-visible,.lm-dialog textarea:focus-visible,.lm-dialog select:focus-visible,.lm-dialog summary:focus-visible {outline:3px solid #9bc7ee;outline-offset:3px}
.lm-heading {display:flex;align-items:center;justify-content:space-between;gap:25px;margin:0 0 25px}
.lm-eyebrow {font-size:11px;font-weight:650;letter-spacing:.07em;text-transform:uppercase;color:#6b7f94}
.lm-heading h1 {font-size:clamp(23px,2.2vw,30px);line-height:1.25;letter-spacing:-.7px;font-weight:700;margin:8px 0;color:#173149}
.lm-heading p {margin:0;color:var(--lm-muted);font-size:14px}
.lm-heading-actions,.lm-actions {display:flex;align-items:center;gap:9px;flex-shrink:0}
.lm-workspace .lm-button {border:1px solid #215c90;border-radius:7px;background:#215c90;color:#fff;padding:9px 14px;min-height:38px;font-size:12px;line-height:1.4;font-weight:650;box-shadow:0 1px 2px #172f4709;white-space:nowrap}
.lm-workspace .lm-button:hover {background:#164b79}
.lm-workspace .lm-button.lm-secondary {color:#344f69;background:#fff;border-color:#d4dee8}
.lm-workspace .lm-button.lm-secondary:hover {background:#f2f6fa;border-color:#a5b8cb}
.lm-overview {display:grid;grid-template-columns:repeat(4,1fr);margin-bottom:24px;border:1px solid var(--lm-line);border-radius:11px;background:#fff;box-shadow:0 2px 5px #19364c03;overflow:hidden}
.lm-workspace .lm-stat {position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:19px 22px;border:0;border-right:1px solid var(--lm-line);border-radius:0;background:#fff;color:var(--lm-ink);text-align:left;min-width:0}
.lm-stat:last-child {border-right:0}
.lm-workspace button.lm-stat:hover,.lm-workspace .lm-stat.selected {background:#f5f9fc}
.lm-workspace .lm-stat.selected:after {position:absolute;content:"";height:3px;bottom:0;left:20px;right:20px;background:#3876aa;border-radius:3px}
.lm-stat > span {font-size:12px;font-weight:550;color:#64768b}
.lm-stat strong {font-size:29px;line-height:1.1;letter-spacing:-.7px;font-weight:650;color:#193a55}
.lm-stat strong small {font-size:16px;font-weight:450;color:#7a8a9b}
.lm-stat > small {font-size:11px;line-height:1.45;color:#748396;display:flex;gap:9px;width:100%;justify-content:space-between}
.lm-stat .lm-amber {color:#a36b17}
.lm-progress {height:5px;background:#edf2f5;border-radius:6px;overflow:hidden;width:100%;margin:7px 0 2px;max-width:200px}
.lm-progress i {display:block;height:100%;background:#3e8b77;border-radius:6px}
.lm-records {background:#fff;border:1px solid var(--lm-line);border-radius:11px;overflow:hidden;box-shadow:0 3px 12px #1c344908}
.lm-section-heading {display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 24px 18px}
.lm-section-heading h2 {font-size:18px;line-height:1.3;letter-spacing:-.25px;margin:0 0 4px;font-weight:650}
.lm-section-heading p {font-size:12px;margin:0;color:var(--lm-muted)}
.lm-toolbar {display:flex;gap:10px;padding:0 24px 18px;align-items:center}
.lm-search {position:relative;display:flex;align-items:center;flex:1;min-width:180px;gap:8px}
.lm-search > span {position:absolute;left:12px;top:5px;font-size:22px;color:#6c8298;line-height:1.2}
.lm-workspace .lm-search input {padding-left:35px;width:100%}
.lm-workspace .lm-toolbar input,.lm-workspace .lm-toolbar select {height:39px;padding:8px 10px;border:1px solid #dbe3ec;border-radius:6px;color:#3d5369;background:#fff;font-size:12px;min-width:0;box-shadow:none;margin:0}
.lm-toolbar > label:not(.lm-search) {max-width:200px}
.lm-list-meta {display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 24px;background:#fafbfd;border-top:1px solid #edf0f4;border-bottom:1px solid #edf0f4;font-size:11px;color:#6b7e92}
.lm-list-meta p {margin:0}
.lm-list-meta label {display:flex;align-items:center;gap:6px;white-space:nowrap;font-weight:400;margin:0}
.lm-workspace .lm-list-meta select {border:0;background:transparent;color:#35536f;font-size:11px;width:auto;padding:3px;font-weight:600}
.lm-table-wrap {overflow-x:auto}
.lm-workspace .lm-table {border-collapse:collapse;width:100%;table-layout:auto;font-size:12px;margin:0;border:0;background:#fff}
.lm-workspace .lm-table thead th {padding:12px 20px;border:0;border-bottom:1px solid #e8edf3;background:#fff;color:#7a8b9b;font-size:10px;font-weight:650;text-transform:uppercase;letter-spacing:.055em;white-space:nowrap}
.lm-workspace .lm-table th:first-child,.lm-workspace .lm-table td:first-child {padding-left:24px}
.lm-workspace .lm-table td {padding:13px 20px;border:0;border-bottom:1px solid #edf1f5;color:#40566c;vertical-align:middle;background:transparent;line-height:1.4}
.lm-workspace .lm-table tr:last-child td {border-bottom:0}
.lm-table tbody tr:hover {background:#fafcfe}
.lm-table td > strong {display:block;font-weight:550;font-size:12px;color:#314c65}
.lm-person {display:flex;align-items:center;gap:12px;min-width:180px}
.lm-person .lm-avatar {display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:#edf3f8;color:#69839b;font-size:11px;font-weight:650;flex-shrink:0}
.lm-person button {font-weight:650;font-size:12px;text-align:left;border:0;padding:0;background:none;color:#214969;line-height:1.4}
.lm-person button:hover {text-decoration:underline}
.lm-person small {display:flex;gap:6px;color:#8796a5;font-size:10px;margin-top:3px;white-space:nowrap}
.lm-person .lm-call {font-weight:550;color:#6b8093;letter-spacing:.04em}
.lm-member-status {display:flex;align-items:center;gap:5px;font-size:10px;color:#7c8d9d;margin-top:3px}
.lm-member-status i {width:5px;height:5px;border-radius:50%;background:#aebac6}
.lm-member-status i.active {background:#4b9480}
.lm-badge {display:inline-flex;align-items:center;gap:5px;background:#f2f4f7;color:#7b8a99;font-size:10px;padding:4px 8px;line-height:1.4;border-radius:4px;white-space:nowrap}
.lm-badge i {width:4px;height:4px;border-radius:50%;background:currentColor}
.lm-badge.lm-linked {color:#37765e;background:#edf7f1}
.lm-workspace .lm-row-end {text-align:right;white-space:nowrap}
.lm-profile-button {border:0;background:none;color:#56758f;padding:4px 0;font-size:10px}
.lm-profile-button:hover {color:#215c90;text-decoration:underline}
.lm-missing {font-size:11px;color:#a57424}
.lm-workspace .lm-date {width:145px;padding:7px 8px;border:1px solid #cbd9e6;border-radius:5px;font-size:12px;color:#274c6d;background:#fff;box-shadow:none;margin:0}
.lm-workspace .lm-date.changed {border-color:#3b80b6;background:#f5faff}
.lm-workspace .lm-date[aria-invalid="true"] {border-color:#c85454;background:#fff8f8}
.lm-workspace .lm-row-changed {background:#f7fbff}
.lm-date-error {display:block;font-size:10px;color:#a83a3a;max-width:180px;margin-top:4px}
.lm-pagination {display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 24px;border-top:1px solid #e8edf3;color:#7a8b9b;font-size:11px}
.lm-pagination > div {display:flex;align-items:center;gap:14px}
.lm-pagination .lm-button {font-size:11px;padding:6px 10px;min-height:30px;font-weight:500}
.lm-edit-note {padding:10px 24px;color:#607c96;background:#f1f7fd;font-size:12px;border-top:1px solid #dfebf7}
.lm-pending {position:sticky;bottom:14px;z-index:15;margin:14px 0 0;border:1px solid #aac6df;background:#edf6ff;border-radius:9px;box-shadow:0 5px 25px #18395715;padding:16px 20px;display:flex;align-items:center;justify-content:space-between;gap:16px}
.lm-pending strong {display:block;font-size:13px}
.lm-pending span {display:block;font-size:11px;color:#607b96;margin-top:3px}
.lm-footer {display:flex;justify-content:space-between;align-items:center;gap:24px;margin-top:21px;color:#8391a0}
.lm-footer > div:first-child {display:flex;gap:10px;align-items:center}
.lm-history-icon {width:32px;height:32px;border:1px solid #dbe4ed;border-radius:50%;display:grid;place-items:center;font-size:23px;color:#839ab0;flex-shrink:0}
.lm-footer p {margin:0;font-size:10px}
.lm-footer p strong {display:block;font-weight:550;color:#6d8296;font-size:11px}
.lm-footer p span {display:block;margin-top:2px}
.lm-links {display:flex;gap:18px;flex-shrink:0}
.lm-links button {border:0;background:transparent;padding:0;color:#56718b;font-size:11px;line-height:1.4}
.lm-links button:hover {text-decoration:underline}
.lm-empty {text-align:center;padding:55px 24px;background:#fff;border-radius:10px}
.lm-empty > span {font-size:32px;color:#a0b3c6}
.lm-empty h3,.lm-empty h2 {margin:8px 0;font-size:18px;color:#28445e}
.lm-empty p {color:#7b8b9c;margin:8px 0 20px;font-size:13px}
.lm-loading {padding:60px;text-align:center;background:#fff;border:1px solid #e1e7ee;border-radius:10px;color:#6d859a}
.lm-sr {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* The shared dialog is restyled only while a membership form is open. */
#actionDialog.lm-dialog {border:1px solid #dce5ee;border-radius:13px;max-width:800px;width:calc(100vw - 32px);padding:0;color:#29445d;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;box-shadow:0 20px 100px #0c263b44}
.lm-dialog #actionDialogForm {margin:0;max-height:calc(100dvh - 48px);overflow:auto}
.lm-dialog .action-modal-head {padding:24px 28px 20px;border-bottom:1px solid #e5ebf2;background:#fff;position:sticky;top:0;z-index:2}
.lm-dialog .action-modal-head h2 {font-size:23px;font-weight:650;letter-spacing:-.4px;color:#183952;margin:6px 0;line-height:1.2}
.lm-dialog .action-modal-head .eyebrow {font-size:10px;letter-spacing:.08em;color:#7b90a3}
.lm-dialog .action-modal-head p {font-size:12px;line-height:1.6;color:#6d8093;margin:5px 0 0}
.lm-dialog .action-dialog-body {padding:23px 28px;background:#fff}
.lm-dialog .lm-form-grid {display:grid;grid-template-columns:1fr 1fr;gap:16px 20px}
.lm-dialog .lm-field {display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:550;color:#4a6278;min-width:0;margin:0}
.lm-dialog .lm-field > b {color:#a24a4a}
.lm-dialog .lm-wide {grid-column:1 / -1}
.lm-dialog .lm-field input,.lm-dialog .lm-field select,.lm-dialog .lm-field textarea {width:100%;border:1px solid #d2deea;border-radius:6px;background:#fff;color:#29475f;padding:10px 11px;min-height:40px;font-size:13px;box-shadow:none;margin:0;line-height:1.4}
.lm-dialog .lm-field textarea {resize:vertical}
.lm-dialog .lm-field input::placeholder,.lm-dialog .lm-field textarea::placeholder {font-size:11px;color:#98a6b3;font-weight:400}
.lm-dialog .lm-form-intro {font-size:12px;background:#f2f7fb;color:#6a8093;border:1px solid #e1ebf4;border-radius:7px;padding:12px 14px;margin-bottom:22px;line-height:1.7}
.lm-form-intro > span {font-weight:650;color:#405e78}
.lm-dialog .lm-form-section {border:1px solid #e0e7ef;border-radius:7px;margin-top:18px;overflow:hidden}
.lm-dialog .lm-form-section summary {cursor:pointer;padding:13px 15px;background:#fafcfe;font-size:12px;font-weight:600;color:#45627c}
.lm-dialog .lm-form-section summary span {font-size:10px;font-weight:400;color:#8c9bab;float:right;margin:2px 0}
.lm-dialog .lm-form-section .lm-form-grid {padding:18px 16px;border-top:1px solid #e9edf3}
.lm-dialog .lm-invite {display:flex;gap:10px;align-items:flex-start;margin:22px 0 0;font-size:12px;font-weight:500;color:#45617b}
.lm-dialog .lm-invite input {width:16px;height:16px;flex-shrink:0;margin:1px 0 0;accent-color:#215c90}
.lm-dialog .lm-invite small {display:block;font-size:11px;font-weight:400;color:#7e90a0;margin-top:4px}
.lm-dialog .lm-terms-note {font-size:11px;line-height:1.6;color:#8191a2;margin:18px 0 0}
.lm-dialog .modal-actions {background:#fafcfe;border-top:1px solid #e5ebf2;padding:17px 28px;position:sticky;bottom:0;z-index:2;display:flex;justify-content:flex-end;gap:10px}
.lm-dialog .modal-actions button {font:600 12px/1.4 Inter,ui-sans-serif,system-ui,sans-serif;background:#215c90;border:1px solid #215c90;border-radius:6px;padding:10px 18px;color:#fff;min-height:38px}
.lm-dialog .modal-actions button.secondary {background:#fff;color:#4c647c;border-color:#d2deea}
.lm-dialog #actionDialogError {margin:0;padding:0 28px 15px;font-size:12px}
.lm-dialog #actionDialogError:empty {display:none}
.lm-dialog .lm-review-list {border:1px solid #e0e8f0;border-radius:7px;overflow:hidden;margin-bottom:22px}
.lm-dialog .lm-review-list > div {display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px 16px;font-size:12px;border-bottom:1px solid #e7edf3}
.lm-dialog .lm-review-list > div:last-child {border:0}
.lm-review-list strong {font-weight:550}
.lm-review-list span {color:#647d94}
.lm-review-list b {padding:0 7px;color:#2f80b2}
.lm-optional {font-weight:400;font-size:10px;color:#8b9aaa}
@media(min-width:1500px){.lm-workspace .lm-table td{padding-top:14px;padding-bottom:14px}}
@media(max-width:1100px){.lm-heading{align-items:flex-start}.lm-heading-actions{padding-top:25px}.lm-heading h1{max-width:490px}.lm-toolbar{flex-wrap:wrap}.lm-toolbar .lm-search{flex-basis:100%}.lm-toolbar > label:not(.lm-search){flex:1;max-width:none}.lm-toolbar select{width:100%}.lm-stat > small{font-size:10px}.lm-workspace .lm-stat{padding:17px}.lm-workspace .lm-table td,.lm-workspace .lm-table th{padding-left:13px;padding-right:13px}.lm-person{min-width:170px}.lm-person .lm-avatar{display:none}.lm-profile-button{font-size:0}.lm-profile-button span{font-size:15px}.lm-footer{align-items:flex-start;flex-direction:column;gap:14px}}
@media(max-width:650px){.lm-workspace{padding-top:0}.lm-heading{display:block;margin-bottom:20px}.lm-heading h1{font-size:25px}.lm-heading p{font-size:12px;line-height:1.6;max-width:300px}.lm-heading-actions{padding:17px 0 0;gap:8px}.lm-heading-actions .lm-button{flex:1;padding:10px 9px}.lm-eyebrow{font-size:9px}.lm-overview{grid-template-columns:1fr 1fr;margin-bottom:17px}.lm-workspace .lm-stat{padding:15px 14px;gap:9px}.lm-stat:nth-child(2){border-right:0}.lm-stat:nth-child(-n+2){border-bottom:1px solid #e1e7ee}.lm-stat strong{font-size:26px}.lm-stat > span{font-size:10px}.lm-stat > small{font-size:9px}.lm-section-heading{padding:18px 16px;display:block}.lm-section-heading p{font-size:11px;line-height:1.6}.lm-section-heading .lm-actions{margin-top:14px}.lm-section-heading .lm-button{flex:1}.lm-toolbar{padding:0 16px 16px;gap:8px}.lm-toolbar > label:not(.lm-search){flex-basis:calc(50% - 4px);min-width:0}.lm-toolbar > label:last-child{flex-basis:100%}.lm-workspace .lm-toolbar select{font-size:11px}.lm-list-meta{padding:10px 16px}.lm-workspace .lm-table,.lm-workspace .lm-table tbody{display:block;width:100%}.lm-table thead{display:none}.lm-workspace .lm-table tr{display:grid;grid-template-columns:1fr 1fr;gap:13px 15px;border-bottom:1px solid #e7edf3;padding:16px}.lm-workspace .lm-table tr:last-child{border-bottom:0}.lm-workspace .lm-table td{display:block;padding:0!important;border:0;font-size:11px;min-width:0;overflow-wrap:anywhere}.lm-table td:before{content:attr(data-label);display:block;color:#8a9bac;font-size:9px;margin-bottom:4px}.lm-table td:first-child{grid-column:1 / -1}.lm-table td:first-child:before{display:none}.lm-person{min-width:0}.lm-person .lm-avatar{display:flex}.lm-person button{font-size:13px}.lm-person small{font-size:10px}.lm-member-status{font-size:9px}.lm-table .lm-row-end{align-self:end;text-align:right}.lm-profile-button{font-size:11px}.lm-profile-button span{font-size:12px}.lm-workspace .lm-date{width:100%;font-size:11px;padding:6px;max-width:150px}.lm-pagination{padding:12px 16px;flex-wrap:wrap;gap:10px}.lm-pagination > span{font-size:10px}.lm-pagination > div{gap:9px;font-size:10px}.lm-pagination .lm-button{font-size:10px;min-height:28px;padding:5px 8px}.lm-pending{padding:14px;display:block;bottom:8px}.lm-pending .lm-actions{margin-top:12px}.lm-pending .lm-actions button{flex:1}.lm-footer{margin-top:18px}.lm-footer p span{font-size:9px;line-height:1.6}.lm-links{gap:18px;flex-wrap:wrap}.lm-links button{font-size:10px}.lm-dialog #actionDialogForm{max-height:calc(100dvh - 24px)}.lm-dialog .action-modal-head{padding:19px 18px 16px}.lm-dialog .action-modal-head h2{font-size:21px}.lm-dialog .action-dialog-body{padding:18px}.lm-dialog .lm-form-grid{gap:14px;grid-template-columns:1fr}.lm-dialog .lm-field{font-size:12px}.lm-dialog .lm-form-section .lm-form-grid{padding:15px}.lm-dialog .lm-form-section summary span{font-size:9px}.lm-dialog .modal-actions{padding:14px 18px}.lm-dialog .lm-review-list > div{display:block;padding:12px}.lm-review-list span{display:block;margin-top:7px}.lm-dialog #actionDialogError{padding-left:18px;padding-right:18px}}
.lm-workspace .lm-toolbar .lm-search input {padding-left:35px}
.lm-dialog .lm-field span b {color:#ad5959;font-weight:500}
.lm-dialog .action-dialog-body {max-height:none;overflow:visible}
.lm-dialog #actionDialogCancel {background:#fff;color:#4c647c;border-color:#d2deea}
.lm-dialog #actionDialogClose {color:#617a90;background:#f4f7fa;border:1px solid #e0e7ee;border-radius:6px;min-width:30px;height:30px;font-size:20px;line-height:1}
