/* 17.0.3 patch 1-3: robot at a laptop (js/iba-1703-desk.js): corner robot idle
   moments and the big-window Now brief head. Inside @layer iba-ui so the theme layer cannot
   override it. */
@layer iba-ui {
  /* 17.0.3 patch 3: corner robot sits at the laptop now and then (js adds
     .iba-desk-scene.is-fab inside #iba-ai-fab and the class is-desk) */
  #iba-ai-fab .iba-desk-scene.is-fab {
    position: absolute !important; right: -8px !important; bottom: 0 !important; left: auto !important; top: auto !important;
    width: 128px !important; height: 90px !important; display: block !important;
    pointer-events: none !important; background: none !important; border: 0 !important;
    opacity: 0 !important; transition: opacity .35s ease !important;
  }
  #iba-ai-fab .iba-desk-scene.is-fab svg { width: 128px !important; height: 90px !important; display: block !important; overflow: visible !important; }
  #iba-ai-fab svg.iba-ai-bot { transition: opacity .35s ease !important; }
  #iba-ai-fab.is-desk .iba-desk-scene.is-fab { opacity: 1 !important; }
  #iba-ai-fab.is-desk svg.iba-ai-bot { opacity: 0 !important; }
  body.iba-phone #iba-ai-fab .iba-desk-scene.is-fab { display: none !important; }
  body.iba-phone #iba-ai-fab svg.iba-ai-bot { opacity: 1 !important; }

  /* 17.0.3 patch 2/3: big window - robot + greeting in the fixed top bar
     (.iba-desk-bar, before the hidden title); the brief head keeps only its buttons */
  #iba-ai-panel #iba-ai-wide-body .iba-ai-card-head.has-desk > :is(i, .iba-desk-hello) { display: none !important; }
  #iba-ai-panel #iba-ai-wide-body .iba-ai-card-head.has-desk { margin: 0 0 8px !important; padding: 0 !important; border-bottom: 0 !important; min-height: 0 !important; }
  #iba-ai-panel #iba-ai-wide-body .iba-ai-card-head.has-desk .iba-ai-head-actions { margin-left: auto !important; }
  #iba-ai-panel .iba-ai-wide-bar .iba-desk-bar {
    display: inline-flex !important; align-items: center !important; gap: 10px !important;
    flex: 0 1 auto !important; min-width: 0 !important; pointer-events: none !important;
  }
  #iba-ai-panel .iba-ai-wide-bar .iba-desk-scene.is-brief { display: block !important; flex: 0 0 auto !important; width: 100px !important; height: 70px !important; margin: -4px 0 -6px !important; }
  #iba-ai-panel .iba-ai-wide-bar .iba-desk-scene.is-brief svg { width: 100px !important; height: 70px !important; display: block !important; overflow: visible !important; }
  #iba-ai-panel .iba-ai-wide-bar .iba-desk-bar-hi {
    white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important;
    color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF !important; font-size: 19px !important; font-weight: 700 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45) !important; letter-spacing: .01em !important;
  }
  #iba-ai-panel:not(.is-wide) .iba-desk-bar, body.iba-phone .iba-desk-bar { display: none !important; }

  .iba-desk-svg .dk-chair { fill: #1E3A4C; stroke: #0B1724; stroke-width: 1; }
  .iba-desk-svg .dk-torso { fill: #14364F; }
  .iba-desk-svg .dk-vest { fill: url(#ibaDeskVest); stroke: #1E3A8A; stroke-width: .7; }
  .iba-desk-svg .dk-stripe { fill: #E5E7EB; opacity: .9; }
  .iba-desk-svg .dk-ear { fill: #94A3B8; }
  .iba-desk-svg .dk-skull { fill: url(#ibaDeskHead); stroke: #0B1724; stroke-width: 1.2; }
  .iba-desk-svg .dk-visor { fill: #0B1724; }
  .iba-desk-svg .dk-eye { fill: #5ED6C4; }
  .iba-desk-svg .dk-mouth { fill: none; stroke: #5ED6C4; stroke-width: 2; stroke-linecap: round; }
  .iba-desk-svg .dk-hat { fill: url(#ibaDeskHat); stroke: #A16207; stroke-width: 1.2; }
  .iba-desk-svg .dk-ridge { fill: #FDE68A; opacity: .85; }
  .iba-desk-svg .dk-brim { fill: #EAB308; stroke: #A16207; stroke-width: 1; }
  .iba-desk-svg .dk-bulb { fill: #FFFBEB; stroke: #A16207; stroke-width: .8; }
  .iba-desk-svg :is(.dk-arm path, .dk-limb) { fill: none; stroke: #2B6F84; stroke-width: 4.2; stroke-linecap: round; }
  .iba-desk-svg .dk-hand { fill: #94A3B8; stroke: #0B1724; stroke-width: .8; }
  .iba-desk-svg .dk-lid { fill: #CBD5E1; stroke: #64748B; stroke-width: 1; }
  .iba-desk-svg .dk-logo { fill: #5ED6C4; }
  .iba-desk-svg .dk-base { fill: #94A3B8; }
  .iba-desk-svg .dk-bit { fill: #0E7C6B; font: 800 6px/1 system-ui, sans-serif; opacity: 0; }
  .iba-desk-svg .dk-cup { fill: #FFFFFF; stroke: #0F2537; stroke-width: 1; }
  .iba-desk-svg .dk-handle { fill: none; stroke: #0F2537; stroke-width: 1.4; }
  .iba-desk-svg .dk-steam { fill: none; stroke: #94A3B8; stroke-width: 1.2; stroke-linecap: round; opacity: 0; }
  .iba-desk-svg .dk-desk { fill: #8B5E34; stroke: #5C3A1C; stroke-width: .8; }

  .iba-desk-svg :is(.dk-head, .dk-eyes, .dk-arm, .dk-hand, .dk-sip, .dk-wave, .dk-bit, .dk-steam, .dk-mug, .dk-logo) { transform-box: view-box; }
  .iba-desk-svg .dk-head { transform-origin: 60px 50px; animation: ibaDkHead 10s ease-in-out infinite; }
  .iba-desk-svg .dk-eyes { transform-origin: 60px 34px; animation: ibaDkEyes 10s ease-in-out infinite; }
  .iba-desk-svg .dk-eye { transform-box: fill-box; transform-origin: center; animation: ibaBotBlink 4.2s infinite; }
  .iba-desk-svg .dk-arm-l { animation: ibaDkTypeL 10s step-end infinite; }
  .iba-desk-svg .dk-arm-r { animation: ibaDkTypeR 10s step-end infinite; }
  .iba-desk-svg .dk-sip { opacity: 0; animation: ibaDkSip 10s step-end infinite; }
  .iba-desk-svg .dk-wave { opacity: 0; transform-origin: 76px 54px; animation: ibaDkWave 10s linear infinite; }
  .iba-desk-svg .dk-arm-l .dk-hand { animation: ibaDkTap .32s ease-in-out infinite alternate; }
  .iba-desk-svg .dk-arm-r .dk-hand { animation: ibaDkTap .32s ease-in-out -.16s infinite alternate; }
  .iba-desk-svg .dk-mug { animation: ibaDkMug 10s step-end infinite; }
  .iba-desk-svg .dk-steam-1 { animation: ibaDkSteam 2.4s ease-in-out infinite; }
  .iba-desk-svg .dk-steam-2 { animation: ibaDkSteam 2.4s ease-in-out -1.2s infinite; }
  .iba-desk-svg .dk-logo { transform-origin: 60px 60.5px; animation: ibaBotHeart 2s ease-in-out infinite; }
  .iba-desk-svg .dk-bit-1 { animation: ibaDkBit 1.8s ease-out infinite; }
  .iba-desk-svg .dk-bit-2 { animation: ibaDkBit 1.8s ease-out -.6s infinite; }
  .iba-desk-svg .dk-bit-3 { animation: ibaDkBit 1.8s ease-out -1.2s infinite; }

  /* 17.0.3 patch 7: phone assistant robot plays the scenes (.is-scene) */
  .iba-aph-bot .iba-desk-scene.is-hero { display: none !important; }
  .iba-aph-bot.is-scene { flex-basis: 108px !important; width: 108px !important; }
  .iba-aph-bot.is-scene > svg.iba-ai-bot { display: none !important; }
  .iba-aph-bot.is-scene .iba-desk-scene.is-hero { display: block !important; width: 108px !important; height: 76px !important; }
  .iba-aph-bot.is-scene .iba-desk-scene.is-hero svg { width: 108px !important; height: 76px !important; display: block !important; overflow: visible !important; animation: none !important; }

  /* 17.0.3 patch 8: the praying robot can be clicked to skip */
  #iba-ai-panel .iba-desk-bar .iba-desk-scene[data-scene="pray"],
  .iba-aph-bot .iba-desk-scene.is-hero[data-scene="pray"] { pointer-events: auto !important; cursor: pointer !important; }

  /* 17.0.3 patch 6: vests blue and white (IBA colours) - the desk scenes and
     the main robot (#ibaBotVest in iba-assistant.js BOT_SVG, PC and phone) */
  :is(#ibaDeskVest, #ibaBotVest) stop:first-child { stop-color: #3B82F6 !important; }
  :is(#ibaDeskVest, #ibaBotVest) stop:last-child { stop-color: #1D4ED8 !important; }
  .iba-ai-bot .bot-vest { stroke: #1E3A8A !important; }
  .iba-ai-bot .bot-stripe, .iba-desk-svg .dk-stripe { fill: #FFFFFF !important; opacity: .95 !important; }

  /* prayer scene (only in prayer time) */
  .iba-desk-svg .pr-glow { fill: rgba(250, 204, 21, .10); }
  .iba-desk-svg .pr-mat { fill: #0F766E; stroke: #E3C98A; stroke-width: .8; }
  .iba-desk-svg .pr-mat-line { fill: #E3C98A; opacity: .7; }
  .iba-desk-svg .pr-fringe { stroke: #E3C98A; stroke-width: .8; }
  .iba-desk-svg :is(.pr-leg, .pr-armline) { fill: none; stroke: #2B6F84; stroke-width: 5; stroke-linecap: round; }
  .iba-desk-svg .pr-armline { stroke-width: 3.6; }
  .iba-desk-svg :is(.pr-arm, .pr-shin) { fill: #2B6F84; }
  .iba-desk-svg .pr-hand { fill: #94A3B8; }
  .iba-desk-svg.is-pray .dk-torso { fill: #2B6F84; stroke: #0B1724; stroke-width: .8; }
  .iba-desk-svg .pr-pose { opacity: 0; }
  .iba-desk-svg .pr-stand { animation: ibaPrStand 16s linear infinite; }
  .iba-desk-svg .pr-ruku { animation: ibaPrRuku 16s linear infinite; }
  .iba-desk-svg .pr-sujud { animation: ibaPrSujud 16s linear infinite; }
  .iba-desk-svg .pr-sit { animation: ibaPrSit 16s linear infinite; }

  /* forklift + wheel loader */
  .iba-desk-svg .vh-ground { fill: #8B5E34; opacity: .85; }
  .iba-desk-svg .vh-body { fill: url(#ibaDeskYel); stroke: #A16207; stroke-width: 1; }
  .iba-desk-svg .vh-stripe { fill: #1E293B; opacity: .55; }
  .iba-desk-svg .vh-cage { fill: none; stroke: #334155; stroke-width: 2.4; stroke-linejoin: round; }
  .iba-desk-svg .vh-cab { fill: url(#ibaDeskYel); stroke: #A16207; stroke-width: 1; }
  .iba-desk-svg .vh-glass { fill: rgba(125, 211, 252, .35); stroke: #334155; stroke-width: 1; }
  .iba-desk-svg .vh-tyre { fill: #1F2937; stroke: #0B1220; stroke-width: 1; }
  .iba-desk-svg .vh-hub { fill: #9CA3AF; }
  .iba-desk-svg .vh-spoke { stroke: #374151; stroke-width: 1.2; }
  .iba-desk-svg .vh-mast { fill: #64748B; }
  .iba-desk-svg :is(.vh-carr, .vh-fork) { fill: #475569; }
  .iba-desk-svg .vh-pallet { fill: #A16207; }
  .iba-desk-svg .vh-slat { stroke: #78350F; stroke-width: 1; }
  .iba-desk-svg .vh-box { fill: #D6A86A; stroke: #92400E; stroke-width: .8; }
  .iba-desk-svg .vh-tape { stroke: #FFFFFF; stroke-width: 1.4; opacity: .85; }
  .iba-desk-svg .vh-pipe { stroke: #334155; stroke-width: 2.4; stroke-linecap: round; }
  .iba-desk-svg .vh-puff circle { fill: #CBD5E1; opacity: 0; }
  .iba-desk-svg .vh-steer { stroke: #334155; stroke-width: 2; stroke-linecap: round; }
  .iba-desk-svg .vh-arm { stroke: #CA8A04; stroke-width: 5; stroke-linecap: round; }
  .iba-desk-svg :is(.vh-bkt) { fill: #64748B; stroke: #334155; stroke-width: 1; }
  .iba-desk-svg .vh-teeth { stroke: #334155; stroke-width: 1.4; stroke-linecap: round; }
  .iba-desk-svg :is(.vh-sand, .vh-load) { fill: #D9B77E; }
  .iba-desk-svg :is(.vh-drive, .vh-wheel, .vh-lift, .vh-boom, .vh-bucket, .vh-puff circle, .vh-driver, .sc-mini) { transform-box: view-box; }
  .iba-desk-svg .vh-drive { animation: ibaVhDrive 9s ease-in-out infinite; }
  .iba-desk-svg .vh-wheel { animation: ibaVhWheel 9s ease-in-out infinite; }
  .iba-desk-svg .vh-lift { animation: ibaVhLift 9s ease-in-out infinite; }
  .iba-desk-svg .vh-boom { transform-origin: 64px 46px; animation: ibaVhBoom 9s ease-in-out infinite; }
  .iba-desk-svg .vh-bucket { transform-origin: 92px 60px; animation: ibaVhBucket 9s ease-in-out infinite; }
  .iba-desk-svg.is-loader .vh-load { animation: ibaVhLoad 9s step-end infinite; }
  .iba-desk-svg .vh-puff circle:nth-child(1) { animation: ibaVhPuff 1.6s ease-out infinite; }
  .iba-desk-svg .vh-puff circle:nth-child(2) { animation: ibaVhPuff 1.6s ease-out -.8s infinite; }
  .iba-desk-svg .vh-driver, .iba-desk-svg.is-loader .sc-mini { animation: ibaVhBounce .5s ease-in-out infinite alternate; }

  /* 17.0.3 patch 12: the robot's day */
  .iba-desk-svg :is(.dy-head, .dy-eyes, .dy-stretch, .dy-wash, .dy-foam, .dy-bubbles circle, .dy-drop, .dy-walker, .dy-swing, .dy-arm-l, .dy-leg-l, .dy-leg-r, .dy-road, .dy-eat, .dy-flip, .dy-egg, .dy-brush, .dy-clock, .dy-z, .dy-blanket, .dy-tv-screen, .dy-popcorn, .dy-sit, .dy-flame) { transform-box: view-box; }
  .iba-desk-svg .dy-shut { fill: none; stroke: #5ED6C4; stroke-width: 1.4; stroke-linecap: round; }
  .iba-desk-svg .dy-mouth { fill: none; stroke: #5ED6C4; stroke-width: 1.4; stroke-linecap: round; }
  .iba-desk-svg .dy-eyes.is-right { transform: translateX(2px); }
  .iba-desk-svg .dy-chef { fill: #FFFFFF; stroke: #CBD5E1; stroke-width: .8; }
  .iba-desk-svg .dy-chef-band { fill: #F1F5F9; stroke: #CBD5E1; stroke-width: .6; }
  .iba-desk-svg .dy-arm { fill: none; stroke: #2B6F84; stroke-width: 4; stroke-linecap: round; }
  .iba-desk-svg .dy-torso { fill: #2B6F84; stroke: #0B1724; stroke-width: .8; }
  .iba-desk-svg :is(.dy-head-board, .dy-leg) { fill: #6B4423; }
  .iba-desk-svg .dy-bed { fill: #8B5E34; }
  .iba-desk-svg .dy-pillow { fill: #F8FAFC; stroke: #CBD5E1; stroke-width: .6; }
  .iba-desk-svg .dy-blanket { fill: #3B82F6; stroke: #1E3A8A; stroke-width: .8; }
  .iba-desk-svg .dy-blanket-line { stroke: #FFFFFF; stroke-width: 1.4; opacity: .7; }
  .iba-desk-svg .dy-moon { fill: #FDE68A; }
  .iba-desk-svg .dy-moon-cut { fill: #173246; }
  .iba-desk-svg .dy-star { fill: #FDE68A; }
  .iba-desk-svg .dy-z { fill: #E3C98A; font: 800 8px/1 system-ui, sans-serif; opacity: 0; }
  .iba-desk-svg .dy-window { fill: #7DD3FC; stroke: #E2E8F0; stroke-width: 1.4; }
  .iba-desk-svg .dy-window-bar { stroke: #E2E8F0; stroke-width: 1.2; }
  .iba-desk-svg .dy-sun { fill: #FACC15; }
  .iba-desk-svg .dy-clock-body { fill: #EF4444; }
  .iba-desk-svg .dy-clock-face { fill: #FFFFFF; }
  .iba-desk-svg .dy-ring { stroke: #FDE68A; stroke-width: 1.2; stroke-linecap: round; }
  .iba-desk-svg .dy-tile { fill: rgba(125, 211, 252, .10); stroke: rgba(226, 232, 240, .25); stroke-width: .8; }
  .iba-desk-svg :is(.dy-pipe, .dy-tap) { fill: none; stroke: #94A3B8; stroke-width: 2.2; }
  .iba-desk-svg .dy-shower-head { fill: #CBD5E1; }
  .iba-desk-svg .dy-drop { stroke: #7DD3FC; stroke-width: 1.4; stroke-linecap: round; }
  .iba-desk-svg :is(.dy-foam circle, .dy-bubbles circle) { fill: #FFFFFF; stroke: #BAE6FD; stroke-width: .5; opacity: .95; }
  .iba-desk-svg .dy-curtain { fill: #2563EB; opacity: .85; }
  .iba-desk-svg .dy-floor { fill: #CBD5E1; opacity: .6; }
  .iba-desk-svg .dy-city rect { fill: #1E3A4C; }
  .iba-desk-svg .dy-road path { stroke: #CBD5E1; stroke-width: 1.2; }
  .iba-desk-svg .dy-bag { fill: #78350F; }
  .iba-desk-svg .dy-bag-handle { fill: none; stroke: #78350F; stroke-width: 1.2; }
  .iba-desk-svg :is(.dy-table) { fill: #A16207; }
  .iba-desk-svg .dy-plate { fill: #FFFFFF; }
  .iba-desk-svg .dy-rice { fill: #FEF3C7; }
  .iba-desk-svg .dy-food { fill: #DC2626; }
  .iba-desk-svg .dy-fork { stroke: #CBD5E1; stroke-width: 1.4; stroke-linecap: round; }
  .iba-desk-svg .dy-cup { fill: #FFFFFF; stroke: #0F2537; stroke-width: .8; }
  .iba-desk-svg :is(.dy-wall-clock) { fill: #F8FAFC; stroke: #94A3B8; }
  .iba-desk-svg .dy-clock-hands { stroke: #0F2537; stroke-width: 1.2; stroke-linecap: round; }
  .iba-desk-svg .dy-hood { fill: #64748B; }
  .iba-desk-svg .dy-apron { fill: #FFFFFF; opacity: .9; }
  .iba-desk-svg .dy-pan { fill: #334155; }
  .iba-desk-svg .dy-pan-handle { stroke: #1F2937; stroke-width: 2.4; stroke-linecap: round; }
  .iba-desk-svg .dy-egg-w { fill: #FFFFFF; }
  .iba-desk-svg .dy-egg-y { fill: #FACC15; }
  .iba-desk-svg .dy-stove { fill: #E2E8F0; stroke: #94A3B8; stroke-width: .8; }
  .iba-desk-svg .dy-stove-top { fill: #475569; }
  .iba-desk-svg .dy-flame path { fill: none; stroke: #F97316; stroke-width: 1.6; stroke-linecap: round; }
  .iba-desk-svg .dy-knob { fill: #475569; }
  .iba-desk-svg .dy-tv-frame { fill: #111827; }
  .iba-desk-svg .dy-tv-screen { fill: #38BDF8; }
  .iba-desk-svg .dy-tv-stand { stroke: #111827; stroke-width: 1.6; }
  .iba-desk-svg :is(.dy-sofa-back, .dy-sofa-seat, .dy-sofa-arm) { fill: #7C3AED; stroke: #4C1D95; stroke-width: .8; }
  .iba-desk-svg .dy-sofa-seat { fill: #8B5CF6; }
  .iba-desk-svg .dy-rug { fill: #A16207; opacity: .6; }
  .iba-desk-svg .dy-bowl { fill: #EF4444; }
  .iba-desk-svg .dy-popcorn circle { fill: #FEF9C3; }
  .iba-desk-svg .dy-mirror { fill: #BAE6FD; stroke: #E2E8F0; stroke-width: 1.4; opacity: .85; }
  .iba-desk-svg .dy-shine { stroke: #FFFFFF; stroke-width: 1.4; stroke-linecap: round; opacity: .8; }
  .iba-desk-svg .dy-toothbrush { fill: #22C55E; }
  .iba-desk-svg .dy-bristle { fill: #FFFFFF; }
  .iba-desk-svg .dy-sink { fill: #F1F5F9; stroke: #94A3B8; stroke-width: .8; }

  .iba-desk-svg.is-sleep .dy-blanket { transform-origin: 70px 62px; animation: ibaDyBreath 3.6s ease-in-out infinite; }
  .iba-desk-svg.is-sleep .dy-z.z1 { animation: ibaDyZ 3s ease-out infinite; }
  .iba-desk-svg.is-sleep .dy-z.z2 { animation: ibaDyZ 3s ease-out 1s infinite; }
  .iba-desk-svg.is-sleep .dy-z.z3 { animation: ibaDyZ 3s ease-out 2s infinite; }
  .iba-desk-svg.is-sleep .dy-star { animation: ibaBotHeart 2.4s ease-in-out infinite; }
  .iba-desk-svg.is-wake .dy-stretch { transform-origin: 32px 38px; animation: ibaDyStretch 4s ease-in-out infinite; }
  .iba-desk-svg.is-wake .dy-clock { transform-origin: 106px 50px; animation: ibaDyShake .25s linear infinite alternate; }
  .iba-desk-svg.is-wake .dy-sun { animation: ibaDyRise 8s ease-out infinite; }
  .iba-desk-svg.is-shower .dy-drop { animation: ibaDyDrop .7s linear infinite; }
  .iba-desk-svg.is-shower .dy-drop.d2, .iba-desk-svg.is-shower .dy-drop.d5 { animation-delay: -.35s; }
  .iba-desk-svg.is-shower .dy-drop.d3, .iba-desk-svg.is-shower .dy-drop.d6 { animation-delay: -.2s; }
  .iba-desk-svg.is-shower .dy-wash { transform-origin: 58px 70px; animation: ibaDyScrub 1.2s ease-in-out infinite alternate; }
  .iba-desk-svg.is-shower .dy-bubbles circle { animation: ibaDyBubble 3s ease-out infinite; }
  .iba-desk-svg.is-shower .dy-bubbles .b2 { animation-delay: -1s; } .iba-desk-svg.is-shower .dy-bubbles .b3 { animation-delay: -2s; } .iba-desk-svg.is-shower .dy-bubbles .b4 { animation-delay: -1.5s; }
  .iba-desk-svg.is-walk .dy-walker { animation: ibaDyBob .5s ease-in-out infinite alternate; }
  .iba-desk-svg.is-walk .dy-leg-l { transform-origin: 56px 58px; animation: ibaDyStep .5s ease-in-out infinite alternate; }
  .iba-desk-svg.is-walk .dy-leg-r { transform-origin: 64px 58px; animation: ibaDyStep .5s ease-in-out -.5s infinite alternate; }
  .iba-desk-svg.is-walk .dy-swing { transform-origin: 71px 44px; animation: ibaDySwing .5s ease-in-out infinite alternate; }
  .iba-desk-svg.is-walk .dy-arm-l { transform-origin: 49px 44px; animation: ibaDySwing .5s ease-in-out -.5s infinite alternate; }
  .iba-desk-svg.is-walk .dy-road { animation: ibaDyRoad 1s linear infinite; }
  .iba-desk-svg.is-lunch .dy-eat { transform-origin: 70px 42px; animation: ibaDyEat 2s ease-in-out infinite; }
  .iba-desk-svg.is-lunch .dy-mouth.is-chew { transform-box: fill-box; transform-origin: center; animation: ibaBotTalk .3s ease-in-out infinite alternate; }
  .iba-desk-svg.is-cook .dy-flip { transform-origin: 53px 46px; animation: ibaDyFlip 2.4s ease-in-out infinite; }
  .iba-desk-svg.is-cook .dy-egg { animation: ibaDyEgg 2.4s ease-in-out infinite; }
  .iba-desk-svg.is-cook .dy-flame { transform-origin: 77px 55px; animation: ibaDyFlame .3s ease-in-out infinite alternate; }
  .iba-desk-svg.is-tv .dy-tv-screen { animation: ibaDyTv 2.4s steps(1) infinite; }
  .iba-desk-svg.is-tv .dy-head { animation: ibaDyLaugh 3s ease-in-out infinite; }
  .iba-desk-svg.is-tv .dy-mouth.is-laugh { transform-box: fill-box; transform-origin: center; animation: ibaBotTalk .25s ease-in-out infinite alternate; }
  .iba-desk-svg.is-brush .dy-brush { animation: ibaDyBrush .35s ease-in-out infinite alternate; }
  .iba-desk-svg.is-brush .dy-foam.s { animation: ibaBotHeart 1s ease-in-out infinite; }

  @media (prefers-reduced-motion: reduce) {
    .iba-desk-svg * { animation: none !important; }
  }
}
/* 10 s loop: type (0-38%), sip coffee (40-58%), type, look up and wave (78-94%) */
@keyframes ibaDkTap { from { transform: translateY(0); } to { transform: translateY(-2.2px); } }
@keyframes ibaDkHead { 0%, 38%, 60%, 76%, 96%, 100% { transform: rotate(0) translateY(1px); } 44%, 54% { transform: rotate(-6deg) translateY(0); } 80%, 92% { transform: rotate(5deg) translateY(-1px); } }
@keyframes ibaDkEyes { 0%, 38%, 60%, 76%, 96%, 100% { transform: translateY(2px); } 44%, 54% { transform: translate(-3px, 0); } 80%, 92% { transform: translateY(-1px); } }
@keyframes ibaDkSteam { 0% { opacity: 0; transform: translateY(2px); } 30% { opacity: .9; } 100% { opacity: 0; transform: translateY(-7px); } }
@keyframes ibaDkBit { 0% { opacity: 0; transform: translateY(0); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(-14px); } }
@keyframes ibaDkTypeL { 0% { opacity: 1; } 40% { opacity: 0; } 58% { opacity: 1; } }
@keyframes ibaDkTypeR { 0% { opacity: 1; } 78% { opacity: 0; } 94% { opacity: 1; } }
@keyframes ibaDkSip { 0% { opacity: 0; } 40% { opacity: 1; } 58% { opacity: 0; } }
@keyframes ibaDkMug { 0% { opacity: 1; } 40% { opacity: 0; } 58% { opacity: 1; } }
@keyframes ibaDkWave { 0%, 77.9% { opacity: 0; transform: rotate(0); } 78% { opacity: 1; transform: rotate(0); } 81% { transform: rotate(-14deg); } 84% { transform: rotate(6deg); } 87% { transform: rotate(-14deg); } 90% { transform: rotate(6deg); } 93.9% { opacity: 1; transform: rotate(0); } 94%, 100% { opacity: 0; } }
/* 17.0.3 patch 6: prayer (16 s, calm): stand, bow, stand, prostrate, sit, prostrate, sit */
@keyframes ibaPrStand { 0%, 27% { opacity: 1; } 28%, 43% { opacity: 0; } 44%, 51% { opacity: 1; } 52%, 100% { opacity: 0; } }
@keyframes ibaPrRuku { 0%, 27% { opacity: 0; } 28%, 43% { opacity: 1; } 44%, 100% { opacity: 0; } }
@keyframes ibaPrSujud { 0%, 51% { opacity: 0; } 52%, 65% { opacity: 1; } 66%, 75% { opacity: 0; } 76%, 89% { opacity: 1; } 90%, 100% { opacity: 0; } }
@keyframes ibaPrSit { 0%, 65% { opacity: 0; } 66%, 75% { opacity: 1; } 76%, 89% { opacity: 0; } 90%, 99% { opacity: 1; } 100% { opacity: 0; } }
/* vehicles (9 s): drive in a bit, lift / scoop, back off */
@keyframes ibaVhDrive { 0%, 100% { transform: translateX(-8px); } 30%, 70% { transform: translateX(4px); } }
@keyframes ibaVhWheel { 0%, 100% { transform: rotate(0); } 30%, 70% { transform: rotate(140deg); } }
@keyframes ibaVhLift { 0%, 30%, 92%, 100% { transform: translateY(0); } 45%, 75% { transform: translateY(-24px); } }
@keyframes ibaVhBoom { 0%, 25%, 95%, 100% { transform: rotate(0); } 45%, 75% { transform: rotate(-32deg); } }
@keyframes ibaVhBucket { 0%, 25% { transform: rotate(0); } 40%, 62% { transform: rotate(-18deg); } 72%, 80% { transform: rotate(40deg); } 95%, 100% { transform: rotate(0); } }
@keyframes ibaVhLoad { 0% { opacity: 1; } 74% { opacity: 0; } 98% { opacity: 1; } }
@keyframes ibaVhPuff { 0% { opacity: 0; transform: translate(0, 4px) scale(.6); } 30% { opacity: .7; } 100% { opacity: 0; transform: translate(-4px, -8px) scale(1.4); } }
@keyframes ibaVhBounce { from { transform: translateY(0); } to { transform: translateY(-.8px); } }
/* 17.0.3 patch 7: Z Flip cover screen - the phone robot is 40x48 there */
@media (max-width: 480px) and (max-height: 560px), (max-width: 600px) and (max-height: 700px) and (min-aspect-ratio: 3/4) and (max-aspect-ratio: 4/3) {
  @layer iba-ui {
    body.iba-phone .iba-aph-bot.is-scene { flex-basis: 69px !important; width: 69px !important; }
    body.iba-phone .iba-aph-bot.is-scene .iba-desk-scene.is-hero,
    body.iba-phone .iba-aph-bot.is-scene .iba-desk-scene.is-hero svg { width: 69px !important; height: 48px !important; }
  }
}
/* 17.0.3 patch 12: robot's day */
@keyframes ibaDyBreath { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.08); } }
@keyframes ibaDyZ { 0% { opacity: 0; transform: translate(0, 4px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translate(6px, -6px); } }
@keyframes ibaDyStretch { 0%, 20%, 80%, 100% { transform: scaleY(.55) translateY(14px); } 40%, 60% { transform: scaleY(1) translateY(0); } }
@keyframes ibaDyShake { from { transform: rotate(-8deg); } to { transform: rotate(8deg); } }
@keyframes ibaDyRise { 0% { transform: translateY(8px); } 60%, 100% { transform: translateY(-8px); } }
@keyframes ibaDyDrop { from { transform: translateY(0); opacity: 1; } to { transform: translateY(26px); opacity: 0; } }
@keyframes ibaDyScrub { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
@keyframes ibaDyBubble { 0% { transform: translateY(0) scale(.6); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-30px) scale(1.2); opacity: 0; } }
@keyframes ibaDyBob { from { transform: translateY(0); } to { transform: translateY(-1.5px); } }
@keyframes ibaDyStep { from { transform: rotate(-18deg); } to { transform: rotate(18deg); } }
@keyframes ibaDySwing { from { transform: rotate(-14deg); } to { transform: rotate(14deg); } }
@keyframes ibaDyRoad { from { transform: translateX(0); } to { transform: translateX(-22px); } }
@keyframes ibaDyEat { 0%, 30%, 100% { transform: rotate(0); } 50%, 70% { transform: rotate(-12deg) translate(-6px, -3px); } }
@keyframes ibaDyFlip { 0%, 30%, 60%, 100% { transform: rotate(0); } 40% { transform: rotate(-14deg); } }
@keyframes ibaDyEgg { 0%, 34% { transform: translateY(0); } 50% { transform: translateY(-14px); } 66%, 100% { transform: translateY(0); } }
@keyframes ibaDyFlame { from { transform: scaleY(.8); } to { transform: scaleY(1.2); } }
@keyframes ibaDyTv { 0% { fill: #38BDF8; } 25% { fill: #A78BFA; } 50% { fill: #34D399; } 75% { fill: #FBBF24; } }
@keyframes ibaDyLaugh { 0%, 60%, 100% { transform: rotate(0); } 70%, 90% { transform: rotate(-6deg); } 80% { transform: rotate(4deg); } }
@keyframes ibaDyBrush { from { transform: translateX(-2px); } to { transform: translateX(2px); } }
