/* ===== Lead Cockpit — full-width single-screen lead workspace ===== */
.lc { display: grid; grid-template-columns: 300px minmax(480px, 1fr) 340px; grid-template-rows: auto auto 1fr; gap: 22px; align-items: start; }
.lc__header { grid-column: 1 / -1; grid-row: 1; position: sticky; top: 0; z-index: 20; }
.lc__banners { grid-column: 1 / -1; grid-row: 2; display: flex; flex-direction: column; gap: 10px; }
.lc__left { grid-column: 1; grid-row: 3; display: flex; flex-direction: column; gap: 16px; }
.lc__main { grid-column: 2; grid-row: 3; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.lc__right { grid-column: 3; grid-row: 3; display: flex; flex-direction: column; gap: 16px; }

.lc-card { background: #fff; border: 1px solid rgba(0,0,0,.05); border-radius: 16px; padding: 20px; box-shadow: 0 4px 24px rgba(0,0,0,.04); }
.lc-card__h { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #767676; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.lc-card__h i { color: var(--text-3, #9a9a9a); }
.lc-card__h .lc-card__hl { display: flex; align-items: center; gap: 8px; }

/* header */
.lc__header.lc-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 22px; }
.lc-id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.lc-id .avatar--lg { width: 56px; height: 56px; font-size: 20px; flex-shrink: 0; }
.lc-name { font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: var(--text-1, #1a1a1a); margin: 0; line-height: 1.1; }
.lc-contact { font-size: 13px; color: var(--text-2, #4a4a4a); margin-top: 3px; display: flex; gap: 12px; flex-wrap: wrap; }
.lc-contact a { color: var(--text-2, #4a4a4a); text-decoration: none; }
.lc-contact a:hover { color: var(--text-1, #1a1a1a); text-decoration: underline; }
.lc-badges { display: flex; align-items: center; gap: 12px; margin-top: 11px; }
.lc-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.lc-pill-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.lc-pill { border-radius: 9999px; padding: 5px 12px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.lc-pill--status { background: var(--panel, #E8F0F4); color: var(--text-1, #1a1a1a); }

/* actions dropdown */
.lc-menu { position: relative; }
.lc-menu__list { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: 14px; box-shadow: 0 16px 44px rgba(0,0,0,.16); padding: 6px; width: 210px; z-index: 40; }
.lc-menu__item { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: none; background: transparent; border-radius: 9px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text-1, #1a1a1a); text-align: left; }
.lc-menu__item:hover { background: #f5f3ef; }
.lc-menu__item i { width: 16px; text-align: center; color: var(--text-3, #9a9a9a); }
.lc-menu__item--danger { color: #d43f3f; }
.lc-menu__item--danger i { color: #d43f3f; }
.lc-menu__item--won { color: #1f9d55; }
.lc-menu__item--won i { color: #1f9d55; }

/* key-value grid */
.lc-kv { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.lc-kv__item { min-width: 0; }
.lc-kv__item--full { grid-column: 1 / -1; }
.lc-kv .k { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #9a9a9a; margin-bottom: 2px; }
.lc-kv .v { font-size: 13.5px; font-weight: 600; color: var(--text-1, #1a1a1a); word-break: break-word; }

/* list rows (tasks, visits) */
.lc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--panel, #E8F0F4); font-size: 13px; margin-bottom: 8px; transition: background .15s ease; }
.lc-row:hover { background: #dbe8ef; }
.lc-row__t { font-weight: 600; color: var(--text-1, #1a1a1a); }
.lc-empty { color: var(--text-3, #9a9a9a); font-size: 13px; padding: 4px 0; }

/* composer sub-tabs */
.lc-subtabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.lc-subtab { border: 1px solid rgba(0,0,0,.1); background: #fff; color: var(--text-2, #4a4a4a); border-radius: 9999px; padding: 7px 16px; font-size: 12.5px; font-weight: 700; cursor: pointer; transition: all .15s ease; }
.lc-subtab:hover { border-color: var(--text-1, #1a1a1a); }
.lc-subtab.active { background: var(--text-1, #1a1a1a); color: #fff; border-color: var(--text-1, #1a1a1a); }
.lc-note { display: flex; gap: 10px; }
.lc-note .input { flex: 1; }

/* module summary card */
.lc-mod__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lc-mod__sum { font-size: 13px; color: var(--text-2, #4a4a4a); }

@media (max-width: 1240px) {
  .lc { grid-template-columns: 1fr; grid-template-rows: auto; }
  .lc__header, .lc__banners, .lc__left, .lc__main, .lc__right { grid-column: 1; grid-row: auto; }
  .lc__header { position: static; }
}

/* ===== Live Lead Journey — aligned with the Demo Command Center ===== */
.lj-card { overflow: hidden; }
.lj-head { margin-bottom: 10px; }
.lj-progress { display:flex; align-items:center; gap:8px; font-size:10px; color:#7c8780; text-transform:none; letter-spacing:0; font-weight:600; }
.lj-progress__bar { width:110px; height:6px; background:#edf1ee; border-radius:99px; overflow:hidden; }
.lj-progress__bar i { display:block; height:100%; background:linear-gradient(90deg,#17623f,#66c38e); border-radius:99px; transition:width .25s ease; }
.lj-progress b { color:#24513a; font-size:11px; }

.lj-rail { display:grid; grid-template-columns:repeat(8,minmax(82px,1fr)); position:relative; gap:0; padding:8px 2px 18px; overflow-x:auto; scrollbar-width:thin; }
.lj-rail::before { content:""; position:absolute; left:6%; right:6%; top:29px; height:2px; background:#e2e7e4; }
.lj-node { min-width:82px; position:relative; z-index:2; text-align:center; padding:0 3px; }
.lj-circle { width:42px; height:42px; border-radius:50%; background:#fff; border:1px solid #d8dfdb; color:#8b978f; display:flex; align-items:center; justify-content:center; margin:0 auto 7px; box-shadow:0 2px 7px rgba(22,57,42,.05); }
.lj-node.reached .lj-circle { border-color:#9dc8ad; color:#17623f; background:#f0faf4; }
.lj-node.complete .lj-circle { background:#e7f6ec; border-color:#6fbb8c; color:#137944; }
.lj-node.active .lj-circle { background:#17623f; color:#fff; border-color:#17623f; box-shadow:0 0 0 5px rgba(23,98,63,.10); }
.lj-node b { display:block; font-size:10px; line-height:1.2; color:#263b31; }
.lj-node small { display:block; margin-top:4px; font-size:8.5px; line-height:1.25; color:#98a19b; }
.lj-node.active b { color:#134b31; }

.lj-command { border:1px solid #e4eae6; border-radius:13px; background:#fbfcfb; display:grid; grid-template-columns:1.15fr 1fr 1fr; overflow:hidden; }
.lj-command > div { padding:14px; border-right:1px solid #e7ebe8; min-width:0; }
.lj-command > div:last-child { border-right:0; }
.lj-command small { display:block; font-size:9px; font-weight:800; letter-spacing:.08em; color:#7d8981; margin-bottom:7px; }
.lj-command__next h3 { margin:0 0 4px; font-size:16px; color:#1f3f30; }
.lj-command__next p { margin:0 0 11px; color:#718078; font-size:11px; line-height:1.45; }
.lj-kv { display:flex; justify-content:space-between; gap:12px; align-items:center; border-bottom:1px solid #edf0ee; padding:6px 0; font-size:10.5px; }
.lj-kv:last-child { border-bottom:0; }
.lj-kv span { color:#78847d; }
.lj-kv b { color:#2c4337; text-align:right; font-size:10.5px; max-width:58%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

@media (max-width: 980px) {
  .lj-command { grid-template-columns:1fr; }
  .lj-command > div { border-right:0; border-bottom:1px solid #e7ebe8; }
  .lj-command > div:last-child { border-bottom:0; }
}
