/**
 * OJ Bot - floating onboarding helper (customers + tradies + public showroom)
 */
.oj-bot-root {
  position: fixed;
  z-index: 9990;
  pointer-events: none;
  font-family: Inter, system-ui, sans-serif;
}

/* --- Public showroom (marketing pages: multi-persona + CTA, no AI) --- */
.oj-bot-root.is-showroom .oj-bot-ask-card {
  max-width: 22rem;
}
/* Movable showcase: drag robot + pill */
.oj-bot-root.is-showroom .oj-bot-char,
.oj-bot-root.is-showroom-movable .oj-bot-char {
  cursor: grab;
  touch-action: none;
}
.oj-bot-root.is-showroom.is-dragging .oj-bot-char,
.oj-bot-root.is-showroom-movable.is-dragging .oj-bot-char {
  cursor: grabbing;
}
.oj-bot-root.is-showroom.is-dragging .oj-bot-stage {
  transition: none !important;
}
/* Face hats reuse medical/legal launcher colours while role stays public mount */
.oj-bot-root.is-showroom.oj-bot-role-medical .oj-bot-launcher-btn {
  background: linear-gradient(135deg, #0d9488, #0f766e);
}
.oj-bot-root.is-showroom.oj-bot-role-legal .oj-bot-launcher-btn {
  background: linear-gradient(135deg, #6366f1, #4338ca);
}
.oj-bot-root.is-showroom.oj-bot-role-public .oj-bot-launcher-btn {
  /* default brand fab */
}

/* --- Showroom multi-persona costumes (Dr / Secretary / Counsel / Clerk) --- */
.oj-bot-face-prop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.oj-bot-char.is-face-dr .oj-bot-face-prop-dr,
.oj-bot-char.is-face-sec .oj-bot-face-prop-sec,
.oj-bot-char.is-face-counsel .oj-bot-face-prop-counsel,
.oj-bot-char.is-face-clerk .oj-bot-face-prop-clerk {
  opacity: 1;
}
/* Tradie face: force full DIY kit even if is-tradie was briefly cleared */
.oj-bot-char.is-face-tradie .oj-bot-hardhat,
.oj-bot-char.is-face-tradie .oj-bot-hivis,
.oj-bot-char.is-face-tradie .oj-bot-toolbelt,
.oj-bot-char.is-face-tradie .oj-bot-goggles,
.oj-bot-char.is-face-tradie .oj-bot-workboots,
.oj-bot-char.is-face-tradie.is-tool-hammer .oj-bot-tool-hammer {
  opacity: 1 !important;
  pointer-events: none;
  visibility: visible;
}
.oj-bot-char.is-face-tradie .oj-bot-feet {
  opacity: 0 !important;
}
.oj-bot-char.is-face-tradie .oj-bot-hand-default,
.oj-bot-char.is-face-tradie .oj-bot-swatter {
  opacity: 0 !important;
}
/* Hide DIY hard hat / goggles / kit when a medical/legal hat is on */
.oj-bot-char.is-face-dr .oj-bot-hardhat,
.oj-bot-char.is-face-sec .oj-bot-hardhat,
.oj-bot-char.is-face-counsel .oj-bot-hardhat,
.oj-bot-char.is-face-clerk .oj-bot-hardhat,
.oj-bot-char.is-face-dr .oj-bot-hivis,
.oj-bot-char.is-face-sec .oj-bot-hivis,
.oj-bot-char.is-face-counsel .oj-bot-hivis,
.oj-bot-char.is-face-clerk .oj-bot-hivis,
.oj-bot-char.is-face-dr .oj-bot-toolbelt,
.oj-bot-char.is-face-sec .oj-bot-toolbelt,
.oj-bot-char.is-face-counsel .oj-bot-toolbelt,
.oj-bot-char.is-face-clerk .oj-bot-toolbelt,
.oj-bot-char.is-face-dr .oj-bot-goggles,
.oj-bot-char.is-face-sec .oj-bot-goggles,
.oj-bot-char.is-face-counsel .oj-bot-goggles,
.oj-bot-char.is-face-clerk .oj-bot-goggles {
  opacity: 0 !important;
  visibility: hidden;
}
/* Body tint per vertical */
.oj-bot-char.is-face-tradie .oj-bot-torso {
  filter: hue-rotate(12deg) saturate(1.2) brightness(1.02);
}
.oj-bot-char.is-face-dr .oj-bot-torso,
.oj-bot-char.is-face-sec .oj-bot-torso {
  filter: hue-rotate(140deg) saturate(1.15);
}
/* Judge: deep charcoal robe vibe */
.oj-bot-char.is-face-counsel .oj-bot-torso {
  filter: grayscale(0.35) brightness(0.72) contrast(1.15);
}
.oj-bot-char.is-face-clerk .oj-bot-torso {
  filter: hue-rotate(220deg) saturate(1.1) brightness(0.95);
}
/* Judge gavel - painted last (in front of robe). Rides with right arm motion. */
.oj-bot-gavel {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform-box: view-box;
  transform-origin: 66px 56px; /* same pivot as .oj-bot-arm */
}
.oj-bot-gavel-hand {
  opacity: 0;
  pointer-events: none;
}
.oj-bot-char.is-face-counsel .oj-bot-gavel {
  opacity: 1;
  visibility: visible;
  /* Match idle right-arm sway so gavel moves with the hand */
  animation: ojArmIdleRight 3.1s ease-in-out infinite;
}
.oj-bot-char.is-face-counsel .oj-bot-gavel-hand {
  opacity: 1;
}
.oj-bot-char.is-face-counsel .oj-bot-gavel-shaft {
  transform-box: view-box;
  transform-origin: 0 0;
  /* Local grip wobble (on top of arm ride) */
  animation: ojGavelIdle 3.2s ease-in-out infinite;
}
/* Arm hand under robe; gavel-hand is the grip drawn in front */
.oj-bot-char.is-face-counsel .oj-bot-hand-default {
  opacity: 0.35;
}
@keyframes ojGavelIdle {
  0%, 100% { transform: translate(91px, 56px) rotate(-28deg); }
  50% { transform: translate(91px, 56px) rotate(-22deg); }
}
/* Wave: gavel rides the same wave as the right arm */
.oj-bot-char.is-face-counsel.is-wave .oj-bot-gavel {
  animation: ojBotWave 0.45s ease-in-out 3;
  transform-origin: 66px 56px;
}
/* Point: match arm point angle */
.oj-bot-char.is-face-counsel.is-point .oj-bot-gavel {
  animation: none;
  transform: rotate(var(--oj-bot-arm-deg, -36deg));
  transform-origin: 66px 56px;
}
/* Dedicated gavel skits drive the shaft - freeze arm-ride on parent */
.oj-bot-char.is-gavel-track .oj-bot-gavel,
.oj-bot-char.is-gavel-windup .oj-bot-gavel,
.oj-bot-char.is-gavel-swing .oj-bot-gavel,
.oj-bot-char.is-gavel-miss-react .oj-bot-gavel,
.oj-bot-char.is-elated .oj-bot-gavel,
.oj-bot-char.is-paper-hype .oj-bot-gavel,
.oj-bot-char.is-paper-smash .oj-bot-gavel {
  animation: none !important;
  transform: none !important;
}
/* Boring Bot: plain OJ clothes - kill every theme prop (Dr coat, Judge robe, etc.) */
.oj-bot-root.is-pro-boring .oj-bot-gavel,
.oj-bot-root.is-pro-boring .oj-bot-gavel-hand,
.oj-bot-root.is-pro-boring .oj-bot-face-prop,
.oj-bot-root.is-pro-boring .oj-bot-face-prop-dr,
.oj-bot-root.is-pro-boring .oj-bot-face-prop-sec,
.oj-bot-root.is-pro-boring .oj-bot-face-prop-counsel,
.oj-bot-root.is-pro-boring .oj-bot-face-prop-clerk,
.oj-bot-root.is-pro-boring .oj-bot-char.is-face-dr .oj-bot-face-prop-dr,
.oj-bot-root.is-pro-boring .oj-bot-char.is-face-sec .oj-bot-face-prop-sec,
.oj-bot-root.is-pro-boring .oj-bot-char.is-face-counsel .oj-bot-face-prop-counsel,
.oj-bot-root.is-pro-boring .oj-bot-char.is-face-clerk .oj-bot-face-prop-clerk,
.oj-bot-root.is-pro-boring .oj-bot-scalpel {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.oj-bot-root.is-pro-boring .oj-bot-char.is-face-counsel .oj-bot-hand-default,
.oj-bot-root.is-pro-boring .oj-bot-hand-default {
  opacity: 1 !important;
}
/* Restore default torso colour (no MD teal / judge charcoal tint) */
.oj-bot-root.is-pro-boring .oj-bot-char .oj-bot-torso,
.oj-bot-root.is-pro-boring .oj-bot-char.is-face-dr .oj-bot-torso,
.oj-bot-root.is-pro-boring .oj-bot-char.is-face-sec .oj-bot-torso,
.oj-bot-root.is-pro-boring .oj-bot-char.is-face-counsel .oj-bot-torso,
.oj-bot-root.is-pro-boring .oj-bot-char.is-face-clerk .oj-bot-torso {
  filter: none !important;
}
/* Boring: plain OJ - antenna only, NO tradie hard hat / hi-vis / tools */
.oj-bot-root.is-pro-boring .oj-bot-char .oj-bot-hardhat,
.oj-bot-root.is-pro-boring .oj-bot-char .oj-bot-hivis,
.oj-bot-root.is-pro-boring .oj-bot-char .oj-bot-toolbelt,
.oj-bot-root.is-pro-boring .oj-bot-char .oj-bot-goggles,
.oj-bot-root.is-pro-boring .oj-bot-char .oj-bot-workboots,
.oj-bot-root.is-pro-boring .oj-bot-char .oj-bot-tool {
  opacity: 0 !important;
  visibility: hidden !important;
}
.oj-bot-root.is-pro-boring .oj-bot-char .oj-bot-antenna {
  opacity: 1 !important;
  visibility: visible !important;
}
/* No floating name chip on pro dashboards (menu / speech name is enough) */
.oj-bot-root.oj-bot-role-medical .oj-bot-face-label,
.oj-bot-root.oj-bot-role-legal .oj-bot-face-label,
.oj-bot-root.oj-bot-role-medical [data-oj-face-label],
.oj-bot-root.oj-bot-role-legal [data-oj-face-label],
.oj-bot-root.oj-bot-role-medical .oj-bot-char .oj-bot-face-label,
.oj-bot-root.oj-bot-role-legal .oj-bot-char .oj-bot-face-label {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  transform: none !important;
}
/* Boring Bot: still costumed, no gavel sway / antics */
.oj-bot-root.is-pro-boring .oj-bot-char.is-face-counsel .oj-bot-gavel-shaft {
  animation: none !important;
}
.oj-bot-root.is-pro-boring .oj-bot-char {
  filter: saturate(0.85);
}
.oj-bot-root.is-pro-boring .oj-bot-launcher-btn {
  opacity: 0.92;
  filter: grayscale(0.25);
}

/* --- Judge OJ: gavel fly + exhibit-box smash --- */
.oj-bot-root.is-judge-skit .oj-bot-speech {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Track fly with gavel (subtle ready pose) - pivot at grip in hand */
.oj-bot-char.is-gavel-track .oj-bot-gavel-shaft {
  animation: ojGavelReady 0.55s ease-in-out infinite alternate;
}
@keyframes ojGavelReady {
  0% { transform: translate(91px, 56px) rotate(-40deg); }
  100% { transform: translate(91px, 56px) rotate(-16deg); }
}

/* Wind-up: gavel lifts high (pivot at grip) */
.oj-bot-char.is-gavel-windup .oj-bot-gavel-shaft {
  animation: ojGavelWindup 0.65s cubic-bezier(0.34, 1.4, 0.64, 1) forwards;
}
.oj-bot-char.is-gavel-windup {
  animation: ojBotShake 0.32s ease-in-out infinite, ojBotFloat 3.2s ease-in-out infinite;
}
@keyframes ojGavelWindup {
  0% { transform: translate(91px, 56px) rotate(-28deg) scale(1); }
  100% { transform: translate(91px, 56px) rotate(-72deg) scale(1.06); }
}

/* Swing / smash - still held at pommel, in front of body */
.oj-bot-char.is-gavel-swing .oj-bot-gavel-shaft {
  animation: ojGavelSmash 0.9s ease-in-out 1;
}
.oj-bot-char.is-gavel-swing {
  animation: ojGavelBodyBump 0.9s ease-in-out 1;
}
.oj-bot-char.is-gavel-swing .oj-bot-eyes {
  transform: scaleY(0.35);
  animation: none;
}
.oj-bot-char.is-gavel-swing .oj-bot-mouth-default,
.oj-bot-char.is-gavel-swing .oj-bot-mouth-grin {
  opacity: 0;
}
.oj-bot-char.is-gavel-swing .oj-bot-mouth-grumpy {
  opacity: 1;
}
@keyframes ojGavelSmash {
  0%   { transform: translate(91px, 56px) rotate(-72deg) scale(1.06); }
  18%  { transform: translate(91px, 56px) rotate(30deg) scale(1.14); }
  28%  { transform: translate(91px, 56px) rotate(14deg) scale(1.05); }
  42%  { transform: translate(91px, 56px) rotate(34deg) scale(1.16); }
  58%  { transform: translate(91px, 56px) rotate(6deg) scale(1.04); }
  72%  { transform: translate(91px, 56px) rotate(24deg) scale(1.1); }
  100% { transform: translate(91px, 56px) rotate(-18deg) scale(1); }
}
@keyframes ojGavelBodyBump {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  18% { transform: translateY(3px) rotate(4deg); }
  42% { transform: translateY(4px) rotate(6deg); }
  72% { transform: translateY(2px) rotate(3deg); }
}

/* Miss - sulky glance */
.oj-bot-char.is-gavel-miss-react .oj-bot-pupils {
  animation: none;
  transform: translate(-1.5px, 1.8px);
}
.oj-bot-char.is-gavel-miss-react .oj-bot-mouth-default { opacity: 0; }
.oj-bot-char.is-gavel-miss-react .oj-bot-mouth-grumpy { opacity: 1; }

/* Hit - pure gavel glee */
.oj-bot-char.is-elated .oj-bot-mouth-default,
.oj-bot-char.is-elated .oj-bot-mouth-grumpy { opacity: 0; }
.oj-bot-char.is-elated .oj-bot-mouth-laugh { opacity: 1; }
.oj-bot-char.is-elated .oj-bot-mouth-grin { opacity: 0; }
.oj-bot-char.is-elated {
  animation: ojElatedBounce 0.4s ease-in-out 5, ojBotFloat 3.2s ease-in-out infinite;
}
.oj-bot-char.is-elated .oj-bot-gavel-shaft {
  animation: ojGavelVictory 0.45s ease-in-out infinite alternate;
}
@keyframes ojElatedBounce {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  50% { transform: translateY(-6px) rotate(-4deg) scale(1.06); }
}
@keyframes ojGavelVictory {
  0% { transform: translate(91px, 56px) rotate(-40deg); }
  100% { transform: translate(91px, 56px) rotate(-12deg); }
}

/* Hype before paper smash */
.oj-bot-char.is-paper-hype {
  animation: ojBotShake 0.35s ease-in-out infinite, ojBotFloat 3.2s ease-in-out infinite;
}
.oj-bot-char.is-paper-hype .oj-bot-mouth-default { opacity: 0; }
.oj-bot-char.is-paper-hype .oj-bot-mouth-grin { opacity: 1; }
.oj-bot-char.is-paper-hype .oj-bot-gavel-shaft {
  animation: ojGavelReady 0.4s ease-in-out infinite alternate;
}

/* Overstuffed exhibit box */
.oj-bot-papers {
  position: absolute;
  left: 50%;
  bottom: 0.15rem;
  width: 3.4rem;
  height: 2.6rem;
  margin-left: -0.1rem;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  transform: translateX(-50%) translateY(12px) scale(0.7);
  transition: opacity 0.2s ease, transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.oj-bot-papers.is-visible,
.oj-bot-papers.is-enter {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}
.oj-bot-papers.is-exit {
  opacity: 0;
  transform: translateX(-50%) translateY(18px) scale(0.65);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.oj-bot-papers-box {
  position: relative;
  width: 100%;
  height: 100%;
}
.oj-bot-papers-box::before {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 0;
  height: 62%;
  background: linear-gradient(180deg, #92400e 0%, #78350f 55%, #451a03 100%);
  border: 1.5px solid #292524;
  border-radius: 0.2rem 0.2rem 0.15rem 0.15rem;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.35);
}
.oj-bot-papers-lid {
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: 58%;
  height: 14%;
  background: linear-gradient(180deg, #b45309, #92400e);
  border: 1.5px solid #292524;
  border-radius: 0.15rem;
  z-index: 2;
}
.oj-bot-papers-label {
  position: absolute;
  left: 50%;
  bottom: 18%;
  transform: translateX(-50%);
  font-size: 0.32rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #fef3c7;
  text-shadow: 0 1px 0 #451a03;
  z-index: 3;
  white-space: nowrap;
  font-family: Impact, "Arial Black", sans-serif;
}
.oj-bot-papers-sheet {
  position: absolute;
  left: 18%;
  width: 64%;
  height: 42%;
  background: #f8fafc;
  border: 1px solid #94a3b8;
  border-radius: 0.08rem;
  z-index: 1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.15);
}
.oj-bot-papers-sheet::after {
  content: '';
  position: absolute;
  left: 12%;
  right: 12%;
  top: 22%;
  height: 1px;
  background: repeating-linear-gradient(90deg, #cbd5e1 0 40%, transparent 40% 55%);
  box-shadow: 0 3px 0 #e2e8f0, 0 6px 0 #e2e8f0, 0 9px 0 #e2e8f0;
}
.oj-bot-papers-sheet--a { bottom: 48%; transform: rotate(-8deg); z-index: 4; }
.oj-bot-papers-sheet--b { bottom: 52%; transform: rotate(6deg) translateX(4px); z-index: 3; }
.oj-bot-papers-sheet--c { bottom: 56%; transform: rotate(-3deg) translateX(-3px); z-index: 5; }
.oj-bot-papers-sheet--d { bottom: 60%; transform: rotate(11deg) translateX(2px); z-index: 2; }
.oj-bot-papers-sheet--e { bottom: 64%; transform: rotate(-14deg) translateX(-1px); z-index: 6; }

/* Smash: box squishes, papers explode, confetti flies */
.oj-bot-papers.is-smash .oj-bot-papers-box::before {
  animation: ojBoxSquish 0.55s ease-out forwards;
}
.oj-bot-papers.is-smash .oj-bot-papers-lid {
  animation: ojLidFlip 0.6s ease-out forwards;
}
.oj-bot-papers.is-smash .oj-bot-papers-sheet--a { animation: ojPaperBlastA 0.85s ease-out forwards; }
.oj-bot-papers.is-smash .oj-bot-papers-sheet--b { animation: ojPaperBlastB 0.9s ease-out forwards; }
.oj-bot-papers.is-smash .oj-bot-papers-sheet--c { animation: ojPaperBlastC 0.8s ease-out forwards; }
.oj-bot-papers.is-smash .oj-bot-papers-sheet--d { animation: ojPaperBlastD 0.95s ease-out forwards; }
.oj-bot-papers.is-smash .oj-bot-papers-sheet--e { animation: ojPaperBlastE 0.88s ease-out forwards; }
.oj-bot-papers.is-smash .oj-bot-papers-label {
  animation: ojLabelPop 0.7s ease-out forwards;
}
@keyframes ojBoxSquish {
  0% { transform: scaleY(1) scaleX(1); }
  25% { transform: scaleY(0.55) scaleX(1.18); }
  55% { transform: scaleY(0.7) scaleX(1.08); }
  100% { transform: scaleY(0.62) scaleX(1.12); opacity: 0.85; }
}
@keyframes ojLidFlip {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(-28px) rotate(-48deg) translateX(10px); opacity: 0; }
}
@keyframes ojPaperBlastA {
  0% { opacity: 1; transform: rotate(-8deg) translate(0, 0); }
  100% { opacity: 0; transform: rotate(-40deg) translate(-28px, -42px) scale(0.7); }
}
@keyframes ojPaperBlastB {
  0% { opacity: 1; transform: rotate(6deg) translateX(4px); }
  100% { opacity: 0; transform: rotate(55deg) translate(32px, -38px) scale(0.65); }
}
@keyframes ojPaperBlastC {
  0% { opacity: 1; transform: rotate(-3deg) translateX(-3px); }
  100% { opacity: 0; transform: rotate(20deg) translate(6px, -52px) scale(0.75); }
}
@keyframes ojPaperBlastD {
  0% { opacity: 1; transform: rotate(11deg) translateX(2px); }
  100% { opacity: 0; transform: rotate(-60deg) translate(-22px, -30px) scale(0.6); }
}
@keyframes ojPaperBlastE {
  0% { opacity: 1; transform: rotate(-14deg) translateX(-1px); }
  100% { opacity: 0; transform: rotate(70deg) translate(24px, -48px) scale(0.55); }
}
@keyframes ojLabelPop {
  0% { opacity: 1; transform: translateX(-50%) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-20px) scale(1.3); }
}

/* Confetti scraps from the box */
.oj-bot-papers-confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}
.oj-bot-papers-confetti i {
  position: absolute;
  left: 50%;
  bottom: 50%;
  width: 0.28rem;
  height: 0.38rem;
  background: #fef08a;
  border-radius: 0.04rem;
  opacity: 0;
}
.oj-bot-papers-confetti i:nth-child(2n) { background: #f8fafc; width: 0.34rem; height: 0.22rem; }
.oj-bot-papers-confetti i:nth-child(3n) { background: #fca5a5; }
.oj-bot-papers-confetti i:nth-child(4n) { background: #93c5fd; }
.oj-bot-papers.is-smash .oj-bot-papers-confetti i {
  animation: ojConfettiBurst 0.9s ease-out forwards;
}
.oj-bot-papers.is-smash .oj-bot-papers-confetti i:nth-child(1) { --dx: -22px; --dy: -36px; --r: -40deg; animation-delay: 0s; }
.oj-bot-papers.is-smash .oj-bot-papers-confetti i:nth-child(2) { --dx: 18px; --dy: -40px; --r: 55deg; animation-delay: 0.03s; }
.oj-bot-papers.is-smash .oj-bot-papers-confetti i:nth-child(3) { --dx: -8px; --dy: -48px; --r: 12deg; animation-delay: 0.05s; }
.oj-bot-papers.is-smash .oj-bot-papers-confetti i:nth-child(4) { --dx: 28px; --dy: -28px; --r: -25deg; animation-delay: 0.02s; }
.oj-bot-papers.is-smash .oj-bot-papers-confetti i:nth-child(5) { --dx: -30px; --dy: -22px; --r: 70deg; animation-delay: 0.06s; }
.oj-bot-papers.is-smash .oj-bot-papers-confetti i:nth-child(6) { --dx: 10px; --dy: -52px; --r: -60deg; animation-delay: 0.04s; }
.oj-bot-papers.is-smash .oj-bot-papers-confetti i:nth-child(7) { --dx: -16px; --dy: -30px; --r: 30deg; animation-delay: 0.07s; }
.oj-bot-papers.is-smash .oj-bot-papers-confetti i:nth-child(8) { --dx: 22px; --dy: -44px; --r: -15deg; animation-delay: 0.01s; }
@keyframes ojConfettiBurst {
  0% { opacity: 1; transform: translate(0, 0) rotate(0deg) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx, 10px), var(--dy, -40px)) rotate(var(--r, 40deg)) scale(0.4); }
}

/* --- Dr OJ comedy kit: scalpel / defib / apple / syringe / stetho / coffee --- */
.oj-bot-root.is-doc-skit .oj-bot-speech.is-visible {
  opacity: 1 !important;
  pointer-events: none;
}
.oj-bot-root.is-doc-say .oj-bot-speech {
  opacity: 1 !important;
}

/* Scalpel (on character SVG - hidden until is-scalpel) */
.oj-bot-scalpel {
  opacity: 0;
  transform-origin: 78px 48px;
  transform: scale(0.15) rotate(-20deg) translate(-12px, 10px);
  transition: opacity 0.2s ease, transform 0.45s cubic-bezier(0.34, 1.55, 0.64, 1);
  pointer-events: none;
}
/* Scalpel / Dr skits: character paints above speech bubble */
.oj-bot-char.is-scalpel,
.oj-bot-root.is-doc-skit .oj-bot-char,
.oj-bot-root.is-doc-say .oj-bot-char {
  z-index: 30;
}
.oj-bot-root.is-doc-skit .oj-bot-speech,
.oj-bot-root.is-doc-say .oj-bot-speech,
.oj-bot-char.is-scalpel ~ .oj-bot-speech,
.oj-bot-root.is-doc-skit.is-tipping .oj-bot-speech {
  z-index: 10 !important;
}
.oj-bot-scalpel-drip {
  opacity: 0;
}
.oj-bot-char.is-scalpel .oj-bot-scalpel {
  opacity: 1;
  transform: scale(1.25) rotate(0deg) translate(0, 0);
}
.oj-bot-char.is-scalpel .oj-bot-hand-default {
  opacity: 0;
}
.oj-bot-char.is-scalpel.is-bloodthirsty .oj-bot-scalpel {
  animation: ojScalpelMenace 0.45s ease-in-out infinite alternate;
}
.oj-bot-char.is-scalpel.is-bloodthirsty .oj-bot-scalpel-drip {
  opacity: 1;
  animation: ojScalpelDrip 0.7s ease-in-out infinite;
}
@keyframes ojScalpelMenace {
  0% { transform: scale(1.25) rotate(-8deg) translate(0, 0); }
  100% { transform: scale(1.32) rotate(10deg) translate(2px, -3px); }
}
@keyframes ojScalpelDrip {
  0%, 100% { opacity: 0.75; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(3px); }
}

/* Bloodthirsty eyes */
.oj-bot-char.is-bloodthirsty .oj-bot-eye-ball {
  fill: #fca5a5 !important;
  filter: drop-shadow(0 0 3px rgba(220, 38, 38, 0.85));
}
.oj-bot-char.is-bloodthirsty .oj-bot-pupil {
  fill: #7f1d1d !important;
}
.oj-bot-char.is-bloodthirsty .oj-bot-eye-shine {
  fill: #fecaca !important;
}
.oj-bot-char.is-bloodthirsty .oj-bot-mouth-default,
.oj-bot-char.is-bloodthirsty .oj-bot-mouth-grin { opacity: 0; }
.oj-bot-char.is-bloodthirsty .oj-bot-mouth-laugh { opacity: 1; }
.oj-bot-char.is-bloodthirsty {
  animation: ojBloodthirstyLean 0.5s ease-in-out infinite alternate;
}
.oj-bot-char.is-bloodthirsty .oj-bot-steam {
  opacity: 1;
  animation: ojSteam 0.45s ease-in-out infinite;
}
@keyframes ojBloodthirstyLean {
  0% { transform: translateY(0) rotate(-2deg) scale(1.02); }
  100% { transform: translateY(-3px) rotate(3deg) scale(1.06); }
}

/* Snap back to sanity */
.oj-bot-char.is-snap-sane {
  animation: ojSnapSane 0.55s ease-out 1;
}
.oj-bot-char.is-snap-sane .oj-bot-eyes {
  animation: none;
  transform: scale(1.15);
}
@keyframes ojSnapSane {
  0% { transform: scale(1.08) rotate(4deg); filter: hue-rotate(0deg); }
  40% { transform: scale(0.96) rotate(-3deg); filter: brightness(1.15); }
  100% { transform: scale(1) rotate(0deg); filter: none; }
}

/* Defibrillator stage prop */
.oj-bot-defib {
  position: absolute;
  left: 50%;
  bottom: 0.1rem;
  width: 4.2rem;
  height: 2.4rem;
  margin-left: 0.35rem;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  transform: translateX(-50%) translateY(14px) scale(0.65);
  transition: opacity 0.2s ease, transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.oj-bot-defib.is-visible,
.oj-bot-defib.is-enter {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}
.oj-bot-defib.is-exit {
  opacity: 0;
  transform: translateX(-50%) translateY(16px) scale(0.6);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.oj-bot-defib-unit {
  position: absolute;
  left: 28%;
  bottom: 0;
  width: 44%;
  height: 58%;
  background: linear-gradient(180deg, #f8fafc, #cbd5e1);
  border: 1.5px solid #0f172a;
  border-radius: 0.25rem;
  box-shadow: 0 2px 5px rgba(15, 23, 42, 0.3);
}
.oj-bot-defib-screen {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 12%;
  height: 42%;
  background: #052e16;
  color: #4ade80;
  font-size: 0.28rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.1rem;
  font-family: "Courier New", monospace;
}
.oj-bot-defib-btn {
  position: absolute;
  left: 50%;
  bottom: 10%;
  width: 0.35rem;
  height: 0.35rem;
  margin-left: -0.175rem;
  background: #ef4444;
  border-radius: 50%;
  border: 1px solid #7f1d1d;
  box-shadow: 0 0 4px rgba(239, 68, 68, 0.6);
}
.oj-bot-defib-paddle {
  position: absolute;
  bottom: 8%;
  width: 0.85rem;
  height: 1.15rem;
  background: linear-gradient(180deg, #fbbf24, #d97706);
  border: 1.5px solid #78350f;
  border-radius: 0.2rem 0.2rem 0.45rem 0.45rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}
.oj-bot-defib-paddle--l { left: 2%; transform: rotate(-18deg); }
.oj-bot-defib-paddle--r { right: 2%; transform: rotate(18deg); }
.oj-bot-defib-paddle::after {
  content: '';
  position: absolute;
  left: 18%;
  right: 18%;
  top: 18%;
  bottom: 28%;
  background: #fef3c7;
  border-radius: 0.12rem;
  opacity: 0.85;
}
.oj-bot-defib-sparks {
  position: absolute;
  inset: 0;
  overflow: visible;
  pointer-events: none;
}
.oj-bot-defib-sparks i {
  position: absolute;
  left: 50%;
  top: 40%;
  width: 0.2rem;
  height: 0.55rem;
  background: #fde047;
  border-radius: 0.05rem;
  opacity: 0;
  box-shadow: 0 0 6px #facc15;
}
.oj-bot-defib.is-spark .oj-bot-defib-paddle--l,
.oj-bot-defib.is-spark .oj-bot-defib-paddle--r {
  animation: ojPaddleShake 0.12s linear infinite;
}
.oj-bot-defib.is-spark .oj-bot-defib-sparks i,
.oj-bot-defib.is-zap .oj-bot-defib-sparks i {
  animation: ojSparkBurst 0.55s ease-out infinite;
}
.oj-bot-defib.is-spark .oj-bot-defib-sparks i:nth-child(1) { --sx: -18px; --sy: -22px; --sr: 40deg; }
.oj-bot-defib.is-spark .oj-bot-defib-sparks i:nth-child(2) { --sx: 16px; --sy: -26px; --sr: -35deg; animation-delay: 0.05s; }
.oj-bot-defib.is-spark .oj-bot-defib-sparks i:nth-child(3) { --sx: -8px; --sy: -32px; --sr: 10deg; animation-delay: 0.08s; }
.oj-bot-defib.is-spark .oj-bot-defib-sparks i:nth-child(4) { --sx: 22px; --sy: -14px; --sr: -50deg; animation-delay: 0.03s; }
.oj-bot-defib.is-spark .oj-bot-defib-sparks i:nth-child(5) { --sx: -24px; --sy: -10px; --sr: 60deg; animation-delay: 0.1s; }
.oj-bot-defib.is-spark .oj-bot-defib-sparks i:nth-child(6) { --sx: 6px; --sy: -36px; --sr: -15deg; animation-delay: 0.06s; }
.oj-bot-defib.is-zap .oj-bot-defib-unit {
  animation: ojDefibFlash 0.35s ease-in-out 3;
}
.oj-bot-defib.is-zap .oj-bot-defib-screen {
  color: #fef08a;
  background: #1e3a8a;
}
@keyframes ojPaddleShake {
  0%, 100% { transform: rotate(-18deg) translate(0, 0); }
  50% { transform: rotate(-12deg) translate(1px, -1px); }
}
.oj-bot-defib.is-spark .oj-bot-defib-paddle--r {
  animation-name: ojPaddleShakeR;
}
@keyframes ojPaddleShakeR {
  0%, 100% { transform: rotate(18deg) translate(0, 0); }
  50% { transform: rotate(12deg) translate(-1px, -1px); }
}
@keyframes ojSparkBurst {
  0% { opacity: 1; transform: translate(0, 0) rotate(0deg) scale(1); }
  100% { opacity: 0; transform: translate(var(--sx, 10px), var(--sy, -24px)) rotate(var(--sr, 30deg)) scale(0.3); }
}
@keyframes ojDefibFlash {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.6) drop-shadow(0 0 6px #fde047); }
}
.oj-bot-char.is-defib-zap {
  animation: ojBotShake 0.15s linear infinite, ojBotFloat 3.2s ease-in-out infinite;
}

/* Clinical apple */
.oj-bot-apple {
  position: absolute;
  left: 50%;
  bottom: 0.35rem;
  width: 1.7rem;
  height: 1.9rem;
  margin-left: 1.1rem;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  transform: translateX(-50%) translateY(12px) scale(0.5);
  transition: opacity 0.2s ease, transform 0.4s cubic-bezier(0.34, 1.45, 0.64, 1);
}
.oj-bot-apple.is-visible,
.oj-bot-apple.is-enter {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}
.oj-bot-apple.is-exit {
  opacity: 0;
  transform: translateX(-50%) translateY(14px) scale(0.5);
}
.oj-bot-apple-body {
  position: absolute;
  left: 50%;
  bottom: 0.15rem;
  width: 1.35rem;
  height: 1.25rem;
  margin-left: -0.675rem;
  background: radial-gradient(circle at 35% 30%, #f87171, #dc2626 55%, #991b1b);
  border-radius: 50% 50% 48% 48%;
  border: 1.5px solid #7f1d1d;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}
.oj-bot-apple-stem {
  position: absolute;
  left: 50%;
  top: -0.22rem;
  width: 0.14rem;
  height: 0.32rem;
  margin-left: -0.07rem;
  background: #78350f;
  border-radius: 0.05rem;
}
.oj-bot-apple-leaf {
  position: absolute;
  left: 58%;
  top: -0.28rem;
  width: 0.4rem;
  height: 0.28rem;
  background: #22c55e;
  border-radius: 0 60% 0 60%;
  border: 1px solid #15803d;
  transform: rotate(25deg);
}
.oj-bot-apple-shine {
  position: absolute;
  left: 22%;
  top: 22%;
  width: 0.28rem;
  height: 0.35rem;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 50%;
}
.oj-bot-apple-bite {
  position: absolute;
  right: -0.05rem;
  top: 28%;
  width: 0.45rem;
  height: 0.55rem;
  background: transparent;
  border-radius: 50%;
  box-shadow: none;
  opacity: 0;
}
.oj-bot-apple.is-bitten .oj-bot-apple-bite {
  opacity: 1;
  background: #fef2f2;
  box-shadow: inset 2px 0 0 #991b1b;
  border: 1px solid #7f1d1d;
}
.oj-bot-apple.is-study {
  animation: ojAppleInspect 1.2s ease-in-out infinite;
}
.oj-bot-apple.is-bitten {
  animation: ojAppleNibble 0.4s ease-out 1;
}
.oj-bot-apple-tag {
  position: absolute;
  left: 50%;
  bottom: -0.05rem;
  transform: translateX(-50%);
  font-size: 0.32rem;
  font-weight: 800;
  color: #0f766e;
  background: #ccfbf1;
  border: 1px solid #0f766e;
  border-radius: 999px;
  padding: 0.05rem 0.22rem;
  white-space: nowrap;
  font-family: Inter, system-ui, sans-serif;
}
@keyframes ojAppleInspect {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(-6deg) scale(1); }
  50% { transform: translateX(-50%) translateY(-3px) rotate(8deg) scale(1.05); }
}
@keyframes ojAppleNibble {
  0% { transform: translateX(-50%) scale(1); }
  40% { transform: translateX(-50%) scale(0.92) rotate(-10deg); }
  100% { transform: translateX(-50%) scale(1) rotate(0); }
}
.oj-bot-char.is-apple-study .oj-bot-pupils {
  animation: none;
  transform: translate(2px, 1px);
}
.oj-bot-char.is-apple-bite .oj-bot-mouth-default { opacity: 0; }
.oj-bot-char.is-apple-bite .oj-bot-mouth-grin { opacity: 1; }

/* Giant syringe */
.oj-bot-syringe {
  position: absolute;
  left: 50%;
  bottom: 0.2rem;
  width: 3.6rem;
  height: 1.4rem;
  margin-left: 0.2rem;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  transform: translateX(-50%) translateY(12px) rotate(-12deg) scale(0.6);
  transition: opacity 0.2s ease, transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.oj-bot-syringe.is-visible,
.oj-bot-syringe.is-enter {
  opacity: 1;
  transform: translateX(-50%) translateY(0) rotate(-8deg) scale(1);
}
.oj-bot-syringe.is-exit {
  opacity: 0;
  transform: translateX(-50%) translateY(14px) rotate(10deg) scale(0.5);
}
.oj-bot-syringe-body {
  position: relative;
  width: 100%;
  height: 100%;
}
.oj-bot-syringe-plunger {
  position: absolute;
  left: 0;
  top: 28%;
  width: 0.45rem;
  height: 44%;
  background: #64748b;
  border: 1px solid #0f172a;
  border-radius: 0.08rem;
  z-index: 2;
}
.oj-bot-syringe-plunger::before {
  content: '';
  position: absolute;
  left: -0.12rem;
  top: -0.12rem;
  right: -0.12rem;
  height: 0.28rem;
  background: #94a3b8;
  border: 1px solid #0f172a;
  border-radius: 0.08rem;
}
.oj-bot-syringe-barrel {
  position: absolute;
  left: 0.4rem;
  top: 18%;
  width: 58%;
  height: 64%;
  background: rgba(224, 242, 254, 0.95);
  border: 1.5px solid #0369a1;
  border-radius: 0.15rem;
  overflow: hidden;
}
.oj-bot-syringe-fluid {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70%;
  background: linear-gradient(180deg, #67e8f9, #0891b2);
  transition: height 0.45s ease;
}
.oj-bot-syringe-needle {
  position: absolute;
  right: 0.05rem;
  top: 42%;
  width: 28%;
  height: 0.12rem;
  background: linear-gradient(90deg, #94a3b8, #e2e8f0);
  border-radius: 0 1px 1px 0;
}
.oj-bot-syringe-needle::after {
  content: '';
  position: absolute;
  right: -0.12rem;
  top: -0.04rem;
  width: 0;
  height: 0;
  border-top: 0.1rem solid transparent;
  border-bottom: 0.1rem solid transparent;
  border-left: 0.16rem solid #cbd5e1;
}
.oj-bot-syringe.is-ready {
  animation: ojSyringeReady 0.7s ease-in-out infinite alternate;
}
.oj-bot-syringe.is-squirt .oj-bot-syringe-plunger {
  animation: ojPlungerPush 0.45s ease-out forwards;
}
.oj-bot-syringe.is-squirt .oj-bot-syringe-fluid {
  height: 12%;
}
.oj-bot-syringe-squirt {
  position: absolute;
  right: -0.1rem;
  top: 30%;
  width: 1.2rem;
  height: 0.8rem;
  pointer-events: none;
}
.oj-bot-syringe-squirt i {
  position: absolute;
  left: 0;
  top: 40%;
  width: 0.22rem;
  height: 0.22rem;
  background: #22d3ee;
  border-radius: 50%;
  opacity: 0;
}
.oj-bot-syringe.is-squirt .oj-bot-syringe-squirt i {
  animation: ojSquirtDrop 0.7s ease-out forwards;
}
.oj-bot-syringe.is-squirt .oj-bot-syringe-squirt i:nth-child(1) { --qx: 14px; --qy: -10px; }
.oj-bot-syringe.is-squirt .oj-bot-syringe-squirt i:nth-child(2) { --qx: 20px; --qy: 4px; animation-delay: 0.05s; }
.oj-bot-syringe.is-squirt .oj-bot-syringe-squirt i:nth-child(3) { --qx: 10px; --qy: 12px; animation-delay: 0.08s; }
.oj-bot-syringe.is-squirt .oj-bot-syringe-squirt i:nth-child(4) { --qx: 24px; --qy: -2px; animation-delay: 0.03s; }
@keyframes ojSyringeReady {
  0% { transform: translateX(-50%) translateY(0) rotate(-10deg) scale(1); }
  100% { transform: translateX(-50%) translateY(-2px) rotate(-4deg) scale(1.04); }
}
@keyframes ojPlungerPush {
  0% { left: 0; }
  100% { left: 28%; }
}
@keyframes ojSquirtDrop {
  0% { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--qx, 16px), var(--qy, 0)) scale(0.4); }
}
.oj-bot-char.is-syringe-oops {
  animation: ojBotShake 0.2s ease-in-out 4;
}

/* Stethoscope self-listen (uses existing face-prop stethoscope path + body lean) */
.oj-bot-char.is-stetho-listen {
  animation: ojStethoListen 1.1s ease-in-out infinite;
}
.oj-bot-char.is-stetho-listen .oj-bot-face-prop-dr path:first-of-type {
  animation: ojStethoGlow 0.8s ease-in-out infinite alternate;
}
.oj-bot-char.is-stetho-panic {
  animation: ojBotShake 0.25s ease-in-out infinite;
}
.oj-bot-char.is-stetho-panic .oj-bot-mouth-default { opacity: 0; }
.oj-bot-char.is-stetho-panic .oj-bot-mouth-gulp { opacity: 1; }
@keyframes ojStethoListen {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(2px) rotate(-4deg); }
}
@keyframes ojStethoGlow {
  0% { stroke: #0f766e; }
  100% { stroke: #f43f5e; filter: drop-shadow(0 0 2px #fb7185); }
}

/* STAT espresso IV */
.oj-bot-coffee-iv {
  position: absolute;
  left: 50%;
  bottom: 0.15rem;
  width: 1.6rem;
  height: 2.5rem;
  margin-left: -1.6rem;
  opacity: 0;
  pointer-events: none;
  z-index: 4;
  transform: translateX(-50%) translateY(12px) scale(0.6);
  transition: opacity 0.2s ease, transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.oj-bot-coffee-iv.is-visible,
.oj-bot-coffee-iv.is-enter {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}
.oj-bot-coffee-iv.is-exit {
  opacity: 0;
  transform: translateX(-50%) translateY(14px) scale(0.55);
}
.oj-bot-coffee-bag {
  position: absolute;
  left: 10%;
  top: 0;
  width: 80%;
  height: 42%;
  background: linear-gradient(180deg, #fef3c7, #d97706);
  border: 1.5px solid #78350f;
  border-radius: 0.2rem 0.2rem 0.35rem 0.35rem;
  font-size: 0.32rem;
  font-weight: 900;
  color: #451a03;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  font-family: Impact, "Arial Black", sans-serif;
}
.oj-bot-coffee-line {
  position: absolute;
  left: 48%;
  top: 40%;
  width: 0.1rem;
  height: 48%;
  background: linear-gradient(180deg, #a8a29e, #78716c);
  border-radius: 1px;
}
.oj-bot-coffee-drip {
  position: absolute;
  left: 42%;
  bottom: 8%;
  width: 0.28rem;
  height: 0.35rem;
  background: #78350f;
  border-radius: 40% 40% 50% 50%;
  opacity: 0;
}
.oj-bot-coffee-iv.is-drip .oj-bot-coffee-drip {
  animation: ojCoffeeDrip 0.7s ease-in infinite;
}
.oj-bot-coffee-iv.is-drip .oj-bot-coffee-bag {
  animation: ojCoffeePulse 0.9s ease-in-out infinite;
}
@keyframes ojCoffeeDrip {
  0% { opacity: 0; transform: translateY(-6px) scale(0.6); }
  30% { opacity: 1; }
  100% { opacity: 0; transform: translateY(10px) scale(0.9); }
}
@keyframes ojCoffeePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); filter: brightness(1.1); }
}
.oj-bot-char.is-coffee-hyper {
  animation: ojCoffeeHyper 0.28s ease-in-out infinite;
}
.oj-bot-char.is-coffee-hyper .oj-bot-pupils {
  animation: ojEyeTrackMad 0.35s linear infinite;
}
@keyframes ojCoffeeHyper {
  0%, 100% { transform: translate(0, 0) rotate(-2deg) scale(1.04); }
  25% { transform: translate(2px, -3px) rotate(3deg) scale(1.08); }
  50% { transform: translate(-2px, -1px) rotate(-4deg) scale(1.05); }
  75% { transform: translate(1px, -4px) rotate(2deg) scale(1.1); }
}

/* Hide Dr props when boring */
.oj-bot-root.is-pro-boring .oj-bot-scalpel,
.oj-bot-root.is-pro-boring .oj-bot-defib,
.oj-bot-root.is-pro-boring .oj-bot-apple,
.oj-bot-root.is-pro-boring .oj-bot-syringe,
.oj-bot-root.is-pro-boring .oj-bot-coffee-iv {
  display: none !important;
}

/* Pro menu active state */
.oj-bot-menu button.is-on {
  background: rgba(99, 102, 241, 0.18);
  font-weight: 800;
}
.oj-bot-root.oj-bot-role-medical .oj-bot-menu button.is-on {
  background: rgba(20, 184, 166, 0.2);
}
/* Floating name chip above robot during face skit */
.oj-bot-face-label {
  position: absolute;
  top: -0.35rem;
  left: 50%;
  transform: translateX(-50%) translateY(-100%);
  white-space: nowrap;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: #0f172a;
  color: #f8fafc;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 3;
}
/* Showroom only: face label chips (pro dashboards force-hide via role class) */
.oj-bot-root.is-showroom .oj-bot-char.is-face-tradie .oj-bot-face-label,
.oj-bot-root.is-showroom .oj-bot-char.is-face-dr .oj-bot-face-label,
.oj-bot-root.is-showroom .oj-bot-char.is-face-sec .oj-bot-face-label,
.oj-bot-root.is-showroom .oj-bot-char.is-face-counsel .oj-bot-face-label,
.oj-bot-root.is-showroom .oj-bot-char.is-face-clerk .oj-bot-face-label {
  opacity: 1;
  transform: translateX(-50%) translateY(-110%);
}
.oj-bot-char.is-face-tradie .oj-bot-face-label {
  background: #0369a1;
}
.oj-bot-char.is-face-dr .oj-bot-face-label,
.oj-bot-char.is-face-sec .oj-bot-face-label {
  background: #0f766e;
}
.oj-bot-char.is-face-counsel .oj-bot-face-label,
.oj-bot-char.is-face-clerk .oj-bot-face-label {
  background: #4338ca;
}
/* Pop when hat swaps */
.oj-bot-char.is-face-tradie,
.oj-bot-char.is-face-dr,
.oj-bot-char.is-face-sec,
.oj-bot-char.is-face-counsel,
.oj-bot-char.is-face-clerk {
  animation: oj-face-pop 0.55s ease;
}
@keyframes oj-face-pop {
  0% { transform: scale(1); }
  35% { transform: scale(1.08); }
  100% { transform: scale(1); }
}
.oj-bot-showroom-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
.oj-bot-showroom-btn {
  display: block;
  text-align: center;
  padding: 0.65rem 0.9rem;
  border-radius: 0.9rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.12s ease, filter 0.12s ease, background 0.12s ease;
  pointer-events: auto;
}
.oj-bot-showroom-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}
.oj-bot-showroom-btn--primary {
  background: var(--oj-pub-accent, #5b7c99);
  color: #fff !important;
}
.oj-bot-showroom-btn--secondary {
  background: #0f172a;
  color: #fff !important;
}
.oj-bot-showroom-btn--ghost {
  background: #f1f5f9;
  color: #0f172a !important;
  border: 1px solid #e2e8f0;
}
.oj-bot-showroom-btn--medical {
  background: linear-gradient(135deg, #0d9488, #0f766e);
  color: #fff !important;
}
.oj-bot-showroom-btn--legal {
  background: linear-gradient(135deg, #6366f1, #4338ca);
  color: #fff !important;
}
.oj-bot-root.is-showroom-open .oj-bot-ask-panel {
  pointer-events: auto;
}
/* Showroom: never show product tour chrome */
.oj-bot-root.is-showroom [data-oj-bot-skip],
.oj-bot-root.is-showroom [data-oj-bot-next] {
  display: none !important;
}


/* --- Showroom ODDJOBS digger (public only) --- */
.oj-fx-jcb {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
/* Never re-show while [hidden] - beats parade display:block during teardown */
.oj-fx-jcb[hidden],
.oj-bot-root:not(.is-showroom-parade-jcb) .oj-fx-jcb {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.oj-bot-root.is-showroom-parade .oj-bot-speech {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.oj-bot-root.is-showroom-parade-jcb .oj-bot-stage {
  width: 240px !important;
  height: 150px !important;
  overflow: visible !important;
  will-change: left, top;
}
.oj-bot-root.is-showroom-parade-jcb .oj-fx-jcb:not([hidden]) {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: absolute !important;
  left: 0;
  bottom: 0;
  width: 240px !important;
  height: 140px !important;
  z-index: 2;
  pointer-events: none !important;
  overflow: visible !important;
}
.oj-bot-root.is-showroom-jcb-flip .oj-fx-jcb {
  transform: scaleX(-1);
  transform-origin: 120px 70px;
}
.oj-fx-jcb-chassis {
  position: relative;
  width: 100%;
  height: 100%;
}
/* Yellow body */
.oj-fx-jcb-body {
  position: absolute;
  left: 54px;
  bottom: 28px;
  width: 100px;
  height: 42px;
  background: linear-gradient(180deg, #fde047 0%, #eab308 55%, #ca8a04 100%);
  border: 3px solid #0f172a;
  border-radius: 12px 16px 10px 10px;
  box-shadow:
    inset 0 -8px 0 rgba(0,0,0,0.12),
    0 6px 0 rgba(15,23,42,0.15);
}
.oj-fx-jcb-counter {
  position: absolute;
  left: 38px;
  bottom: 34px;
  width: 28px;
  height: 28px;
  background: #a16207;
  border: 3px solid #0f172a;
  border-radius: 6px;
  z-index: 1;
}
/* Cab */
.oj-fx-jcb-cab {
  position: absolute;
  left: 72px;
  bottom: 58px;
  width: 56px;
  height: 48px;
  background: linear-gradient(180deg, #38bdf8, #0369a1);
  border: 3px solid #0f172a;
  border-radius: 10px 10px 4px 4px;
  z-index: 4;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.15);
}
.oj-fx-jcb-roof {
  position: absolute;
  left: -2px;
  right: -2px;
  top: -6px;
  height: 10px;
  background: #0f172a;
  border-radius: 6px 6px 0 0;
}
.oj-fx-jcb-glass {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 10px;
  height: 18px;
  background: linear-gradient(180deg, #e0f2fe, #7dd3fc);
  border: 2px solid #0c4a6e;
  border-radius: 4px;
}
.oj-fx-jcb-seat {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 2px;
  height: 40px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 5;
}
/* OJ in the seat */
.oj-bot-root.is-showroom-parade-jcb .oj-bot-char.is-showroom-jcb-driver {
  position: relative !important;
  width: 48px !important;
  height: 50px !important;
  margin: 0 !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  top: auto !important;
  animation: ojJcbBounce 0.5s ease-in-out infinite !important;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,0.25)) !important;
  transform: none !important;
  z-index: 6;
}
.oj-bot-root.is-showroom-parade-jcb .oj-bot-char .oj-bot-svg {
  width: 100%;
  height: 100%;
}
/* Digging arm */
.oj-fx-jcb-arm {
  position: absolute;
  left: 140px;
  bottom: 48px;
  width: 90px;
  height: 70px;
  transform-origin: 6px 50px;
  animation: ojJcbArm 1.6s ease-in-out infinite;
  z-index: 3;
}
.oj-fx-jcb-boom {
  position: absolute;
  left: 0;
  top: 36px;
  width: 62px;
  height: 12px;
  background: linear-gradient(180deg, #facc15, #a16207);
  border: 2px solid #0f172a;
  border-radius: 5px;
  transform: rotate(-32deg);
  transform-origin: 4px 6px;
}
.oj-fx-jcb-stick {
  position: absolute;
  left: 48px;
  top: 6px;
  width: 12px;
  height: 44px;
  background: linear-gradient(90deg, #eab308, #a16207);
  border: 2px solid #0f172a;
  border-radius: 4px;
  transform: rotate(22deg);
}
.oj-fx-jcb-bucket {
  position: absolute;
  left: 54px;
  top: -2px;
  width: 28px;
  height: 20px;
  background: #78350f;
  border: 2px solid #0f172a;
  border-radius: 3px 10px 6px 3px;
  box-shadow: inset 0 -4px 0 rgba(0,0,0,0.2);
}
/* Wheels */
.oj-fx-jcb-wheel {
  position: absolute;
  bottom: 6px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #94a3b8 0 18%, #1e293b 19% 55%, #020617 56%);
  border: 3px solid #020617;
  animation: ojJcbWheel 0.85s linear infinite;
  z-index: 5;
}
.oj-fx-jcb-wheel--f { left: 64px; }
.oj-fx-jcb-wheel--r { left: 118px; }
.oj-fx-jcb-wheel i {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 2px dashed #cbd5e1;
  display: block;
}
.oj-fx-jcb-plate {
  position: absolute;
  left: 72px;
  bottom: 36px;
  z-index: 6;
  font: 900 7px/1 Impact, Arial Black, sans-serif;
  letter-spacing: 0.04em;
  color: #0f172a;
  background: #fef08a;
  border: 2px solid #0f172a;
  padding: 2px 4px;
  border-radius: 3px;
  white-space: nowrap;
}
.oj-fx-jcb-exhaust {
  position: absolute;
  left: 48px;
  bottom: 72px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.7);
  animation: ojJcbSmoke 1.2s ease-out infinite;
  z-index: 1;
}
.oj-fx-jcb-exhaust::after {
  content: '';
  position: absolute;
  left: -6px;
  top: -10px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.4);
  animation: ojJcbSmoke 1.2s ease-out 0.25s infinite;
}
@keyframes ojJcbBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes ojJcbArm {
  0%, 100% { transform: rotate(2deg); }
  50% { transform: rotate(-16deg); }
}
@keyframes ojJcbWheel {
  to { transform: rotate(360deg); }
}
@keyframes ojJcbSmoke {
  0% { opacity: 0.85; transform: translate(0, 0) scale(0.7); }
  100% { opacity: 0; transform: translate(-10px, -22px) scale(1.5); }
}

/* --- Alert siren (ops “bad shit” flash on his head) --- */
.oj-bot-siren {
  display: none;
  position: absolute;
  left: 50%;
  top: -0.35rem;
  width: 2.1rem;
  height: 1.85rem;
  margin-left: -1.05rem;
  z-index: 30;
  pointer-events: none;
  transform-origin: 50% 90%;
}
.oj-bot-root.is-siren .oj-bot-siren {
  display: block;
  animation: ojSirenBob 0.35s ease-in-out infinite alternate;
}
.oj-bot-siren-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.85));
}
.oj-bot-root.is-siren-amber .oj-bot-siren-svg {
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.9));
}
.oj-bot-root.is-siren-amber .oj-bot-siren-dome {
  fill: #f59e0b;
  stroke: #b45309;
}
.oj-bot-root.is-siren-amber .oj-bot-siren-beam {
  stroke: #fbbf24;
}
.oj-bot-root.is-siren-amber .oj-bot-siren-shine {
  fill: #fef3c7;
}
.oj-bot-root.is-siren .oj-bot-siren-dome {
  animation: ojSirenFlash 0.28s steps(2) infinite;
}
.oj-bot-root.is-siren .oj-bot-siren-bulb {
  animation: ojSirenBulb 0.28s steps(2) infinite;
}
.oj-bot-root.is-siren .oj-bot-siren-beam-l {
  animation: ojSirenBeam 0.4s ease-in-out infinite alternate;
}
.oj-bot-root.is-siren .oj-bot-siren-beam-r {
  animation: ojSirenBeam 0.4s ease-in-out infinite alternate-reverse;
}
.oj-bot-root.is-siren .oj-bot-char {
  filter: drop-shadow(0 0 14px rgba(239, 68, 68, 0.55)) drop-shadow(0 10px 18px rgba(15, 23, 42, 0.35));
}
.oj-bot-root.is-siren-amber .oj-bot-char {
  filter: drop-shadow(0 0 14px rgba(245, 158, 11, 0.5)) drop-shadow(0 10px 18px rgba(15, 23, 42, 0.35));
}
/* Soft screen edge wash for high severity */
.oj-bot-root.is-siren-red::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  box-shadow: inset 0 0 80px 20px rgba(239, 68, 68, 0.12);
  animation: ojSirenWash 0.55s ease-in-out infinite alternate;
}
@keyframes ojSirenFlash {
  0% { fill: #ef4444; opacity: 1; }
  100% { fill: #fca5a5; opacity: 0.75; }
}
@keyframes ojSirenBulb {
  0% { fill: #fef08a; opacity: 1; }
  100% { fill: #fff; opacity: 0.55; }
}
@keyframes ojSirenBeam {
  0% { opacity: 0.25; }
  100% { opacity: 1; }
}
@keyframes ojSirenBob {
  from { transform: rotate(-8deg) translateY(0); }
  to { transform: rotate(8deg) translateY(-2px); }
}
@keyframes ojSirenWash {
  from { opacity: 0.35; }
  to { opacity: 0.85; }
}
@media (prefers-reduced-motion: reduce) {
  .oj-bot-root.is-siren .oj-bot-siren,
  .oj-bot-root.is-siren .oj-bot-siren-dome,
  .oj-bot-root.is-siren .oj-bot-siren-bulb,
  .oj-bot-root.is-siren .oj-bot-siren-beam-l,
  .oj-bot-root.is-siren .oj-bot-siren-beam-r,
  .oj-bot-root.is-siren-red::before {
    animation: none !important;
  }
  .oj-bot-root.is-siren .oj-bot-siren {
    display: block;
  }
}

/* --- Ops self-learn expressions (admin only) ---
   Spinning brain: free learn · xAI talk · expand (not netfail / idle)
   Hats: learn mortarboard · AI chip hat · cloud transfer · cobweb · boom expand
*/
/* SVG <g> must use display:none / inline - display:block is unreliable on SVG groups */
.oj-bot-ops-learn-hat,
.oj-bot-ops-ai-hat,
.oj-bot-ops-cloud,
.oj-bot-ops-cobweb,
.oj-bot-ops-netfail {
  display: none !important;
  visibility: hidden;
  pointer-events: none;
}
.oj-bot-char.is-ops-mode-learn .oj-bot-ops-learn-hat {
  display: inline !important;
  visibility: visible;
}

/* WATCH - free recce: bold cyan visor over the eyes + antenna ping (no LEARN hat / brain) */
.oj-bot-ops-visor-scan {
  display: none;
  position: absolute;
  /* Sit over the SVG eye band (head is upper ~40% of the 6rem char) */
  top: 1.05rem;
  left: 0.7rem;
  right: 0.7rem;
  width: auto;
  height: 1.15rem;
  border-radius: 0.65rem;
  z-index: 55;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(8, 47, 73, 0.55) 0%,
    rgba(14, 165, 233, 0.45) 45%,
    rgba(8, 47, 73, 0.5) 100%
  );
  box-shadow:
    inset 0 0 0 1.5px rgba(125, 211, 252, 0.95),
    inset 0 0 12px rgba(56, 189, 248, 0.45),
    0 0 14px rgba(34, 211, 238, 0.85),
    0 0 28px rgba(14, 165, 233, 0.45);
}
.oj-bot-ops-visor-scan::before {
  content: '';
  position: absolute;
  top: -10%;
  bottom: -10%;
  left: -40%;
  width: 48%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(125, 211, 252, 0.15) 25%,
    rgba(224, 242, 254, 1) 50%,
    rgba(34, 211, 238, 0.55) 65%,
    transparent 100%
  );
  box-shadow: 0 0 12px rgba(186, 230, 253, 0.9);
  animation: ojOpsVisorSweep 1.15s linear infinite;
}
.oj-bot-ops-visor-scan::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0,
    transparent 2px,
    rgba(14, 165, 233, 0.12) 2px,
    rgba(14, 165, 233, 0.12) 3px
  );
  opacity: 0.7;
  pointer-events: none;
}
.oj-bot-char.is-ops-mode-watch .oj-bot-ops-visor-scan {
  display: block !important;
}
/* Eye glow while watching */
.oj-bot-char.is-ops-mode-watch .oj-bot-eye-ball {
  filter: drop-shadow(0 0 4px #22d3ee) drop-shadow(0 0 8px #67e8f9);
}
.oj-bot-char.is-ops-mode-watch .oj-bot-antenna circle:first-of-type {
  animation: ojOpsAntennaPing 1.15s ease-in-out infinite;
}
/* Hide spinning brain / learn hat on pure watch or alive */
.oj-bot-char.is-ops-mode-watch .oj-bot-ops-brain-spin,
.oj-bot-char.is-ops-mode-watch .oj-bot-ops-learn-hat,
.oj-bot-char.is-ops-mode-alive .oj-bot-ops-brain-spin,
.oj-bot-char.is-ops-mode-alive .oj-bot-ops-learn-hat,
.oj-bot-char.is-ops-mode-alive .oj-bot-ops-visor-scan {
  display: none !important;
  visibility: hidden !important;
}
/* ALIVE - red chest bloom + existing SYS chest badge beats once (slow). No head label. */
.oj-bot-ops-chest-glow {
  display: none;
  position: absolute;
  left: 50%;
  top: 3.15rem;
  width: 2.1rem;
  height: 1.75rem;
  margin-left: -1.05rem;
  z-index: 54;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(
    ellipse at 50% 45%,
    rgba(254, 226, 226, 1) 0%,
    rgba(248, 113, 113, 0.95) 32%,
    rgba(220, 38, 38, 0.55) 62%,
    transparent 78%
  );
  box-shadow:
    0 0 16px rgba(239, 68, 68, 1),
    0 0 32px rgba(220, 38, 38, 0.65);
  opacity: 0;
}
.oj-bot-char.is-ops-mode-alive .oj-bot-ops-chest-glow,
.oj-bot-char.is-ops-heartbeat .oj-bot-ops-chest-glow,
.oj-bot-char.is-ops-cron-heart .oj-bot-ops-chest-glow {
  display: block !important;
  animation: ojOpsChestRedOnce 1.7s ease-out 1 both;
}
/* Pulse the real chest SYS/OJ badge (slightly larger once) */
.oj-bot-char.is-ops-mode-alive .oj-bot-chest-badge,
.oj-bot-char.is-ops-heartbeat .oj-bot-chest-badge,
.oj-bot-char.is-ops-cron-heart .oj-bot-chest-badge {
  transform-box: fill-box;
  transform-origin: center;
  animation: ojOpsChestBadgeBeat 1.7s cubic-bezier(0.34, 1.35, 0.64, 1) 1 both;
}
.oj-bot-char.is-ops-mode-alive .oj-bot-badge-text {
  fill: #fecaca !important;
}
.oj-bot-char.is-ops-mode-alive .oj-bot-badge-plate {
  fill: #7f1d1d !important;
  opacity: 1 !important;
}
@keyframes ojOpsVisorSweep {
  0% { transform: translateX(0); opacity: 0.45; }
  40% { opacity: 1; }
  100% { transform: translateX(260%); opacity: 0.45; }
}
@keyframes ojOpsAntennaPing {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(56, 189, 248, 0.4)); }
  50% { filter: drop-shadow(0 0 10px rgba(125, 211, 252, 1)); }
}
/* Slow one-beat on the existing chest badge */
@keyframes ojOpsChestBadgeBeat {
  0% { transform: scale(1); }
  22% { transform: scale(1.28); }
  48% { transform: scale(1.08); }
  72% { transform: scale(1.18); }
  100% { transform: scale(1); }
}
@keyframes ojOpsChestRedOnce {
  0% { opacity: 0; transform: scale(0.7); filter: brightness(0.9); }
  22% { opacity: 1; transform: scale(1.2); filter: brightness(1.2); }
  48% { opacity: 0.9; transform: scale(1.05); }
  72% { opacity: 0.8; transform: scale(1.12); }
  100% { opacity: 0; transform: scale(0.9); }
}
/* Keep OPS beanie for xAI study modes */
.oj-bot-char.is-ops-mode-xai .oj-bot-ops-ai-hat,
.oj-bot-char.is-ops-mode-xai-talk .oj-bot-ops-ai-hat,
.oj-bot-char.is-ops-mode-xai-wait .oj-bot-ops-ai-hat {
  display: inline !important;
  visibility: visible;
}
.oj-bot-char.is-ops-mode-xai .oj-bot-ops-cloud,
.oj-bot-char.is-ops-mode-xai-talk .oj-bot-ops-cloud,
.oj-bot-char.is-ops-mode-xai-wait .oj-bot-ops-cloud {
  display: inline !important;
  visibility: visible;
  animation: ojOpsCloudBob 1.4s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.85));
}
.oj-bot-char.is-ops-mode-cobweb .oj-bot-ops-cobweb {
  display: inline !important;
  visibility: visible;
}
.oj-bot-char.is-ops-mode-netfail .oj-bot-ops-netfail {
  display: inline !important;
  visibility: visible;
}
@keyframes ojOpsCloudBob {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(1px, -2px); }
}

/* Hide OPS beanie when learning / AI hats on */
.oj-bot-char.is-ops-mode-learn .oj-bot-nerd-beanie,
.oj-bot-char.is-ops-mode-xai .oj-bot-nerd-beanie,
.oj-bot-char.is-ops-mode-xai-talk .oj-bot-nerd-beanie,
.oj-bot-char.is-ops-mode-xai-wait .oj-bot-nerd-beanie {
  opacity: 0;
}

/* Hide normal eyes when netfail X-eyes show */
.oj-bot-char.is-ops-mode-netfail .oj-bot-eye-ball,
.oj-bot-char.is-ops-mode-netfail .oj-bot-pupils {
  opacity: 0;
}

/* Spinning brain - ONLY with an active ops mode (not leftover is-learning) */
.oj-bot-ops-brain-spin,
.oj-bot-ops-expand-fx {
  display: none;
  pointer-events: none;
  position: absolute;
  z-index: 45;
}
/* Mode chips under OJ (WATCH/LEARN/xAI/…) - retired, looked cluttered */
.oj-bot-ops-mode-label {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
}
.oj-bot-char.is-ops-mode-learn .oj-bot-ops-brain-spin,
.oj-bot-char.is-learnt .oj-bot-ops-brain-spin,
.oj-bot-char.is-ops-mode-xai .oj-bot-ops-brain-spin,
.oj-bot-char.is-ops-mode-xai-talk .oj-bot-ops-brain-spin,
.oj-bot-char.is-ops-mode-xai-wait .oj-bot-ops-brain-spin,
.oj-bot-char.is-ops-mode-expand .oj-bot-ops-brain-spin {
  display: block !important;
  top: -0.65rem;
  right: -0.45rem;
  font-size: 1.45rem;
  z-index: 60;
  animation: ojOpsBrainSpin 1.1s linear infinite;
  filter: drop-shadow(0 0 10px rgba(34, 211, 238, 1)) drop-shadow(0 0 6px rgba(167, 139, 250, 0.8));
}
.oj-bot-char.is-ops-mode-expand .oj-bot-ops-brain-spin {
  font-size: 1.55rem;
  top: -0.85rem;
  right: -0.55rem;
  animation: ojOpsBrainSpin 0.7s linear infinite, ojOpsExpandBounce 0.55s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 12px rgba(167, 139, 250, 0.95)) drop-shadow(0 0 6px rgba(244, 114, 182, 0.7));
}
.oj-bot-char.is-ops-mode-expand .oj-bot-ops-expand-fx {
  display: block;
  top: -1.4rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.95rem;
  white-space: nowrap;
  animation: ojOpsExpandBoom 0.9s ease-in-out infinite;
}
/* Extra synapse rings while expand brainwave runs */
.oj-bot-char.is-ops-mode-expand::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(167, 139, 250, 0.55);
  animation: ojOpsExpandRing 1.1s ease-out infinite;
  pointer-events: none;
  z-index: 40;
}
.oj-bot-char.is-ops-mode-expand::before {
  content: '';
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 2px dashed rgba(244, 114, 182, 0.4);
  animation: ojOpsExpandRing 1.6s ease-out infinite reverse;
  pointer-events: none;
  z-index: 39;
}
@keyframes ojOpsExpandRing {
  0% { transform: scale(0.75); opacity: 0.85; }
  100% { transform: scale(1.25); opacity: 0; }
}


/* Cloud packet direction: talk = up to cloud, wait = down from cloud */
.oj-bot-ops-cloud-up,
.oj-bot-ops-cloud-down { opacity: 0.25; }
.oj-bot-char.is-ops-mode-xai-talk .oj-bot-ops-cloud-up { opacity: 1; }
.oj-bot-char.is-ops-mode-xai-talk .oj-bot-ops-cloud-down { opacity: 0.2; }
.oj-bot-char.is-ops-mode-xai-wait .oj-bot-ops-cloud-down { opacity: 1; }
.oj-bot-char.is-ops-mode-xai-wait .oj-bot-ops-cloud-up { opacity: 0.2; }
.oj-bot-char.is-ops-mode-xai .oj-bot-ops-cloud-up,
.oj-bot-char.is-ops-mode-xai .oj-bot-ops-cloud-down { opacity: 0.85; }

.oj-bot-ops-pkt--up { animation: ojOpsPktUp 0.85s ease-in-out infinite; }
.oj-bot-ops-pkt--dn { animation: ojOpsPktDn 0.85s ease-in-out infinite; }
@keyframes ojOpsPktUp {
  0% { opacity: 0.2; transform: translate(0, 4px); }
  50% { opacity: 1; }
  100% { opacity: 0.2; transform: translate(6px, -8px); }
}
@keyframes ojOpsPktDn {
  0% { opacity: 0.2; transform: translate(0, -4px); }
  50% { opacity: 1; }
  100% { opacity: 0.2; transform: translate(-5px, 8px); }
}

/* Glow only - do NOT transform the whole char (that froze arm idle sway). */
.oj-bot-char.is-learning,
.oj-bot-char.is-ops-mode-learn {
  animation: none;
  filter: drop-shadow(0 0 14px rgba(34, 211, 238, 0.65)) drop-shadow(0 0 28px rgba(167, 139, 250, 0.35));
}
.oj-bot-char.is-ops-mode-xai,
.oj-bot-char.is-ops-mode-xai-talk,
.oj-bot-char.is-ops-mode-xai-wait {
  animation: none;
  filter: drop-shadow(0 0 16px rgba(167, 139, 250, 0.75)) drop-shadow(0 0 28px rgba(34, 211, 238, 0.4));
}
.oj-bot-char.is-ops-mode-expand {
  animation: ojOpsExpandWiggle 0.5s ease-in-out infinite;
  filter: drop-shadow(0 0 18px rgba(251, 191, 36, 0.75)) drop-shadow(0 0 24px rgba(167, 139, 250, 0.45));
}
.oj-bot-char.is-ops-mode-cobweb {
  animation: ojOpsCobwebShake 0.7s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(148, 163, 184, 0.55));
}
.oj-bot-char.is-ops-mode-netfail {
  animation: ojOpsNetFail 0.55s ease-in-out infinite;
  filter: drop-shadow(0 0 16px rgba(248, 113, 113, 0.65));
}
.oj-bot-char.is-ops-mode-cobweb .oj-bot-ops-cobweb {
  animation: ojOpsWebSweep 1.1s ease-in-out infinite;
  transform-origin: 48px 40px;
}
.oj-bot-char.is-learnt {
  animation: ojOpsLearntPop 0.65s cubic-bezier(0.34, 1.4, 0.64, 1) both;
  filter: drop-shadow(0 0 18px rgba(52, 211, 153, 0.85)) drop-shadow(0 0 12px rgba(251, 191, 36, 0.55));
}
/* LEARNT keeps mortarboard (is-ops-mode-learn) - make it pop with the write flash */
.oj-bot-char.is-learnt.is-ops-mode-learn .oj-bot-ops-learn-hat {
  display: inline !important;
  visibility: visible !important;
  filter: drop-shadow(0 0 8px rgba(52, 211, 153, 0.95)) drop-shadow(0 0 4px rgba(251, 191, 36, 0.7));
}
.oj-bot-char.is-learnt::after {
  content: '✨';
  position: absolute;
  top: -0.45rem;
  right: -0.2rem;
  font-size: 1.35rem;
  animation: ojOpsSpark 0.9s ease-out both;
  pointer-events: none;
  z-index: 56;
}
.oj-bot-root.is-ops-learning .oj-bot-speech,
.oj-bot-root.is-ops-xai .oj-bot-speech {
  border-color: #22d3ee;
  box-shadow:
    4px 5px 0 rgba(34, 211, 238, 0.2),
    0 0 24px -6px rgba(34, 211, 238, 0.45),
    0 14px 36px -14px rgba(15, 23, 42, 0.35);
}
.oj-bot-root.is-ops-xai .oj-bot-speech {
  border-color: #a78bfa;
  box-shadow:
    4px 5px 0 rgba(167, 139, 250, 0.25),
    0 0 24px -6px rgba(167, 139, 250, 0.45);
}
.oj-bot-root.is-ops-netfail .oj-bot-speech {
  border-color: #f87171;
}
.oj-bot-root.is-ops-learning .oj-bot-char.is-learnt ~ .oj-bot-speech,
.oj-bot-root.is-ops-learning .oj-bot-speech.oj-bot-speech--src-brain {
  border-color: #34d399;
}
@keyframes ojOpsLearningPulse {
  0%, 100% { transform: scale(1) rotate(-1deg); }
  50% { transform: scale(1.06) rotate(1.5deg); }
}
@keyframes ojOpsBrainSpin {
  0% { transform: rotate(0deg) scale(1); opacity: 0.85; }
  50% { transform: rotate(180deg) scale(1.12); opacity: 1; }
  100% { transform: rotate(360deg) scale(1); opacity: 0.85; }
}
@keyframes ojOpsLearntPop {
  0% { transform: scale(0.88); }
  55% { transform: scale(1.12); }
  100% { transform: scale(1); }
}
@keyframes ojOpsSpark {
  0% { transform: translateY(6px) scale(0.4); opacity: 0; }
  40% { transform: translateY(-2px) scale(1.25); opacity: 1; }
  100% { transform: translateY(-10px) scale(1); opacity: 0.85; }
}
@keyframes ojOpsExpandWiggle {
  0%, 100% { transform: scale(1) rotate(-3deg); }
  50% { transform: scale(1.1) rotate(3deg); }
}
@keyframes ojOpsExpandBounce {
  0% { transform: rotate(0deg) scale(1); }
  100% { transform: rotate(20deg) scale(1.2); }
}
@keyframes ojOpsExpandBoom {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) scale(0.85); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.15); }
}
@keyframes ojOpsCobwebShake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-4deg) translateX(-2px); }
  75% { transform: rotate(4deg) translateX(2px); }
}
@keyframes ojOpsWebSweep {
  0%, 100% { opacity: 0.7; transform: rotate(-8deg); }
  50% { opacity: 1; transform: rotate(12deg) scale(1.05); }
}
@keyframes ojOpsNetFail {
  0%, 100% { transform: translateY(0) rotate(0); }
  30% { transform: translateY(2px) rotate(-2deg); }
  60% { transform: translateY(-1px) rotate(2deg); }
}

