/* Smart commercial scenes — clerk, SOA, workforce, meetings, e-sign, … */

.lx-ad {
  padding: 18px 18px 16px;
  overflow: hidden;
  background:
    radial-gradient(320px 160px at 90% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
    color-mix(in srgb, var(--lx-ink) 2.5%, var(--lx-panel));
  min-height: 280px;
  display: flex;
  flex-direction: column;
}
.lx-ad > .lx-scene { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.lx-ad .lx-ad-tagline,
.lx-scene .lx-ad-tagline {
  margin: 0;
  font-family: var(--lx-display);
  font-size: 1.2rem;
  letter-spacing: -.03em;
  line-height: 1.15;
}
.lx-ad > em,
.lx-scene > em {
  margin-top: auto;
  font-style: normal;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--lx-muted);
}

/* ── Clerk typing (SVG) ──────────────────────────────────────────────────── */
.lx-scene-clerk {
  color: var(--lx-ink);
}
.lx-scene-stage {
  border-radius: 16px;
  border: 1px solid var(--lx-line);
  background: color-mix(in srgb, var(--lx-ink) 3%, var(--lx-panel));
  overflow: hidden;
}
.lx-clerk-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
}
.lx-clerk-screen-bg {
  fill: color-mix(in srgb, var(--lx-panel) 90%, #fff);
}
:root[data-theme="dark"] .lx-clerk-screen-bg {
  fill: color-mix(in srgb, var(--lx-panel) 80%, #000);
}
.lx-clerk-ui-label { fill: var(--lx-ink); font-weight: 700; opacity: .75; }
.lx-clerk-ui-muted { fill: var(--lx-muted); }
.lx-clerk-ui-type { fill: var(--lx-ink); font-weight: 700; }
.lx-clerk-ui-stuck { fill: #b45309; font-weight: 800; }

.lx-clerk-head {
  transform-origin: 98px 78px;
  animation: lx-clerk-bob 1.5s ease-in-out infinite;
}
.lx-clerk-arm-l {
  transform-origin: 90px 104px;
  animation: lx-clerk-arm-l .22s ease-in-out infinite;
}
.lx-clerk-arm-r {
  transform-origin: 108px 104px;
  animation: lx-clerk-arm-r .22s ease-in-out infinite .11s;
}
.lx-clerk-hand-l { animation: lx-clerk-tap .22s ease-in-out infinite; }
.lx-clerk-hand-r { animation: lx-clerk-tap .22s ease-in-out infinite .11s; }
.lx-finger-tap { animation: lx-finger 0.2s ease-in-out infinite; transform-origin: 146px 136px; }
.lx-clerk-key { animation: lx-keyhit .22s ease-in-out infinite; }
.lx-clerk-key.is-alt { animation-delay: .11s; }
.lx-clerk-stack { animation: lx-stack-wobble 3s ease-in-out infinite; transform-origin: 70px 130px; }
.lx-clerk-think { animation: lx-think-pulse 2.4s ease-in-out infinite; }
.lx-clerk-stress { animation: lx-stress 1.6s ease-in-out infinite; }

@keyframes lx-clerk-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(2px) rotate(1deg); }
}
@keyframes lx-clerk-arm-l {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(10deg); }
}
@keyframes lx-clerk-arm-r {
  0%, 100% { transform: rotate(2deg); }
  50% { transform: rotate(-12deg); }
}
@keyframes lx-clerk-tap {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}
@keyframes lx-finger {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(.55) translateY(3px); }
}
@keyframes lx-keyhit {
  0%, 100% { opacity: .3; transform: translateY(0); }
  50% { opacity: .85; transform: translateY(1.5px); }
}
@keyframes lx-stack-wobble {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-2deg); }
}
@keyframes lx-think-pulse {
  0%, 100% { opacity: .85; }
  50% { opacity: 1; }
}
@keyframes lx-stress {
  0%, 100% { opacity: .25; transform: translateY(0); }
  50% { opacity: .55; transform: translateY(-2px); }
}
.lx-scene-caption {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--lx-line);
}
.lx-scene-caption strong {
  font-size: .88rem;
  letter-spacing: -.01em;
}
.lx-scene-caption span {
  font-size: .75rem;
  color: var(--lx-muted);
}
.lx-scene-clerk[data-stage="3"] .lx-clerk-ui-stuck { fill: var(--accent); }

