:root{--ke-h:0px}
.ke-b,.ke-t,.ke-e{font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji","Samsung Color Emoji",sans-serif}
/* 😊 button inside a typing box */
.ke-w{position:relative;display:block}
.ke-w>.ke-f{width:100%}
.ke-w.ke-ta>.ke-f{padding-right:46px!important}
.ke-w.ke-in>.ke-f{padding-right:48px!important}
.ke-b{position:absolute;right:4px;bottom:4px;width:40px;height:40px;border:0;border-radius:50%;background:transparent;font-size:23px;line-height:1;display:flex;align-items:center;justify-content:center;opacity:.8;padding:0;z-index:2;cursor:pointer}
.ke-w.ke-in>.ke-b{top:50%;bottom:auto;transform:translateY(-50%)}
.ke-w.ke-cur>.ke-b{opacity:1;background:#e3edff}
.ke-w.ke-beside{display:flex;align-items:center;gap:4px}
.ke-w.ke-beside>.ke-f{padding-right:6px!important;flex:none}
.ke-w.ke-beside>.ke-b{position:static;transform:none;flex:none;background:#eef4ff}
/* the panel: slides up from the bottom, in place of the keyboard */
.ke-p{position:fixed;left:0;right:0;bottom:0;max-width:480px;margin:0 auto;z-index:300;background:#fff;border-top:1px solid #e1e7f2;box-shadow:0 -4px 18px rgba(30,60,120,.14);border-radius:18px 18px 0 0;padding:6px 6px calc(6px + env(safe-area-inset-bottom));transform:translateY(105%);transition:transform .18s ease-out;visibility:hidden}
.ke-p.on{transform:none;visibility:visible}
.ke-tabs{display:flex;gap:2px;border-bottom:1px solid #eef1f6;padding-bottom:5px}
.ke-t{flex:1;min-width:0;height:44px;border:0;border-radius:12px;background:transparent;font-size:22px;line-height:1;padding:0}
.ke-t.on{background:#e3edff;box-shadow:inset 0 -3px 0 #2f6fe4}
.ke-t.ke-x{flex:none;width:44px;font-size:20px;color:#5b6a82}
.ke-g{height:208px;overflow-y:auto;-webkit-overflow-scrolling:touch;display:grid;grid-template-columns:repeat(auto-fill,minmax(46px,1fr));grid-auto-rows:48px;align-content:start;padding-top:2px;overscroll-behavior:contain}
.ke-h{font-size:12.5px;font-weight:800;color:#8a97ab;padding:5px 8px 1px}
.ke-e{border:0;background:transparent;font-size:31px;line-height:1;border-radius:12px;padding:0;width:100%;height:48px}
.ke-e:active{background:#eef4ff}
.ke-none{grid-column:1/-1;color:#8a97ab;font-size:15px;text-align:center;padding:30px 10px}
/* things that make room while the panel is open */
.cv{height:calc(100vh - var(--ke-h));height:calc(100dvh - var(--ke-h))}
body.ke-open #app{padding-bottom:calc(var(--ke-h) + 150px)!important}
body.ke-open #fab{display:none}
.ke-w.ke-cur{scroll-margin-bottom:calc(var(--ke-h) + 12px)}
