:root {
  --jcy-ai-gold: #d2aa76;
  --jcy-ai-gold-soft: rgba(210, 170, 118, .2);
  --jcy-ai-ink: #07110c;
  --jcy-ai-paper: #f6f1e8;
}

#jcy-ai-tea-advisor-root,
#jcy-ai-tea-advisor-root * {
  box-sizing: border-box;
}

.jcy-ai-shell {
  position: fixed;
  z-index: 88;
  inset: auto 0 0 auto;
  font-family: Inter, "Noto Sans SC", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--jcy-ai-paper);
  -webkit-font-smoothing: antialiased;
}

.jcy-ai-shell button,
.jcy-ai-shell input,
.jcy-ai-shell textarea {
  font: inherit;
}

.jcy-ai-shell button,
.jcy-ai-shell a {
  -webkit-tap-highlight-color: transparent;
}

.jcy-ai-launcher {
  position: fixed;
  right: 24px;
  bottom: 104px;
  z-index: 89;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  padding: 0;
  border: 1px solid rgba(221, 184, 130, .58);
  border-radius: 50%;
  color: #e8c78f;
  background: linear-gradient(145deg, rgba(31, 45, 36, .82), rgba(8, 18, 12, .92));
  box-shadow: 0 18px 48px rgba(0, 0, 0, .34), inset 0 1px rgba(255, 255, 255, .08), 0 0 0 7px rgba(194, 151, 92, .045);
  backdrop-filter: blur(22px) saturate(130%);
  -webkit-backdrop-filter: blur(22px) saturate(130%);
  cursor: pointer;
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), border-color .4s ease, box-shadow .4s ease, opacity .3s ease;
  animation: jcy-ai-breathe 4.2s ease-in-out infinite;
}

.jcy-ai-launcher:hover {
  transform: translateY(-3px) scale(1.045);
  border-color: rgba(232, 198, 144, .82);
  box-shadow: 0 22px 55px rgba(0, 0, 0, .42), inset 0 1px rgba(255, 255, 255, .11), 0 0 28px rgba(203, 163, 102, .15);
}

.jcy-ai-launcher:focus-visible,
.jcy-ai-shell button:focus-visible,
.jcy-ai-shell a:focus-visible,
.jcy-ai-shell input:focus-visible,
.jcy-ai-shell textarea:focus-visible {
  outline: 2px solid rgba(232, 198, 144, .9);
  outline-offset: 3px;
}

.jcy-ai-launcher-rings {
  position: absolute;
  inset: -8px;
  border: 1px solid rgba(210, 170, 118, .14);
  border-radius: inherit;
  animation: jcy-ai-ring 3.2s ease-out infinite;
  pointer-events: none;
}

.jcy-ai-launcher-icon {
  display: grid;
  place-items: center;
  transition: transform .45s ease;
}

.jcy-ai-launcher:hover .jcy-ai-launcher-icon {
  transform: rotate(-5deg) scale(1.07);
}

.jcy-ai-launcher-label {
  position: absolute;
  right: 78px;
  top: 50%;
  width: max-content;
  padding: 8px 12px;
  border: 1px solid rgba(210, 170, 118, .2);
  border-radius: 999px;
  color: rgba(250, 244, 233, .82);
  background: rgba(8, 17, 12, .78);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  backdrop-filter: blur(16px);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  opacity: .88;
  transform: translateY(-50%);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
}

.jcy-ai-launcher:hover .jcy-ai-launcher-label {
  opacity: 1;
  transform: translate(-3px, -50%);
}

.jcy-ai-shell.is-open .jcy-ai-launcher {
  opacity: 0;
  transform: translateY(8px) scale(.88);
  pointer-events: none;
  animation: none;
}

.jcy-ai-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(438px, calc(100vw - 48px));
  height: min(740px, calc(100dvh - 48px));
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(208, 170, 118, .28);
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 3%, rgba(187, 145, 79, .15), transparent 31%),
    radial-gradient(circle at 5% 55%, rgba(48, 90, 63, .12), transparent 40%),
    linear-gradient(155deg, rgba(14, 25, 18, .965), rgba(5, 12, 8, .97));
  box-shadow: 0 32px 100px rgba(0, 0, 0, .48), inset 0 1px rgba(255, 255, 255, .055);
  backdrop-filter: blur(30px) saturate(125%);
  -webkit-backdrop-filter: blur(30px) saturate(125%);
  opacity: 0;
  transform: translateY(24px) scale(.94);
  transform-origin: 100% 100%;
  pointer-events: none;
  visibility: hidden;
  transition: opacity .4s ease, transform .4s cubic-bezier(.16, 1, .3, 1), visibility 0s linear .4s;
}

