﻿/* Chat conversacional — Hablemos */
.jt-chat-root {
  position: fixed;
  inset: 0;
  z-index: 2400;
  pointer-events: none;
}

.jt-chat-root.is-open {
  pointer-events: auto;
}

.jt-chat-veil {
  position: absolute;
  inset: 0;
  background: rgba(22, 26, 23, 0.28);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.28s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1));
}

.jt-chat-root.is-open .jt-chat-veil {
  opacity: 1;
}

body.jt-chat-departing::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 42%, rgba(251, 130, 42, 0.28), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 55%);
  animation: jtChatDepartFlash 0.42s ease-out both;
}

@keyframes jtChatDepartFlash {
  0% { opacity: 0; }
  35% { opacity: 1; }
  100% { opacity: 0; }
}

.jt-chat-panel {
  position: absolute;
  top: calc(var(--jt-header-h, 92px) + 12px);
  right: 18px;
  width: min(420px, calc(100vw - 24px));
  height: min(640px, calc(100dvh - var(--jt-header-h, 92px) - 36px));
  display: flex;
  flex-direction: column;
  isolation: isolate;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(251, 130, 42, 0.18), transparent 55%),
    linear-gradient(165deg, #f5f8fc 0%, #eef3fa 42%, #e8eef8 100%);
  border: 1px solid rgba(251, 130, 42, 0.28);
  border-radius: 22px;
  box-shadow:
    0 28px 70px rgba(22, 26, 23, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  overflow: hidden;
  transform: translateY(14px) scale(0.98);
  opacity: 0;
  transition:
    transform 0.38s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)),
    opacity 0.28s ease;
}

.jt-chat-root.is-open .jt-chat-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.jt-chat-root.is-open.is-departing .jt-chat-veil {
  opacity: 0;
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  transition:
    opacity 0.38s ease,
    backdrop-filter 0.38s ease,
    -webkit-backdrop-filter 0.38s ease;
}

.jt-chat-root.is-open.is-departing .jt-chat-panel {
  opacity: 0;
  transform: translateY(22px) scale(0.94);
  transition:
    opacity 0.36s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}

.jt-chat-panel.is-handoff {
  border-color: rgba(29, 53, 87, 0.35);
}

/* Aurora SOLO en jt-chat-stream — estilo TorreControl, verde/blanco */
@keyframes gbAuroraDrift {
  0% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  20% { transform: translate3d(14%, -16%, 0) scale(1.28) rotate(4deg); }
  40% { transform: translate3d(-12%, 10%, 0) scale(0.86) rotate(-3deg); }
  60% { transform: translate3d(10%, 8%, 0) scale(1.2) rotate(2deg); }
  80% { transform: translate3d(-8%, -10%, 0) scale(0.92) rotate(-2deg); }
  100% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
}

@keyframes gbAuroraDrift2 {
  0% { transform: translate3d(0, 0, 0) scale(1.05) rotate(0deg); }
  25% { transform: translate3d(-18%, 14%, 0) scale(1.32) rotate(-5deg); }
  50% { transform: translate3d(16%, -12%, 0) scale(0.82) rotate(4deg); }
  75% { transform: translate3d(-10%, -8%, 0) scale(1.18) rotate(-2deg); }
  100% { transform: translate3d(0, 0, 0) scale(1.05) rotate(0deg); }
}

