
/* ============================================================================
   ORB — THE CHARACTER
   A glass head with a living core and a face. Built by orbFaceHtml()
   (Js_OrbFace) wherever Orb appears: the floating button, the chat panel,
   beside each reply, the Orb page, Orb's moments, the welcome. Its mood is a
   class on .orbx — idle (none), listening, thinking, happy, caring,
   surprised, wink, sleeping, oop — set for every Orb at once by setOrbMood().
   A few more are set on one Orb only: looking, peeking, focused (on a call),
   talking (reading a reply aloud).
   Size is --s on the element. Everything else scales from it. In a season
   (Halloween, Christmas, Easter) an Orb of 30px or more sits in a
   .orbx-wrap with its hat and friends beside it, outside the glass.
   ============================================================================ */
.orbx{--s:64px;position:relative;width:var(--s);height:var(--s);border-radius:50%;overflow:hidden;flex:0 0 auto;display:inline-block;vertical-align:middle;
  -webkit-backdrop-filter:blur(1.5px) saturate(1.7) brightness(1.1);backdrop-filter:blur(1.5px) saturate(1.7) brightness(1.1);
  background:radial-gradient(circle at 50% 42%, rgba(42,140,210,.30), rgba(9,60,110,.62) 78%, rgba(4,30,60,.8));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.28),
    inset calc(var(--s) * .018) calc(var(--s) * .026) 1px calc(var(--s) * -.008) rgba(255,255,255,.95),
    inset calc(var(--s) * -.02) calc(var(--s) * -.03) calc(var(--s) * .02) calc(var(--s) * -.01) rgba(255,255,255,.45),
    inset calc(var(--s) * .03) 0 calc(var(--s) * .05) calc(var(--s) * -.02) rgba(0,255,240,.32),
    inset calc(var(--s) * -.03) 0 calc(var(--s) * .05) calc(var(--s) * -.02) rgba(255,60,200,.28),
    inset 0 calc(var(--s) * -.16) calc(var(--s) * .22) calc(var(--s) * -.1) rgba(0,8,25,.55),
    0 calc(var(--s) * .14) calc(var(--s) * .26) calc(var(--s) * -.09) rgba(0,10,25,.55),
    0 calc(var(--s) * .02) calc(var(--s) * .05) calc(var(--s) * -.01) rgba(0,10,25,.3);
  transition:transform .4s cubic-bezier(.34,1.56,.64,1), filter .4s ease}