/* --- Admin / Ops nerd skin (glasses + buck teeth + SYS badge) --- */
.oj-bot-root.is-admin-nerd .oj-bot-speech-name {
  color: #a78bfa;
  letter-spacing: 0.06em;
}
.oj-bot-root.is-admin-nerd .oj-bot-launcher-btn {
  background: linear-gradient(135deg, #0e7490, #6d28d9) !important;
  border-color: #22d3ee !important;
}
.oj-bot-root.is-admin-nerd .oj-bot-char {
  filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.35)) drop-shadow(0 10px 18px rgba(15, 23, 42, 0.35));
}
/* Sit siren on top of OPS beanie */
.oj-bot-root.is-admin-nerd.is-siren .oj-bot-siren {
  top: -0.95rem;
  width: 2.25rem;
  height: 2rem;
  margin-left: -1.12rem;
}
.oj-bot-root.is-admin-nerd .oj-bot-nerd-glasses {
  /* sit above eyes */
}
.oj-bot-root.is-admin-nerd .oj-bot-hivis,
.oj-bot-root.is-admin-nerd .oj-bot-toolbelt,
.oj-bot-root.is-admin-nerd .oj-bot-goggles,
.oj-bot-root.is-admin-nerd .oj-bot-hardhat {
  display: none !important;
}
/* Admin ops ask skin (light theme only - dark/envisage overrides below) */
.oj-bot-root.is-admin-nerd .oj-bot-ask-card {
  border-color: #7c3aed;
  box-shadow: 4px 6px 0 rgba(124, 58, 237, 0.2), 0 20px 50px -20px rgba(15, 23, 42, 0.5);
}
.oj-bot-root.is-admin-nerd .oj-bot-ask-head {
  color: #6d28d9;
}
.oj-bot-root.is-admin-nerd .oj-bot-ask-reply {
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
  border-color: #a78bfa;
}
.oj-bot-root.is-admin-nerd .oj-bot-ask-reply-label {
  color: #5b21b6;
}
.oj-bot-root.is-admin-nerd .oj-bot-ask-reply-text {
  color: #0f172a;
}
.oj-bot-root * {
  box-sizing: border-box;
}
.oj-bot-root.is-active,
.oj-bot-root.is-docked {
  pointer-events: auto;
}