.jcy-ai-panel::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0 auto auto 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(239, 208, 161, .55), transparent);
  opacity: .7;
  pointer-events: none;
}

.jcy-ai-shell.is-open .jcy-ai-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s;
}

body.jcy-ai-open .contact-fab,
body.jcy-ai-open .contact-footer-fab {
  opacity: 0 !important;
  pointer-events: none !important;
}

body.cart-open .jcy-ai-shell {
  opacity: 0 !important;
  visibility: hidden;
  pointer-events: none !important;
}

@media (min-width: 981px) {
  .product-page .jcy-ai-launcher {
    right: auto;
    bottom: 24px;
    left: 24px;
  }

  .product-page .jcy-ai-launcher-label {
    right: auto;
    left: 78px;
  }

  .product-page .jcy-ai-panel {
    right: auto;
    left: 24px;
    transform-origin: 0 100%;
  }
}

.jcy-ai-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 13px 14px 11px 17px;
  border-bottom: 1px solid rgba(255, 255, 255, .065);
  background: rgba(255, 255, 255, .016);
}

.jcy-ai-header-left {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.jcy-ai-header-left > span:last-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.jcy-ai-header-left strong {
  overflow: hidden;
  color: #f8f2e8;
  font-family: "Noto Serif SC", "Songti SC", Georgia, serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .055em;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jcy-ai-header-left small {
  overflow: hidden;
  color: rgba(240, 233, 221, .47);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jcy-ai-header-mark,
.jcy-ai-welcome-mark,
.jcy-ai-message-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: #d8b57f;
}

.jcy-ai-header-mark {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(210, 170, 118, .3);
  border-radius: 50%;
  background: rgba(210, 170, 118, .06);
}

.jcy-ai-back,
.jcy-ai-header-actions button {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  color: rgba(248, 242, 232, .66);
  background: transparent;
  cursor: pointer;
  transition: color .25s ease, border-color .25s ease, background .25s ease, transform .25s ease;
}

.jcy-ai-back:hover,
.jcy-ai-header-actions button:hover {
  border-color: rgba(210, 170, 118, .23);
  color: #f0cb92;
  background: rgba(210, 170, 118, .07);
  transform: translateY(-1px);
}

.jcy-ai-header-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 1px;
  margin-left: 8px;
}

.jcy-ai-mode-line {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .045);
  color: rgba(243, 236, 224, .49);
  background: rgba(0, 0, 0, .12);
  font-size: 9px;
  letter-spacing: .06em;
}

.jcy-ai-mode-line i,
.jcy-ai-response-time i {
  width: 5px;
  height: 5px;
  margin-right: 7px;
  border-radius: 50%;
  background: #c8a36f;
  box-shadow: 0 0 10px rgba(200, 163, 111, .6);
}

.jcy-ai-mode-line i.is-online {
  background: #7eb792;
  box-shadow: 0 0 10px rgba(126, 183, 146, .7);
}

.jcy-ai-mode-line em {
  margin-left: auto;
  color: rgba(243, 236, 224, .28);
  font-style: normal;
}

.jcy-ai-main {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.jcy-ai-scroll {
  scrollbar-color: rgba(210, 170, 118, .24) transparent;
  scrollbar-width: thin;
}

.jcy-ai-scroll::-webkit-scrollbar { width: 5px; }
.jcy-ai-scroll::-webkit-scrollbar-track { background: transparent; }
.jcy-ai-scroll::-webkit-scrollbar-thumb { border-radius: 20px; background: rgba(210, 170, 118, .2); }

.jcy-ai-welcome,
.jcy-ai-selector,
.jcy-ai-support {
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 28px 22px 24px;
}

.jcy-ai-welcome {
  animation: jcy-ai-content-in .52s ease both;
}

.jcy-ai-welcome-mark {
  position: relative;
  width: 56px;
  height: 56px;
  margin-bottom: 23px;
  border: 1px solid rgba(210, 170, 118, .36);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(210, 170, 118, .1), rgba(255, 255, 255, .025));
  box-shadow: inset 0 1px rgba(255, 255, 255, .06), 0 12px 36px rgba(0, 0, 0, .17);
}

