/* Ders Asistanı — gizlenebilir geçmiş sorular paneli */
.ai-history-panel { border-bottom:1px solid rgba(148,163,184,.35); background:var(--bg,#f8fafc); max-height:300px; display:flex; flex-direction:column; min-height:0; }
.ai-history-panel.kapali { max-height:none; flex:0 0 auto; }
.ai-history-head { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:8px 10px; background:rgba(148,163,184,.10); }
.ai-history-head > div:first-child { min-width:0; }
.ai-history-head strong { font-size:13px; }
.ai-history-head small { display:block; margin-top:2px; color:var(--muted,#64748b); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:230px; }
.ai-history-list { overflow:auto; padding:6px; }
.ai-history-item { background:#fff; border:1px solid rgba(148,163,184,.28); border-radius:8px; padding:7px; margin-bottom:6px; }
.ai-history-q { cursor:pointer; display:flex; flex-direction:column; gap:4px; }
.ai-history-q span { font-size:12.5px; line-height:1.35; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.ai-history-q small { color:var(--muted,#64748b); font-size:10.5px; }
.ai-history-answer { margin-top:7px; padding:7px 8px; border-radius:6px; background:rgba(59,130,246,.06); font-size:12px; line-height:1.45; max-height:180px; overflow:auto; }
.ai-history-actions { display:flex; gap:5px; margin-top:7px; flex-wrap:wrap; }
.ai-history-actions .btn { font-size:10.5px; padding:4px 7px; }
.ai-history-empty { padding:12px; font-size:12px; color:var(--muted,#64748b); text-align:center; }
@media (max-width:900px) {
  .ai-history-panel { max-height:250px; }
  .ai-history-head small { max-width:160px; }
}
