:root{color-scheme:light;--bg:oklch(1 0 0);--surface:oklch(.977 0 0);--ink:oklch(.25 .012 14);--muted:oklch(.49 .008 14);--line:oklch(.9 .003 14);--primary:oklch(.49 .175 14);--primary-soft:oklch(.964 .018 14);--accent:oklch(.36 .085 180);--success:oklch(.93 .032 180);--warn:oklch(.94 .05 80);--radius:8px;font-family:Inter,"Microsoft YaHei","PingFang SC",system-ui,sans-serif;font-size:14px;color:var(--ink);background:var(--bg)}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:1px solid var(--line);border-radius:6px;background:var(--bg);color:var(--ink);padding:9px 14px;transition:background .15s,color .15s}button:hover{background:var(--surface)}button:active{transform:translateY(1px)}button:disabled{cursor:default;opacity:.5;transform:none}a{color:var(--primary);text-decoration:none}a:hover{text-decoration:underline}:focus-visible{outline:2px solid var(--primary);outline-offset:3px}input,select,textarea{background:var(--bg);border:1px solid var(--line);border-radius:6px;color:var(--ink);padding:10px 12px;min-height:40px}input::placeholder,textarea::placeholder{color:var(--muted)}textarea{resize:vertical}small{color:var(--muted);font-size:12px}.sidebar{position:fixed;inset:0 auto 0 0;width:218px;background:var(--surface);border-right:1px solid var(--line);display:flex;flex-direction:column;padding:28px 16px}.brand{display:flex;gap:10px;align-items:center;margin:0 2px 38px;color:var(--ink);font-size:17px;font-weight:650;white-space:nowrap}.brand:hover{text-decoration:none}.brand small{display:block;font-size:10px;font-weight:400;margin-top:5px}.brand-mark{display:grid;place-items:center;background:var(--primary);color:var(--bg);width:33px;height:35px;border-radius:8px;font-size:19px}nav{display:flex;flex-direction:column;gap:7px}.nav{display:flex;gap:13px;text-align:left;border:0;background:transparent;align-items:center;padding:12px 15px}.nav span{font-size:21px;width:21px;line-height:1}.nav.active{color:var(--primary);background:var(--primary-soft);font-weight:600}.sidebar-note{margin-top:auto;padding:18px 10px 0;color:var(--muted);font-size:12px;line-height:1.8}.sidebar-note p{padding-left:15px}.status-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--accent);margin-right:8px}main{margin-left:218px;min-width:0}.topbar{height:63px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 36px;color:var(--muted);font-size:12px}.workspace{padding:34px 36px;max-width:1800px;margin:auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}.page-heading h1{font-size:25px;font-weight:650;margin:0 0 10px;letter-spacing:-.5px}.page-heading p{color:var(--muted);margin:0;line-height:1.7}.primary{color:var(--bg);border-color:var(--primary);background:var(--primary);font-weight:550}.primary:hover{background:oklch(.43 .16 14)}.summary{display:flex;align-items:center;gap:22px;font-size:12px;color:var(--muted);padding:24px 0 20px}.summary strong{font-size:15px;color:var(--ink);font-weight:600;margin:0 4px}.categories{display:flex;gap:24px;border-bottom:1px solid var(--line);overflow-x:auto}.categories button{border:0;border-bottom:2px solid transparent;border-radius:0;padding:13px 0;background:none;white-space:nowrap;color:var(--muted)}.categories button.active{border-color:var(--primary);color:var(--primary);font-weight:600}.categories .count{font-size:11px;margin-left:7px;color:var(--muted);font-variant-numeric:tabular-nums}.filters{display:flex;gap:10px;margin:20px 0;flex-wrap:wrap}.search{display:flex;align-items:center;flex:1;min-width:230px;position:relative}.search span{position:absolute;left:12px;font-size:24px;color:var(--muted)}.search input{width:100%;padding-left:38px}.filters select{max-width:175px;min-width:128px}table{border-collapse:collapse;width:100%;table-layout:fixed;text-align:left}th{background:var(--surface);font-size:12px;font-weight:500;color:var(--muted);padding:13px 12px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}td{padding:17px 12px;border-bottom:1px solid var(--line);vertical-align:middle;font-size:13px}tbody tr:hover{background:var(--surface)}.name-cell{font-weight:550;font-size:14px}.text-button{border:0;background:none;color:var(--ink);padding:0;text-align:left;max-width:100%;border-radius:0;font-weight:inherit;display:block}.text-button:hover{color:var(--primary);background:none}.ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:100%;display:block}.subline{color:var(--muted);font-size:11px;line-height:1.65;margin-top:7px;display:block}.phone{font-variant-numeric:tabular-nums;letter-spacing:.3px;font-size:14px;font-weight:500}.tag{display:inline-block;font-size:11px;padding:4px 7px;border-radius:4px;background:var(--surface);color:var(--muted);white-space:nowrap}.tag.good{background:var(--success);color:var(--accent)}.tag.warn{background:var(--warn);color:oklch(.37 .06 75)}.tag.error{background:var(--primary-soft);color:var(--primary)}.link-button{color:var(--primary);border:0;padding:5px;background:none;white-space:nowrap}.pagination{display:flex;justify-content:space-between;align-items:center;margin-top:20px;color:var(--muted);font-size:12px}.pages{display:flex;align-items:center;gap:12px}.pages button{padding:6px 11px}.empty{padding:65px 20px;border:1px dashed var(--line);border-radius:8px;text-align:center;line-height:1.8;color:var(--muted)}.empty strong{display:block;font-size:17px;color:var(--ink);margin-bottom:10px}.error-panel{border:1px solid var(--line);padding:22px;color:var(--primary)}.post-title{font-size:15px;font-weight:600}.post-content{color:var(--muted);line-height:1.7;margin-top:8px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.job-line{display:grid;grid-template-columns:210px 1fr 180px;gap:22px;border-bottom:1px solid var(--line);padding:25px 0;align-items:start}.job-line h3{margin:0 0 10px;font-size:15px}.job-line p{font-size:13px;color:var(--muted);line-height:1.8;margin:0}.job-actions{display:flex;gap:8px;justify-content:end}.job-actions button{padding:7px 10px;font-size:12px}.section-title{font-size:16px;margin:34px 0 18px}.run{padding:13px 0;border-bottom:1px solid var(--line);display:flex;gap:20px;align-items:start}.run small{min-width:140px}.run div{font-size:12px;line-height:1.8}.quiet-note{color:var(--muted);font-size:12px;line-height:1.8;margin-top:20px}dialog{inset:0 0 0 auto;margin:0;height:100dvh;max-height:100dvh;width:620px;max-width:100vw;border:0;border-left:1px solid var(--line);padding:0;color:var(--ink);background:var(--bg);box-shadow:-12px 0 40px oklch(.2 0 0 / .1)}dialog::backdrop{background:oklch(.2 0 0 / .23)}.drawer-head{position:sticky;top:0;background:var(--bg);padding:25px 28px 20px;display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line);z-index:2}.drawer-head h2{font-size:20px;line-height:1.5;margin:8px 0 0;overflow-wrap:anywhere}.icon-button{align-self:start;font-size:24px;padding:2px 10px}.drawer-body{padding:25px 28px}.contact-number{font-size:25px;letter-spacing:1px;display:flex;align-items:center;gap:18px;margin-bottom:22px}.contact-number button{font-size:12px;letter-spacing:0}.detail-section{padding:22px 0;border-bottom:1px solid var(--line)}.detail-section h3{font-size:15px;line-height:1.65;margin:0 0 10px;overflow-wrap:anywhere}.detail-section p{line-height:1.85;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}.detail-section img{display:block;max-width:100%;max-height:340px;object-fit:contain;border-radius:5px;margin-top:14px}.metadata{font-size:12px;color:var(--muted);line-height:1.8}.follow-form{padding:20px;background:var(--surface);border-radius:8px;margin:25px 0}.follow-form h3{font-size:15px;margin:0 0 16px}.form-row{display:flex;gap:12px}.follow-form label{display:block;font-size:12px;margin-bottom:14px;flex:1}.follow-form input,.follow-form select,.follow-form textarea{display:block;width:100%;margin-top:7px}.follow-form textarea{height:100px}.post-detail{white-space:pre-wrap;line-height:1.95;font-size:14px;overflow-wrap:anywhere}.post-link{display:block;width:100%;border:0;border-radius:0;border-bottom:1px solid var(--line);padding:15px 0;text-align:left;background:transparent}#toast{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);padding:12px 22px;border-radius:8px;background:var(--ink);color:var(--bg);font-size:13px;z-index:10;max-width:90vw;box-shadow:0 6px 20px oklch(.2 0 0 / .15)}[hidden]{display:none!important}
@media(max-width:1150px){.workspace{padding:28px 22px}.topbar{padding:0 22px}.sidebar{width:190px;padding:25px 12px}main{margin-left:190px}.optional{display:none}.job-line{grid-template-columns:170px 1fr}.job-actions{grid-column:2;justify-content:start}.categories{gap:20px}}
@media(max-width:760px){.sidebar{position:static;width:auto;padding:16px 18px 0;border-right:0;border-bottom:1px solid var(--line)}.brand{margin-bottom:14px}.brand small{font-size:10px}.sidebar nav{flex-direction:row;gap:5px}.nav{font-size:13px;padding:11px 12px;flex:1;justify-content:center;gap:7px}.nav span{font-size:18px;width:auto}.sidebar-note,.topbar{display:none}main{margin:0}.workspace{padding:24px 16px}.page-heading{align-items:start;gap:12px}.page-heading h1{font-size:22px}.page-heading p{font-size:12px;max-width:210px}.page-heading .primary{font-size:12px;padding:10px;white-space:nowrap}.summary{gap:14px;flex-wrap:wrap;padding:19px 0 13px;font-size:11px}.summary strong{font-size:13px}.categories{gap:22px}.search{min-width:100%}.filters select{max-width:none;flex:1;min-width:100px;font-size:12px}.secondary{display:none}th{font-size:11px;padding:11px 6px}td{padding:15px 6px;font-size:12px}.name-cell{font-size:13px}.phone{font-size:13px}.subline{font-size:10px}.tag{font-size:10px}.job-line{grid-template-columns:1fr;gap:12px}.job-actions{grid-column:1}.run{gap:9px;flex-direction:column}.drawer-head,.drawer-body{padding:20px}.form-row{flex-direction:column;gap:0}.pagination{gap:8px}.pages{gap:8px}.pages button{font-size:12px}.quiet-note{font-size:11px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

.contacts-table col:nth-child(1){width:27%}.contacts-table col:nth-child(2){width:17%}.contacts-table col:nth-child(3){width:16%}.contacts-table col:nth-child(4){width:20%}.contacts-table col:nth-child(5){width:13%}.contacts-table col:nth-child(6){width:7%}.posts-table col:nth-child(1){width:60%}.posts-table col:nth-child(2){width:22%}.posts-table col:nth-child(3){width:18%}
@media(max-width:760px){.sidebar nav{flex-wrap:wrap}.nav{font-size:12px;padding:10px 6px;white-space:nowrap}.nav span{display:none}.contacts-table col:nth-child(1){width:37%}.contacts-table col:nth-child(2){width:30%}.contacts-table col:nth-child(5){width:21%}.contacts-table col:nth-child(6){width:12%}.posts-table col:nth-child(1){width:70%}.posts-table col:nth-child(3){width:30%}}

.business-summary{display:block;white-space:normal;overflow-wrap:anywhere;line-height:1.6}

.business-table td{vertical-align:top}.number-line{min-height:64px;padding:3px 0}.number-line:last-child{min-height:46px}.number-line .subline{margin-top:5px}.group-progress{margin-top:10px;white-space:normal;line-height:1.6}.merchant-group{border-bottom:2px solid var(--line)}.business-table .business-summary{font-weight:inherit}

.dial-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:16px 0}.dial-toolbar select{max-width:250px}#dial-result{font-size:13px;color:var(--muted,#667085)}#dial-pair{max-width:520px;width:calc(100% - 32px)}#dial-pair-form{display:flex;gap:10px;flex-wrap:wrap}#dial-pair-result{font-size:20px;letter-spacing:1px}

/* 登录和以门店为单位的跟进工作台。 */
.login-screen{min-height:100dvh;display:grid;place-items:center;padding:32px 20px;background:var(--surface)}.login-panel{width:100%;max-width:410px;padding:30px}.login-panel .brand{margin-bottom:42px}.login-panel h1{font-size:25px;margin:0 0 12px}.login-intro{color:var(--muted);line-height:1.8;margin:0 0 30px}.login-panel label{display:block;font-size:13px;margin:18px 0}.login-panel input{display:block;width:100%;margin-top:8px;background:var(--bg)}.login-panel button[type=submit]{width:100%;margin-top:18px;min-height:44px}.login-panel details{font-size:12px;color:var(--muted)}summary{cursor:pointer;line-height:1.8}.form-error{color:var(--primary);font-size:13px;line-height:1.7}.sidebar-account{margin-top:auto;padding:24px 12px 0;border-top:1px solid var(--line)}.sidebar-account strong{display:block;font-size:14px;overflow-wrap:anywhere}.sidebar-account .link-button{padding-left:0;margin-top:12px}.crm-list-head{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(330px,1fr);gap:28px;background:var(--surface);border-block:1px solid var(--line);padding:12px 16px;color:var(--muted);font-size:12px}.selection-label{display:flex;align-items:center;gap:8px}.selection-label input,.merchant-heading>input{min-height:0;width:16px;height:16px;accent-color:var(--primary);flex:none}.crm-row{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(330px,1fr);gap:28px;padding:22px 16px;border-bottom:1px solid var(--line)}.crm-row:hover{background:var(--surface)}.merchant-heading{display:flex;gap:12px;align-items:flex-start;min-width:0}.merchant-heading>input{margin-top:5px}.merchant-info{min-width:0;flex:1}.merchant-address{font-size:13px;line-height:1.75;margin:10px 0 16px;overflow-wrap:anywhere;color:var(--muted)}.merchant-context{margin-bottom:10px}.merchant-context .merchant-products{margin:6px 0}.merchant-context .owner-label{margin-top:6px}.merchant-name{font-size:15px;font-weight:600;line-height:1.7;overflow-wrap:anywhere}.merchant-products{font-size:12px;line-height:1.8;color:var(--muted);margin:10px 0;overflow-wrap:anywhere;max-width:65ch}.owner-label{display:block;font-size:12px;color:var(--accent);margin-top:10px}.merchant-numbers{min-width:0}.crm-number{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-height:48px;padding:4px 0}.crm-number+.crm-number{border-top:1px dashed var(--line);margin-top:5px;padding-top:9px}.phone-actions{display:flex;gap:8px;align-items:center;min-width:0}.phone-actions .phone{padding-left:0}.wechat-button{color:var(--accent);font-size:11px;padding:5px 8px;white-space:nowrap;border-color:oklch(.85 .02 180);background:transparent}.wechat-button:hover{background:var(--success)}.follow-action{margin-left:auto;font-size:12px}.assignment-bar{position:sticky;top:0;z-index:2;display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:14px 16px;border:1px solid var(--line);background:var(--primary-soft);border-radius:8px;margin-bottom:16px}.assignment-bar strong{font-size:13px}.assignment-bar select{max-width:220px}.detail-phone-line{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:12px 0;border-bottom:1px solid var(--line)}.timeline-section h3{font-size:16px}.timeline{list-style:none;padding:0 0 0 17px;margin:20px 0;border-left:1px solid var(--line)}.timeline li{position:relative;padding:0 0 24px 8px}.timeline li:before{content:'';width:7px;height:7px;position:absolute;left:-21px;top:6px;background:var(--primary);border-radius:50%}.timeline-heading{display:flex;align-items:center;gap:12px;justify-content:space-between;flex-wrap:wrap;font-size:13px;margin-bottom:7px}.timeline time{font-size:11px;color:var(--muted)}.timeline p{font-size:13px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0 0}.source-details,.history-details{border-top:1px solid var(--line);padding:18px 0}.source-details>summary,.history-details>summary{font-size:13px;font-weight:550}.legacy-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:22px 8px;border-bottom:1px solid var(--line)}.legacy-row>small{grid-column:1/-1}.device-unbind{margin-top:32px;border-top:1px solid var(--line);padding-top:20px}#dial-pair-form label{display:block;flex:1;font-size:13px}#dial-pair-form input{display:block;width:100%;margin-top:8px}#dial-pair-form button{align-self:end}.filters #owner-filter{max-width:200px}#content[aria-busy=true]{opacity:.65;transition:opacity .15s}.nav:focus-visible{outline-offset:0}.crm-list-head span:first-child{padding-left:0}
@media(max-width:1150px){.crm-list-head,.crm-row{grid-template-columns:minmax(190px,1fr) minmax(300px,1.25fr);gap:18px}.crm-row{padding:18px 8px}.crm-number{gap:7px}.follow-action{margin-left:0}}
@media(max-width:760px){.sidebar-account{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:10px 0 0;padding:12px 0}.sidebar-account .subline{margin:0}.sidebar-account .link-button{margin:0 0 0 auto}.sidebar nav{overflow-x:auto;flex-wrap:nowrap}.nav{flex:0 0 auto;padding:10px 12px}.crm-list-head{display:flex;padding:12px 0}.crm-list-head>span:last-child{display:none}.crm-row{display:block;padding:18px 0}.merchant-numbers{margin-top:12px}.merchant-heading:has(>input)+.merchant-numbers{padding-left:28px}.crm-number{gap:8px;padding:7px 0;align-items:center}.phone-actions{gap:7px}.phone-actions .phone{font-size:14px}.wechat-button{font-size:11px;padding:6px 8px}.follow-action{margin-left:auto}.merchant-products{margin:7px 0}.assignment-bar{padding:12px;gap:8px;top:0}.assignment-bar select{max-width:none;min-width:130px;flex:1}.assignment-bar .metadata{width:100%}.assignment-bar button{font-size:12px;padding:8px}.login-panel{padding:16px 8px}.page-heading #export{font-size:12px;white-space:nowrap;padding:9px}.detail-phone-line{gap:9px}.dial-toolbar select{flex:1;max-width:100%;min-width:0}.dial-toolbar #dial-result{flex-basis:100%;line-height:1.7;overflow-wrap:anywhere}.legacy-row{padding:18px 0}.timeline-heading{gap:6px}.timeline-heading time{font-size:10px}.workspace{padding-top:22px}}
.desktop-result{font-size:13px;line-height:1.8;color:var(--muted);margin:8px 0;overflow-wrap:anywhere}.desktop-download{display:inline-block;border:1px solid var(--line);border-radius:6px;padding:10px 16px;font-weight:550}.desktop-steps{padding-left:20px;font-size:13px;line-height:1.8}.desktop-steps li{margin:14px 0}#desktop-help{max-width:520px;width:calc(100% - 32px)}#desktop-help .drawer-body>p{line-height:1.8;font-size:14px}#desktop-help .quiet-note{font-size:12px}
.desktop-help-actions{display:flex;gap:10px;flex-wrap:wrap}.desktop-records-link{margin-top:24px}#desktop-help.show-diagnostics{max-width:860px}#desktop-diagnostics-back{padding-left:0;font-size:12px}.desktop-diagnostics-filters{display:flex;gap:12px;flex-wrap:wrap}.desktop-diagnostics-filters label{font-size:12px;flex:1;min-width:160px}.desktop-diagnostics-filters select{display:block;width:100%;margin-top:7px}#desktop-help #desktop-diagnostics-status{font-size:12px;min-height:2em;margin:18px 0}.desktop-run-head,.desktop-run-row{display:grid;grid-template-columns:minmax(80px,1fr) minmax(105px,1fr) minmax(130px,1.1fr) minmax(170px,1.3fr);align-items:center;gap:14px;padding:14px 10px}.desktop-run-head{font-size:12px;color:var(--muted);background:var(--surface);border-block:1px solid var(--line)}.desktop-run{border-bottom:1px solid var(--line)}.desktop-run-row{width:100%;border:0;border-radius:0;text-align:left;font-size:13px;line-height:1.65}.desktop-run-row[aria-expanded=true]{background:var(--surface)}.desktop-run-row>span{min-width:0;overflow-wrap:anywhere}.desktop-run-person{font-weight:550}.desktop-run-row small{display:block;margin-top:4px;font-size:11px}.desktop-run-time{font-size:12px;font-variant-numeric:tabular-nums}.desktop-run-outcome .tag{white-space:normal}.desktop-run-detail{padding:0 16px 20px;background:var(--surface)}.desktop-run-reason{font-size:13px;line-height:1.85;margin:0;padding:8px 0 12px;overflow-wrap:anywhere;max-width:70ch}.desktop-timeline{margin:8px 0 16px;padding:0;list-style:none}.desktop-timeline li{display:grid;grid-template-columns:minmax(110px,1fr) 110px 135px;gap:12px;align-items:baseline;padding:8px 0;border-bottom:1px solid var(--line);font-size:12px}.desktop-timeline strong{font-weight:500}.desktop-timeline small{text-align:right;font-variant-numeric:tabular-nums}.desktop-run-technical summary{font-size:12px;color:var(--muted);cursor:pointer;width:fit-content;padding:6px 0}.desktop-run-technical pre{max-height:260px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7;font-size:11px;color:var(--muted);padding:10px 0}.desktop-diagnostics-empty{padding:30px 8px;color:var(--muted);line-height:1.9;font-size:13px}
@media(max-width:660px){#desktop-help.show-diagnostics{width:100%;max-width:100%}.desktop-run-head{display:none}.desktop-run-row{grid-template-columns:1fr 1.2fr;gap:8px 18px;padding:16px 6px}.desktop-run-person{grid-column:1;grid-row:1}.desktop-run-computer{grid-column:1;grid-row:2}.desktop-run-time{grid-column:1;grid-row:3;color:var(--muted)}.desktop-run-outcome{grid-column:2;grid-row:1 / 4}.desktop-run-detail{padding:0 10px 16px}.desktop-timeline li{grid-template-columns:minmax(100px,1fr) 65px 92px;gap:5px}.desktop-timeline small{font-size:10px}.desktop-diagnostics-filters label{min-width:120px}}

.collection-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.collection-heading h2{font-size:20px;margin:0 0 10px}.collection-controls{display:flex;align-items:end;gap:14px;flex-wrap:wrap;padding:18px 0 24px}.collection-controls label,.collection-source-settings form label{display:flex;flex-direction:column;gap:8px;font-size:12px;color:var(--muted)}.collection-controls select{min-width:135px}.collection-controls .collection-check{flex-direction:row;align-items:center;min-height:42px}.collection-check input,.collection-task-actions input{min-height:0;accent-color:var(--primary)}.collection-table th:first-child{min-width:130px}.collection-table td:last-child{width:115px}.collection-table tbody th{text-align:left;font-weight:550}.collection-table .metadata{white-space:nowrap}.collection-source-settings{margin:22px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:15px 0}.collection-source-settings summary,.collection-legacy summary{cursor:pointer;color:var(--muted);font-size:13px}.collection-source{display:flex;gap:20px;padding:12px 0;font-size:12px}.collection-source span{color:var(--muted)}.collection-source-settings form{max-width:620px;padding:10px 0}.collection-source-settings form button{margin-top:12px}.collection-task{padding:22px 0;border-bottom:1px solid var(--line)}.collection-task-heading{display:flex;gap:18px;align-items:center;flex-wrap:wrap}.collection-task-heading>span:not(.tag){color:var(--muted);font-size:12px}.collection-metrics{display:flex;gap:24px;flex-wrap:wrap;margin:18px 0;font-size:12px;color:var(--muted)}.collection-metrics b{font-size:17px;color:var(--ink);margin-left:6px}.collection-task-actions{display:flex;align-items:center;gap:20px;flex-wrap:wrap;font-size:12px}.collection-task-actions label{display:flex;align-items:center;gap:6px}.collection-legacy{margin-top:32px}.collection-current{margin-bottom:16px;color:var(--primary);border-color:var(--primary)}@media(max-width:760px){.collection-heading{display:block}.collection-table td:nth-child(3){min-width:225px}.collection-controls select{min-width:120px}.collection-metrics{gap:14px}}

.new-customer{display:inline-block;margin-top:8px;background:#fff3db;color:#8a5400}.detail-overview{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.detail-overview .metadata{margin:0;min-width:0;overflow-wrap:anywhere}.detail-overview .customer-return{flex-shrink:0;margin:0;white-space:nowrap}.device-unbind{display:flex;flex-direction:column;gap:12px}.device-unbind label{display:flex;flex-direction:column;gap:8px}.device-unbind select{width:100%;max-width:100%}.device-unbind button{align-self:flex-start}
.customer-actions{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:16px;margin-top:8px}.customer-actions .customer-secondary{font-size:12px;font-weight:400;line-height:1.5;color:var(--muted);padding:6px 0;min-height:32px;border:0;border-radius:0;background:transparent}.customer-actions .customer-secondary:hover{color:var(--primary);text-decoration:underline;text-underline-offset:4px}.customer-actions .customer-secondary:focus-visible{outline:2px solid var(--primary);outline-offset:3px;border-radius:2px}

.collection-reason{font-size:12px;line-height:1.6;color:var(--muted);margin:8px 0 0;white-space:normal;max-width:440px}

.collection-candidate{padding:16px 0;border-bottom:1px solid var(--line)}.collection-candidate p{margin:8px 0;overflow-wrap:anywhere}
.collection-review-filter{display:flex;align-items:center;gap:10px;margin:12px 0;color:var(--muted);font-size:13px}.collection-review-filter[hidden]{display:none}.collection-review-filter select{min-width:160px}.collection-ocr-choices{display:flex;flex-wrap:wrap;gap:7px;margin:10px 0 14px}.collection-ocr-choices button{font-size:12px;line-height:1.4;padding:6px 9px;border:1px solid var(--line);background:var(--surface);color:var(--ink);white-space:normal;text-align:left}.collection-ocr-choices button:hover{border-color:var(--primary);color:var(--primary)}
.agent-pilot{margin:0 0 30px;padding:24px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(140deg,#fff 0%,#fcf7f7 100%)}.agent-pilot-head,.agent-pilot-controls,.agent-suggestion,.agent-candidate{display:flex;align-items:center;justify-content:space-between;gap:18px}.agent-pilot-head h2{margin:6px 0 8px;font-size:21px}.agent-pilot-head p{margin:0;line-height:1.6}.agent-eyebrow{color:var(--primary);font-size:12px;font-weight:700;letter-spacing:.08em}.agent-pilot-controls{justify-content:flex-start;flex-wrap:wrap;margin:22px 0 12px}.agent-pilot-controls label{display:flex;flex-direction:column;gap:7px;color:var(--muted);font-size:12px}.agent-pilot-controls select{min-width:170px}.agent-pilot-controls button{align-self:end}.agent-pilot-metrics{display:flex;gap:28px;flex-wrap:wrap;padding:14px 0;color:var(--muted);font-size:13px}.agent-pilot-metrics b{color:var(--ink);font-size:18px;margin-right:4px}.agent-suggestion{padding:18px 20px;margin:8px 0 12px;background:#fff;border:1px solid var(--line);border-radius:12px}.agent-suggestion h3{font-size:17px;margin:6px 0}.agent-suggestion p{margin:5px 0}.agent-suggestion small{color:var(--primary)}.agent-candidate{padding:16px 2px;border-top:1px solid var(--line);align-items:flex-start}.agent-candidate strong{font-size:14px}.agent-candidate p{margin:6px 0;line-height:1.6}.agent-candidate-side{display:flex;align-items:flex-end;flex-direction:column;gap:10px;flex:none}.agent-evidence{color:var(--ink);font-size:13px;overflow-wrap:anywhere}@media(max-width:760px){.agent-pilot{padding:18px}.agent-pilot-head,.agent-suggestion{align-items:flex-start;flex-direction:column}.agent-candidate-side{gap:8px}.agent-pilot-controls select{min-width:130px}}
.agent-suggestion[hidden]{display:none}
.enrichment-row{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:16px}.enrichment-row .metadata{overflow-wrap:anywhere;min-width:0}.enrichment-row .link-button{font-size:12px}.enrichment-overview{display:flex;align-items:center;gap:12px;flex-wrap:wrap;width:100%;line-height:1.8}.enrichment-overview-note{flex-basis:100%}.enrichment-overview .link-button{font-size:12px}.enrichment-heading,.enrichment-image-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.enrichment-heading .link-button,.enrichment-image-heading a{font-size:12px}.enrichment-progress,.enrichment-review-note{font-size:13px;line-height:1.85;overflow-wrap:anywhere}.enrichment-registry{padding:12px 0;border-block:1px solid var(--line)}.enrichment-image{padding:18px 0;border-bottom:1px solid var(--line)}.enrichment-image h3{font-size:14px;margin:0}.enrichment-image img{display:block;width:100%;max-height:420px;object-fit:contain;background:var(--surface);margin:14px 0;border:1px solid var(--line)}.enrichment-image .metadata{overflow-wrap:anywhere}.enrichment-candidates{display:flex;flex-direction:column;gap:12px;margin:16px 0 4px}.enrichment-candidates label,.enrichment-confirm{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.8}.enrichment-candidates input,.enrichment-confirm input{min-height:0;width:16px;height:16px;flex:none;margin:4px 0 0;accent-color:var(--primary)}.enrichment-candidates label:has(input:disabled){color:var(--muted)}.enrichment-candidates strong{font-size:15px;letter-spacing:.4px;font-variant-numeric:tabular-nums}.enrichment-candidates small{display:block;margin-top:3px;font-size:12px;overflow-wrap:anywhere;white-space:pre-wrap}.enrichment-review-form{margin:22px 0}.enrichment-review-form .primary{margin-top:18px}.enrichment-review-form [role=status]{overflow-wrap:anywhere;white-space:pre-wrap}.enrichment-confirm span{min-width:0;overflow-wrap:anywhere}@media(max-width:480px){.enrichment-row{align-items:flex-start;gap:8px}.enrichment-image img{max-height:340px}.enrichment-review-form .primary{width:100%}}

/* 同客户多号码批量处理 */
.phone-batch-entry{display:flex;justify-content:flex-end;margin-bottom:4px}.phone-batch-entry .link-button{font-size:13px;color:var(--primary)}
.phone-batch-heading{display:flex;align-items:center;flex-wrap:wrap;gap:16px;margin-bottom:8px}.phone-batch-heading h3{margin:0 auto 0 0;font-size:16px}.phone-batch-heading small{font-weight:400;color:var(--muted)}
.phone-check,.follow-form .phone-check{display:flex;align-items:center;flex-direction:row;gap:10px;font-size:13px;line-height:1.65;cursor:pointer}
.agent-auto{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:14px 0;border-top:1px solid var(--line)}.agent-auto label{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px}.agent-auto .agent-auto-toggle{color:var(--ink);font-weight:600}.agent-auto input[type=checkbox]{width:18px;height:18px;min-height:0;accent-color:var(--primary)}.agent-auto select{min-width:95px}.agent-auto .metadata{flex-basis:100%;font-size:12px}
.phone-check input,.phone-selection{width:17px;height:17px;min-height:0;flex:none;margin:0;accent-color:var(--primary)}
.phone-batch-bar{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin-top:18px;padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:12px;font-size:13px}.phone-batch-bar label{display:flex;align-items:center;gap:8px}.phone-batch-bar select{max-width:180px}.phone-batch-bar .form-error{flex-basis:100%;margin:0}.follow-form .skip-other-phones{margin:18px 0}
.phone-batch-bar[hidden],.skip-other-phones[hidden]{display:none}
@media(max-width:540px){.phone-batch-heading{gap:12px}.phone-batch-heading h3{flex-basis:100%}.phone-batch-bar{gap:12px;padding:14px}.phone-batch-bar label{flex:1}.phone-batch-bar select{min-width:0;width:100%}.phone-batch-bar .primary{flex:1}}

/* 客户列表原地阅读跟进，保留原有两栏布局。 */
.customer-follow{margin-top:18px;padding-top:14px;border-top:1px solid var(--line);min-width:0}.customer-follow h4{font-size:12px;font-weight:550;color:var(--muted);margin:0 0 10px}.inline-follow-record+.inline-follow-record{margin-top:12px}.inline-follow-meta{display:flex;gap:5px 12px;flex-wrap:wrap;align-items:baseline;font-size:11px;color:var(--muted);line-height:1.6}.inline-follow-meta strong{font-weight:500;color:var(--ink)}.inline-follow-meta span{flex-basis:100%;font-variant-numeric:tabular-nums}.inline-follow-record p{margin:5px 0 0;font-size:13px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--ink)}.inline-follow-record .follow-note-preview{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}.inline-follow-actions{display:flex;gap:18px;margin-top:8px}.inline-follow-actions .link-button{font-size:12px;padding:4px 0;color:var(--primary)}.customer-follow .form-error{font-size:12px;line-height:1.7}.inline-follow-actions [hidden]{display:none}
/* 自动加好友：任务设置与回执保持简洁，异常状态醒目但不淹没名单。 */
#friend-task-dialog{width:min(760px,100vw);height:100dvh;max-height:100dvh;overflow:auto}
.friend-task-device{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:16px 18px;margin-bottom:16px;border:1px solid #e9d8dc;border-radius:12px;background:#fbf7f8}
.friend-task-device strong{font-size:14px}.friend-task-device p{margin:7px 0 0;color:#6b6460;font-size:12px;line-height:1.5}
.friend-task-device-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;flex:none}.friend-task-device-actions a{font-size:12px;color:var(--primary)}
.friend-task-form{display:grid;gap:18px}.friend-task-form>label{display:grid;gap:8px}
.friend-task-list{display:grid;gap:0;border:1px solid #eee6e3;border-radius:12px;overflow:hidden}
.friend-task-choice{display:grid;grid-template-columns:minmax(0,1fr) 210px;align-items:center;gap:18px;padding:14px 16px;border-bottom:1px solid #eee6e3}
.friend-task-choice:last-child{border-bottom:0}.friend-task-choice span{display:grid;gap:5px;min-width:0}
.friend-task-choice small{color:#78716f}.friend-task-choice select{width:100%;min-width:0}
.friend-queue-intro{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:24px 28px;background:#f7f5f3;border-radius:14px;margin:20px 0}
.friend-queue-intro h2{margin:0 0 8px;font-size:20px}.friend-queue-intro p{margin:0;color:#6b6460}
.friend-queue-card{border:1px solid #eee6e3;border-radius:14px;margin:18px 0;overflow:hidden;background:#fff}
.friend-queue-card header,.friend-queue-card footer{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:18px 22px}
.friend-queue-card header{border-bottom:1px solid #f1e9e7}.friend-queue-card h3{margin:0 0 7px;font-size:18px}.friend-queue-card p{margin:0}
.friend-queue-progress{padding:18px 22px;display:flex;align-items:baseline;gap:12px;color:#625a56}.friend-queue-progress strong{font-size:28px;color:#a51642}
.friend-queue-card ol{list-style:none;margin:0;padding:0 22px}.friend-queue-card li{display:flex;justify-content:space-between;align-items:center;gap:18px;border-top:1px solid #f4efed;padding:13px 0}
.friend-queue-card li>div{display:grid;gap:5px}.friend-queue-card li>div:last-child{text-align:right}.friend-queue-card small{color:#766e6b}
.friend-queue-card footer{border-top:1px solid #f1e9e7;justify-content:flex-start}
.friend-queue-review{display:flex;gap:8px;justify-content:flex-end}.friend-queue-review button{font-size:12px;padding:6px 10px}
@media(max-width:700px){.friend-task-choice{grid-template-columns:1fr}.friend-task-device,.friend-queue-intro,.friend-queue-card header,.friend-queue-card li{align-items:flex-start;flex-direction:column}.friend-queue-card li>div:last-child{text-align:left}}
.industry-status{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:14px 18px;border:1px solid #e7e2df;border-radius:12px;background:#faf8f7}
.industry-status>div:first-child{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.industry-lanes{width:100%;display:flex;gap:6px 18px;flex-wrap:wrap;color:#68636a;font-size:13px}
.industry-lanes span{display:flex;flex-direction:column;gap:2px;min-width:210px;max-width:360px}
.industry-lanes small{color:#8a858a;font-size:12px}
.collection-frozen-entry{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:24px 28px;margin-bottom:28px;border:1px solid #eadfe2;border-radius:16px;background:#fffaf9}
.collection-frozen-entry h2{margin:6px 0 10px;font-size:24px}
.collection-frozen-entry p{margin:8px 0;line-height:1.6}
.collection-frozen-facts{display:flex;gap:20px;flex-wrap:wrap;font-size:13px;font-weight:600;color:var(--ink)}
.collection-frozen-entry-actions{display:flex;align-items:flex-end;flex-direction:column;gap:10px;min-width:205px}
.collection-frozen-entry-actions button{max-width:100%}
@media(max-width:760px){.collection-frozen-entry{align-items:stretch;flex-direction:column;padding:18px}.collection-frozen-entry-actions{align-items:stretch;min-width:0}}
/* 每家一排实拍；保留完整画面以辨认招牌/货箱文字。 */
.customer-photos{min-width:0;margin:0;color:var(--muted);font-size:12px}
.customer-photo-strip{display:flex;gap:10px;overflow-x:auto;padding:2px 2px 8px;max-width:100%;overscroll-behavior-x:contain}
.customer-photo{flex:0 0 184px;height:132px;padding:0;border:1px solid var(--line);border-radius:6px;background:var(--soft,#f5f5f5);overflow:hidden;cursor:zoom-in}
.customer-photo img{display:block;width:100%;height:100%;object-fit:contain}
.customer-photo img[hidden],.photo-stage img[hidden]{display:none}
.customer-photo:hover{border-color:var(--accent,#ae1640)}
.customer-photo:focus-visible,.customer-photo-strip:focus-visible{outline:2px solid var(--accent,#ae1640);outline-offset:2px}
.photo-caption{display:block;font-size:11px;color:var(--muted);margin-top:3px}
.photo-empty{display:inline-block;color:var(--muted)}
.customer-photos>a{margin-left:12px;font-size:12px}
.photo-failed{font-size:12px;color:var(--muted)}
dialog.customer-photo-viewer{position:fixed;inset:0;margin:auto;width:min(1100px,94vw);max-width:94vw;height:min(850px,92dvh);max-height:92dvh;border:0;border-radius:10px;padding:0;background:white;overflow:hidden}
.customer-photo-viewer[open]{display:flex;flex-direction:column}
.customer-photo-viewer header,.customer-photo-viewer footer{display:flex;align-items:center;gap:14px;padding:14px 20px;flex-shrink:0}
.customer-photo-viewer header{justify-content:space-between;border-bottom:1px solid var(--line)}
.customer-photo-viewer header strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px}
.customer-photo-viewer header button{font-size:24px;padding:2px 10px}
.customer-photo-viewer footer{justify-content:center;border-top:1px solid var(--line);font-size:13px;flex-wrap:wrap}
.photo-stage{position:relative;min-height:0;flex:1;overflow:hidden;background:var(--surface);touch-action:none;user-select:none;cursor:pointer}
.photo-stage img{position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;object-fit:contain;transform-origin:center;pointer-events:none}
.photo-stage>p{position:absolute;inset:0;display:grid;place-items:center;color:var(--muted)}.photo-stage>p[hidden]{display:none}
.photo-stage.is-zoomed{cursor:grab}.photo-stage.is-dragging{cursor:grabbing}
.photo-side{position:absolute;top:0;bottom:0;margin:auto;width:48px;height:64px;padding:12px;border:0;border-radius:6px;background:oklch(1 0 0 / .88);color:var(--ink);z-index:1;opacity:.75}
.photo-prev{left:12px}.photo-next{right:12px}.photo-side svg{display:block;width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.photo-side:hover,.photo-side:focus-visible{opacity:1;background:var(--bg)}.photo-side:disabled{opacity:.22;cursor:default}.photo-side[hidden]{display:none}
.photo-zoom-reset{min-width:64px;padding:6px 10px;font-variant-numeric:tabular-nums}.photo-gesture-hint{font-size:12px;color:var(--muted)}.photo-position{font-variant-numeric:tabular-nums}
@media(max-width:760px){.customer-photos{margin:12px 0 0}.photo-side{width:40px;height:56px;padding:8px}.photo-prev{left:8px}.photo-next{right:8px}.photo-gesture-hint{display:none}.customer-photo{flex-basis:160px;height:120px}.customer-photo-viewer header,.customer-photo-viewer footer{padding:12px}}
/* 采集工作台按用途分区，沿用业务列表的视觉语言。 */
.collection-workbench-nav{display:flex;flex-direction:row;gap:28px;border-bottom:1px solid var(--line);margin-bottom:28px;overflow-x:auto}
.collection-workbench-nav button{border:0;border-radius:0;background:transparent;padding:14px 2px;white-space:nowrap;color:var(--muted)}
.collection-workbench-nav button[aria-pressed="true"]{color:var(--primary);box-shadow:inset 0 -2px currentColor;font-weight:700}
#collection-workbench [hidden]{display:none!important}
#collection-discover .collection-frozen-entry{margin-top:0}
#collection-enrich,#collection-industry{padding:8px 0 24px}
.collection-source-progress article{padding:16px 0;border-bottom:1px solid var(--line)}
.collection-source-progress h3{margin:0;font-size:16px}
.collection-source-progress p{font-variant-numeric:tabular-nums;line-height:1.7}
.collection-empty{padding:24px 0;max-width:65ch;line-height:1.8}
#collection-phone-area{margin-top:28px}
#collection-photo-review-area{margin-top:24px}
#collection-system-settings{margin-top:32px}
#collection-workbench button:focus-visible{outline:2px solid var(--primary);outline-offset:4px}
@media(max-width:720px){.collection-workbench-nav{gap:22px}.collection-workbench-nav button{font-size:14px}#collection-enrich .collection-heading{align-items:flex-start;gap:14px;flex-wrap:wrap}.collection-source-progress p{font-size:13px}}

.customer-stars{display:flex;align-items:center;gap:2px;flex-wrap:nowrap}
.customer-stars>.subline{margin-right:8px}
.star-button{border:0;background:transparent;color:#777;padding:2px;width:32px;height:36px;font-size:26px;line-height:1;cursor:pointer}
.star-button.is-rated{color:#a4690b}
.star-button:hover{background:#fff5df;border-radius:4px}
.star-button:focus-visible{outline:2px solid #a71946;outline-offset:1px}
.star-button:disabled{opacity:.55;cursor:wait}
.star-status{font-size:12px;color:#666;margin-left:6px;min-width:3em}

/* 统一居中弹层，长内容在弹层内滚动。 */
dialog:not(.customer-photo-viewer){position:fixed;inset:0;margin:auto;width:min(760px,calc(100vw - 32px));height:fit-content;max-height:calc(100dvh - 48px);border:1px solid var(--line);border-radius:14px;box-shadow:0 24px 80px #23151b26;overflow:auto}
dialog::backdrop{background:rgb(25 20 23 / 38%)}
#friend-task-dialog{width:min(760px,calc(100vw - 32px));height:fit-content;max-height:calc(100dvh - 48px)}
dialog.action-dialog{width:min(440px,calc(100vw - 32px));padding:28px;box-sizing:border-box}
.action-dialog h2{font-size:19px;line-height:1.4;margin:0 0 12px;font-weight:600}
.action-dialog p{font-size:14px;color:var(--muted);line-height:1.8;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.action-dialog label{display:flex;flex-direction:column;gap:8px;font-size:13px;margin-top:20px}
.action-dialog input{width:100%;font-variant-numeric:tabular-nums}
.action-dialog-footer{display:flex;justify-content:flex-end;gap:10px;margin-top:26px}
.action-dialog-footer button{min-width:80px;min-height:40px;font-size:14px}
@media(max-width:480px){dialog.action-dialog{padding:22px}dialog:not(.customer-photo-viewer),#friend-task-dialog{max-height:calc(100dvh - 24px)}}

.industry-status details{max-width:100%;line-height:1.8}.industry-status summary{cursor:pointer;color:var(--muted,#666)}

/* 客户与业务详情恢复右侧内容栏；操作确认仍居中。 */
dialog#detail{inset:0 0 0 auto;margin:0;width:min(760px,100vw);height:100dvh;max-width:100vw;max-height:100dvh;border-radius:0;border-width:0 0 0 1px;overflow:auto}

.pagination,.pagination .pages{flex-wrap:wrap;gap:8px}.pages [aria-current="page"]{background:var(--primary);color:white;opacity:1}.pages #page-jump{display:flex;align-items:center;gap:8px}.pages #page-jump input{width:76px;min-height:36px;padding:6px}.pages #page-jump label{white-space:nowrap}

.customer-type-summary{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}.customer-type-summary .link-button{border:1px solid #d8ddd6;border-radius:999px;padding:3px 10px}

.nav-group{display:flex;flex-direction:column;gap:4px;margin-bottom:12px}.nav-group-title{font-size:12px;color:#8a938c;padding:0 10px;margin-bottom:2px}.dashboard .metric-row{display:flex;flex-wrap:wrap;gap:10px;margin:8px 0}.metric-card{display:flex;flex-direction:column;gap:4px;min-width:120px;padding:12px 16px;border:1px solid #e2e6de;border-radius:12px;background:#fff;text-align:left}.metric-card span{font-size:12px;color:#6b736c}.metric-card strong{font-size:22px;color:#1f3b2c}button.metric-card{cursor:pointer}

@media (max-width:640px){.sidebar{position:static;width:100%;height:auto;display:flex;flex-wrap:wrap;gap:8px;padding:10px}.sidebar .brand{width:100%}#main-nav{display:flex;gap:6px;overflow-x:auto;padding-bottom:4px}.nav-group{flex-direction:row;margin-bottom:0}.nav-group-title{display:none}.workspace{padding:12px}.filters{flex-wrap:wrap;gap:8px}.filters select,.filters input{min-width:0;flex:1 1 45%}.metric-row{gap:8px}.metric-card{flex:1 1 45%;min-width:0}}
