/* Additive sidebar grouping; uses the prototype's existing tokens and native controls. */
.chat-folders{display:contents}
.chat-folders-heading{display:flex;align-items:center;justify-content:flex-start;min-height:48px;padding:2px 4px 2px 8px}
.chat-folder-add{display:flex;align-items:center;gap:8px;min-height:44px;min-width:44px;padding:8px 12px;text-align:left;white-space:nowrap;font-size:16px;line-height:24px}
.chat-folder-new-glyph,.chat-folder-glyph{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.chat-folders-notice{font-size:14px;line-height:20px;color:var(--steel);padding:0 12px 8px;margin:0;overflow-wrap:anywhere}
.chat-folders-notice.is-error{color:var(--danger)}
.chat-folders-notice .text-button{min-height:44px;padding:8px;color:var(--navy);text-decoration:underline;text-underline-offset:3px}
.chat-folder-group{flex:none;min-width:0}
.chat-folder-bar{display:flex;align-items:center;min-width:0;border-radius:var(--radius)}
.chat-folder-toggle{display:flex;align-items:center;gap:8px;flex:1;min-width:0;min-height:44px;padding:8px 8px;border:0;border-radius:var(--radius);background:transparent;color:var(--navy);text-align:left;font-size:16px;line-height:24px}
.chat-folder-toggle:hover,.chat-folder-more:hover{background:#f0f4f8}
.chat-folder-chevron{display:flex;width:16px;height:16px;flex:none;align-items:center;justify-content:center;color:var(--slate);transition:transform .12s ease}
.chat-folder-chevron svg{width:14px;height:14px;stroke:currentColor;transform:rotate(0deg)}
.chat-folder-chevron.is-open{transform:rotate(90deg)}
.chat-folder-name{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-folder-count{flex:none;color:var(--slate);font-size:14px;line-height:20px}
.chat-folder-more{width:44px;min-width:44px;min-height:44px;color:var(--slate)}
.chat-folder-more svg{width:18px;height:18px;stroke:currentColor}
.chat-folder-children{min-width:0;padding-left:12px}
.chat-folder-children[hidden]{display:none}
.chat-folder-empty{margin:0;padding:8px 12px 8px 20px;color:var(--steel);font-size:14px;line-height:22px;overflow-wrap:anywhere}
.chat-folder-show-more{min-height:44px;padding:8px 12px 8px 20px;text-align:left;font-size:14px}
.chat-folder-move{display:grid;gap:8px;padding-top:16px;margin-top:16px;border-top:1px solid var(--border)}
.chat-folder-move label{font-size:16px;line-height:24px;color:var(--navy)}
.chat-folder-select{width:100%;min-height:48px;padding:10px 12px;border:1px solid #a8badc;border-radius:var(--radius);background:white;color:var(--navy);font:inherit}
.chat-folder-move .text-button{justify-self:start;min-height:44px;padding:8px 12px}
.chat-folder-dialog{width:min(496px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto}
.chat-folder-dialog[open]{display:flex;flex-direction:column}
.chat-folder-dialog .dialog-head{flex:none}
.chat-folder-dialog .dialog-body{min-height:0;overflow:auto;overscroll-behavior:contain}
.chat-folder-dialog .field{margin-top:0}
.chat-folder-dialog .field label{font-size:16px;line-height:24px;color:var(--navy)}
.chat-folder-dialog .field input{width:100%;min-height:48px;padding:10px 12px;border:1px solid #a8badc;border-radius:var(--radius);font:inherit;color:var(--navy);background:white}
.chat-folder-dialog button{min-height:44px;min-width:44px}
.chat-folder-scope{margin:12px 0 0;color:var(--steel);font-size:14px;line-height:22px}
.chat-folder-dialog .form-error{margin:12px 0 0;color:var(--danger);font-size:14px;line-height:22px}
.chat-folder-dialog .account-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
@media(max-width:399px){.chat-folder-dialog{width:calc(100% - 24px);max-height:calc(var(--app-height,100dvh) - 24px)}.chat-folder-dialog .dialog-head{padding-inline:16px}.chat-folder-dialog .dialog-body{padding-inline:16px}}
