/* Belajar Bersama AI: mode tutor, tingkat, catatan, penanda sumber. */
.ai-alat { padding: 14px; margin-top: 14px; display: grid; gap: 10px; }
.ai-mode { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; background: #edf0e9; padding: 4px; border-radius: 12px; }
.ai-mode button { border: none; background: transparent; padding: 10px 6px; border-radius: 9px; color: var(--muted, #78847d); font-weight: bold; font-size: 14px; cursor: pointer; }
.ai-mode button.aktif { background: #fff; color: var(--green, #123d32); box-shadow: 0 1px 4px #193d3020; }
.ai-mode button:disabled { opacity: .6; cursor: default; }
@media (min-width: 640px) { .ai-mode { grid-template-columns: repeat(4, 1fr); } }
.ai-baris { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted, #78847d); }
.ai-baris select { padding: 8px; border-radius: 8px; border: 1px solid #ccc; font: inherit; }
.ai-kecil { border: 1px solid #d9ddd5; background: #fff; color: var(--green, #123d32); border-radius: 8px; padding: 7px 10px; font: inherit; font-size: 14px; cursor: pointer; }
.ai-kecil:disabled { opacity: .55; cursor: default; }
.ai-hapus { color: #a3261b; border-color: #efc9c4; }
.ai-legenda { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted, #78847d); }
.ai-sumber { display: inline-block; font-size: 12px; font-weight: bold; padding: 1px 8px; border-radius: 999px; margin: 2px 0; }
.ai-materi { background: #e6f2ec; color: #1e6a4b; }
.ai-umum { background: #fff4dd; color: #7a5a12; }
.ai-kartu { margin-bottom: 12px; padding: 14px; }
.ai-pengguna { background: #f4f7f1; }
.ai-sistem, .ai-tunggu { background: #fcfcf8; }
.ai-galat { color: #a3261b; }
.ai-info { margin: 0; color: var(--muted, #78847d); line-height: 1.6; }
.ai-teks { line-height: 1.8; overflow-wrap: anywhere; margin: 8px 0; }
.ai-pesan .ai-kecil { margin-top: 4px; }
.ai-catatan { display: grid; gap: 8px; max-height: 60vh; overflow-y: auto; }
.ai-catatan-alat { display: flex; justify-content: flex-end; }
.ai-catatan-item { border: 1px solid #ecece5; border-radius: 10px; padding: 10px 12px; background: #fff; }
.ai-catatan-kepala { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--muted, #78847d); }
#studyRoom [hidden] { display: none !important; }