/* Dim + spotlight (spotlight alone punches a hole - no extra full scrim over it) */
.oj-bot-scrim {
  display: none; /* spotlight box-shadow provides dim + hole */
}
.oj-bot-spotlight {
  position: fixed;
  z-index: 9989;
  border-radius: 1rem;
  box-shadow:
    0 0 0 4px rgba(14, 165, 233, 0.95),
    0 0 0 9999px rgba(15, 23, 42, 0.55),
    0 12px 40px -10px rgba(14, 165, 233, 0.5);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, top 0.35s ease, left 0.35s ease, width 0.35s ease, height 0.35s ease;
}
.oj-bot-root.is-touring .oj-bot-spotlight.is-on {
  opacity: 1 !important; /* beat any stale inline opacity */
}

/* Character shell - fixed to the *viewport*, not a caged parent box.
   Overflow visible so speech + ops FX (cloud, hats) are not clipped. */
.oj-bot-stage {
  position: fixed;
  z-index: 9991;
  width: 8.5rem;
  height: auto;
  max-width: none;
  max-height: none;
  overflow: visible !important;
  /* no clip-path / contain - full screen roam via left/top */
  contain: none;
  transition: left 0.4s cubic-bezier(0.22, 1, 0.36, 1), top 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  left: auto;
  right: 1rem;
  bottom: 1rem;
  top: auto;
  pointer-events: none; /* only char/speech accept hits */
}
.oj-bot-stage .oj-bot-char,
.oj-bot-stage .oj-bot-speech {
  pointer-events: auto;
}
.oj-bot-root.is-touring .oj-bot-stage,
.oj-bot-root.is-companion .oj-bot-stage,
.oj-bot-root.is-tipping .oj-bot-stage {
  right: auto;
  bottom: auto;
}
/* Companion: never inherit a tiny containing block from a transformed main panel */
.oj-bot-root.is-companion,
.oj-bot-root.is-active {
  position: fixed !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  overflow: visible !important;
  pointer-events: none;
}
.oj-bot-root.is-companion .oj-bot-stage,
.oj-bot-root.is-active .oj-bot-stage {
  pointer-events: none;
}
.oj-bot-root.is-companion .oj-bot-char,
.oj-bot-root.is-companion .oj-bot-speech.is-visible,
.oj-bot-root.is-companion .oj-bot-launcher,
.oj-bot-root.is-companion [data-oj-bot-launcher],
.oj-bot-root.is-companion .oj-bot-launcher-btn,
.oj-bot-root.is-active .oj-bot-char,
.oj-bot-root.is-active .oj-bot-speech.is-visible,
.oj-bot-root.is-active .oj-bot-launcher,
.oj-bot-root.is-active [data-oj-bot-launcher],
.oj-bot-root.is-active .oj-bot-launcher-btn,
.oj-bot-root.is-docked .oj-bot-launcher,
.oj-bot-root.is-docked [data-oj-bot-launcher],
.oj-bot-root.is-docked .oj-bot-launcher-btn {
  pointer-events: auto;
}
/* Movable companion after tour */
.oj-bot-root.is-companion .oj-bot-char {
  cursor: grab;
  touch-action: none;
}
.oj-bot-root.is-dragging .oj-bot-char {
  cursor: grabbing;
}
.oj-bot-root.is-dragging .oj-bot-stage {
  transition: none !important;
  z-index: 9995;
}

