/* Scoped to Chats: preserve existing themes, permissions and other screens. */
.chat-adjustable{position:relative;width:100%;isolation:isolate}
.chat-adjustable .chat-organized-list{width:var(--chat-left-width)!important;min-width:0!important;container-type:inline-size;container-name:chat-list}
.chat-adjustable:not([data-chat-layout=single]) .chat-organized-list{display:flex!important}
.chat-adjustable .chat-organized-conversation{display:flex!important;min-width:0}
.chat-adjustable .chat-content-columns{position:relative}
.chat-adjustable .chat-organized-conversation-body{display:flex!important;min-width:0;container-type:inline-size;container-name:chat-center}
.chat-adjustable .chat-organized-info{width:var(--chat-right-width)!important;min-width:0;max-width:100%;container-type:inline-size;container-name:chat-info;overflow-wrap:anywhere;overscroll-behavior:contain}
.chat-adjustable .chat-organized-info :is(.truncate,[class*="line-clamp"]){white-space:normal;overflow-wrap:anywhere;text-overflow:clip;-webkit-line-clamp:unset}
.chat-adjustable .chat-organized-info :is(input,select,textarea,img,video,audio){max-width:100%;min-width:0}
.chat-adjustable .chat-organized-info .cl-organization{min-width:0}
.chat-adjustable .chat-mobile-bar{display:none!important}
.chat-panel-edge{position:relative;flex:0 0 8px;width:8px;z-index:25;background:color-mix(in srgb,var(--chat-panel-accent,#327b69) 6%,#fff);touch-action:none}
.chat-panel-handle{position:absolute;inset:0 -4px;touch-action:none;z-index:1}
.chat-panel-handle[role=separator]{cursor:col-resize}
.chat-panel-edge::before{content:"";position:absolute;inset:0 3px;background:var(--chat-panel-border,#d4dedb);transition:background .12s}
.chat-panel-edge:hover::before,.chat-panel-edge:focus-visible::before,.chat-adjustable.is-resizing .chat-panel-edge::before{background:var(--chat-panel-accent,#327b69)}
.chat-panel-handle:focus-visible{outline:2px solid #2563eb;outline-offset:-2px}
.chat-panel-grip{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);color:var(--chat-panel-accent,#327b69);background:#fff;border-radius:3px;pointer-events:none}
.chat-panel-toggle{flex:0 0 26px;width:26px;height:36px;display:grid;place-items:center;border:1px solid #9bbcb1;border-radius:8px;background:#fff;color:#174d43;cursor:pointer;padding:0}
.chat-panel-toggle:hover{background:#e8f3ee;border-color:#397f6c}.chat-panel-toggle:focus-visible{outline:3px solid #2563eb;outline-offset:2px}
.chat-panel-edge-right.is-closed{background:transparent}.chat-panel-edge-right.is-closed::before{display:none}
.chat-adjustable.is-resizing,.chat-adjustable.is-resizing *{cursor:col-resize!important;user-select:none!important}
.chat-adjustable .chat-responsive-thread{min-width:0}
.chat-adjustable .chat-conversation-header{gap:8px;padding:10px 12px;flex-wrap:wrap;min-height:64px;position:static}
.chat-header-avatar{flex:0 0 36px;width:36px;height:36px}
.chat-header-identity{flex:1 1 100px;min-width:80px;overflow:hidden}
.chat-header-identity h2{font-size:14px;line-height:1.4}.chat-header-identity p{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:5px;min-width:0;max-width:100%;flex-wrap:wrap}
.chat-adjustable .chat-header-actions{flex-wrap:nowrap;padding-right:10px}
.cw-root.cw-inline{display:contents}
.chat-header-actions .cw-toolbar{display:flex;gap:5px;padding:0;background:none;border:0;min-height:0;flex-wrap:nowrap;min-width:0}
.chat-header-actions :is(.cw-toolbar button,.rec-entry){display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;padding:7px 9px;border:1px solid #c5d8d0;border-radius:9px;background:#fff;color:#224c40;box-shadow:none;font:600 12px/1.2 system-ui,sans-serif;white-space:nowrap;cursor:pointer}
.chat-header-actions :is(.cw-toolbar button,.rec-entry):hover{background:#e9f3ef;border-color:#6c9d8b}
.chat-header-actions :is(button,a):focus-visible{outline:3px solid #2563eb;outline-offset:2px}
.chat-header-actions .cw-toolbar button svg{flex-shrink:0}
.chat-header-actions .cw-next{flex:0 1 auto;min-width:0;max-width:190px;background:#f0f5f2}
.chat-header-actions .cw-next>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-header-actions .cw-next.has-next{background:#e4f1e9;border-color:#87af99;color:#20513b}
.chat-header-actions .cw-error{font-size:12px;max-width:100%}
.cw-toolbar button{display:inline-flex;align-items:center;gap:6px}
.chat-adjustable .chat-row-name{min-width:0;flex:1}.chat-adjustable .chat-row-preview{min-width:0}.chat-adjustable .chat-row-excerpt{min-width:0}
.chat-adjustable .chat-responsive-thread :is(audio,video,img){max-width:100%}
.chat-adjustable .chat-responsive-thread audio{width:100%;min-width:160px}
.chat-adjustable .chat-responsive-thread [data-help="chat_cargar_anteriores"]{padding-inline:clamp(8px,2cqi,24px)}
.chat-adjustable .cw-panel{max-width:100%}
@container chat-list (min-width:400px){.chat-row-title{white-space:normal!important;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-height:1.35}.chat-row-preview{align-items:baseline!important;flex-wrap:wrap;overflow:visible!important;white-space:normal!important}.chat-row-excerpt{white-space:normal!important;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-height:1.4;width:100%}.cw-list-work{white-space:normal;overflow-wrap:anywhere}}
@container chat-center (max-width:700px){.chat-tool-label{display:none}.chat-header-actions .cw-toolbar button{padding:8px}.chat-header-actions .cw-next{max-width:145px}.chat-header-actions .rec-entry{font-size:11px;padding:7px}.chat-header-actions .rec-entry svg{width:16px;height:16px}}
@container chat-center (max-width:520px){.chat-header-actions{flex:1 1 100%;justify-content:flex-start}.chat-header-actions .cw-toolbar{flex:1}.chat-header-actions .cw-next{max-width:none;flex:1}.chat-header-actions .rec-entry{flex-shrink:0}.chat-header-identity{min-width:120px}.chat-conversation-header{gap:6px!important;padding:8px 10px!important}}
.chat-adjustable[data-chat-layout=compact] .chat-organized-info{position:absolute;right:0;inset-block:0;z-index:29;box-shadow:-8px 0 25px #173a3430}
.chat-adjustable[data-chat-layout=compact] .chat-panel-edge-right{position:absolute;right:0;inset-block:0;z-index:30}
.chat-adjustable[data-chat-layout=compact].has-info .chat-panel-edge-right{right:var(--chat-right-width)}
.chat-adjustable:is([data-chat-layout=compact],[data-chat-layout=single]) .chat-organized-info{top:var(--chat-header-height,112px)}
.chat-adjustable:is([data-chat-layout=compact],[data-chat-layout=single]) .chat-conversation-header{position:relative;z-index:31}
.chat-adjustable[data-chat-layout=single] .chat-organized-list{width:100%!important;display:flex!important}
.chat-adjustable[data-chat-layout=single].has-chat .chat-organized-list{display:none!important}
.chat-adjustable[data-chat-layout=single]:not(.has-chat) .chat-organized-conversation{display:none!important}
.chat-adjustable[data-chat-layout=single] .chat-panel-edge-left{display:none}
.chat-adjustable[data-chat-layout=single] .chat-mobile-bar{display:flex!important;padding:8px 12px;min-height:36px}
.chat-adjustable[data-chat-layout=single] .chat-organized-info{position:absolute;right:0;inset-block:0;z-index:29;border-left:1px solid var(--chat-panel-border);box-shadow:-8px 0 25px #173a3430}
.chat-adjustable[data-chat-layout=single] .chat-panel-edge-right{position:absolute;right:0;inset-block:0;z-index:30}
.chat-adjustable[data-chat-layout=single].has-info .chat-panel-edge-right{right:var(--chat-right-width)}
.chat-adjustable[data-chat-layout=single] .chat-organized-info{top:var(--chat-header-height,112px)}
@media(prefers-reduced-motion:reduce){.chat-panel-edge::before{transition:none}}