/* ── SOA finance board ───────────────────────────────────────────────────── */
.lx-soa-board {
  border-radius: 14px;
  border: 1px solid var(--lx-line);
  background: var(--lx-panel);
  overflow: hidden;
}
.lx-soa-head, .lx-soa-row {
  display: grid;
  grid-template-columns: 1.3fr .8fr .8fr 1fr;
  gap: 6px;
  padding: 8px 10px;
  font-size: .72rem;
}
.lx-soa-head {
  background: color-mix(in srgb, var(--lx-ink) 5%, var(--lx-panel));
  font-weight: 800;
  color: var(--lx-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .62rem;
}
.lx-soa-row {
  border-top: 1px solid var(--lx-line);
  animation: lx-row-in .7s ease both;
  animation-delay: calc(var(--i) * .18s);
}
.lx-soa-row b { font-variant-numeric: tabular-nums; color: var(--accent); }
@keyframes lx-row-in {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: none; }
}
.lx-soa-post {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-top: 1px solid var(--lx-line);
  background: color-mix(in srgb, var(--accent) 10%, var(--lx-panel));
  font-size: .72rem;
  font-weight: 700;
  animation: lx-post-flash 2.4s ease infinite;
}
.lx-soa-post i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2f9e64;
  animation: lx-pulse-ring 1.6s ease-out infinite;
}
@keyframes lx-post-flash {
  0%, 100% { opacity: .75; }
  40%, 60% { opacity: 1; }
}

/* ── Workforce monitor ───────────────────────────────────────────────────── */
.lx-wf-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 10px;
}
.lx-wf-presence { display: grid; gap: 6px; }
.lx-wf-card {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 7px 8px;
  border-radius: 12px;
  border: 1px solid var(--lx-line);
  background: var(--lx-panel);
  animation: lx-row-in .6s ease both;
  animation-delay: calc(var(--i) * .12s);
}
.lx-wf-card > b {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: .75rem;
  font-weight: 800;
  border: 2px solid var(--lx-line);
}
.lx-wf-card.is-online > b {
  border-color: #2f9e64;
  animation: lx-pulse-ring 1.8s ease-out infinite;
}
.lx-wf-card.is-idle > b { border-color: #c9a227; }
.lx-wf-card.is-leave > b { border-color: #3d7ea6; opacity: .85; }
.lx-wf-card strong { display: block; font-size: .78rem; }
.lx-wf-card span { display: block; font-size: .65rem; color: var(--lx-muted); }
.lx-wf-card > em {
  font-style: normal;
  font-size: .62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--lx-muted);
}
.lx-wf-side { display: grid; gap: 8px; }
.lx-wf-leave, .lx-wf-payslip {
  border-radius: 12px;
  border: 1px solid var(--lx-line);
  background: var(--lx-panel);
  padding: 8px;
}
.lx-wf-leave header {
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--lx-muted);
  margin-bottom: 6px;
}
.lx-wf-leave-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .72rem;
  padding: 4px 0;
}
.lx-wf-leave-row.is-in b {
  color: #fff;
  background: var(--accent);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .65rem;
  animation: lx-bubble-pop 1.8s ease infinite;
}
.lx-wf-payslip { position: relative; overflow: hidden; min-height: 64px; }
.lx-wf-slip {
  display: grid;
  gap: 2px;
  padding: 6px;
  border-radius: 8px;
  border: 1px dashed var(--lx-line);
}
.lx-wf-slip strong { font-size: .82rem; font-family: var(--lx-display); }
.lx-wf-slip span { font-size: .68rem; color: var(--lx-muted); }
.lx-wf-slip-drop {
  position: absolute;
  right: 8px; bottom: 8px;
  font-size: .65rem;
  font-weight: 800;
  color: #2f9e64;
  animation: lx-slip-drop 2.2s ease infinite;
}
@keyframes lx-slip-drop {
  0% { transform: translateY(-12px); opacity: 0; }
  40%, 70% { transform: none; opacity: 1; }
  100% { opacity: .4; }
}

