/* 只由销售 index 加载；不修改管理后台共用 app.css。 */
:root{--primary:#7643c8;--deep:#7643c8;--text:#273046;--muted:#7e8799;--line:#e8eaf0;--bg:#f6f8fc}
body{background:#f6f8fc;color:#273046;font-family:-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif;font-size:15px;line-height:1.6;overflow-x:hidden}button,input,select,textarea{font-size:15px}button,.btn{gap:7px;padding:8px 13px;min-height:35px;border-radius:6px;white-space:nowrap}.btn.primary{background:#7643c8;border-color:#7643c8;color:#fff}.sidebar{width:210px;background:#251e3c;padding:20px 12px 100px;color:#c6bfd7;border:0}.sidebar .brand{padding:0 4px 20px;gap:8px;border-bottom:1px solid #ffffff15}.sidebar .brand h2{font-size:17px;color:#fff}.sidebar .brand small{color:#aaa1bf}.sidebar .brand-mark{width:32px;height:32px;background:none}.sidebar .nav{margin-top:22px;gap:12px}.sidebar .nav a{font-size:15px;padding:11px 13px;gap:11px;color:#c6bfd7;min-height:44px;border-radius:7px}.sidebar .nav a.active{background:#7543c6;color:#fff}.sidebar>.btn{margin:20px 0 0;width:100%;background:#ffffff0d;border-color:#ffffff20}.sidebar-toggle{color:#d6cee7;background:#312747}.side-foot{background:#251e3c;padding:15px 8px;border-top:1px solid #ffffff16}.side-foot .workspace-identity{color:#fff}.workspace-identity small{display:block;font-size:12px;color:#9298a7}.workspace-identity .avatar{width:34px;height:34px;font-size:16px;background:#e9e0ff;color:#7643c8}.side-foot .workspace-identity small{color:#aaa1bf}.shell{margin-left:210px;min-width:0}.topbar{height:64px;padding:0 26px;gap:16px;background:#fff;border-bottom:1px solid var(--line)}.topbar .search{max-width:330px}.topbar .profile{cursor:pointer}.topbar-clock{font-size:13px}.content{padding:26px;max-width:none;min-width:0}.page-heading{margin-bottom:24px;gap:16px}.page-heading h1{font-size:21px;font-weight:650;line-height:1.5}.page-heading p{font-size:14px;color:#8a91a1;margin-top:5px}h2{font-size:18px}h3{font-size:16px}.panel{border:1px solid #e8eaf0;box-shadow:0 2px 6px #23314a03;border-radius:8px;background:#fff;min-width:0}.panel.pad{padding:20px}.row{min-width:0}.block{display:block}.table-scroll{width:100%;max-width:100%;overflow-x:auto}.customer-table{width:100%;min-width:1130px;table-layout:auto}.customer-table th{font-size:15px;font-weight:700;color:#626d84;padding:13px 12px;text-align:left}.customer-table td{font-size:14px;padding:15px 12px;text-align:left;vertical-align:middle;white-space:normal}.customer-table .date-cell{white-space:nowrap}.customer-table .name{white-space:nowrap}.customer-tags{display:grid;grid-template-columns:repeat(3,max-content);gap:5px;max-width:100%}.customer-tags .tag{white-space:nowrap;display:inline-block;font-size:12px;padding:3px 7px}.customer-status-filters{margin:20px 0;flex-wrap:wrap}.customer-status-filters>button{padding:0;border:0;background:none}.customer-status-filters>button.active{outline:2px solid #aa8ccd;outline-offset:2px}.progress-done{background:#e8f5ed;color:#397852;border-color:#cde5d5}.progress-pending{background:#fff1c9;color:#795b18;border-color:#e8cc83}.progress-declined{background:#59616d;color:#fff;border-color:#59616d}.progress-unset{background:#f5f6f8;color:#7e8799}.grade-label{display:inline-block;white-space:nowrap;padding:3px 9px;border-radius:5px;background:color-mix(in srgb,var(--grade) 11%,white);color:var(--grade);border:1px solid color-mix(in srgb,var(--grade) 25%,white);font-size:14px}.tag-options{border:1px solid #e8eaf0;border-radius:6px;padding:12px;display:flex;gap:12px;flex-wrap:wrap}.tag-options legend{color:#66718a}.tag-options label{display:flex;align-items:center;gap:6px}.grade-form-field small{font-size:13px}.grade-def{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;border:1px solid #e8eaf0;border-radius:7px;padding:16px;margin-bottom:14px}.grade-def .field{margin:0}.grade-name,.grade-color{height:44px;width:100%}.grade-def>.field,.grade-preview-field{min-width:0}.grade-preview-field>label{display:block;margin-bottom:7px;font-size:var(--fs-secondary,13px);font-weight:500;color:var(--muted)}.grade-preview{height:44px;display:flex;align-items:center;padding:0 12px;border:1px solid var(--line-strong);border-radius:var(--radius-control);background:var(--bg-elevated);box-sizing:border-box;overflow:hidden}.grade-preview .grade-label{max-width:100%;overflow:hidden;text-overflow:ellipsis}.grade-intent-setting{display:grid;gap:4px}.grade-intent-setting small{font-size:var(--fs-caption,12px);font-weight:400;color:var(--muted)}.grade-footer{grid-column:1/-1;display:flex;gap:15px;align-items:flex-start;flex-wrap:wrap}.grade-footer .row{margin-left:auto}.grade-footer label{display:flex;align-items:center;gap:7px}select:not([multiple]){appearance:none;-webkit-appearance:none;padding-right:38px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%2352617b' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:16px}.workspace-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px;margin-bottom:22px}.workspace-metric{padding:20px;color:inherit}.workspace-metric h3{font-size:14px;color:#7e8799;font-weight:500}.workspace-metric h3 span{float:right;color:#b4a0d3}.workspace-metric>strong{display:block;font-size:30px;font-weight:650;margin:13px 0;color:#63507e}.workspace-metric small{font-size:12px}.workspace-metric p{font-size:12px;color:#9298a7;margin-top:8px}.workspace-charts{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:20px;align-items:start}.workspace-charts h2{font-size:16px}.trend-chart{width:100%;min-height:180px;margin-top:20px}.trend-chart text{font-size:10px;fill:#7e8799}.grade-stat{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px;padding:10px 0;border-bottom:1px solid #f0f1f5;color:inherit}.grade-stat .grade-label{justify-self:start}.grade-stat small,.grade-stat p{grid-column:1/-1;font-size:12px}.workspace-funnel{display:flex;flex-direction:column;align-items:center;gap:5px;margin:20px 0}.workspace-funnel a{display:flex;justify-content:space-between;align-items:center;color:white;padding:9px 12px;border-radius:3px;font-size:13px}.workspace-charts .muted{font-size:12px;margin-top:8px}.workspace-pending{margin-top:22px}.workspace-pending .task-card{box-shadow:none;border:1px solid #eeedf3}.schedule-controls{margin-bottom:20px}.schedule-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;margin:18px 0}.schedule-week .btn{display:flex;flex-direction:column;gap:4px;background:#f8f9fc;border:1px solid #eaecf2;padding:10px}.schedule-week button[aria-pressed=true],.schedule-controls button[aria-pressed=true]{background:#eee5fb;border-color:#b69bdc;color:#7543c6}.schedule-columns{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:20px}.schedule-task{padding:15px 0;border-bottom:1px solid #eef0f5}.schedule-task.selected{border-left:3px solid #8263c7;padding-left:12px}.schedule-task>[data-action=schedule-select]{display:flex;flex-direction:column;align-items:flex-start;text-align:left;border:0;background:none;width:100%;white-space:normal}.schedule-task>.row{padding:10px 13px 0}.schedule-history{position:sticky;top:80px;align-self:start;max-height:80vh;overflow:auto}.followup-timeline small{display:block;color:#8a91a1;font-size:12px}.followup-timeline p{overflow-wrap:anywhere}.detail-grid{grid-template-columns:minmax(270px,.8fr) minmax(0,1.8fr)}.settings-layout{grid-template-columns:210px minmax(0,1fr);gap:22px}.settings-nav{padding:14px;background:#fff;border:1px solid #e8eaf0;border-radius:8px;align-self:start}.settings-nav>a{padding:13px 14px;margin:5px 0;border-radius:6px}.settings-nav>a.active{background:#f1e9fb;color:#7643c8}.library-tools{margin-bottom:20px;flex-wrap:wrap}.footer-badge{font-size:11px}.source-preview img{max-width:100%;max-height:400px;object-fit:contain}.sidebar.collapsed{width:76px}.sidebar.collapsed+.shell{margin-left:76px}.sidebar.collapsed .workspace-identity>span:not(.avatar){display:none}.sidebar.collapsed .side-foot{padding:10px 0}.sidebar.collapsed .brand-copy{display:none}
@media(max-width:1200px){.workspace-charts{grid-template-columns:1fr 1fr}.workspace-charts>section:first-child{grid-column:1/-1}.workspace-metrics{gap:10px}.workspace-metric{padding:15px}.topbar .profile small{display:none}.page-heading>.row{flex-wrap:wrap}}
@media(max-width:900px){.sidebar{transform:translateX(-100%);width:210px!important}.sidebar.open{transform:none}.shell,.sidebar.collapsed+.shell{margin-left:0}.mobile-menu{display:inline-flex!important}.topbar{padding:0 16px}.content{padding:20px 16px}.schedule-columns,.detail-grid{grid-template-columns:1fr}.schedule-history{position:static;max-height:none}.workspace-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.settings-layout{grid-template-columns:170px minmax(0,1fr)}.topbar-clock{display:none}.page-heading{flex-wrap:wrap}.sidebar.collapsed .nav-label,.sidebar.collapsed .brand-copy{display:block}.sidebar.collapsed .workspace-identity>span:not(.avatar){display:block}}
@media(max-width:600px){.workspace-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-charts{grid-template-columns:1fr}.workspace-charts>section:first-child{grid-column:auto}.settings-layout{grid-template-columns:1fr}.settings-nav{display:flex;overflow-x:auto;gap:4px}.settings-nav>a{flex-shrink:0;font-size:13px;margin:0}.schedule-week{gap:4px}.schedule-week .btn{padding:8px 3px;font-size:12px}.btn,button{font-size:13px}.topbar .search{width:100%;min-width:0}.topbar .profile,.topbar a[href='/?account=1']{display:none}.topbar .row{gap:5px}.content{padding:18px 12px}.page-heading .workspace-identity{display:none}.page-heading label{font-size:13px}.panel.pad{padding:16px}.grade-def{grid-template-columns:minmax(0,1fr);gap:14px;padding:12px}.schedule-controls .row{flex-wrap:wrap}.form-grid{grid-template-columns:1fr}.customer-batch-bar{flex-wrap:wrap}.task-card>.row{flex-wrap:wrap}.task-card .actions{width:100%}.footer-badge{display:none}.drawer{width:100%;max-width:100%}.profile-avatar-editor{flex-wrap:wrap}}
/* 清除旧销售皮肤的留白与玻璃效果，保持确认的平面白紫界面。 */
:root{--glass-sheen:none;--glass-inset:0 0 transparent;--glass-shadow:0 1px 3px #23314a03;--glass-shadow-sm:0 0 transparent;--glass-blur:none}
.shell{padding-left:0}.sidebar{inset:0 auto 0 0;border-radius:0;box-shadow:none}.sidebar .brand{margin:0 0 0}.btn,.btn.primary,.btn:hover:not(:disabled),.btn.primary:hover:not(:disabled){box-shadow:none;transform:none}.btn{background:#fff;font-weight:500;color:#52617b;border-color:#e1e5ee}.btn.primary{background:#7643c8;color:white;border-color:#7643c8}.sidebar>.btn{background:#ffffff0d;color:#ded5ed;border-color:#ffffff20}.sidebar .nav a{font-weight:500}.sidebar .nav a.active,.settings-nav a.active{box-shadow:none}.topbar{backdrop-filter:none}.sidebar-toggle{box-shadow:none}.settings-content{max-width:none}
.inline-grade{width:126px;min-width:126px;color:var(--grade);background-color:color-mix(in srgb,var(--grade) 10%,white);border-color:color-mix(in srgb,var(--grade) 24%,white);font-size:14px}.inline-grade-error{display:block;color:#b33b50;white-space:normal;max-width:170px}.inline-grade-error:empty{display:none}.tag-editor-trigger{border:0;background:transparent;text-align:left;justify-content:start;padding:4px 0;box-shadow:none;min-height:30px}.tag-editor-trigger:hover{background:#faf8ff}.customer-tags{max-width:none}
.btn{font-size:15px}@media(max-width:600px){.btn{font-size:13px}}
/* 总览与客户详情：沿用已确认的概况、摘要、时间线与待办布局。 */
.topbar .sidebar-toggle{position:static;flex:0 0 38px;width:38px;height:38px;min-height:38px;padding:0;display:inline-flex;align-items:center;justify-content:center;border:1px solid #e1e5ee;border-radius:7px;background:#fff;color:#66718a;box-shadow:none}.topbar .sidebar-toggle:hover{background:#f4effb;color:#7643c8}.topbar .sidebar-toggle:focus-visible{outline:2px solid #9871d3;outline-offset:2px}.topbar .sidebar-toggle .material-symbols-outlined{font-size:23px;line-height:1}.grade-setup{display:flex;flex-direction:column;gap:3px;font-size:13px;white-space:nowrap}.grade-setup-link{display:inline-block;font-weight:600;color:#7643c8;font-size:14px;white-space:nowrap}.customer-detail-heading>.row{flex-wrap:wrap}.customer-overview{display:grid;grid-template-columns:minmax(200px,.75fr) minmax(0,2fr);gap:28px;margin-bottom:20px}.customer-identity{display:flex;align-items:flex-start;gap:14px;padding:8px 24px 8px 0;border-right:1px solid #eef0f5}.customer-identity h2{font-size:21px;overflow-wrap:anywhere}.customer-identity p{color:#8791a3;margin:6px 0 12px;font-size:13px}.customer-identity .avatar{flex-shrink:0}.customer-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 22px;margin:0}.customer-facts dt{color:#8490a6;font-size:13px;margin-bottom:5px}.customer-facts dd{margin:0;font-size:15px;overflow-wrap:anywhere}.customer-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}.customer-summary article{display:flex;gap:12px;padding:18px;align-items:flex-start;min-width:0}.summary-icon{display:grid;place-items:center;flex-shrink:0;width:34px;height:34px;border-radius:8px;background:#f1ebfb;color:#9273bc}.customer-summary p{font-size:13px;color:#8490a6;margin-bottom:6px}.customer-summary strong{display:block;font-size:16px;font-weight:600;overflow-wrap:anywhere}.customer-summary small{display:block;color:#929bae;font-size:12px;margin-top:6px}.customer-detail-columns{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,1fr);gap:22px;align-items:start}.customer-detail-columns>div,.customer-detail-columns>aside{display:grid;gap:20px;min-width:0}.customer-detail-columns .panel-head{gap:12px;flex-wrap:wrap}.customer-detail-columns .panel-head h2{font-size:17px}.customer-detail-columns .panel-head .material-symbols-outlined{color:#977bbb;font-size:21px}.customer-detail-columns .followup-timeline{margin-top:6px}.customer-extra{margin-top:18px;padding-top:14px;border-top:1px solid #eef0f5}.customer-extra summary,.customer-message-source summary{cursor:pointer;color:#76839d;font-weight:500}.customer-extra article{padding:14px 0;border-bottom:1px solid #eef0f5}.customer-extra small{display:block;color:#8993a6}.customer-detail-tasks h3{font-size:13px;color:#8a789f;margin-bottom:8px}.customer-detail-tasks article{padding:12px 0 16px;margin-bottom:10px;border-bottom:1px solid #eef0f5}.customer-detail-tasks b{display:block;overflow-wrap:anywhere}.customer-detail-tasks time{display:block;color:#8a91a1;font-size:13px;margin:5px 0 12px}.customer-detail-tasks .btn{font-size:13px;padding:6px 9px}.customer-detail-tags .field-label{display:block;color:#8490a6;font-size:13px;margin:15px 0 8px}.customer-detail-tags .customer-tags{display:flex;flex-wrap:wrap;white-space:normal;max-width:100%}.customer-detail-tags .tag{max-width:100%;overflow-wrap:anywhere;white-space:normal}.customer-detail-tags .customer-facts{grid-template-columns:1fr}.customer-note{overflow-wrap:anywhere}.customer-originals .messages{padding:16px 0;max-height:600px;overflow:auto}
@media(min-width:901px){.topbar .mobile-menu{display:none!important}}
@media(max-width:1100px){.customer-overview{grid-template-columns:1fr}.customer-identity{border-right:0;border-bottom:1px solid #eef0f5;padding:0 0 18px}.customer-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-detail-columns{grid-template-columns:minmax(0,1.4fr) minmax(280px,1fr)}}
@media(max-width:900px){.topbar .sidebar-toggle{display:none}.customer-detail-columns{grid-template-columns:1fr}.customer-facts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.customer-overview{gap:18px}.customer-summary{gap:10px}.customer-summary article{padding:12px;gap:8px}.customer-summary .summary-icon{display:none}.customer-summary strong{font-size:15px}.customer-facts{gap:16px}.customer-detail-columns .panel-head .btn{font-size:13px}.customer-detail-heading>.row{gap:8px}}
.customer-detail-columns .followup-history{margin-top:0;padding-top:0;border-top:0}
/* 头像操作使用统一按钮，文件名与保存说明各占一行。 */
.profile-avatar-editor{display:flex;align-items:flex-start;gap:20px;padding:6px 0 18px;min-width:0}.profile-avatar-editor>[data-account-avatar]{width:64px;height:64px;font-size:26px;margin-top:3px}.avatar-editor-controls{min-width:0;flex:1}.avatar-editor-controls h3{font-size:15px;color:#52617b;margin:0 0 12px}.avatar-editor-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.avatar-editor-actions .btn{height:40px;min-height:40px;padding:8px 16px;margin:0}.avatar-editor-actions #avatar-choose{background:#f5f0fc;border-color:#d9c9ee;color:#7643c8}.avatar-file-name{font-size:13px;color:#66718a;overflow-wrap:anywhere;margin:10px 0 5px}.avatar-editor-controls small{display:block;color:#8992a3;font-size:13px;line-height:1.7}.settings-nav>a{white-space:normal;overflow-wrap:anywhere}
@media(max-width:600px){.profile-avatar-editor{gap:14px;flex-wrap:nowrap}.profile-avatar-editor>[data-account-avatar]{width:50px;height:50px;font-size:22px}.avatar-editor-actions{gap:8px}.avatar-editor-actions .btn{padding:8px 11px}.settings-nav>a{white-space:nowrap;overflow-wrap:normal}}
/* 详情概况完整还原为身份行 + 三列四行，不把维度缩进身份副标题。 */
.customer-overview{display:block}.customer-overview .customer-identity{border:0;padding:4px 0 24px;align-items:center;gap:18px}.customer-identity .customer-mark{display:grid;place-items:center;width:64px;height:64px;border-radius:8px;background:#f1ebfb;color:#9877c4;flex-shrink:0}.customer-mark .material-symbols-outlined{font-size:36px}.customer-overview .customer-identity p{margin:4px 0 8px}.customer-overview-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 26px;margin:0}.customer-overview-fact{display:flex;gap:8px;align-items:flex-start;min-width:0;font-size:14px}.customer-overview-fact>.material-symbols-outlined{font-size:20px;color:#949ca8;flex-shrink:0;margin-top:2px}.customer-overview-fact dt{color:#8791a3;flex-shrink:0;white-space:nowrap}.customer-overview-fact dd{margin:0;min-width:0;color:#37445b;font-weight:500;overflow-wrap:anywhere}.customer-overview-fact .tag,.customer-overview-fact .grade-label{font-size:13px}.customer-message-source .messages{padding:16px 0;max-height:600px;overflow:auto}.customer-last-updated{border-top:1px solid #eef0f5;margin-top:18px;padding-top:14px;color:#8a91a1}.customer-last-updated small{font-size:13px}.customer-last-updated p{font-size:14px;margin-top:4px}.customer-detail-tags .inline-grade{width:100%;max-width:220px;min-width:0}
@media(max-width:1100px){.customer-overview-facts{column-gap:18px}.customer-overview-fact{font-size:13px;gap:6px}}
@media(max-width:900px){.customer-overview-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}}
@media(max-width:600px){.customer-overview-facts{grid-template-columns:1fr}.customer-overview-fact{font-size:14px}.customer-overview .customer-identity{gap:12px;padding-bottom:22px}.customer-identity .customer-mark{width:54px;height:54px}}
/* 自定义标签：账号统一颜色，名称/颜色/预览同行，整枚标签不拆字。 */
.customer-tag-chip{display:inline-block;white-space:nowrap!important;flex:0 0 auto;background:color-mix(in srgb,var(--tag-color) 10%,white);color:var(--tag-text);border:1px solid color-mix(in srgb,var(--tag-color) 24%,white);border-radius:5px;font-size:13px;padding:3px 8px;line-height:1.5}.customer-detail-tags .customer-tags{width:100%;overflow-x:auto}.tag-editor-fields{min-width:0}.tag-editor-catalog{display:block;min-width:0;border:1px solid #e6e2ee;border-radius:8px;padding:12px;margin:0}.tag-editor-catalog legend{padding:0 6px;font-size:15px;font-weight:600;color:#66718a}.tag-choice-head,.tag-choice-row{display:grid;grid-template-columns:minmax(0,1fr) 100px minmax(90px,.8fr);gap:12px;align-items:center}.tag-choice-head{font-size:12px;color:#8b91a3;padding:0 0 8px}.tag-choice-row{padding:12px 0;border-top:1px solid #f0edf5}.tag-choice-label{display:flex;gap:8px;align-items:center;min-width:0;font-size:14px}.tag-choice-label input{flex:0 0 auto}.tag-choice-name{min-width:0;white-space:nowrap;overflow-x:auto}.tag-choice-row select{height:40px;width:100%;margin:0;padding-top:7px;padding-bottom:7px;font-size:14px}.tag-color-preview{min-width:0;overflow-x:auto;padding:3px 0}.tag-editor-note{font-size:13px;color:#8790a2;line-height:1.7;margin:10px 0 20px}.tag-new-section{border-top:1px solid #eeeaf4;padding-top:18px}.tag-new-section>.field{margin-bottom:14px}.tag-new-controls{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:start}.tag-new-controls .field{margin:0}.tag-new-controls select{width:100%;height:40px}.tag-new-preview-field>label{display:block;font-size:14px;color:#66718a;margin-bottom:8px}.tag-new-preview-field>[data-new-tag-preview]{min-height:40px;display:flex;align-items:center;gap:6px;flex-wrap:wrap;max-width:100%;overflow-x:auto}.tag-new-preview-field{min-width:0}
@media(max-width:600px){.tag-editor-catalog{padding:10px}.tag-choice-head,.tag-choice-row{grid-template-columns:minmax(0,1fr) 88px minmax(70px,.8fr);gap:8px}.tag-choice-label,.tag-choice-row select{font-size:13px}.tag-choice-label{gap:5px}.tag-color-preview .customer-tag-chip{font-size:12px;padding:3px 6px}.tag-new-controls{gap:12px}.tag-new-preview-field>label{font-size:13px}}
/* 筛选选中项用实色底；提醒横幅与页面标题保持独立间距。 */
.customer-status-filters>button.active{outline:none;outline-offset:0;box-shadow:none;background:#7643c8;border-radius:5px}.customer-status-filters>button.active .tag{background:#7643c8;border-color:#7643c8;color:#fff}.customer-status-filters>button:focus-visible{outline:2px solid #487ce0;outline-offset:3px}.content>.attention-notice{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 18px;margin:0 0 26px;border:1px solid #efdcaa;border-radius:8px;background:#fffbef}.attention-notice p{margin:0;line-height:1.8;min-width:0}.attention-notice>.btn{flex-shrink:0;min-height:36px;color:#795b18;border-color:#e5d2a4;background:#fff}
@media(max-width:600px){.content>.attention-notice{flex-direction:column;align-items:stretch;gap:10px;padding:14px;margin-bottom:24px}.attention-notice>.btn{align-self:flex-end}}

/* 等级频次与计划客户信息；沿用当前白紫视觉，不改变左右栏骨架。 */
.grade-reminder-fields{grid-column:1/-1;display:flex;align-items:center;flex-wrap:wrap;gap:14px;padding-top:14px;border-top:1px solid var(--line)}
.grade-reminder-toggle,.grade-reminder-interval{display:inline-flex;align-items:center;gap:8px}
.grade-reminder-interval input{width:100px;min-width:0;text-align:center;font-variant-numeric:tabular-nums}
.grade-reminder-help{line-height:1.65}
.schedule-customer-meta{display:block;color:var(--muted);font-size:var(--fs-secondary,13px);overflow-wrap:anywhere}
.schedule-customer-tags{display:flex;gap:6px;flex-wrap:wrap;max-width:100%;margin:6px 0}
.schedule-customer-tags .customer-tag-chip{white-space:nowrap;flex:0 0 auto;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.grade-reminder-notice{margin-bottom:22px;display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.grade-due-panel{margin-bottom:20px;scroll-margin-top:90px}.grade-due-panel .panel-head{gap:16px;align-items:flex-start;flex-wrap:wrap}.grade-due-panel h2 small{font-weight:400;color:var(--muted)}
.grade-due-item{padding:18px 0;border-bottom:1px solid var(--line)}.grade-due-item:last-child{border-bottom:0}.grade-due-heading{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:16px}.grade-due-heading h3{margin:0;font-weight:600;color:var(--text)}.grade-due-heading a{white-space:nowrap;font-size:var(--fs-secondary,13px)}.grade-due-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}.grade-due-summary{min-width:0}.grade-due-summary>.row{margin-top:18px}.grade-due-summary>p{font-size:var(--fs-secondary,13px);color:var(--muted);margin:0 0 12px}.grade-due-history{min-width:0;border-left:1px solid var(--line);padding-left:24px;max-height:320px;overflow:auto}.grade-due-history .followup-history{margin:0;padding:0;border:0}.grade-due-history h3{margin-top:0}
@media(max-width:600px){.grade-reminder-fields{gap:10px}.grade-reminder-fields>.muted{width:100%}.grade-due-body{grid-template-columns:minmax(0,1fr);gap:20px}.grade-due-history{border-left:0;border-top:1px solid var(--line);padding:18px 0 0;max-height:none}}

/* 客户附件按行排列，窄屏横滚保留四项操作，不影响资料库卡片。 */
.attachment-list-scroll{overflow-x:auto;max-width:100%}.attachment-list{min-width:900px}.attachment-list-head,.attachment-list-row{display:grid;grid-template-columns:minmax(180px,1fr) 156px 496px;gap:16px;align-items:center;padding:16px}.attachment-list-head{background:var(--panel-2);font-weight:700;font-size:var(--fs-secondary);color:var(--muted)}.attachment-list-row{border-bottom:1px solid var(--line);min-height:100px}.attachment-list-row:last-child{border-bottom:0}.attachment-file{display:flex;align-items:center;gap:12px;min-width:0}.attachment-thumb,.attachment-file-icon{width:46px;height:54px;flex-shrink:0;object-fit:cover;border-radius:7px;background:var(--primary-soft);color:var(--primary)}.attachment-file-icon{display:grid;place-items:center;font-size:28px}.attachment-file-copy{min-width:0}.attachment-file-copy>strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--fs-body);font-weight:600}.attachment-file-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:6px}.attachment-status{font-size:var(--fs-caption);color:var(--primary-deep);background:var(--primary-soft);border-radius:999px;padding:2px 8px}.attachment-status.saved{color:#287546;background:#edf8f0}.attachment-list-row>time{white-space:nowrap;font-size:var(--fs-caption);color:var(--muted)}.attachment-actions{display:grid;grid-template-columns:64px 156px 96px 156px;gap:8px}.attachment-actions>.btn{padding:8px 10px;font-size:var(--fs-secondary);white-space:nowrap}.attachment-actions>[data-action=media-preview]{color:var(--primary-deep);background:var(--primary-soft)}.attachment-actions>[data-action=delete-media]{color:#b94557;border-color:#e9bac2}.attachment-actions>[data-action=delete-media]:hover{background:#fff0f2}

.customer-detail-columns+.customer-originals{margin-top:20px}

/* 已确认客户详情：随内容区而非整窗宽度调整，兼容侧栏收起。 */
.customer-record-container{container-type:inline-size;min-width:0}
.customer-record-layout{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,4fr) minmax(0,3fr);gap:20px;align-items:start}
.customer-record-layout>*{min-width:0}.customer-record-center,.customer-record-right{display:grid;gap:20px;min-width:0}
.customer-record-layout .panel-head{gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:16px}
.customer-record-layout .panel-head h2{font-size:var(--fs-h2,18px);font-weight:700}
.customer-record-layout .panel-head .material-symbols-outlined{font-size:20px;color:var(--deep)}
.customer-record-layout .panel-head>a{font-size:12px;font-weight:500}
.customer-record-profile.customer-overview{display:block;margin:0;padding:22px}
.customer-record-profile .customer-identity{border:0;padding:0;gap:12px;align-items:flex-start;margin-bottom:20px}
.customer-record-profile .customer-identity h2{font-size:20px;line-height:1.4}
.customer-record-profile .customer-identity p{font-size:12px;margin:5px 0 10px}
.customer-record-highlight{padding:16px;background:var(--panel-2);border:1px solid var(--line);border-radius:12px;margin-bottom:24px;display:grid;gap:7px}
.customer-record-highlight>small{font-size:12px}.customer-record-highlight>strong{font-size:18px;line-height:1.4;overflow-wrap:anywhere}
.customer-record-highlight>span{font-size:13px;color:var(--muted)}.customer-record-highlight b{color:var(--text);font-weight:600;margin-left:8px}
.customer-record-profile .customer-facts,.customer-record-panel .customer-facts,.customer-record-opportunity .customer-facts{display:grid;grid-template-columns:1fr;gap:14px;margin:0}
.customer-record-profile .customer-facts>div,.customer-record-opportunity .customer-facts>div{display:grid;grid-template-columns:88px minmax(0,1fr);gap:12px;align-items:baseline}
.customer-record-layout .customer-facts dt{font-size:13px;font-weight:650;color:var(--muted);margin:0}
.customer-record-layout .customer-facts dd{font-size:14px;line-height:1.5;margin:0;overflow-wrap:anywhere}
.customer-record-classification,.customer-record-note{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
.customer-record-note .pre{margin-bottom:18px}.customer-record-note>small{display:block;margin-top:12px;font-size:12px}
.customer-record-classification .field-label{display:block;color:var(--muted);font-size:13px;font-weight:650;margin:16px 0 7px}
.customer-record-classification select{width:100%;max-width:100%}
.customer-record-classification .customer-tags{display:flex;flex-wrap:wrap;gap:6px;width:100%;min-width:0;text-align:left;padding:0;background:none;border:0;max-width:100%;overflow-x:auto}
.customer-record-classification .customer-tag-chip{max-width:100%;overflow:hidden;text-overflow:ellipsis}
.customer-record-profile .customer-extra .customer-facts>div{grid-template-columns:1fr;gap:4px}
.customer-record-progress>p{font-size:13px;margin-top:4px}
.customer-progress-scroll{max-width:100%;overflow-x:auto;margin:22px 0}
.customer-progress-nodes{list-style:none;display:flex;padding:0;margin:0;min-width:0}
.customer-progress-nodes>li{position:relative;flex:1 0 92px;min-width:0;text-align:center;padding:0 4px}
.customer-progress-nodes>li:before{content:'';position:absolute;height:2px;top:20px;left:50%;right:-50%;background:var(--line-strong)}
.customer-progress-nodes>li:last-child:before{display:none}
.customer-progress-dot{position:relative;display:grid;place-items:center;margin:0 auto 12px;width:40px;height:40px;border-radius:50%;color:var(--deep);background:var(--primary-soft)}
.customer-progress-nodes .current .customer-progress-dot{color:#fff;background:var(--deep)}
.customer-progress-nodes b{display:block;font-size:13px;font-weight:650;overflow-wrap:anywhere}
.customer-progress-nodes time{display:block;margin-top:7px;font-size:12px;color:var(--muted);line-height:1.6}
.customer-progress-empty{padding:10px 0;font-size:13px}
.customer-record-progress footer{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:14px}
.customer-record-progress footer small{font-size:12px}.customer-record-progress footer .btn{font-size:12px;min-height:34px;padding:5px 9px}
.customer-record-tablist{display:flex;gap:0;padding:0 18px;border-bottom:1px solid var(--line);overflow-x:auto}
.customer-record-tablist button{flex:1 0 auto;min-height:58px;padding:14px 10px;white-space:nowrap;background:none;border:0;border-bottom:2px solid transparent;border-radius:0;font-size:14px;font-weight:600;color:var(--muted)}
.customer-record-tablist button[aria-selected=true]{color:var(--deep);border-bottom-color:var(--deep)}
.customer-record-panel{padding:22px;min-width:0}.customer-record-panel>.btn:first-child{width:100%;margin-bottom:24px;white-space:normal;justify-content:flex-start}
.customer-record-panel .followup-timeline{margin-top:18px}.customer-record-panel .customer-message-source{margin-top:22px}
.customer-record-panel .customer-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.customer-record-panel .customer-facts>div{min-width:0}.customer-record-panel .customer-facts dt{margin-bottom:6px}
.customer-record-panel .messages{padding:16px 0;max-height:none}
.customer-record-opportunity>h3{margin-bottom:18px;font-size:16px;font-weight:650;overflow-wrap:anywhere}
.customer-record-probability{border-top:1px solid var(--line);margin-top:20px;padding-top:18px}
.customer-record-probability b{font-size:14px}.customer-record-probability strong{font-size:18px;color:var(--muted)}
.customer-record-probability small{display:block;margin-top:8px;font-size:12px}
.customer-record-right .customer-detail-tasks{padding:22px}.customer-record-right .customer-detail-tasks>p{margin-bottom:16px;font-size:12px}
.customer-record-right .customer-detail-tasks article{padding:14px 0}.customer-record-right .customer-detail-tasks .row{gap:7px}
.customer-record-right .customer-detail-tasks .btn{white-space:normal}
.customer-record-related>p{font-size:12px;margin-bottom:8px}
.customer-related-file{display:flex;gap:12px;padding:17px 0;border-bottom:1px solid var(--line);min-width:0}
.customer-file-icon{flex:0 0 34px;width:34px;height:40px;border-radius:8px;background:var(--primary-soft);color:var(--deep);display:grid;place-items:center}
.customer-related-file>div{min-width:0;flex:1}.customer-related-file b{display:block;font-size:13px;font-weight:650;overflow-wrap:anywhere}
.customer-related-file small{display:block;font-size:12px;margin:5px 0 10px}
.customer-related-file .row{gap:10px;font-size:12px}.customer-related-file .btn{font-size:12px;padding:4px 8px;min-height:30px}
.customer-record-related>button{margin-top:16px;width:100%}
@container(max-width:1000px){.customer-record-layout{grid-template-columns:minmax(0,1fr) minmax(0,1.4fr)}.customer-record-right{grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr))}.customer-record-right .panel{padding:18px}.customer-record-opportunity .customer-facts>div{grid-template-columns:1fr;gap:4px}}
@container(max-width:680px){.customer-record-layout{grid-template-columns:1fr;gap:16px}.customer-record-right{grid-column:auto;grid-template-columns:1fr}.customer-record-profile.customer-overview,.customer-record-panel{padding:20px}.customer-record-center,.customer-record-right{gap:16px}.customer-record-opportunity .customer-facts>div{grid-template-columns:88px minmax(0,1fr);gap:12px}}
.customer-progress-nodes>li{flex-basis:80px}
.customer-progress-warning{display:block;max-width:100%;white-space:normal;font-size:12px;color:#856315;line-height:1.5;margin-top:6px}
.attachment-origin-link{display:block;width:max-content;margin:6px 0;font-size:12px;color:var(--deep)}
/* 清除旧收起菜单样式留下的104px内边距，让内容使用回收的宽度。 */
.sidebar.collapsed+.shell{padding-left:0}

/* 客户列表直接改期，复用已有计划入口。 */
.customer-next-followup{display:flex;flex-direction:column;align-items:flex-start;gap:7px}
.customer-next-followup-time{white-space:nowrap;font-variant-numeric:tabular-nums}
.customer-table .customer-next-followup>.btn{font-size:12px;font-weight:500;min-height:28px;padding:3px 9px;border-radius:var(--radius-control,12px);line-height:1.5;white-space:nowrap;box-shadow:none}

/* 已确认的沟通时间线，仅作用于跟进计划右侧。 */
.schedule-history{container-type:inline-size}
.schedule-history .communication-history{position:relative;padding-top:20px}
.communication-heading{margin-bottom:18px}.communication-heading.has-more{padding-right:105px}
.schedule-history .communication-heading h3{font-size:var(--fs-h2,18px);font-weight:700;margin:0}
.communication-heading>p{font-size:var(--fs-caption,12px);line-height:1.6;margin:7px 0 0}
.communication-list{list-style:none;padding:0;margin:0}
.communication-entry{position:relative;display:grid;grid-template-columns:104px minmax(0,1fr);gap:12px;padding:0 0 16px 18px;min-width:0}
.communication-entry:before{content:'';position:absolute;left:0;top:8px;width:8px;height:8px;border-radius:50%;background:var(--primary);box-shadow:0 0 0 4px var(--primary-soft);z-index:1}
.communication-entry:after{content:'';position:absolute;left:3px;top:17px;bottom:-8px;width:1px;background:var(--line)}
.communication-entry:last-child:after{display:none}
.communication-history time{font-variant-numeric:tabular-nums;font-size:var(--fs-secondary,13px);line-height:1.6;color:var(--text);white-space:nowrap;padding-top:2px}
.communication-history time>b{font-weight:650}.communication-history time>small{display:block;font-size:var(--fs-caption,12px);color:var(--muted);margin-top:3px}
.communication-record{min-width:0;padding:13px 15px;background:color-mix(in srgb,var(--primary-soft) 22%,var(--panel-solid,#fff));border:1px solid var(--line);border-radius:12px}
.communication-record dl{display:grid;grid-template-columns:76px minmax(0,1fr);gap:8px 5px;margin:0}
.communication-record dt{font-size:var(--fs-body,14px);font-weight:650;color:var(--deep);white-space:nowrap}
.communication-record dd{margin:0;min-width:0;font-size:var(--fs-body,14px);line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}
.communication-more>summary{position:absolute;right:0;top:20px;font-size:var(--fs-caption,12px);font-weight:500;color:var(--deep);border:1px solid var(--line-strong,var(--line));border-radius:12px;padding:5px 9px;cursor:pointer;list-style:none;background:var(--panel-solid,#fff)}
.communication-more>summary::-webkit-details-marker{display:none}.communication-more .when-open{display:none}.communication-more[open] .when-open{display:inline}.communication-more[open] .when-closed{display:none}
.communication-more>summary:hover{background:var(--primary-soft)}.communication-more>summary:focus-visible{outline:2px solid var(--primary);outline-offset:3px}
.schedule-plan-history{border-top:1px solid var(--line);padding-top:15px;margin-top:8px}
.schedule-plan-history>summary{font-size:var(--fs-secondary,13px);font-weight:650;color:var(--muted);cursor:pointer}
.schedule-plan-history .followup-timeline{margin-top:18px}.schedule-plan-history li>p{font-size:var(--fs-secondary,13px);margin:7px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
@container(max-width:430px){.communication-entry{grid-template-columns:minmax(0,1fr);gap:8px}.communication-history time{display:flex;gap:10px;align-items:baseline}.communication-history time>small{display:inline;margin:0}.communication-record{padding:12px}.communication-record dl{grid-template-columns:70px minmax(0,1fr);gap:8px 4px}.communication-record dt,.communication-record dd{font-size:var(--fs-secondary,13px)}}

#filter-form .customer-grade-filter{width:160px;max-width:100%;flex-shrink:0}

/* 列表以最近跟进小结替换录入时间；下次跟进仍独立可改期。 */
.customer-table th:nth-child(2),.customer-table td:nth-child(2){width:130px}
.customer-table .inline-grade{width:118px;min-width:0;max-width:100%}
.customer-followup-cell{min-width:280px;width:28%}
.customer-followup-summary{min-width:250px;max-width:380px}
.customer-followup-summary-empty{max-width:none;text-align:center}
.customer-followup-summary>p{font-size:var(--fs-body,14px);line-height:1.65;margin:0}
.customer-followup-summary-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;overflow-wrap:anywhere}
.customer-followup-summary-meta{display:flex;align-items:baseline;gap:7px 12px;flex-wrap:wrap;margin-top:8px;font-size:var(--fs-caption,12px);line-height:1.5}
.customer-followup-summary-meta span{color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.customer-followup-summary-meta a{color:var(--deep);white-space:nowrap}
.customer-record-history .followup-original-target{background:var(--primary-soft);border-radius:12px;outline:1px solid var(--line-strong);outline-offset:5px}

.customer-table th.customer-followup-heading{text-align:center}
