.bkst-mobile-tools{display:flex;justify-content:flex-end;padding:8px max(12px,env(safe-area-inset-right));padding-top:max(8px,env(safe-area-inset-top));background:#fcfdfb;font:14px/1.5 system-ui,sans-serif}body .bkst-mobile-tools button,body .bkst-install-dialog button,body.bkst-recovery button{font:inherit;min-height:44px;padding:10px 16px;border:1px solid #48645d;border-radius:8px;background:#172f2a;color:#fff;cursor:pointer}.bkst-mobile-tools[hidden],.bkst-connection[hidden]{display:none}.bkst-connection{position:fixed;z-index:1001;bottom:max(12px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);box-sizing:border-box;width:max-content;max-width:calc(100% - 24px);padding:12px 16px;background:#172f2a;color:#fff;border-radius:10px;box-shadow:0 4px 24px #0003;font:14px/1.5 system-ui,sans-serif;display:flex;align-items:center;gap:12px}body .bkst-connection button{font:inherit;min-width:44px;min-height:44px;background:transparent;border:1px solid #a7c1b8;border-radius:6px;color:inherit}.bkst-install-dialog{box-sizing:border-box;width:min(440px,calc(100% - 32px));max-height:85dvh;overflow:auto;padding:28px;border:1px solid #c5ceca;border-radius:16px;color:#172f2a;background:#fcfdfb;font:16px/1.6 system-ui,sans-serif}.bkst-install-dialog::backdrop{background:#0008}.bkst-install-dialog h2{font-size:24px;line-height:1.2;margin-top:0}.bkst-install-dialog li{padding:4px 0}.bkst-install-dialog a{color:inherit}.bkst-install-dialog button{margin:8px 8px 0 0}.bkst-recovery{margin:0;background:#fcfdfb;color:#172f2a;font:17px/1.6 system-ui,sans-serif;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}.bkst-recovery main{max-width:460px;margin:10vh auto;padding:24px}.bkst-recovery h1{font-size:32px;line-height:1.2}.bkst-recovery a{display:block;color:inherit;margin-top:24px}.bkst-recovery img{border-radius:14px}.bkst-mobile-tools :focus-visible,.bkst-install-dialog :focus-visible,.bkst-recovery :focus-visible{outline:3px solid #497dc4;outline-offset:3px}
/* iOS must not zoom the composer when the keyboard opens. */
@media(max-width:767px),(max-width:1024px) and (max-height:500px){input:not([type=checkbox]):not([type=radio]),textarea,select{font-size:16px!important}.composer-actions button,.composer-actions .file-button,.conversation-head button{min-height:44px;min-width:44px}.composer-wrap{padding-bottom:max(12px,env(safe-area-inset-bottom))}.bkst-mobile-tools{position:static;display:flex;justify-content:flex-end;padding:4px 12px;background:var(--bg,#fcfdfb)}body.bkst-chat-page .shell{height:var(--bkst-viewport,100dvh)}.message-scroll{overscroll-behavior:contain}.bkst-connection{bottom:calc(max(12px,env(safe-area-inset-bottom)) + var(--bkst-keyboard,0px))}}
@media(prefers-reduced-motion:reduce){.bkst-install-dialog,.bkst-connection{scroll-behavior:auto}}


/* The native chat dialog shares the project's slide-in navigation motion. */
@media (max-width:767px),(max-width:1024px) and (max-height:500px) {
  .workspace-drawer[open] { animation: bkst-drawer-in 220ms cubic-bezier(.2,.8,.2,1); }
}
@keyframes bkst-drawer-in { from { transform:translateX(-100%); } to { transform:translateX(0); } }
@media (prefers-reduced-motion:reduce) {
  .workspace-drawer[open],[data-slot="sidebar"][data-mobile="true"] { animation:none!important; transition:none!important; }
}