/* ── Meetings ────────────────────────────────────────────────────────────── */
.lx-meet-board {
  border-radius: 14px;
  border: 1px solid var(--lx-line);
  background: var(--lx-panel);
  padding: 10px;
  display: grid;
  gap: 8px;
}
.lx-meet-day {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.lx-meet-day strong {
  font-family: var(--lx-display);
  font-size: 1.2rem;
}
.lx-meet-day span { font-size: .68rem; color: var(--lx-muted); font-weight: 700; }
.lx-meet-slots { display: grid; gap: 6px; }
.lx-meet-slot {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 7px 8px;
  border-radius: 10px;
  border: 1px solid var(--lx-line);
  font-size: .75rem;
  animation: lx-row-in .55s ease both;
  animation-delay: calc(var(--i) * .15s);
}
.lx-meet-slot.is-booked {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--lx-line));
  background: color-mix(in srgb, var(--accent) 8%, var(--lx-panel));
}
.lx-meet-slot.is-hold { border-style: dashed; }
.lx-meet-ping {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2f9e64;
  animation: lx-pulse-ring 1.6s ease-out infinite;
}
.lx-meet-open {
  font-style: normal;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent);
  animation: lx-bubble-pop 1.8s ease infinite;
}
.lx-meet-slot.is-open {
  opacity: 1;
  border-color: color-mix(in srgb, var(--accent) 35%, var(--lx-line));
  animation: lx-meet-open-glow 2.2s ease-in-out infinite;
}
@keyframes lx-meet-open-glow {
  0%, 100% { background: transparent; }
  50% { background: color-mix(in srgb, var(--accent) 10%, var(--lx-panel)); }
}
.lx-meet-toast {
  font-size: .72rem;
  font-weight: 700;
  color: var(--accent);
  animation: lx-post-flash 2.6s ease infinite;
}

/* ── E-sign ──────────────────────────────────────────────────────────────── */
.lx-esign-stage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  align-items: stretch;
}
.lx-esign-env {
  border-radius: 12px;
  border: 1px solid var(--lx-line);
  background: var(--lx-panel);
  padding: 12px 10px;
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 110px;
  text-align: center;
  animation: lx-env-in .7s ease both;
}
.lx-esign-env.is-1 { animation-delay: 0s; }
.lx-esign-env.is-2 { animation-delay: .25s; }
.lx-esign-env.is-3 { animation-delay: .5s; }
@keyframes lx-env-in {
  from { opacity: 0; transform: translateY(12px) scale(.96); }
  to { opacity: 1; transform: none; }
}
.lx-esign-env span { font-size: .75rem; font-weight: 700; }
.lx-esign-env em {
  font-style: normal;
  font-size: .65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--lx-muted);
}
.lx-esign-pen {
  width: 28px; height: 4px;
  border-radius: 2px;
  background: var(--accent);
  transform: rotate(-35deg);
  animation: lx-pen 1.4s ease-in-out infinite;
}
@keyframes lx-pen {
  0%, 100% { transform: rotate(-35deg) translateX(0); }
  50% { transform: rotate(-25deg) translateX(6px); }
}
.lx-scene-esign .lx-ad-stamp {
  width: 72px; height: 72px;
  font-size: .7rem;
}

/* ── Vault / payouts / shared bits ───────────────────────────────────────── */
.lx-vault-flow {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.lx-vault-files { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.lx-vault-files span {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--lx-line);
  background: var(--lx-panel);
  font-size: .72rem;
  font-weight: 700;
  animation: lx-file-fly 2.2s ease infinite;
  animation-delay: calc(var(--i) * .15s);
}
@keyframes lx-file-fly {
  0%, 100% { transform: translate(0, 0); opacity: .85; }
  50% { transform: translate(6px, -4px); opacity: 1; }
}
.lx-vault-arrow { font-weight: 900; color: var(--accent); }
.lx-vault-co {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--lx-line));
  background: color-mix(in srgb, var(--accent) 10%, var(--lx-panel));
}
.lx-vault-co strong { display: block; font-size: .85rem; }
.lx-vault-co span { font-size: .68rem; color: var(--lx-muted); }

