/* Sales24 live demo window. Every selector is prefixed ld- (or hd- in engine.css). */
.ld-section { padding-block: clamp(56px, 8vw, 112px); }
.ld-wrap { max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
.ld-wrap .center-heading { margin-bottom: clamp(24px, 4vw, 48px); }
.ld-host { --hd-font: "Plus Jakarta Sans", system-ui, sans-serif; }
.ld-host [data-ld-tall] { display: none; max-width: 390px; margin-inline: auto; }
.ld-host .hd-win { max-width: 100%; }
.ld-host .hd-steps button { text-align: start; }
.ld-host[dir="rtl"] .hd-steps button { font-family: "IBM Plex Sans Arabic", var(--hd-font); font-weight: 500; }
.ld-host[dir="rtl"] .hd-steps i { transform: scaleX(-1); }
.ld-host .hd-win.hd-bare { border-radius: 28px; }
@media (max-width: 640px) {
  .ld-host [data-ld-wide] { display: none; }
  .ld-host [data-ld-tall] { display: grid; }
}

.ld-stage { background: #0e1116; color: #f4f7fb; font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-weight: 500; }
.ld-app[dir="rtl"] { font-family: "IBM Plex Sans Arabic", "Plus Jakarta Sans", sans-serif; }
.ld-app {
  --bg: #0e1116; --s1: #151a21; --s2: #1e242c; --s3: #2a323c; --soft: #090c10; --line: #2c3541;
  --tx: #f4f7fb; --tx2: #dce3ec; --mut: #9ba5b3; --faint: #727d8b; --blue: #3b82f6; --green: #22c55e; --amber: #f59e0b;
  position: absolute; inset: 0; display: flex; background: var(--bg); color: var(--tx); font-size: 14px; line-height: 1.4;
  text-align: start;
}
.ld-app * { box-sizing: border-box; }
.ld-app b, .ld-app h4 { font-weight: 500; color: inherit; }
.ld-app svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ld-rail { width: 64px; flex: none; display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 16px; background: var(--soft); border-inline-end: 1px solid var(--line); }
.ld-rail img { border-radius: 8px; margin-bottom: 10px; }
.ld-rail i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--faint); }
.ld-rail i.on { background: var(--s2); color: var(--tx); }
.ld-list { width: 340px; flex: none; display: flex; flex-direction: column; border-inline-end: 1px solid var(--line); background: var(--bg); }
.ld-lh { padding: 18px 18px 6px; }
.ld-app .ld-lh h4 { margin: 0; font-size: 20px; font-weight: 500; color: var(--tx); letter-spacing: 0; line-height: 1.3; }
.ld-search { display: flex; align-items: center; gap: 8px; margin: 8px 16px; padding: 9px 12px; border-radius: 10px; background: var(--s1); border: 1px solid var(--line); color: var(--faint); font-size: 13px; }
.ld-segs { display: flex; gap: 6px; padding: 4px 16px 10px; font-size: 13px; color: var(--mut); }
.ld-segs span { padding: 5px 10px; border-radius: 8px; display: inline-flex; gap: 6px; align-items: center; }
.ld-segs span.on { background: var(--s2); color: var(--tx); }
.ld-segs em { font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; display: inline-grid; place-items: center; border-radius: 9px; background: var(--amber); color: #1a1205; font-size: 11px; font-weight: 500; }
.ld-rows { flex: 1; overflow: hidden; }
.ld-slot { overflow: hidden; height: calc(var(--in, 1) * 78px); opacity: var(--in, 1); }
.ld-row { position: relative; display: flex; gap: 12px; align-items: flex-start; height: 78px; padding: 12px 16px; border-bottom: 1px solid #1a2028; }
.ld-row.sel { background: var(--s2); }
.ld-ava { position: relative; flex: none; }
.ld-av { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; font-size: 14px; font-weight: 500; }
.ld-av-lg { width: 42px; height: 42px; } .ld-av-xl { width: 64px; height: 64px; font-size: 22px; }
.ld-wa { position: absolute; inset-inline-end: -3px; inset-block-end: -3px; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: #25a35a; border: 2px solid var(--bg); }
.ld-wa svg { width: 10px; height: 10px; stroke: #fff; stroke-width: 2.2; }
.ld-row.sel .ld-wa { border-color: var(--s2); }
.ld-rbody { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ld-rtop { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ld-rtop b { font-size: 14px; } .ld-rtop time { color: var(--faint); font-size: 12px; }
.ld-rprev { color: var(--mut); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ld-rstat { font-size: 12px; color: var(--faint); }
.ld-rstat .ok, .ld-rstat.ok { color: #5fd18a; } .ld-rstat.need { color: var(--amber); }
.ld-dot { position: absolute; inset-inline-end: 16px; inset-block-start: 38px; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); opacity: 0; }

.ld-thread { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--bg); }
.ld-th { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--soft); }
.ld-tname { display: flex; flex-direction: column; min-width: 0; } .ld-tname b { font-size: 15px; } .ld-tname small { color: var(--faint); font-size: 12px; }
.ld-chip { margin-inline-start: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; background: var(--s3); color: var(--tx2); }
.ld-chip[data-kind="ai"] { background: rgba(59,130,246,.18); color: #9cc1ff; }
.ld-chip[data-kind="needs"] { background: rgba(245,158,11,.2); color: #fbbf4e; }
.ld-chip[data-kind="you"] { background: rgba(34,197,94,.18); color: #7be0a3; }
.ld-tog { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 10px; color: var(--mut); font-size: 12.5px; }
.ld-sw { position: relative; width: 36px; height: 21px; border-radius: 11px; background: color-mix(in srgb, var(--blue) calc(var(--p, 1) * 100%), var(--s3)); flex: none; }
.ld-sw u { position: absolute; inset-block-start: 3px; inset-inline-start: calc(3px + var(--p, 1) * 15px); width: 15px; height: 15px; border-radius: 50%; background: #fff; }
.ld-app[dir="rtl"] .ld-sw u { inset-inline-start: auto; inset-inline-end: calc(3px + var(--p, 1) * 15px); }
.ld-empty { flex: 1; display: grid; place-items: center; color: var(--s3); }
.ld-empty svg { width: 72px; height: 72px; stroke-width: 1.2; }
.ld-msgs { flex: 1; padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.ld-msg { max-width: 62%; padding: 10px 14px; border-radius: 14px; font-size: 14.5px; }
.ld-msg p { margin: 0; }
.ld-msg time, .ld-msg small { display: block; margin-top: 4px; color: var(--faint); font-size: 11.5px; }
.ld-c { align-self: flex-start; background: var(--s2); border-end-start-radius: 4px; }
.ld-a { align-self: flex-end; background: #1d3a6e; border-end-end-radius: 4px; }
.ld-a small { color: #9cc1ff; }
.ld-s { background: #14532d; } .ld-s small { color: #86e0a8; }
.ld-typing { align-self: flex-end; display: flex; gap: 5px; padding: 12px 14px; border-radius: 14px; background: #1d3a6e; }
.ld-typing i { width: 7px; height: 7px; border-radius: 50%; background: #9cc1ff; opacity: .7; }
.ld-compose { position: relative; display: flex; align-items: center; margin: 0 20px 18px; padding: 12px 14px; min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--s1); color: var(--tx2); font-size: 14px; }
.ld-compose.focus { border-color: var(--blue); }
.ld-ph { color: var(--faint); }
.ld-send { margin-inline-start: auto; color: var(--faint); display: grid; place-items: center; }
.ld-compose.focus .ld-send { color: var(--blue); }

.ld-crm { width: calc(var(--in, 0) * 320px); min-width: 0; overflow: hidden; flex: none; border-inline-start: 1px solid var(--line); background: var(--soft); padding: 22px 0; display: flex; flex-direction: column; gap: 14px; opacity: var(--in, 0); }
.ld-crm > * { margin-inline: 20px; width: 280px; flex: none; }
.ld-ch { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-bottom: 6px; }
.ld-ch b { font-size: 18px; } .ld-ph2 { color: var(--mut); font-size: 13px; unicode-bidi: isolate; }
.ld-pill { padding: 3px 12px; border-radius: 999px; font-size: 12px; background: rgba(245,158,11,.2); color: #fbbf4e; }
.ld-pill.cust { background: rgba(34,197,94,.18); color: #7be0a3; }
.ld-cap { order: -1; color: var(--faint); font-size: 12px; text-align: center; margin-bottom: -6px; }
.ld-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 12px; background: var(--s1); border: 1px solid var(--line); }
.ld-enr, .ld-dn { font-size: 13.5px; color: var(--tx2); } .ld-enr.ok { color: #5fd18a; }
.ld-btn { align-self: flex-start; display: inline-flex; padding: 8px 14px; border: 0; border-radius: 9px; background: var(--blue); color: #fff; font: inherit; font-size: 13px; font-weight: 500; }
.ld-ok { display: inline-flex; align-items: center; gap: 6px; color: #5fd18a; font-size: 13px; } .ld-ok svg { width: 15px; height: 15px; }
.ld-tap { position: absolute; inset-block-start: 0; inset-inline-start: 0; width: 44px; height: 44px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); background: rgba(255,255,255,.18); opacity: 0; z-index: 25; pointer-events: none; }
.ld-back { display: none; }

/* Phone: one screen at a time, drawn at 390 x 844. */
.ld-tall { font-size: 15px; }
.ld-tall .ld-status { position: absolute; inset-block-start: 0; inset-inline: 0; height: 40px; padding: 14px 28px 0; font-size: 14px; font-weight: 500; z-index: 3; background: var(--soft); direction: ltr; }
.ld-tall .ld-rail { display: none; }
.ld-tall .ld-list, .ld-tall .ld-thread, .ld-tall .ld-crm { position: absolute; inset: 40px 0 0 0; width: auto; border: 0; display: none; opacity: 1; transform: none; overflow: visible; }
.ld-tall[data-screen="list"] .ld-list { display: flex; }
.ld-tall[data-screen="thread"] .ld-thread { display: flex; }
.ld-tall[data-screen="crm"] .ld-crm { display: flex; background: var(--bg); padding-top: 20px; }
.ld-tall .ld-lh { padding: 14px 20px 6px; } .ld-app.ld-tall .ld-lh h4 { font-size: 26px; }
.ld-tall .ld-search { margin: 8px 20px; } .ld-tall .ld-segs { padding-inline: 20px; font-size: 14px; }
.ld-tall .ld-slot { height: calc(var(--in, 1) * 88px); } .ld-tall .ld-row { height: 88px; padding: 14px 20px; }
.ld-tall .ld-rprev { font-size: 14px; }
.ld-tall .ld-th { padding: 12px 16px; flex-wrap: wrap; gap: 10px; }
.ld-tall .ld-tname { flex: 1; } .ld-tall .ld-tog { margin: 0; width: 100%; justify-content: space-between; padding-top: 6px; border-top: 1px solid var(--line); }
.ld-tall .ld-msgs { padding: 16px; } .ld-tall .ld-msg { max-width: 82%; font-size: 15px; }
.ld-tall .ld-compose { margin: 0 14px 22px; }
.ld-tall .ld-back { display: grid; position: absolute; inset-block-start: 14px; inset-inline-start: 6px; z-index: 4; width: 36px; height: 36px; place-items: center; background: none; color: var(--mut); border: 0; }
.ld-tall .ld-crm .ld-back { inset-block-start: 14px; }
.ld-tall .ld-th { padding-inline-start: 44px; }
.ld-tall .ld-crm > * { width: auto; margin-inline: 20px; }

@media (prefers-reduced-motion: reduce) {
  .ld-app, .ld-app * { animation: none !important; transition: none !important; }
}

/* The window stays dark in the light page theme (see DESIGN.md: product windows keep their own palette). */
html[data-theme="light"] .ld-host .ld-app .ld-lh h4, html[data-theme="light"] .ld-host .ld-app :is(b, strong) { color: var(--tx); }
html[data-theme="light"] .ld-app .ld-msg p, html[data-theme="light"] .ld-app .ld-enr, html[data-theme="light"] .ld-app .ld-dn { color: inherit; }
.ld-host .hd-bar { direction: ltr; }
.ld-tname b, .ld-chip, .ld-tname small { white-space: nowrap; }
.ld-trow { display: flex; align-items: center; gap: 8px; }
.ld-trow .ld-chip { margin: 0; padding: 1px 8px; font-size: 11px; }
.ld-list { width: 310px; }
.ld-crm { --cw: 290px; width: calc(var(--in, 0) * var(--cw)); }
.ld-crm > * { width: calc(var(--cw) - 40px); }
.ld-tog { flex: 1; justify-content: flex-end; min-width: 0; }
.ld-tlabel { text-align: end; }
.ld-tall .ld-tog { flex: 0 0 100%; }
