.ld-orb {
  position:relative; isolation:isolate; container-type:inline-size; width:100%; min-width:0; overflow:hidden;
  color:#e7f8ff; background:radial-gradient(ellipse at 18% 63%,#103568 0,transparent 46%),linear-gradient(115deg,#06162e,#08172d 51%,#0d213c);
  border:1px solid #264563; border-radius:14px; text-align:left; box-sizing:border-box; font-family:inherit;
}
.ld-orb::before {
  content:""; position:absolute; inset:0; pointer-events:none; z-index:-1; opacity:.34;
  background:linear-gradient(112deg,transparent 10%,#3188c222 12%,transparent 14% 73%,#2c88da17 78%,transparent 85%),
    radial-gradient(ellipse at 90% 4%,#346dab66,transparent 47%),
    radial-gradient(circle at 20% 20%,#b1d6ee 0 .65px,transparent 1.1px),
    radial-gradient(circle at 70% 70%,#84b5f6 0 .6px,transparent 1px);
  background-size:auto,auto,41px 43px,67px 57px;
}
.ld-orb .ld-orb-main {
  display:grid; grid-template-columns:clamp(112px,28%,190px) minmax(0,1fr);
  gap:clamp(6px,2.4%,16px); align-items:center; padding:6px clamp(13px,3.8%,24px) 2px 6px;
}
.ld-orb .ld-orb-stage {position:relative;min-width:0;aspect-ratio:1;align-self:center;}
.ld-orb .ld-orb-avatar {width:100%;height:100%;display:block;position:static;max-width:none;overflow:visible;}
.ld-orb .ld-orb-speech {
  position:relative; isolation:isolate; display:flex; flex-direction:column; justify-content:center;
  box-sizing:border-box; min-width:0; min-height:96px; padding:12px clamp(10px,3.5%,22px) 14px;
  border:1px solid #51c7f7a8; border-radius:16px 16px 16px 3px;
  background:linear-gradient(153deg,#2672aaa8,#10365bcc 68%,#153451db);
  box-shadow:inset 0 1px 5px #8ce2ff3f,0 8px 26px #010f231f;
}
.ld-orb .ld-orb-speech::before {
  content:""; position:absolute; box-sizing:border-box; left:-6px; top:62%; width:10px;height:12px;
  border-left:1px solid #4bb7e5; border-bottom:1px solid #4bb7e5; transform:skewY(-26deg);
  background:#17436a; clip-path:polygon(100% 0,100% 100%,0 100%);
}
.ld-orb .ld-orb-kicker {
  display:flex;align-items:center;gap:8px;align-self:flex-start;margin:0 0 6px;
  color:#90f4ff;font-size:12px;font-weight:650;line-height:1.2;letter-spacing:.015em;
}
.ld-orb .ld-orb-message {
  min-height:2.6em; padding:0; margin:0; color:#f2fbff; font-family:inherit; font-size:clamp(15px,3.4cqw,20px);
  text-align:left; font-weight:520; line-height:1.31; letter-spacing:-.018em; overflow-wrap:break-word;
}
.ld-orb .ld-orb-eq{width:14px;height:12px;display:inline-flex;align-items:center;gap:1.6px}
.ld-orb .ld-orb-eq i {display:block;width:2px;height:7px;border-radius:4px;background:currentColor;transform:scaleY(.5);}
.ld-orb .ld-orb-eq i:nth-child(2){height:12px;animation-delay:-.22s}.ld-orb .ld-orb-eq i:nth-child(3){height:9px;animation-delay:-.39s}.ld-orb .ld-orb-eq i:nth-child(4){height:5px;animation-delay:-.15s}
.ld-orb .ld-orb-route {
  display:flex;align-items:center;justify-content:center;gap:8px;margin:0;padding:9px 14px;
  border-top:1px solid #365373a1;background:#05122591;color:#b9d1e5;
  font-size:11.5px;letter-spacing:0;font-weight:560;line-height:1.2;
}
.ld-orb .ld-orb-end,.ld-orb .ld-orb-model{white-space:nowrap;min-width:0;}
.ld-orb .ld-orb-model {color:#b4edff}
.ld-orb .ld-orb-run {position:relative;min-width:9px;max-width:65px;flex:1;background:#31516d;height:1px;}
.ld-orb .ld-orb-run::after {content:"";position:absolute;right:0;top:-2px;border:solid #537997;border-width:1px 1px 0 0;transform:rotate(45deg);width:4px;height:4px}
.ld-orb .ld-orb-run::before{content:"";position:absolute;top:-1px;left:0;width:7px;height:3px;border-radius:4px;box-shadow:0 0 6px #62dafa;background:#b8ffff;opacity:0}
.ld-orb[data-phase="listen"] .ld-orb-in::before,.ld-orb[data-phase="speak"] .ld-orb-out::before {animation:ld-orb-flow 1.1s ease-in-out infinite;}
.ld-orb[data-phase="sent"] .ld-orb-dest{color:#93efd1}
.ld-orb[data-phase="sent"] .ld-orb-out{background:#74c9c0}
.ld-orb[data-phase="sent"] .ld-orb-out::after{border-color:#74c9c0}
.ld-orb .ld-orb-net {opacity:.78;}
.ld-orb .ld-orb-shadow {transform-box:fill-box;transform-origin:center;animation:ld-orb-shadow 4.2s ease-in-out infinite;}
.ld-orb .ld-orb-hover {transform-box:view-box;transform-origin:50% 49%;animation:ld-orb-hover 4.2s ease-in-out infinite;}
.ld-orb .ld-orb-look{transform-box:view-box;transform-origin:50% 47%;transition:transform .65s cubic-bezier(.16,.71,.22,1);}
.ld-orb .ld-orb-blink {transform-box:fill-box;transform-origin:center;animation:ld-orb-blink 4.6s ease-in-out infinite;}
.ld-orb .ld-orb-bit {fill:#b5fbff;stroke:none;animation:ld-orb-bit 3.1s ease-in-out var(--ld-bit-delay) infinite;}
.ld-orb[data-phase="listen"] .ld-orb-look {transform:translate(-3px,1px)}
.ld-orb[data-phase="think"] .ld-orb-look {transform:translate(-5px,-5px) scale(1,.92)}
.ld-orb[data-phase="think"] .ld-orb-net {animation:ld-orb-circuit 1s ease-in-out infinite;}
.ld-orb[data-phase="speak"] .ld-orb-look {transform:translate(5px,-1px)}
.ld-orb[data-phase="speak"] .ld-orb-eq i,.ld-orb[data-phase="think"] .ld-orb-eq i {animation-name:ld-orb-eq;animation-duration:.61s;animation-timing-function:ease-in-out;animation-iteration-count:infinite;}
.ld-orb[data-phase="sent"] .ld-orb-look {transform:translate(3px,1px)}
@keyframes ld-orb-hover {0%,100%{transform:translateY(1px) rotate(-1deg)}50%{transform:translateY(-3.7px) rotate(.65deg)}}
@keyframes ld-orb-shadow {0%,100%{opacity:.33;transform:scaleX(1.06)}50%{opacity:.18;transform:scaleX(.82)}}
@keyframes ld-orb-blink {0%,13%,18%,74%,78%,100%{transform:scaleY(1)}15.5%,76%{transform:scaleY(.12)}}
@keyframes ld-orb-bit {0%,100%{opacity:.38}53%{opacity:1}}
@keyframes ld-orb-circuit {0%,100%{opacity:.64}54%{opacity:1}}
@keyframes ld-orb-eq {0%,100%{transform:scaleY(.36)}55%{transform:scaleY(1)}}
@keyframes ld-orb-flow {0%{opacity:0;left:0}20%{opacity:1}78%{opacity:1}100%{opacity:0;left:calc(100% - 4px)}}
@container(max-width:390px){
  .ld-orb .ld-orb-main{grid-template-columns:clamp(81px,29%,106px) minmax(0,1fr);padding:11px 9px 11px 0;gap:3px}
  .ld-orb .ld-orb-speech{min-height:110px;padding:8px 9px;border-radius:11px 11px 11px 3px}
  .ld-orb .ld-orb-message{font-size:14px;line-height:1.28}
  .ld-orb .ld-orb-route{gap:5px;padding:7px 8px;font-size:10px}
  .ld-orb .ld-orb-kicker{font-size:10.5px;gap:4px;margin-bottom:4px}
}
.ld-orb[data-still="true"] *, .ld-orb[data-still="true"] *::before {animation:none!important;transition:none!important}
@media(prefers-reduced-motion:reduce){.ld-orb *, .ld-orb *::before {animation:none!important;transition:none!important}}

.ld-orb button.ld-orb-stage {
  display:block; width:100%; padding:0; border:0; border-radius:18px;
  background:transparent; color:inherit; appearance:none; cursor:pointer;
}
.ld-orb button.ld-orb-stage:focus-visible {outline:2px solid #99edfa;outline-offset:-3px}
.ld-orb .ld-thought {
  position:absolute; top:4%; right:-1%; display:flex; align-items:center; justify-content:center;
  gap:4px; padding:6px 8px; border:1px solid #9deafa; border-radius:15px;
  background:#124363; box-shadow:0 0 10px #63d6ec55; pointer-events:none;
  opacity:0; transform:translateY(3px) scale(.8); transform-origin:8% 100%;
  transition:opacity .15s,transform .2s ease-out;
}
.ld-thought::before,.ld-thought::after {
  content:""; position:absolute; border-radius:50%; background:#ace9f4;
}
.ld-thought::before {width:5px;height:5px;bottom:-6px;left:2px}
.ld-thought::after {width:3px;height:3px;bottom:-10px;left:-3px}
.ld-thought i {width:4px;height:4px;background:#d9faff;border-radius:50%}
.ld-orb[data-phase="think"] .ld-thought {opacity:1;transform:translateY(0) scale(1)}
.ld-orb[data-phase="think"] .ld-thought i {animation:ld-ponder-dot 1.16s ease-in-out infinite}
.ld-orb[data-phase="think"] .ld-thought i:nth-child(2){animation-delay:.15s}
.ld-orb[data-phase="think"] .ld-thought i:nth-child(3){animation-delay:.3s}
@keyframes ld-ponder-dot {0%,65%,100%{opacity:.52}30%{opacity:1;transform:translateY(-2px)}}
@media (prefers-reduced-motion:reduce){.ld-orb .ld-thought{display:none}}