.lx-pay-flow {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.lx-pay-step, .lx-pay-slip {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--lx-line);
  background: var(--lx-panel);
}
.lx-pay-step b { display: block; font-size: .85rem; }
.lx-pay-step span { font-size: .68rem; color: var(--lx-muted); }
.lx-pay-flow > i { font-style: normal; color: var(--accent); font-weight: 900; }
.lx-pay-slip {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--lx-line));
  animation: lx-slip-drop 2.4s ease infinite;
}
.lx-pay-slip strong {
  display: block;
  font-family: var(--lx-display);
  font-size: 1rem;
}
.lx-pay-slip em {
  font-style: normal;
  font-size: .65rem;
  font-weight: 800;
  color: #2f9e64;
  text-transform: uppercase;
}

/* reuse alert / bubble / chat / intake from constellation where present */
.lx-ad-alert-reel { display: grid; gap: 8px; }
.lx-ad-alert-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--lx-line);
  background: var(--lx-panel);
  animation: lx-alert-slide 2.8s ease infinite;
}
.lx-ad-alert-card.is-hot {
  animation-delay: .35s;
  border-color: color-mix(in srgb, #c9842f 45%, var(--lx-line));
}
.lx-ad-alert-card.is-ok {
  animation-delay: .7s;
  border-color: color-mix(in srgb, #2f9e64 45%, var(--lx-line));
}
.lx-ad-alert-card b { font-size: .8rem; }
.lx-ad-alert-card span { font-size: .78rem; color: var(--lx-muted); }
@keyframes lx-alert-slide {
  0%, 100% { transform: translateX(0); opacity: .88; }
  40%, 60% { transform: translateX(4px); opacity: 1; }
}

.lx-ad-bubbles { display: flex; flex-wrap: wrap; gap: 8px; }
.lx-ad-bubbles span {
  padding: 10px 14px;
  border-radius: 16px 16px 16px 4px;
  background: color-mix(in srgb, var(--accent) 14%, var(--lx-panel));
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--lx-line));
  font-weight: 700;
  font-size: .82rem;
  animation: lx-bubble-pop 2s ease infinite;
}
.lx-ad-bubbles span:nth-child(2) { animation-delay: .2s; }
.lx-ad-bubbles span:nth-child(3) { animation-delay: .4s; }
@keyframes lx-bubble-pop {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.lx-ad-conv { display: flex; align-items: baseline; gap: 8px; }
.lx-ad-conv b { font-family: var(--lx-display); font-size: 1.6rem; color: #2f9e64; }
.lx-ad-chat { display: grid; gap: 8px; }
.lx-ad-chat p {
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: .84rem;
  max-width: 94%;
}
.lx-ad-chat .is-user {
  justify-self: end;
  background: color-mix(in srgb, var(--accent) 18%, var(--lx-panel));
}
.lx-ad-chat .is-bot {
  justify-self: start;
  background: color-mix(in srgb, var(--lx-ink) 6%, var(--lx-panel));
  border: 1px solid var(--lx-line);
  animation: lx-bot-in .8s ease;
}
@keyframes lx-bot-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.lx-ad-intake-stage { display: grid; gap: 10px; }
.lx-ad-intake-pile { position: relative; height: 72px; }
.lx-ad-intake-pile span {
  position: absolute;
  left: calc(8% + var(--i) * 10%);
  top: calc(10% + var(--i) * 6%);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: .7rem;
  font-weight: 800;
  background: var(--lx-panel);
  border: 1px solid var(--lx-line);
  animation: lx-doc-fly 2s ease calc(var(--i) * .1s) infinite;
}
@keyframes lx-doc-fly {
  0% { transform: translate(0, 8px) scale(.9); opacity: .25; }
  35% { opacity: 1; }
  100% { transform: translate(90px, -20px) scale(1); opacity: 0; }
}
.lx-ad-intake-pipe {
  font-size: .78rem;
  font-weight: 700;
  color: var(--accent);
}
.lx-ad-intake-out { display: flex; gap: 8px; }
.lx-ad-intake-out em {
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--lx-line));
  background: color-mix(in srgb, var(--accent) 10%, var(--lx-panel));
  text-transform: none;
  letter-spacing: 0;
  font-size: .75rem;
  font-style: normal;
  font-weight: 700;
  color: var(--lx-ink);
}
.lx-ad-thread { display: flex; flex-wrap: wrap; gap: 8px; }
.lx-ad-thread span {
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid var(--lx-line);
  background: var(--lx-panel);
  font-weight: 700;
  font-size: .8rem;
  animation: lx-bubble-pop 2.4s ease infinite;
}
.lx-ad-thread span.is-log {
  background: color-mix(in srgb, var(--accent) 14%, var(--lx-panel));
}
.lx-ad-stamp {
  width: 110px; height: 110px;
  border-radius: 50%;
  border: 3px solid color-mix(in srgb, var(--accent) 55%, #2f9e64);
  color: color-mix(in srgb, var(--accent) 40%, #2f9e64);
  display: grid; place-items: center;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  animation: lx-stamp 2.8s ease infinite;
}
@keyframes lx-stamp {
  0%, 70%, 100% { transform: rotate(-12deg) scale(1); }
  40% { transform: rotate(-8deg) scale(1.08); }
  55% { transform: rotate(-14deg) scale(.96); }
}

/* ── Campaign / helper / channel motion extras ───────────────────────────── */
.lx-camp-board { display: grid; gap: 12px; }
.lx-camp-pipeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.lx-camp-step {
  position: relative;
  padding: 10px 8px;
  border-radius: 12px;
  border: 1px solid var(--lx-line);
  background: var(--lx-panel);
  text-align: center;
  overflow: hidden;
}
.lx-camp-step b {
  display: block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.lx-camp-step i {
  display: block;
  height: 3px;
  margin-top: 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 35%, var(--lx-line));
  transform-origin: left center;
  animation: lx-camp-fill 2.4s ease infinite;
}
.lx-camp-step.is-send i { animation-delay: .4s; }
.lx-camp-step.is-learn i { animation-delay: .8s; }
@keyframes lx-camp-fill {
  0% { transform: scaleX(0.15); opacity: .5; }
  50% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(0.35); opacity: .7; }
}
.lx-helper-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.lx-helper-actions span {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--lx-line);
  font-size: .72rem;
  font-weight: 700;
  background: var(--lx-panel);
}
.lx-helper-actions span.is-pulse {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--lx-line));
  background: color-mix(in srgb, var(--accent) 14%, var(--lx-panel));
  animation: lx-bubble-pop 1.8s ease infinite;
}
.lx-chan-merge { display: grid; gap: 10px; }
.lx-chan-join {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--lx-line));
  background: color-mix(in srgb, var(--accent) 8%, var(--lx-panel));
  animation: lx-bot-in .9s ease;
}
.lx-chan-join > i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2f9e64;
  animation: lx-pulse-ring 1.6s ease-out infinite;
}
.lx-chan-join strong { font-size: .85rem; }
.lx-chan-join .is-log {
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #2f9e64;
}
.lx-alert-wave {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .55;
  animation: lx-pulse-ring 1.8s ease-out infinite;
  flex-shrink: 0;
  align-self: center;
}
.lx-vault-co { position: relative; overflow: hidden; }
.lx-vault-pulse {
  position: absolute;
  inset: auto -20% -40% auto;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 25%, transparent);
  animation: lx-hub-glow 3s ease-in-out infinite;
  pointer-events: none;
}
.lx-pay-step { position: relative; }
.lx-pay-tick {
  position: absolute;
  top: 6px; right: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #2f9e64;
  animation: lx-pulse-ring 2s ease-out infinite;
}
.lx-scene {
  animation: lx-scene-in .55s ease both;
}
@keyframes lx-scene-in {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: none; }
}