/* Classic comic speech bubble */
.oj-bot-speech {
  position: absolute;
  bottom: calc(100% + 0.85rem);
  right: 0;
  left: auto;
  width: min(16.5rem, calc(100vw - 1.5rem));
  max-width: calc(100vw - 1.25rem);
  overflow: visible;
  background: #fff;
  color: #0f172a;
  border: 2.5px solid #0f172a;
  border-radius: 1.35rem;
  padding: 0.8rem 0.95rem 0.75rem;
  box-shadow:
    4px 5px 0 rgba(15, 23, 42, 0.12),
    0 14px 36px -14px rgba(15, 23, 42, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 12; /* below char/scalpel during doc comedy (char z:30) */
  /* avoid clipping multi-line tips */
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  /* transform reserved for JS viewport clamp - don't set scale here */
}
/* Tail pointing down to bot (comic bubble) */
.oj-bot-speech::after {
  content: '';
  position: absolute;
  bottom: -11px;
  right: 1.85rem;
  width: 16px;
  height: 16px;
  background: #fff;
  border-right: 2.5px solid #0f172a;
  border-bottom: 2.5px solid #0f172a;
  transform: rotate(45deg);
  z-index: 1;
}
.oj-bot-speech-tip {
  display: none; /* replaced by ::after tail */
}
/* Flip speech under the bot when near the top of the viewport */
.oj-bot-speech.oj-bot-speech--below {
  bottom: auto;
  top: calc(100% + 0.85rem);
}
.oj-bot-speech.oj-bot-speech--below::after {
  bottom: auto;
  top: -11px;
  border-right: none;
  border-bottom: none;
  border-left: 2.5px solid #0f172a;
  border-top: 2.5px solid #0f172a;
}
.oj-bot-root.is-touring .oj-bot-speech,
.oj-bot-root.is-tipping .oj-bot-speech,
.oj-bot-root.is-farewell .oj-bot-speech,
.oj-bot-root.is-docked .oj-bot-speech.is-visible {
  opacity: 1 !important; /* beat stale inline opacity from companion/comedy */
  pointer-events: auto;
}
/* Tip / tour speech sits above the bot so buttons are easy to hit */
.oj-bot-root.is-tipping .oj-bot-speech,
.oj-bot-root.is-touring .oj-bot-speech {
  z-index: 20;
}
/* Exception: during Dr comedy the scalpel must paint over the bubble */
.oj-bot-root.is-doc-skit.is-tipping .oj-bot-speech,
.oj-bot-root.is-doc-say.is-tipping .oj-bot-speech {
  z-index: 10 !important;
}
.oj-bot-root.is-tipping .oj-bot-speech-actions,
.oj-bot-root.is-touring .oj-bot-speech-actions {
  pointer-events: auto;
}
/* Ops banter: never show tour chrome (Skip tour / Next) */
.oj-bot-speech.oj-bot-speech--ops-chat .oj-bot-speech-actions,
.oj-bot-speech.oj-bot-speech--ops-chat [data-oj-bot-skip],
.oj-bot-speech.oj-bot-speech--ops-chat [data-oj-bot-next],
.oj-bot-speech.oj-bot-speech--ops-chat [data-oj-bot-tip-go],
.oj-bot-speech.oj-bot-speech--ops-chat [data-oj-bot-tip-ok],
.oj-bot-root.is-ops-learning:not(.is-touring):not(.is-tipping) [data-oj-bot-skip],
.oj-bot-root.is-ops-learning:not(.is-touring):not(.is-tipping) [data-oj-bot-next],
.oj-bot-root.is-ops-xai:not(.is-touring):not(.is-tipping) [data-oj-bot-skip],
.oj-bot-root.is-ops-xai:not(.is-touring):not(.is-tipping) [data-oj-bot-next],
.oj-bot-root.is-companion:not(.is-touring):not(.is-tipping) [data-oj-bot-skip],
.oj-bot-root.is-companion:not(.is-touring):not(.is-tipping) [data-oj-bot-next] {
  display: none !important;
}
.oj-bot-root.is-ops-learning:not(.is-touring):not(.is-tipping) .oj-bot-speech-actions,
.oj-bot-root.is-ops-xai:not(.is-touring):not(.is-tipping) .oj-bot-speech-actions,
.oj-bot-speech.oj-bot-speech--ops-chat .oj-bot-speech-actions {
  display: none !important;
}
.oj-bot-speech-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
}
.oj-bot-speech-name {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0284c7;
  margin-bottom: 0;
  min-width: 0;
}
/* Brain vs AI source chip on comic speech bubble (tips + ops pings) */
.oj-bot-speech-source {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  flex-shrink: 0;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.12rem 0.4rem;
  border-radius: 9999px;
  border: 1.5px solid transparent;
  line-height: 1.15;
  white-space: nowrap;
  max-width: 46%;
}
.oj-bot-speech-source[hidden] {
  display: none !important;
}
.oj-bot-speech-source i {
  font-size: 0.62rem;
  line-height: 1;
}
.oj-bot-speech-source.oj-bot-ask-source--free {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #047857;
}
.oj-bot-speech-source.oj-bot-ask-source--ops {
  background: #ecfeff;
  border-color: #67e8f9;
  color: #0e7490;
}
.oj-bot-speech-source.oj-bot-ask-source--xai {
  background: #fef3c7;
  border-color: #fbbf24;
  color: #b45309;
}
.oj-bot-speech--src-brain {
  border-color: #059669;
  box-shadow:
    4px 5px 0 rgba(5, 150, 105, 0.12),
    0 14px 36px -14px rgba(15, 23, 42, 0.35);
}
.oj-bot-speech--src-ops {
  border-color: #0891b2;
  box-shadow:
    4px 5px 0 rgba(8, 145, 178, 0.12),
    0 14px 36px -14px rgba(15, 23, 42, 0.35);
}
.oj-bot-speech--src-ai {
  border-color: #d97706;
  box-shadow:
    4px 5px 0 rgba(217, 119, 6, 0.14),
    0 14px 36px -14px rgba(15, 23, 42, 0.35);
}
html.dark .oj-bot-speech-source.oj-bot-ask-source--free,
html.envisage .oj-bot-speech-source.oj-bot-ask-source--free {
  background: rgba(6, 78, 59, 0.5);
  border-color: rgba(52, 211, 153, 0.55);
  color: #a7f3d0;
}
html.dark .oj-bot-speech-source.oj-bot-ask-source--ops,
html.envisage .oj-bot-speech-source.oj-bot-ask-source--ops {
  background: rgba(8, 51, 68, 0.55);
  border-color: rgba(34, 211, 238, 0.5);
  color: #a5f3fc;
}
html.dark .oj-bot-speech-source.oj-bot-ask-source--xai,
html.envisage .oj-bot-speech-source.oj-bot-ask-source--xai {
  background: rgba(120, 53, 15, 0.55);
  border-color: rgba(251, 191, 36, 0.55);
  color: #fde68a;
}
.oj-bot-speech-text {
  font-size: 0.8125rem;
  line-height: 1.4;
  font-weight: 600;
  color: #1e293b;
}
.oj-bot-speech-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.65rem;
}
.oj-bot-speech-actions button {
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.38rem 0.7rem;
  border: 2px solid #0f172a;
  background: #f8fafc;
  color: #0f172a;
  cursor: pointer;
}
.oj-bot-speech-actions button.primary {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  border-color: #0f172a;
  color: #fff;
}
.oj-bot-speech-actions button:hover {
  filter: brightness(1.05);
}

/* Robot body (pure CSS/SVG) */
.oj-bot-char {
  position: relative;
  width: 5.75rem;
  height: 6rem;
  margin-left: auto;
  cursor: grab;
  filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.28));
  animation: ojBotFloat 3.2s ease-in-out infinite;
  user-select: none;
}
.oj-bot-char:active {
  cursor: grabbing;
}
@keyframes ojBotFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes ojBotWiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-8deg); }
  75% { transform: rotate(8deg); }
}
.oj-bot-char.is-wiggle {
  animation: ojBotWiggle 0.35s ease-in-out 2, ojBotFloat 3.2s ease-in-out infinite;
}
.oj-bot-char svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

/* Antenna bob */
.oj-bot-antenna {
  transform-origin: 48px 20px;
  animation: ojBotAntenna 2.4s ease-in-out infinite;
}
@keyframes ojBotAntenna {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3.5px); }
}

/* Blink */
.oj-bot-eyes {
  transform-origin: 48px 33.5px;
  animation: ojBotBlink 4.2s ease-in-out infinite;
}
@keyframes ojBotBlink {
  0%, 42%, 46%, 100% { transform: scaleY(1); }
  44% { transform: scaleY(0.08); }
}

/* Mouths: default smile; grin / yawn swap in */
.oj-bot-mouth { opacity: 0; }
.oj-bot-mouth-default { opacity: 1; }
.oj-bot-char.is-grin .oj-bot-mouth-default,
.oj-bot-char.is-yawn .oj-bot-mouth-default,
.oj-bot-char.is-silly .oj-bot-mouth-default,
.oj-bot-char.is-laugh .oj-bot-mouth-default,
.oj-bot-char.is-swat .oj-bot-mouth-default,
.oj-bot-char.is-tracking .oj-bot-mouth-default,
.oj-bot-char.is-pissed .oj-bot-mouth-default { opacity: 0; }
.oj-bot-char.is-grin .oj-bot-mouth-grin { opacity: 1; }
.oj-bot-char.is-yawn .oj-bot-mouth-yawn { opacity: 1; }
.oj-bot-char.is-silly .oj-bot-mouth-default { opacity: 0; }

/* Tongue */
.oj-bot-tongue {
  opacity: 0;
  transform: translateY(-4px) scaleY(0.2);
  transform-origin: 48px 42px;
  transition: opacity 0.15s ease, transform 0.2s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.oj-bot-char.is-silly .oj-bot-tongue {
  opacity: 1;
  transform: translateY(2px) scaleY(1);
}
.oj-bot-char.is-silly .oj-bot-eyes {
  transform: scaleY(0.55);
  animation: none;
}
.oj-bot-char.is-yawn .oj-bot-eyes {
  transform: scaleY(0.25);
  animation: none;
}
.oj-bot-char.is-grin .oj-bot-eyes {
  transform: scaleY(0.85);
}

.oj-bot-badge-text {
  pointer-events: none;
}

/* --- Arms: oversized bendy robot limbs (shoulder + elbow + forearm) --- */
.oj-bot-arm-left {
  transform-origin: 30px 56.5px;
  animation: ojArmIdleLeft 3.6s ease-in-out infinite;
}
.oj-bot-fore-left {
  transform-origin: 16px 56.5px;
  animation: ojForeIdleLeft 2.9s ease-in-out infinite;
}
@keyframes ojArmIdleLeft {
  0%, 100% { transform: rotate(8deg); }
  40% { transform: rotate(-16deg); }
  70% { transform: rotate(2deg); }
}
@keyframes ojForeIdleLeft {
  0%, 100% { transform: rotate(12deg); }
  45% { transform: rotate(-28deg); }
  75% { transform: rotate(6deg); }
}
.oj-bot-arm {
  transform-origin: 66px 56.2px;
  animation: ojArmIdleRight 3.2s ease-in-out infinite;
}
.oj-bot-fore-right {
  transform-origin: 84px 56.2px;
  animation: ojForeIdleRight 2.7s ease-in-out infinite;
}
/* Default idle: arm hangs slightly down (positive deg), gentle sway - not stuck pointing up */
.oj-bot-char:not(.is-point):not(.is-wave):not(.is-swat):not(.is-cheer):not(.is-tradie):not(.is-arm-seize):not(.is-arm-loose):not(.is-arm-snap):not(.is-wd40):not(.is-easter-cheer):not(.is-easter-giant):not(.is-hold-board):not(.is-hold-placard):not(.is-showroom-jcb-driver) {
  --oj-bot-arm-deg: 18deg;
}
@keyframes ojArmIdleRight {
  0%, 100% { transform: rotate(calc(var(--oj-bot-arm-deg, 18deg) + 0deg)); }
  35% { transform: rotate(calc(var(--oj-bot-arm-deg, 18deg) + 12deg)); }
  65% { transform: rotate(calc(var(--oj-bot-arm-deg, 18deg) - 10deg)); }
}
@keyframes ojForeIdleRight {
  0%, 100% { transform: rotate(-8deg); }
  40% { transform: rotate(22deg); }
  70% { transform: rotate(-4deg); }
}
.oj-bot-joint {
  pointer-events: none;
}
/* Joint bolts catch a little light */
.oj-bot-root.is-showroom .oj-bot-joint {
  filter: drop-shadow(0 0 1px rgba(125, 211, 252, 0.45));
}
/* Boring showroom: hide multi-persona face labels / costume noise */
.oj-bot-root.is-showroom-boring .oj-bot-face-label,
.oj-bot-root.is-showroom-boring .oj-bot-face-prop,
.oj-bot-root.is-showroom-boring .oj-bot-hardhat,
.oj-bot-root.is-showroom-boring .oj-bot-hivis,
.oj-bot-root.is-showroom-boring .oj-bot-toolbelt,
.oj-bot-root.is-showroom-boring .oj-bot-goggles,
.oj-bot-root.is-showroom-boring .oj-bot-workboots,
.oj-bot-root.is-showroom-boring .oj-bot-tool,
.oj-bot-root.is-showroom-boring .oj-bot-gavel,
.oj-bot-root.is-showroom-boring .oj-bot-scalpel {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.oj-bot-root.is-showroom-boring .oj-bot-feet {
  opacity: 1;
}
/* Pupils glance with pointing */
.oj-bot-pupils {
  transition: transform 0.25s ease;
}
.oj-bot-char.is-point .oj-bot-pupils {
  transform: translate(var(--oj-pupil-x, 0px), var(--oj-pupil-y, 0px));
  animation: none;
}
/* Hold a clear point pose at a UI target */
.oj-bot-char.is-point .oj-bot-arm {
  animation: none;
  transition: transform 0.4s cubic-bezier(0.34, 1.25, 0.64, 1);
  transform: rotate(var(--oj-bot-arm-deg, -36deg));
  transform-origin: 66px 56.2px;
}
.oj-bot-char.is-point .oj-bot-fore-right {
  animation: none;
  transform: rotate(-12deg);
}
.oj-bot-char.is-point .oj-bot-arm-left {
  animation: none;
  transform: rotate(12deg);
}
.oj-bot-char.is-point .oj-bot-hand-default {
  /* slightly jab the finger */
  transform-origin: 85px 56px;
  animation: ojPointJab 1.1s ease-in-out infinite;
}
@keyframes ojPointJab {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(1.5px, -0.5px); }
}
/* Friendly wave - shoulder + elbow both swing (bendy comedy) */
@keyframes ojBotWave {
  0%, 100% { transform: rotate(10deg); }
  25% { transform: rotate(-55deg); }
  50% { transform: rotate(5deg); }
  75% { transform: rotate(-50deg); }
}
@keyframes ojBotWaveFore {
  0%, 100% { transform: rotate(8deg); }
  25% { transform: rotate(-36deg); }
  50% { transform: rotate(4deg); }
  75% { transform: rotate(-30deg); }
}
.oj-bot-char.is-wave .oj-bot-arm {
  animation: ojBotWave 0.45s ease-in-out 3;
  transform-origin: 66px 56.2px;
}
.oj-bot-char.is-wave .oj-bot-fore-right {
  animation: ojBotWaveFore 0.45s ease-in-out 3;
  transform-origin: 84px 56.2px;
}
.oj-bot-char.is-wave .oj-bot-arm-left {
  animation: ojBotWaveLeft 0.45s ease-in-out 3;
  transform-origin: 30px 56.5px;
}
.oj-bot-char.is-wave .oj-bot-fore-left {
  animation: ojBotWaveForeLeft 0.45s ease-in-out 3;
  transform-origin: 16px 56.5px;
}
@keyframes ojBotWaveLeft {
  0%, 100% { transform: rotate(8deg); }
  25% { transform: rotate(40deg); }
  50% { transform: rotate(5deg); }
  75% { transform: rotate(35deg); }
}
@keyframes ojBotWaveForeLeft {
  0%, 100% { transform: rotate(-6deg); }
  25% { transform: rotate(28deg); }
  50% { transform: rotate(-4deg); }
  75% { transform: rotate(22deg); }
}

/* Stump + WD-40 defaults (hidden) */
.oj-bot-arm-stump {
  opacity: 0;
  pointer-events: none;
}
.oj-bot-wd40 {
  opacity: 0;
  pointer-events: none;
  transform-origin: 6px 55px;
}
.oj-bot-wd40-spray {
  opacity: 0;
}
.oj-bot-arm-label {
  position: absolute;
  left: 70%;
  top: 42%;
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #0f172a;
  background: #fbbf24;
  border: 2px solid #0f172a;
  border-radius: 0.3rem;
  padding: 0.05rem 0.3rem;
  opacity: 0;
  pointer-events: none;
  z-index: 6;
  font-family: Impact, "Arial Black", sans-serif;
  transform: rotate(-8deg) scale(0.8);
}

/* 1) Seized arm struggle */
@keyframes ojArmSeize {
  0%, 100% { transform: rotate(18deg); }
  15% { transform: rotate(8deg); }
  30% { transform: rotate(22deg); }
  45% { transform: rotate(6deg); }
  60% { transform: rotate(24deg); }
  75% { transform: rotate(10deg); }
  88% { transform: rotate(20deg); }
}
.oj-bot-char.is-arm-seize .oj-bot-arm {
  animation: ojArmSeize 0.55s ease-in-out infinite !important;
  transform-origin: 66px 56px;
}
.oj-bot-char.is-arm-seize .oj-bot-arm-label {
  opacity: 1;
  animation: ojVirusBadge 0.35s ease-in-out infinite alternate;
}
.oj-bot-char.is-arm-seize .oj-bot-steam {
  opacity: 0.85;
}

/* 2) Look at seized arm */
.oj-bot-char.is-look-arm .oj-bot-pupils {
  transform: translate(2.2px, 1.4px);
  animation: none;
}
.oj-bot-char.is-look-arm .oj-bot-eyes {
  transform: scaleY(0.92);
  animation: none;
}

/* 3) WD-40 spray under armpit */
.oj-bot-char.is-wd40 .oj-bot-wd40 {
  opacity: 1;
  animation: ojWd40Pop 0.35s cubic-bezier(0.34, 1.55, 0.64, 1) both;
}
@keyframes ojWd40Pop {
  0% { opacity: 0; transform: scale(0.3) rotate(-30deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
.oj-bot-char.is-wd40 .oj-bot-arm-left {
  animation: ojWd40Reach 0.7s ease-in-out infinite !important;
  transform-origin: 30px 57px;
}
@keyframes ojWd40Reach {
  0%, 100% { transform: rotate(-8deg) translate(2px, -1px); }
  50% { transform: rotate(-22deg) translate(6px, -3px); }
}
.oj-bot-char.is-wd40 .oj-bot-wd40-spray {
  opacity: 1;
  animation: ojSprayMist 0.45s ease-out infinite;
}
@keyframes ojSprayMist {
  0% { opacity: 0; transform: translate(-4px, 2px) scale(0.4); }
  40% { opacity: 0.85; transform: translate(2px, -1px) scale(1); }
  100% { opacity: 0; transform: translate(10px, -4px) scale(1.25); }
}
.oj-bot-char.is-wd40 .oj-bot-arm {
  animation: ojArmSeize 0.9s ease-in-out infinite !important;
}

/* 4) Arm loosens after spray */
@keyframes ojArmLoose {
  0%, 100% { transform: rotate(10deg); }
  50% { transform: rotate(-25deg); }
}
.oj-bot-char.is-arm-loose .oj-bot-arm {
  animation: ojArmLoose 0.55s ease-in-out 2 !important;
}
.oj-bot-char.is-arm-loose .oj-bot-arm-label {
  opacity: 0;
}

/* ============================================================
   ARM SKIT (clean rewrite)
   Rule: body arm XOR floor prop. Never both.
   Root .is-arm-down = body arm display:none + stump on + floor prop allowed.
   ============================================================ */

/* Body arm hard-off while limb is on the floor (root gate - survives clearMood) */
.oj-bot-root.is-arm-down .oj-bot-arm {
  display: none !important;
}
.oj-bot-root.is-arm-down .oj-bot-arm-stump {
  opacity: 1 !important;
  display: inline !important;
}
.oj-bot-root.is-arm-down .oj-bot-arm-label {
  opacity: 1;
  top: 72%;
  left: 78%;
  animation: ojVirusBadge 0.4s ease-in-out infinite alternate;
}
@keyframes ojStumpPop {
  0% { opacity: 0; transform: scale(0.4); }
  100% { opacity: 1; transform: scale(1); }
}
.oj-bot-root.is-arm-down .oj-bot-arm-stump {
  animation: ojStumpPop 0.28s ease-out both;
}

/* Floor limb - only while is-arm-down, sits by his feet on the stage */
.oj-bot-fallen-arm {
  position: absolute;
  left: 56%;
  bottom: -0.15rem;
  width: 3.6rem;
  height: 1.45rem;
  z-index: 8;
  pointer-events: none;
  transform-origin: 30% 70%;
  filter: drop-shadow(0 3px 4px rgba(15, 23, 42, 0.45));
  display: none;
}
.oj-bot-root.is-arm-down .oj-bot-fallen-arm {
  display: block !important;
}
.oj-bot-root:not(.is-arm-down) .oj-bot-fallen-arm {
  display: none !important;
}
.oj-bot-fallen-arm-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.oj-bot-fallen-arm.is-drop {
  animation: ojArmFloorDrop 0.7s cubic-bezier(0.4, 0.05, 0.45, 1.1) forwards;
}
.oj-bot-fallen-arm.is-pickup {
  animation: ojArmFloorPickup 0.38s ease-in forwards !important;
}
@keyframes ojArmFloorDrop {
  0%   { opacity: 1; transform: translate(10px, -3.2rem) rotate(-40deg) scale(0.85); }
  55%  { opacity: 1; transform: translate(2px, 0.12rem) rotate(118deg) scale(1.08); }
  78%  { transform: translate(2px, -0.06rem) rotate(98deg) scale(1); }
  100% { opacity: 1; transform: translate(2px, 0) rotate(108deg) scale(1); }
}
@keyframes ojArmFloorPickup {
  0%   { opacity: 1; transform: translate(2px, 0) rotate(108deg) scale(1); }
  100% { opacity: 0; transform: translate(-12px, -2.2rem) rotate(12deg) scale(0.7); }
}

/* Stare at floor limb (big eyes down-right) */
.oj-bot-char.is-arm-stare .oj-bot-eyes {
  animation: ojArmStarePulse 0.9s ease-in-out infinite !important;
  transform: scale(1.85) translate(0.5px, 1.2px);
  transform-origin: 48px 33.5px;
}
@keyframes ojArmStarePulse {
  0%, 100% { transform: scale(1.85) translate(0.5px, 1.2px); }
  50% { transform: scale(1.95) translate(0.6px, 1.35px); }
}
.oj-bot-char.is-arm-stare .oj-bot-eye-ball {
  fill: #bbf7d0 !important;
  stroke: #166534;
  stroke-width: 0.35;
}
.oj-bot-char.is-arm-stare .oj-bot-pupils {
  animation: none !important;
  transform: translate(3.4px, 3.6px) !important;
}
.oj-bot-char.is-arm-stare .oj-bot-pupil {
  r: 2.55;
  fill: #022c22 !important;
  opacity: 1 !important;
  transform: none !important;
}
.oj-bot-char.is-arm-stare .oj-bot-eye-shine {
  opacity: 1 !important;
  fill: #fff !important;
  transform: translate(3.1px, 3.2px);
}
.oj-bot-char.is-arm-stare .oj-bot-mouth-default,
.oj-bot-char.is-arm-stare .oj-bot-mouth-grin,
.oj-bot-char.is-arm-stare .oj-bot-mouth-grumpy,
.oj-bot-char.is-arm-stare .oj-bot-mouth-laugh,
.oj-bot-char.is-arm-stare .oj-bot-mouth-yawn {
  opacity: 0 !important;
}
.oj-bot-char.is-arm-stare .oj-bot-mouth-gulp {
  opacity: 1 !important;
  transform: scale(1.25);
  transform-origin: 48px 43.5px;
}
.oj-bot-char.is-arm-stare .oj-bot-antenna {
  transform: rotate(8deg);
  transform-origin: 48px 18px;
}

/* Snap arm back on (only after floor prop destroyed + is-arm-down removed) */
@keyframes ojArmSnapOn {
  0%   { transform: rotate(100deg) translate(0, 40px); opacity: 0.5; }
  55%  { transform: rotate(-8deg) translate(0, -2px); opacity: 1; }
  78%  { transform: rotate(14deg) translate(0, 1px); }
  100% { transform: rotate(var(--oj-bot-arm-deg, 12deg)) translate(0, 0); opacity: 1; }
}
.oj-bot-char.is-arm-snap .oj-bot-arm {
  display: inline !important;
  animation: ojArmSnapOn 0.65s cubic-bezier(0.34, 1.4, 0.64, 1) forwards !important;
}
.oj-bot-char.is-arm-snap .oj-bot-arm-stump {
  opacity: 0 !important;
}
.oj-bot-char.is-arm-snap .oj-bot-arm-label {
  opacity: 0 !important;
}

/* Arm bit speech */
.oj-bot-root.is-arm-show:not(.is-arm-say) .oj-bot-speech {
  opacity: 0 !important;
  pointer-events: none !important;
}
.oj-bot-root.is-arm-say .oj-bot-speech {
  opacity: 1 !important;
  pointer-events: none !important;
  background: #fef3c7 !important;
  border-color: #0f172a !important;
  box-shadow:
    4px 5px 0 rgba(15, 23, 42, 0.15),
    0 0 0 3px rgba(251, 191, 36, 0.3),
    0 14px 36px -14px rgba(15, 23, 42, 0.28) !important;
}

/* Eyes-pop (shared by heartbeat + other bits - keep generic) */
.oj-bot-char.is-eyes-pop .oj-bot-eyes {
  animation: none !important;
  transform: scale(1.55) translateY(0.5px);
  transform-origin: 48px 33.5px;
}
.oj-bot-char.is-eyes-pop .oj-bot-eye-ball {
  fill: #86efac !important;
}
.oj-bot-char.is-eyes-pop .oj-bot-pupils {
  animation: none !important;
}
.oj-bot-char.is-eyes-pop .oj-bot-pupil {
  r: 2.35;
  fill: #052e16 !important;
  opacity: 1 !important;
  transform: none !important;
}
.oj-bot-char.is-eyes-pop .oj-bot-eye-shine {
  opacity: 1 !important;
  fill: #f0fdf4 !important;
}
.oj-bot-char.is-eyes-pop .oj-bot-mouth-default,
.oj-bot-char.is-eyes-pop .oj-bot-mouth-grin,
.oj-bot-char.is-eyes-pop .oj-bot-mouth-grumpy,
.oj-bot-char.is-eyes-pop .oj-bot-mouth-laugh {
  opacity: 0 !important;
}
.oj-bot-char.is-eyes-pop .oj-bot-mouth-gulp {
  opacity: 1 !important;
}
.oj-bot-char.is-eyes-pop.is-look-arm .oj-bot-pupils {
  transform: translate(2.6px, 2.8px) !important;
  animation: none !important;
}

/* Heartbeat surprise skit - same chest pulse as admin Ops alive heart */
.oj-bot-root.is-heart-show:not(.is-heart-say) .oj-bot-speech {
  opacity: 0 !important;
  pointer-events: none !important;
}
.oj-bot-root.is-heart-say .oj-bot-speech {
  opacity: 1 !important;
  pointer-events: none !important;
  background: #fef2f2 !important;
  border-color: #7f1d1d !important;
  box-shadow:
    4px 5px 0 rgba(127, 29, 29, 0.12),
    0 0 0 3px rgba(248, 113, 113, 0.28),
    0 14px 36px -14px rgba(15, 23, 42, 0.28) !important;
}
.oj-bot-root.is-heart-say .oj-bot-speech::after {
  background: #fef2f2 !important;
  border-right-color: #7f1d1d !important;
}
.oj-bot-root.is-heart-say .oj-bot-speech-name {
  color: #b91c1c !important;
}
.oj-bot-root.is-heart-say .oj-bot-speech-text {
  color: #0f172a !important;
  font-weight: 700;
}
.oj-bot-root.is-heart-say .oj-bot-speech-actions {
  display: none !important;
}
/* Comedy heart beat: allow a second ba-dump without ops mode lock */
.oj-bot-char.is-ops-heartbeat .oj-bot-ops-chest-glow,
.oj-bot-char.is-ops-cron-heart .oj-bot-ops-chest-glow {
  display: block !important;
}

/* ── Theo the ginger cat (spawned in JS only during skit) ── */
.oj-bot-root:not(.is-cat-show) .oj-bot-cat {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
}
.oj-bot-root.is-cat-show .oj-bot-cat.is-on,
.oj-bot-root.is-cat-show .oj-bot-cat.is-leave {
  display: block !important;
  visibility: visible !important;
  opacity: 1;
  position: absolute;
  left: -2.2rem;
  bottom: 0.05rem;
  width: 2.65rem;
  height: 1.9rem;
  z-index: 4;
  pointer-events: none;
  overflow: visible;
  filter: drop-shadow(0 2px 3px rgba(15, 23, 42, 0.35));
}
.oj-bot-root.is-cat-show .oj-bot-cat.is-on {
  animation: ojCatEnter 0.75s cubic-bezier(0.34, 1.2, 0.64, 1) both;
}
.oj-bot-cat-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  max-width: 2.65rem;
  max-height: 1.9rem;
}
@keyframes ojCatEnter {
  0% { opacity: 0; transform: translateX(-2.2rem) scale(0.85); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}
.oj-bot-cat.is-sit .oj-bot-cat-body {
  transform-origin: 28px 30px;
  animation: ojCatBreathe 1.6s ease-in-out infinite;
}
.oj-bot-cat.is-sit .oj-bot-cat-tail {
  transform-origin: 42px 24px;
  animation: ojCatTail 1.1s ease-in-out infinite;
}
@keyframes ojCatBreathe {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.04) translateY(-0.4px); }
}
@keyframes ojCatTail {
  0%, 100% { transform: rotate(0deg); }
  40% { transform: rotate(14deg); }
  70% { transform: rotate(-8deg); }
}
.oj-bot-root.is-cat-show .oj-bot-cat.is-leave {
  animation: ojCatLeave 0.7s ease-in forwards;
}
@keyframes ojCatLeave {
  0% { opacity: 1; transform: translateX(0) scale(1); }
  100% { opacity: 0; transform: translateX(-2.6rem) scale(0.9); }
}
/* Left arm pets down toward the cat */
.oj-bot-char.is-pet-cat .oj-bot-arm-left {
  animation: ojPetCatArm 0.55s ease-in-out infinite !important;
  transform-origin: 30px 56.5px;
}
.oj-bot-char.is-pet-cat .oj-bot-fore-left {
  animation: ojPetCatFore 0.55s ease-in-out infinite !important;
  transform-origin: 16px 56.5px;
}
@keyframes ojPetCatArm {
  0%, 100% { transform: rotate(-18deg); }
  50% { transform: rotate(-42deg); }
}
@keyframes ojPetCatFore {
  0%, 100% { transform: rotate(8deg); }
  50% { transform: rotate(28deg); }
}
.oj-bot-char.is-pet-cat .oj-bot-hand-left {
  filter: drop-shadow(0 0 2px rgba(251, 191, 36, 0.35));
}
/* Cat skit speech */
.oj-bot-root.is-cat-show:not(.is-cat-say) .oj-bot-speech {
  opacity: 0 !important;
  pointer-events: none !important;
}
.oj-bot-root.is-cat-say .oj-bot-speech {
  opacity: 1 !important;
  pointer-events: none !important;
  background: #fff7ed !important;
  border-color: #9a3412 !important;
  box-shadow:
    4px 5px 0 rgba(154, 52, 18, 0.12),
    0 0 0 3px rgba(251, 146, 60, 0.28),
    0 14px 36px -14px rgba(15, 23, 42, 0.28) !important;
}
.oj-bot-root.is-cat-say .oj-bot-speech::after {
  background: #fff7ed !important;
  border-right-color: #9a3412 !important;
}
.oj-bot-root.is-cat-say .oj-bot-speech-name {
  color: #c2410c !important;
}
.oj-bot-root.is-cat-say .oj-bot-speech-text {
  color: #0f172a !important;
  font-weight: 700;
}
.oj-bot-root.is-cat-say .oj-bot-speech-actions {
  display: none !important;
}
.oj-bot-root.is-arm-say .oj-bot-speech::after {
  background: #fef3c7 !important;
  border-right-color: #0f172a !important;
  border-bottom-color: #0f172a !important;
}
.oj-bot-root.is-arm-say .oj-bot-speech-name {
  color: #b45309 !important;
}
.oj-bot-root.is-arm-say .oj-bot-speech-text {
  color: #422006 !important;
  font-weight: 800;
}
.oj-bot-root.is-arm-say .oj-bot-speech-actions {
  display: none !important;
}

/* --- Easter egg: full Coyote/Road Runner ACME sketch --- */
.oj-bot-easter {
  position: fixed;
  inset: 0;
  z-index: 9996;
  pointer-events: none;
  overflow: visible;
}
.oj-bot-root.is-easter .oj-bot-stage {
  z-index: 9999;
  transition: left 0.42s cubic-bezier(0.4, 0, 0.2, 1), top 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}
/* After he parks for the sketch, stop all stage sliding (no flitting) */
.oj-bot-root.is-easter.is-easter-parked .oj-bot-stage {
  transition: none !important;
  /* Glued to the true bottom - beats .is-companion { bottom: auto } */
  top: auto !important;
  bottom: 10px !important;
  right: auto !important;
}
/* Kill idle float hop during the easter skit so he sits on the ground */
.oj-bot-root.is-easter .oj-bot-char {
  animation: none !important;
  /* Not draggable mid-egg */
  pointer-events: none !important;
  cursor: default !important;
}
.oj-bot-root.is-easter .oj-bot-char:active {
  cursor: default !important;
}
.oj-bot-char.is-easter-walk {
  animation: ojEasterWaddle 0.42s ease-in-out infinite !important;
}
@keyframes ojEasterWaddle {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-4px) rotate(3deg); }
}

