/* Dedicated collapsible conversation history, separate from primary navigation. */
.chats-panel{display:none;flex:0 0 270px;width:270px;min-width:0;min-height:0;flex-direction:column;gap:12px;padding:20px 13px;background:linear-gradient(180deg,#140c22,#0b0814);border-right:1px solid #49315c;color:#f7efff;overflow-y:auto;z-index:5}
body.chats-pane-open .chats-panel{display:flex}
.chats-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;border-bottom:1px solid #3a294b;padding-bottom:15px}
.chats-panel-head small{font-size:9px;letter-spacing:.2em;color:#b48bdc;font-weight:750}.chats-panel-head h2{font-size:21px;margin:7px 0 0;font-weight:800}
#chatsPaneClose{border:1px solid #5a4271;background:#291a3a;color:#eee;border-radius:9px;width:30px;height:30px;font-size:21px;cursor:pointer}
.chats-panel-desc{font-size:12px;color:#b6a8c9;margin:0 2px 4px}
.chats-panel .chats-history{display:flex!important;flex:1;min-height:100px;overflow-y:auto;flex-direction:column;gap:6px;max-height:none;padding:0 2px}
.chats-panel .chats-history button{flex-shrink:0;white-space:normal;text-align:left;overflow-wrap:anywhere;padding:11px 12px;border:1px solid #37274b;border-radius:10px;background:#1c122c;color:#e7dbf5;cursor:pointer}
.chats-panel .chats-history button.selected{background:#382052;border-color:#9b5bd9}
.chats-new,.chats-pane-toggle{border:1px solid #7753a4;border-radius:10px;background:#26153d;color:#f7edff;font-weight:750;cursor:pointer}
.chats-new{padding:12px;width:100%}.chats-pane-toggle{padding:9px 13px;margin-right:8px;white-space:nowrap}.chats-pane-toggle[aria-expanded="true"]{background:#6633a3;border-color:#c18aff}
@media(max-width:1279px){.chats-panel{position:fixed;top:0;bottom:0;left:0;width:min(320px,calc(100vw - 42px));max-height:100dvh;box-shadow:20px 0 55px #000a;z-index:40}body.chats-pane-open .chats-panel{display:flex}.chats-pane-toggle{padding:8px}.chats-pane-toggle span{display:none}}
