/* AIAI Direct Handoff — motion is feedback, never a navigation delay. */
.lh-page .aiai-handoff[hidden]{display:none!important}
.lh-page .aiai-handoff{
  position:fixed!important;
  inset:0!important;
  z-index:2147483400!important;
  display:grid!important;
  place-items:center!important;
  box-sizing:border-box!important;
  min-height:100dvh;
  width:100%;
  padding:calc(24px + env(safe-area-inset-top)) 24px calc(24px + env(safe-area-inset-bottom));
  margin:0!important;
  background:#FBFAF7;
  color:#142C24;
  direction:rtl;
  text-align:center;
  animation:aiai-handoff-enter .25s ease-out both;
}
.lh-page .aiai-handoff__content{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:0;
  width:min(100%,340px);
  transform:translateY(-12px);
}
.lh-page .aiai-handoff__identity{
  width:114px;
  height:114px;
  display:grid;
  place-items:center;
  position:relative;
  margin-bottom:22px;
}
.lh-page .aiai-handoff__identity::before,
.lh-page .aiai-handoff__identity::after{
  content:"";
  position:absolute;
  inset:10px;
  border:1px solid #E1EBE4;
  border-radius:28px;
  transform:rotate(45deg);
  opacity:.85;
}
.lh-page .aiai-handoff__identity::after{
  inset:2px;
  border-color:#EEE8DD;
  transform:rotate(45deg) scale(.91);
  opacity:.48;
}
.lh-page .aiai-handoff__symbol{
  position:relative;
  z-index:1;
  display:block;
  width:78px;
  height:78px;
  object-fit:contain;
  animation:aiai-handoff-breathe 2.2s ease-in-out infinite;
}
.lh-page .aiai-handoff__title{
  margin:0;
  padding:0;
  color:#142C24;
  font-family:"Readex Pro","IBM Plex Sans Arabic",sans-serif;
  font-weight:600;
  font-size:clamp(20px,5.2vw,25px);
  line-height:1.7;
  letter-spacing:-.02em;
}
.lh-page .aiai-handoff__subtitle{
  margin:8px 0 0;
  padding:0;
  color:#748078;
  font-family:"IBM Plex Sans Arabic","Tajawal",sans-serif;
  font-size:13.5px;
  font-weight:400;
  line-height:1.8;
}
.lh-page .aiai-handoff__motion{
  position:relative;
  width:124px;
  height:2px;
  overflow:hidden;
  border-radius:9px;
  background:#DCE8E0;
  margin-top:24px;
}
.lh-page .aiai-handoff__motion::before{
  content:"";
  position:absolute;
  width:38%;
  height:100%;
  top:0;
  right:0;
  border-radius:9px;
  background:#C99D4D;
  animation:aiai-handoff-glide 1.35s cubic-bezier(.54,.06,.34,1) infinite alternate;
}
body.aiai-handoff-busy{overflow:hidden!important}
@keyframes aiai-handoff-enter{from{opacity:0}to{opacity:1}}
@keyframes aiai-handoff-breathe{0%,100%{transform:translateY(0);opacity:1}50%{transform:translateY(-5px);opacity:.94}}
@keyframes aiai-handoff-glide{from{transform:translateX(0)}to{transform:translateX(-78px)}}
@media(prefers-reduced-motion:reduce){
  .lh-page .aiai-handoff,.lh-page .aiai-handoff__symbol,.lh-page .aiai-handoff__motion::before{animation:none!important;transition:none!important}
  .lh-page .aiai-handoff__motion::before{right:31%}
}