@keyframes gbAuroraDrift3 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(12%, 14%, 0) scale(1.35); }
  66% { transform: translate3d(-14%, -12%, 0) scale(0.8); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes gbAuroraBreathe {
  0%, 100% { opacity: 0.55; filter: blur(34px); }
  50% { opacity: 1; filter: blur(48px); }
}

@keyframes gbAuroraHue {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

@keyframes gbAuroraBeam {
  0% { transform: translateX(-55%) rotate(12deg); opacity: 0; }
  18% { opacity: 0.85; }
  55% { opacity: 1; }
  100% { transform: translateX(55%) rotate(12deg); opacity: 0; }
}

@keyframes gbAuroraSpark {
  0%, 100% { transform: translate3d(0, 8px, 0) scale(0.4); opacity: 0; }
  25% { opacity: 1; }
  50% { transform: translate3d(10px, -18px, 0) scale(1); opacity: 0.9; }
  75% { opacity: 0.35; }
}

@keyframes gbAuroraHorizon {
  0%, 100% { opacity: 0.45; transform: scaleX(0.86); }
  50% { opacity: 1; transform: scaleX(1.08); }
}

@keyframes jtChatThinkPulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

.jt-chat-thinking-label {
  margin: 4px 0 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--jt-accent, #FB822A);
  animation: jtChatThinkPulse 1.2s ease-in-out infinite;
}

.jt-chat-head {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(221, 228, 221, 0.9);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.jt-chat-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.jt-chat-pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--jt-accent, #FB822A);
  box-shadow: 0 0 0 0 rgba(251, 130, 42, 0.55);
  animation: jtChatPulse 1.8s ease-out infinite;
}

.jt-chat-panel.is-handoff .jt-chat-pulse {
  background: #133066;
  box-shadow: 0 0 0 0 rgba(29, 53, 87, 0.45);
}

@keyframes jtChatPulse {
  0% { box-shadow: 0 0 0 0 rgba(251, 130, 42, 0.5); }
  70% { box-shadow: 0 0 0 12px rgba(251, 130, 42, 0); }
  100% { box-shadow: 0 0 0 0 rgba(251, 130, 42, 0); }
}

.jt-chat-kicker {
  margin: 0;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--jt-accent, #FB822A);
}

.jt-chat-head h2 {
  margin: 2px 0 0;
  font-size: 18px;
  line-height: 1.1;
  color: var(--jt-primary, #133066);
}

.jt-chat-x {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(22, 26, 23, 0.06);
  color: var(--jt-primary, #133066);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.jt-chat-x:hover {
  background: rgba(22, 26, 23, 0.12);
}

.jt-chat-stream {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  isolation: isolate;
  scroll-behavior: smooth;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(245, 248, 252, 0.2));
  transition: background 0.9s ease;
}

.jt-chat-stream.is-thinking {
  background: linear-gradient(180deg, rgba(255, 214, 186, 0.55) 0%, rgba(245, 248, 252, 0.5) 38%, rgba(245, 248, 252, 0.25) 100%);
}

.jt-chat-stream-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding: 16px 14px 10px;
  overflow-x: hidden;
}

.jt-chat-aurora {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 220px;
  margin-bottom: -220px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transform: scale(1.05);
  transform-origin: top center;
  mask-image: linear-gradient(180deg, #000 0%, #000 42%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 42%, transparent 100%);
  transition:
    opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1),
    transform 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.jt-chat-stream.is-thinking .jt-chat-aurora {
  opacity: 1;
  transform: scale(1);
}

.jt-chat-aurora > * {
  position: absolute;
  pointer-events: none;
}

.jt-chat-aurora__blob,
.jt-chat-aurora__veil,
.jt-chat-aurora__beam,
.jt-chat-aurora__spark,
.jt-chat-aurora__horizon {
  opacity: 0;
  transition: opacity 0.85s ease;
}

.jt-chat-stream.is-thinking .jt-chat-aurora__blob,
.jt-chat-stream.is-thinking .jt-chat-aurora__veil,
.jt-chat-stream.is-thinking .jt-chat-aurora__beam,
.jt-chat-stream.is-thinking .jt-chat-aurora__spark,
.jt-chat-stream.is-thinking .jt-chat-aurora__horizon {
  opacity: 1;
}

.jt-chat-aurora__blob {
  border-radius: 9999px;
  filter: blur(36px);
  will-change: transform, opacity, filter;
  top: 0;
}

.jt-chat-aurora__blob--leaf {
  width: min(120%, 460px);
  height: 170px;
  left: -28%;
  top: -40px;
  background: radial-gradient(circle, rgba(232, 115, 32, 0.92) 0%, rgba(251, 130, 42, 0.5) 40%, transparent 72%);
  animation:
    gbAuroraDrift 2.6s ease-in-out infinite,
    gbAuroraBreathe 1.6s ease-in-out infinite;
  transition-delay: 0.04s;
}

.jt-chat-aurora__blob--mint {
  width: min(130%, 500px);
  height: 180px;
  right: -30%;
  left: auto;
  top: -28px;
  background: radial-gradient(circle, rgba(255, 230, 210, 1) 0%, rgba(255, 186, 140, 0.8) 34%, rgba(251, 130, 42, 0.35) 58%, transparent 74%);
  animation:
    gbAuroraDrift2 2.9s ease-in-out infinite,
    gbAuroraHue 1.8s ease-in-out infinite 0.15s;
  transition-delay: 0.08s;
}

.jt-chat-aurora__blob--mist {
  width: min(90%, 340px);
  height: 130px;
  left: 16%;
  top: -8px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.98) 0%, rgba(255, 236, 220, 0.72) 42%, transparent 74%);
  animation: gbAuroraDrift3 3.2s ease-in-out infinite reverse;
  transition-delay: 0.12s;
}

.jt-chat-aurora__blob--core {
  width: min(75%, 280px);
  height: 120px;
  left: 26%;
  top: 4px;
  background: radial-gradient(circle, rgba(34, 140, 70, 0.72) 0%, rgba(251, 130, 42, 0.38) 48%, transparent 70%);
  animation:
    gbAuroraDrift2 2.4s ease-in-out infinite reverse,
    gbAuroraBreathe 1.4s ease-in-out infinite;
  transition-delay: 0.05s;
}

.jt-chat-aurora__veil {
  left: 0;
  right: 0;
  top: 0;
  height: 210px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 220, 190, 0.55) 0%,
      rgba(251, 130, 42, 0.22) 34%,
      rgba(232, 115, 32, 0.08) 62%,
      transparent 100%
    );
  mask-image: linear-gradient(180deg, #000 0%, #000 48%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 48%, transparent 100%);
  transition-delay: 0.02s;
}

