.lead-page { --lead-border: #e9edf5; }
.lead-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.lead-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .6rem; }
.summary-pill { border: 1px solid var(--lead-border); border-radius: .65rem; background: #fff; padding: .6rem .75rem; display: flex; justify-content: space-between; align-items: center; color: #2d3a4d; }
.summary-pill.active { border-color: #4b6bfb; box-shadow: 0 0 0 2px rgba(75, 107, 251, .15); }
.lead-toolbar { display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.lead-toolbar-left { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.search-box { position: relative; }
.search-box i { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); color: #8b94a7; }
.search-box input { min-width: 280px; padding-left: 2rem; }
.view-toggle .btn.active { background: #4b6bfb; color: #fff; border-color: #4b6bfb; }
.kanban-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .75rem; overflow-x: auto; padding-bottom: .5rem; }
.kanban-column { background: #f8f9fc; border: 1px solid #e9edf5; border-radius: .65rem; min-height: 320px; display: flex; flex-direction: column; }
.kanban-column-header { display: flex; justify-content: space-between; align-items: center; padding: .65rem .75rem; border-bottom: 1px solid #e9edf5; font-weight: 600; }
.kanban-column-body { padding: .6rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; min-height: 200px; }
.kanban-empty { color: #94a3b8; font-size: .85rem; text-align: center; padding: 1rem .5rem; border: 1px dashed #dbe2ee; border-radius: .5rem; }
.kanban-card { background: #fff; border: 1px solid #e6eaf2; border-radius: .55rem; padding: .65rem; cursor: grab; }
.kanban-card-title { font-weight: 600; font-size: .92rem; }
.kanban-card-company { color: #64748b; font-size: .82rem; margin-top: .15rem; }
.kanban-card-meta { color: #64748b; font-size: .78rem; margin-top: .45rem; }
.kanban-tags { margin-top: .45rem; display: flex; gap: .25rem; flex-wrap: wrap; }
.kanban-card-actions { display: flex; gap: .25rem; margin-top: .55rem; }
.status-chip { display: inline-block; padding: .15rem .45rem; border-radius: .35rem; font-size: .75rem; background: #eef2ff; color: #3730a3; }
.lead-modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 1040; }
.lead-modal { position: fixed; top: 2%; left: 50%; transform: translateX(-50%); width: min(1120px, 96vw); max-height: 95vh; background: #fff; border-radius: .8rem; box-shadow: 0 12px 50px rgba(0,0,0,.25); z-index: 1041; overflow: hidden; display: flex; flex-direction: column; }
.lead-modal-header { padding: .9rem 1rem; border-bottom: 1px solid #eceff5; display: flex; justify-content: space-between; align-items: center; }
.lead-tab-strip { display: flex; padding: .8rem 1rem .5rem; gap: .45rem; flex-wrap: wrap; border-bottom: 1px solid #eceff5; }
.tab-chip { border: 1px solid #dbe2ee; background: #f6f8fc; color: #3b4456; border-radius: .5rem; padding: .35rem .7rem; font-size: .8rem; }
.tab-chip.active { background: #fff; border-color: #4b6bfb; color: #2c4fd8; }
.lead-modal-body { overflow: auto; padding: 1rem; flex: 1; }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.profile-card { border: 1px solid #edf0f6; border-radius: .65rem; padding: .8rem; }
.profile-card p { display: flex; justify-content: space-between; gap: .8rem; margin-bottom: .45rem; font-size: .86rem; }
.profile-card span { color: #64748b; }
.tab-toolbar { display: flex; justify-content: space-between; gap: .6rem; margin-bottom: .75rem; flex-wrap: wrap; }
.note-feed-item { border: 1px solid #edf0f6; border-radius: .55rem; padding: .65rem; margin-bottom: .5rem; }
@media (max-width: 768px) { .profile-grid { grid-template-columns: 1fr; } }

.lead-toolbar-right { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.lead-filter-row { display: flex; align-items: center; gap: .6rem; flex-wrap: nowrap; }
.status-multi-select { position: relative; min-width: 200px; }
.status-multi-trigger { width: 100%; height: 38px; border: 1px solid #ced4da; border-radius: .375rem; background: #fff; padding: .35rem .75rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.status-multi-backdrop { position: fixed; inset: 0; z-index: 1040; background: transparent; }
.status-multi-panel { position: absolute; top: calc(100% + .35rem); left: 0; z-index: 1050; min-width: 100%; background: #fff; border: 1px solid var(--lead-border); border-radius: .5rem; box-shadow: 0 8px 24px rgba(20, 29, 54, .12); }
.status-multi-panel-header { display: flex; align-items: center; justify-content: space-between; padding: .55rem .75rem; border-bottom: 1px solid var(--lead-border); font-size: .8rem; font-weight: 600; }
.status-multi-options { max-height: 260px; overflow-y: auto; padding: .35rem 0; }
.status-multi-option { display: flex; align-items: center; gap: .55rem; padding: .45rem .75rem; margin: 0; cursor: pointer; font-size: .88rem; }
.lead-date-filters { display: flex; align-items: flex-end; gap: .45rem; }
.lead-date-field { display: flex; flex-direction: column; gap: .15rem; }
.lead-date-label { font-size: .72rem; color: #64748b; }
.last-updated-cell, .follow-up-date-cell { min-width: 130px; line-height: 1.25; }
.last-updated-primary, .follow-up-date-primary { font-weight: 600; white-space: nowrap; }
.last-updated-relative { font-size: .78rem; margin-top: .15rem; }
