/* HeiGo AI live layer · Test 3
   Purple design system: #7552ad / #5a3e9c, 14-22px radii, hairline borders, soft shadows.
   All new surfaces are flat; no nested cards, no glass, no flags. */

html[data-test3] .t3-s1-bubble {
  position: fixed;
  z-index: 1400;
  width: min(320px, 84vw);
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #ece4f4;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(90, 60, 140, .14);
  padding: 13px 13px 8px;
  text-align: left;
  pointer-events: none;
  transform-origin: 50% 100%;
  animation: t3s1in 160ms ease-out both;
}
html[data-test3] .t3-s1-bubble[data-placement="below"] { transform-origin: 50% 0; }
@keyframes t3s1in {
  from { opacity: 0; transform: translateY(4px) scale(.985); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-test3] .t3-s1-bubble { animation: none; }
}
html[data-test3] .t3-s1-original {
  font-size: 13px;
  line-height: 1.45;
  color: #7b7287;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}
html[data-test3] .t3-s1-translation {
  font-size: 17px;
  font-weight: 550;
  line-height: 1.45;
  color: #221a2e;
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}
html[data-test3] .t3-s1-translation[data-lang="th"] { line-height: 1.6; }
html[data-test3] .t3-s1-translation.is-pending { color: #8a8098; font-weight: 450; }
html[data-test3] .t3-s1-pinyin {
  font-size: 13px;
  line-height: 1.5;
  color: #7552ad;
  margin: 3px 0 0;
  letter-spacing: .01em;
}
html[data-test3] .t3-s1-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 6px;
}
html[data-test3] .t3-s1-actions button {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #5f546e;
  cursor: pointer;
  pointer-events: auto;
}
html[data-test3] .t3-s1-actions button:hover { background: #f5effa; color: #5a3e9c; }
html[data-test3] .t3-s1-actions button:focus-visible { outline: 2px solid #7552ad; outline-offset: 2px; }
html[data-test3] .t3-s1-actions svg { width: 18px; height: 18px; stroke-width: 1.7; }
html[data-test3] .t3-s1-arrow {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #fff;
  border-left: 1px solid #ece4f4;
  border-top: 1px solid #ece4f4;
  transform: rotate(45deg);
  bottom: -6px;
}
html[data-test3] .t3-s1-bubble[data-placement="below"] .t3-s1-arrow {
  bottom: auto;
  top: -6px;
  transform: rotate(225deg);
}
html[data-test3] .t3-s1-retry {
  min-height: 30px;
  padding: 0 10px;
  margin-left: 4px;
  border: 1px solid #ddd0eb;
  border-radius: 8px;
  background: #fff;
  color: #5a3e9c;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  pointer-events: auto;
}

/* Chat entry row: grouped, 8px rhythm, no sticky overlap with the composer. */
html[data-test3] .t3-ai-launch {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  min-height: 44px;
  margin: 2px 0 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
html[data-test3] .t3-ai-launch::-webkit-scrollbar { display: none; }
html[data-test3] .t3-ai-launch button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid #e8e0f2;
  border-radius: 12px;
  background: #fff;
  color: #40364e;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
html[data-test3] .t3-ai-launch button:hover { border-color: #d8c9e9; background: #faf7fd; }
html[data-test3] .t3-ai-launch svg { width: 16px; height: 16px; stroke-width: 1.8; color: #7552ad; }
html[data-test3] .t3-ai-launch .t3-ai-launch-primary { border-color: #7552ad; color: #5a3e9c; }

/* Shared dialog surface */
html[data-test3] .t3-ai-dialog {
  width: min(440px, 94vw);
  max-height: min(86dvh, 760px);
  margin: auto;
  padding: 0;
  border: 1px solid #ece4f4;
  border-radius: 22px;
  background: #fff;
  color: #241b31;
  box-shadow: 0 18px 50px rgba(62, 35, 105, .18);
  overflow: hidden;
}
html[data-test3] .t3-ai-dialog::backdrop { background: rgba(38, 24, 60, .28); }
html[data-test3] .t3-ai-dialog-shell {
  display: flex;
  flex-direction: column;
  max-height: min(86dvh, 760px);
}
html[data-test3] .t3-ai-dialog-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 12px 18px;
  border-bottom: 1px solid #f0eaf6;
}
html[data-test3] .t3-ai-dialog-head > div { flex: 1; min-width: 0; }
html[data-test3] .t3-ai-dialog-head strong { display: block; font-size: 16px; line-height: 1.35; }
html[data-test3] .t3-ai-dialog-head small { display: block; margin-top: 2px; color: #7b7287; font-size: 12px; line-height: 1.45; }
html[data-test3] .t3-ai-close {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 12px; background: #f8f4fc; color: #4d435c; cursor: pointer;
}
html[data-test3] .t3-ai-close:hover { background: #f1e9f9; }
html[data-test3] .t3-ai-body { padding: 16px 18px 18px; overflow-y: auto; }
html[data-test3] .t3-ai-label {
  display: block;
  margin: 0 0 7px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #7b7287;
}
html[data-test3] .t3-ai-field {
  width: 100%;
  box-sizing: border-box;
  min-height: 84px;
  resize: vertical;
  padding: 11px 12px;
  border: 1px solid #e4daea;
  border-radius: 12px;
  background: #fff;
  color: #241b31;
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
}
html[data-test3] .t3-ai-field:focus { outline: 2px solid #7552ad; outline-offset: 0; border-color: #7552ad; }
html[data-test3] .t3-ai-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
html[data-test3] .t3-ai-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #e4daea;
  border-radius: 12px;
  background: #fff;
  color: #40364e;
  font: inherit;
  font-size: 14px;
  font-weight: 620;
  cursor: pointer;
}
html[data-test3] .t3-ai-button:hover { background: #faf7fd; }
html[data-test3] .t3-ai-button.primary { border-color: #7552ad; background: #7552ad; color: #fff; }
html[data-test3] .t3-ai-button.primary:hover { background: #6745a0; }
html[data-test3] .t3-ai-button[disabled] { opacity: .55; cursor: default; }
html[data-test3] .t3-ai-button svg { width: 16px; height: 16px; stroke-width: 1.8; }
html[data-test3] .t3-ai-hint { margin: 8px 0 0; color: #8a8098; font-size: 12px; line-height: 1.55; }
html[data-test3] .t3-ai-status { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: #7552ad; }
html[data-test3] .t3-ai-status.error { color: #a33c54; }
html[data-test3] .t3-ai-status .t3-ai-retry {
  min-height: 32px; margin-left: 6px; padding: 0 10px;
  border: 1px solid #ddd0eb; border-radius: 8px; background: #fff; color: #5a3e9c; cursor: pointer;
}

/* Mode switch and language picker */
html[data-test3] .t3-s2-modes {
  display: flex;
  gap: 6px;
  padding: 4px;
  border-radius: 12px;
  background: #f7f3fb;
}
html[data-test3] .t3-s2-modes button {
  flex: 1;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #645a72;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
html[data-test3] .t3-s2-modes button[aria-pressed="true"] { background: #fff; color: #5a3e9c; box-shadow: 0 1px 4px rgba(90, 60, 140, .1); }
html[data-test3] .t3-lang-pick {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
html[data-test3] .t3-lang-pick select {
  flex: 1;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid #e4daea;
  border-radius: 11px;
  background: #fff;
  color: #241b31;
  font: inherit;
  font-size: 14px;
}
html[data-test3] .t3-avatar-initial {
  flex: 0 0 32px;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #ece4f8;
  color: #5a3e9c;
  font-size: 13px;
  font-weight: 700;
}
html[data-test3] .t3-ai-langs { display: grid; gap: 8px; margin-top: 12px; }
html[data-test3] .t3-ai-langs button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 6px 12px;
  border: 1px solid #eee6f5;
  border-radius: 12px;
  background: #fff;
  color: #2d233b;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
html[data-test3] .t3-ai-langs button[aria-pressed="true"] { border-color: #7552ad; background: #faf7fd; }
html[data-test3] .t3-ai-langs small { margin-left: auto; color: #8a8098; font-size: 11px; font-weight: 500; }

/* S2 output: flat editorial block, no nested cards */
html[data-test3] .t3-s2-out { margin-top: 16px; padding-top: 14px; border-top: 1px solid #f0eaf6; }
html[data-test3] .t3-s2-intent { margin: 0 0 4px; color: #7b7287; font-size: 12px; letter-spacing: .03em; text-transform: uppercase; }
html[data-test3] .t3-s2-zh {
  margin: 0;
  color: #1f172a;
  font-size: clamp(25px, 7vw, 32px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .01em;
  overflow-wrap: anywhere;
}
html[data-test3] .t3-s2-pinyin { margin: 7px 0 0; color: #7552ad; font-size: 15px; line-height: 1.5; }
html[data-test3] .t3-s2-source { margin: 8px 0 0; color: #6f6679; font-size: 13px; line-height: 1.55; }
html[data-test3] .t3-s2-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
html[data-test3] .t3-s2-sub {
  margin: 18px 0 8px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #7b7287;
}
html[data-test3] .t3-s2-replies { display: grid; gap: 8px; }
html[data-test3] .t3-s2-reply {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  padding: 10px 0;
  border-top: 1px solid #f4eef9;
}
html[data-test3] .t3-s2-reply:first-child { border-top: 0; }
html[data-test3] .t3-s2-reply .t3-s2-chip {
  grid-row: span 2;
  align-self: start;
  min-width: 62px;
  padding: 5px 9px;
  border-radius: 8px;
  background: #f3edfa;
  color: #5a3e9c;
  font-size: 12px;
  font-weight: 650;
  text-align: center;
}
html[data-test3] .t3-s2-reply strong { font-size: 16px; font-weight: 650; line-height: 1.45; }
html[data-test3] .t3-s2-reply small { color: #7b7287; font-size: 13px; line-height: 1.5; }
html[data-test3] .t3-ai-disclosure { margin: 12px 0 0; color: #93899f; font-size: 11px; line-height: 1.5; }
html[data-test3] .t3-s2-slogan {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid #f0eaf6;
  color: #5a3e9c;
  font-size: 12px;
  line-height: 1.6;
}

/* Hugo dock: 56px, non-blocking, hidden outside home/explore/chat */
html[data-test3] .t3-hugo-dock {
  position: fixed;
  right: 12px;
  bottom: calc(88px + env(safe-area-inset-bottom));
  z-index: 1100;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid #e7ddf2;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 18px rgba(90, 60, 140, .14);
  cursor: pointer;
  display: grid;
  place-items: center;
}
html[data-test3] .t3-hugo-dock[hidden] { display: none; }
html[data-test3] .t3-hugo-dock .t3-hugo-photo { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
html[data-test3] .t3-hugo-dock::after {
  content: "";
  position: absolute;
  inset: auto 8px 5px auto;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #7552ad;
  box-shadow: 0 0 0 2px #fff;
}

html[data-test3] .t3-hugo-name { display: flex; align-items: center; gap: 10px; }
html[data-test3] .t3-hugo-stage {
  position: relative;
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
}
html[data-test3] .t3-hugo-face { width: 74px; height: 74px; display: grid; place-items: center; }
html[data-test3] .t3-hugo-face .t3-hugo-photo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: contain;
  transform-origin: 50% 92%;
  animation: t3HugoIdle 3.6s ease-in-out infinite;
}
html[data-test3] .t3-hugo-stage[data-face="thinking"] .t3-hugo-photo { filter: saturate(.92); }
html[data-test3] .t3-hugo-stage[data-face="thinking"] .t3-hugo-face .t3-hugo-photo { animation: t3HugoThink 1.5s ease-in-out infinite; }
html[data-test3] .t3-hugo-stage[data-face="cold"] .t3-hugo-face .t3-hugo-photo { animation: t3HugoShiver .32s linear infinite; filter: saturate(.8) hue-rotate(-8deg); }
html[data-test3] .t3-hugo-stage[data-face="board"] .t3-hugo-face .t3-hugo-photo { animation: t3HugoBoard 2.4s ease-in-out infinite; }
html[data-test3] .t3-hugo-think {
  position: absolute;
  top: -2px;
  right: -4px;
  display: flex;
  gap: 3px;
  padding: 4px 6px;
  border: 1px solid #e7ddf2;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(90, 60, 140, .12);
  opacity: 0;
  transform: scale(.86);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}
html[data-test3] .t3-hugo-stage[data-face="thinking"] .t3-hugo-think { opacity: 1; transform: scale(1); }
html[data-test3] .t3-hugo-think i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7552ad;
  animation: t3HugoDot 1.05s ease-in-out infinite;
}
html[data-test3] .t3-hugo-think i:nth-child(2) { animation-delay: .16s; }
html[data-test3] .t3-hugo-think i:nth-child(3) { animation-delay: .32s; }
@keyframes t3HugoIdle {
  0%, 100% { transform: translateY(0) rotate(-1.4deg); }
  50% { transform: translateY(-2px) rotate(1.4deg); }
}
@keyframes t3HugoThink {
  0%, 100% { transform: rotate(-3.2deg) translateY(0); }
  50% { transform: rotate(3.2deg) translateY(-3px); }
}
@keyframes t3HugoShiver {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-1.3px); }
  75% { transform: translateX(1.3px); }
}
@keyframes t3HugoBoard {
  0%, 100% { transform: rotate(-1deg); }
  50% { transform: rotate(1.5deg) translateY(-1px); }
}
@keyframes t3HugoDot {
  0%, 100% { transform: translateY(0) scale(.86); opacity: .4; }
  40% { transform: translateY(-3px) scale(1.06); opacity: 1; }
}
@keyframes t3HugoIn {
  from { opacity: 0; transform: translateY(26px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes t3HugoChipIn {
  from { opacity: 0; transform: translateY(7px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes t3HugoRecoIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
html[data-test3] .t3-hugo-dialog[open] .t3-ai-dialog-shell { animation: t3HugoIn .42s cubic-bezier(.16, .86, .28, 1.04) both; }
html[data-test3] .t3-hugo-dock .t3-hugo-mini { display: grid; place-items: center; }
html[data-test3] .t3-hugo-say {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.6;
  color: #2a2137;
}
html[data-test3] .t3-hugo-chips { display: flex; flex-wrap: wrap; gap: 8px; }
html[data-test3] .t3-hugo-chips button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #ded0ee;
  border-radius: 12px;
  background: #fff;
  color: #4f3a78;
  font: inherit;
  font-size: 13px;
  font-weight: 620;
  cursor: pointer;
}
html[data-test3] .t3-hugo-chips button:hover { background: #faf7fd; border-color: #c9b4e4; }
html[data-test3] .t3-hugo-skip {
  display: block;
  margin: 14px 0 0 auto;
  min-height: 40px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: #7b7287;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
html[data-test3] .t3-hugo-recos { display: grid; gap: 12px; margin-top: 14px; }
html[data-test3] .t3-hugo-reco {
  padding: 12px 0 0;
  border-top: 1px solid #f0eaf6;
}
html[data-test3] .t3-hugo-reco:first-child { border-top: 0; padding-top: 0; }
html[data-test3] .t3-hugo-reco strong { display: block; font-size: 16px; font-weight: 680; }
html[data-test3] .t3-hugo-reco small { display: block; margin-top: 3px; color: #7b7287; font-size: 13px; line-height: 1.5; }
html[data-test3] .t3-hugo-reco .t3-ai-button { margin-top: 8px; }
html[data-test3] .t3-hugo-src { margin-top: 12px; color: #93899f; font-size: 11px; line-height: 1.5; }
html[data-test3] .t3-hugo-say.is-in { animation: t3HugoSayIn .24s ease-out both; }
html[data-test3] .t3-hugo-wait { display: none; }
html[data-test3] .t3-hugo-dialog[data-state="thinking"] .t3-hugo-stage { display: none; }
html[data-test3] .t3-hugo-dialog[data-state="thinking"] .t3-hugo-say,
html[data-test3] .t3-hugo-dialog[data-state="thinking"] .t3-hugo-chips,
html[data-test3] .t3-hugo-dialog[data-state="thinking"] .t3-hugo-recos,
html[data-test3] .t3-hugo-dialog[data-state="thinking"] .t3-hugo-src,
html[data-test3] .t3-hugo-dialog[data-state="thinking"] .t3-hugo-skip { display: none; }
html[data-test3] .t3-hugo-dialog[data-state="thinking"] .t3-ai-body {
  display: grid;
  align-items: center;
  justify-items: center;
  min-height: min(58dvh, 452px);
  padding: 24px 22px 30px;
}
html[data-test3] .t3-hugo-dialog[data-state="thinking"] .t3-hugo-wait {
  display: grid;
  place-items: center;
  gap: 20px;
  width: 100%;
  min-height: 0;
  padding: 0;
  text-align: center;
  animation: t3HugoWaitIn .32s cubic-bezier(.2, .8, .3, 1) both;
}
html[data-test3] .t3-hugo-wait-photo {
  width: 164px;
  height: 164px;
  padding: 5px;
  border: 5px solid transparent;
  border-radius: 50%;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(140deg, #6c48a8 0%, #b984e4 52%, #ffb8cd 100%) border-box;
  object-fit: cover;
  box-shadow: 0 20px 44px rgba(62, 35, 105, .18);
  animation: t3HugoFloat 4.4s ease-in-out infinite;
}
html[data-test3] .t3-hugo-wait-title {
  max-width: 100%;
  color: #221a2e;
  font-size: clamp(28px, 8.4vw, 36px);
  font-weight: 750;
  letter-spacing: -.035em;
  line-height: 1.14;
  text-wrap: balance;
}
html[data-test3] .t3-hugo-wait-dots { display: flex; gap: 7px; margin-top: 0; }
html[data-test3] .t3-hugo-wait-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7552ad;
  animation: t3HugoDot 1.1s ease-in-out infinite;
}
html[data-test3] .t3-hugo-wait-dots i:nth-child(2) { animation-delay: .16s; }
html[data-test3] .t3-hugo-wait-dots i:nth-child(3) { animation-delay: .32s; }
@keyframes t3HugoWaitIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes t3HugoFloat {
  0%, 100% { transform: translateY(0) rotate(-1.2deg); }
  50% { transform: translateY(-6px) rotate(1.2deg); }
}
@keyframes t3HugoSayIn {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}
html[data-test3] .t3-hugo-chips button {
  transition: transform .18s cubic-bezier(.2, .8, .3, 1), background-color .18s ease, border-color .18s ease;
  animation: t3HugoChipIn .3s cubic-bezier(.2, .8, .3, 1) backwards;
}
html[data-test3] .t3-hugo-chips button:nth-child(2) { animation-delay: .06s; }
html[data-test3] .t3-hugo-chips button:nth-child(3) { animation-delay: .12s; }
html[data-test3] .t3-hugo-chips button:hover { transform: translateY(-1px); }
html[data-test3] .t3-hugo-chips button:active { transform: scale(.96); }
html[data-test3] .t3-hugo-reco { animation: t3HugoRecoIn .26s ease-out both; }
html[data-test3] .t3-hugo-reco:nth-child(2) { animation-delay: .08s; }
html[data-test3] .t3-hugo-reco:nth-child(3) { animation-delay: .16s; }
html[data-test3] .t3-hugo-reco:nth-child(4) { animation-delay: .24s; }
html[data-test3] .t3-hugo-dock { transition: transform .18s ease, box-shadow .18s ease; }
html[data-test3] .t3-hugo-dock .t3-hugo-mini .t3-hugo-photo {
  transform-origin: 50% 90%;
  animation: t3HugoIdle 3.6s ease-in-out infinite;
}
html[data-test3] .t3-hugo-dock:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(90, 60, 140, .2); }
html[data-test3] .t3-hugo-dock:active { transform: scale(.94); }
@media (prefers-reduced-motion: reduce) {
  html[data-test3] .t3-hugo-face .t3-hugo-photo,
  html[data-test3] .t3-hugo-dock .t3-hugo-mini .t3-hugo-photo,
  html[data-test3] .t3-hugo-wait-photo,
  html[data-test3] .t3-hugo-wait,
  html[data-test3] .t3-hugo-wait-dots i,
  html[data-test3] .t3-hugo-think i,
  html[data-test3] .t3-hugo-say.is-in,
  html[data-test3] .t3-hugo-reco,
  html[data-test3] .t3-hugo-chips button,
  html[data-test3] .t3-hugo-dialog[open] .t3-ai-dialog-shell { animation: none !important; }
  html[data-test3] .t3-hugo-think { transition: none; }
}

/* Language sheet note */
html[data-test3] .t3-ai-note { margin: 4px 0 0; color: #8a8098; font-size: 12px; line-height: 1.55; }

@media (max-width: 599px) {
  html[data-test3] .t3-ai-dialog {
    width: 100vw;
    max-width: 100vw;
    margin: auto 0 0;
    border-radius: 22px 22px 0 0;
    border-bottom: 0;
  }
  html[data-test3] .t3-ai-dialog-shell { max-height: 86dvh; }
  html[data-test3] .t3-ai-body { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
}
