/* Notes: the sticky filter bar, the notes list, who labelled each note, and the reader. */
/* notes: one page scroll. The title, page range and filters stick at the top; the notes are a plain list */
.notes-bar { position: sticky; top: var(--bar-h); z-index: 2; background: var(--panel); border-bottom: 1px solid var(--line); border-radius: var(--r) var(--r) 0 0; }
.notes-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 12px 18px 0; }
.notes-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 18px; }
.notes-filters input[type="search"] { flex: 1 1 200px; max-width: 280px; margin-left: auto; }
.subtabs .n, .notes-filters .n { color: var(--ink-3); font-weight: 400; }
/* Try the reader: a typed note read on the spot, above the notes list */
.reader > details { padding: 14px 18px; }
.reader-form { display: grid; gap: 12px; max-width: 72ch; }
.reader-form .row { align-items: flex-end; gap: 12px; }
.reader-out { display: grid; gap: 2px; padding-top: 4px; }
.note-list { list-style: none; margin: 0; padding: 0; }
.note { display: grid; grid-template-columns: 104px minmax(0, 1fr) minmax(220px, 330px) 170px; gap: 4px 24px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.note:last-child { border-bottom: 0; }
.note:hover { background: var(--sunken); }
.note-text { max-width: 70ch; }
.note-who { font-size: var(--fs-sm); white-space: nowrap; }
.notes-save { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 18px; border-top: 1px solid var(--line); background: var(--sunken); }
.notes-head .btn { margin-left: 4px; }
.note-empty { padding: 40px 18px; text-align: center; color: var(--ink-2); }
.by { display: grid; justify-items: start; gap: 4px; }
@media (max-width: 600px) {
  /* notes: the bar scrolls away; each note stacks (date and who labelled it, the note, then its failure mode) */
  .notes-bar { position: static; }
  .notes-filters input[type="search"] { flex-basis: 100%; max-width: none; margin-left: 0; }
  .note { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 16px; }
  .note-text, .note-mode { grid-column: 1 / -1; }
  .note-who { grid-row: 1; grid-column: 2; text-align: right; }
}
