/*--------------------------------------------------------------
# DotEcho - Leads page styles, layered on app.css and the shared kanban classes.
--------------------------------------------------------------*/

/* Stage filter counts */
.de-seg .cnt { font-family: var(--nav-font); font-size: .7rem; font-weight: 600; background: var(--hover-bg); border: 1px solid var(--hairline-strong); border-radius: 999px; padding: 1px 7px; color: var(--text-muted); }
.de-seg button.active .cnt { color: var(--emerald); border-color: rgba(34, 197, 94, .35); }

/* Board: seven stages side by side, scrolling inside its own wrapper on narrow screens */
.de-lead-board-wrap { overflow-x: auto; padding-bottom: 6px; }
.de-lead-board { display: grid; grid-template-columns: repeat(7, minmax(215px, 1fr)); gap: 12px; align-items: start; min-width: 1100px; }
.de-lead-board.single { grid-template-columns: minmax(260px, 520px); min-width: 0; }
.de-lead-board .de-col { padding: 10px; }
.de-lead-board .de-col-head .cnt { font-family: var(--nav-font); font-size: .7rem; background: var(--hover-bg); border: 1px solid var(--hairline-strong); border-radius: 999px; padding: 1px 7px; color: var(--text-muted); text-transform: none; letter-spacing: 0; }
.de-lead-board .de-task { cursor: pointer; }
.de-lead-board .de-task:focus-visible { outline: 2px solid var(--emerald); outline-offset: 2px; }
.de-task .de-score { width: 30px; height: 30px; font-size: .7rem; border-width: 2px; }
.de-task .next { font-size: .76rem; color: var(--text-soft); margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.de-task .next i { color: var(--emerald); margin-right: 4px; }
.de-task-meta .de-badge { font-size: .64rem; padding: 2px 8px; }
.de-task-meta a.de-badge:hover { border-color: var(--status-warn); }

/* List view */
.de-table .sub { font-size: .76rem; color: var(--text-muted); margin-top: 2px; }
.de-table td.clip { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Detail modal */
.de-lead-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.de-lead-head .de-score { width: 46px; height: 46px; font-size: .95rem; }
.de-lead-head .grow { flex: 1 1 auto; min-width: 0; }
.de-lead-head h3 { margin: 0; font-family: var(--heading-font); font-size: 1.15rem; color: var(--text-strong); }
.de-lead-head .sub { font-size: .84rem; color: var(--text-muted); margin-top: 2px; }
.de-lead-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; margin: 0 0 4px; }
.de-lead-dl dt { font-family: var(--nav-font); font-size: .7rem; text-transform: uppercase; letter-spacing: .6px; color: var(--text-faint); margin-top: 12px; }
.de-lead-dl dd { margin: 3px 0 0; color: var(--text-soft); font-size: .9rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.de-lead-dl .full { grid-column: 1 / -1; }
.de-lead-box { background: var(--surface-deep); border: 1px solid var(--hairline); border-radius: 10px; padding: 12px 14px; margin-top: 12px; }
.de-lead-box .lbl { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-family: var(--nav-font); font-size: .7rem; text-transform: uppercase; letter-spacing: .6px; color: var(--text-faint); margin-bottom: 6px; }
.de-lead-box p { margin: 0; white-space: pre-wrap; font-size: .9rem; color: var(--text-soft); line-height: 1.5; }
.de-lead-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
.de-lead-actions .spacer { flex: 1 1 auto; }
@media (max-width: 575px) { .de-lead-dl { grid-template-columns: 1fr; } }
