/* CRM30: focused lead browsing, using the existing K3 working palette. */
.leads-workspace{min-width:0;max-width:100%}
.leads-workspace .lead-toolbar{grid-template-columns:minmax(0,1fr) auto auto;align-items:stretch}
.leads-workspace .lead-search .input::placeholder{color:var(--muted);opacity:1}
.leads-workspace .lead-all{gap:8px;min-height:48px;white-space:normal}
.leads-workspace .lead-all strong{font-variant-numeric:tabular-nums}
.leads-workspace .lead-all.active{background:var(--blue-pale);border-color:var(--blue);color:var(--blue)}
.leads-workspace .lead-tabs .tab .lead-step-icon{display:flex;align-items:center;justify-content:center;order:0;color:inherit;font-size:inherit}
.leads-workspace .lead-tabs .tab .lead-step-icon .nav-icon{display:block;width:18px;height:18px}
.leads-workspace .lead-tabs .tab .lead-step-count{order:0;font-size:23px;line-height:1.25;color:var(--navy);font-variant-numeric:tabular-nums}
.leads-workspace .lead-tabs .tab .lead-step-label{order:0;font-size:14px;line-height:1.5;color:inherit}
.leads-workspace .lead-tabs .tab .lead-step-state{display:none}
.leads-workspace .lead-applied-filters{gap:6px;align-items:center}
.leads-workspace .filter-pill{max-width:100%;min-height:44px;white-space:normal;overflow-wrap:anywhere}
.leads-workspace button.filter-pill{display:inline-flex;align-items:center;gap:8px;text-align:left}
.leads-workspace .filter-pill .nav-icon{width:16px;height:16px;flex:none}
.leads-workspace .applied-filters .linkbtn,.leads-workspace .filter-sheet-head .linkbtn{min-height:44px}
.leads-workspace .list-context{flex-wrap:wrap;align-items:center}
.leads-workspace .lead-list{align-items:start;gap:12px}
.leads-workspace .lead-list .lead-group-heading{margin:20px 0 0;font-size:16px}
.leads-workspace .lead-list .lead-group-heading:first-child{margin-top:4px}
.leads-workspace .lead-ticket{gap:8px;padding:18px;min-width:0;max-width:100%;box-shadow:none}
.leads-workspace .ticket-meta{font-size:12px;align-items:flex-start;flex-wrap:wrap;gap:6px 12px}
.leads-workspace .lead-status{display:inline-flex;align-items:center;gap:5px;max-width:100%;font-size:12px;font-weight:700;line-height:1.55;color:var(--lead-status-ink);background:var(--lead-status-fill);padding:4px 7px;border-radius:6px;overflow-wrap:anywhere}
.leads-workspace .lead-status .nav-icon{width:15px;height:15px;flex:none}
.leads-workspace .lead-tone-receipt{--lead-status-ink:#335fb0;--lead-status-fill:#edf2fb}
.leads-workspace .lead-tone-unreachable{--lead-status-ink:#996019;--lead-status-fill:#fff4e5}
.leads-workspace .lead-tone-followup{--lead-status-ink:var(--blue);--lead-status-fill:var(--blue-pale)}
.leads-workspace .lead-tone-quote{--lead-status-ink:#7550a2;--lead-status-fill:#f4effa}
.leads-workspace .lead-tone-won{--lead-status-ink:#087c69;--lead-status-fill:#e8f5ef}
.leads-workspace .lead-tone-lost{--lead-status-ink:#b13e51;--lead-status-fill:#fbeef0}
.leads-workspace .ticket-title{margin:0;font-size:18px;line-height:1.5;color:var(--navy);overflow-wrap:anywhere}
.leads-workspace .ticket-title .linkbtn{font:inherit;color:inherit;text-align:left;white-space:normal;overflow-wrap:anywhere;padding:0;min-height:44px}
.leads-workspace .ticket-company-name{font-size:13px;color:var(--muted);margin:-4px 0 0;overflow-wrap:anywhere}
.leads-workspace .ticket-contact{display:flex;align-items:center;flex-wrap:wrap;gap:2px 12px;min-width:0;color:var(--muted);font-size:13px;overflow-wrap:anywhere}
.leads-workspace a.ticket-phone{min-height:44px;max-width:100%;white-space:normal;word-break:break-word;text-underline-offset:3px}
.leads-workspace .ticket-brief{min-width:0;padding-top:2px}
.leads-workspace .ticket-project{display:flex;align-items:flex-start;gap:6px;overflow-wrap:anywhere;font-size:13px;line-height:1.6;margin:0 0 4px;color:var(--muted)}
.leads-workspace .ticket-project .nav-icon{width:16px;height:16px;flex:none;margin-top:3px}
.leads-workspace .lead-ticket .ticket-need{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.65;color:var(--ink);margin:0}
.leads-workspace .ticket-read{display:inline-flex;align-items:center;gap:4px;font-size:13px;min-height:44px;padding:4px 0}
.leads-workspace .ticket-read .nav-icon{width:14px;height:14px}
.leads-workspace .lead-ticket .ticket-next,.leads-workspace .ticket-result{display:grid;gap:4px;border:0;border-radius:7px;background:#f1f6f5;padding:10px 12px;min-width:0;font-size:13px;line-height:1.6;overflow-wrap:anywhere}
.leads-workspace .ticket-next .ticket-next-label{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--muted)}
.leads-workspace .ticket-next-label .nav-icon{width:15px;height:15px;flex:none}
.leads-workspace .ticket-next .linkbtn{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:14px;text-align:left;line-height:1.55;min-height:44px;padding:2px 0;white-space:normal;overflow-wrap:anywhere}
.leads-workspace .ticket-next .linkbtn .nav-icon{width:15px;height:15px;flex:none}
.leads-workspace .ticket-next>strong,.leads-workspace .ticket-result>strong{font-size:14px;color:var(--ink)}
.leads-workspace .ticket-next>span:last-child{font-size:12px;font-variant-numeric:tabular-nums}
.leads-workspace .lead-ticket .ticket-next-late{background:#fbeef0}
.leads-workspace .ticket-next-late .ticket-next-label{color:#b13e51}
.leads-workspace .ticket-result{background:var(--lead-status-fill)}
.leads-workspace .ticket-result>strong{color:var(--lead-status-ink)}
.leads-workspace .ticket-result>span{color:var(--ink)}
.leads-workspace .ticket-foot{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:4px;padding-top:12px}
.leads-workspace .ticket-owner{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;font-size:12px;color:var(--muted)}
.leads-workspace .ticket-owner>span{display:flex;align-items:center;gap:6px;min-width:0;overflow-wrap:anywhere}
.leads-workspace .ticket-owner .nav-icon{width:15px;height:15px;flex:none}
.leads-workspace .ticket-owner>small{font-size:12px}
.leads-workspace .ticket-actions{flex:1 1 auto;min-width:0;justify-content:flex-end}
.leads-workspace .ticket-actions .btn{font-size:13px;min-height:44px;max-width:100%}
.leads-workspace .tag-chip{min-height:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.leads-workspace .history-ticket .ticket-need{-webkit-line-clamp:3}
.leads-workspace .lead-other-results,.leads-workspace .lead-more{grid-column:1/-1;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;padding:18px 0;text-align:center;font-size:14px}
.leads-workspace .lead-list>.empty{grid-column:1/-1}
.leads-workspace .lead-more p{margin:0;color:var(--muted)}
.leads-workspace .lead-more .btn{min-height:44px}
.leads-workspace .lead-list-end{text-align:center;margin:20px 0 0}
.leads-workspace :is(button,a,input,select,summary):focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.leads-workspace button:disabled{opacity:.55;cursor:wait}
@media(max-width:760px){
 .leads-workspace .lead-toolbar{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
 .leads-workspace .lead-search{grid-column:1/-1}
 .leads-workspace .lead-search .input{font-size:16px}
 .leads-workspace .lead-all,.leads-workspace .filter-trigger{min-width:0;min-height:44px;padding:9px 10px;font-size:13px}
 .leads-workspace .lead-tabs .tab{min-height:98px;padding:8px 2px;gap:3px}
 .leads-workspace .lead-tabs .tab .lead-step-label{font-size:12px;line-height:1.5}
 .leads-workspace .lead-tabs .tab .lead-step-count{font-size:21px}
 .leads-workspace .lead-tabs .tab .lead-step-icon .nav-icon{width:16px;height:16px}
 .leads-workspace .lead-ticket{padding:15px;gap:7px}
 .leads-workspace .ticket-title{font-size:17px}
 .leads-workspace .ticket-meta{font-size:12px;gap:5px 8px}
 .leads-workspace .ticket-meta>span:first-child{flex-basis:100%}
 .leads-workspace .ticket-contact{font-size:13px}
 .leads-workspace .ticket-foot{align-items:flex-start}
 .leads-workspace .ticket-owner{flex-basis:100%}
 .leads-workspace .ticket-actions{justify-content:flex-start;flex-wrap:wrap}
 .leads-workspace .ticket-actions .btn{flex:1 1 auto}
 .leads-workspace .lead-sort{width:100%;gap:8px;margin:0;font-size:12px;flex-wrap:wrap}
 .leads-workspace .lead-sort select{flex:1;min-width:0;font-size:16px}
 .leads-workspace .lead-filters{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
 .leads-workspace .lead-filters>*{min-width:0;max-width:100%}
 .leads-workspace .lead-filters select{font-size:16px;min-height:44px}
 .leads-workspace .filter-sheet-head{flex-wrap:wrap}
 .leads-workspace .applied-filters{flex-wrap:wrap;min-width:0}
 .leads-workspace .filter-pill{font-size:12px}
}
@media(prefers-reduced-motion:reduce){.leads-workspace *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
