.workspace-chat-history { margin: 0 0 14px; padding: 12px; border: 1px solid #334156; border-radius: 12px; background: #111a29; color: #e5edf8; }
.workspace-chat-history summary { cursor: pointer; font-weight: 600; }
.workspace-chat-history form, .workspace-chat-history > div:not(.chat-history-messages) { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.workspace-chat-history input { flex:1; min-width:0; width:100%; padding:9px; color:#f3f7ff; background:#090f19; border:1px solid #53637b; border-radius:8px; }
.workspace-chat-history button { color:#f3f7ff; background:#25334b; border:1px solid #61728f; padding:8px 10px; border-radius:8px; cursor:pointer; font-size:12px; }
.workspace-chat-history [hidden] { display:none!important; }
.workspace-chat-history :focus-visible { outline:2px solid #bda5ff; outline-offset:3px; }
.chat-history-notice { color:#b8c6da; font-size:12px; line-height:1.5; }
.chat-history-messages { max-height: min(44vh, 460px); overflow:auto; overscroll-behavior:contain; scroll-behavior:auto; }
.chat-history-messages article { padding:12px 4px; border-bottom:1px solid #334156; overflow-wrap:anywhere; font-size:13px; }
.chat-history-messages article small { display:block; font-size:11px; color:#b8c6da; margin:4px 0; }
.chat-history-messages article p { white-space:pre-wrap; line-height:1.6; }
.chat-history-target { background:#293047; border-radius:8px; box-shadow:inset 3px 0 #bda5ff; }
/* The old conversation receipt belongs behind the mounted workspace. Its
   absolute progress track must not cover history buttons or the composer. */
body.game-edit-workspace-active [data-unified-product-progress][data-progress-surface="conversation"] { display:none!important; }
.chat-history-messages details { margin:8px 0; }
.chat-history-messages dl { margin:8px 0; }
.chat-history-messages dt { color:#c9b8ff; font-weight:600; margin-top:10px; }
.chat-history-messages dd { margin:4px 0; line-height:1.6; white-space:pre-wrap; }
.chat-history-references article { width:100%; border-left:2px solid #bda5ff; padding-left:8px; font-size:12px; }
.chat-history-references p { margin:4px 0; }
.workspace-chat-history .chat-history-baseline { font-size:12px; color:#c3d1e4; }
