/**
 * Limousine.Agency LA Intelligence Agent & Chat v2.2.0
 * All public selectors are scoped to .lccp-root so the plugin can coexist
 * with the V8.22 theme implementation and with unrelated WordPress themes.
 */
@font-face {
  font-family: "LCCP DSEG14 Classic";
  src: url("../fonts/dseg14-classic-700.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

.lccp-root {
  --lccp-aqua: #0ABAB5;
  --lccp-aqua-bright: #5FE7E1;
  --lccp-aqua-pale: #9AFFF9;
  --lccp-white: #F4FFFF;
  --lccp-muted: #A9BDC1;
  --lccp-panel: #050719;
  --lccp-black: #010304;
  --lccp-line: rgba(95, 231, 225, 0.32);
  --lccp-eye-color: #0ABAB5;
  --lccp-eye-glow: rgba(10, 186, 181, 0.92);
  --lccp-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --lccp-display: "LCCP DSEG14 Classic", "OCR A Std", "SFMono-Regular", Consolas, monospace;
  width: 100%;
  min-width: 0;
  color: var(--lccp-white);
  color-scheme: dark;
  font-family: var(--lccp-font);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.lccp-root,
.lccp-root *,
.lccp-root *::before,
.lccp-root *::after {
  box-sizing: border-box;
}

.lccp-root > script {
  display: none !important;
}

.lccp-root :is(a, button, input) {
  font: inherit;
}

.lccp-root :is(a, button, input):focus-visible {
  outline: 2px solid var(--lccp-aqua-pale);
  outline-offset: 3px;
}

.lccp-chat {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(100%, 1240px);
  padding: clamp(18px, 3.4vw, 42px);
  margin: 0 auto;
  border: 1px solid rgba(95, 231, 225, 0.28);
  border-radius: 30px;
  background:
    linear-gradient(rgba(10, 186, 181, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 186, 181, 0.026) 1px, transparent 1px),
    radial-gradient(circle at 8% 10%, rgba(10, 186, 181, 0.15), transparent 30%),
    linear-gradient(145deg, #020607, #030417 56%, #010208);
  background-size: 44px 44px, 44px 44px, auto, auto;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.48), inset 0 1px rgba(255, 255, 255, 0.055);
}

.lccp-chat::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.45;
  background: radial-gradient(circle at 72% 16%, rgba(10, 186, 181, 0.12), transparent 29%);
  content: "";
  pointer-events: none;
}

.lccp-pair {
  display: grid;
  grid-template-columns: minmax(320px, 390px) minmax(0, 1fr);
  gap: clamp(18px, 2.8vw, 34px);
  align-items: start;
  width: 100%;
}

/* LA Intelligence Agent, aqua-and-violet circuitry, and live overlays. */
.lccp-agent-only {
  width: min(100%, 430px);
  margin: 0 auto;
}

.lccp-agent-card {
  width: min(100%, 390px);
  max-width: 390px;
  display: grid;
  gap: 16px;
  align-self: start;
  justify-self: center;
  margin: 0;
  color: var(--lccp-white);
}

.lccp-agent-link,
.lccp-circuit-identity {
  display: block;
  color: inherit;
  text-decoration: none !important;
}

.lccp-agent {
  position: relative;
  width: 100%;
  margin: 0;
}

.lccp-agent::before {
  position: absolute;
  inset: 8% -7%;
  border: 1px solid rgba(95, 231, 225, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 70px rgba(10, 186, 181, 0.13);
  content: "";
  pointer-events: none;
}

.lccp-agent-visual {
  position: relative;
  z-index: 1;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(95, 231, 225, 0.58);
  border-radius: 28px;
  background: #020607;
  box-shadow: 0 34px 86px rgba(0, 0, 0, 0.56), 0 0 0 1px rgba(10, 186, 181, 0.15), 0 0 48px rgba(10, 186, 181, 0.2), inset 0 1px rgba(255, 255, 255, 0.1);
}

.lccp-agent-visual::after {
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  height: 24%;
  background: linear-gradient(transparent, rgba(2, 6, 7, 0.94));
  content: "";
  pointer-events: none;
}

.lccp-agent-visual > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  transform-origin: 54% 29%;
  animation: lccp-breathe 7s ease-in-out infinite;
}

.lccp-agent-visual > i {
  position: absolute;
  z-index: 6;
  border: 1px solid rgba(95, 231, 225, 0.55);
  border-radius: 50%;
  pointer-events: none;
  animation: lccp-orbit 18s linear infinite;
}

.lccp-agent-visual > i:first-child {
  top: 18px;
  right: 18px;
  width: 54px;
  height: 54px;
  border-style: dashed;
}

.lccp-agent-visual > i:nth-child(2) {
  right: 35px;
  bottom: 112px;
  width: 14px;
  height: 14px;
  border: 3px solid #EAFFFF;
  background: var(--lccp-aqua);
  box-shadow: 0 0 0 7px rgba(10, 186, 181, 0.12), 0 0 24px var(--lccp-aqua);
  animation-duration: 7s;
}

.lccp-eyes {
  position: absolute;
  z-index: 7;
  inset: 0;
  pointer-events: none;
}

.lccp-eye {
  position: absolute;
  top: 34.3%;
  width: 4.6%;
  height: 2.75%;
  border-radius: 50%;
  background: radial-gradient(circle, var(--lccp-eye-color) 0 17%, rgba(95, 231, 225, 0.45) 31%, transparent 68%);
  box-shadow: 0 0 10px var(--lccp-eye-glow), 0 0 26px var(--lccp-eye-glow);
  mix-blend-mode: screen;
  transform: translate(-50%, -50%);
  animation: lccp-idle-eye 2.5s ease-in-out infinite, lccp-eye-blink 6.4s ease-in-out infinite;
}

.lccp-eye.is-left { left: 46.55%; }
.lccp-eye.is-right { left: 63.15%; animation-delay: 0s, 0.035s; }

.lccp-eye b {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 33%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--lccp-eye-color);
  box-shadow: 0 0 6px var(--lccp-eye-color), 0 0 12px var(--lccp-eye-glow);
  transform: translate(-50%, -50%);
  animation: lccp-gaze 4.8s ease-in-out infinite;
}

.lccp-head-pulse {
  position: absolute;
  z-index: 6;
  top: 12.5%;
  left: 55%;
  width: 31%;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  transform: translateX(-50%);
  mix-blend-mode: screen;
}

.lccp-head-pulse > i {
  position: absolute;
  border: 1px solid rgba(95, 231, 225, 0.5);
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(10, 186, 181, 0.34), inset 0 0 12px rgba(10, 186, 181, 0.14);
  animation: lccp-head-wire 3.4s ease-out infinite;
}

.lccp-head-pulse > i:first-child { inset: 9%; }
.lccp-head-pulse > i:nth-child(2) { inset: 24%; animation-delay: 0.8s; }
.lccp-head-pulse > i:nth-child(3) { inset: 39%; animation-delay: 1.6s; }

.lccp-neural-sweep {
  position: absolute;
  z-index: 5;
  top: -18%;
  right: 4%;
  left: 4%;
  height: 16%;
  opacity: 0.38;
  border-bottom: 1px solid rgba(95, 231, 225, 0.92);
  background: linear-gradient(180deg, transparent, rgba(10, 186, 181, 0.15));
  box-shadow: 0 12px 34px rgba(10, 186, 181, 0.22), 0 0 12px rgba(255, 255, 255, 0.08);
  pointer-events: none;
  animation: lccp-neural-scan 3.2s linear infinite;
}

.lccp-map-lightning {
  position: absolute;
  z-index: 5;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  mix-blend-mode: screen;
}

.lccp-map-lightning path {
  opacity: 0;
  fill: none;
  stroke: #C8FFFF;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 18 12;
  filter: drop-shadow(0 0 4px #0ABAB5) drop-shadow(0 0 12px rgba(10, 186, 181, 0.96));
}

.lccp-agent-visual.is-lightning-active[data-lccp-lightning-path="1"] .is-route-one,
.lccp-agent-visual.is-lightning-active[data-lccp-lightning-path="2"] .is-route-two,
.lccp-agent-visual.is-lightning-active[data-lccp-lightning-path="3"] .is-route-three {
  animation: lccp-map-strike 0.92s steps(1, end) both;
}

.lccp-agent figcaption {
  position: relative;
  z-index: 8;
  width: calc(100% - 28px);
  min-height: 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin: -34px auto 0;
  border: 1px solid rgba(95, 231, 225, 0.64);
  border-radius: 16px;
  background: rgba(3, 15, 15, 0.97);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.44), 0 0 28px rgba(10, 186, 181, 0.2);
  backdrop-filter: blur(14px);
}

.lccp-agent figcaption strong,
.lccp-agent figcaption span {
  display: block;
  margin: 0;
  font-family: var(--lccp-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  line-height: 1.55;
  text-transform: uppercase;
}

.lccp-agent figcaption strong {
  color: var(--lccp-white);
  text-shadow: 0 0 10px rgba(95, 231, 225, 0.5);
}

.lccp-status {
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  color: #E8FFFF !important;
  text-align: right;
  text-shadow: 0 0 10px #0ABAB5, 0 0 24px rgba(10, 186, 181, 0.9), 0 0 42px rgba(10, 186, 181, 0.54);
  animation: lccp-online-text 1.8s ease-in-out infinite;
}

.lccp-status i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #FFF;
  box-shadow: 0 0 0 4px rgba(10, 186, 181, 0.42), 0 0 18px #0ABAB5, 0 0 38px rgba(10, 186, 181, 1);
  animation: lccp-online-beacon 1.25s ease-in-out infinite;
}

.lccp-status b {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
}

/* LA circuit identity directly under the agent with a moving radar sweep. */
.lccp-circuit-identity {
  position: relative;
  width: 100%;
  min-height: 142px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 12px;
  border: 1px solid rgba(95, 231, 225, 0.34);
  border-radius: 22px;
  background: radial-gradient(circle at 50% 42%, rgba(10, 186, 181, 0.13), transparent 58%), linear-gradient(145deg, rgba(4, 18, 18, 0.97), rgba(1, 4, 6, 0.99));
  box-shadow: 0 22px 62px rgba(0, 0, 0, 0.38), 0 0 30px rgba(10, 186, 181, 0.09), inset 0 1px rgba(255, 255, 255, 0.05);
  isolation: isolate;
}

.lccp-circuit-identity::before,
.lccp-circuit-identity::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(54%, 205px);
  aspect-ratio: 1;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.lccp-circuit-identity::before {
  z-index: 3;
  opacity: 0.82;
  background: conic-gradient(from 0deg, transparent 0 79%, rgba(95, 231, 225, 0.08) 80%, rgba(10, 186, 181, 0.98) 83%, rgba(255, 255, 255, 0.9) 84%, transparent 87% 100%);
  -webkit-mask: radial-gradient(circle, transparent 0 10%, #000 12% 90%, transparent 92%);
  mask: radial-gradient(circle, transparent 0 10%, #000 12% 90%, transparent 92%);
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 9px #0ABAB5);
  animation: lccp-network-radar 5.8s linear infinite;
}

.lccp-circuit-identity::after {
  z-index: 1;
  border: 1px solid rgba(95, 231, 225, 0.48);
  box-shadow: 0 0 18px rgba(10, 186, 181, 0.5), inset 0 0 22px rgba(10, 186, 181, 0.18);
  transform: translate(-50%, -50%);
  animation: lccp-network-pulse 2.8s ease-in-out infinite;
}

.lccp-circuit-identity img {
  position: relative;
  z-index: 2;
  width: min(54%, 205px);
  height: auto;
  display: block;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 50%;
  filter: brightness(1.03) contrast(1.03);
  transition: filter 0.25s ease, transform 0.25s ease;
}

.lccp-circuit-identity:is(:hover, :focus-visible) img {
  filter: brightness(1.13) contrast(1.07);
  transform: scale(1.018);
}

/* Approved-answer chat console. */
.lccp-console {
  min-width: 0;
  min-height: 738px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(95, 231, 225, 0.48);
  border-radius: 28px;
  background:
    linear-gradient(rgba(10, 186, 181, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 186, 181, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 88% 4%, rgba(10, 186, 181, 0.17), transparent 34%),
    linear-gradient(150deg, rgba(8, 8, 30, 0.98), rgba(1, 2, 12, 0.99));
  background-size: 34px 34px, 34px 34px, auto, auto;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.46), 0 0 42px rgba(10, 186, 181, 0.11), inset 0 1px rgba(255, 255, 255, 0.06);
}

.lccp-console-bar {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #769095;
  font-family: var(--lccp-display);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.5;
}

.lccp-console-bar span { color: var(--lccp-aqua-bright); letter-spacing: 0.32em; }
.lccp-console-bar strong { color: #C9DCDF; }
.lccp-console-bar em { margin-left: auto; color: #688187; font-style: normal; white-space: nowrap; }

.lccp-conversation {
  min-height: 390px;
  max-height: 520px;
  flex: 1 1 auto;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 15px;
  padding: 26px;
  background: linear-gradient(180deg, rgba(1, 6, 8, 0.82), rgba(5, 5, 22, 0.58));
  scroll-padding-top: 14px;
  scrollbar-color: rgba(10, 186, 181, 0.5) transparent;
}

.lccp-message {
  width: auto;
  max-width: 96%;
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 16px;
  margin: 0;
}

.lccp-message.is-user {
  justify-self: end;
  grid-template-columns: minmax(0, 1fr) 50px;
}

.lccp-message > span {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(10, 186, 181, 0.42);
  border-radius: 14px;
  background: rgba(10, 186, 181, 0.12);
  color: var(--lccp-aqua-bright);
  font-family: var(--lccp-display);
  font-size: 0.62rem;
  font-weight: 700;
}

.lccp-message.is-user > span {
  grid-column: 2;
  grid-row: 1;
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.07);
  color: #DCEBED;
}

.lccp-message > div {
  min-width: 0;
  padding: 24px 26px;
  border: 1px solid rgba(95, 231, 225, 0.34);
  border-radius: 4px 20px 20px 20px;
  background: linear-gradient(145deg, rgba(10, 186, 181, 0.145), rgba(4, 18, 18, 0.94));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}

.lccp-message.is-user > div {
  grid-column: 1;
  grid-row: 1;
  border-color: rgba(203, 228, 233, 0.22);
  border-radius: 20px 4px 20px 20px;
  background: linear-gradient(145deg, rgba(118, 146, 153, 0.18), rgba(19, 26, 29, 0.9));
}

.lccp-message :is(strong, h1, h2, h3),
.lccp-topic-title {
  display: block;
  margin: 0 0 11px;
  color: #F4FFFF;
  font-size: clamp(1.06rem, 1.3vw, 1.25rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.4;
  text-transform: none;
}

.lccp-message p {
  margin: 0;
  color: #D0DFE1;
  font-size: clamp(1rem, 1.12vw, 1.12rem);
  line-height: 1.78;
}

.lccp-chat.is-topic-console .lccp-topic-title {
  color: #8CFFF9;
  font-family: var(--lccp-display);
  font-size: clamp(1.12rem, 2.1vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1.42;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(10, 186, 181, 0.32);
}

.lccp-chat.is-topic-console .lccp-message.is-topic-intro > div {
  border-color: rgba(10, 186, 181, 0.54);
  background: linear-gradient(145deg, rgba(10, 186, 181, 0.18), rgba(3, 15, 16, 0.98));
}

.lccp-chat.is-topic-console .lccp-message.is-topic-loaded > div {
  border-color: rgba(142, 255, 249, 0.28);
  background: linear-gradient(145deg, rgba(10, 186, 181, 0.1), rgba(3, 10, 12, 0.96));
}

.lccp-chat.is-topic-console .lccp-console-bar strong {
  color: #9DFFFB;
  text-shadow: 0 0 13px rgba(10, 186, 181, 0.36);
}

.lccp-thinking-dots {
  display: flex;
  gap: 5px;
  margin-top: 12px;
}

.lccp-thinking-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lccp-aqua-bright);
  box-shadow: 0 0 10px rgba(95, 231, 225, 0.55);
  animation: lccp-thinking-dot 0.82s ease-in-out infinite;
}

.lccp-thinking-dots i:nth-child(2) { animation-delay: 0.13s; }
.lccp-thinking-dots i:nth-child(3) { animation-delay: 0.26s; }

.lccp-ask {
  padding: 24px 28px;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lccp-ask label {
  display: block;
  margin-bottom: 11px;
  color: #D2FFFF;
  font-size: 0.81rem;
  font-weight: 850;
  letter-spacing: 0.055em;
  line-height: 1.55;
}

.lccp-ask > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
}

.lccp-ask input {
  min-width: 0;
  min-height: 64px;
  padding: 0 20px;
  border: 1px solid rgba(95, 231, 225, 0.4) !important;
  border-radius: 13px !important;
  outline: 0;
  background: rgba(1, 5, 6, 0.82) !important;
  color: #FFF !important;
  caret-color: var(--lccp-aqua-bright);
  box-shadow: none !important;
  font-size: 1rem;
  -webkit-text-fill-color: #FFF;
}

.lccp-ask input::placeholder { color: #78AAA9; opacity: 1; }

.lccp-ask input:placeholder-shown:not(:focus) {
  animation: lccp-search-pulse 2.4s ease-in-out infinite;
}

.lccp-ask input:is(:hover, :focus) {
  border-color: var(--lccp-aqua-bright) !important;
  box-shadow: 0 0 0 3px rgba(10, 186, 181, 0.13), 0 0 28px rgba(10, 186, 181, 0.16) !important;
}

.lccp-ask button {
  min-width: 122px;
  min-height: 64px;
  padding: 0 18px;
  border: 1px solid var(--lccp-aqua) !important;
  border-radius: 13px !important;
  background: var(--lccp-aqua) !important;
  color: #061313 !important;
  cursor: pointer;
  font-family: var(--lccp-display);
  font-size: 0.81rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  box-shadow: 0 12px 34px rgba(10, 186, 181, 0.26) !important;
}

.lccp-ask button span + span { margin-left: 8px; }

.lccp-ask button:is(:hover, :focus-visible) {
  background: var(--lccp-aqua-bright) !important;
  box-shadow: 0 0 28px rgba(10, 186, 181, 0.38) !important;
}

.lccp-ask button:disabled,
.lccp-prompts button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.lccp-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 0 28px 22px;
}

.lccp-prompts button {
  min-height: 42px;
  padding: 8px 15px;
  border: 1px solid rgba(95, 231, 225, 0.32) !important;
  border-radius: 999px !important;
  background: rgba(10, 186, 181, 0.045) !important;
  color: #A9C0C4 !important;
  cursor: pointer;
  font-size: 0.75rem;
  line-height: 1.35;
  box-shadow: none !important;
}

.lccp-prompts button:is(:hover, :focus-visible) {
  border-color: var(--lccp-aqua-bright) !important;
  background: rgba(10, 186, 181, 0.14) !important;
  color: #FFF !important;
}

.lccp-boundary {
  padding: 18px 28px;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
  color: #A7BCC0;
  font-size: 0.81rem;
  line-height: 1.65;
}

.lccp-boundary strong { color: var(--lccp-aqua-pale); }

/* LA Intelligence Agent/chat state synchronization. */
.lccp-root[data-lccp-state="listening"],
.lccp-agent-card[data-lccp-state="listening"] {
  --lccp-eye-color: #F4FFFF;
  --lccp-eye-glow: rgba(244, 255, 255, 0.98);
}

.lccp-root[data-lccp-state="listening"] .lccp-eye b,
.lccp-agent-card[data-lccp-state="listening"] .lccp-eye b {
  animation-duration: 2.1s;
}

.lccp-root[data-lccp-state="thinking"],
.lccp-agent-card[data-lccp-state="thinking"] {
  --lccp-eye-color: #5FE7E1;
  --lccp-eye-glow: rgba(95, 231, 225, 1);
}

.lccp-root[data-lccp-state="answering"],
.lccp-agent-card[data-lccp-state="answering"] {
  --lccp-eye-color: #DFFFFD;
  --lccp-eye-glow: rgba(223, 255, 253, 1);
}

.lccp-root[data-lccp-state="thinking"] .lccp-eye,
.lccp-agent-card[data-lccp-state="thinking"] .lccp-eye {
  filter: saturate(1.35);
  animation: lccp-think-glow 0.72s ease-in-out infinite;
}

.lccp-root[data-lccp-state="thinking"] .lccp-eye b,
.lccp-agent-card[data-lccp-state="thinking"] .lccp-eye b {
  animation: lccp-scan-gaze 0.9s ease-in-out infinite;
}

.lccp-root[data-lccp-state="thinking"] .lccp-neural-sweep,
.lccp-agent-card[data-lccp-state="thinking"] .lccp-neural-sweep {
  opacity: 0.95;
  animation-duration: 1.15s;
}

.lccp-root[data-lccp-state="thinking"] .lccp-status i,
.lccp-agent-card[data-lccp-state="thinking"] .lccp-status i {
  animation: lccp-status-pulse 0.7s ease-in-out infinite;
}

.lccp-root[data-lccp-state="answering"] .lccp-eye,
.lccp-agent-card[data-lccp-state="answering"] .lccp-eye {
  animation: lccp-answer-glow 1.2s ease-out both;
}

@keyframes lccp-breathe {
  0%, 100% { transform: scale(1); filter: brightness(0.98) saturate(0.98); }
  50% { transform: scale(1.008); filter: brightness(1.035) saturate(1.06); }
}

@keyframes lccp-orbit { to { transform: rotate(360deg); } }

@keyframes lccp-idle-eye {
  0%, 100% { opacity: 0.72; box-shadow: 0 0 8px var(--lccp-eye-glow), 0 0 20px rgba(10, 186, 181, 0.42); }
  50% { opacity: 1; box-shadow: 0 0 14px var(--lccp-eye-glow), 0 0 34px rgba(10, 186, 181, 0.82); }
}

@keyframes lccp-eye-blink {
  0%, 44%, 46.5%, 79%, 81.2%, 100% { transform: translate(-50%, -50%) scaleY(1); }
  45.2%, 80.1% { transform: translate(-50%, -50%) scaleY(0.08); }
}

@keyframes lccp-gaze {
  0%, 12%, 100% { transform: translate(-50%, -50%) translateX(0); }
  27%, 38% { transform: translate(-50%, -50%) translateX(-32%); }
  55%, 67% { transform: translate(-50%, -50%) translateX(28%); }
  80% { transform: translate(-50%, -50%) translateY(-22%); }
}

@keyframes lccp-scan-gaze {
  0%, 100% { transform: translate(-50%, -50%) translateX(-32%); }
  50% { transform: translate(-50%, -50%) translateX(32%); }
}

@keyframes lccp-think-glow {
  0%, 100% { opacity: 0.66; box-shadow: 0 0 8px var(--lccp-eye-glow), 0 0 20px rgba(95, 231, 225, 0.42); }
  50% { opacity: 1; box-shadow: 0 0 15px var(--lccp-eye-glow), 0 0 38px rgba(95, 231, 225, 0.82); }
}

@keyframes lccp-answer-glow {
  0% { box-shadow: 0 0 8px var(--lccp-eye-glow); }
  35% { box-shadow: 0 0 20px var(--lccp-eye-glow), 0 0 48px rgba(200, 255, 251, 0.92); }
  100% { box-shadow: 0 0 12px var(--lccp-eye-glow), 0 0 28px rgba(200, 255, 251, 0.5); }
}

@keyframes lccp-head-wire {
  0% { opacity: 0; transform: scale(0.76); }
  22% { opacity: 0.82; }
  72% { opacity: 0.22; }
  100% { opacity: 0; transform: scale(1.18); }
}

@keyframes lccp-neural-scan {
  from { transform: translateY(0); }
  to { transform: translateY(760%); }
}

@keyframes lccp-map-strike {
  0%, 7%, 100% { opacity: 0; stroke-dashoffset: 44; }
  9% { opacity: 1; stroke-width: 4.4; }
  13% { opacity: 0.16; }
  17% { opacity: 0.98; stroke-width: 2.8; stroke-dashoffset: 0; }
  24% { opacity: 0; }
  42% { opacity: 0.82; stroke-width: 3.6; }
  48% { opacity: 0; stroke-dashoffset: -38; }
}

@keyframes lccp-online-beacon {
  0%, 100% { opacity: 0.78; transform: scale(0.86); }
  50% { opacity: 1; transform: scale(1.22); }
}

@keyframes lccp-online-text {
  0%, 100% { filter: brightness(0.9); }
  50% { filter: brightness(1.38); }
}

@keyframes lccp-status-pulse {
  50% { opacity: 0.72; transform: scale(1.34); box-shadow: 0 0 0 5px rgba(10, 186, 181, 0.24), 0 0 25px #0ABAB5, 0 0 44px rgba(10, 186, 181, 0.98); }
}

@keyframes lccp-network-radar {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes lccp-network-pulse {
  50% { opacity: 0.55; transform: translate(-50%, -50%) scale(0.975); }
}

@keyframes lccp-thinking-dot {
  0%, 100% { opacity: 0.35; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-4px); }
}

@keyframes lccp-search-pulse {
  0%, 100% { border-color: rgba(95, 231, 225, 0.3); box-shadow: 0 0 0 0 rgba(10, 186, 181, 0); }
  50% { border-color: rgba(95, 231, 225, 0.88); box-shadow: 0 0 0 4px rgba(10, 186, 181, 0.11), 0 0 30px rgba(10, 186, 181, 0.2); }
}

@media (max-width: 980px) {
  .lccp-pair {
    grid-template-columns: 1fr;
  }

  .lccp-agent-card {
    width: min(100%, 390px);
  }

  .lccp-console {
    min-height: 0;
  }
}

@media (max-width: 620px) {
  .lccp-chat {
    padding: 14px;
    border-radius: 22px;
  }

  .lccp-agent-card {
    width: min(100%, 330px);
  }

  .lccp-agent-visual { border-radius: 22px; }
  .lccp-agent figcaption { width: calc(100% - 20px); padding: 12px; }
  .lccp-agent figcaption strong,
  .lccp-agent figcaption span { font-size: 0.56rem; }
  .lccp-circuit-identity { min-height: 126px; }

  .lccp-console { border-radius: 20px; }
  .lccp-console-bar { min-height: 58px; flex-wrap: wrap; gap: 8px 14px; padding: 13px 16px; font-size: 0.54rem; }
  .lccp-console-bar em { width: 100%; margin-left: 0; }
  .lccp-conversation { min-height: 360px; max-height: 520px; padding: 14px; }
  .lccp-message,
  .lccp-message.is-user { display: block; max-width: 100%; }
  .lccp-message > span { width: 42px; height: 42px; margin-bottom: 7px; }
  .lccp-message.is-user > span { margin-left: auto; }
  .lccp-message > div { padding: 17px; }
  .lccp-message :is(strong, h1, h2, h3),
  .lccp-topic-title { font-size: 1rem; }
  .lccp-message p { font-size: 0.94rem; }
  .lccp-chat.is-topic-console .lccp-topic-title { font-size: 1.02rem; letter-spacing: 0.02em; }

  .lccp-ask { padding: 18px 15px; }
  .lccp-ask > div { grid-template-columns: 1fr; }
  .lccp-ask input,
  .lccp-ask button { width: 100%; min-height: 56px; }
  .lccp-prompts { padding: 0 15px 18px; }
  .lccp-boundary { padding: 16px 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .lccp-root *,
  .lccp-root *::before,
  .lccp-root *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }

  .lccp-neural-sweep {
    top: 42%;
    opacity: 0.18;
  }

  .lccp-circuit-identity::before {
    transform: translate(-50%, -50%) rotate(24deg);
  }
}

/* Limousine.Agency V2.2 brand integration. */
.lccp-root {
  --lccp-purple: #9B5CFF;
  --lccp-purple-bright: #C990FF;
  --lccp-purple-pale: #EAD7FF;
}

.lccp-chat {
  border-color: rgba(185, 115, 255, 0.48);
  background:
    linear-gradient(rgba(155, 92, 255, 0.034) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 231, 225, 0.026) 1px, transparent 1px),
    radial-gradient(circle at 8% 10%, rgba(155, 92, 255, 0.22), transparent 31%),
    radial-gradient(circle at 89% 12%, rgba(10, 186, 181, 0.14), transparent 31%),
    linear-gradient(145deg, #050414, #030417 56%, #010208);
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.52), 0 0 68px rgba(145, 72, 231, 0.12), inset 0 1px rgba(255, 255, 255, 0.06);
}

.lccp-chat::before {
  background: radial-gradient(circle at 72% 16%, rgba(155, 92, 255, 0.16), transparent 29%);
}

.lccp-agent::before {
  border-color: rgba(193, 128, 255, 0.32);
  box-shadow: 0 0 74px rgba(146, 72, 231, 0.2);
}

.lccp-agent-visual {
  border-color: rgba(192, 124, 255, 0.68);
  background: radial-gradient(circle at 75% 18%, rgba(155, 92, 255, 0.2), transparent 29%), #020607;
  box-shadow: 0 34px 86px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(10, 186, 181, 0.14), 0 0 52px rgba(151, 76, 238, 0.28), inset 0 1px rgba(255, 255, 255, 0.1);
}

.lccp-agent-visual > i:first-child,
.lccp-head-pulse > i {
  border-color: rgba(201, 144, 255, 0.68);
  box-shadow: 0 0 16px rgba(155, 92, 255, 0.4), inset 0 0 12px rgba(10, 186, 181, 0.12);
}

.lccp-neural-sweep {
  border-bottom-color: rgba(213, 174, 255, 0.96);
  background: linear-gradient(180deg, transparent, rgba(155, 92, 255, 0.18));
  box-shadow: 0 12px 34px rgba(155, 92, 255, 0.25), 0 0 12px rgba(95, 231, 225, 0.12);
}

.lccp-map-lightning path {
  stroke: #E9D7FF;
  filter: drop-shadow(0 0 4px #9B5CFF) drop-shadow(0 0 12px rgba(155, 92, 255, 0.96));
}

.lccp-agent figcaption {
  border-color: rgba(191, 121, 255, 0.72);
  background: linear-gradient(135deg, rgba(32, 13, 53, 0.98), rgba(3, 18, 18, 0.98));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.44), 0 0 31px rgba(155, 92, 255, 0.25);
}

.lccp-agent figcaption strong {
  color: var(--lccp-purple-pale);
  text-shadow: 0 0 12px rgba(190, 125, 255, 0.68);
}

.lccp-circuit-identity {
  min-height: 300px;
  border-color: rgba(191, 121, 255, 0.52);
  background: radial-gradient(circle at 50% 44%, rgba(155, 92, 255, 0.2), transparent 60%), linear-gradient(145deg, rgba(16, 7, 28, 0.98), rgba(1, 4, 8, 0.99));
  box-shadow: 0 22px 62px rgba(0, 0, 0, 0.42), 0 0 38px rgba(155, 92, 255, 0.16), inset 0 1px rgba(255, 255, 255, 0.05);
}

.lccp-circuit-identity::before,
.lccp-circuit-identity::after,
.lccp-circuit-identity img {
  width: min(78%, 284px);
}

.lccp-circuit-identity::before {
  background: conic-gradient(from 0deg, transparent 0 76%, rgba(95, 231, 225, 0.08) 78%, rgba(155, 92, 255, 0.96) 82%, rgba(255, 255, 255, 0.94) 84%, rgba(10, 186, 181, 0.5) 87%, transparent 90% 100%);
  filter: drop-shadow(0 0 11px #9B5CFF) drop-shadow(0 0 18px rgba(10, 186, 181, 0.4));
  animation-duration: 5.2s;
}

.lccp-circuit-identity::after {
  border-color: rgba(196, 132, 255, 0.66);
  box-shadow: 0 0 24px rgba(155, 92, 255, 0.58), inset 0 0 24px rgba(10, 186, 181, 0.16);
}

.lccp-console {
  border-color: rgba(185, 116, 255, 0.56);
  background:
    linear-gradient(rgba(155, 92, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 186, 181, 0.024) 1px, transparent 1px),
    radial-gradient(circle at 88% 4%, rgba(155, 92, 255, 0.2), transparent 34%),
    linear-gradient(150deg, rgba(8, 6, 27, 0.99), rgba(1, 3, 13, 0.99));
  background-size: 34px 34px, 34px 34px, auto, auto;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48), 0 0 46px rgba(155, 92, 255, 0.14), inset 0 1px rgba(255, 255, 255, 0.06);
}

.lccp-console-bar span,
.lccp-console-bar strong {
  color: var(--lccp-purple-bright);
  text-shadow: 0 0 13px rgba(155, 92, 255, 0.46);
}

.lccp-conversation {
  overscroll-behavior: contain;
  scroll-padding: 16px 0;
}

.lccp-message > span {
  border-color: rgba(190, 125, 255, 0.54);
  background: rgba(155, 92, 255, 0.15);
  color: var(--lccp-purple-pale);
}

.lccp-message > div {
  border-color: rgba(183, 114, 246, 0.4);
  background: linear-gradient(145deg, rgba(115, 48, 190, 0.16), rgba(4, 13, 22, 0.95));
}

.lccp-chat.is-topic-console .lccp-topic-title {
  color: #E6CCFF;
  text-shadow: 0 0 18px rgba(155, 92, 255, 0.45);
}

.lccp-chat.is-topic-console .lccp-message.is-topic-intro > div,
.lccp-chat.is-topic-console .lccp-message.is-topic-loaded > div {
  border-color: rgba(188, 119, 255, 0.54);
  background: linear-gradient(145deg, rgba(112, 44, 185, 0.19), rgba(3, 12, 18, 0.98));
}

.lccp-chat.is-topic-console .lccp-console-bar strong {
  color: #E4CAFF;
  text-shadow: 0 0 15px rgba(155, 92, 255, 0.54);
}

.lccp-ask input {
  border-color: rgba(190, 125, 255, 0.5) !important;
}

.lccp-ask input:is(:hover, :focus) {
  border-color: var(--lccp-purple-bright) !important;
  box-shadow: 0 0 0 3px rgba(155, 92, 255, 0.14), 0 0 29px rgba(155, 92, 255, 0.18) !important;
}

.lccp-ask button {
  border-color: #9B5CFF !important;
  background: linear-gradient(135deg, #9B5CFF, #5FE7E1) !important;
  color: #060411 !important;
  box-shadow: 0 12px 34px rgba(155, 92, 255, 0.28) !important;
}

.lccp-prompts button {
  border-color: rgba(190, 125, 255, 0.4) !important;
  background: rgba(155, 92, 255, 0.06) !important;
}

.lccp-prompts button:is(:hover, :focus-visible) {
  border-color: var(--lccp-purple-bright) !important;
  background: rgba(155, 92, 255, 0.16) !important;
}

@media (max-width: 620px) {
  .lccp-circuit-identity { min-height: 250px; }
  .lccp-circuit-identity::before,
  .lccp-circuit-identity::after,
  .lccp-circuit-identity img { width: min(80%, 240px); }
}