/* Screen flash on boom - brighter, longer, double-pulse */
.oj-bot-fw-flash {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.95), rgba(251, 191, 36, 0.45) 28%, rgba(244, 114, 182, 0.2) 48%, transparent 72%),
    radial-gradient(circle at 20% 30%, rgba(56, 189, 248, 0.35), transparent 40%),
    radial-gradient(circle at 80% 25%, rgba(167, 139, 250, 0.35), transparent 42%);
  opacity: 0;
  z-index: 9995;
  pointer-events: none;
}
.oj-bot-fw-flash.is-on {
  animation: ojFwFlash 1.35s ease-out both;
}
.oj-bot-easter.is-boom-mega .oj-bot-fw-flash.is-on {
  animation: ojFwFlashMega 1.6s ease-out both;
}
@keyframes ojFwFlash {
  0% { opacity: 1; }
  25% { opacity: 0.7; }
  55% { opacity: 0.35; }
  100% { opacity: 0; }
}
@keyframes ojFwFlashMega {
  0% { opacity: 1; filter: brightness(1.4); }
  12% { opacity: 0.55; }
  22% { opacity: 1; filter: brightness(1.6); }
  45% { opacity: 0.65; }
  100% { opacity: 0; filter: brightness(1); }
}

/* Rocket */
.oj-bot-rocket {
  position: fixed;
  width: 4.1rem;
  height: 8.2rem;
  opacity: 0;
  z-index: 9997;
  transform: translate(-50%, 0) scale(0.2) rotate(-25deg);
  transform-origin: 50% 90%;
}
.oj-bot-rocket-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 8px 14px rgba(15, 23, 42, 0.4));
}
.oj-bot-rocket-flame { opacity: 0; transform-origin: 28px 90px; }
.oj-bot-rocket-spark { opacity: 0; }
.oj-bot-rocket-tag {
  position: absolute;
  left: 50%;
  top: -0.35rem;
  transform: translateX(-50%) rotate(-6deg);
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  background: #fef08a;
  color: #0f172a;
  border: 2px solid #0f172a;
  border-radius: 0.2rem;
  padding: 0.05rem 0.3rem;
  opacity: 0;
  white-space: nowrap;
}
.oj-bot-rocket-trail {
  position: absolute;
  left: 50%;
  top: 88%;
  width: 12px;
  height: 0;
  margin-left: -6px;
  border-radius: 999px;
  background: linear-gradient(to bottom, rgba(251, 191, 36, 0.95), rgba(249, 115, 22, 0.2), transparent);
  opacity: 0;
  pointer-events: none;
}

/* Struggle: pull rocket from hammerspace */
.oj-bot-easter.is-rocket-pull .oj-bot-rocket {
  opacity: 1;
  animation: ojRocketPull 1s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}