.jt-chat-aurora__horizon {
  left: 8%;
  right: 8%;
  top: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), rgba(251, 130, 42, 0.95), rgba(255, 255, 255, 0.95), transparent);
  box-shadow:
    0 0 18px rgba(251, 130, 42, 0.75),
    0 0 40px rgba(255, 214, 186, 0.55);
  transform-origin: center;
  animation: gbAuroraHorizon 1.8s ease-in-out infinite;
}

.jt-chat-aurora__beam {
  top: -10px;
  left: 0;
  width: 48%;
  height: 160px;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.05) 35%,
    rgba(255, 236, 220, 0.75) 48%,
    rgba(251, 130, 42, 0.45) 54%,
    transparent 72%
  );
  filter: blur(8px);
  mix-blend-mode: soft-light;
  animation: gbAuroraBeam 2.2s ease-in-out infinite;
}

.jt-chat-aurora__beam.is-b {
  width: 42%;
  animation-duration: 2.8s;
  animation-delay: -1.1s;
  opacity: 0;
}

.jt-chat-stream.is-thinking .jt-chat-aurora__beam.is-b {
  opacity: 0.75;
}

.jt-chat-aurora__spark {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, rgba(255, 214, 186, 0.9) 45%, transparent 75%);
  box-shadow: 0 0 12px rgba(251, 130, 42, 0.9);
  animation: gbAuroraSpark 2.4s ease-in-out infinite;
}

.jt-chat-aurora__spark--a { left: 18%; top: 36px; animation-delay: 0s; }
.jt-chat-aurora__spark--b { left: 52%; top: 22px; animation-delay: 0.45s; }
.jt-chat-aurora__spark--c { left: 78%; top: 48px; animation-delay: 0.9s; }

.jt-chat-stream.is-thinking .jt-chat-aurora__blob--leaf {
  filter: blur(42px);
}

.jt-chat-bubble {
  max-width: min(88%, 100%);
  min-width: 0;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 16px;
  animation: jtChatIn 0.35s var(--ease-out-expo, cubic-bezier(0.16, 1, 0.3, 1)) both;
}

@keyframes jtChatIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.jt-chat-bubble .jt-chat-who {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 4px;
  opacity: 0.65;
}

.jt-chat-bubble p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.jt-chat-bubble p a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}

.jt-chat-bubble.is-assistant p a {
  color: #133066;
}

