.idea-history-control { margin-top:8px; display:grid; gap:6px; }
.idea-history-dialog { width:min(1100px,94vw); max-height:90vh; border:1px solid #d8dce3; border-radius:14px; padding:22px; color:#203047; }
.idea-history-dialog::backdrop { background:#0006; }
.idea-history-heading,.idea-history-footer { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.idea-history-filters { display:flex; flex-wrap:wrap; gap:12px; margin:14px 0; }
.idea-history-filters label { display:grid; gap:5px; flex:1 1 130px; }
.idea-history-filters select,.idea-history-filters input { width:100%; }
.idea-history-layout { display:grid; grid-template-columns: minmax(220px, .8fr) minmax(260px, 1.2fr); gap:20px; }
.idea-history-results,.idea-history-detail { max-height:49vh; overflow:auto; }
.idea-history-detail { padding:0 12px; }
.idea-history-choice { display:grid; gap:5px; width:100%; text-align:left; font:inherit; padding:12px; margin-bottom:8px; background:#fff; border:1px solid #d8dce3; border-radius:8px; cursor:pointer; }
.idea-history-choice.selected,.idea-history-choice:hover { background:#edf6ef; border-color:#278356; }
.idea-history-text { white-space:pre-wrap; }
.idea-history-footer { margin-top:16px; justify-content:flex-end; }
.idea-history-layout.preview-only { display:block; }
@media(max-width:650px){.idea-history-layout{grid-template-columns:1fr}.idea-history-results,.idea-history-detail{max-height:28vh}}
