/* Личные заметки: список на странице «Заметки» + модалка быстрой заметки. */

.notes-panel { padding: 8px 20px; display: grid; }

.note-row { display: grid; gap: 8px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.note-row:last-child { border-bottom: 0; }

.note-row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.note-date { color: var(--text-soft); font-size: 12px; font-weight: 750; }
.note-row-actions { display: flex; gap: 4px; }

.note-title { margin: 0; font-size: 15px; }
.note-body { margin: 0; color: var(--text); font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }

.note-chip { display: inline-flex; align-items: center; gap: 8px; width: max-content; max-width: 100%; padding: 6px 10px; border-radius: 7px; background: var(--surface-2); color: var(--text-soft); font-size: 12px; }
.note-chip svg { width: 15px; flex: 0 0 auto; color: var(--primary); }
.note-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note-chip .btn.small { flex: 0 0 auto; min-height: 26px; padding: 4px 9px; font-size: 12px; }

.note-context { display: flex; align-items: center; gap: 7px; margin: -6px 0 4px; font-size: 12px; }
.note-context svg { width: 15px; color: var(--primary); }

.note-lesson-list { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.note-lesson-list-title { display: block; margin-bottom: 4px; color: var(--text-soft); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.note-mini-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.note-mini-row:first-of-type { border-top: 0; }
.note-mini-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }

@media (max-width: 480px) {
  .notes-panel { padding: 4px 16px; }
  .note-row { padding: 14px 0; }
  .note-chip { max-width: 100%; }
  .note-chip span { max-width: 140px; }
}
