#conversation-bar { min-height: 39px; padding: 9px 24px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #e9e4f3; background: #faf8fe; font-size: 11px; color: #797488; flex-wrap: wrap; }
#conversation-title { color: #484456; font-weight: 600; max-width: min(50%, 340px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#conversation-status { flex: 1; min-width: 140px; }
#conversation-status.error, #history-list-status.error { color: #a52a35; }
#btn-history-retry, #btn-chat-backup { color: #5423e7; font-weight: 600; }
#conversation-overlay[hidden] { display: none; }
#conversation-overlay { position: fixed; inset: 0; z-index: 90; }
#conversation-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; background: rgba(26, 20, 43, .3); cursor: default; }
#conversation-drawer { position: absolute; inset: 0 auto 0 0; width: min(370px, calc(100vw - 24px)); display: flex; flex-direction: column; padding: 25px 20px 16px; background: #faf8fe; box-shadow: 12px 0 50px rgba(36, 16, 66, .16); overflow: hidden; }
.history-heading-row { display: flex; justify-content: space-between; align-items: center; }
#history-heading { font-size: 20px; font-weight: 800; color: #3c00bd; }
#btn-close-history { font-size: 28px; line-height: 1; width: 34px; height: 34px; color: #797488; border-radius: 50%; }
.history-description { margin: 12px 0 18px; line-height: 1.65; font-size: 13px; color: #797488; }
#btn-history-new { padding: 11px 16px; border-radius: 15px; background: #5423e7; color: white; font-size: 13px; font-weight: 600; text-align: left; }
.history-list-heading { display: flex; justify-content: space-between; align-items: center; margin-top: 23px; font-size: 11px; color: #797488; }
#btn-refresh-history { padding: 5px 8px; color: #5423e7; }
#history-list-status { margin: 7px 0; font-size: 12px; line-height: 1.5; }
#conversation-list { flex: 1; min-height: 0; overflow-y: auto; padding: 2px 3px 12px 0; }
.conversation-item { display: flex; align-items: center; border: 1px solid transparent; border-radius: 15px; margin-bottom: 7px; }
.conversation-item:hover { background: #f0edf7; }
.conversation-item.active { background: #eee7ff; border-color: #d8cafb; }
.conversation-open { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; text-align: left; padding: 13px 11px; border-radius: 15px; }
.conversation-name { display: block; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #484456; font-size: 13px; font-weight: 600; }
.conversation-item.active .conversation-name { color: #3c00bd; }
.conversation-meta { color: #797488; font-size: 10px; }
.conversation-delete { padding: 8px; margin-right: 5px; color: #797488; font-size: 11px; border-radius: 8px; }
.conversation-delete:hover { color: #a52a35; background: #fff0f1; }
#history-retention { padding-top: 12px; border-top: 1px solid #e9e4f3; color: #797488; font-size: 10px; line-height: 1.65; }
#conversation-drawer button:disabled { opacity: .5; cursor: wait; }
#conversation-drawer button:focus-visible, #btn-history:focus-visible, #conversation-bar button:focus-visible { outline: 2px solid #7659f6; outline-offset: 2px; }
@media (max-width: 640px) {
  #chat-pane > header { padding-left: 16px; padding-right: 12px; }
  #chat-pane > header > div:first-child { gap: 8px; }
  #chat-pane > header > div:first-child > span { font-size: 17px; letter-spacing: 0; }
  #chat-pane > header > div:last-child { gap: 3px; }
  #btn-history, #btn-new-chat { padding: 7px 9px; font-size: 10px; white-space: nowrap; }
  #conversation-bar { padding: 8px 16px; gap: 5px 10px; }
  #conversation-title { max-width: 45%; }
  #conversation-status { font-size: 10px; min-width: 115px; }
}