.jt-chat-bubble p a.jt-chat-site-link {
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.jt-chat-bubble p a.jt-chat-site-link:hover {
  color: #0f254d;
  text-decoration-color: rgba(251, 130, 42, 0.7);
}

.jt-chat-bubble.is-human p a,
.jt-chat-bubble.is-user p a {
  color: #ffe8d4;
}

.jt-chat-bubble.is-assistant {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--jt-border, #d8dee8);
  color: var(--jt-primary, #133066);
  border-bottom-left-radius: 6px;
}

.jt-chat-bubble.is-user {
  align-self: flex-end;
  background: var(--jt-primary, #133066);
  color: #fff;
  border-bottom-right-radius: 6px;
}

.jt-chat-bubble.is-human {
  align-self: flex-start;
  background: #133066;
  color: #fff;
  border-bottom-left-radius: 6px;
}

.jt-chat-bubble.is-system {
  align-self: center;
  max-width: 94%;
  background: rgba(251, 130, 42, 0.1);
  color: var(--jt-muted, #667085);
  border: 1px dashed rgba(251, 130, 42, 0.35);
  text-align: center;
}

.jt-chat-typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 5px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--jt-border, #d8dee8);
  border-radius: 16px;
}

.jt-chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jt-accent, #FB822A);
  animation: jtChatDot 1.1s ease-in-out infinite;
}

.jt-chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.jt-chat-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes jtChatDot {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
  40% { transform: translateY(-4px); opacity: 1; }
}

.jt-chat-intake {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 8px;
  margin: 0 14px 12px;
  padding: 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(251, 130, 42, 0.08), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(251, 130, 42, 0.28);
}

.jt-chat-intake[hidden] {
  display: none !important;
}

.jt-chat-intake-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--jt-primary, #133066);
}

.jt-chat-intake-lead {
  margin: 0 0 2px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--jt-muted, #667085);
}

.jt-chat-intake input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--jt-border, #d8dee8);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--jt-primary, #133066);
}