.jcy-ai-welcome-mark span {
  position: absolute;
  right: -7px;
  bottom: -5px;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border: 2px solid #0b1710;
  border-radius: 50%;
  color: #1b1a14;
  background: #d6b278;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .04em;
}

.jcy-ai-welcome-greeting {
  margin: 0 0 5px;
  color: rgba(244, 237, 225, .63);
  font-size: 14px;
  letter-spacing: .035em;
}

.jcy-ai-welcome h2,
.jcy-ai-selector-question h2,
.jcy-ai-support h2 {
  margin: 0;
  color: #fbf5eb;
  font-family: "Noto Serif SC", "Songti SC", Georgia, serif;
  font-weight: 400;
}

.jcy-ai-welcome h2 {
  font-size: 29px;
  letter-spacing: .03em;
}

.jcy-ai-help-title,
.jcy-ai-quick-title {
  margin: 25px 0 11px;
  color: rgba(241, 233, 220, .45);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.jcy-ai-abilities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 14px;
}

.jcy-ai-abilities span {
  display: flex;
  align-items: center;
  color: rgba(246, 239, 228, .69);
  font-size: 11px;
  line-height: 1.4;
}

.jcy-ai-abilities i {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 15px;
  height: 15px;
  margin-right: 7px;
  border: 1px solid rgba(210, 170, 118, .26);
  border-radius: 50%;
  color: #d4ad75;
  font-size: 8px;
  font-style: normal;
}

.jcy-ai-selector-entry {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  width: 100%;
  margin-top: 22px;
  padding: 17px 16px;
  overflow: hidden;
  border: 1px solid rgba(210, 170, 118, .25);
  border-radius: 17px;
  color: inherit;
  text-align: left;
  background: linear-gradient(120deg, rgba(210, 170, 118, .095), rgba(255, 255, 255, .02));
  box-shadow: inset 0 1px rgba(255, 255, 255, .035);
  cursor: pointer;
  transition: transform .38s ease, border-color .38s ease, background .38s ease, box-shadow .38s ease;
}

.jcy-ai-selector-entry::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(240, 210, 166, .09), transparent);
  transform: skewX(-18deg);
  transition: left .7s ease;
}

.jcy-ai-selector-entry:hover {
  transform: translateY(-3px);
  border-color: rgba(222, 185, 132, .47);
  background: linear-gradient(120deg, rgba(210, 170, 118, .14), rgba(255, 255, 255, .035));
  box-shadow: 0 15px 35px rgba(0, 0, 0, .2), inset 0 1px rgba(255, 255, 255, .05);
}

.jcy-ai-selector-entry:hover::after { left: 130%; }

.jcy-ai-selector-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-right: 12px;
  border: 1px solid rgba(210, 170, 118, .27);
  border-radius: 50%;
  color: #dbb67e;
  background: rgba(0, 0, 0, .13);
}

.jcy-ai-selector-entry > span:nth-child(2) {
  display: grid;
  gap: 5px;
}

.jcy-ai-selector-entry small {
  color: #e5c38e;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
}

.jcy-ai-selector-entry strong {
  color: rgba(245, 237, 224, .57);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.55;
}

.jcy-ai-selector-entry > b {
  grid-column: 2;
  margin-top: 12px;
  color: #f0d09b;
  font-size: 11px;
  font-weight: 500;
}

.jcy-ai-selector-entry > b i { margin-left: 8px; font-style: normal; }

.jcy-ai-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.jcy-ai-quick-grid button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .075);
  border-radius: 11px;
  color: rgba(246, 239, 228, .66);
  background: rgba(255, 255, 255, .022);
  font-size: 10px;
  cursor: pointer;
  transition: color .28s ease, border-color .28s ease, background .28s ease, transform .28s ease;
}