.orbx .orbx-core{position:absolute;left:22%;right:22%;top:30%;bottom:14%;border-radius:50%;z-index:2;
  background:conic-gradient(from 0deg, #2aa8e0, #7c5cff, #3ee0c5, #2aa8e0);filter:blur(calc(var(--s) * .07));opacity:.9;
  animation:orbxSpin 9s linear infinite, orbxPulse 4.5s ease-in-out infinite;transition:opacity .5s ease}
.orbx::after{content:'';position:absolute;left:14%;right:14%;top:5%;height:34%;border-radius:50%;z-index:6;pointer-events:none;
  background:linear-gradient(180deg, rgba(255,255,255,.42), rgba(255,255,255,0))}
.orbx::before{content:'';position:absolute;left:30%;right:30%;bottom:4%;height:7%;border-radius:50%;z-index:6;pointer-events:none;
  background:radial-gradient(ellipse, rgba(170,235,255,.55), transparent 70%)}
.orbx .orbx-face{position:absolute;left:50%;top:47%;width:60%;height:34%;transform:translate(-50%,-50%);z-index:5;display:flex;align-items:center;justify-content:center;gap:calc(var(--s) * .15);
  animation:orbxLook 9s ease-in-out infinite;transition:transform .4s cubic-bezier(.34,1.4,.64,1)}
.orbx .orbx-eye{position:relative;width:calc(var(--s) * .085);height:calc(var(--s) * .2);border-radius:999px;background:#fff;
  box-shadow:0 0 calc(var(--s) * .06) rgba(170,230,255,.95),0 0 calc(var(--s) * .015) rgba(255,255,255,.9);
  transition:all .35s cubic-bezier(.34,1.4,.64,1);animation:orbxBlink 6s infinite}
.orbx .orbx-eye:first-child{transform:perspective(200px) rotateY(18deg)}
.orbx .orbx-eye:last-child{transform:perspective(200px) rotateY(-18deg);animation-delay:.04s}
/* below 20px the face is a blur; just the glass and the core */
.orbx.orbx-tiny .orbx-face{display:none}

/* still: no blinking, looking round or swirling (a task Orb made) */
.orbx.orbx-still,.orbx.orbx-still *{animation:none!important;transition:none!important}

/* ── Moods ── */
.orbx.listening .orbx-eye{width:calc(var(--s) * .1);height:calc(var(--s) * .23)}
.orbx.listening .orbx-face{animation:none;transform:translate(-50%,-50%) rotate(-6deg)}
.orbx.listening .orbx-core{opacity:1;filter:blur(calc(var(--s) * .05)) brightness(1.3);background:conic-gradient(from 0deg,#3ee0c5,#2aa8e0,#8fe9ff,#3ee0c5)}
.orbx.thinking .orbx-face{animation:none;transform:translate(-36%,-62%)}
.orbx.thinking .orbx-eye{height:calc(var(--s) * .16);animation:none}
.orbx.thinking .orbx-eye:last-child{height:calc(var(--s) * .12)}
.orbx.thinking .orbx-core{animation:orbxSpin 1.6s linear infinite;background:conic-gradient(from 0deg,#7c5cff,#2aa8e0,#c79bff,#7c5cff)}
.orbx.happy .orbx-eye{background:transparent;box-shadow:none;width:calc(var(--s) * .15);height:calc(var(--s) * .15);border-radius:50%;
  border:calc(var(--s) * .042) solid transparent;border-top-color:#fff;filter:drop-shadow(0 0 calc(var(--s) * .03) rgba(255,230,180,.95));animation:none;margin-top:calc(var(--s) * .06)}
.orbx.happy .orbx-core{background:conic-gradient(from 0deg,#ffb547,#ff6fb5,#ffd36e,#ffb547)}
.orbx.happy .orbx-face{animation:orbxBob 2.4s ease-in-out infinite}
/* caring: soft smiling eyes, gentler than happy, with the head tilted a little */
.orbx.caring .orbx-eye{background:transparent;box-shadow:none;width:calc(var(--s) * .13);height:calc(var(--s) * .13);border-radius:50%;
  border:calc(var(--s) * .034) solid transparent;border-top-color:#fff;filter:drop-shadow(0 0 calc(var(--s) * .03) rgba(210,190,255,.95));animation:none;margin-top:calc(var(--s) * .05)}
.orbx.caring .orbx-face{animation:none;transform:translate(-50%,-44%) rotate(-7deg)}
.orbx.caring .orbx-core{background:conic-gradient(from 0deg,#8ab4ff,#c79bff,#9fdcff,#8ab4ff);opacity:.75;animation:orbxSpin 14s linear infinite, orbxPulse 6s ease-in-out infinite}
.orbx.surprised .orbx-eye{width:calc(var(--s) * .13);height:calc(var(--s) * .13);animation:none}
.orbx.surprised .orbx-face{animation:none;transform:translate(-50%,-54%)}
.orbx.wink .orbx-eye:last-child{background:transparent;box-shadow:none;width:calc(var(--s) * .14);height:calc(var(--s) * .14);border-radius:50%;
  border:calc(var(--s) * .04) solid transparent;border-top-color:#fff;filter:drop-shadow(0 0 calc(var(--s) * .03) rgba(170,230,255,.95));animation:none;margin-top:calc(var(--s) * .05)}
.orbx.wink .orbx-face{animation:none}
.orbx.sleeping .orbx-eye{height:calc(var(--s) * .028);width:calc(var(--s) * .12);animation:none;opacity:.8}
.orbx.sleeping .orbx-face{animation:orbxSleepBob 4s ease-in-out infinite}
.orbx.sleeping .orbx-core{background:conic-gradient(from 0deg,#5b6b7c,#8796a6,#5b6b7c);opacity:.5;animation:orbxPulse 6s ease-in-out infinite}
.orbx.sleeping{filter:saturate(.6)}
/* looking up and left, towards the chat panel it has opened */
.orbx.looking .orbx-face{animation:none;transform:translate(-64%,-60%)}
/* oop: it has sat on something — round eyes and a little 'o' */
.orbx.oop .orbx-eye{width:calc(var(--s) * .13);height:calc(var(--s) * .13);border-radius:50%;animation:none}
.orbx.oop .orbx-face{animation:none;transform:translate(-50%,-58%)}
.orbx.oop .orbx-face::after{content:'';position:absolute;left:50%;bottom:-10%;width:calc(var(--s) * .085);height:calc(var(--s) * .095);transform:translateX(-50%);border-radius:50%;
  border:calc(var(--s) * .018) solid #fff;box-shadow:0 0 calc(var(--s) * .03) rgba(170,230,255,.9);box-sizing:border-box}
.orbx.oop .orbx-core{background:conic-gradient(from 0deg,#8fe9ff,#c79bff,#3ee0c5,#8fe9ff);opacity:1}
/* peeking: tucked below the edge of the screen, looking up */
.orbx.peeking .orbx-face{animation:none;transform:translate(-50%,-86%)}
.orbx.peeking .orbx-eye{height:calc(var(--s) * .17)}
/* focused: the volunteer is on a call — eyes softly lowered, a calm core */
.orbx.focused .orbx-face{animation:none;transform:translate(-50%,-36%)}
.orbx.focused .orbx-eye{height:calc(var(--s) * .1);width:calc(var(--s) * .1);border-radius:50% 50% 999px 999px / 35% 35% 999px 999px;animation:orbxBlink 11s infinite}
.orbx.focused .orbx-core{opacity:.6;animation:orbxSpin 18s linear infinite, orbxPulse 7s ease-in-out infinite}
/* talking: reading a reply aloud — the core pulses with the words */
.orbx.talking .orbx-core{opacity:1;animation:orbxSpin 3s linear infinite, orbxPulse .55s ease-in-out infinite}
.orbx.talking .orbx-face{animation:orbxBob 1.1s ease-in-out infinite}

/* ── Gestures (short, added and removed by orbGesture) ── */
.orbx.g-wave{animation:orbxWave 1.1s ease-in-out}
.orbx.g-hop{animation:orbxHop .7s cubic-bezier(.34,1.56,.64,1)}
.orbx.g-nod{animation:orbxNod .8s ease-in-out}
.orbx.g-shake{animation:orbxShake .6s ease-in-out}
.orbx.g-spin .orbx-core{animation:orbxSpin .5s linear 3}

@keyframes orbxSpin{to{rotate:360deg}}
@keyframes orbxPulse{0%,100%{scale:.92}50%{scale:1.06}}
@keyframes orbxBlink{0%,44%,48%,100%{scale:1 1}46%{scale:1 .08}}
@keyframes orbxLook{0%,30%,100%{transform:translate(-50%,-50%)}38%,52%{transform:translate(-36%,-50%)}60%,74%{transform:translate(-64%,-48%)}82%{transform:translate(-50%,-50%)}}
@keyframes orbxBob{0%,100%{transform:translate(-50%,-50%)}50%{transform:translate(-50%,-56%)}}
@keyframes orbxSleepBob{0%,100%{transform:translate(-50%,-48%)}50%{transform:translate(-50%,-44%)}}
@keyframes orbxWave{0%,100%{rotate:0deg}20%{rotate:-14deg}40%{rotate:12deg}60%{rotate:-10deg}80%{rotate:6deg}}
@keyframes orbxHop{0%,100%{translate:0 0}40%{translate:0 calc(var(--s) * -.28)}70%{translate:0 0}85%{translate:0 calc(var(--s) * -.06)}}
@keyframes orbxNod{0%,100%{translate:0 0}30%{translate:0 calc(var(--s) * .08)}60%{translate:0 calc(var(--s) * -.03)}}
@keyframes orbxShake{0%,100%{translate:0 0}20%{translate:calc(var(--s) * -.06) 0}40%{translate:calc(var(--s) * .06) 0}60%{translate:calc(var(--s) * -.04) 0}80%{translate:calc(var(--s) * .03) 0}}

@media (prefers-reduced-motion: reduce){
  .orbx .orbx-core,.orbx .orbx-face,.orbx .orbx-eye,.orbx{animation:none!important}
}

/* ── Seasons ──────────────────────────────────────────────────────────────
   The core's colours come from a class on <body> (every Orb, any size). The
   hat, ears, bat, snow and egg are in .orbx-acc beside the glass, so they
   are not cut off by it, and they move with Orb's gestures. */
.orbx-wrap{--s:64px;position:relative;display:inline-block;vertical-align:middle;flex:0 0 auto;width:var(--s);height:var(--s);isolation:isolate}
.orbx-wrap > .orbx{--s:inherit;display:block}
.orbx-acc{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none}
.orbx-acc.back{z-index:-1}
.orbx-acc svg{display:block}
.orbx.g-wave ~ .orbx-acc{animation:orbxWave 1.1s ease-in-out}
.orbx.g-hop ~ .orbx-acc{animation:orbxHop .7s cubic-bezier(.34,1.56,.64,1)}
.orbx.g-nod ~ .orbx-acc{animation:orbxNod .8s ease-in-out}
.orbx.g-shake ~ .orbx-acc{animation:orbxShake .6s ease-in-out}
.orbx-hat{position:absolute;width:calc(var(--s) * .84);left:calc(var(--s) * .1);top:calc(var(--s) * -.4);transform:rotate(-9deg);transform-origin:50% 90%;
  filter:drop-shadow(0 calc(var(--s) * .02) calc(var(--s) * .03) rgba(0,10,25,.35))}
.orbx-hat-santa{left:calc(var(--s) * .06);top:calc(var(--s) * -.36);transform:rotate(-12deg)}
.orbx-ears{position:absolute;width:calc(var(--s) * .72);left:calc(var(--s) * .14);top:calc(var(--s) * -.4)}
.orbx-ears g{transform-box:fill-box;transform-origin:50% 100%}
.orbx-ears g:last-child{animation:orbxEar 7s ease-in-out infinite}
/* Halloween: a pumpkin core, a witch's hat and a bat that flutters by */
:where(body.orb-season-halloween) .orbx .orbx-core{background:conic-gradient(from 0deg,#ff8a1f,#ffcf7a,#e85d04,#ffb347,#ff8a1f)}
.orbx-bat{position:absolute;left:calc(var(--s) * -.5);top:calc(var(--s) * -.12);width:calc(var(--s) * .34);opacity:0;animation:orbxBat 23s linear infinite 5s}
.orbx-bat svg{width:100%;animation:orbxFlap .16s ease-in-out infinite alternate;transform-origin:50% 40%}
/* Christmas: a Santa hat, red, green and gold, and snow in and around the glass */
:where(body.orb-season-christmas) .orbx .orbx-core{background:conic-gradient(from 0deg,#e23b3b,#ffd36e,#2fb36d,#e23b3b)}
.orbx-snow{position:absolute;inset:0;z-index:4;pointer-events:none}
.orbx-snow i,.orbx-flakes i{position:absolute;top:-8%;width:calc(var(--s) * .04);height:calc(var(--s) * .04);border-radius:50%;background:#fff;opacity:.9;
  box-shadow:0 0 calc(var(--s) * .02) rgba(255,255,255,.9);animation:orbxSnow 7s linear infinite}
.orbx-snow i:nth-child(1){left:18%;animation-delay:-1s}
.orbx-snow i:nth-child(2){left:34%;animation-delay:-4.2s;animation-duration:8.5s}
.orbx-snow i:nth-child(3){left:52%;animation-delay:-2.6s;width:calc(var(--s) * .03);height:calc(var(--s) * .03)}
.orbx-snow i:nth-child(4){left:68%;animation-delay:-5.6s;animation-duration:6.4s}
.orbx-snow i:nth-child(5){left:80%;animation-delay:-.4s;width:calc(var(--s) * .028);height:calc(var(--s) * .028)}
.orbx-snow i:nth-child(6){left:44%;animation-delay:-6.4s;animation-duration:9s}
.orbx-flakes i{opacity:.75;animation-duration:9s}
.orbx-flakes i:nth-child(1){left:-14%;animation-delay:-2s}
.orbx-flakes i:nth-child(2){left:108%;animation-delay:-6s;animation-duration:11s}
.orbx-flakes i:nth-child(3){left:-6%;animation-delay:-8s;animation-duration:10s;width:calc(var(--s) * .03);height:calc(var(--s) * .03)}
/* Easter: bunny ears, a pastel core, and an egg it peeks out of now and then */
:where(body.orb-season-easter) .orbx .orbx-core{background:conic-gradient(from 0deg,#ffb8d9,#fff1a8,#b8f0d8,#cdb8ff,#ffb8d9)}
.orbx-egg{position:absolute;left:-4%;width:108%;bottom:-12%;opacity:0;animation:orbxEgg 19s ease-in-out infinite 3s}
.orbx-egg svg{width:100%;height:calc(var(--s) * .5)}
.orb-egg-show .orbx-egg{animation:none;opacity:1;translate:0 0}

@keyframes orbxBat{0%,80%{translate:0 0;opacity:0}81%{opacity:1}85%{translate:calc(var(--s) * .55) calc(var(--s) * -.14)}
  89%{translate:calc(var(--s) * 1.05) calc(var(--s) * .04)}93%{translate:calc(var(--s) * 1.6) calc(var(--s) * -.2);opacity:1}94%,100%{translate:calc(var(--s) * 1.7) calc(var(--s) * -.2);opacity:0}}
@keyframes orbxFlap{from{scale:1 1}to{scale:1 .35}}
@keyframes orbxSnow{from{translate:0 0}to{translate:calc(var(--s) * .06) calc(var(--s) * 1.2)}}
@keyframes orbxEgg{0%,72%{opacity:0;translate:0 40%}76%,90%{opacity:1;translate:0 0}95%,100%{opacity:0;translate:0 40%}}
@keyframes orbxEar{0%,88%,100%{rotate:0deg}91%{rotate:16deg}94%{rotate:-4deg}97%{rotate:8deg}}
@media (prefers-reduced-motion: reduce){
  .orbx-bat,.orbx-egg{display:none}
  .orbx-snow i,.orbx-flakes i,.orbx-ears g,.orbx-acc{animation:none!important}
  .orbx-snow i:nth-child(odd){top:30%}
  .orbx-snow i:nth-child(even){top:62%}
  .orbx-flakes i{top:40%}
}

/* ── The floating button: the Orb itself, no plasma ball behind it ── */
#orbButton{background:none!important;box-shadow:none!important;animation:none!important;overflow:visible!important;width:64px!important;height:64px!important;padding:0;
  filter:drop-shadow(0 10px 18px rgba(2,20,40,.35));
  transition:transform .3s cubic-bezier(.34,1.56,.64,1), translate .6s cubic-bezier(.45,-.3,.35,1.3)}
/* tucked behind the bottom of the screen, its top peeking out (orbDodgeCheck) */
#orbButton.orb-peeking{translate:0 var(--orb-hide, 40px)}
#orbButton.orb-peeking:hover,#orbButton.orb-peeking:focus-visible{translate:0 calc(var(--orb-hide, 40px) - 16px)}
/* its hat pushed up a little, so the eyes still show */
#orbButton.orb-peeking .orbx-hat,#orbButton.orb-peeking .orbx-ears{translate:0 calc(var(--s) * -.12)}
@media (prefers-reduced-motion: reduce){#orbButton{transition:none}}
#orbButton::before,#orbButton::after{display:none!important}
#orbButton .orb-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
#orbButton:hover:not(.orb-open){transform:translateY(-3px) scale(1.06)!important}
#orbButton.orb-open{transform:none!important}
#orbButton .orb-close-badge{position:absolute;right:-4px;top:-4px;width:22px;height:22px;border-radius:50%;display:none;align-items:center;justify-content:center;
  background:#fff;color:#09517C;font:700 13px/1 system-ui,sans-serif;box-shadow:0 2px 8px rgba(2,20,40,.35);z-index:3}
#orbButton.orb-open .orb-close-badge{display:flex}
/* a speech bubble Orb says on hover */
.orb-quip{position:fixed;right:6.4rem;bottom:2.6rem;max-width:230px;padding:9px 13px;border-radius:14px 14px 4px 14px;z-index:1801;
  background:#fff;color:#0f2233;font:500 13px/1.4 Inter,system-ui,sans-serif;box-shadow:0 8px 24px rgba(2,20,40,.18);
  opacity:0;transform:translateY(6px);transition:opacity .25s ease, transform .25s ease;pointer-events:none}
.orb-quip.show{opacity:1;transform:none}
body.dark-mode .orb-quip{background:#1d3a55;color:#e8f3fb}

/* ── The chat panel ── */
.orb-panel-header .orbx{margin-right:2px}
.orb-msg-sender .orbx{margin-right:6px}
.orb-msg-sender.has-orb{display:flex;align-items:center}
.orb-typing-wrap .orb-typing-row{display:flex;align-items:center;gap:8px}

/* ── Orb's moment: Orb floats up, gestures, and opens its own window ── */
.orb-moment-backdrop{position:fixed;inset:0;z-index:2100;background:rgba(5,20,35,.32);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);opacity:0;transition:opacity .35s ease}
.orb-moment-backdrop.show{opacity:1}
.orb-flyer{position:fixed;z-index:2102;transition:left .9s cubic-bezier(.34,1.3,.64,1), top .9s cubic-bezier(.34,1.3,.64,1), --s .9s ease;pointer-events:none}
.orb-moment{position:fixed;left:50%;top:50%;z-index:2101;width:min(460px, calc(100vw - 32px));transform:translate(-50%,-40%) scale(.96);opacity:0;
  transition:opacity .35s ease .25s, transform .45s cubic-bezier(.34,1.3,.64,1) .25s;
  border-radius:24px;padding:96px 26px 22px;box-sizing:border-box;
  background:rgba(255,255,255,.82);-webkit-backdrop-filter:blur(22px) saturate(1.6);backdrop-filter:blur(22px) saturate(1.6);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.75),0 30px 70px -18px rgba(5,25,45,.5);font-family:Inter,system-ui,sans-serif;color:#0f2233}
.orb-moment.show{opacity:1;transform:translate(-50%,-50%) scale(1)}
/* Never taller than the screen, with room above for Orb (fit() in Js_OrbFace). */
.orb-moment{top:calc(50% + 28px);max-height:calc(100vh - 120px);max-height:calc(100dvh - 120px);overflow-y:auto;overscroll-behavior:contain}
body .orb-moment.orb-moment-wide{width:min(900px, calc(100vw - 48px));padding-top:84px}
.orb-moment-wide .orbh-moment-body,.orb-moment-wide .orbg-help{columns:2 300px;column-gap:28px;column-rule:1px solid rgba(9,81,124,.12)}
body.dark-mode .orb-moment-wide .orbh-moment-body,body.dark-mode .orb-moment-wide .orbg-help{column-rule-color:rgba(255,255,255,.12)}
.orb-moment-wide .orbh-moment-body > *,.orb-moment-wide .orbg-help > *{break-inside:avoid}
.orb-moment-wide .orbh-moment-body h4,.orb-moment-wide .orbg-help h4,.orb-moment-wide .orbh-moment-body h5{break-after:avoid}
.orb-moment-wide .orbg-help > h4:first-of-type{margin-top:0}
.orb-moment-wide .orbg-help-999,.orb-moment-wide .orbg-help-you{column-span:all}
.orb-moment-wide .orbg-help-999{margin-bottom:10px}
body.dark-mode .orb-moment{background:rgba(18,38,58,.84);color:#e8f3fb;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12),0 30px 70px -18px rgba(0,0,0,.7)}
.orb-moment h3{margin:0 0 6px;font-size:21px;font-weight:800;letter-spacing:-.3px;text-align:center}
.orb-moment p{margin:0 0 16px;font-size:15px;line-height:1.5;text-align:center;color:inherit;opacity:.85}
.orb-moment-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}
.orb-moment-close{position:absolute;right:12px;top:12px;width:34px;height:34px;border-radius:50%;border:none;background:rgba(9,81,124,.08);color:inherit;font-size:16px;cursor:pointer}
.orb-moment-quiet{display:block;margin:14px auto 0;background:none;border:none;color:inherit;opacity:.6;font-size:12.5px;cursor:pointer;text-decoration:underline}

/* ── The Orb page ── */
.orb-page{display:grid;grid-template-columns:minmax(0, 340px) minmax(0, 1fr);gap:28px;align-items:start}
@media (max-width: 900px){.orb-page{grid-template-columns:minmax(0, 1fr)}}
.orb-page-side{position:sticky;top:100px}
@media (max-width: 900px){.orb-page-side{position:static}}
.orb-page-main{min-width:0;display:flex;flex-direction:column}
/* Under the chat: tiles that sit side by side, each as tall as it needs. */
.orb-page-tiles{margin-top:22px;columns:2 300px;column-gap:18px}
.orb-page-tiles > *{break-inside:avoid;margin:0 0 18px}
.orb-page-tiles > :empty,.orb-page-tiles > .orb-tiles-anchor{display:none}
/* The engage cards come two to a wrapper; let each be its own tile. */
.orb-page-tiles > #orbEngageSide,.orb-page-tiles > #orbEngageMemories{display:contents}
.orb-page-tiles > #orbEngageSide > *,.orb-page-tiles > #orbEngageMemories > *{break-inside:avoid;margin:0 0 18px}
.orb-page-tiles .orb-limits{margin-top:0}
.orb-hero{position:relative;border-radius:22px;padding:34px 24px 26px;text-align:center;overflow:hidden;color:#fff;
  background:
    radial-gradient(circle at 18% 22%, rgba(42,168,224,.9) 0, transparent 38%),
    radial-gradient(circle at 86% 80%, rgba(124,92,255,.8) 0, transparent 40%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.08) 0 9px, transparent 9px 24px),
    linear-gradient(160deg, #0b2a44, #09517C 55%, #062238)}
.orb-hero .orbx{margin:6px auto 18px;display:block;cursor:pointer}
.orb-hero .orbx-wrap{display:block;margin:calc(var(--s) * .3) auto 18px}
.orb-hero .orbx-wrap > .orbx{margin:0}
.orb-hero h2{margin:0;font-size:30px;font-weight:800;letter-spacing:-.5px;color:#fff}
.orb-hero .orb-hero-line{margin:8px 0 0;font-size:15px;line-height:1.5;opacity:.9;min-height:3em}
.orb-hero .orb-hero-mood{display:inline-block;margin-top:14px;padding:5px 12px;border-radius:999px;background:rgba(255,255,255,.14);font-size:12.5px;font-weight:600;letter-spacing:.3px}
.orb-limits{margin-top:18px;border-radius:18px;padding:18px 20px;background:var(--color-surface, #fff);box-shadow:0 1px 2px rgba(10,30,50,.06),0 8px 24px rgba(10,30,50,.06)}
.orb-limits h3{margin:0 0 10px;font-size:15px}
.orb-limits ul{margin:0;padding-left:1.1rem;font-size:13.5px;line-height:1.55;color:var(--color-text-secondary, #4a5d6e)}
.orb-page-chat{border-radius:22px;overflow:hidden;background:var(--color-surface, #fff);box-shadow:0 1px 2px rgba(10,30,50,.06),0 8px 24px rgba(10,30,50,.07);
  display:flex;flex-direction:column;min-height:560px}
.orb-page-chat .orb-messages{flex:1;max-height:none;min-height:420px}
.orb-page-chat-empty{padding:40px 24px;text-align:center;color:var(--color-text-secondary, #4a5d6e)}
.orb-menu-face{display:inline-flex;min-width:1.4em;justify-content:center;vertical-align:middle}

/* ── The welcome (Js_OrbCourse's first-sign-in welcome, not the course) ── */
.has-orbx{background:none!important;box-shadow:none!important;animation:none!important;overflow:visible!important}
.has-orbx::before,.has-orbx::after{display:none!important}
.orb-welcome-sphere.has-orbx{display:flex;justify-content:center}
@media (max-width: 600px){
  .orb-welcome-sphere.has-orbx .orbx,.orb-welcome-sphere.has-orbx .orbx-wrap{--s:92px!important}
  .orb-welcome-sphere.has-orbx .orbx-wrap > .orbx{--s:inherit!important}
}
/* talking: the core pulses with the words */
.oc-speaking .orbx .orbx-core{animation:orbxSpin 3s linear infinite, orbxPulse .8s ease-in-out infinite}

/* ── Drafting with Orb, Orb settings, the after-call check-in ── */
.orb-drafter-who .orbx,.debrief-orb .orbx{margin-right:8px}
.orb-drafter-who.has-face{display:flex;align-items:center}
.debrief-orb{display:flex;justify-content:center;margin:-.25rem 0 .75rem}

/* ── Orb and the RELAY bee (orbBeePlay) ── */
#navBeeLogo{cursor:pointer;border-radius:50%}
#navBeeLogo:focus-visible{outline:2px solid #fff;outline-offset:2px}
.orb-bee-flyer{position:fixed;z-index:2103;pointer-events:none;will-change:left,top,transform;filter:drop-shadow(0 4px 6px rgba(0,0,0,.25))}
.orb-bee-flyer ellipse:nth-of-type(1),.orb-bee-flyer ellipse:nth-of-type(2){transform-box:fill-box;transform-origin:50% 100%;animation:orbBeeWing .07s linear infinite alternate}
@keyframes orbBeeWing{from{scale:1 1}to{scale:1 .45}}
.orb-quip.giggle{font-weight:700}

/* ── "Show me": Orb flies to something and rings it (orbFlyTo) ── */
.orb-spot-ring{position:fixed;z-index:2099;border-radius:14px;pointer-events:none;opacity:0;transition:opacity .3s ease;
  box-shadow:0 0 0 3px rgba(62,224,197,.95),0 0 0 8px rgba(42,168,224,.28),0 0 30px 8px rgba(42,168,224,.35);animation:orbSpotPulse 1.3s ease-in-out infinite}
.orb-spot-ring.show{opacity:1}
.orb-spot-say{position:fixed;z-index:2100;max-width:260px;padding:8px 12px;border-radius:12px;background:#fff;color:#0f2233;pointer-events:none;
  font:600 13px/1.4 Inter,system-ui,sans-serif;box-shadow:0 8px 24px rgba(2,20,40,.2);opacity:0;transition:opacity .3s ease}
.orb-spot-say.show{opacity:1}
body.dark-mode .orb-spot-say{background:#1d3a55;color:#e8f3fb}
.orb-flyer.orb-guide{transition:left .9s cubic-bezier(.34,1.3,.64,1), top .9s cubic-bezier(.34,1.3,.64,1), rotate .5s ease}
@keyframes orbSpotPulse{0%,100%{scale:1}50%{scale:1.03}}
@media (prefers-reduced-motion: reduce){.orb-spot-ring{animation:none}}

/* ── Under each reply: read aloud, helpful, not helpful ── */
.orb-reply-tools{display:flex;align-items:center;flex-wrap:wrap;gap:4px;margin:4px 0 0 2px}
.orb-tool{border:1px solid transparent;background:none;border-radius:999px;padding:2px 7px;font-size:13px;line-height:1.5;cursor:pointer;opacity:.6;transition:opacity .15s, background .15s}
.orb-tool:hover,.orb-tool:focus-visible{opacity:1;background:rgba(9,81,124,.08);border-color:rgba(9,81,124,.15)}
.orb-tool:disabled{cursor:default}
.orb-tool.chosen{opacity:1;background:rgba(9,81,124,.1);border-color:rgba(9,81,124,.2)}
.orb-tool.playing{opacity:1;background:rgba(62,224,197,.18);border-color:rgba(42,168,224,.4)}
.orb-tool-thanks{font-size:12px;color:var(--color-text-secondary, #4a5d6e);margin-left:4px}
.orb-rate-note{flex-basis:100%;margin-top:6px;padding:10px;border-radius:12px;background:var(--color-blue-pale, #eef6fb)}
.orb-rate-note label{display:block;font-size:12.5px;font-weight:600;margin-bottom:4px}
.orb-rate-note label span{font-weight:400;opacity:.7}
.orb-rate-note textarea{width:100%;box-sizing:border-box;border:1.5px solid var(--color-border, #d6e0e8);border-radius:10px;padding:6px 9px;font:inherit;font-size:13px;resize:vertical;min-height:52px}
.orb-rate-note .orb-rate-note-actions{display:flex;gap:6px;margin-top:6px}
body.dark-mode .orb-rate-note{background:rgba(255,255,255,.06)}

/* ── Speaking to Orb (🎤) and the read-aloud switch ── */
.orb-input-row{position:relative}
#orbMicBtn{width:38px;height:38px;border-radius:50%;flex-shrink:0;border:1.5px solid var(--color-border, #d6e0e8);background:var(--n-0, #fff);cursor:pointer;font-size:1rem;
  display:flex;align-items:center;justify-content:center;transition:background .18s, border-color .18s}
#orbMicBtn:hover{border-color:var(--color-primary, #09517C)}
#orbMicBtn.listening{background:#fde8e8;border-color:#d64545;animation:orbMicPulse 1.2s ease-in-out infinite}
.orb-mic-status{position:absolute;left:14px;top:-26px;display:none;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;background:#d64545;color:#fff;font-size:12px;font-weight:700}
.orb-mic-status::before{content:'';width:7px;height:7px;border-radius:50%;background:#fff;animation:orbMicPulse 1.2s ease-in-out infinite}
.orb-input-row.orb-listening .orb-mic-status{display:inline-flex}
@keyframes orbMicPulse{0%,100%{box-shadow:0 0 0 0 rgba(214,69,69,.45)}50%{box-shadow:0 0 0 6px rgba(214,69,69,0)}}
@media (prefers-reduced-motion: reduce){#orbMicBtn.listening,.orb-mic-status::before{animation:none}}

/* ── Orb settings for you (the Orb page) ── */
.orb-settings .orb-setting{display:flex;gap:10px;align-items:flex-start;margin:0 0 12px;cursor:pointer;font-size:13.5px;line-height:1.45}
.orb-settings .orb-setting input{margin-top:3px;width:16px;height:16px;flex-shrink:0}
.orb-settings .orb-setting small{display:block;color:var(--color-text-secondary, #4a5d6e);font-size:12.5px}
.orb-settings .orb-setting-note{margin:10px 0 0;font-size:12px;color:var(--color-text-secondary, #4a5d6e)}