.jt-chat-intake input:focus {
  outline: 2px solid rgba(251, 130, 42, 0.35);
  outline-offset: 1px;
  border-color: var(--jt-accent, #FB822A);
}

.jt-chat-intake-send {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  background: var(--jt-accent, #FB822A);
}

.jt-chat-intake-send:hover {
  filter: brightness(0.96);
}

.jt-chat-intake-err {
  margin: 0;
  font-size: 12px;
  color: #b42318;
}

.jt-chat-suggest {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 10px;
}

.jt-chat-suggest button {
  border: 1px solid rgba(251, 130, 42, 0.35);
  background: rgba(255, 255, 255, 0.75);
  color: var(--jt-primary, #133066);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.jt-chat-suggest button:hover {
  background: #fff;
  transform: translateY(-1px);
}

.jt-chat-form {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px 8px;
  border-top: 1px solid rgba(221, 228, 221, 0.9);
  background: rgba(255, 255, 255, 0.55);
}

.jt-chat-form textarea {
  flex: 1;
  resize: none;
  min-height: 42px;
  max-height: 110px;
  border: 1px solid var(--jt-border, #d8dee8);
  border-radius: 14px;
  padding: 11px 12px;
  font: inherit;
  font-size: 14px;
  background: #fff;
  color: var(--jt-primary, #133066);
}

.jt-chat-form textarea:focus {
  outline: 2px solid rgba(251, 130, 42, 0.35);
  border-color: var(--jt-accent, #FB822A);
}

.jt-chat-send {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: var(--jt-primary, #133066);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.jt-chat-send:hover {
  background: var(--jt-accent, #FB822A);
  transform: translateY(-1px);
}

.jt-chat-foot {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0 14px 12px;
  font-size: 11px;
  color: var(--jt-muted, #667085);
  text-align: center;
}

.jt-btn-chat.jt-btn-chat-ai {
  position: relative;
}

.jt-btn-chat.jt-btn-chat-ai::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--jt-accent, #FB822A);
  box-shadow: 0 0 0 2px rgba(236, 246, 237, 0.95);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 860px) {
  .jt-chat-panel {
    top: auto;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: min(78dvh, 640px);
    border-radius: 22px 22px 0 0;
  }
}

@media (max-width: 860px) {
  .jt-chat-aurora__blob {
    filter: blur(28px);
  }

  .jt-chat-stream.is-thinking .jt-chat-aurora__blob--leaf {
    filter: blur(34px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .jt-chat-panel,
  .jt-chat-veil,
  .jt-chat-bubble,
  .jt-chat-pulse,
  .jt-chat-typing span,
  .jt-chat-aurora__blob,
  .jt-chat-aurora__veil,
  .jt-chat-aurora__beam,
  .jt-chat-aurora__spark,
  .jt-chat-aurora__horizon,
  .jt-chat-thinking-label {
    animation: none !important;
    transition: none !important;
  }

  .jt-chat-stream.is-thinking .jt-chat-aurora__blob,
  .jt-chat-stream.is-thinking .jt-chat-aurora__veil,
  .jt-chat-stream.is-thinking .jt-chat-aurora__horizon {
    opacity: 0.7;
  }
}

/* ===== Modal Agenda / Adquiere demo ===== */
.jt-demo-root {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: grid;
  place-items: center;
  padding: 18px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.28s ease;
}
.jt-demo-root.is-open {
  pointer-events: auto;
  opacity: 1;
}
.jt-demo-veil {
  position: absolute;
  inset: 0;
  background: rgba(15, 37, 77, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.jt-demo-panel {
  position: relative;
  z-index: 1;
  width: min(640px, 100%);
  max-height: min(88dvh, 760px);
  overflow: auto;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(251, 130, 42, 0.16), transparent 55%),
    linear-gradient(165deg, #ffffff 0%, #f5f8fc 48%, #eef3fa 100%);
  border: 1px solid rgba(19, 48, 102, 0.12);
  border-radius: 22px;
  box-shadow: 0 28px 70px rgba(15, 37, 77, 0.28);
  padding: 28px 24px 22px;
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  transition: transform 0.36s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
}
.jt-demo-root.is-open .jt-demo-panel,
.jt-demo-panel.is-open {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.jt-demo-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: rgba(19, 48, 102, 0.06);
  color: #133066;
  font-size: 22px;
  cursor: pointer;
}
.jt-demo-close:hover { background: rgba(19, 48, 102, 0.12); }
.jt-demo-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(251, 130, 42, 0.12);
  border: 1px solid rgba(251, 130, 42, 0.35);
  color: #133066;
  font-size: 13px;
}
.jt-demo-chip strong { color: #FB822A; }
.jt-demo-chip em { font-style: normal; opacity: 0.7; }
.jt-demo-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FB822A;
  box-shadow: 0 0 0 0 rgba(251, 130, 42, 0.5);
  animation: jtDemoPulse 1.6s ease-out infinite;
}
@keyframes jtDemoPulse {
  0% { box-shadow: 0 0 0 0 rgba(251, 130, 42, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(251, 130, 42, 0); }
  100% { box-shadow: 0 0 0 0 rgba(251, 130, 42, 0); }
}
.jt-demo-kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: #FB822A;
}
.jt-demo-panel h2 {
  margin: 6px 0 8px;
  font-size: 1.55rem;
  color: #133066;
  line-height: 1.2;
}
.jt-demo-lead {
  margin: 0 0 18px;
  color: #667085;
  font-size: 0.95rem;
  line-height: 1.45;
}
.jt-demo-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.jt-demo-pill {
  border: 1px solid rgba(19, 48, 102, 0.14);
  background: #fff;
  color: #133066;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.jt-demo-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(251, 130, 42, 0.45);
}
.jt-demo-pill.is-selected {
  background: rgba(19, 48, 102, 0.06);
  border-color: #133066;
}
.jt-demo-pill.is-primary,
.jt-demo-pill.is-selected.is-primary {
  background: #133066;
  color: #fff;
  border-color: #133066;
  box-shadow: 0 8px 20px rgba(19, 48, 102, 0.22);
}
.jt-demo-pill.is-flash {
  animation: jtPillFlash 0.9s ease;
}
@keyframes jtPillFlash {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(251, 130, 42, 0.55); }
  35% { transform: scale(1.08); box-shadow: 0 0 0 10px rgba(251, 130, 42, 0); }
  100% { transform: scale(1); }
}
.jt-demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.jt-demo-field {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #133066;
}
.jt-demo-field.is-full { margin-bottom: 14px; }
.jt-demo-field input,
.jt-demo-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d8dee8;
  border-radius: 12px;
  padding: 11px 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  color: #133066;
  background: #fff;
}
.jt-demo-field input:focus,
.jt-demo-field textarea:focus {
  outline: 2px solid rgba(251, 130, 42, 0.35);
  border-color: #FB822A;
}
.jt-demo-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 13px 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #FB822A 0%, #e56d1a 100%);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(251, 130, 42, 0.28);
}
.jt-demo-submit:hover { filter: brightness(1.04); }
.jt-demo-submit:disabled { opacity: 0.65; cursor: wait; }
.jt-demo-status {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #667085;
}
.jt-demo-status.is-ok { color: #0f7a3a; }
.jt-demo-status.is-error { color: #b42318; }
body.jt-demo-open { overflow: hidden; }
@media (max-width: 768px) {
  .jt-demo-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .jt-demo-panel { padding: 22px 16px 18px; border-radius: 18px; }
  .jt-demo-root { padding: 12px; }
}