.jcy-ai-quick-grid button:last-child { grid-column: span 2; }
.jcy-ai-quick-grid button span { color: rgba(210, 170, 118, .54); }
.jcy-ai-quick-grid button:hover { color: #f6ddb3; border-color: rgba(210, 170, 118, .3); background: rgba(210, 170, 118, .065); transform: translateY(-2px); }

.jcy-ai-disclaimer {
  margin: 18px 0 0;
  color: rgba(241, 233, 221, .27);
  font-size: 8px;
  line-height: 1.6;
  text-align: center;
}

.jcy-ai-chat-list {
  position: absolute;
  inset: 0 0 88px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 20px 17px 28px;
}

.jcy-ai-empty {
  display: grid;
  place-items: center;
  max-width: 270px;
  margin: 100px auto 0;
  color: rgba(210, 170, 118, .55);
  text-align: center;
  animation: jcy-ai-content-in .5s ease both;
}

.jcy-ai-empty p {
  margin-top: 15px;
  color: rgba(241, 233, 221, .45);
  font-family: "Noto Serif SC", "Songti SC", Georgia, serif;
  font-size: 13px;
  line-height: 1.8;
}

.jcy-ai-message {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 18px;
  animation: jcy-ai-message-in .38s ease both;
}

.jcy-ai-message-user { justify-content: flex-end; }

.jcy-ai-message-mark {
  width: 29px;
  height: 29px;
  margin-top: 1px;
  border: 1px solid rgba(210, 170, 118, .25);
  border-radius: 10px;
  background: rgba(210, 170, 118, .055);
}

.jcy-ai-message-content {
  min-width: 0;
  max-width: calc(100% - 39px);
}

.jcy-ai-message-user .jcy-ai-message-content { max-width: 82%; }

.jcy-ai-message-content > p {
  margin: 0;
  white-space: pre-line;
}

.jcy-ai-message-user .jcy-ai-message-content > p {
  padding: 11px 14px;
  border: 1px solid rgba(210, 170, 118, .18);
  border-radius: 16px 16px 4px 16px;
  color: rgba(255, 248, 237, .86);
  background: linear-gradient(135deg, rgba(177, 133, 77, .25), rgba(101, 78, 49, .18));
  font-size: 12px;
  line-height: 1.65;
}

.jcy-ai-message-assistant .jcy-ai-message-content > p {
  padding: 5px 2px 2px;
  color: rgba(249, 243, 233, .75);
  font-size: 12px;
  line-height: 1.85;
}

.jcy-ai-analysing,
.jcy-ai-selecting {
  display: flex;
  align-items: center;
  min-height: 32px;
  color: rgba(245, 236, 221, .51);
  font-size: 10px;
  letter-spacing: .06em;
}

.jcy-ai-analysing i,
.jcy-ai-selecting i {
  width: 14px;
  height: 1px;
  margin-right: 9px;
  overflow: hidden;
  background: linear-gradient(90deg, transparent, #d3ae77, transparent);
  animation: jcy-ai-thinking 1.2s ease-in-out infinite;
}

.jcy-ai-message-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 25px;
  margin-top: 7px;
  opacity: .55;
  transition: opacity .25s ease;
}

.jcy-ai-message:hover .jcy-ai-message-actions { opacity: 1; }

.jcy-ai-message-actions button {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 25px;
  height: 25px;
  padding: 0 6px;
  border: 0;
  border-radius: 7px;
  color: rgba(239, 231, 218, .46);
  background: transparent;
  font-size: 11px;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}

.jcy-ai-message-actions button span { font-size: 8px; }
.jcy-ai-message-actions button:hover,
.jcy-ai-message-actions button.is-active { color: #e7c38b; background: rgba(210, 170, 118, .075); }

.jcy-ai-products {
  display: grid;
  gap: 12px;
  margin-top: 13px;
}

.jcy-ai-product {
  overflow: hidden;
  border: 1px solid rgba(210, 170, 118, .17);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015));
  box-shadow: 0 14px 35px rgba(0, 0, 0, .15), inset 0 1px rgba(255, 255, 255, .025);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.jcy-ai-product:hover { transform: translateY(-3px); border-color: rgba(210, 170, 118, .34); box-shadow: 0 18px 42px rgba(0, 0, 0, .24), 0 0 20px rgba(210, 170, 118, .04); }

.jcy-ai-product-image {
  position: relative;
  display: block;
  height: 156px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.jcy-ai-product-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(4, 10, 6, .65));
}

