/* The lead page — profile header, stage bar, contact panel, activity composer and timeline, follow-up and to-dos. */

.ld { --ink: #12163a; --ink2: #4a5272; --mute: #7b819c; --line: #eceef7; --blue: #2a47f5; max-width: 1290px; margin: 0 auto; padding: 0 0 28px; color: var(--ink); font-family: var(--font-body); }
.ld *, .ld *::before, .ld *::after { box-sizing: border-box; }
.ld .ci { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.ld h1, .ld h2 { font-family: var(--font-heading); margin: 0; color: var(--ink); }

.ld-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: 0 4px 20px rgba(70, 80, 160, 0.06); min-width: 0; }
.ld-card h2 { font-size: 15px; font-weight: 800; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.ld-card h2 .more, .ld-card h2 .ld-edit { margin-left: auto; width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--mute); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none; padding: 0; }
.ld-card h2 .more:hover, .ld-card h2 .ld-edit:hover { color: var(--blue); border-color: #c9d2fb; background: #f3f5ff; }
.ld-count { background: #eef1ff; color: var(--blue); border-radius: 99px; font-size: 11.5px; padding: 1px 8px; font-weight: 800; }

/* Header */
.ld-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.ld-back { width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--mute); text-decoration: none; flex: none; }
.ld-back:hover { color: var(--blue); border-color: #c9d2fb; background: #f3f5ff; }
.ld-avatar { width: 62px; height: 62px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--a), color-mix(in srgb, var(--a) 60%, #fff)); color: #fff; font: 800 24px var(--font-heading); box-shadow: 0 6px 16px color-mix(in srgb, var(--a) 35%, transparent); }
.ld-who { flex: 1; min-width: 220px; }
.ld-who h1 { font-size: 24px; font-weight: 800; line-height: 1.15; }
.ld-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 7px; }
.ld-when { font-size: 12.5px; color: var(--mute); }
.ld-quick { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.ld-act { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); text-decoration: none; cursor: pointer; transition: box-shadow .15s, transform .15s; }
.ld-act:hover { box-shadow: 0 8px 20px rgba(79, 70, 229, 0.14); transform: translateY(-1px); }
.ld-act .ico { width: 32px; height: 32px; border-radius: 9px; color: #fff; display: inline-flex; align-items: center; justify-content: center; }

/* Stage bar */
.ld-stages { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 12px 16px; flex-wrap: wrap; }
.ld-steps { flex: 1; display: flex; align-items: center; min-width: 360px; }
.ld-step { flex: 1; display: flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 4px 6px 4px 0; cursor: pointer; font: inherit; position: relative; color: var(--mute); }
.ld-step:not(:last-child)::after { content: ""; flex: 1; height: 3px; border-radius: 3px; background: #e7eaf5; margin-left: 6px; min-width: 14px; }
.ld-step .dot { width: 34px; height: 34px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; background: #f1f3fa; color: #98a0bd; border: 2px solid #e7eaf5; transition: all .15s; }
.ld-step .lbl { font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.ld-step:hover:not(:disabled) .dot { border-color: var(--c); color: var(--c); background: #fff; }
.ld-step.done .dot { background: var(--c); border-color: var(--c); color: #fff; }
.ld-step.done:not(:last-child)::after { background: var(--c); }
.ld-step.now .dot { background: var(--c); border-color: var(--c); color: #fff; box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 22%, transparent); }
.ld-step.now .lbl { color: var(--ink); }
.ld-step:disabled { cursor: default; }
.ld-lost { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #6b7280; background: #f3f4f6; border-radius: 99px; padding: 6px 8px 6px 12px; }

/* Grid */
.ld-grid { display: grid; grid-template-columns: 290fr 640fr 300fr; gap: 12px; align-items: start; }
.ld-col { display: grid; gap: 12px; min-width: 0; }

/* Contact */
.ld-info { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 11px; }
.ld-info li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--ink2); line-height: 1.35; word-break: break-word; }
.ld-info li .ci { color: var(--blue); margin-top: 1px; }
.ld-info li a { color: var(--blue); font-weight: 700; text-decoration: none; margin-right: 8px; }
.ld-owner { display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.ld-owner select { flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 13px; font-weight: 700; background: #fff; color: var(--ink); min-width: 0; }

/* Follow-up */
.ld-follow { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ld-follow .day { width: 54px; height: 58px; border-radius: 13px; background: #eef1ff; color: var(--blue); display: inline-flex; flex-direction: column; align-items: center; justify-content: center; font: 800 22px/1 var(--font-heading); }
.ld-follow .day small { font: 700 11px var(--font-body); text-transform: uppercase; margin-top: 3px; }
.ld-follow b { display: block; font-size: 14.5px; }
.ld-follow small { font-size: 12.5px; color: var(--mute); }
.ld-follow.late .day { background: #fee2e2; color: #dc2626; }
.ld-follow.late small { color: #dc2626; font-weight: 700; }
.ld-follow.none { color: var(--mute); font-size: 13.5px; background: #f7f8fc; border-radius: 12px; padding: 14px; justify-content: center; }

/* Quote */
.ld-quote blockquote { margin: 0; padding: 14px 16px 14px 18px; border-left: 4px solid #c7cffd; background: linear-gradient(90deg, #f5f7ff, #fff); border-radius: 0 12px 12px 0; font-size: 15px; line-height: 1.55; color: var(--ink); white-space: pre-wrap; }
.ld-quote .none { margin: 0; color: var(--mute); font-size: 13.5px; }

/* Composer */
.ld-compose { display: grid; gap: 10px; }
.ld-kinds { display: flex; gap: 6px; flex-wrap: wrap; }
.ld-kinds label { cursor: pointer; }
.ld-kinds input { position: absolute; opacity: 0; pointer-events: none; }
.ld-kinds span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 99px; border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--ink2); background: #fff; transition: all .12s; }
.ld-kinds label:hover span { border-color: var(--c); color: var(--c); }
.ld-kinds input:checked + span { background: var(--c); border-color: var(--c); color: #fff; box-shadow: 0 4px 12px color-mix(in srgb, var(--c) 35%, transparent); }
.ld-kinds input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.ld-compose textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; font: inherit; font-size: 14px; resize: vertical; min-height: 84px; color: var(--ink); }
.ld-compose textarea:focus, .ld-addtask input:focus { outline: 2px solid rgba(42, 71, 245, 0.25); border-color: var(--blue); }
.ld-compose-foot { display: flex; align-items: center; gap: 10px; }
.ld-next { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; padding: 4px 6px 4px 10px; border: 1px dashed #cfd5ef; border-radius: 10px; color: var(--mute); font-size: 12.5px; }
.ld-next input { border: 0; font: inherit; font-size: 12.5px; color: var(--ink2); background: transparent; }

/* Timeline */
.ld-timeline { list-style: none; margin: 0; padding: 0 0 0 4px; position: relative; display: grid; gap: 4px; }
.ld-timeline::before { content: ""; position: absolute; left: 20px; top: 8px; bottom: 8px; width: 2px; background: #eceef7; }
.ld-timeline li { position: relative; display: flex; gap: 12px; padding: 6px 0; }
.ld-timeline .pin { width: 32px; height: 32px; border-radius: 50%; flex: none; background: #fff; border: 2px solid #e4e8f7; display: inline-flex; align-items: center; justify-content: center; color: var(--mute); z-index: 1; }
.ld-timeline .pin .ci { width: 15px; height: 15px; }
.ld-timeline li > div { flex: 1; min-width: 0; padding-top: 3px; }
.ld-timeline p { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--ink); white-space: pre-wrap; }
.ld-timeline small { display: block; margin-top: 2px; font-size: 12px; color: var(--mute); }
.ld-timeline .k-call .pin { background: #dbeafe; border-color: #bfd7fb; color: #2563eb; }
.ld-timeline .k-whatsapp .pin { background: #dcfce7; border-color: #bde9cc; color: #16a34a; }
.ld-timeline .k-email .pin { background: #ede9fe; border-color: #d9d0fb; color: #7c3aed; }
.ld-timeline .k-meeting .pin { background: #fef3c7; border-color: #f6e3ae; color: #b45309; }
.ld-timeline .k-statuschange .pin { background: #fce7f3; border-color: #f7cfe4; color: #db2777; }
.ld-timeline .k-followup .pin { background: #e0f2fe; border-color: #bfe3f8; color: #0284c7; }
.ld-timeline .k-captured .pin { background: #fff4d6; border-color: #f6e3ae; color: #d97706; }

/* To-dos */
.ld-task { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; margin: 0; border-top: 1px solid var(--line); }
.ld-task:first-of-type { border-top: 0; }
.ld-task .tick { width: 22px; height: 22px; border-radius: 50%; flex: none; border: 2px solid #c8cee8; background: #fff; cursor: pointer; padding: 0; display: inline-flex; align-items: center; justify-content: center; color: #fff; margin-top: 1px; }
.ld-task .tick:hover { border-color: #16a34a; background: #dcfce7; }
.ld-task .tick.on { background: #16a34a; border-color: #16a34a; }
.ld-task .tick .ci { width: 12px; height: 12px; stroke-width: 3; }
.ld-task span { flex: 1; min-width: 0; }
.ld-task b { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.35; }
.ld-task small { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--mute); margin-top: 2px; }
.ld-task small .ci { width: 12px; height: 12px; }
.ld-task small.late { color: #dc2626; font-weight: 700; }
.ld-task.done b { text-decoration: line-through; color: var(--mute); font-weight: 600; }
.ld-empty { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; color: var(--mute); font-size: 13px; background: #f7f8fc; border-radius: 12px; margin-bottom: 10px; }
.ld-addtask { display: grid; grid-template-columns: 1fr auto; gap: 6px; margin-top: 10px; }
.ld-addtask input[type=text] { grid-column: 1; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; font: inherit; font-size: 13px; min-width: 0; }
.ld-addtask input[type=datetime-local] { grid-column: 1; border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; font: inherit; font-size: 12px; color: var(--ink2); }
.ld-addtask button { grid-column: 2; grid-row: 1 / span 2; height: auto; }
.ld-done { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.ld-done summary { cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--mute); }

@media (max-width: 1180px) { .ld-grid { grid-template-columns: 1fr 1fr; } .ld-main { grid-column: 1 / -1; order: -1; } }
@media (max-width: 720px) { .ld-grid { grid-template-columns: 1fr; } .ld-quick { margin-left: 0; width: 100%; } .ld-step .lbl { display: none; } }

.ld-answers { margin: 0; display: grid; gap: 0.5rem; }
.ld-answers dt { font-size: 11.5px; font-weight: 700; color: var(--mute); }
.ld-answers dd { margin: 0 0 0.25rem; font-size: 13.5px; color: var(--ink); overflow-wrap: anywhere; white-space: pre-wrap; }