/* ── Premium motion language ─────────────────────────────────────────────── */
.lx-ad,
.lx-live-card,
.lx-try-card,
.lx-person-card,
.lx-more-card,
.lx-race-lane {
  position: relative;
  isolation: isolate;
  transition:
    transform .42s cubic-bezier(.2, .75, .2, 1),
    border-color .32s ease,
    box-shadow .42s ease;
}
.lx-ad::before,
.lx-live-card::before,
.lx-try-card::before,
.lx-person-card::before,
.lx-more-card::before,
.lx-race-lane::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 15%, color-mix(in srgb, #fff 12%, transparent) 42%, transparent 68%);
  opacity: 0;
  transform: translateX(-38%);
  transition: opacity .3s ease, transform .7s cubic-bezier(.2, .75, .2, 1);
}
@media (hover: hover) and (pointer: fine) {
  .lx-live-card:hover,
  .lx-try-card:hover,
  .lx-person-card:hover,
  .lx-more-card:hover,
  .lx-race-lane:hover {
    transform: translateY(-5px);
    border-color: color-mix(in srgb, var(--accent) 32%, var(--lx-line));
    box-shadow: 0 24px 60px color-mix(in srgb, var(--lx-ink) 13%, transparent);
  }
  .lx-ad:hover::before,
  .lx-live-card:hover::before,
  .lx-try-card:hover::before,
  .lx-person-card:hover::before,
  .lx-more-card:hover::before,
  .lx-race-lane:hover::before {
    opacity: 1;
    transform: translateX(38%);
  }
}

