/* Keep the character, close control and composer visible in one viewport. */
body .cali-panel{display:flex;flex-direction:column;gap:8px;height:100vh;height:100dvh;max-height:100dvh;overflow:hidden;padding:18px 24px calc(16px + env(safe-area-inset-bottom,0px));box-sizing:border-box}
body .cali-panel[hidden]{display:none!important}
body .cali-panel .cali-close{position:absolute;top:10px;right:14px;z-index:5;min-width:44px;min-height:44px;background:#fff;border-radius:50%;margin:0;padding:0;line-height:1}
body .cali-panel .c58-cali-avatar{width:80px!important;height:80px!important;min-height:80px!important;max-height:80px!important;flex:0 0 80px!important;margin:0!important;align-self:flex-start;overflow:hidden}
body .cali-panel .c58-cali-avatar img{width:auto!important;height:80px!important;max-height:80px!important;max-width:100%!important;object-fit:contain!important;object-position:center!important}
body .cali-panel>.eyebrow{margin:0;font-size:10px;line-height:1.3;flex:0 0 auto}
body .cali-panel>#cali-title{margin:0;font-size:34px;line-height:1.1;flex:0 0 auto}
body .cali-panel>.cali-intro{margin:0;font-size:13px;line-height:1.4;flex:0 0 auto}
body .cali-panel>.cali-suggestions{margin:0;gap:5px;flex:0 0 auto}
body .cali-panel>.cali-suggestions button{padding:6px 8px;font-size:11px}
body .cali-panel>.cali-chat{margin:4px 0;min-height:70px;max-height:none;flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain}
body .cali-panel>#cali-form{margin:0;flex:0 0 auto}
body .cali-panel>#cali-form label{margin-top:0;font-size:13px;line-height:1.4}
body .cali-panel .cali-search-row{margin-top:5px;min-height:48px}
body .cali-panel .cali-search-row input{min-width:0;font-size:16px;padding:9px}
body .cali-panel>.cali-actions{margin:0;flex:0 0 auto;gap:8px}
body .cali-panel>.cali-actions button,body .cali-panel>.cali-actions a{font-size:11px}
body .cali-panel>.cali-note{margin:0;flex:0 0 auto;font-size:10px;line-height:1.35}
@media(max-width:520px){body .cali-panel{width:100%;padding-left:16px;padding-right:16px}}
@media(max-height:700px){body .cali-panel{gap:5px;padding-top:10px}body .cali-panel .c58-cali-avatar{height:50px!important;min-height:50px!important;max-height:50px!important;flex-basis:50px!important}body .cali-panel .c58-cali-avatar img{height:50px!important;max-height:50px!important}body .cali-panel>#cali-title{font-size:27px}body .cali-panel>.cali-intro{font-size:12px}body .cali-panel>.cali-chat{min-height:50px}}
