.chat-members { padding: 12px 20px; border-bottom: 1px solid #e9e4ef; background: #fbf9fe; }
.chat-members summary { cursor: pointer; font-weight: 600; }
.chat-member-list { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; }
.chat-member { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 14px; background: white; }
.chat-member .button { padding: 6px 10px; font-size: 12px; }
.chat-attachments { display: grid; gap: 8px; margin-top: 8px; }
.chat-attachment { display: block; padding: 10px; border: 1px solid #ded2ee; border-radius: 12px; background: #fbf9fe; color: #583486; text-decoration: none; overflow-wrap: anywhere; }
.chat-attachment img { display: block; max-width: 100%; max-height: 280px; border-radius: 10px; object-fit: contain; margin-bottom: 8px; }
.chat-compose { flex-wrap: wrap; }
.chat-file-field { flex-basis: 100%; padding: 0 4px; font-size: 13px; }
.chat-file-field input { display: block; margin-top: 6px; max-width: 100%; }
.chat-compose textarea { min-width: 0; }
.bubble p { white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.edit-panel { border-top: 1px solid #e9e4ef; padding-top: 16px; margin-top: 18px; }
.edit-panel summary { cursor: pointer; font-weight: 600; margin-bottom: 14px; }
.permission-grid { display: grid; gap: 10px; margin: 14px 0; }
.permission-grid label { display: flex; gap: 10px; align-items: start; }
.permission-grid input { margin-top: 4px; }
.lesson-edit-form .field { margin-top: 12px; }
.admin-file-form { width: 100%; }
@media (max-width: 680px) { .chat-members { padding: 10px 14px; } .chat-member { width: 100%; justify-content: space-between; } .chat-attachment img { max-height: 220px; } }
.course-cover.has-course-cover { position: relative; overflow: hidden; }
.course-cover.has-course-cover img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.course-cover.has-course-cover > span, .course-cover.has-course-cover > strong { position: relative; z-index: 1; background: rgba(255,255,255,.88); color: #583486; border-radius: 8px; padding: 5px 8px; }
