.history-panel{background:linear-gradient(145deg,#111a2a,#101923 62%,#102324)}
.history-controls{display:flex;justify-content:flex-end;margin:0 0 16px}.history-controls label{display:grid;gap:6px;color:var(--muted);font-size:.82rem}
.history-layout{display:grid;grid-template-columns:minmax(260px,.72fr) minmax(0,1.28fr);gap:18px;align-items:start}
.history-list{max-height:620px;overflow:auto}.history-list .item{cursor:default}.history-list .item.selected{border-color:var(--cyan);box-shadow:0 0 0 1px #06b6d433}
.history-item-heading{display:flex;gap:10px;align-items:center;justify-content:space-between}.history-item-heading h3{margin:0;overflow-wrap:anywhere}.history-kind{font-size:.7rem;letter-spacing:.06em;text-transform:uppercase;color:#8cebdc}
.history-detail{min-height:220px;max-height:680px;overflow:auto;border:1px solid var(--line);border-radius:18px;padding:16px;background:#09121e}
.history-detail-header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:16px}.history-detail-header h3{margin:0 0 6px}.history-detail-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.history-transcript{display:grid;gap:10px}.history-entry{display:flex;gap:10px;padding:13px;border:1px solid var(--line);border-radius:14px;background:#0d1725}.history-entry.human{background:#08252a}.history-entry .agent-avatar{width:38px;height:38px;object-fit:cover;flex:0 0 auto}.history-entry h4{margin:0 0 5px}.history-entry p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55}.history-entry small{color:var(--muted)}
@media(max-width:820px){.history-layout{grid-template-columns:1fr}.history-list{max-height:360px}.history-detail-header{display:grid}}