@keyframes ojRocketPull {
  0% { opacity: 0; transform: translate(-50%, 40px) scale(0.15) rotate(-80deg); }
  40% { opacity: 1; transform: translate(-30%, -10px) scale(1.15) rotate(25deg); }
  70% { transform: translate(-60%, 8px) scale(0.95) rotate(-30deg); }
  100% { transform: translate(-50%, 0) scale(1) rotate(12deg); }
}
/* Drop it */
.oj-bot-easter.is-rocket-drop .oj-bot-rocket {
  opacity: 1;
  animation: ojRocketDrop 0.85s cubic-bezier(0.55, 0.05, 0.7, 0.3) both;
}
@keyframes ojRocketDrop {
  0% { transform: translate(-50%, 0) scale(1) rotate(12deg); }
  40% { transform: translate(-40%, 18px) scale(1.05) rotate(-20deg); }
  100% { transform: translate(-50%, 36px) scale(1) rotate(70deg); }
}
/* Planted upright */
.oj-bot-easter.is-rocket-ready .oj-bot-rocket {
  opacity: 1;
  transform: translate(-50%, 0) scale(1) rotate(-3deg);
  transition: transform 0.45s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.oj-bot-easter.is-rocket-ready .oj-bot-rocket-tag {
  opacity: 1;
  animation: ojVirusBadge 0.5s ease-in-out infinite alternate;
}

/* Match struggle */
.oj-bot-match {
  position: fixed;
  width: 1.6rem;
  height: 3.2rem;
  opacity: 0;
  z-index: 9998;
  transform: translate(-50%, 0) rotate(-20deg);
  pointer-events: none;
}
.oj-bot-match-svg { width: 100%; height: 100%; overflow: visible; }
.oj-bot-match-flame { opacity: 0; }
.oj-bot-easter.is-match-try .oj-bot-match,
.oj-bot-easter.is-match-try-2 .oj-bot-match,
.oj-bot-easter.is-match-lit .oj-bot-match {
  opacity: 1;
}
.oj-bot-easter.is-match-try .oj-bot-match {
  animation: ojMatchScritch 0.35s ease-in-out infinite;
}
.oj-bot-easter.is-match-try-2 .oj-bot-match {
  animation: ojMatchScritch 0.22s ease-in-out infinite;
}
@keyframes ojMatchScritch {
  0%, 100% { transform: translate(-50%, 0) rotate(-25deg); }
  50% { transform: translate(-30%, -6px) rotate(15deg); }
}
.oj-bot-easter.is-match-lit .oj-bot-match-flame {
  opacity: 1;
  animation: ojRocketFlame 0.2s ease-in-out infinite alternate;
}
.oj-bot-easter.is-match-lit .oj-bot-match {
  animation: ojMatchHold 0.5s ease-in-out infinite;
}
@keyframes ojMatchHold {
  0%, 100% { transform: translate(-50%, 0) rotate(-8deg); }
  50% { transform: translate(-50%, -3px) rotate(6deg); }
}

/* Fuse lit + long burn */
.oj-bot-easter.is-fuse .oj-bot-rocket-spark,
.oj-bot-easter.is-fuse-burn .oj-bot-rocket-spark {
  opacity: 1;
  animation: ojFuseSpark 0.22s ease-in-out infinite alternate;
}
@keyframes ojFuseSpark {
  0% { fill: #fbbf24; transform: scale(0.8); }
  100% { fill: #ef4444; transform: scale(1.5); }
}
.oj-bot-easter.is-fuse .oj-bot-rocket,
.oj-bot-easter.is-fuse-burn .oj-bot-rocket {
  opacity: 1;
  animation: ojRocketWobble 0.45s ease-in-out infinite;
}
@keyframes ojRocketWobble {
  0%, 100% { transform: translate(-50%, 0) scale(1) rotate(-4deg); }
  50% { transform: translate(-50%, 2px) scale(1.03) rotate(5deg); }
}
.oj-bot-easter.is-fuse-burn .oj-bot-rocket-fuse-line {
  animation: ojFuseShrink 2.8s linear forwards;
  stroke-dasharray: 40;
  stroke-dashoffset: 0;
}
@keyframes ojFuseShrink {
  0% { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 36; opacity: 0.4; }
}

/* LAUNCH */
.oj-bot-easter.is-launch .oj-bot-rocket {
  opacity: 1;
  animation: ojRocketLaunch 2.6s cubic-bezier(0.2, 0.05, 0.15, 1) forwards !important;
}
.oj-bot-easter.is-launch .oj-bot-rocket-flame {
  opacity: 1;
  animation: ojRocketFlame 0.15s ease-in-out infinite alternate;
}
.oj-bot-easter.is-launch .oj-bot-rocket-fuse,
.oj-bot-easter.is-launch .oj-bot-match,
.oj-bot-easter.is-launch .oj-bot-rocket-tag {
  opacity: 0 !important;
}
.oj-bot-easter.is-launch .oj-bot-rocket-trail {
  opacity: 1;
  animation: ojRocketTrail 2.6s ease-out forwards;
}
@keyframes ojRocketFlame {
  0% { transform: scaleY(0.8) scaleX(0.85); opacity: 0.85; }
  100% { transform: scaleY(1.4) scaleX(1.15); opacity: 1; }
}
@keyframes ojRocketTrail {
  0% { height: 24px; opacity: 0.95; }
  60% { height: 220px; opacity: 0.8; }
  100% { height: 50px; opacity: 0; }
}
@keyframes ojRocketLaunch {
  0% { transform: translate(-50%, 0) scale(1) rotate(-3deg); opacity: 1; }
  8% { transform: translate(-50%, 6px) scale(1.08) rotate(2deg); }
  15% { transform: translate(-50%, -6vh) scale(1.12) rotate(-2deg); }
  35% { transform: translate(calc(-50% + 5vw), -38vh) scale(1) rotate(-8deg); }
  55% { transform: translate(calc(-50% - 3vw), -58vh) scale(0.85) rotate(6deg); }
  78% { transform: translate(-50%, -78vh) scale(0.55) rotate(-3deg); }
  100% { transform: translate(-50%, -95vh) scale(0.2) rotate(0deg); opacity: 0; }
}

/* Firework sky - over-the-top ACME extravaganza */
.oj-bot-fw-sky {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  z-index: 9996;
}
.oj-bot-fw-sky.is-on { opacity: 1; }
.oj-bot-fw-burst {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  opacity: 0;
  will-change: transform, opacity;
}
/* Wave 1 - centre mega + flanks */
.oj-bot-easter.is-boom .oj-bot-fw-burst--a {
  left: 50%; top: 10%;
  background: #fbbf24;
  animation: ojFwBurstXL 1.85s ease-out 0.02s both;
  box-shadow:
    0 -72px 0 4px #fbbf24, 52px -52px 0 3px #f87171, 72px 0 0 4px #38bdf8,
    52px 52px 0 3px #a78bfa, 0 72px 0 4px #f472b6, -52px 52px 0 3px #4ade80,
    -72px 0 0 4px #fde047, -52px -52px 0 3px #fb923c,
    0 -42px 0 2px #fff, 30px -30px 0 2px #fecaca, 42px 0 0 2px #bae6fd,
    -30px 30px 0 2px #bbf7d0, 0 42px 0 2px #fce7f3, -42px 0 0 2px #fef08a,
    18px -60px 0 1px #fff, -18px -60px 0 1px #fff, 60px -18px 0 1px #e0f2fe, -60px 18px 0 1px #fde68a;
}
.oj-bot-easter.is-boom .oj-bot-fw-burst--b {
  left: 18%; top: 18%;
  background: #f472b6;
  animation: ojFwBurstXL 1.9s ease-out 0.18s both;
  box-shadow:
    0 -64px 0 4px #f472b6, 46px -46px 0 3px #fbbf24, 64px 0 0 4px #a78bfa,
    46px 46px 0 3px #38bdf8, 0 64px 0 4px #4ade80, -46px 46px 0 3px #fb923c,
    -64px 0 0 4px #f87171, -46px -46px 0 3px #fde047,
    0 -36px 0 2px #fff, 24px -24px 0 1px #fecdd3;
}
.oj-bot-easter.is-boom .oj-bot-fw-burst--c {
  left: 82%; top: 14%;
  background: #38bdf8;
  animation: ojFwBurstXL 1.85s ease-out 0.28s both;
  box-shadow:
    0 -66px 0 4px #38bdf8, 48px -48px 0 3px #fbbf24, 66px 0 0 4px #f472b6,
    48px 48px 0 3px #a78bfa, 0 66px 0 4px #4ade80, -48px 48px 0 3px #fde047,
    -66px 0 0 4px #fb923c, -48px -48px 0 3px #f87171,
    0 -38px 0 2px #fff;
}
.oj-bot-easter.is-boom .oj-bot-fw-burst--h {
  left: 50%; top: 28%;
  background: #fff;
  animation: ojFwBurst 1.5s ease-out 0.45s both;
  box-shadow:
    0 -38px 0 2px #fff, 28px -28px 0 2px #fde047, 38px 0 0 2px #f472b6,
    28px 28px 0 1px #38bdf8, 0 38px 0 2px #a78bfa, -28px 28px 0 1px #4ade80,
    -38px 0 0 2px #fb923c, -28px -28px 0 2px #fbbf24;
}
/* Wave 2 */
.oj-bot-easter.is-boom-2 .oj-bot-fw-burst--d {
  left: 36%; top: 6%;
  background: #a78bfa;
  animation: ojFwBurstXL 2s ease-out 0.05s both;
  box-shadow:
    0 -78px 0 4px #a78bfa, 55px -55px 0 3px #fbbf24, 78px 0 0 4px #38bdf8,
    55px 55px 0 3px #f472b6, 0 78px 0 4px #4ade80, -55px 55px 0 3px #fb923c,
    -78px 0 0 4px #fde047, -55px -55px 0 3px #f87171,
    0 -44px 0 2px #fff, 22px -66px 0 1px #ede9fe, -22px -66px 0 1px #e0f2fe;
}
.oj-bot-easter.is-boom-2 .oj-bot-fw-burst--e {
  left: 68%; top: 22%;
  background: #4ade80;
  animation: ojFwBurstXL 1.9s ease-out 0.22s both;
  box-shadow:
    0 -58px 0 4px #4ade80, 40px -40px 0 3px #fbbf24, 58px 0 0 4px #f472b6,
    40px 40px 0 3px #38bdf8, 0 58px 0 4px #a78bfa, -40px 40px 0 3px #fb923c,
    -58px 0 0 4px #fde047, -40px -40px 0 3px #f87171;
}
.oj-bot-easter.is-boom-2 .oj-bot-fw-burst--i {
  left: 12%; top: 32%;
  background: #fb7185;
  animation: ojFwBurst 1.7s ease-out 0.35s both;
  box-shadow:
    0 -50px 0 3px #fb7185, 36px -36px 0 2px #fde047, 50px 0 0 3px #38bdf8,
    36px 36px 0 2px #a78bfa, 0 50px 0 3px #4ade80, -36px 36px 0 2px #fbbf24,
    -50px 0 0 3px #f87171, -36px -36px 0 2px #fff;
}
.oj-bot-easter.is-boom-2 .oj-bot-fw-burst--j {
  left: 88%; top: 30%;
  background: #facc15;
  animation: ojFwBurst 1.75s ease-out 0.4s both;
  box-shadow:
    0 -52px 0 3px #facc15, 38px -38px 0 2px #f472b6, 52px 0 0 3px #38bdf8,
    38px 38px 0 2px #a78bfa, 0 52px 0 3px #4ade80, -38px 38px 0 2px #fb923c,
    -52px 0 0 3px #fff, -38px -38px 0 2px #f87171;
}
/* Wave 3 */
.oj-bot-easter.is-boom-3 .oj-bot-fw-burst--f {
  left: 48%; top: 16%;
  background: #fb923c;
  animation: ojFwBurstXL 2.05s ease-out 0.06s both;
  box-shadow:
    0 -82px 0 5px #fb923c, 58px -58px 0 3px #fbbf24, 82px 0 0 5px #38bdf8,
    58px 58px 0 3px #f472b6, 0 82px 0 5px #a78bfa, -58px 58px 0 3px #4ade80,
    -82px 0 0 5px #fde047, -58px -58px 0 3px #f87171,
    0 -48px 0 2px #fff, 32px -70px 0 1px #ffedd5, -32px -70px 0 1px #fff;
}
.oj-bot-easter.is-boom-3 .oj-bot-fw-burst--g {
  left: 28%; top: 26%;
  background: #fde047;
  animation: ojFwBurstXL 1.85s ease-out 0.25s both;
  box-shadow:
    0 -56px 0 3px #fde047, 40px -40px 0 2px #f472b6, 56px 0 0 3px #38bdf8,
    40px 40px 0 2px #a78bfa, 0 56px 0 3px #4ade80, -40px 40px 0 2px #fb923c,
    -56px 0 0 3px #f87171, -40px -40px 0 2px #fbbf24, 0 -30px 0 1px #fff;
}
.oj-bot-easter.is-boom-3 .oj-bot-fw-burst--k {
  left: 72%; top: 8%;
  background: #c084fc;
  animation: ojFwBurst 1.8s ease-out 0.32s both;
  box-shadow:
    0 -54px 0 3px #c084fc, 38px -38px 0 2px #fbbf24, 54px 0 0 3px #38bdf8,
    38px 38px 0 2px #f472b6, 0 54px 0 3px #4ade80, -38px 38px 0 2px #fb923c,
    -54px 0 0 3px #fde047, -38px -38px 0 2px #fff;
}
/* Wave 4 - final chaos */
.oj-bot-easter.is-boom-4 .oj-bot-fw-burst--l {
  left: 50%; top: 20%;
  background: #fff;
  animation: ojFwBurstXL 2.1s ease-out 0.05s both;
  box-shadow:
    0 -90px 0 5px #fbbf24, 64px -64px 0 4px #f472b6, 90px 0 0 5px #38bdf8,
    64px 64px 0 4px #a78bfa, 0 90px 0 5px #4ade80, -64px 64px 0 4px #fb923c,
    -90px 0 0 5px #fde047, -64px -64px 0 4px #f87171,
    0 -50px 0 3px #fff, 36px -78px 0 2px #fff, -36px -78px 0 2px #fff,
    78px -36px 0 2px #e0f2fe, -78px 36px 0 2px #fce7f3;
}
.oj-bot-easter.is-boom-4 .oj-bot-fw-burst--a {
  left: 22%; top: 12%;
  animation: ojFwBurst 1.6s ease-out 0.2s both;
}
.oj-bot-easter.is-boom-4 .oj-bot-fw-burst--c {
  left: 78%; top: 15%;
  animation: ojFwBurst 1.65s ease-out 0.28s both;
}

/* Shockwave rings */
.oj-bot-fw-ring {
  position: absolute;
  left: 50%;
  top: 16%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border-radius: 50%;
  border: 3px solid rgba(254, 243, 199, 0.85);
  opacity: 0;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.6), inset 0 0 12px rgba(255, 255, 255, 0.4);
}
.oj-bot-easter.is-boom .oj-bot-fw-ring--1 {
  animation: ojFwRing 1.4s ease-out 0.05s both;
}
.oj-bot-easter.is-boom-2 .oj-bot-fw-ring--2 {
  top: 12%;
  border-color: rgba(244, 114, 182, 0.75);
  animation: ojFwRing 1.5s ease-out 0.08s both;
}
.oj-bot-easter.is-boom-4 .oj-bot-fw-ring--3 {
  top: 18%;
  border-color: rgba(125, 211, 252, 0.8);
  animation: ojFwRing 1.6s ease-out 0.05s both;
}
@keyframes ojFwRing {
  0% { opacity: 0.95; transform: scale(0.2); filter: blur(0); }
  40% { opacity: 0.7; }
  100% { opacity: 0; transform: scale(18); filter: blur(2px); }
}

/* Sparkle rain across the sky */
.oj-bot-fw-sparkle-rain {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-image:
    radial-gradient(circle, #fff 0 1.2px, transparent 1.5px),
    radial-gradient(circle, #fde047 0 1px, transparent 1.3px),
    radial-gradient(circle, #f9a8d4 0 1px, transparent 1.3px),
    radial-gradient(circle, #7dd3fc 0 1.1px, transparent 1.4px),
    radial-gradient(circle, #a78bfa 0 1px, transparent 1.2px);
  background-size: 90px 90px, 120px 120px, 70px 70px, 100px 100px, 140px 140px;
  background-position: 0 0, 40px 20px, 10px 50px, 60px 10px, 20px 70px;
  pointer-events: none;
}
.oj-bot-easter.is-boom-mega .oj-bot-fw-sparkle-rain,
.oj-bot-easter.is-boom .oj-bot-fw-sparkle-rain {
  animation: ojSparkleRain 4.5s linear both;
}
@keyframes ojSparkleRain {
  0% { opacity: 0; transform: translateY(-8%); }
  12% { opacity: 0.85; }
  70% { opacity: 0.55; }
  100% { opacity: 0; transform: translateY(18%); }
}

@keyframes ojFwBurst {
  0% { opacity: 0; transform: scale(0.08); filter: blur(0); }
  10% { opacity: 1; transform: scale(0.45); }
  40% { opacity: 1; transform: scale(1.25); filter: blur(0.3px); }
  100% { opacity: 0; transform: scale(1.85); filter: blur(3.5px); }
}
@keyframes ojFwBurstXL {
  0% { opacity: 0; transform: scale(0.06); filter: blur(0) brightness(1.5); }
  8% { opacity: 1; transform: scale(0.4); }
  35% { opacity: 1; transform: scale(1.35); filter: blur(0.2px) brightness(1.25); }
  100% { opacity: 0; transform: scale(2.15); filter: blur(4px) brightness(1); }
}

/* Pointing jabs at the placard during finale */
.oj-bot-char.is-hold-placard.is-point .oj-bot-arm {
  animation: ojPointAtSign 0.55s ease-in-out 1 !important;
  transform-origin: 66px 56px;
}
@keyframes ojPointAtSign {
  0% { transform: rotate(-55deg); }
  40% { transform: rotate(-88deg); }
  70% { transform: rotate(-70deg); }
  100% { transform: rotate(var(--oj-bot-arm-deg, -80deg)); }
}

/* Smoke company name */
.oj-bot-fw-smoke {
  position: fixed;
  top: 8%;
  left: 50%;
  transform: translateX(-50%) scale(0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  text-align: center;
  max-width: min(94vw, 40rem);
}
.oj-bot-fw-smoke-line {
  display: block;
  font-family: Impact, "Arial Black", "Helvetica Neue", sans-serif;
  font-size: clamp(1.15rem, 4.6vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 0.2em;
  line-height: 1.12;
  color: rgba(241, 245, 249, 0.9);
  text-transform: uppercase;
  text-shadow:
    0 0 20px rgba(255, 255, 255, 0.6),
    0 0 48px rgba(148, 163, 184, 0.5),
    3px 4px 12px rgba(71, 85, 105, 0.55),
    -2px -1px 16px rgba(226, 232, 240, 0.4);
  filter: blur(0.7px);
}
.oj-bot-fw-smoke-line:nth-child(2) { letter-spacing: 0.24em; }
.oj-bot-fw-smoke-line:nth-child(3) {
  letter-spacing: 0.3em;
  font-size: clamp(1rem, 3.8vw, 2rem);
  opacity: 0.92;
}
.oj-bot-fw-smoke.is-show { animation: ojSmokeForm 2.4s ease-out forwards; }
.oj-bot-fw-smoke.is-fade { animation: ojSmokeDriftFade 6s ease-in forwards !important; }
@keyframes ojSmokeForm {
  0% { opacity: 0; transform: translateX(-50%) translateY(22px) scale(0.65); filter: blur(8px); }
  30% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1.04); filter: blur(0.8px); }
  100% { opacity: 0.94; transform: translateX(-50%) translateY(-8px) scale(1.08); filter: blur(1.4px); }
}
@keyframes ojSmokeDriftFade {
  0% { opacity: 0.92; transform: translateX(-50%) translateY(-8px) scale(1.08); filter: blur(1.4px); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-36px) scale(1.22); filter: blur(10px); }
}

/* ACME cartoon placard - "Jamie is going to kill me" (held ABOVE OJ) */
.oj-bot-placard {
  position: fixed;
  z-index: 10000;
  width: min(11.5rem, 46vw);
  opacity: 0;
  pointer-events: none;
  /* Anchor point = stick bottom in OJ's hand; whole sign sits above */
  transform: translate(-50%, -100%) scale(0.35) rotate(-10deg);
  transform-origin: 50% 100%;
}
.oj-bot-placard.is-show {
  opacity: 1;
  animation: ojPlacardPop 0.55s cubic-bezier(0.34, 1.45, 0.64, 1) both;
}
@keyframes ojPlacardPop {
  0% { opacity: 0; transform: translate(-50%, -20%) scale(0.25) rotate(-22deg); }
  100% { opacity: 1; transform: translate(-50%, calc(-100% - 0.35rem)) scale(1) rotate(-3deg); }
}
.oj-bot-placard-stick {
  position: absolute;
  left: 50%;
  bottom: -1.85rem;
  width: 0.38rem;
  height: 2.2rem;
  margin-left: -0.19rem;
  background: linear-gradient(180deg, #a16207, #78350f);
  border: 1.5px solid #0f172a;
  border-radius: 0.15rem;
  box-shadow: 2px 2px 0 rgba(15, 23, 42, 0.2);
}
.oj-bot-placard-sign {
  position: relative;
  background: #fef08a;
  border: 3px solid #0f172a;
  border-radius: 0.45rem;
  padding: 0.55rem 0.65rem 0.6rem;
  text-align: center;
  box-shadow:
    4px 5px 0 rgba(15, 23, 42, 0.22),
    0 0 0 2px #b45309;
}
.oj-bot-placard-acme {
  display: block;
  font-family: Impact, "Arial Black", sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  color: #b91c1c;
  margin-bottom: 0.2rem;
}
.oj-bot-placard-text {
  display: block;
  font-family: Impact, "Arial Black", "Helvetica Neue", sans-serif;
  font-size: clamp(0.95rem, 3.4vw, 1.25rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: #0f172a;
  text-transform: uppercase;
}

/* Holding placard + looking up at it */
.oj-bot-char.is-hold-placard .oj-bot-arm {
  animation: none !important;
  transform: rotate(var(--oj-bot-arm-deg, -62deg)) !important;
  transform-origin: 66px 56px;
}
.oj-bot-char.is-hold-placard .oj-bot-hand-default {
  opacity: 1;
}
.oj-bot-char.is-hold-placard.is-look-up .oj-bot-pupils {
  transform: translate(var(--oj-pupil-x, 0.5px), var(--oj-pupil-y, -2.3px));
  animation: none;
}
.oj-bot-char.is-hold-placard.is-look-up .oj-bot-eyes {
  transform: scaleY(0.9);
  animation: none;
}

/* Light fuse while standing beside rocket */
.oj-bot-easter.is-lighting .oj-bot-match {
  opacity: 1;
}

/* Tiny chest marquee still available if needed */
.oj-bot-matrix-marquee {
  position: absolute;
  left: 27%;
  top: 54.5%;
  width: 46%;
  height: 13.5%;
  overflow: hidden;
  background: #1a0303;
  border: 1.5px solid #7f1d1d;
  border-radius: 0.22rem;
  opacity: 0;
  pointer-events: none;
  z-index: 4;
}
.oj-bot-matrix-track {
  position: absolute;
  top: 50%;
  left: 0;
  white-space: nowrap;
  font-family: "Courier New", Courier, monospace;
  font-size: 0.42rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #ff2a2a;
  text-shadow: 0 0 4px #ff0000;
}

/* Look up */
.oj-bot-char.is-look-up .oj-bot-pupils {
  transform: translate(var(--oj-pupil-x, 0px), var(--oj-pupil-y, -2px));
  animation: none;
}
.oj-bot-char.is-look-up .oj-bot-eyes {
  transform: scaleY(0.88);
  animation: none;
}

/* 200% GIANT OJ for the finale */
.oj-bot-char.is-easter-giant {
  animation: ojGiantPop 0.55s cubic-bezier(0.34, 1.45, 0.64, 1) both !important;
  transform: scale(2) !important;
  transform-origin: center bottom;
  filter:
    drop-shadow(0 0 18px rgba(251, 191, 36, 0.7))
    drop-shadow(0 16px 28px rgba(15, 23, 42, 0.4)) !important;
  z-index: 10001;
}
@keyframes ojGiantPop {
  0% { transform: scale(1); }
  55% { transform: scale(2.15); }
  100% { transform: scale(2); }
}
.oj-bot-char.is-easter-giant.is-eyes-pop .oj-bot-eyes {
  animation: none !important;
  transform: scale(1.85) translateY(1px) !important;
  transform-origin: 48px 33.5px;
}
.oj-bot-char.is-easter-giant.is-eyes-pop .oj-bot-pupil {
  transform: scale(0.5);
}
.oj-bot-char.is-easter-cheer {
  /* bounce handled with giant */
  filter:
    drop-shadow(0 0 14px rgba(251, 191, 36, 0.6))
    drop-shadow(0 12px 22px rgba(15, 23, 42, 0.3));
}
.oj-bot-char.is-easter-cheer .oj-bot-arm,
.oj-bot-char.is-easter-giant .oj-bot-arm {
  animation: none !important;
  transform: rotate(var(--oj-bot-arm-deg, -78deg));
}
.oj-bot-char.is-hold-board .oj-bot-arm {
  transform: rotate(-55deg) !important;
}

/* Easter speech - small caption under him, never covering sky/rocket */
.oj-bot-root.is-easter .oj-bot-speech {
  max-width: min(14rem, calc(100vw - 1.5rem));
}
.oj-bot-root.is-easter.is-easter-say .oj-bot-speech {
  opacity: 1 !important;
  pointer-events: none !important;
  background: #0f172a !important;
  border-color: #fbbf24 !important;
  color: #fef3c7 !important;
  box-shadow:
    4px 5px 0 rgba(15, 23, 42, 0.35),
    0 0 0 3px rgba(251, 191, 36, 0.28),
    0 14px 36px -14px rgba(15, 23, 42, 0.45) !important;
  z-index: 10002;
  /* Prefer below-bot placement during easter */
}
.oj-bot-root.is-easter .oj-bot-speech.oj-bot-speech--below {
  z-index: 10002;
}

/* Grab & shake the open Messages chat window */
@keyframes ojChatShake {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  15% { transform: translate(-14px, 4px) rotate(-1.5deg); }
  30% { transform: translate(16px, -6px) rotate(1.8deg); }
  45% { transform: translate(-12px, -4px) rotate(-1.2deg); }
  60% { transform: translate(14px, 5px) rotate(1.4deg); }
  75% { transform: translate(-8px, 2px) rotate(-0.8deg); }
  90% { transform: translate(6px, -2px) rotate(0.6deg); }
}
.oj-bot-chat-shake {
  animation: ojChatShake 0.7s ease-in-out 0s 2 !important;
  transform-origin: center center;
}
.oj-bot-root.is-easter.is-easter-say .oj-bot-speech::after {
  background: #0f172a !important;
  border-right-color: #fbbf24 !important;
  border-bottom-color: #fbbf24 !important;
}
.oj-bot-root.is-easter.is-easter-say .oj-bot-speech-name { color: #fbbf24 !important; }
.oj-bot-root.is-easter.is-easter-say .oj-bot-speech-text {
  color: #fef9c3 !important;
  font-weight: 800;
}
.oj-bot-root.is-easter.is-easter-say .oj-bot-speech-actions { display: none !important; }
.oj-bot-root.is-easter .oj-bot-spotlight { opacity: 0 !important; }

/* Keep speech above giant bot */
.oj-bot-root.is-easter .oj-bot-char.is-easter-giant ~ .oj-bot-speech,
.oj-bot-root.is-easter.is-easter-say .oj-bot-speech {
  /* speech is sibling above char in DOM - already high z */
}

/* Field highlight when OJ points at a form control */
.oj-bot-field-highlight {
  outline: 3px solid #38bdf8 !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 6px rgba(56, 189, 248, 0.25), 0 0 24px rgba(56, 189, 248, 0.35) !important;
  animation: ojFieldPulse 0.9s ease-in-out 3;
  border-color: #0ea5e9 !important;
  position: relative;
  z-index: 5;
}
@keyframes ojFieldPulse {
  0%, 100% { outline-color: #38bdf8; }
  50% { outline-color: #fbbf24; }
}

/* --- Ask OJ panel (anchored near OJ, not full-screen bottom) --- */
.oj-bot-ask-panel {
  position: fixed;
  z-index: 10020;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  display: none;
  /* Transparent hit layer for outside-click close - must NOT tint the page theme */
  background: transparent;
  pointer-events: auto;
}
.oj-bot-ask-panel.is-open {
  display: block;
}
.oj-bot-ask-card {
  position: fixed;
  z-index: 10021;
  width: min(18.75rem, calc(100vw - 1.25rem));
  max-width: calc(100vw - 1.25rem);
  max-height: min(55vh, calc(100vh - 1.5rem));
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border: 2.5px solid #0f172a;
  border-radius: 1.15rem;
  padding: 0.75rem 0.85rem 0.85rem;
  box-shadow: 4px 6px 0 rgba(15, 23, 42, 0.15), 0 20px 50px -20px rgba(15, 23, 42, 0.45);
  pointer-events: auto;
  /* left/top set in JS - no position transition (re-place was flashing the window) */
  transition: box-shadow 0.2s ease, border-color 0.15s ease;
}
/* Little comic tail pointing toward OJ when card is above him */
.oj-bot-ask-card.oj-bot-ask-card--above::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  background: #fff;
  border-right: 2.5px solid #0f172a;
  border-bottom: 2.5px solid #0f172a;
  transform: rotate(45deg);
}
.oj-bot-ask-card.oj-bot-ask-card--below::after {
  content: '';
  position: absolute;
  left: 50%;
  top: -9px;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  background: #fff;
  border-left: 2.5px solid #0f172a;
  border-top: 2.5px solid #0f172a;
  transform: rotate(45deg);
}
/* Side placement: hide comic tail (points nowhere useful) */
.oj-bot-ask-card.oj-bot-ask-card--side::after {
  display: none;
}
/* Dim only enough to catch outside-clicks - never recolour the whole page theme */
.oj-bot-ask-panel.is-open {
  background: transparent !important;
}
/*
 * CRITICAL: stage must stay position:fixed while Ask is open.
 * position:relative here made him vanish (left/top stopped being viewport coords)
 * and the chat card fell back to the bottom-right.
 */
/*
 * Stacking while Ask is open:
 *   page < stage (OJ visible) < ask panel (full-screen hit target) < ask card
 * Card is a child of the panel, so the panel MUST be above the stage or the
 * chat paints under him and looks “behind” OJ.
 */
.oj-bot-root.is-ask-open .oj-bot-stage,
.oj-bot-root.is-ask-open [data-oj-bot-stage] {
  position: fixed !important;
  z-index: 10020;
  pointer-events: auto;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  /* Freeze stage tween while chatting - placeStage + re-anchor was flashing the card */
  transition: none !important;
}
.oj-bot-root.is-ask-open .oj-bot-char {
  /* keep char inside stage flow - do NOT promote to fixed/relative that breaks drag */
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 4px 12px rgba(15, 23, 42, 0.25));
  visibility: visible !important;
  opacity: 1 !important;
}
.oj-bot-root.is-ask-open .oj-bot-ask-panel {
  z-index: 10028;
}
.oj-bot-root.is-ask-open .oj-bot-ask-card {
  z-index: 10030;
  /* Explicit so fixed card always wins over OJ even if a parent stacks oddly */
  position: fixed !important;
}

/* Action chips under OJ's reply */
.oj-bot-ask-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.55rem;
}
.oj-bot-ask-action-btn {
  border: 2px solid #0f172a;
  border-radius: 9999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 800;
  background: linear-gradient(135deg, #e0f2fe, #dbeafe);
  color: #0c4a6e;
  cursor: pointer;
  line-height: 1.2;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.oj-bot-ask-action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 2px 2px 0 rgba(15, 23, 42, 0.12);
  background: linear-gradient(135deg, #bae6fd, #bfdbfe);
}
.oj-bot-ask-action-btn:active {
  transform: translateY(0);
}

html.dark .oj-bot-ask-action-btn,
html.envisage .oj-bot-ask-action-btn {
  border-color: rgba(148, 163, 184, 0.45);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.25), rgba(99, 102, 241, 0.22));
  color: #e0f2fe;
}
.oj-bot-root.is-ask-open .oj-bot-char {
  cursor: pointer;
}
.oj-bot-ask-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0284c7;
  margin-bottom: 0.35rem;
}
.oj-bot-ask-close {
  border: none;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 0 0.25rem;
}
.oj-bot-ask-hint {
  font-size: 0.72rem;
  color: #64748b;
  margin: 0 0 0.65rem;
  line-height: 1.35;
}
.oj-bot-ask-row {
  display: flex;
  gap: 0.4rem;
}
.oj-bot-ask-row input {
  flex: 1;
  min-width: 0;
  border: 2px solid #e2e8f0;
  border-radius: 9999px;
  padding: 0.55rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f172a;
  outline: none;
}
.oj-bot-ask-row input:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}
.oj-bot-ask-row button.primary {
  flex-shrink: 0;
  border: 2px solid #0f172a;
  border-radius: 9999px;
  padding: 0.5rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #fff;
  cursor: pointer;
}
.oj-bot-ask-meta {
  margin: 0.5rem 0 0;
  font-size: 0.68rem;
  color: #94a3b8;
  min-height: 1em;
}
.oj-bot-ask-reply {
  margin: 0 0 0.65rem;
  padding: 0.55rem 0.7rem;
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
  border: 1.5px solid #7dd3fc;
  border-radius: 0.85rem;
  max-height: 14rem;
  overflow-y: auto;
}
.oj-bot-ask-reply[hidden] {
  display: none !important;
}
.oj-bot-ask-reply.is-pending {
  background: #f8fafc;
  border-color: #cbd5e1;
}
/* Live pipeline commentary while free brain / xAI run */
.oj-bot-ask-live {
  list-style: none;
  margin: 0.25rem 0 0.4rem;
  padding: 0;
  max-height: 8.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}
.oj-bot-ask-live-item {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #334155;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.55rem;
  padding: 0.28rem 0.45rem;
}
.oj-bot-ask-live-face {
  flex-shrink: 0;
  line-height: 1.2;
}
.oj-bot-ask-live-text {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}
.oj-bot-ask-live--xai {
  border-color: #fbbf24;
  background: #fffbeb;
  color: #78350f;
}
.oj-bot-ask-live--memory {
  border-color: #6ee7b7;
  background: #ecfdf5;
  color: #065f46;
}
.oj-bot-ask-live--error {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #991b1b;
}
.oj-bot-ask-live--seeing {
  border-color: #7dd3fc;
  background: #f0f9ff;
  color: #0c4a6e;
}
.oj-bot-ask-reply-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-bottom: 0.3rem;
}
.oj-bot-ask-reply-tools {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.oj-bot-ask-thumbs-down {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #0f172a;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
.oj-bot-ask-thumbs-down:hover {
  border-color: #f59e0b;
  background: #fffbeb;
  color: #78350f;
}
.oj-bot-ask-thumbs-down:active {
  transform: translateY(1px);
}
.oj-bot-ask-thumbs-down i {
  font-size: 0.75rem;
}
.oj-bot-ask-thumbs-label {
  letter-spacing: 0.02em;
}
html.dark .oj-bot-ask-thumbs-down,
html.envisage .oj-bot-ask-thumbs-down {
  background: #1e293b;
  border-color: #475569;
  color: #e2e8f0;
}
html.dark .oj-bot-ask-thumbs-down:hover,
html.envisage .oj-bot-ask-thumbs-down:hover {
  background: #422006;
  border-color: #f59e0b;
  color: #fde68a;
}
.oj-bot-ask-reply-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0284c7;
  margin-bottom: 0;
}
/* Free vs xAI cost badge on each reply */
.oj-bot-ask-source {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.45rem;
  border-radius: 9999px;
  border: 1.5px solid transparent;
  line-height: 1.2;
  white-space: nowrap;
}
.oj-bot-ask-source i {
  font-size: 0.65rem;
  line-height: 1;
}
.oj-bot-ask-source--free {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #047857;
}
.oj-bot-ask-source--ops {
  background: #ecfeff;
  border-color: #67e8f9;
  color: #0e7490;
}
.oj-bot-ask-source--xai {
  background: #fef3c7;
  border-color: #fbbf24;
  color: #b45309;
}
.oj-bot-ask-reply-kind {
  margin-right: 0.3rem;
  font-size: 0.72rem;
  vertical-align: -0.05em;
}
.oj-bot-ask-reply-kind--brain { color: #059669; }
.oj-bot-ask-reply-kind--ai { color: #d97706; }
html.dark .oj-bot-ask-reply-kind--brain,
html.envisage .oj-bot-ask-reply-kind--brain { color: #6ee7b7; }
html.dark .oj-bot-ask-reply-kind--ai,
html.envisage .oj-bot-ask-reply-kind--ai { color: #fbbf24; }
html.dark .oj-bot-ask-source--ops,
html.envisage .oj-bot-ask-source--ops {
  background: rgba(8, 51, 68, 0.5);
  border-color: rgba(34, 211, 238, 0.5);
  color: #a5f3fc;
}
.oj-bot-ask-reply--free {
  border-color: #6ee7b7;
  background: linear-gradient(135deg, #f0fdf4, #ecfeff);
}
.oj-bot-ask-reply--xai {
  border-color: #fbbf24;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
}
html.dark .oj-bot-ask-source--free,
html.envisage .oj-bot-ask-source--free {
  background: rgba(6, 78, 59, 0.45);
  border-color: rgba(52, 211, 153, 0.5);
  color: #a7f3d0;
}
html.dark .oj-bot-ask-source--xai,
html.envisage .oj-bot-ask-source--xai {
  background: rgba(120, 53, 15, 0.5);
  border-color: rgba(251, 191, 36, 0.55);
  color: #fde68a;
}
html.dark .oj-bot-ask-reply--free,
html.envisage .oj-bot-ask-reply--free {
  border-color: rgba(52, 211, 153, 0.45);
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.35), rgba(8, 47, 73, 0.4));
}
html.dark .oj-bot-ask-reply--xai,
html.envisage .oj-bot-ask-reply--xai {
  border-color: rgba(251, 191, 36, 0.5);
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.4), rgba(69, 26, 3, 0.35));
}
.oj-bot-ask-reply-text {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  color: #0f172a;
  white-space: pre-wrap;
  word-break: break-word;
}
.oj-bot-ask-reply-dots {
  letter-spacing: 0.15em;
  color: #64748b;
  font-size: 1.1rem;
  line-height: 1;
  min-height: 1.2em;
}
.oj-bot-ask-reply-dots span {
  animation: ojThinkDot 1.2s ease-in-out infinite;
  opacity: 0.25;
}
.oj-bot-ask-reply-dots span:nth-child(2) { animation-delay: 0.2s; }
.oj-bot-ask-reply-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes ojThinkDot {
  0%, 80%, 100% { opacity: 0.2; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}
.oj-bot-ask-row input:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  background: #f1f5f9;
  color: #64748b;
}
.oj-bot-ask-row button.primary:disabled {
  opacity: 0.7;
  cursor: wait;
  filter: grayscale(0.15);
}
.oj-bot-ask-card.is-thinking {
  box-shadow: 4px 6px 0 rgba(15, 23, 42, 0.12), 0 0 0 3px rgba(56, 189, 248, 0.25), 0 20px 50px -20px rgba(15, 23, 42, 0.4);
}

/* Thinking pose: bob + antenna whir + eyes searching */
.oj-bot-char.is-thinking {
  animation: ojThinkBob 0.85s ease-in-out infinite !important;
}
.oj-bot-char.is-thinking .oj-bot-antenna {
  animation: ojThinkAntenna 0.45s ease-in-out infinite !important;
  transform-origin: 50% 100%;
}
.oj-bot-char.is-thinking .oj-bot-eyes {
  animation: ojThinkEyes 1.1s ease-in-out infinite !important;
}
.oj-bot-char.is-thinking .oj-bot-pupils {
  animation: ojThinkPupils 1.4s ease-in-out infinite !important;
}
.oj-bot-char.is-thinking .oj-bot-mouth-default {
  opacity: 0;
}
.oj-bot-char.is-thinking .oj-bot-mouth-yawn {
  opacity: 1;
  transform: scaleY(0.55) scaleX(0.9);
  transform-origin: 50% 40%;
}
@keyframes ojThinkBob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-5px) rotate(1.5deg); }
}
@keyframes ojThinkAntenna {
  0%, 100% { transform: rotate(-12deg); }
  50% { transform: rotate(14deg); }
}
@keyframes ojThinkEyes {
  0%, 100% { transform: scaleY(1); }
  45% { transform: scaleY(0.88); }
  55% { transform: scaleY(1); }
}
@keyframes ojThinkPupils {
  0%, 100% { transform: translate(3px, -2px); }
  25% { transform: translate(-3px, -1px); }
  50% { transform: translate(2px, 2px); }
  75% { transform: translate(-2px, -3px); }
}
/* --- Night + Envisage: high-contrast Ask card (readable on purple/dusk UI) --- */
html.dark .oj-bot-ask-card,
html.envisage .oj-bot-ask-card {
  background: #0f172a;
  border-color: #67e8f9;
  color: #f8fafc;
  box-shadow: 4px 6px 0 rgba(8, 47, 73, 0.55), 0 22px 50px -16px rgba(0, 0, 0, 0.55);
}
html.envisage .oj-bot-ask-card {
  /* Envisage dusk: deep violet shell, not pale “white box” */
  background: linear-gradient(165deg, #1e1b4b 0%, #0f172a 55%, #164e63 140%);
  border-color: #a78bfa;
  box-shadow: 4px 6px 0 rgba(76, 29, 149, 0.45), 0 22px 50px -16px rgba(0, 0, 0, 0.55);
}
html.dark .oj-bot-ask-head,
html.envisage .oj-bot-ask-head {
  color: #f8fafc;
  border-bottom-color: rgba(148, 163, 184, 0.25);
}
html.dark .oj-bot-ask-close,
html.envisage .oj-bot-ask-close {
  color: #e2e8f0;
}
html.dark .oj-bot-ask-close:hover,
html.envisage .oj-bot-ask-close:hover {
  color: #fff;
}
html.dark .oj-bot-ask-hint,
html.envisage .oj-bot-ask-hint {
  color: #cbd5e1;
}
html.dark .oj-bot-ask-meta,
html.envisage .oj-bot-ask-meta {
  color: #94a3b8;
}
html.dark .oj-bot-ask-reply,
html.envisage .oj-bot-ask-reply {
  background: rgba(15, 23, 42, 0.92);
  border-color: #38bdf8;
  color: #f8fafc;
}
html.envisage .oj-bot-ask-reply {
  background: rgba(30, 27, 75, 0.85);
  border-color: #c4b5fd;
}
html.dark .oj-bot-ask-reply.is-pending,
html.envisage .oj-bot-ask-reply.is-pending {
  background: rgba(15, 23, 42, 0.75);
  border-color: #64748b;
}
html.dark .oj-bot-ask-reply-label,
html.envisage .oj-bot-ask-reply-label {
  color: #7dd3fc;
}
html.envisage .oj-bot-ask-reply-label {
  color: #ddd6fe;
}
html.dark .oj-bot-ask-reply-text,
html.envisage .oj-bot-ask-reply-text {
  color: #f8fafc !important; /* beat any inherited grey / admin-nerd light rules */
  font-weight: 600;
}
html.dark .oj-bot-ask-reply-dots,
html.envisage .oj-bot-ask-reply-dots {
  color: #cbd5e1;
}
html.dark .oj-bot-ask-reply--free,
html.envisage .oj-bot-ask-reply--free {
  border-color: rgba(52, 211, 153, 0.65);
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.55), rgba(15, 23, 42, 0.9));
}
html.dark .oj-bot-ask-reply--xai,
html.envisage .oj-bot-ask-reply--xai {
  border-color: rgba(251, 191, 36, 0.7);
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.55), rgba(15, 23, 42, 0.9));
}
/* Admin nerd + Envisage/Night: keep purple brand, kill pale reply panels */
html.dark .oj-bot-root.is-admin-nerd .oj-bot-ask-card,
html.envisage .oj-bot-root.is-admin-nerd .oj-bot-ask-card {
  border-color: #c4b5fd;
  box-shadow: 4px 6px 0 rgba(109, 40, 217, 0.4), 0 22px 50px -16px rgba(0, 0, 0, 0.55);
}
html.dark .oj-bot-root.is-admin-nerd .oj-bot-ask-head,
html.envisage .oj-bot-root.is-admin-nerd .oj-bot-ask-head {
  color: #e9d5ff;
}
html.dark .oj-bot-root.is-admin-nerd .oj-bot-ask-reply,
html.envisage .oj-bot-root.is-admin-nerd .oj-bot-ask-reply {
  background: linear-gradient(145deg, rgba(46, 16, 101, 0.9), rgba(15, 23, 42, 0.95));
  border-color: #a78bfa;
}
html.dark .oj-bot-root.is-admin-nerd .oj-bot-ask-reply-label,
html.envisage .oj-bot-root.is-admin-nerd .oj-bot-ask-reply-label {
  color: #ddd6fe;
}
html.dark .oj-bot-root.is-admin-nerd .oj-bot-ask-reply-text,
html.envisage .oj-bot-root.is-admin-nerd .oj-bot-ask-reply-text {
  color: #f8fafc !important;
}
html.dark .oj-bot-ask-row input:disabled,
html.envisage .oj-bot-ask-row input:disabled {
  background: #1e293b;
  color: #94a3b8;
}
html.dark .oj-bot-ask-card.oj-bot-ask-card--above::after,
html.envisage .oj-bot-ask-card.oj-bot-ask-card--above::after,
html.dark .oj-bot-ask-card.oj-bot-ask-card--below::after,
html.envisage .oj-bot-ask-card.oj-bot-ask-card--below::after {
  background: #0f172a;
  border-color: #67e8f9;
}
html.envisage .oj-bot-ask-card.oj-bot-ask-card--above::after,
html.envisage .oj-bot-ask-card.oj-bot-ask-card--below::after {
  background: #1e1b4b;
  border-color: #a78bfa;
}
html.dark .oj-bot-ask-row input,
html.envisage .oj-bot-ask-row input {
  background: #020617;
  border-color: #64748b;
  color: #f8fafc;
  caret-color: #f8fafc;
}
html.dark .oj-bot-ask-row input::placeholder,
html.envisage .oj-bot-ask-row input::placeholder {
  color: #94a3b8;
  opacity: 1;
}
html.dark .oj-bot-ask-row input:focus,
html.envisage .oj-bot-ask-row input:focus {
  border-color: #a78bfa;
  outline: none;
  box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.25);
}
html.dark .oj-bot-ask-row button.primary,
html.envisage .oj-bot-ask-row button.primary {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  color: #fff;
  border-color: transparent;
}
html.dark .oj-bot-ask-action-btn,
html.envisage .oj-bot-ask-action-btn {
  background: linear-gradient(135deg, #312e81, #1e3a5f);
  border-color: #a5b4fc;
  color: #e0e7ff;
}
html.dark .oj-bot-ask-action-btn:hover,
html.envisage .oj-bot-ask-action-btn:hover {
  background: linear-gradient(135deg, #4338ca, #1d4ed8);
  color: #fff;
}
/* Keep page theme untouched when Ask opens (no purple/slate full-screen wash) */
html.dark .oj-bot-ask-panel.is-open,
html.envisage .oj-bot-ask-panel.is-open {
  background: transparent !important;
}

/* --- Message alert: comical buzz / shake --- */
.oj-bot-char.is-msg-buzz {
  animation: ojMsgBuzz 0.45s ease-in-out infinite !important;
  filter:
    drop-shadow(0 0 12px rgba(56, 189, 248, 0.55))
    drop-shadow(0 8px 16px rgba(15, 23, 42, 0.28));
}
@keyframes ojMsgBuzz {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  15% { transform: translate(-5px, 2px) rotate(-6deg); }
  30% { transform: translate(6px, -2px) rotate(5deg); }
  45% { transform: translate(-4px, -3px) rotate(-4deg); }
  60% { transform: translate(5px, 2px) rotate(6deg); }
  75% { transform: translate(-3px, 1px) rotate(-3deg); }
  90% { transform: translate(3px, -1px) rotate(2deg); }
}
.oj-bot-char.is-msg-buzz .oj-bot-antenna {
  animation: ojMsgAntenna 0.35s ease-in-out infinite !important;
}
@keyframes ojMsgAntenna {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(12deg); }
}
.oj-bot-root.is-msg-buzz-show .oj-bot-speech {
  animation: ojMsgBubblePulse 0.5s ease-in-out infinite alternate;
}
@keyframes ojMsgBubblePulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.03); }
}
.oj-bot-root.is-msg-buzz-show .oj-bot-speech-name {
  color: #0284c7 !important;
}