.jcy-ai-product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.jcy-ai-product:hover .jcy-ai-product-image img { transform: scale(1.045); }

.jcy-ai-product-image > span {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 10px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  color: rgba(255, 255, 255, .81);
  background: rgba(7, 14, 9, .48);
  backdrop-filter: blur(12px);
  font-size: 8px;
  letter-spacing: .08em;
}

.jcy-ai-product-image i { margin-left: 4px; font-style: normal; }
.jcy-ai-product-copy { padding: 14px; }

.jcy-ai-product-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.jcy-ai-product-heading small { display: block; margin-bottom: 3px; color: rgba(231, 217, 197, .37); font-size: 8px; letter-spacing: .06em; }
.jcy-ai-product-heading h4 { margin: 0; color: #f4e9d8; font-family: "Noto Serif SC", "Songti SC", Georgia, serif; font-size: 15px; font-weight: 500; }
.jcy-ai-product-heading > strong { flex: 0 0 auto; color: #dfbb83; font-family: Georgia, serif; font-size: 13px; font-weight: 500; }
.jcy-ai-product-heading em { color: rgba(235, 221, 200, .35); font-family: inherit; font-size: 7px; font-style: normal; }
.jcy-ai-inventory { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; color: #9fc8aa; font-size: 8px; font-weight: 700; letter-spacing: .03em; }
.jcy-ai-inventory.is-out { color: #d59b8d; }
.jcy-ai-flavor { margin: 7px 0 11px !important; padding: 0 !important; color: rgba(240, 230, 214, .5) !important; font-size: 9px !important; line-height: 1.5 !important; }

.jcy-ai-radar { display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid rgba(255, 255, 255, .055); border-radius: 12px; background: rgba(0, 0, 0, .12); }
.jcy-ai-radar svg { width: 72px; height: 72px; overflow: visible; }
.jcy-ai-radar svg line { stroke: rgba(226, 205, 175, .14); stroke-width: .7; }
.jcy-ai-radar-grid { fill: none; stroke: rgba(226, 205, 175, .14); stroke-width: .8; }
.jcy-ai-radar-value { fill: rgba(210, 170, 118, .18); stroke: #d0a86f; stroke-width: 1.2; filter: drop-shadow(0 0 5px rgba(210, 170, 118, .18)); }
.jcy-ai-radar-values { display: grid; gap: 5px; }
.jcy-ai-radar-values span { display: flex; align-items: baseline; justify-content: space-between; color: rgba(239, 228, 211, .42); font-size: 8px; }
.jcy-ai-radar-values b { color: #d7b27b; font-family: Georgia, serif; font-size: 11px; font-weight: 400; }
.jcy-ai-reason { display: flex; gap: 6px; margin: 10px 0 0 !important; padding: 0 !important; color: rgba(244, 233, 216, .58) !important; font-size: 8px !important; line-height: 1.65 !important; }
.jcy-ai-reason svg { flex: 0 0 auto; color: #cfa66d; }
.jcy-ai-brew { display: grid; gap: 3px; margin: 9px 0 0 !important; padding: 9px 10px !important; border-radius: 10px; color: rgba(241, 230, 214, .48) !important; background: rgba(210, 170, 118, .045); font-size: 8px !important; line-height: 1.55 !important; }
.jcy-ai-brew b { color: rgba(225, 190, 137, .74); font-size: 8px; font-weight: 500; letter-spacing: .06em; }
.jcy-ai-product-link { display: flex; align-items: center; justify-content: space-between; margin-top: 11px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .06); color: #e5c28c; font-size: 9px; text-decoration: none; }
.jcy-ai-product-link span { transition: transform .25s ease; }
.jcy-ai-product-link:hover span { transform: translateX(4px); }

.jcy-ai-composer-wrap {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 9px 14px 10px;
  border-top: 1px solid rgba(255, 255, 255, .055);
  background: linear-gradient(180deg, rgba(7, 15, 10, .72), rgba(7, 15, 10, .98) 28%);
  backdrop-filter: blur(18px);
}

.jcy-ai-composer {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  padding: 7px 7px 7px 12px;
  border: 1px solid rgba(210, 170, 118, .2);
  border-radius: 15px;
  background: rgba(255, 255, 255, .035);
  box-shadow: inset 0 1px rgba(255, 255, 255, .025);
  transition: border-color .25s ease, box-shadow .25s ease;
}

.jcy-ai-composer:focus-within { border-color: rgba(214, 175, 119, .46); box-shadow: 0 0 0 3px rgba(210, 170, 118, .045), inset 0 1px rgba(255, 255, 255, .035); }
.jcy-ai-composer textarea { flex: 1; min-height: 30px; max-height: 94px; padding: 7px 0 5px; resize: none; border: 0; outline: 0; color: rgba(250, 244, 235, .88); background: transparent; font-size: 11px; line-height: 1.5; }
.jcy-ai-composer textarea::placeholder { color: rgba(240, 230, 214, .31); }
.jcy-ai-composer > button { display: grid; flex: 0 0 auto; place-items: center; width: 33px; height: 33px; padding: 0; border: 1px solid rgba(234, 201, 150, .35); border-radius: 11px; color: #191710; background: linear-gradient(145deg, #e2c18e, #bd9159); box-shadow: 0 7px 18px rgba(0, 0, 0, .2); cursor: pointer; transition: transform .25s ease, opacity .25s ease, box-shadow .25s ease; }
.jcy-ai-composer > button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .28), 0 0 14px rgba(210, 170, 118, .12); }
.jcy-ai-composer > button:disabled { opacity: .32; cursor: default; }
.jcy-ai-composer > button span { font-size: 16px; transform: translateY(-1px); }
.jcy-ai-composer-meta { display: flex; align-items: center; justify-content: space-between; min-height: 19px; padding: 4px 3px 0; color: rgba(240, 231, 217, .25); font-size: 7px; letter-spacing: .05em; }
.jcy-ai-composer-meta button { display: flex; align-items: center; gap: 4px; padding: 0; border: 0; color: rgba(222, 187, 135, .55); background: transparent; font-size: 8px; cursor: pointer; }
.jcy-ai-composer-meta svg { width: 13px; height: 13px; }

.jcy-ai-selector { animation: jcy-ai-content-in .45s ease both; }
.jcy-ai-selector-top { display: flex; align-items: center; justify-content: space-between; color: rgba(238, 225, 205, .35); }
.jcy-ai-selector-top small { color: #d6ad73; font-size: 8px; letter-spacing: .18em; }
.jcy-ai-selector-top span { font-family: Georgia, serif; font-size: 9px; }
.jcy-ai-selector-progress { height: 1px; margin: 13px 0 29px; overflow: hidden; background: rgba(255, 255, 255, .075); }
.jcy-ai-selector-progress i { display: block; height: 100%; background: linear-gradient(90deg, #b78b54, #e4c796); box-shadow: 0 0 10px rgba(210, 170, 118, .34); transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.jcy-ai-selector-question { min-height: 99px; animation: jcy-ai-question-in .4s ease both; }
.jcy-ai-selector-question h2 { font-size: 24px; line-height: 1.35; }
.jcy-ai-selector-question p { margin: 10px 0 0; color: rgba(242, 233, 219, .45); font-size: 10px; line-height: 1.6; }
.jcy-ai-selector-options { display: grid; gap: 9px; }
.jcy-ai-selector-options button { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; width: 100%; min-height: 62px; padding: 10px 13px; border: 1px solid rgba(255, 255, 255, .075); border-radius: 14px; color: inherit; text-align: left; background: rgba(255, 255, 255, .02); cursor: pointer; transition: transform .3s ease, border-color .3s ease, background .3s ease, box-shadow .3s ease; }
.jcy-ai-selector-options button:hover,
.jcy-ai-selector-options button.is-selected { transform: translateX(3px); border-color: rgba(210, 170, 118, .38); background: linear-gradient(90deg, rgba(210, 170, 118, .1), rgba(255, 255, 255, .025)); box-shadow: 0 10px 26px rgba(0, 0, 0, .14); }
.jcy-ai-option-index { color: rgba(214, 179, 126, .47); font-family: Georgia, serif; font-size: 10px; }
.jcy-ai-selector-options button > span:nth-child(2) { display: grid; gap: 3px; }
.jcy-ai-selector-options b { color: rgba(249, 241, 229, .81); font-family: "Noto Serif SC", "Songti SC", Georgia, serif; font-size: 13px; font-weight: 500; }
.jcy-ai-selector-options small { color: rgba(239, 229, 212, .37); font-size: 8px; }
.jcy-ai-selector-options button > i { color: rgba(210, 170, 118, .47); font-size: 13px; font-style: normal; transition: transform .25s ease; }
.jcy-ai-selector-options button:hover > i { transform: translateX(3px); }
.jcy-ai-selecting { justify-content: center; margin: 13px 0 -4px; }

.jcy-ai-support { animation: jcy-ai-content-in .45s ease both; }
.jcy-ai-support-eyebrow { color: #d5ad73; font-size: 8px; letter-spacing: .2em; }
.jcy-ai-support h2 { margin-top: 7px; font-size: 28px; }
.jcy-ai-support-intro { margin: 12px 0 0; color: rgba(243, 233, 218, .56); font-size: 10px; line-height: 1.75; }
.jcy-ai-response-time { display: flex; align-items: center; margin: 11px 0 20px; color: rgba(231, 199, 151, .65); font-size: 9px; }
.jcy-ai-response-time i { flex: 0 0 auto; }
.jcy-ai-support-form { display: grid; gap: 11px; padding: 16px; border: 1px solid rgba(210, 170, 118, .15); border-radius: 17px; background: rgba(255, 255, 255, .025); }
.jcy-ai-support-form label { display: grid; gap: 6px; }
.jcy-ai-support-form label > span { color: rgba(239, 224, 203, .48); font-size: 8px; letter-spacing: .08em; }
.jcy-ai-support-form input,
.jcy-ai-support-form textarea { width: 100%; padding: 10px 11px; resize: none; border: 1px solid rgba(255, 255, 255, .075); border-radius: 10px; outline: 0; color: rgba(251, 244, 234, .82); background: rgba(0, 0, 0, .15); font-size: 10px; transition: border-color .25s ease, background .25s ease; }
.jcy-ai-support-form input:focus,
.jcy-ai-support-form textarea:focus { border-color: rgba(210, 170, 118, .36); background: rgba(0, 0, 0, .22); }
.jcy-ai-support-form input::placeholder,
.jcy-ai-support-form textarea::placeholder { color: rgba(240, 231, 217, .25); }
.jcy-ai-form-error { margin: 0; color: #d99d89; font-size: 8px; line-height: 1.5; }
.jcy-ai-form-success { display: grid; gap: 3px; padding: 9px 10px; border: 1px solid rgba(125, 184, 145, .2); border-radius: 9px; color: #a5c9b1; background: rgba(83, 145, 104, .08); font-size: 8px; }
.jcy-ai-form-success b { font-weight: 500; }
.jcy-ai-support-submit { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 39px; padding: 0 13px; border: 1px solid rgba(228, 195, 143, .4); border-radius: 11px; color: #211d15; background: linear-gradient(135deg, #e3c391, #c39860); font-size: 10px; font-weight: 600; cursor: pointer; transition: transform .3s ease, box-shadow .3s ease, opacity .3s ease; }
.jcy-ai-support-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0, 0, 0, .2); }
.jcy-ai-support-submit:disabled { opacity: .55; cursor: default; }
.jcy-ai-support-channels { position: relative; margin-top: 21px; }
.jcy-ai-support-channels > p { margin: 0 0 9px; color: rgba(239, 225, 204, .4); font-size: 8px; letter-spacing: .06em; }
.jcy-ai-support-channels > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.jcy-ai-support-channels a,
.jcy-ai-support-channels > div > button { display: grid; justify-items: start; min-width: 0; min-height: 73px; padding: 10px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .07); border-radius: 12px; color: inherit; text-decoration: none; background: rgba(255, 255, 255, .02); cursor: pointer; transition: transform .3s ease, border-color .3s ease, background .3s ease; }
.jcy-ai-support-channels a:hover,
.jcy-ai-support-channels > div > button:hover { transform: translateY(-2px); border-color: rgba(210, 170, 118, .3); background: rgba(210, 170, 118, .055); }
.jcy-ai-channel-icon { display: grid; place-items: center; width: 24px; height: 24px; margin-bottom: 7px; border: 1px solid rgba(210, 170, 118, .22); border-radius: 8px; color: #d5ad72; font-size: 9px; }
.jcy-ai-support-channels b { overflow: hidden; max-width: 100%; color: rgba(247, 238, 224, .7); font-size: 8px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.jcy-ai-support-channels small { overflow: hidden; max-width: 100%; margin-top: 3px; color: rgba(239, 228, 211, .3); font-size: 6px; text-overflow: ellipsis; white-space: nowrap; }
.jcy-ai-wechat-qr { position: absolute; z-index: 4; right: 0; bottom: 0; left: 0; display: grid; justify-items: center; margin: 0; padding: 16px; border: 1px solid rgba(210, 170, 118, .25); border-radius: 15px; background: rgba(8, 16, 11, .98); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); animation: jcy-ai-content-in .3s ease both; }
.jcy-ai-wechat-qr button { position: absolute; top: 7px; right: 7px; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; color: rgba(247, 238, 224, .65); background: rgba(0, 0, 0, .35); cursor: pointer; }
.jcy-ai-wechat-qr img { width: 156px; height: 150px; border-radius: 8px; object-fit: cover; background: #fff; }
.jcy-ai-wechat-qr figcaption { margin-top: 8px; color: rgba(241, 228, 209, .56); font-size: 8px; }

@keyframes jcy-ai-breathe {
  0%, 100% { box-shadow: 0 18px 48px rgba(0, 0, 0, .34), inset 0 1px rgba(255, 255, 255, .08), 0 0 0 7px rgba(194, 151, 92, .045); }
  50% { box-shadow: 0 18px 48px rgba(0, 0, 0, .34), inset 0 1px rgba(255, 255, 255, .08), 0 0 22px rgba(194, 151, 92, .12); }
}

@keyframes jcy-ai-ring {
  0% { opacity: 0; transform: scale(.86); }
  28% { opacity: .75; }
  100% { opacity: 0; transform: scale(1.14); }
}

@keyframes jcy-ai-content-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes jcy-ai-message-in {
  from { opacity: 0; transform: translateY(7px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes jcy-ai-question-in {
  from { opacity: 0; transform: translateX(9px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes jcy-ai-thinking {
  0%, 100% { opacity: .35; transform: scaleX(.7); }
  50% { opacity: 1; transform: scaleX(1.2); }
}

@media (max-width: 700px) {
  .jcy-ai-launcher { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); width: 54px; height: 54px; }
  .jcy-ai-launcher-label { display: none; }
  .jcy-ai-panel { right: 8px; bottom: 8px; width: calc(100vw - 16px); height: min(760px, calc(100dvh - 16px)); min-height: 0; border-radius: 20px; }
  .jcy-ai-header { min-height: 64px; padding-left: 13px; }
  .jcy-ai-mode-line { padding-inline: 14px; }
  .jcy-ai-mode-line em { display: none; }
  .jcy-ai-welcome,
  .jcy-ai-selector,
  .jcy-ai-support { padding: 23px 17px 21px; }
  .jcy-ai-welcome h2 { font-size: 26px; }
  .jcy-ai-abilities { gap: 7px 9px; }
  .jcy-ai-selector-question h2 { font-size: 22px; }
  .jcy-ai-chat-list { padding-inline: 13px; }
}

@media (max-width: 980px) {
  .product-page .jcy-ai-shell {
    display: none;
  }
}

/* Reading and purchase flows keep the content unobstructed on touch devices. */
@media (max-width: 1120px) {
  .journal-page .jcy-ai-shell,
  .article-page .jcy-ai-shell {
    display: none;
  }
}

@media (max-width: 380px) {
  .jcy-ai-header-left small { display: none; }
  .jcy-ai-welcome { padding-inline: 15px; }
  .jcy-ai-abilities { grid-template-columns: 1fr; }
  .jcy-ai-quick-grid { grid-template-columns: 1fr; }
  .jcy-ai-quick-grid button:last-child { grid-column: auto; }
  .jcy-ai-support-channels > div { grid-template-columns: 1fr; }
  .jcy-ai-support-channels a,
  .jcy-ai-support-channels > div > button { min-height: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  .jcy-ai-shell *,
  .jcy-ai-shell *::before,
  .jcy-ai-shell *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
