.toki-floating{
  position:fixed;
  right:max(18px,env(safe-area-inset-right));
  bottom:max(18px,env(safe-area-inset-bottom));
  z-index:2147482000;
  display:flex;
  align-items:center;
  gap:0;
  color:#fff!important;
  text-decoration:none!important;
  font-family:"Aptos","Segoe UI Variable","Segoe UI","Noto Sans","Noto Sans Devanagari","Nirmala UI",Roboto,Arial,sans-serif;
  cursor:pointer;
  transition:filter .18s ease,opacity .2s ease,transform .2s ease,visibility 0s linear 0s;
}
.toki-floating.is-page-end-hidden{opacity:0;visibility:hidden;pointer-events:none;transform:translateY(18px) scale(.94);transition-delay:0s,0s,0s,.2s}
.toki-app .toki-floating{bottom:max(88px,calc(env(safe-area-inset-bottom) + 82px))}
.toki-floating:hover{filter:drop-shadow(0 13px 15px rgba(37,23,17,.25))}
.toki-floating:focus-visible{outline:3px solid rgba(185,144,84,.45);outline-offset:4px}
.toki-floating-mascot{
  position:relative;
  display:block;
  width:132px;
  height:107px;
  overflow:hidden;
  border:0;
  background:transparent;
  box-shadow:none;
  pointer-events:none;
}
.toki-quick-panel{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:max(139px,calc(env(safe-area-inset-bottom) + 135px));z-index:2147481999;width:min(430px,calc(100vw - 28px));height:min(620px,calc(100dvh - 169px));display:grid;grid-template-rows:48px minmax(0,1fr);overflow:hidden;border:1px solid #684433;background:#fffdf9;box-shadow:0 28px 76px -34px rgba(37,23,17,.58);transform-origin:calc(100% - 46px) 100%;animation:tokiPanelIn .2s ease-out}
.toki-quick-panel[hidden]{display:none}
@keyframes tokiPanelIn{from{opacity:0;transform:translateY(10px) scale(.96)}to{opacity:1;transform:none}}
.toki-quick-head{display:flex;align-items:center;gap:9px;padding:0 9px 0 14px;border-bottom:1px solid rgba(58,37,27,.38);background:#251711;color:#fffdf9;font-family:Aptos,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;box-shadow:0 7px 20px rgba(43,27,20,.13)}
.toki-quick-head strong{font-family:Baskerville,"Baskerville Old Face","Palatino Linotype","Book Antiqua",Georgia,"Times New Roman",serif;font-size:15px;font-weight:500;letter-spacing:.01em}.toki-quick-head span{font-size:9px;color:#e4dad1;letter-spacing:.06em;text-transform:uppercase}.toki-quick-actions{margin-left:auto;display:flex;align-items:center;gap:4px}.toki-quick-actions a,.toki-quick-actions button{min-width:32px;height:32px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.22);border-radius:50%;background:transparent;color:#fffdf9;text-decoration:none;cursor:pointer;font:inherit}.toki-quick-actions a:hover,.toki-quick-actions button:hover{background:rgba(255,255,255,.075)}
.toki-quick-actions svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.toki-quick-panel iframe{width:100%;height:100%;border:0;background:#faf7f1}
.toki-floating-frame{
  display:block;
  width:100%;
  height:100%;
  border:0;
  background:transparent;
  pointer-events:none;
}
@media(max-width:640px){
  .toki-floating{right:10px;bottom:10px;gap:0}
  .toki-app .toki-floating{bottom:max(78px,calc(env(safe-area-inset-bottom) + 72px))}
  .toki-floating-mascot{width:112px;height:90px}
  .toki-quick-panel{right:8px;bottom:max(110px,calc(env(safe-area-inset-bottom) + 106px));width:calc(100vw - 16px);height:min(620px,calc(100dvh - 131px))}
}
@media(prefers-reduced-motion:reduce){.toki-floating{transition:none}.toki-floating.is-page-end-hidden{transform:none}}

/* Keep the original mascot proportions, with a larger tap target. */
.toki-floating-mascot{width:154px;height:125px}
.toki-quick-panel{bottom:max(158px,calc(env(safe-area-inset-bottom) + 154px));height:min(620px,calc(100dvh - 180px))}
.toki-quick-head{background:#531519}.toki-quick-actions a,.toki-quick-actions button{border-radius:5px}
@media(max-width:640px){.toki-floating-mascot{width:132px;height:107px}.toki-quick-panel{bottom:max(125px,calc(env(safe-area-inset-bottom) + 121px));height:min(620px,calc(100dvh - 145px))}}
@media(max-height:480px){.toki-quick-panel{top:8px;bottom:8px;height:auto;width:min(430px,calc(100vw - 170px))}}
@media(prefers-reduced-motion:reduce){.toki-quick-panel{animation:none}}