/* --- New job alert: bounce + “look at that!” --- */
.oj-bot-char.is-job-alert {
  animation: ojJobAlertBounce 0.55s ease-in-out infinite !important;
  filter:
    drop-shadow(0 0 14px rgba(249, 115, 22, 0.55))
    drop-shadow(0 10px 18px rgba(15, 23, 42, 0.28));
}
@keyframes ojJobAlertBounce {
  0%, 100% { transform: translateY(0) rotate(-2deg) scale(1); }
  40% { transform: translateY(-10px) rotate(3deg) scale(1.06); }
  70% { transform: translateY(-4px) rotate(-1deg) scale(1.02); }
}
.oj-bot-char.is-job-alert .oj-bot-arm {
  animation: ojJobAlertPoint 0.7s ease-in-out infinite !important;
  transform-origin: 66px 56px;
}
@keyframes ojJobAlertPoint {
  0%, 100% { transform: rotate(-20deg); }
  50% { transform: rotate(-55deg); }
}
.oj-bot-root.is-job-alert-show .oj-bot-speech {
  background: #fff7ed !important;
  border-color: #ea580c !important;
  box-shadow:
    4px 5px 0 rgba(15, 23, 42, 0.12),
    0 0 0 3px rgba(249, 115, 22, 0.25),
    0 14px 36px -14px rgba(15, 23, 42, 0.3) !important;
}
.oj-bot-root.is-job-alert-show .oj-bot-speech::after {
  background: #fff7ed !important;
  border-right-color: #ea580c !important;
  border-bottom-color: #ea580c !important;
}
.oj-bot-root.is-job-alert-show .oj-bot-speech-name {
  color: #c2410c !important;
}

/* --- Funny medals (awarded on completed actions) --- */
.oj-bot-medal {
  position: absolute;
  left: 50%;
  top: -0.85rem;
  transform: translateX(-50%) scale(0.4);
  font-size: 1.65rem;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  z-index: 8;
  filter: drop-shadow(0 4px 8px rgba(15, 23, 42, 0.35));
}
.oj-bot-char.is-medal .oj-bot-medal {
  opacity: 1;
  animation: ojMedalPop 0.55s cubic-bezier(0.34, 1.55, 0.64, 1) both,
    ojMedalBob 0.7s ease-in-out 0.55s infinite alternate;
}
@keyframes ojMedalPop {
  0% { opacity: 0; transform: translateX(-50%) translateY(12px) scale(0.2) rotate(-20deg); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1) rotate(0deg); }
}
@keyframes ojMedalBob {
  0% { transform: translateX(-50%) translateY(0) scale(1) rotate(-4deg); }
  100% { transform: translateX(-50%) translateY(-5px) scale(1.08) rotate(5deg); }
}
.oj-bot-char.is-medal {
  animation: ojBotTradieBounce 0.55s ease-in-out infinite !important;
  filter:
    drop-shadow(0 0 14px rgba(251, 191, 36, 0.65))
    drop-shadow(0 10px 18px rgba(15, 23, 42, 0.28));
}
.oj-bot-root.is-medal-show .oj-bot-speech {
  opacity: 1 !important;
  pointer-events: none !important;
  background: #fef9c3 !important;
  border-color: #0f172a !important;
  box-shadow:
    4px 5px 0 rgba(15, 23, 42, 0.15),
    0 0 0 3px rgba(250, 204, 21, 0.4),
    0 14px 36px -14px rgba(15, 23, 42, 0.3) !important;
}
.oj-bot-root.is-medal-show .oj-bot-speech::after {
  background: #fef9c3 !important;
  border-right-color: #0f172a !important;
  border-bottom-color: #0f172a !important;
}
.oj-bot-root.is-medal-show .oj-bot-speech-name {
  color: #a16207 !important;
  letter-spacing: 0.08em;
}
.oj-bot-root.is-medal-show .oj-bot-speech-text {
  color: #422006 !important;
  font-weight: 800;
}
.oj-bot-root.is-medal-show .oj-bot-speech-actions {
  display: none !important;
}

/* Blow a kiss 💕 */
.oj-bot-hearts {
  position: absolute;
  left: 50%;
  top: 28%;
  font-size: 1.1rem;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0) scale(0.4);
  z-index: 3;
}
.oj-bot-char.is-kiss .oj-bot-hearts {
  animation: ojBotKiss 1.4s ease-out forwards;
}
@keyframes ojBotKiss {
  0% { opacity: 0; transform: translate(-50%, 4px) scale(0.3); }
  20% { opacity: 1; transform: translate(-30%, -6px) scale(1); }
  100% { opacity: 0; transform: translate(20%, -42px) scale(1.35); }
}
.oj-bot-char.is-kiss .oj-bot-mouth-default { opacity: 0; }
.oj-bot-char.is-kiss .oj-bot-mouth-grin { opacity: 1; }

.oj-bot-speech-actions button.hidden,
.oj-bot-speech-actions .hidden {
  display: none !important;
}
.oj-bot-root.is-farewell .oj-bot-spotlight {
  opacity: 0 !important;
}

/* --- Fly comedy: track → brows → swatter → swat → kill/miss --- */
.oj-bot-fly {
  position: absolute;
  width: 1.45rem;
  height: 1.45rem;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  z-index: 6;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.25));
}
.oj-bot-fly-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.oj-bot-fly.is-buzzing {
  opacity: 1;
  /* slower, longer loop - more buzzing before the swat */
  animation: ojFlyBuzz 2.4s linear infinite;
}
/* Dramatic death spiral */
.oj-bot-fly.is-falling {
  opacity: 1;
  animation: ojFlyFall 1.35s cubic-bezier(0.4, 0.05, 0.7, 0.2) forwards;
}
.oj-bot-fly.is-dead .oj-bot-fly-x {
  opacity: 1 !important;
}
.oj-bot-fly.is-dead .oj-bot-fly-wing-l,
.oj-bot-fly.is-dead .oj-bot-fly-wing-r {
  animation: none !important;
  opacity: 0.45;
}
/* Escapes!
 */
.oj-bot-fly.is-miss {
  opacity: 1;
  animation: ojFlyMiss 0.95s ease-in forwards;
}
@keyframes ojFlyBuzz {
  0%   { transform: translate(78px, -14px) rotate(-10deg); }
  8%   { transform: translate(52px, 8px) rotate(8deg); }
  16%  { transform: translate(18px, -8px) rotate(-16deg); }
  24%  { transform: translate(64px, 28px) rotate(12deg); }
  32%  { transform: translate(8px, 14px) rotate(-20deg); }
  40%  { transform: translate(70px, -4px) rotate(6deg); }
  48%  { transform: translate(28px, 32px) rotate(-8deg); }
  56%  { transform: translate(82px, 20px) rotate(18deg); }
  64%  { transform: translate(14px, 2px) rotate(-14deg); }
  72%  { transform: translate(58px, -12px) rotate(10deg); }
  80%  { transform: translate(36px, 24px) rotate(-12deg); }
  88%  { transform: translate(74px, 10px) rotate(14deg); }
  96%  { transform: translate(44px, -6px) rotate(-6deg); }
  100% { transform: translate(78px, -14px) rotate(-10deg); }
}
@keyframes ojFlyFall {
  0%   { opacity: 1; transform: translate(52px, 14px) scale(1) rotate(0deg); }
  15%  { opacity: 1; transform: translate(58px, 20px) scale(1.05) rotate(50deg); }
  40%  { opacity: 1; transform: translate(48px, 48px) scale(0.95) rotate(140deg); }
  70%  { opacity: 1; transform: translate(40px, 88px) scale(0.85) rotate(280deg); }
  100% { opacity: 0; transform: translate(36px, 120px) scale(0.5) rotate(400deg); }
}
@keyframes ojFlyMiss {
  0%   { opacity: 1; transform: translate(50px, 12px) scale(1) rotate(0deg); }
  30%  { opacity: 1; transform: translate(20px, -20px) scale(1.1) rotate(-30deg); }
  100% { opacity: 0; transform: translate(-40px, -80px) scale(0.6) rotate(-120deg); }
}
.oj-bot-fly.is-buzzing .oj-bot-fly-wing-l {
  transform-origin: 12px 11px;
  animation: ojWingL 0.08s ease-in-out infinite;
}
.oj-bot-fly.is-buzzing .oj-bot-fly-wing-r {
  transform-origin: 12px 11px;
  animation: ojWingR 0.08s ease-in-out infinite;
}
@keyframes ojWingL {
  0%, 100% { transform: rotate(0deg) scaleY(1); }
  50% { transform: rotate(-25deg) scaleY(0.55); }
}
@keyframes ojWingR {
  0%, 100% { transform: rotate(0deg) scaleY(1); }
  50% { transform: rotate(25deg) scaleY(0.55); }
}

/* Eyes track the fly (pupils move in sync with buzz path) */
.oj-bot-pupils {
  transform-origin: 48px 33.5px;
}
.oj-bot-char.is-tracking .oj-bot-eyes {
  animation: none; /* pause blink while tracking */
}
.oj-bot-char.is-tracking .oj-bot-pupils {
  animation: ojEyeTrack 2.4s linear infinite;
}
/* Slightly disturbed while tracking */
.oj-bot-char.is-tracking .oj-bot-mouth-default { opacity: 0; }
.oj-bot-char.is-tracking .oj-bot-mouth-grumpy { opacity: 1; }
@keyframes ojEyeTrack {
  0%   { transform: translate(2.4px, -1.4px); }
  8%   { transform: translate(1px, 0.8px); }
  16%  { transform: translate(-2.6px, -0.8px); }
  24%  { transform: translate(1.8px, 2.2px); }
  32%  { transform: translate(-2.2px, 1.2px); }
  40%  { transform: translate(2.2px, -0.6px); }
  48%  { transform: translate(-1.2px, 2.4px); }
  56%  { transform: translate(2.8px, 1.4px); }
  64%  { transform: translate(-2.4px, 0.2px); }
  72%  { transform: translate(1.6px, -1.2px); }
  80%  { transform: translate(-0.8px, 1.8px); }
  88%  { transform: translate(2.4px, 0.8px); }
  96%  { transform: translate(0.2px, -0.8px); }
  100% { transform: translate(2.4px, -1.4px); }
}
/* Watch the body fall - pupils look down */
.oj-bot-char.is-watch-fall .oj-bot-eyes {
  animation: none;
}
.oj-bot-char.is-watch-fall .oj-bot-pupils {
  animation: ojEyeWatchFall 1.35s ease-in forwards;
}
@keyframes ojEyeWatchFall {
  0%   { transform: translate(1px, 0); }
  100% { transform: translate(0.4px, 2.6px); }
}

/* Pissed off / disturbed (no eyebrows) */
.oj-bot-mouth-grumpy { opacity: 0; }
.oj-bot-steam { opacity: 0; }
.oj-bot-char.is-pissed .oj-bot-mouth-default { opacity: 0; }
.oj-bot-char.is-pissed .oj-bot-mouth-grumpy { opacity: 1; }
.oj-bot-char.is-pissed .oj-bot-steam {
  opacity: 1;
  animation: ojSteam 0.55s ease-in-out infinite;
}
.oj-bot-char.is-pissed .oj-bot-eyes {
  animation: none;
  transform: scaleY(0.72);
}
.oj-bot-char.is-pissed .oj-bot-pupils {
  animation: ojEyeTrackMad 0.9s linear infinite;
}
.oj-bot-char.is-pissed {
  animation: ojBotShake 0.28s ease-in-out infinite, ojBotFloat 3.2s ease-in-out infinite;
}
@keyframes ojSteam {
  0%, 100% { opacity: 0.35; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-2px); }
}
@keyframes ojBotShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-1.5px); }
  75% { transform: translateX(1.5px); }
}
@keyframes ojEyeTrackMad {
  0%   { transform: translate(2px, -1px); }
  50%  { transform: translate(-2px, 1.5px); }
  100% { transform: translate(2px, -1px); }
}

/* ACME fly swatter appears on arm */
.oj-bot-swatter {
  opacity: 0;
  transform: scale(0.15) translate(-8px, 8px) rotate(-25deg);
  transform-origin: 84px 56px;
  transition: opacity 0.15s ease, transform 0.4s cubic-bezier(0.34, 1.7, 0.64, 1);
}
.oj-bot-char.is-swatter .oj-bot-swatter {
  opacity: 1;
  transform: scale(1.15) translate(0, 0) rotate(0deg);
}
.oj-bot-char.is-swatter .oj-bot-hand-default {
  opacity: 0;
}

/* Arm SWAT with giant swatter */
@keyframes ojBotSwat {
  0%   { transform: rotate(12deg); }
  10%  { transform: rotate(-95deg); }
  22%  { transform: rotate(22deg); }
  34%  { transform: rotate(-100deg); }
  48%  { transform: rotate(14deg); }
  62%  { transform: rotate(-88deg); }
  78%  { transform: rotate(8deg); }
  100% { transform: rotate(var(--oj-bot-arm-deg, 18deg)); }
}
.oj-bot-char.is-swat .oj-bot-arm {
  animation: ojBotSwat 1.1s ease-in-out 1;
  transform-origin: 66px 56px;
}
.oj-bot-char.is-swat .oj-bot-eyes {
  transform: scaleY(0.4);
  animation: none;
}
.oj-bot-char.is-swat .oj-bot-mouth-default,
.oj-bot-char.is-swat .oj-bot-mouth-grumpy {
  opacity: 0;
}
.oj-bot-char.is-swat .oj-bot-steam {
  opacity: 1;
}

/* Laugh */
.oj-bot-mouth-laugh { opacity: 0; }
.oj-bot-char.is-laugh .oj-bot-mouth-default,
.oj-bot-char.is-laugh .oj-bot-mouth-grin { opacity: 0; }
.oj-bot-char.is-laugh .oj-bot-mouth-laugh { opacity: 1; }
.oj-bot-char.is-laugh {
  animation: ojBotLaughBounce 0.35s ease-in-out 4, ojBotFloat 3.2s ease-in-out infinite;
}
@keyframes ojBotLaughBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(3deg); }
}

.oj-bot-root.is-swatting .oj-bot-speech {
  opacity: 0 !important;
  pointer-events: none !important;
}

/* --- Virus possession (over-dramatised, comical) ---
   creep → watch → GULP → eyes first → matrix green bot → rant → snap */
.oj-bot-virus-label {
  position: absolute;
  left: 50%;
  top: -0.35rem;
  transform: translateX(-50%) scale(0.6);
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: #4ade80;
  background: #052e16;
  border: 1.5px solid #22c55e;
  border-radius: 0.35rem;
  padding: 0.12rem 0.35rem;
  opacity: 0;
  pointer-events: none;
  z-index: 4;
  font-family: "Courier New", ui-monospace, monospace;
  text-shadow: 0 0 6px rgba(74, 222, 128, 0.7);
}
.oj-bot-horns,
.oj-bot-virus-bits,
.oj-bot-badge-evil,
.oj-bot-mouth-evil,
.oj-bot-mouth-gulp {
  opacity: 0;
  transition: opacity 0.22s ease;
}

/* Creeping virus blob (classic comic germ) */
.oj-bot-creep {
  position: absolute;
  width: 1.7rem;
  height: 1.7rem;
  left: -2.2rem;
  top: 3.4rem;
  opacity: 0;
  pointer-events: none;
  z-index: 7;
  filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.55));
}
.oj-bot-creep-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.oj-bot-creep.is-creeping {
  opacity: 1;
  animation: ojVirusCreep 2s ease-in-out forwards;
}
.oj-bot-creep.is-creeping .oj-bot-creep-body {
  animation: ojVirusWobble 0.45s ease-in-out infinite;
  transform-origin: 18px 18px;
}
@keyframes ojVirusCreep {
  0%   { left: -2.4rem; top: 3.6rem; transform: scale(0.55) rotate(-25deg); opacity: 0; }
  12%  { opacity: 1; }
  35%  { left: -0.9rem; top: 2.4rem; transform: scale(0.8) rotate(12deg); }
  60%  { left: 0.15rem; top: 1.15rem; transform: scale(0.95) rotate(-8deg); }
  85%  { left: 0.65rem; top: 0.45rem; transform: scale(1.05) rotate(4deg); }
  100% { left: 0.85rem; top: 0.2rem; transform: scale(1.12) rotate(0deg); opacity: 1; }
}
@keyframes ojVirusWobble {
  0%, 100% { transform: rotate(-6deg) scale(1); }
  50% { transform: rotate(8deg) scale(1.06); }
}
.oj-bot-creep.is-absorbed {
  opacity: 1;
  animation: ojVirusAbsorb 0.55s ease-in forwards;
}
@keyframes ojVirusAbsorb {
  0%   { left: 0.85rem; top: 0.2rem; transform: scale(1.12); opacity: 1; }
  60%  { left: 1.5rem; top: 0.9rem; transform: scale(0.55); opacity: 0.7; }
  100% { left: 1.9rem; top: 1.35rem; transform: scale(0.1); opacity: 0; }
}

/* OJ watches the virus creep closer (pupils track left/up) */
.oj-bot-char.is-watch-virus .oj-bot-pupils {
  transform: translate(-2.6px, -0.8px);
  transition: transform 0.35s ease;
}
.oj-bot-char.is-watch-virus .oj-bot-mouth-default { opacity: 0; }
.oj-bot-char.is-watch-virus .oj-bot-mouth-grumpy { opacity: 1; }
.oj-bot-char.is-watch-virus .oj-bot-eyes {
  animation: none;
  transform: scaleY(1.08);
}

/* GULP - big nervous swallow */
.oj-bot-char.is-gulp {
  animation: ojBotGulp 0.65s ease-out 1, ojBotFloat 3.2s ease-in-out infinite !important;
}
@keyframes ojBotGulp {
  0%   { transform: scale(1, 1); }
  25%  { transform: scale(1.08, 0.9) translateY(2px); }
  50%  { transform: scale(0.94, 1.1) translateY(-3px); }
  75%  { transform: scale(1.03, 0.97); }
  100% { transform: scale(1, 1); }
}
.oj-bot-char.is-gulp .oj-bot-mouth-default,
.oj-bot-char.is-gulp .oj-bot-mouth-grumpy,
.oj-bot-char.is-gulp .oj-bot-mouth-grin { opacity: 0 !important; }
.oj-bot-char.is-gulp .oj-bot-mouth-gulp { opacity: 1 !important; }
.oj-bot-char.is-gulp .oj-bot-eyes {
  animation: none;
  transform: scale(1.18);
}
.oj-bot-char.is-gulp .oj-bot-pupils {
  transform: translate(0, 1.2px) scale(0.85);
}

/* Eyes first - infection starts in the peepers */
.oj-bot-char.is-eyes-infect .oj-bot-eye-ball {
  fill: #22c55e !important;
  filter: drop-shadow(0 0 3px rgba(74, 222, 128, 0.95));
}
.oj-bot-char.is-eyes-infect .oj-bot-pupil {
  fill: #052e16 !important;
  animation: ojMatrixPupil 0.18s steps(2) infinite;
}
.oj-bot-char.is-eyes-infect .oj-bot-eye-shine {
  fill: #bbf7d0 !important;
}
.oj-bot-char.is-eyes-infect .oj-bot-eyes {
  animation: ojMatrixEyePulse 0.35s ease-in-out infinite;
  transform-origin: 48px 33.5px;
}
@keyframes ojMatrixEyePulse {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.75); }
}
@keyframes ojMatrixPupil {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(0.6px, -0.4px); }
  100% { transform: translate(-0.4px, 0.3px); }
}
.oj-bot-char.is-eyes-infect .oj-bot-mouth-default { opacity: 0; }
.oj-bot-char.is-eyes-infect .oj-bot-mouth-gulp { opacity: 1; }

/* Glitch in / out */
.oj-bot-char.is-glitching {
  animation: ojBotGlitch 0.11s steps(2) infinite, ojBotFloat 3.2s ease-in-out infinite !important;
  filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.65)) drop-shadow(0 10px 18px rgba(15, 23, 42, 0.28));
}
@keyframes ojBotGlitch {
  0%   { transform: translate(0, 0) skewX(0deg); }
  20%  { transform: translate(-2px, 1px) skewX(-2deg); }
  40%  { transform: translate(2px, -1px) skewX(2deg); }
  60%  { transform: translate(-1px, 0) skewX(0deg); }
  80%  { transform: translate(1px, 1px) skewX(-1deg); }
  100% { transform: translate(0, 0) skewX(0deg); }
}

/* Full matrix-green virus bot */
.oj-bot-char.is-possessed {
  animation: ojBotMatrixPulse 0.42s ease-in-out infinite !important;
  filter:
    hue-rotate(95deg) saturate(1.85) brightness(1.05)
    drop-shadow(0 0 14px rgba(34, 197, 94, 0.85))
    drop-shadow(0 0 4px rgba(74, 222, 128, 0.9))
    drop-shadow(0 10px 18px rgba(15, 23, 42, 0.35));
}
@keyframes ojBotMatrixPulse {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.07) rotate(-2.5deg); }
}
.oj-bot-char.is-possessed .oj-bot-eye-ball {
  fill: #4ade80 !important;
  filter: drop-shadow(0 0 4px rgba(74, 222, 128, 1));
}
.oj-bot-char.is-possessed .oj-bot-pupil {
  fill: #052e16 !important;
}
.oj-bot-char.is-possessed .oj-bot-eye-shine {
  fill: #dcfce7 !important;
}
.oj-bot-char.is-possessed .oj-bot-eyes {
  animation: ojMatrixEyePulse 0.28s ease-in-out infinite;
  transform-origin: 48px 33.5px;
}
.oj-bot-char.is-possessed .oj-bot-mouth-default,
.oj-bot-char.is-possessed .oj-bot-mouth-grin,
.oj-bot-char.is-possessed .oj-bot-mouth-grumpy,
.oj-bot-char.is-possessed .oj-bot-mouth-gulp,
.oj-bot-char.is-possessed .oj-bot-mouth-laugh {
  opacity: 0 !important;
}
.oj-bot-char.is-possessed .oj-bot-mouth-evil {
  opacity: 1 !important;
}
.oj-bot-char.is-possessed .oj-bot-horns,
.oj-bot-char.is-possessed .oj-bot-virus-bits {
  opacity: 1 !important;
}
.oj-bot-char.is-possessed .oj-bot-virus-bits {
  animation: ojVirusOrbit 1.05s linear infinite;
  transform-origin: 48px 48px;
}
@keyframes ojVirusOrbit {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.oj-bot-char.is-possessed .oj-bot-badge-text {
  opacity: 0;
}
.oj-bot-char.is-possessed .oj-bot-badge-evil {
  opacity: 1 !important;
  fill: #4ade80;
}
.oj-bot-char.is-possessed .oj-bot-virus-label {
  opacity: 1;
  animation: ojVirusBadge 0.45s ease-in-out infinite alternate;
}
@keyframes ojVirusBadge {
  from { transform: translateX(-50%) scale(0.88); }
  to { transform: translateX(-50%) scale(1.1); }
}
.oj-bot-char.is-possessed .oj-bot-antenna circle:first-of-type {
  fill: #22c55e !important;
  filter: drop-shadow(0 0 4px rgba(74, 222, 128, 0.9));
}
/* Possessed thrash / cackle */
.oj-bot-char.is-possessed.is-laugh {
  animation: ojBotLaughBounce 0.28s ease-in-out infinite, ojBotMatrixPulse 0.42s ease-in-out infinite !important;
}

/* Snap out of it */
.oj-bot-char.is-snap-out {
  animation: ojBotSnapOut 0.75s ease-out 1, ojBotFloat 3.2s ease-in-out infinite !important;
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.7)) drop-shadow(0 10px 18px rgba(15, 23, 42, 0.28));
}
@keyframes ojBotSnapOut {
  0%   { transform: scale(1.1) rotate(-7deg); filter: hue-rotate(95deg) saturate(1.8); }
  35%  { transform: scale(0.9) rotate(8deg); }
  65%  { transform: scale(1.05) rotate(-4deg); }
  100% { transform: scale(1) rotate(0deg); }
}

