/* Lead tracking: video modal section + board Leads panel (graphite light theme) */

/* ---------- Shared bits ---------- */
.lt-section { margin-top: 4px; }
#lt-modal, #leads-modal { color: #19191C; font-size: 13px; }
.lt-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.lt-label { font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: #44444C; }
#lt-modal .lt-head .luxury-label { margin: 0; }
.lt-pill { font-size: 10.5px; font-weight: 700; letter-spacing: .3px; color: #5E5E69; background: #EDEDEF; border-radius: 999px; padding: 2px 8px; }
.lt-pill.live { color: #2F7A55; background: #E6F2EB; }
.lt-help { margin: 6px 0 0; font-size: 12px; line-height: 1.5; color: #7C7C8B; }
.lt-empty { margin: 0; padding: 14px 12px; font-size: 12.5px; line-height: 1.5; color: #8A8A96; text-align: center; background: #F7F7F8; border: 1px dashed #DCDCE0; border-radius: 10px; }
.lt-msg { font-size: 12px; color: #2F7A55; min-height: 0; }
.lt-msg.bad { color: #C24444; }
.lt-warn { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.5; color: #5A4A22; background: #FAF5E8; border: 1px solid #EFE3C4; border-radius: 10px; padding: 9px 11px; }
.lt-warn i { font-size: 16px; margin-top: 1px; color: #A07A1E; }

#lt-modal .lt-in, #leads-modal .lt-in {
    width: 100%; min-width: 0; box-sizing: border-box; height: 36px; padding: 0 11px;
    background: #FFFFFF !important; color: #19191C !important; border: 1px solid #D9D9DD !important; border-radius: 9px;
    font: inherit; font-size: 13px; outline: none; transition: border-color .15s, box-shadow .15s;
}
#lt-modal select.lt-in, #leads-modal select.lt-in { padding-right: 6px; color-scheme: light; }
#lt-modal .lt-in:focus, #leads-modal .lt-in:focus { border-color: #1A1A1D !important; box-shadow: 0 0 0 3px rgba(26, 26, 29, .12) !important; }

.lt-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: 0 0 auto;
    height: 34px; padding: 0 12px; border-radius: 9px; cursor: pointer; white-space: nowrap;
    font: inherit; font-size: 12.5px; font-weight: 600;
    color: #19191C; background: #FFFFFF; border: 1px solid #D9D9DD; transition: background .15s, border-color .15s;
}
.lt-btn:hover { background: #F4F4F6; border-color: #C3C3CA; }
.lt-btn.dark { color: #FFFFFF; background: #1A1A1D; border-color: #1A1A1D; }
.lt-btn.dark:hover { background: #2C2C31; }
.lt-btn.ghost { background: transparent; border-color: transparent; color: #5E5E69; }
.lt-btn.ghost:hover { background: #F0F0F2; }
.lt-btn:disabled { opacity: .55; cursor: default; }
.lt-linkbtn { background: none; border: none; padding: 0; font: inherit; font-size: inherit; font-weight: 600; color: #1A1A1D; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.lt-linkbtn i { font-size: 13px; }

/* ---------- Funnel strip ---------- */
.lt-funnel { display: flex; align-items: stretch; gap: 0; background: #F6F6F7; border: 1px solid #E7E7EA; border-radius: 12px; padding: 10px 6px; }
.lt-step { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 4px; }
.lt-step span { font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #8A8A96; }
.lt-step b { font-size: 17px; font-weight: 700; color: #19191C; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.lt-step.rev b { color: #1A1A1D; }
.lt-arrow { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #B4B4BD; font-size: 12px; min-width: 14px; }
.lt-arrow em { font-style: normal; font-size: 9.5px; font-weight: 700; color: #8A8A96; line-height: 1; margin-bottom: 1px; }

/* ---------- Mode note under/above results ---------- */
.lt-mode { margin-top: 10px; font-size: 12px; line-height: 1.5; color: #5E5E69; background: #F6F6F7; border: 1px solid #E7E7EA; border-radius: 10px; padding: 8px 11px; }
.lt-mode.warn { color: #5A4A22; background: #FAF5E8; border-color: #EFE3C4; }
#detail-metrics.lt-locked input { cursor: default; }

/* ---------- Link ---------- */
#lt-modal .lt-link { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
#lt-modal .lt-link code {
    flex: 1 1 auto; min-width: 0; display: block; height: 34px; line-height: 34px; padding: 0 11px; box-sizing: border-box;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; color: #3A3A42;
    background: #FFFFFF; border: 1px solid #D9D9DD; border-radius: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lt-dest { margin-top: 6px; font-size: 12px; color: #7C7C8B; }
.lt-dest b { color: #3A3A42; font-weight: 600; }
.lt-inline { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.lt-section .lt-warn + .lt-inline { margin-top: 10px; }

/* ---------- Leads list ---------- */
.lt-subhead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 16px 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: #44444C; }
.lt-subhead em { font-style: normal; font-size: 10.5px; color: #121214; background: #EDEDEF; border-radius: 999px; padding: 1px 7px; margin-left: 4px; letter-spacing: 0; }
.lt-subhead .lt-linkbtn { font-size: 12px; text-transform: none; letter-spacing: 0; text-decoration: none; }
.lt-list { display: flex; flex-direction: column; gap: 6px; }
.lt-lead { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: #FFFFFF; border: 1px solid #E7E7EA; border-radius: 10px; }
.lt-who { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.lt-who b { font-size: 13px; font-weight: 600; color: #19191C; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt-who span { font-size: 11.5px; color: #8A8A96; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt-tags { flex: 0 0 auto; display: flex; align-items: center; gap: 4px; }
.lt-tag {
    display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px; border-radius: 999px; cursor: pointer;
    font: inherit; font-size: 11.5px; font-weight: 600; color: #8A8A96; background: #FFFFFF; border: 1px dashed #D2D2D8; transition: all .15s;
}
.lt-tag:hover { color: #19191C; border-color: #A9A9B3; }
.lt-tag.on { color: #19191C; background: #EFEFF1; border: 1px solid #DCDCE0; }
.lt-tag.on.cust { color: #FFFFFF; background: #1A1A1D; border-color: #1A1A1D; }
.lt-x { width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: none; background: transparent; color: #A9A9B3; cursor: pointer; font-size: 13px; }
.lt-x:hover { color: #C24444; background: #FBEDED; }
.lt-cust { display: flex; align-items: center; gap: 8px; padding: 8px 10px; margin-top: -2px; background: #F6F6F7; border: 1px solid #E7E7EA; border-radius: 10px; font-size: 12px; color: #5E5E69; }
.lt-cust .lt-in { flex: 1 1 auto; max-width: 160px; height: 32px !important; }
.lt-cust .lt-btn { height: 32px; }

/* ---------- Add form ---------- */
.lt-add { display: flex; flex-direction: column; gap: 8px; padding: 10px; margin-bottom: 8px; background: #F6F6F7; border: 1px solid #E7E7EA; border-radius: 12px; }
.lt-add-row { display: flex; gap: 8px; }
.lt-add-row > * { flex: 1 1 0; }
.lt-add-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.lt-add-actions .lt-msg { margin-right: auto; }

/* ---------- Board header badge ---------- */
.lt-badge { min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 999px; background: #1A1A1D; color: #FFFFFF; font-size: 10.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }

/* ---------- Board Leads panel ---------- */
#leads-modal.lt-panel {
    width: min(1080px, calc(100vw - 32px)); max-width: 1080px; max-height: calc(100vh - 48px);
    flex-direction: column; padding: 0; overflow: hidden;
    background: #FFFFFF; border: 1px solid #E1E1E5; border-radius: 18px;
    box-shadow: 0 1px 2px rgba(18, 18, 20, .06), 0 24px 60px -18px rgba(18, 18, 20, .28);
}
.lt-panel-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 22px 26px 16px; border-bottom: 1px solid #E9E9EB; }
.lt-panel-head h2 { margin: 0; font-size: 19px; font-weight: 700; color: #19191C; }
.lt-panel-head p { margin: 4px 0 0; font-size: 13px; color: #7C7C8B; }
.lt-panel-head .close-btn { color: #7C7C8B; }
.lt-panel-body { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; padding: 20px 26px; overflow-y: auto; flex: 1; min-height: 0; background: linear-gradient(180deg, #F2F2F4 0%, #F6F6F7 100%); }
.lt-panel-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.lt-panel-main .lt-funnel { background: #FFFFFF; padding: 14px 6px; }
.lt-panel-main .lt-step b { font-size: 20px; }
.lt-panel-main .lt-mode { margin-top: 0; }
.lt-toolbar { display: flex; align-items: center; gap: 8px; }
.lt-tabs { display: flex; gap: 2px; padding: 3px; background: #E9E9EC; border-radius: 10px; flex: 0 0 auto; }
.lt-tab { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 8px; border: none; background: transparent; font: inherit; font-size: 12.5px; font-weight: 600; color: #5E5E69; cursor: pointer; }
.lt-tab em { font-style: normal; font-size: 10.5px; color: #7C7C8B; }
.lt-tab.on { background: #FFFFFF; color: #19191C; box-shadow: 0 1px 2px rgba(18, 18, 20, .08); }
.lt-toolbar .lt-search { flex: 1 1 auto; }
.lt-panel-list .lt-lead { gap: 12px; }
.lt-panel-list .lt-who { flex: 1 1 40%; }
.lt-panel-list .lt-vsel { flex: 0 1 260px; height: 32px !important; font-size: 12.5px !important; }
.lt-panel-list .lt-tags { min-width: 232px; justify-content: flex-end; }
.lt-vrow { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.lt-vrow:hover { border-color: #C9C9CF; box-shadow: 0 4px 14px -8px rgba(18, 18, 20, .25); }
.lt-vstats { flex: 0 0 auto; display: flex; gap: 18px; }
.lt-vstats div { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; min-width: 52px; }
.lt-vstats span { font-size: 10px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #8A8A96; }
.lt-vstats b { font-size: 14px; font-weight: 700; color: #19191C; }
.lt-panel-list .lt-lead.unassigned .lt-vsel { border-color: #E3CF9A !important; background: #FFFCF4 !important; }
.lt-panel-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.lt-card { background: #FFFFFF; border: 1px solid #E5E5E8; border-radius: 14px; padding: 16px; box-shadow: 0 1px 2px rgba(18, 18, 20, .05), 0 10px 24px -14px rgba(18, 18, 20, .18); }
.lt-card h3 { margin: 0; font-size: 14px; font-weight: 700; color: #19191C; }
.lt-card .lt-help { margin-bottom: 4px; }
.lt-card > .lt-btn { margin-top: 8px; }
.lt-tool { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 0; border-top: 1px solid #EFEFF1; }
.lt-tool:first-of-type { margin-top: 8px; }
.lt-tool div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.lt-tool b { font-size: 13px; color: #19191C; }
.lt-tool span:not(.lt-pill) { font-size: 11.5px; color: #8A8A96; }
.lt-tool.off b { color: #5E5E69; }

@media (max-width: 860px) {
    .lt-panel-body { grid-template-columns: 1fr; }
    .lt-toolbar { flex-wrap: wrap; }
    .lt-panel-list .lt-lead { flex-wrap: wrap; }
    .lt-panel-list .lt-vsel { flex: 1 1 100%; order: 3; }
}

/* ---------- Narrow right column of the video card ---------- */
#details-modal .modal-body > div { min-width: 0; }
#lt-modal { min-width: 0; }
#lt-modal .lt-mode { margin: 0 0 10px; }
#lt-modal .lt-clicks { margin: 0 0 10px; font-size: 12.5px; color: #5E5E69; }
#lt-modal .lt-clicks b { color: #19191C; font-size: 15px; }
#lt-modal .lt-link { margin-top: 0; }
#lt-modal .lt-link .lt-btn { padding: 0 10px; }
#lt-modal .lt-lead { flex-wrap: wrap; row-gap: 6px; }
#lt-modal .lt-who { flex: 1 1 100%; }
#lt-modal .lt-tags { flex: 1 1 100%; }
#lt-modal .lt-x { margin-left: auto; }
#lt-modal .lt-add-row { flex-direction: column; }
#lt-modal .lt-cust { flex-wrap: wrap; }
#lt-modal .lt-cust .lt-in { max-width: none; flex: 1 1 100%; }
#lt-modal .lt-cust span { flex: 1 1 100%; }
#lt-modal .lt-cust .lt-btn.dark { margin-left: auto; }

/* Freelancers never see any of this */
body[data-board-role="guest"] #board-leads-btn,
body[data-board-role="guest"] #lt-modal { display: none !important; }

/* Connections: per tool status + setup steps */
.lt-conn { border-top: 1px solid #EFEFF1; }
.lt-conn:first-of-type { margin-top: 8px; }
.lt-conn .lt-tool, .lt-conn .lt-tool:first-of-type { border-top: 0; margin-top: 0; }
.lt-conn .lt-tool .lt-btn { flex: 0 0 auto; height: 28px; padding: 0 10px; font-size: 12px; }
.lt-tool .lt-st.ok { color: #2F7A55; }
.lt-tool .lt-st.wait { color: #5E5E69; }
.lt-tool .lt-st.bad { color: #C24444; }
.lt-setup { padding: 0 0 12px; }
.lt-setup .lt-warn { margin-top: 2px; }
.lt-setup > .lt-btn { margin-top: 8px; }
.lt-steps { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 12px; line-height: 1.5; color: #45454F; }
.lt-steps li::marker { color: #9A9AA6; font-weight: 700; }
.lt-steps b { color: #19191C; font-weight: 600; }
.lt-steps code, .lt-setup .lt-help code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; background: #F1F1F3; border-radius: 4px; padding: 1px 4px; color: #2A2A30; overflow-wrap: anywhere; }
.lt-steps .lt-inline { margin-top: 6px; }
.lt-steps .lt-inline .lt-in { flex: 1 1 auto; min-width: 0; height: 32px !important; }
.lt-steps .lt-inline .lt-btn { height: 32px; }
.lt-hook { display: flex; align-items: center; gap: 6px; margin-top: 6px; min-width: 0; }
.lt-hook span { flex: 0 0 auto; font-size: 10.5px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; color: #8A8A96; min-width: 34px; }
.lt-hook code, .lt-steps .lt-hook code { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; word-break: normal; display: block; padding: 6px 8px; border: 1px solid #E5E5E8; background: #F7F7F8; border-radius: 8px; }
.lt-hook .lt-btn { flex: 0 0 auto; height: 28px; padding: 0 8px; font-size: 11.5px; }
