/* Relationship maintenance keeps real evidence central and next actions compact. */
.customer-maintenance{--cm-accent:#e8613a;--cm-line:var(--border-subtle,#e6e8eb);--cm-muted:var(--text-secondary,#757d85);font-size:14px;line-height:1.7;color:var(--text-primary,#2c3238);min-width:0;padding:5px 0 30px}.customer-maintenance *{box-sizing:border-box}.customer-maintenance [hidden]{display:none!important}.customer-maintenance h1,.customer-maintenance h2,.customer-maintenance h3,.customer-maintenance p{margin:0}.customer-maintenance h1{font-size:24px;font-weight:600}.customer-maintenance h2{font-size:16px;font-weight:550}.customer-maintenance h3{font-size:14px;font-weight:550}.customer-maintenance button,.customer-maintenance input,.customer-maintenance textarea,.customer-maintenance select{font:inherit}.customer-maintenance button:focus-visible,.customer-maintenance input:focus-visible,.customer-maintenance textarea:focus-visible,.customer-maintenance select:focus-visible,.customer-maintenance summary:focus-visible{outline:2px solid var(--cm-accent);outline-offset:3px}.customer-maintenance button:disabled{opacity:.5;cursor:not-allowed}.cm-muted{font-size:12px;color:var(--cm-muted);line-height:1.8}.cm-eyebrow{display:block;font-size:12px;color:var(--cm-muted);margin-bottom:6px}.cm-heading{display:flex;align-items:center;gap:18px;margin-bottom:22px}.cm-heading>div{flex:1;min-width:0}.cm-heading p{margin-top:5px}.cm-link{border:0;background:transparent;color:var(--cm-muted);padding:0;text-align:left;cursor:pointer;font-size:14px;line-height:1.8}.cm-link:hover:not(:disabled){color:var(--cm-accent)}.cm-button{border:1px solid var(--cm-line);border-radius:6px;background:var(--surface-primary,#fff);color:inherit;font-size:14px;line-height:1.5;min-height:38px;padding:8px 12px;cursor:pointer}.cm-button.primary{background:var(--cm-accent);border-color:var(--cm-accent);color:#fff}.cm-button.compact{padding:5px 10px;min-height:32px}.cm-error,.cm-notice,.cm-demo,.cm-recovery{margin:12px 0!important;padding:10px 14px;border-radius:6px;overflow-wrap:anywhere}.cm-error{background:#fff5f1;color:#ae523a}.cm-notice{background:#f0f7f0;color:#5e7b62}.cm-demo,.cm-recovery{background:#fff8eb;color:#8c714d}.cm-recovery{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.cm-recovery>p{flex:1;min-width:180px}.cm-stale{font-size:13px;color:#987547;line-height:1.85;margin:13px 0!important}
.cm-layout{display:grid;grid-template-columns:minmax(205px,.8fr) minmax(360px,1.65fr) minmax(285px,1.1fr);align-items:start;border-top:1px solid var(--cm-line);min-width:0}.cm-customers{min-width:0;border-right:1px solid var(--cm-line);padding:19px 15px 25px 0}.cm-list-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:17px}.cm-list-tabs{display:flex;flex-wrap:wrap;gap:8px 13px;margin-bottom:15px}.cm-list-tabs .cm-link{font-size:13px}.cm-list-tabs [aria-pressed=true],.cm-due-filters [aria-pressed=true],.cm-task-filters [aria-pressed=true]{color:var(--cm-accent)}.cm-search{display:flex;gap:10px;align-items:center}.cm-search .cm-field{flex:1;margin:0}.cm-search .cm-field>span{font-size:12px}.cm-search input{padding:7px 9px}.cm-search>.cm-link{flex:none;margin-top:24px}.cm-due-filters,.cm-task-filters{display:flex;flex-wrap:wrap;gap:13px;margin:15px 0}.cm-due-filters .cm-link,.cm-task-filters .cm-link{font-size:13px}.cm-customer-row{display:flex;align-items:flex-start;gap:8px;border:1px solid transparent;border-radius:7px;padding:12px 10px;margin-top:9px;min-width:0}.cm-customer-row:hover{background:var(--surface-muted,#f7f8f9)}.cm-customer-row.is-selected{background:#fff8f3;border-color:#e8c2af}.cm-customer-open{display:flex;flex-direction:column;gap:5px;flex:1;min-width:0;border:0;background:transparent;color:inherit;text-align:left;padding:0;cursor:pointer}.cm-customer-open>strong{font-weight:550;font-size:14px;line-height:1.7;overflow-wrap:anywhere}.cm-row-tags,.cm-customer-tags{display:flex;flex-wrap:wrap;gap:5px 10px;font-size:12px;color:#9a795e}.cm-row-tags .is-overdue{color:#b55c49}.cm-heart{font-size:20px!important;line-height:1.5;border:0;background:transparent;color:#b0a7a0;padding:0 2px;cursor:pointer;flex:none}.cm-heart[aria-pressed=true]{color:var(--cm-accent)}.cm-mobile-list,.cm-close-list,.cm-list-backdrop{display:none}
.cm-center{min-width:0;padding:23px 24px 30px;border-right:1px solid var(--cm-line)}.cm-customer-heading{padding-bottom:21px;border-bottom:1px solid var(--cm-line);margin-bottom:21px}.cm-customer-heading h2{font-size:21px;font-weight:550;line-height:1.6;overflow-wrap:anywhere}.cm-customer-tags{margin:7px 0 9px}.cm-customer-heading>.cm-link{font-size:13px}.cm-section-heading{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:15px}.cm-facts{padding-bottom:23px;border-bottom:1px solid var(--cm-line);margin-bottom:22px}.cm-fact{margin:12px 0;border-left:2px solid #dccbbb;background:var(--surface-muted,#faf9f7);padding:14px 15px}.cm-fact.is-voided{border-left-color:#d5d8db;background:#fafafa;color:var(--cm-muted)}.cm-fact h3{margin-bottom:6px;line-height:1.85;overflow-wrap:anywhere}.cm-fact>.cm-link{font-size:12px;margin-top:10px}.cm-fact-evidence{margin-top:10px}.cm-fact-evidence>summary{cursor:pointer;font-size:13px;color:var(--cm-muted)}.cm-fact-evidence blockquote{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.9;margin:12px 0;max-height:250px;overflow:auto}.cm-field{display:flex;flex-direction:column;gap:7px;margin:14px 0;min-width:0}.cm-field>span{font-size:14px;color:var(--cm-muted)}.cm-field input,.cm-field textarea,.cm-field select{border:1px solid var(--cm-line);border-radius:6px;background:var(--surface-primary,#fff);color:inherit;padding:9px 10px;min-width:0;width:100%}.cm-field textarea{min-height:115px;line-height:1.85;resize:vertical}.cm-field input:disabled,.cm-field textarea:disabled{background:var(--surface-muted,#f8f9fa);color:inherit}.cm-fact-composer,.cm-task-composer{border:1px solid var(--cm-line);border-radius:7px;padding:16px;margin:15px 0;background:var(--surface-primary,#fff)}.cm-fact-composer>.cm-muted{margin-top:6px}.cm-chip-line{display:flex;gap:8px;margin:14px 0;flex-wrap:wrap}.cm-chip{font-size:14px;border:1px solid var(--cm-line);padding:5px 10px;border-radius:5px;background:transparent;color:inherit;cursor:pointer}.cm-chip[aria-pressed=true]{border-color:#e4b69f;background:#fff7ef;color:#a76041}.cm-extra{margin:13px 0}.cm-extra>summary{font-size:13px;color:var(--cm-muted);cursor:pointer}.cm-fact-composer>.cm-link,.cm-task-composer>.cm-link{margin-left:14px}
.cm-timeline>h2{margin-bottom:18px}.cm-timeline-row{position:relative;border-left:1px solid #e0e3e5;margin-left:4px;padding:0 0 25px 20px}.cm-timeline-row:before{content:'';position:absolute;width:7px;height:7px;top:8px;left:-4px;background:#fff;border:1px solid #b8bfc6;border-radius:50%}.cm-timeline-row>time{margin-right:12px}.cm-event-label{font-size:12px;color:#9d8876}.cm-timeline-row h3{font-size:14px;line-height:1.85;margin:7px 0;overflow-wrap:anywhere}.cm-timeline-row>.cm-link{font-size:13px}.cm-message-text{margin:10px 0}.cm-message-text>summary{font-size:13px;color:var(--cm-muted);cursor:pointer}.cm-message-text p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9;margin-top:10px;max-height:320px;overflow:auto}.cm-source-preview{padding:17px;border:1px solid #e6d5bd;border-radius:7px;background:#fffbf3;margin-bottom:20px}.cm-source-preview h3{margin-bottom:10px}.cm-source-preview>p{white-space:pre-wrap;overflow-wrap:anywhere;margin:10px 0}.cm-source-preview>.cm-link{margin-left:12px}
.cm-actions{padding:23px 0 25px 21px;min-width:0}.cm-advice{padding-bottom:23px;border-bottom:1px solid var(--cm-line);margin-bottom:22px}.cm-advice>h2{margin-bottom:12px}.cm-advice-summary{font-size:14px;line-height:1.85;margin:12px 0!important}.cm-suggestion{border:1px solid #ead2c1;border-radius:7px;background:#fffaf5;padding:15px;margin:14px 0}.cm-suggestion>p{font-size:14px;line-height:1.85;margin-top:8px;white-space:pre-wrap;overflow-wrap:anywhere}.cm-suggestion>summary{cursor:pointer;font-size:14px;font-weight:500}.cm-suggestion>.cm-button{margin-top:13px;width:100%}.cm-advice-evidence{margin-top:12px}.cm-advice-evidence>summary,.cm-advice-gaps>summary{font-size:13px;color:var(--cm-muted);cursor:pointer}.cm-advice-evidence blockquote{white-space:pre-wrap;overflow-wrap:anywhere;border-left:2px solid #dfcfbc;padding-left:10px;margin:10px 0;font-size:14px;line-height:1.85}.cm-advice-gaps{margin:14px 0}.cm-advice-gaps>p{margin-top:9px}.cm-advice>.cm-button{margin:15px 0 10px;width:100%}.cm-tasks{min-width:0}.cm-task{border:1px solid var(--cm-line);border-radius:7px;padding:14px;margin:12px 0}.cm-task.is-overdue{border-left:2px solid #b66a52}.cm-task-state{display:block;font-size:12px;color:#9a795d;margin-bottom:6px}.cm-task.is-overdue .cm-task-state{color:#b15b45}.cm-task h3{font-size:14px;line-height:1.85;overflow-wrap:anywhere}.cm-task>.cm-muted{margin-top:8px}.cm-task-notes{margin-top:10px}.cm-task-notes summary{font-size:13px;color:var(--cm-muted);cursor:pointer}.cm-task-notes p{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:9px;font-size:14px;line-height:1.85}.cm-task-actions{display:flex;flex-wrap:wrap;gap:10px 16px;margin-top:12px}.cm-task-actions>.cm-link{font-size:13px}.cm-task-footnote{font-size:12px;color:var(--cm-muted);margin-top:14px!important}.cm-private{display:block;width:fit-content;background:#f8f0e3;color:#987247;font-size:12px;border-radius:4px;padding:3px 6px;margin:8px 0}.cm-empty{display:flex;flex-direction:column;justify-content:center;gap:12px;padding:25px 10px;min-height:210px}.cm-empty h2{font-size:16px;font-weight:500;line-height:1.8}.cm-empty p{font-size:13px;line-height:1.9}.cm-center>.cm-empty{min-height:350px}
@media(max-width:1200px){.cm-layout{grid-template-columns:minmax(185px,.8fr) minmax(320px,1.55fr) minmax(260px,1.1fr)}.cm-center{padding:21px 18px}.cm-actions{padding-left:16px}.cm-customers{padding-right:12px}}
@media(max-width:1050px){.cm-layout{grid-template-columns:220px minmax(0,1fr)}.cm-customers{grid-row:1/3;align-self:stretch}.cm-center{border-right:0}.cm-actions{grid-column:2;border-top:1px solid var(--cm-line);padding:22px 18px}.cm-advice>.cm-button{width:auto}}
@media(max-width:700px){.cm-heading{flex-wrap:wrap;gap:12px;margin-bottom:18px}.cm-heading>div{flex-basis:100%}.customer-maintenance h1{font-size:21px}.cm-mobile-list{display:inline-block}.cm-layout{display:flex;flex-direction:column;border-top:0}.cm-customers{display:none}.cm-customers.is-open{display:block;position:fixed;inset:12px auto 12px 12px;width:min(340px,calc(100vw - 30px));height:calc(100dvh - 24px);padding:17px;max-height:none;z-index:402;overflow:auto;background:var(--surface-primary,#fff);border:1px solid var(--cm-line);border-radius:8px;box-shadow:0 15px 60px #10192428;overscroll-behavior:contain}.cm-close-list{display:block}.cm-list-heading{position:sticky;top:0;background:var(--surface-primary,#fff);padding-bottom:12px;z-index:1}.cm-list-backdrop{display:block;position:fixed;inset:0;background:#1e273745;border:0;z-index:401;touch-action:none}.cm-center{width:100%;padding:18px 0 22px;border-top:1px solid var(--cm-line)}.cm-actions{width:100%;padding:20px 0;border-top:1px solid var(--cm-line)}.cm-field input,.cm-field textarea,.cm-field select{font-size:16px}.cm-customer-heading h2{font-size:20px}.cm-fact-composer,.cm-task-composer{padding:14px}.cm-section-heading{align-items:flex-start}.cm-recovery{align-items:flex-start;flex-direction:column}.cm-center>.cm-empty{min-height:260px}.cm-advice>.cm-button{width:100%}}

.cm-source-notes{margin:12px 0}.cm-source-notes>summary{font-size:13px;color:var(--cm-muted);cursor:pointer}.cm-source-notes>p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.85;max-height:260px;overflow:auto;margin-top:10px}
/* 0856: maintenance sections use shared space instead of repeated dividers. */
.cm-layout{border:0;column-gap:24px}
.cm-customers,.cm-center,.cm-actions{border:0;padding:0 0 20px}
.cm-list-heading{margin-bottom:14px;gap:8px}
.cm-list-heading>h2{margin-right:auto}
.cm-list-heading>.cm-link{font-size:12px;white-space:nowrap}
.cm-search>.cm-link{margin-top:0}
.cm-search .cm-field>span,.cm-task-footnote{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap;border:0}
.cm-customer-heading,.cm-facts,.cm-advice{border:0;padding-bottom:0;margin-bottom:24px}
.cm-customer-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 12px}
.cm-customer-heading>.cm-eyebrow{grid-column:1;grid-row:1;margin:0}
.cm-customer-heading h2{grid-column:1;grid-row:2;margin:0}
.cm-customer-heading>.cm-link{grid-column:2;grid-row:2;align-self:center;font-size:12px}
.cm-customer-tags{grid-column:1/-1;margin:0}
.cm-customer-heading>.cm-mobile-list{grid-column:2;grid-row:1}
.cm-evidence-note,.cm-analysis-scope{font-size:12px;color:var(--cm-muted);margin:9px 0}
.cm-evidence-note>summary,.cm-analysis-scope>summary{cursor:pointer;width:fit-content}
.cm-evidence-note>p,.cm-analysis-scope>p{margin-top:7px}
.cm-empty{min-height:110px;gap:7px;padding:18px 8px}
.cm-center>.cm-empty{min-height:150px;padding-top:12px}
.cm-layout.is-empty{grid-template-columns:minmax(205px,.8fr) minmax(0,2.75fr)}
.cm-layout.is-empty .cm-actions{display:none}
.cm-advice>.cm-button{margin-top:12px}
.cm-task{border-color:transparent;background:#fafafa}
@media(max-width:1200px){.cm-layout{column-gap:20px}.cm-center,.cm-actions,.cm-customers{padding:0 0 20px}}
@media(max-width:1050px){.cm-actions{border:0;padding:0 0 20px}.cm-layout.is-empty{grid-template-columns:220px minmax(0,1fr)}}
@media(max-width:700px){.cm-layout{gap:18px}.cm-center,.cm-actions{padding:0;border:0}.cm-customer-heading{gap:6px 10px}.cm-customer-heading h2{font-size:19px}.cm-customer-heading>.cm-link{font-size:12px}.cm-center>.cm-empty{min-height:120px}.cm-customers.is-open{padding:16px}.cm-layout.is-empty{display:flex}.cm-list-heading{padding-bottom:8px}}
/* 0858: cursor pages keep long maintenance directories inside the list. */
.cm-customers{display:flex;flex-direction:column;min-height:0;max-height:calc(100dvh - 112px);overflow:hidden}
.cm-list-count{margin:0 0 7px!important;font-size:12px}
.cm-list-body{min-height:0;max-height:min(560px,calc(100dvh - 300px));overflow-y:auto;overscroll-behavior-y:contain;scroll-padding-block:6px}
.cm-list-body .cm-customer-row{padding:9px 8px;margin-top:4px}
.cm-list-body .cm-customer-open{gap:3px}
.cm-list-body .cm-customer-open>strong{font-size:14px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.cm-list-body .cm-customer-open>.cm-muted{font-size:12px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cm-list-body .cm-row-tags:empty{display:none}
.cm-list-pagination{display:flex;align-items:center;justify-content:space-between;flex:none;gap:6px;margin-top:10px;min-height:32px}
.cm-list-pagination>.cm-link{font-size:12px;white-space:nowrap;min-height:32px}
.cm-page-status{font-size:11px;color:var(--cm-muted);white-space:nowrap}
.cm-page-status:focus{outline:0}
.cm-error{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.cm-error>p{flex:1;min-width:120px}
.cm-error>.cm-link{font-size:12px;white-space:nowrap}
@media(max-width:700px){.cm-customers{display:none;max-height:none}.cm-customers.is-open{display:flex;overflow:hidden}.cm-customers.is-open .cm-list-body{flex:1;max-height:none;overflow-y:auto}.cm-list-pagination>.cm-link{min-height:44px}}
