/* Customer-only structure; shared shell and theme remain unchanged. */
.cc-list,.cc-detail{display:grid;gap:14px}.cc-card,.cc-section{background:#fff;border:1px solid var(--line,#e5e8ec);border-radius:var(--radius-md,12px);padding:18px}.cc-card h3,.cc-section h3{margin:0}.cc-card .section-head{align-items:center}.cc-source,.cc-mode{color:var(--muted,#687381);font-size:13px}.cc-mode{margin:0 0 16px}.cc-tags{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}.cc-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0}.cc-facts div{min-width:0}.cc-facts dt{font-size:12px;color:var(--muted,#687381);margin-bottom:5px}.cc-facts dd{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}.cc-text{white-space:pre-wrap;overflow-wrap:anywhere}.cc-section summary,.cc-form-more summary{cursor:pointer;font-weight:600;list-style-position:inside}.cc-supplement,.cc-links form{padding-top:14px}.cc-links{border-top:1px solid var(--line,#e5e8ec);padding-top:14px;margin-top:16px}.cc-links h4{margin:18px 0 8px}.cc-form-more{grid-column:1/-1;padding:12px 0}.cc-form-more>.form-grid{padding-top:14px}.cc-tag-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:18px}.cc-history-controls{margin-top:16px;display:flex;gap:12px;justify-content:space-between}.cc-detail .history-item{border-bottom:1px solid var(--line,#e5e8ec);padding:14px 0}.cc-detail .history-item:last-child{border-bottom:0}.cc-detail .history-item small{color:var(--muted,#687381);line-height:1.6}.cc-detail .history-item p{margin:8px 0}@media(max-width:720px){.cc-facts{grid-template-columns:1fr}.cc-card,.cc-section{padding:14px}.cc-card .section-head{flex-wrap:wrap}.cc-tag-options{grid-template-columns:1fr}}

.cc-card h3 .linkbutton{font-size:16px;font-weight:650;padding:0;line-height:1.4;justify-content:flex-start}

.cc-summary-group{margin-top:18px}.cc-summary-group h4{margin:0;color:var(--muted,#687381);font-size:14px;font-weight:650}.cc-summary-group .cc-facts{margin:12px 0 0}

/* The approved reference applies only to the customer list, inside the original shell. */
.cc-center{--cc-line:var(--line,#e5e8ec);--cc-muted:var(--muted,#5d6a77);--cc-primary-text:#1f2933;container-type:inline-size;display:flex;flex-direction:column;height:100%;min-height:0;width:100%;max-width:none;margin:0;background:transparent;color:var(--ink,#29343f);border:0;border-radius:0;padding:0;font-family:inherit}
.cc-title-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:28px;margin-bottom:22px}
.cc-title-row h2{font-size:24px;font-weight:750;line-height:1.25;letter-spacing:0;margin:0;color:inherit}
.cc-title-actions{display:flex;align-items:center;gap:12px}.cc-title-actions>span{color:var(--cc-muted);font-size:12px;white-space:nowrap}.cc-center .cc-create{border:1px solid var(--input-border,#dfe5eb);border-radius:16px;padding:4px 10px;font-size:12px;line-height:16px;white-space:nowrap;color:var(--ink,#29343f);background:var(--surface,#fff)}
.cc-center #cc-search,.cc-center select{box-sizing:border-box;min-width:0;width:100%;height:36px;border:1px solid var(--input-border,#dfe5eb);border-radius:40px;background-color:var(--surface,#fff);color:var(--ink,#29343f);padding:0 14px;font:inherit;font-size:13px;box-shadow:none;outline-offset:4px}
.cc-center #cc-search::placeholder{color:var(--muted,#5d6a77);opacity:1}.cc-center #cc-search:focus,.cc-center select:focus{border-color:var(--focus,#427c92);outline:none;box-shadow:none}.cc-center #cc-search:focus-visible,.cc-center select:focus-visible{box-shadow:inset 0 0 0 1px var(--focus,#427c92)}
.cc-date-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px;min-width:0;width:100%}
.cc-center select{appearance:none;padding-right:52px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%235d6a77' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 8 8 8 8-8'/%3E%3C/svg%3E");background-position:right 14px center;background-repeat:no-repeat;background-size:16px}
.cc-table-scroll{flex:1;min-height:0;overflow-x:clip;max-height:none;scrollbar-width:none;margin-top:16px}.cc-table{width:100%;min-width:0;border-collapse:collapse;table-layout:fixed;text-align:left;border:0;background:transparent}
.cc-col-customer,.cc-col-contact,.cc-col-last-date,.cc-col-status,.cc-col-plans{width:20%}
.cc-table th{height:36px;padding:3px 10px 3px 0;border:0;border-bottom:1px solid var(--cc-line);background:transparent;color:var(--cc-primary-text);font-size:14px;font-weight:700;vertical-align:middle;text-align:left;white-space:nowrap}
.cc-table td{height:48px;padding:6px 10px 6px 0;border:0;border-bottom:1px solid var(--cc-line);vertical-align:middle;font-size:12px;font-weight:400;line-height:1.35;color:var(--cc-primary-text);cursor:pointer}
.cc-table #cc-rows tr[data-customer-row],.cc-table #cc-rows tr[data-customer-row] td{height:48px}
.cc-table th:last-child,.cc-table td:last-child{padding-right:0}.cc-table .cc-primary-value{font-size:12px;font-weight:400;line-height:1.35;color:var(--cc-primary-text)}.cc-table .cc-recent-label,.cc-table .cc-plan-count,.cc-table .cc-follow-count{display:block;white-space:nowrap}
.cc-table td small{display:block;color:var(--cc-muted);font-size:12px;line-height:1.3;margin-top:1px;overflow-wrap:anywhere}.cc-stage-cell{white-space:nowrap}
.cc-center button{border:0;background:transparent;color:inherit;box-shadow:none;min-height:0;border-radius:4px;font-family:inherit;padding:0;cursor:pointer;letter-spacing:0;transition:none}.cc-center button:focus-visible{outline:2px solid var(--focus,#427c92);outline-offset:5px}.cc-center button:hover{background:transparent;color:var(--accent,#356f9e)}
.cc-center .cc-customer-name{display:inline-flex;align-items:center;font-weight:500;line-height:1.3;text-align:left;max-width:100%;overflow-wrap:anywhere}.cc-center .cc-customer-name.is-emphasized{font-weight:700}.cc-icon{width:14px;height:14px;vertical-align:middle}
.cc-contact-line{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px;margin-top:1px;color:var(--cc-muted);font-size:12px;line-height:1.3}
.cc-center .cc-heading-button{display:inline-flex;align-items:center;gap:5px;font:inherit;line-height:inherit;font-weight:inherit;color:inherit}.cc-heading-button .cc-icon{color:var(--cc-muted)}
.cc-status-heading{position:relative}.cc-filter-count{font-size:12px;border:1px solid var(--input-border,#dfe5eb);border-radius:10px;min-width:18px;text-align:center}.cc-filter-count[hidden]{display:none}
.cc-status-popup{position:fixed;z-index:20;inset:auto;margin:0;width:220px;padding:18px;background:var(--surface,#fff);border:1px solid var(--input-border,#dfe5eb);border-radius:14px;box-shadow:0 10px 30px rgba(30,41,52,.12);white-space:normal;color:var(--ink,#29343f);font-size:14px;font-weight:400}.cc-status-popup[hidden]{display:none}.cc-status-popup p{margin:0 0 12px;font-weight:650}.cc-status-options{display:grid;gap:10px}.cc-status-options label{display:flex;align-items:center;gap:10px;cursor:pointer}.cc-status-options label span{margin-right:auto}.cc-status-options label b{min-width:28px;text-align:right;color:var(--cc-muted);font-size:13px;font-weight:600}.cc-status-options input{appearance:auto;accent-color:var(--accent,#356f9e);width:16px;height:16px;margin:0;min-height:0}.cc-popup-actions{display:flex;justify-content:space-between;margin-top:18px;padding-top:14px;border-top:1px solid var(--cc-line)}.cc-center .cc-popup-actions button{font-size:13px;padding:5px}.cc-center .cc-popup-actions button:last-child{border:1px solid var(--input-border,#dfe5eb);border-radius:14px;padding:5px 16px}
.cc-table td.cc-empty{height:120px;text-align:center;color:var(--cc-muted);cursor:default;font-size:14px}.cc-empty strong,.cc-empty span{display:block;margin:10px}.cc-center .cc-empty button{display:block;margin:14px auto;text-decoration:underline}
.cc-list-footer{margin-top:20px;color:var(--cc-muted)}.cc-pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px}.cc-page-summary{font-size:12px;line-height:18px;white-space:nowrap}.cc-page-summary span{display:block}.cc-page-controls{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-left:auto}.cc-center .cc-page-controls button{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border:1px solid var(--input-border,#dfe5eb);border-radius:50%;font-size:13px;line-height:1}.cc-center .cc-page-controls button[aria-current="page"]{background:var(--surface-selected,#eef4fa);color:var(--ink,#29343f);border-color:var(--input-border,#dfe5eb)}.cc-center .cc-page-controls button:disabled{opacity:.35;cursor:default}.cc-page-ellipsis{font-size:12px;padding:0 2px}.cc-center .cc-footer-link{font-size:12px;text-decoration:underline;text-underline-offset:3px}.cc-status-help{font-size:12px;grid-column:1/-1;margin:0}
@media(max-width:720px){.cc-title-row h2{font-size:24px}.cc-date-filters{gap:12px}.cc-center select{padding-left:16px;padding-right:35px;background-position:right 12px center;background-size:16px}.cc-pagination{flex-wrap:wrap;gap:8px}.cc-title-actions{gap:6px}.cc-title-actions>span{font-size:11px}}

@container (max-width:760px){.cc-table th{padding-right:4px;font-size:12px;white-space:normal;line-height:1.15}.cc-table td{padding-right:4px;font-size:11px}.cc-table .cc-primary-value{font-size:11px}.cc-table td small,.cc-contact-line{font-size:10px}}
@media(max-height:760px) and (min-width:981px){.cc-title-row{min-height:26px;margin-bottom:18px}.cc-title-row h2{font-size:23px}.cc-center #cc-search,.cc-center select{height:34px}.cc-date-filters{margin-top:12px;gap:10px}.cc-table-scroll{margin-top:12px}.cc-table th{height:32px}.cc-table td{height:48px;padding:6px 10px 6px 0;line-height:1.35}.cc-table .cc-primary-value{font-size:12px;line-height:1.35}.cc-table td small,.cc-contact-line{font-size:11px;line-height:1.3}.cc-table td small{margin-top:2px}.cc-list-footer{margin-top:10px}.cc-center .cc-page-controls button{width:32px;height:32px}.cc-page-summary{font-size:11px;line-height:15px}}

@media(min-height:761px) and (max-height:820px) and (min-width:981px){.cc-title-row{margin-bottom:20px}.cc-date-filters{margin-top:12px}.cc-table-scroll{margin-top:12px}.cc-table th{height:32px}.cc-table td{height:48px;padding:6px 10px 6px 0;line-height:1.35}.cc-table .cc-primary-value{font-size:12px;line-height:1.35}.cc-table td small,.cc-contact-line{font-size:11px;line-height:1.3}.cc-list-footer{margin-top:8px}.cc-center .cc-page-controls button{width:34px;height:34px}}

.center:has(#main > .cc-center){padding-top:18px;padding-bottom:20px}
.center:has(#main > .cc-center) #main{width:100%;max-width:none;margin:0}
.layout:has(.center #main > .cc-center) + #overlays .taskbar{display:none}

/* Keep customer values and headings evenly inset from the list edges. */
.cc-table th,.cc-table td{padding-inline:12px}

/* Give every table column the same width, inset and clear type hierarchy. */
.cc-col-customer,.cc-col-contact,.cc-col-last-date,.cc-col-status,.cc-col-plans{width:20%}
.cc-table th,.cc-table td{box-sizing:border-box;padding-inline:16px}
.cc-table th{font-size:14px;text-align:center}
.cc-table td,.cc-table .cc-primary-value{font-size:12px;text-align:center}
.cc-table th:last-child,.cc-table td:last-child{padding-right:16px}

/* Rounded, opaque date menus match the closed filter controls. */
.cc-date-filters{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}
.cc-date-filter{position:relative;min-width:0}
.cc-center .cc-date-trigger{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;width:100%;height:36px;padding:0 14px;border:1px solid var(--input-border,#dfe5eb);border-radius:40px;background:var(--surface,#fff);color:var(--ink,#29343f);font:inherit;font-size:13px;text-align:left}
.cc-date-trigger .cc-icon{width:16px;height:16px;flex:none;color:var(--muted,#5d6a77)}
.cc-date-options{position:absolute;z-index:30;top:calc(100% + 8px);left:0;right:0;box-sizing:border-box;display:grid;gap:4px;max-height:260px;overflow:auto;padding:8px;border:1px solid var(--input-border,#dfe5eb);border-radius:24px;background:#fff;box-shadow:0 12px 32px rgba(30,41,52,.16)}
.cc-date-options[hidden]{display:none}
.cc-center .cc-date-options>button{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:38px;padding:0 12px;border:0;border-radius:16px;background:transparent;color:var(--ink,#29343f);font:inherit;font-size:13px;text-align:left}
.cc-center .cc-date-options>button[aria-selected="true"]{background:#eef1f3;font-weight:650}
.cc-date-options>button small{color:var(--muted,#5d6a77);font-size:12px}
.cc-date-trigger:focus-visible,.cc-date-options>button:focus-visible{outline:2px solid var(--focus,#427c92);outline-offset:2px}
.cc-center .cc-date-trigger:hover,.cc-center .cc-date-trigger:focus{background:#fff;color:var(--ink,#29343f)}
.cc-contact-line{justify-content:center}
.cc-status-popup{background:#fff;background-image:none;backdrop-filter:none}
@container (max-width:760px){.cc-table th,.cc-table td{padding-inline:8px}.cc-table th{font-size:13px}.cc-table td,.cc-table .cc-primary-value{font-size:11px}.cc-table th:last-child,.cc-table td:last-child{padding-right:8px}}

/* Compact customer detail facts: make fuller use of the available center column. */
.cc-detail{container-type:inline-size}
.cc-detail .cc-facts--compact{grid-template-columns:repeat(3,minmax(0,1fr));column-gap:18px;row-gap:10px;margin:12px 0}
.cc-detail .cc-facts--compact div{min-width:0}
.cc-detail .cc-facts--compact dt{margin-bottom:3px}
.cc-summary-group{margin-top:12px}
.cc-summary-group h4{margin:0;color:var(--muted,#687381);font-size:13px;font-weight:650}
.cc-summary-contact{padding-top:10px;border-top:1px solid var(--line,#e5e8ec)}
.cc-concern .cc-text{margin:8px 0 0}
.cc-detail .cc-facts--compact dd small{display:block;margin-top:2px;color:var(--muted,#687381);font-size:11px}
@container (min-width:920px){.cc-detail .cc-facts--compact{grid-template-columns:repeat(4,minmax(0,1fr))}}
@container (max-width:520px){.cc-detail .cc-facts--compact{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px}}
@container (max-width:360px){.cc-detail .cc-facts--compact{grid-template-columns:1fr}}

.cc-detail .cc-facts--wechat{grid-template-columns:repeat(4,minmax(0,1fr))}
.cc-legacy-tools{margin-top:20px;padding-top:16px;border-top:1px solid var(--line,#e5e8ec)}
#cc-memory{display:grid;gap:20px}
@container (max-width:520px){.cc-detail .cc-facts--wechat{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container (max-width:360px){.cc-detail .cc-facts--wechat{grid-template-columns:1fr}}