/* Intelligent intake: documents pass through one extraction engine. */
.lx-intake-flow {
  display: grid;
  grid-template-columns: 72px 82px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 176px;
  padding: 14px 0 8px;
}
.lx-intake-source {
  position: relative;
  height: 138px;
}
.lx-intake-source > span {
  position: absolute;
  left: 4px;
  top: calc(9px + var(--i) * 17px);
  width: 58px;
  min-height: 40px;
  padding: 7px 7px 6px;
  border: 1px solid color-mix(in srgb, var(--lx-ink) 13%, var(--lx-line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--lx-panel) 94%, #fff);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--lx-ink) 9%, transparent);
  transform: translateY(8px) rotate(calc((var(--i) - 2) * 1.2deg));
  animation: lx-intake-document 4.2s cubic-bezier(.4, 0, .2, 1) infinite;
  animation-delay: calc(var(--i) * -.74s);
}
.lx-intake-source > span i {
  display: block;
  width: 19px;
  height: 2px;
  margin-bottom: 5px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 62%, transparent);
}
.lx-intake-source > span b {
  display: block;
  font-size: .58rem;
  letter-spacing: .02em;
}
.lx-intake-source > small {
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 72px;
  color: var(--lx-muted);
  font-size: .56rem;
  font-weight: 700;
  text-align: center;
}
@keyframes lx-intake-document {
  0%, 12% { opacity: 0; transform: translate(-8px, 10px) rotate(-3deg) scale(.9); }
  24%, 58% { opacity: 1; transform: translate(0, 0) rotate(0) scale(1); }
  78%, 100% { opacity: 0; transform: translate(82px, 2px) rotate(1deg) scale(.84); }
}
.lx-intake-engine {
  position: relative;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 50%, var(--lx-line));
  background:
    radial-gradient(circle at 35% 28%, color-mix(in srgb, #fff 22%, transparent), transparent 30%),
    color-mix(in srgb, var(--accent) 16%, var(--lx-panel));
  box-shadow:
    inset 0 0 0 7px color-mix(in srgb, var(--accent) 5%, transparent),
    0 14px 34px color-mix(in srgb, var(--accent) 24%, transparent);
}
.lx-intake-engine strong {
  font-family: var(--lx-display);
  font-size: 1.3rem;
  letter-spacing: -.05em;
}
.lx-intake-engine small {
  max-width: 58px;
  color: var(--lx-muted);
  font-size: .52rem;
  font-weight: 700;
  text-align: center;
}
.lx-intake-orbit {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--accent) 50%, transparent);
  animation: lx-intake-orbit 8s linear infinite;
}
.lx-intake-beam {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 12px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 65%, transparent);
  animation: lx-intake-scan 2.2s ease-in-out infinite;
}
@keyframes lx-intake-orbit { to { transform: rotate(360deg); } }
@keyframes lx-intake-scan {
  0%, 100% { transform: translateY(0); opacity: .3; }
  50% { transform: translateY(48px); opacity: 1; }
}
.lx-intake-results {
  display: grid;
  gap: 7px;
}
.lx-intake-results span {
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  padding: 8px 9px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, #2f9e64 28%, var(--lx-line));
  background: color-mix(in srgb, #2f9e64 7%, var(--lx-panel));
  animation: lx-intake-result 3.2s ease infinite;
  animation-delay: calc(var(--i) * .36s);
}
.lx-intake-results span i {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, #2f9e64 18%, transparent);
  color: #2f9e64;
  font-size: .65rem;
  font-style: normal;
  font-weight: 900;
}
.lx-intake-results span b {
  min-width: 0;
  font-size: .65rem;
  line-height: 1.15;
}
@keyframes lx-intake-result {
  0%, 18% { opacity: .38; transform: translateX(-5px); }
  34%, 72% { opacity: 1; transform: none; }
  100% { opacity: .6; transform: none; }
}

/* Connected channels: four sources converge into one owned customer thread. */
.lx-channel-network {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}
.lx-channel-sources {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.lx-channel-source {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 0 7px;
  align-items: center;
  min-width: 0;
  padding: 8px;
  border-radius: 11px;
  border: 1px solid var(--lx-line);
  background: color-mix(in srgb, var(--lx-panel) 94%, #fff);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--lx-ink) 6%, transparent);
  animation: lx-channel-source-in 4s ease infinite;
  animation-delay: calc(var(--i) * .28s);
}
.lx-channel-source > i {
  grid-row: 1 / span 2;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: color-mix(in srgb, var(--accent) 14%, var(--lx-panel));
  color: color-mix(in srgb, var(--accent) 72%, var(--lx-ink));
  font-size: .56rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .03em;
}
.lx-channel-source span {
  overflow: hidden;
  font-size: .68rem;
  font-weight: 800;
  text-overflow: ellipsis;
}
.lx-channel-source b {
  color: #2f9e64;
  font-size: .54rem;
  font-weight: 800;
}
@keyframes lx-channel-source-in {
  0%, 100% { transform: translateY(0); border-color: var(--lx-line); }
  45%, 58% {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, #2f9e64 38%, var(--lx-line));
  }
}
.lx-channel-router {
  position: relative;
  min-height: 104px;
  display: grid;
  place-items: center;
}
.lx-channel-rails {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.lx-channel-rails::before,
.lx-channel-rails::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -4px;
  width: 1px;
  height: 48%;
  background: linear-gradient(transparent, color-mix(in srgb, var(--accent) 42%, transparent));
}
.lx-channel-rails::after {
  top: 52%;
  background: linear-gradient(color-mix(in srgb, var(--accent) 42%, transparent), transparent);
}
.lx-channel-rails > i {
  position: absolute;
  left: calc(50% - 3px);
  top: -3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 80%, transparent);
  animation: lx-channel-packet 2.8s cubic-bezier(.4, 0, .2, 1) infinite;
  animation-delay: calc(var(--i) * .66s);
}
@keyframes lx-channel-packet {
  0% { opacity: 0; transform: translateY(0) scale(.6); }
  15% { opacity: 1; }
  68% { opacity: 1; transform: translateY(50px) scale(1); }
  82%, 100% { opacity: 0; transform: translateY(57px) scale(.5); }
}
.lx-channel-core {
  position: relative;
  z-index: 1;
  width: min(210px, 86%);
  padding: 13px 14px;
  border-radius: 15px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--lx-line));
  background:
    radial-gradient(circle at 90% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 44%),
    var(--lx-panel);
  box-shadow: 0 16px 34px color-mix(in srgb, var(--accent) 17%, transparent);
}
.lx-channel-core-mark {
  position: absolute;
  right: 12px;
  top: 11px;
  color: color-mix(in srgb, var(--accent) 70%, var(--lx-muted));
  font-family: var(--lx-display);
  font-size: .68rem;
  font-weight: 800;
}
.lx-channel-core small,
.lx-channel-core strong,
.lx-channel-core b {
  display: block;
}
.lx-channel-core small {
  color: var(--lx-muted);
  font-size: .55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.lx-channel-core strong {
  margin-top: 3px;
  font-family: var(--lx-display);
  font-size: 1rem;
}
.lx-channel-core b {
  margin-top: 6px;
  color: #2f9e64;
  font-size: .62rem;
}
.lx-channel-core b i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 4px;
  border-radius: 50%;
  background: #2f9e64;
  animation: lx-pulse-ring 1.8s ease-out infinite;
}
.lx-channel-receipt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 8px;
  align-items: center;
  padding: 9px 11px;
  border-radius: 11px;
  border: 1px solid color-mix(in srgb, #2f9e64 28%, var(--lx-line));
  background: color-mix(in srgb, #2f9e64 7%, var(--lx-panel));
  animation: lx-channel-receipt 3.2s ease-in-out infinite;
}
.lx-channel-receipt span {
  color: var(--lx-muted);
  font-size: .56rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.lx-channel-receipt strong {
  grid-column: 1;
  font-size: .7rem;
}
.lx-channel-receipt > i {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: #2f9e64;
  font-size: .58rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}
@keyframes lx-channel-receipt {
  0%, 28% { opacity: .45; transform: translateY(4px); }
  44%, 82% { opacity: 1; transform: none; }
  100% { opacity: .6; transform: none; }
}
.lx-scene-proof {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  color: var(--lx-muted);
}
.lx-scene-proof em {
  font-size: .58rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .035em;
  line-height: 1.3;
  text-transform: uppercase;
}
.lx-live-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #2f9e64;
  box-shadow: 0 0 0 0 color-mix(in srgb, #2f9e64 45%, transparent);
  animation: lx-pulse-ring 1.8s ease-out infinite;
}

@media (max-width: 720px) {
  .lx-wf-grid { grid-template-columns: 1fr; }
  .lx-esign-stage { grid-template-columns: 1fr; }
  .lx-camp-pipeline { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .lx-clerk-head,
  .lx-clerk-arm-l,
  .lx-clerk-arm-r,
  .lx-clerk-hand-l,
  .lx-clerk-hand-r,
  .lx-finger-tap,
  .lx-clerk-key,
  .lx-clerk-stack,
  .lx-clerk-think,
  .lx-clerk-stress,
  .lx-soa-row,
  .lx-soa-post,
  .lx-soa-post i,
  .lx-wf-card,
  .lx-wf-card.is-online > b,
  .lx-wf-leave-row.is-in b,
  .lx-wf-slip-drop,
  .lx-meet-slot,
  .lx-meet-ping,
  .lx-meet-toast,
  .lx-meet-open,
  .lx-meet-slot.is-open,
  .lx-esign-env,
  .lx-esign-pen,
  .lx-ad-stamp,
  .lx-vault-files span,
  .lx-pay-slip,
  .lx-ad-alert-card,
  .lx-ad-bubbles span,
  .lx-ad-chat .is-bot,
  .lx-ad-intake-pile span,
  .lx-ad-thread span,
  .lx-camp-step i,
  .lx-helper-actions span.is-pulse,
  .lx-chan-join,
  .lx-chan-join > i,
  .lx-alert-wave,
  .lx-vault-pulse,
  .lx-pay-tick,
  .lx-scene,
  .lx-intake-source > span,
  .lx-intake-orbit,
  .lx-intake-beam,
  .lx-intake-results span,
  .lx-channel-source,
  .lx-channel-rails > i,
  .lx-channel-core b i,
  .lx-channel-receipt,
  .lx-live-dot { animation: none !important; }
  .lx-ad,
  .lx-live-card,
  .lx-try-card,
  .lx-person-card,
  .lx-more-card,
  .lx-race-lane,
  .lx-ad::before,
  .lx-live-card::before,
  .lx-try-card::before,
  .lx-person-card::before,
  .lx-more-card::before,
  .lx-race-lane::before {
    transition: none !important;
  }
}

@media (max-width: 640px) {
  .lx-soa-head, .lx-soa-row {
    grid-template-columns: 1.2fr .9fr .9fr;
  }
  .lx-soa-head span:nth-child(4),
  .lx-soa-row span:nth-child(4),
  .lx-soa-row b { display: none; }
  .lx-race-scene.is-human { grid-template-columns: 1fr; }
  .lx-race-person { display: none; }
}
