/* Direct edge affordances remain available in narrow desktop panels too. */
.chat-left-resize { width:16px; }
.chat-left-resize::before { content:''; position:absolute; left:2px; top:calc(50% - 24px); width:4px; height:48px; border-radius:4px; background:#ab8d54; box-shadow:0 0 0 2px #fff9; }
.chat-left-resize::after { opacity:.65; }
.chat-top-resize { position:absolute; z-index:91; top:0; left:28px; right:28px; height:13px; touch-action:none; cursor:ns-resize; border-radius:10px; }
.chat-top-resize::after { content:''; position:absolute; left:calc(50% - 22px); top:2px; width:44px; height:3px; border-radius:4px; background:#ab8d54; }
.chat-top-resize:hover::after,.chat-top-resize:focus-visible::after { background:#806129; box-shadow:0 0 0 2px #c9b68d66; }
.chat-top-resize:focus-visible { outline:2px solid #a38043; outline-offset:0; }
.chat-workspace .chat-placement-bar { padding-top:9px; min-height:64px; }
.chat-workspace[data-chat-placement="home"][data-custom-height="true"] { top:var(--home-top,0px); height:var(--home-height); display:flex; flex-direction:column; }
.chat-workspace[data-chat-placement="home"][data-custom-height="true"] .chat-shell { flex:1 1 0; height:0; min-height:0; max-height:none; overflow-y:auto; }
.chat-workspace[data-chat-placement="home"][data-custom-height="true"] .chat-shell[data-reading="true"] { overflow:hidden; }
.chat-workspace .chat-placement-bar { flex-shrink:0; }
.chat-snap-preview { position:fixed; z-index:82; border:2px solid #d4b477; border-radius:20px; background:#ebdfc815; box-shadow:0 0 0 4px #fff5; pointer-events:none; }
.chat-snap-preview[hidden] { display:none; }
.chat-snap-preview span { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); padding:8px 14px; border-radius:20px; background:#0b193b; color:#fffaf0; font-size:.85rem; white-space:nowrap; box-shadow:0 3px 12px #0003; }
.chat-workspace[data-snap-edge] { border-color:#c4ac7d; }
.chat-minimized-launcher { touch-action:none; user-select:none; }
.chat-minimized-launcher[data-bubble="true"] { left:var(--bubble-x); top:var(--bubble-y); right:auto; bottom:auto; width:60px; height:60px; min-height:60px; padding:5px; border-radius:50%; justify-content:center; cursor:grab; }
.chat-minimized-launcher[data-bubble="true"] img { width:48px; height:48px; pointer-events:none; }
.chat-minimized-launcher[data-bubble="true"] span { display:none; }
.chat-minimized-launcher.is-bubble-dragging { cursor:grabbing; box-shadow:0 10px 28px #0c193d50; }
.chat-minimized-launcher.is-bubble-settling { transition:left 220ms cubic-bezier(.22,.72,.18,1),top 220ms cubic-bezier(.22,.72,.18,1); }
@media (prefers-reduced-motion:reduce) { .chat-minimized-launcher.is-bubble-settling { transition:none; } }
