/* convbar.css v2 - conversation bar size (Small/Medium/Large/Extra large), drag height (always-visible top grip) and drag
   width (side grips, desktop layout). Set by convbar.js on <html data-convbar>. */
:root{--cb-font:15px;--cb-input-h:44px;--cb-hist-closed:46px}
html[data-convbar=s]{--cb-font:13px;--cb-input-h:38px;--cb-hist-closed:40px}
html[data-convbar=l]{--cb-font:19px;--cb-input-h:54px;--cb-hist-closed:64px}
html[data-convbar=xl]{--cb-font:24px;--cb-input-h:66px;--cb-hist-closed:84px}
html[data-convbar] .dz-pill #chat-input,html[data-convbar] #chat-input{font-size:var(--cb-font)!important;height:var(--cb-input-h)!important}
html[data-convbar] .dz-bar #chat-history p,html[data-convbar] #chat-history p{font-size:var(--cb-font)!important;line-height:1.45!important}
html[data-convbar] .dz-bar:not(.dz-open) #chat-history{max-height:var(--cb-hist-closed)!important}
html[data-convbar][data-convbar-h] .dz-bar.dz-open #chat-history,html[data-convbar][data-convbar-h] #dobby-chat:not(.dz-bar) #chat-history{max-height:var(--cb-hist-open)!important;height:var(--cb-hist-open)!important}
#cb-size{flex:none;min-width:44px;min-height:44px;border:0;border-radius:22px;background:#ffffff14;color:inherit;font:600 16px system-ui,sans-serif;cursor:pointer}
#cb-size:focus-visible,#cb-menu button:focus-visible,#cb-grip:focus-visible,.cb-wgrip:focus-visible{outline:3px solid #ffd34d;outline-offset:2px}
#cb-menu{position:fixed;z-index:9999;display:flex;flex-direction:column;gap:6px;padding:10px;background:#0b1730f5;border:1px solid #2a3f6e;border-radius:14px;box-shadow:0 8px 28px #000a;color:#eef3ff;font:500 17px system-ui,sans-serif}
#cb-menu[hidden]{display:none}
#cb-menu button{min-height:44px;padding:0 16px;border:1px solid #2a3f6e;border-radius:10px;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
#cb-menu button[aria-checked=true]{background:#1f6f5a;border-color:#3ddc97}
#cb-menu small{opacity:.75;font-size:14px}
/* v2: the top grip is always there (it was hidden while the bar was closed, so it could not be found) */
#cb-grip{order:0;flex:none;height:16px;margin:0 auto;width:96px;cursor:ns-resize;touch-action:none;display:flex;align-items:center;justify-content:center}
#cb-grip::before{content:"";width:56px;height:5px;border-radius:3px;background:#b4c2dea8}
#cb-grip:hover::before{background:#3ddc97}
/* v2: width grips on the bar's left and right edges (desktop layout only) */
.cb-wgrip{display:none}
@media (min-width:901px){
 body.dz-ring #dobby-chat.dz-bar .cb-wgrip{display:block;position:absolute;top:10px;bottom:10px;width:12px;cursor:ew-resize;touch-action:none;z-index:2}
 body.dz-ring #dobby-chat.dz-bar #cb-wgrip-l{left:-6px}
 body.dz-ring #dobby-chat.dz-bar #cb-wgrip-r{right:-6px}
 body.dz-ring #dobby-chat.dz-bar .cb-wgrip::before{content:"";position:absolute;left:4px;top:50%;width:4px;height:36px;margin-top:-18px;border-radius:2px;background:#b4c2de55}
 body.dz-ring #dobby-chat.dz-bar .cb-wgrip:hover::before{background:#3ddc97}
 html[data-convbar-w] body.dz-ring #dobby-chat.dz-bar{width:min(var(--cb-bar-w),calc(100% - var(--dz-rail,76px) - 28px))!important}
}
@media (prefers-reduced-motion:reduce){#cb-grip::before,.cb-wgrip::before{transition:none}}
/* d208l: resize works with the bar closed too (desktop + web) */
html[data-convbar-h] .dz-bar:not(.dz-open) #chat-history{max-height:var(--cb-hist-open)!important;height:var(--cb-hist-open)!important;overflow:auto!important}
html[data-convbar-h] .dz-bar:not(.dz-open) #chat-history p{display:block!important;white-space:normal!important}
html[data-convbar-h] .dz-bar.dz-open{top:auto!important}
html[data-convbar-h] .dz-bar.dz-open #chat-history{flex:none!important}
/* v3 (fix 124): bar only - the conversation text is hidden, the grip and the input pill stay. */
html[data-convbar-min] #dobby-chat #chat-history{display:none!important}
html[data-convbar-min] #dobby-chat.dz-bar.dz-open{top:auto!important}
html[data-convbar-min] #cb-grip::before{background:#3ddc97a8}
