/* Desktop section sizes are independent of the phone drawer and chat drag/drop. */
/* The sidebar width handle is only for a desktop pointer; the phone drawer and the embedded pane have none. */
.sidebar-width-handle{display:none}
@media(min-width:761px) and (hover:hover) and (pointer:fine){
 .app{position:relative}
 .app .sidebar{position:relative}
 .app .sidebar-width-handle{display:block;position:absolute;top:0;right:0;bottom:0;width:4px;z-index:6;cursor:col-resize;touch-action:none;outline:none}
 .app .sidebar-width-handle::after{content:"";position:absolute;inset:0 0 0 -4px}
 .app .sidebar-width-handle:hover,.app .sidebar-width-handle:focus-visible,.sidebar-width-resizing .sidebar-width-handle{background:var(--accent)}
 .phone-web-client .sidebar-width-handle,.app.sidebar-collapsed .sidebar-width-handle{display:none}
 .sidebar-width-resizing,.sidebar-width-resizing *{cursor:col-resize!important;user-select:none!important}
 .app.sidebar-collapsed .sidebar{display:flex;position:absolute;inset:0 auto 0 0;width:min(var(--sidebar-width,248px),40vw);height:100%;z-index:16;transform:translateX(calc(-100% - 1px));visibility:hidden;pointer-events:none;transition:transform .18s ease-out,visibility 0s .18s;box-shadow:var(--elevation-sidebar-overlay)}
 .app.sidebar-collapsed.sidebar-peek .sidebar{transform:translateX(0);visibility:visible;pointer-events:auto;transition:transform .18s ease-out,visibility 0s}
}
@media(prefers-reduced-motion:reduce){.app.sidebar-collapsed .sidebar{transition:none}}
/* Focus mode keeps search and the project and chat list. compact-client follows the same query that hides the focus button. */
html:not(.compact-client) .app.sidebar-focus .sidebar>:is(.brand,.workspace-switcher,.session-board-nav,.side-links,.sidebar-tools-section,.sidebar-section-divider,.side-footer){display:none}
@media(min-width:1001px){
 .sidebar.has-resizable-sections{min-height:0;overflow:hidden}
 .sidebar.has-resizable-sections>.brand,
 .sidebar.has-resizable-sections>.side-footer{flex:none}
 .sidebar-tools-section{flex:0 0 var(--sidebar-tools-height,240px);min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
 .sidebar-tools-section>.side-links{margin:6px 0 0}
 .sidebar-projects-section{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;overflow:hidden}
 .sidebar-projects-section>.search,
 .sidebar-projects-section>.project-list-heading{flex:none}
 .sidebar-projects-section>.chat-list{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
 .sidebar-section-divider{display:flex;align-items:center;justify-content:center;gap:7px;flex:0 0 17px;height:17px;margin:3px 2px;cursor:row-resize;touch-action:none;user-select:none;color:var(--line);border-radius:var(--r-5);outline-offset:0}
 .sidebar-divider-line{height:1px;flex:1;background:currentColor;opacity:.7}
 .sidebar-divider-grip{width:24px;height:5px;flex:none;border-top:1px solid currentColor;border-bottom:1px solid currentColor;border-radius:var(--r-2)}
 .sidebar-section-divider:hover,
 .sidebar-section-divider:focus-visible,
 .sidebar-sections-resizing>.sidebar-section-divider{color:var(--accent);background:color-mix(in srgb,var(--accent) 8%,transparent)}
 .sidebar-section-resizing,
 .sidebar-section-resizing *{cursor:row-resize!important;user-select:none!important}
}
