
body.native-oauth-handoff{display:grid!important;place-items:center!important;width:100%;min-height:100svh;height:auto;overflow:auto;margin:0;background:radial-gradient(ellipse at 80% 12%,rgba(129,88,255,.3),transparent 45%),radial-gradient(ellipse at 12% 90%,rgba(113,77,216,.2),transparent 50%),#0c1021!important;color:#f6f6fd;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
body.native-oauth-handoff::before,body.native-oauth-handoff::after{display:none!important}
body.native-oauth-handoff #app{display:block!important;width:min(100%,550px);height:auto;max-height:none;overflow:visible;padding:clamp(18px,5vw,45px);margin:auto}
body.native-oauth-handoff #portal{display:none}
.native-return-shell{text-align:center;color:#f6f6fd}
.native-return-label{display:flex;align-items:center;justify-content:center;gap:9px;margin:0 0 24px;color:#d0cee1;font-size:12px;font-weight:700;letter-spacing:.2em;text-transform:uppercase}
.native-return-label::before{content:"";height:7px;width:7px;background:#a778ff;border-radius:50%;box-shadow:0 0 17px #8958ff}
.native-return-card{position:relative;isolation:isolate;overflow:hidden;border:1px solid rgba(255,255,255,.14);border-radius:32px;background:linear-gradient(150deg,rgba(255,255,255,.11),rgba(255,255,255,.035));box-shadow:0 24px 90px rgba(0,0,0,.38);padding:clamp(26px,6vw,48px) clamp(22px,6vw,42px);backdrop-filter:blur(24px)}
.native-return-card::before{content:"";position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,transparent,#8958ff,transparent)}
.native-return-icon{height:88px;width:88px;margin:0 auto 18px;border-radius:23px;display:grid;place-items:center;background:rgba(255,255,255,.06);box-shadow:0 10px 34px rgba(137,88,255,.26),inset 0 1px rgba(255,255,255,.09)}
.native-return-icon img{width:80px;height:80px;object-fit:contain;border-radius:19px}
.native-return-card h1{font-size:clamp(31px,6vw,38px);line-height:1.1;letter-spacing:-.045em;margin:0 0 15px;font-weight:800;color:#faf7ff}
.native-return-desc{font-size:16px;line-height:1.6;color:#c8cadd;margin:0 auto 28px;max-width:31ch}
.native-return-count{font-size:14px;color:#d4d5e4;margin:0 0 15px}
.native-return-count strong{color:#c5a5ff;font-variant-numeric:tabular-nums}
.native-return-track{height:5px;overflow:hidden;border-radius:99px;background:rgba(255,255,255,.12);margin-bottom:28px}
.native-return-track span{display:block;height:100%;width:100%;border-radius:inherit;background:linear-gradient(90deg,#8958ff,#d599ff);transform-origin:left;animation:native-return-drain 5s linear forwards}
.native-return-button{display:flex;align-items:center;justify-content:center;gap:12px;text-decoration:none;min-height:57px;padding:12px 22px;border-radius:17px;font-size:16px;line-height:1.3;font-weight:800;color:#0c1021!important;background:linear-gradient(115deg,#8958ff,#d599ff);box-shadow:0 10px 30px rgba(137,88,255,.28);transition:filter .18s,transform .18s}
.native-return-button:hover{filter:brightness(1.1);transform:translateY(-2px)}
.native-return-button:focus-visible{outline:3px solid #fff;outline-offset:4px}
.native-return-button svg{height:20px;width:20px;flex:none}
.native-return-help{font-size:12px;line-height:1.6;color:#aeb0c7;margin:20px auto 0;max-width:35ch}
.native-return-foot{color:#858ca7;font-size:12px;margin:21px 0 0}
@keyframes native-return-drain{to{transform:scaleX(0)}}
@media(prefers-reduced-motion:reduce){.native-return-track span{animation:none}.native-return-button{transition:none}}

/* Purple AkiBusiness handoff: visually independent of AkiPasa.
   The authentication callback, automatic 5-second return and fallback URL are unchanged. */
body.native-oauth-handoff .native-return-icon {
  position:relative;
  isolation:isolate;
  background:radial-gradient(circle at 50% 40%,rgba(153,107,255,.25),rgba(37,29,70,.75));
  border:1px solid rgba(183,150,255,.38);
  box-shadow:0 10px 38px rgba(126,76,236,.25);
}
body.native-oauth-handoff .native-return-icon:before {
  content:"";position:absolute;inset:-8px;border:1px solid rgba(176,134,255,.42);
  border-radius:27px;pointer-events:none;animation:ab-auth-breathe 2.8s ease-in-out infinite;
}
body.native-oauth-handoff .native-return-icon img {
  position:relative;z-index:1;display:block;filter:drop-shadow(0 2px 8px rgba(154,106,255,.25));
}
body.native-oauth-handoff .native-return-button {
  background:linear-gradient(115deg,#8053ee,#c38cf4);
  color:#140e29!important;
}
body.native-oauth-handoff .native-return-label:before {background:#a77aff;box-shadow:0 0 17px #a77aff}
@keyframes ab-auth-breathe {50%{opacity:.38;transform:scale(1.07)}}
@media(prefers-reduced-motion:reduce){
  body.native-oauth-handoff .native-return-icon:before {animation:none}
}