/* During possess: hide speech until the matrix rant or awkward punchline */
.oj-bot-root.is-possess-show:not(.is-virus-rant):not(.is-awkward-say) .oj-bot-speech {
  opacity: 0 !important;
  pointer-events: none !important;
}
/* Matrix rant bubble - green terminal vibes */
.oj-bot-root.is-virus-rant .oj-bot-speech {
  opacity: 1 !important;
  pointer-events: none !important;
  background: #052e16 !important;
  color: #86efac !important;
  border-color: #22c55e !important;
  box-shadow:
    0 0 0 1px rgba(74, 222, 128, 0.35),
    4px 5px 0 rgba(5, 46, 22, 0.45),
    0 0 22px rgba(34, 197, 94, 0.35) !important;
  font-family: "Courier New", ui-monospace, monospace;
}
.oj-bot-root.is-virus-rant .oj-bot-speech::after {
  background: #052e16 !important;
  border-right-color: #22c55e !important;
  border-bottom-color: #22c55e !important;
}
.oj-bot-root.is-virus-rant .oj-bot-speech-name {
  color: #4ade80 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.65rem;
}
.oj-bot-root.is-virus-rant .oj-bot-speech-text {
  color: #bbf7d0 !important;
  text-shadow: 0 0 8px rgba(74, 222, 128, 0.35);
}
.oj-bot-root.is-virus-rant .oj-bot-speech-actions {
  display: none !important;
}

/* Post-possession "Awkward!" punchline - normal bubble, slightly embarrassed */
.oj-bot-root.is-awkward-say .oj-bot-speech {
  opacity: 1 !important;
  pointer-events: none !important;
  background: #fff7ed !important;
  border-color: #fb923c !important;
  box-shadow:
    4px 5px 0 rgba(154, 52, 18, 0.12),
    0 14px 36px -14px rgba(15, 23, 42, 0.3) !important;
}
.oj-bot-root.is-awkward-say .oj-bot-speech::after {
  background: #fff7ed !important;
  border-right-color: #fb923c !important;
  border-bottom-color: #fb923c !important;
}
.oj-bot-root.is-awkward-say .oj-bot-speech-name {
  color: #ea580c !important;
}
.oj-bot-root.is-awkward-say .oj-bot-speech-text {
  color: #9a3412 !important;
  font-weight: 800;
}
.oj-bot-root.is-awkward-say .oj-bot-speech-actions {
  display: none !important;
}

/* --- Full DIY robot costume: hard hat + hi-vis + tool belt + tools + boots --- */
.oj-bot-hardhat,
.oj-bot-hivis,
.oj-bot-toolbelt,
.oj-bot-goggles,
.oj-bot-tool,
.oj-bot-workboots {
  opacity: 0 !important;
  pointer-events: none;
}
.oj-bot-char.is-tradie .oj-bot-workboots {
  opacity: 1 !important;
  animation: ojGearPop 0.35s ease-out 0.12s both;
}
.oj-bot-char.is-tradie .oj-bot-feet {
  opacity: 0 !important;
}
/* Floating DIY badge retired - hard hat alone is the joke */
.oj-bot-tradie-label {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none;
}

/* Costume pieces pop on with bounce */
.oj-bot-char.is-tradie .oj-bot-hardhat {
  opacity: 1 !important;
  animation: ojHardhatPop 0.45s cubic-bezier(0.34, 1.55, 0.64, 1) both;
  transform-origin: 48px 20px;
}
@keyframes ojHardhatPop {
  0%   { transform: translateY(-18px) scale(0.4) rotate(-12deg); opacity: 0; }
  60%  { transform: translateY(2px) scale(1.12) rotate(4deg); opacity: 1; }
  100% { transform: translateY(0) scale(1) rotate(0deg); opacity: 1; }
}
.oj-bot-char.is-tradie .oj-bot-hivis {
  opacity: 1 !important;
  animation: ojGearPop 0.35s ease-out 0.05s both;
}
.oj-bot-char.is-tradie .oj-bot-toolbelt {
  opacity: 1 !important;
  animation: ojGearPop 0.4s ease-out 0.1s both;
}
.oj-bot-char.is-tradie .oj-bot-goggles {
  opacity: 1 !important;
  animation: ojGearPop 0.3s ease-out 0.08s both;
}
@keyframes ojGearPop {
  0%   { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.oj-bot-char.is-tradie .oj-bot-tradie-label {
  display: none !important;
  opacity: 0 !important;
}

/* Handheld tool - only the active one */
.oj-bot-char.is-tradie.is-tool-hammer .oj-bot-tool-hammer,
.oj-bot-char.is-tradie.is-tool-wrench .oj-bot-tool-wrench,
.oj-bot-char.is-tradie.is-tool-screwdriver .oj-bot-tool-screwdriver,
.oj-bot-char.is-tradie.is-tool-tape .oj-bot-tool-tape,
.oj-bot-char.is-tradie.is-tool-paint .oj-bot-tool-paint {
  opacity: 1 !important;
  animation: ojToolPop 0.4s cubic-bezier(0.34, 1.55, 0.64, 1) 0.12s both;
  transform-origin: 86px 56px;
}
@keyframes ojToolPop {
  0%   { transform: scale(0.15) rotate(-40deg); opacity: 0; }
  100% { transform: scale(1.05) rotate(0deg); opacity: 1; }
}
.oj-bot-char.is-tradie .oj-bot-hand-default {
  opacity: 0 !important;
}
.oj-bot-char.is-tradie .oj-bot-swatter {
  opacity: 0 !important;
}
/* Proud tradie stance */
.oj-bot-char.is-tradie {
  animation: ojBotTradieBounce 0.9s ease-in-out infinite !important;
  filter:
    drop-shadow(0 0 10px rgba(250, 204, 21, 0.55))
    drop-shadow(0 10px 18px rgba(15, 23, 42, 0.3));
}
@keyframes ojBotTradieBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-5px) rotate(2deg); }
}
.oj-bot-char.is-tradie .oj-bot-arm {
  transform: rotate(-18deg);
  transform-origin: 66px 56px;
}
.oj-bot-char.is-tradie.is-wave .oj-bot-arm {
  animation: ojBotWave 0.42s ease-in-out 3;
  transform-origin: 66px 56px;
}
.oj-bot-char.is-tradie .oj-bot-mouth-default { opacity: 0 !important; }
.oj-bot-char.is-tradie.is-grin .oj-bot-mouth-grin { opacity: 1 !important; }
.oj-bot-char.is-tradie.is-laugh .oj-bot-mouth-laugh { opacity: 1 !important; }
.oj-bot-char.is-tradie.is-laugh .oj-bot-mouth-grin { opacity: 0 !important; }
/* Hi-vis covers badge a bit - force DIY badge text feel via label */
.oj-bot-char.is-tradie .oj-bot-badge-text {
  fill: #facc15;
}

/* Tradie speech bubble - hi-vis yellow vibes */
.oj-bot-root.is-tradie-show:not(.is-tradie-say) .oj-bot-speech {
  opacity: 0 !important;
  pointer-events: none !important;
}
.oj-bot-root.is-tradie-say .oj-bot-speech {
  opacity: 1 !important;
  pointer-events: none !important;
  background: #fef08a !important;
  border-color: #0f172a !important;
  border-width: 2.5px !important;
  box-shadow:
    4px 5px 0 rgba(15, 23, 42, 0.18),
    0 0 0 3px rgba(250, 204, 21, 0.35),
    0 14px 36px -14px rgba(15, 23, 42, 0.3) !important;
  font-weight: 800;
}
.oj-bot-root.is-tradie-say .oj-bot-speech::after {
  background: #fef08a !important;
  border-right-color: #0f172a !important;
  border-bottom-color: #0f172a !important;
}
.oj-bot-root.is-tradie-say .oj-bot-speech-name {
  color: #a16207 !important;
  letter-spacing: 0.08em;
}
.oj-bot-root.is-tradie-say .oj-bot-speech-text {
  color: #422006 !important;
  font-weight: 800;
  font-size: 0.85rem;
}
.oj-bot-root.is-tradie-say .oj-bot-speech-actions {
  display: none !important;
}

/* --- ACME cheerleader sign --- */
.oj-bot-cheer-sign {
  opacity: 0 !important;
  pointer-events: none;
  transform-origin: 80px 56px;
}
.oj-bot-cheer-label {
  position: absolute;
  left: 50%;
  top: -0.45rem;
  transform: translateX(-50%) scale(0.7);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  color: #fff;
  background: #dc2626;
  border: 2px solid #0f172a;
  border-radius: 0.35rem;
  padding: 0.1rem 0.4rem;
  opacity: 0;
  pointer-events: none;
  z-index: 5;
  font-family: Impact, "Arial Black", sans-serif;
}
.oj-bot-char.is-cheer .oj-bot-cheer-sign {
  opacity: 1 !important;
  animation: ojCheerSignPop 0.45s cubic-bezier(0.34, 1.55, 0.64, 1) both;
}
.oj-bot-char.is-cheer .oj-bot-hand-default,
.oj-bot-char.is-cheer .oj-bot-swatter,
.oj-bot-char.is-cheer .oj-bot-tool {
  opacity: 0 !important;
}
.oj-bot-char.is-cheer .oj-bot-arm {
  transform: rotate(-28deg);
  transform-origin: 66px 56px;
}
.oj-bot-char.is-cheer.is-wave .oj-bot-arm {
  animation: ojBotWave 0.4s ease-in-out 3;
  transform-origin: 66px 56px;
}
.oj-bot-char.is-cheer {
  animation: ojBotTradieBounce 0.7s ease-in-out infinite !important;
  filter: drop-shadow(0 0 10px rgba(250, 204, 21, 0.55)) drop-shadow(0 10px 18px rgba(15, 23, 42, 0.28));
}
.oj-bot-char.is-cheer .oj-bot-cheer-label {
  opacity: 1;
  animation: ojVirusBadge 0.4s ease-in-out infinite alternate;
}
.oj-bot-char.is-cheer .oj-bot-mouth-default { opacity: 0 !important; }
.oj-bot-char.is-cheer.is-grin .oj-bot-mouth-grin { opacity: 1 !important; }
.oj-bot-char.is-cheer.is-laugh .oj-bot-mouth-laugh { opacity: 1 !important; }
.oj-bot-char.is-cheer.is-laugh .oj-bot-mouth-grin { opacity: 0 !important; }
@keyframes ojCheerSignPop {
  0%   { transform: scale(0.2) rotate(-25deg); opacity: 0; }
  100% { transform: scale(1.08) rotate(0deg); opacity: 1; }
}
.oj-bot-root.is-cheer-say .oj-bot-speech {
  opacity: 1 !important;
  pointer-events: none !important;
  background: #fef08a !important;
  border-color: #0f172a !important;
  box-shadow:
    4px 5px 0 rgba(15, 23, 42, 0.15),
    0 0 0 3px rgba(220, 38, 38, 0.2) !important;
}
.oj-bot-root.is-cheer-say .oj-bot-speech::after {
  background: #fef08a !important;
  border-right-color: #0f172a !important;
  border-bottom-color: #0f172a !important;
}
.oj-bot-root.is-cheer-say .oj-bot-speech-name {
  color: #b91c1c !important;
}
.oj-bot-root.is-cheer-say .oj-bot-speech-text {
  color: #0f172a !important;
  font-weight: 800;
}
.oj-bot-root.is-cheer-say .oj-bot-speech-actions {
  display: none !important;
}

/* Dock launcher when tour off / idle - draggable pill (left/top when placed) */
.oj-bot-launcher {
  position: fixed;
  z-index: 9987;
  right: 0.85rem;
  bottom: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  pointer-events: auto;
  /* Keep pill size stable - menu is absolutely positioned, not in flow */
}
.oj-bot-launcher.is-fab-placed {
  /* position driven by JS left/top */
}
.oj-bot-launcher.is-fab-dragging {
  z-index: 9995;
  opacity: 0.95;
}
.oj-bot-launcher.is-fab-dragging .oj-bot-launcher-btn {
  cursor: grabbing;
  transform: scale(1.04);
}
.oj-bot-launcher.is-menu-open {
  z-index: 9996;
}
.oj-bot-launcher-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem 0.45rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(14, 165, 233, 0.35);
  background: linear-gradient(135deg, #0f172a, #0c4a6e);
  color: #e0f2fe;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 10px 28px -12px rgba(2, 132, 199, 0.55);
  cursor: grab;
  touch-action: none;
  user-select: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.oj-bot-launcher-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px -12px rgba(2, 132, 199, 0.65);
}
.oj-bot-launcher-btn .oj-bot-mini {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 9999px;
  background: linear-gradient(145deg, #38bdf8, #2563eb);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  overflow: hidden;
  flex-shrink: 0;
  padding: 0;
}
.oj-bot-launcher-btn .oj-bot-mini-face,
.oj-bot-launcher-btn .oj-bot-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  border-radius: inherit;
}
.oj-bot-launcher-btn.is-off {
  opacity: 0.72;
  background: #334155;
  border-color: #475569;
}
.oj-bot-menu {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 10rem;
  padding: 0.4rem;
  border-radius: 0.85rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 12px 32px -14px rgba(15, 23, 42, 0.35);
  /* Default anchor to pill (overridden to fixed coords by JS when open) */
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.45rem);
  top: auto;
  left: auto;
  z-index: 2;
  max-height: min(70vh, 22rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* Avoid layout thrash / jump while measuring */
  will-change: top, left;
}
.oj-bot-menu.is-open {
  display: flex;
}
/* Viewport-fixed placement - never expands launcher into the character */
.oj-bot-menu.is-open.is-menu-fixed {
  position: fixed;
  z-index: 9998;
  right: auto;
  bottom: auto;
  /* top/left set by positionBotMenu() */
  pointer-events: auto;
}
/* Legacy flip classes (kept for non-fixed fallback) */
.oj-bot-menu.is-menu-below {
  bottom: auto;
  top: calc(100% + 0.45rem);
}
.oj-bot-menu.is-menu-left {
  right: auto;
  left: 0;
}
.oj-bot-menu button {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.45rem 0.6rem;
  border-radius: 0.55rem;
  border: none;
  background: transparent;
  color: #334155;
  cursor: pointer;
}
.oj-bot-menu button:hover {
  background: #f1f5f9;
}
/* Medical: compact stack - Ask OJ · Dr OJ Bot · Enable · Disable (bottom-up list) */
.oj-bot-menu.oj-bot-menu--medical {
  min-width: 10.75rem;
  gap: 0.2rem;
  padding: 0.35rem;
  border-color: #99f6e4;
  box-shadow: 0 14px 32px -12px rgba(15, 118, 110, 0.35);
}
.oj-bot-menu.oj-bot-menu--medical button {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.55rem 0.7rem;
  border-radius: 0.6rem;
}
.oj-bot-root.oj-bot-role-medical .oj-bot-menu.oj-bot-menu--medical button:hover {
  background: #f0fdfa;
  color: #0f766e;
}
.oj-bot-root.oj-bot-role-medical .oj-bot-menu.oj-bot-menu--medical button.is-on {
  background: #ccfbf1;
  color: #0f766e;
}
/* Medical pill: clearer mode chip look */
.oj-bot-root.oj-bot-role-medical .oj-bot-launcher-btn {
  border-color: rgba(20, 184, 166, 0.4);
  background: linear-gradient(135deg, #0c3436, #0f766e);
  color: #ecfdf5;
  max-width: min(14rem, 72vw);
}
.oj-bot-root.oj-bot-role-medical .oj-bot-launcher-btn [data-oj-bot-fab-label] {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.oj-bot-root.oj-bot-role-medical .oj-bot-launcher-btn .oj-bot-mini {
  background: linear-gradient(145deg, #5eead4, #0f766e);
  flex-shrink: 0;
}

/* --- Night + Envisage speech bubbles (tips, job alerts, tour) --- */
html.dark .oj-bot-speech,
html.envisage .oj-bot-speech {
  background: #0f172a;
  border-color: #67e8f9;
  color: #f8fafc;
  box-shadow:
    4px 5px 0 rgba(8, 47, 73, 0.45),
    0 16px 40px -12px rgba(0, 0, 0, 0.55);
}
html.envisage .oj-bot-speech {
  background: linear-gradient(165deg, #1e1b4b 0%, #0f172a 70%);
  border-color: #a5b4fc;
  box-shadow:
    4px 5px 0 rgba(76, 29, 149, 0.4),
    0 16px 40px -12px rgba(0, 0, 0, 0.55);
}
html.dark .oj-bot-speech::after,
html.envisage .oj-bot-speech::after {
  background: #0f172a;
  border-color: #67e8f9;
}
html.envisage .oj-bot-speech::after {
  background: #1e1b4b;
  border-color: #a5b4fc;
}
html.dark .oj-bot-speech-name,
html.envisage .oj-bot-speech-name {
  color: #7dd3fc !important;
}
html.envisage .oj-bot-speech-name {
  color: #c4b5fd !important;
}
html.dark .oj-bot-speech-text,
html.envisage .oj-bot-speech-text {
  color: #f8fafc !important;
  font-weight: 600;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}
html.dark .oj-bot-speech-actions button,
html.envisage .oj-bot-speech-actions button {
  border-color: #a5b4fc;
  background: linear-gradient(135deg, #312e81, #1e3a5f);
  color: #e0e7ff;
}
html.dark .oj-bot-speech-actions button.primary,
html.envisage .oj-bot-speech-actions button.primary {
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  border-color: #c4b5fd;
  color: #fff;
}
html.dark .oj-bot-menu,
html.envisage .oj-bot-menu {
  background: #1e293b;
  border-color: rgba(148, 163, 184, 0.22);
}
html.dark .oj-bot-menu button,
html.envisage .oj-bot-menu button {
  color: #e2e8f0;
}
html.dark .oj-bot-menu button:hover,
html.envisage .oj-bot-menu button:hover {
  background: #334155;
}

/*
 * Job / message alert skins force pale fills in light mode.
 * Envisage + Night: keep dark bubble + bright text (never light-on-light).
 */
html.dark .oj-bot-root.is-job-alert-show .oj-bot-speech,
html.envisage .oj-bot-root.is-job-alert-show .oj-bot-speech {
  background: linear-gradient(160deg, #431407 0%, #0f172a 55%, #1c1917 100%) !important;
  border-color: #fb923c !important;
  color: #fff7ed !important;
  box-shadow:
    4px 5px 0 rgba(154, 52, 18, 0.45),
    0 0 0 3px rgba(249, 115, 22, 0.35),
    0 16px 40px -12px rgba(0, 0, 0, 0.55) !important;
}
html.dark .oj-bot-root.is-job-alert-show .oj-bot-speech::after,
html.envisage .oj-bot-root.is-job-alert-show .oj-bot-speech::after {
  background: #431407 !important;
  border-right-color: #fb923c !important;
  border-bottom-color: #fb923c !important;
  border-left-color: #fb923c !important;
  border-top-color: #fb923c !important;
}
html.dark .oj-bot-root.is-job-alert-show .oj-bot-speech-name,
html.envisage .oj-bot-root.is-job-alert-show .oj-bot-speech-name {
  color: #fdba74 !important;
}
html.dark .oj-bot-root.is-job-alert-show .oj-bot-speech-text,
html.envisage .oj-bot-root.is-job-alert-show .oj-bot-speech-text {
  color: #fff7ed !important;
  font-weight: 700;
}

html.dark .oj-bot-root.is-msg-buzz-show .oj-bot-speech,
html.envisage .oj-bot-root.is-msg-buzz-show .oj-bot-speech {
  background: linear-gradient(160deg, #0c4a6e 0%, #0f172a 60%) !important;
  border-color: #38bdf8 !important;
  color: #f0f9ff !important;
  box-shadow:
    4px 5px 0 rgba(3, 105, 161, 0.4),
    0 0 0 3px rgba(56, 189, 248, 0.3),
    0 16px 40px -12px rgba(0, 0, 0, 0.55) !important;
}
html.dark .oj-bot-root.is-msg-buzz-show .oj-bot-speech::after,
html.envisage .oj-bot-root.is-msg-buzz-show .oj-bot-speech::after {
  background: #0c4a6e !important;
  border-color: #38bdf8 !important;
}
html.dark .oj-bot-root.is-msg-buzz-show .oj-bot-speech-name,
html.envisage .oj-bot-root.is-msg-buzz-show .oj-bot-speech-name {
  color: #7dd3fc !important;
}
html.dark .oj-bot-root.is-msg-buzz-show .oj-bot-speech-text,
html.envisage .oj-bot-root.is-msg-buzz-show .oj-bot-speech-text {
  color: #f0f9ff !important;
  font-weight: 700;
}

/* Tip / tour buttons stay legible on dark bubbles */
html.dark .oj-bot-root.is-tipping .oj-bot-speech-actions button,
html.envisage .oj-bot-root.is-tipping .oj-bot-speech-actions button,
html.dark .oj-bot-root.is-job-alert-show .oj-bot-speech-actions button,
html.envisage .oj-bot-root.is-job-alert-show .oj-bot-speech-actions button {
  border-color: #fdba74;
  background: rgba(15, 23, 42, 0.85);
  color: #fff7ed;
}
html.dark .oj-bot-root.is-tipping .oj-bot-speech-actions button.primary,
html.envisage .oj-bot-root.is-tipping .oj-bot-speech-actions button.primary,
html.dark .oj-bot-root.is-job-alert-show .oj-bot-speech-actions button.primary,
html.envisage .oj-bot-root.is-job-alert-show .oj-bot-speech-actions button.primary {
  background: linear-gradient(135deg, #ea580c, #f59e0b);
  border-color: #fdba74;
  color: #fff;
}

@media (max-width: 640px) {
  .oj-bot-stage {
    width: 6.25rem;
  }
  .oj-bot-char {
    width: 4.75rem;
    height: 5rem;
  }
  .oj-bot-speech {
    width: min(15rem, calc(100vw - 1.25rem));
  }
}

@media (prefers-reduced-motion: reduce) {
  .oj-bot-char,
  .oj-bot-char.is-wiggle,
  .oj-bot-char.is-laugh,
  .oj-bot-char.is-thinking,
  .oj-bot-char.is-thinking .oj-bot-antenna,
  .oj-bot-char.is-thinking .oj-bot-eyes,
  .oj-bot-char.is-thinking .oj-bot-pupils,
  .oj-bot-char.is-glitching,
  .oj-bot-char.is-possessed,
  .oj-bot-char.is-snap-out,
  .oj-bot-char.is-gulp,
  .oj-bot-char.is-eyes-infect .oj-bot-eyes,
  .oj-bot-char.is-eyes-infect .oj-bot-pupil,
  .oj-bot-eyes,
  .oj-bot-antenna,
  .oj-bot-pupils,
  .oj-bot-arm,
  .oj-bot-arm-left,
  .oj-bot-fore-left,
  .oj-bot-fore-right,
  .oj-bot-char.is-wave .oj-bot-arm,
  .oj-bot-char.is-wave .oj-bot-fore-left,
  .oj-bot-char.is-wave .oj-bot-fore-right,
  .oj-bot-char.is-swat .oj-bot-arm,
  .oj-bot-char.is-arm-seize .oj-bot-arm,
  .oj-bot-char.is-arm-snap .oj-bot-arm,
  .oj-bot-fallen-arm.is-drop,
  .oj-bot-fallen-arm.is-pickup,
  .oj-bot-char.is-wd40 .oj-bot-arm-left,
  .oj-bot-char.is-wd40 .oj-bot-wd40-spray,
  .oj-bot-fly.is-buzzing,
  .oj-bot-fly.is-falling,
  .oj-bot-fly.is-miss,
  .oj-bot-fly.is-buzzing .oj-bot-fly-wing-l,
  .oj-bot-fly.is-buzzing .oj-bot-fly-wing-r,
  .oj-bot-char.is-face-counsel .oj-bot-gavel-shaft,
  .oj-bot-char.is-gavel-swing .oj-bot-gavel-shaft,
  .oj-bot-char.is-gavel-windup .oj-bot-gavel-shaft,
  .oj-bot-char.is-elated,
  .oj-bot-char.is-elated .oj-bot-gavel-shaft,
  .oj-bot-char.is-paper-hype,
  .oj-bot-char.is-scalpel.is-bloodthirsty .oj-bot-scalpel,
  .oj-bot-char.is-bloodthirsty,
  .oj-bot-char.is-coffee-hyper,
  .oj-bot-char.is-stetho-listen,
  .oj-bot-defib.is-spark .oj-bot-defib-sparks i,
  .oj-bot-defib.is-zap .oj-bot-defib-unit,
  .oj-bot-apple.is-study,
  .oj-bot-syringe.is-ready,
  .oj-bot-syringe.is-squirt .oj-bot-syringe-squirt i,
  .oj-bot-coffee-iv.is-drip .oj-bot-coffee-drip,
  .oj-bot-papers.is-smash .oj-bot-papers-sheet--a,
  .oj-bot-papers.is-smash .oj-bot-papers-sheet--b,
  .oj-bot-papers.is-smash .oj-bot-papers-sheet--c,
  .oj-bot-papers.is-smash .oj-bot-papers-sheet--d,
  .oj-bot-papers.is-smash .oj-bot-papers-sheet--e,
  .oj-bot-papers.is-smash .oj-bot-papers-confetti i,
  .oj-bot-creep.is-creeping,
  .oj-bot-creep.is-creeping .oj-bot-creep-body,
  .oj-bot-creep.is-absorbed,
  .oj-bot-hardhat,
  .oj-bot-hivis,
  .oj-bot-toolbelt,
  .oj-bot-goggles,
  .oj-bot-tool,
  .oj-bot-cheer-sign,
  .oj-bot-char.is-tradie,
  .oj-bot-char.is-cheer,
  .oj-bot-char.is-easter-cheer,
  .oj-bot-easter.is-launch .oj-bot-rocket,
  .oj-bot-fw-burst,
  .oj-bot-fw-smoke,
  .oj-bot-matrix-track {
    animation: none !important;
    transition: none !important;
  }
  .oj-bot-char.is-tradie .oj-bot-hardhat,
  .oj-bot-char.is-tradie .oj-bot-hivis,
  .oj-bot-char.is-tradie .oj-bot-toolbelt,
  .oj-bot-char.is-tradie .oj-bot-goggles {
    opacity: 1 !important;
  }
  .oj-bot-stage,
  .oj-bot-spotlight {
    transition: none;
  }
}

/* ��� Multi-persona: Dr OJ / Counsel / Secretary / Clerk ��� */
.oj-bot-persona-switch {
  display: flex;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem 0;
  pointer-events: auto;
}
.oj-bot-mode-btn {
  flex: 1;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 0.5rem;
  border-radius: 0.65rem;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.oj-bot-mode-btn.is-on {
  background: #0f172a;
  border-color: #0f172a;
  color: #f8fafc;
}
.oj-bot-root.oj-bot-role-medical .oj-bot-mode-btn.is-on {
  background: #0f766e;
  border-color: #0f766e;
}
.oj-bot-root.oj-bot-role-legal .oj-bot-mode-btn.is-on {
  background: #4f46e5;
  border-color: #4f46e5;
}
.oj-bot-root.oj-bot-role-medical .oj-bot-launcher-btn {
  background: linear-gradient(135deg, #0d9488, #0f766e);
}
.oj-bot-root.oj-bot-role-legal .oj-bot-launcher-btn {
  background: linear-gradient(135deg, #6366f1, #4338ca);
}
.oj-bot-root.oj-bot-persona-secretary .oj-bot-speech-name::after {
  content: " � desk";
  font-weight: 600;
  opacity: 0.75;
  font-size: 0.75em;
}
html.envisage .oj-bot-mode-btn,
html.dark .oj-bot-mode-btn {
  background: rgba(255,255,255,0.06);
  border-color: rgba(148,163,184,0.25);
  color: #cbd5e1;
}
html.envisage .oj-bot-mode-btn.is-on,
html.dark .oj-bot-mode-btn.is-on {
  color: #fff;
}
