/* Notes (ProNotes). */
.notes.content { max-width: var(--reading-max); flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 20px; }
.note-search { position: relative; display: flex; align-items: center; min-width: 260px; }
.note-search .search-icon { position: absolute; left: 10px; display: flex; color: var(--muted); }
.note-search .input { padding-left: 30px; font-size: 13px; background: var(--surface); }
.editor textarea {
  width: 100%;
  padding: 16px 18px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
  resize: vertical;
  outline-offset: -2px;
}
.editor-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}
.editor-bar .btn.sm { min-height: 32px; padding: 0 10px; gap: 6px; }
.editor-bar .select { min-height: 32px; background: var(--surface); }
.editor-bar .save { padding: 0 10px 0 12px; }
.attach { cursor: pointer; }
.attach:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}
.chip-filter:hover { border-color: var(--border-strong); color: var(--text); }
.chip-filter[aria-current="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
.seg.small a {
  display: flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
}
.seg.small a:hover { color: var(--text); }
.seg.small a[aria-current="true"] { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--border); }
.day-head { padding: 10px 18px; font-size: 12px; font-weight: 600; background: var(--surface-2); }
.timeline > div + div .day-head { border-top: 1px solid var(--border); }
.note.row-item { align-items: flex-start; gap: 16px; padding: 14px 18px; min-height: 0; border-top: 1px solid var(--border); }
.note-time { flex: none; width: 44px; padding-top: 1px; }
.note-text { font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.note-side { flex: none; align-items: flex-end; }
.memo {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 460px;
  padding: 6px 10px 6px 6px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.memo-play {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.wave { flex: 1 1 auto; max-width: 100%; overflow: hidden; }
.wave rect { fill: var(--wave); }
.wave rect.played { fill: var(--accent); }
.note-image img {
  display: block;
  width: 168px;
  height: 104px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.note-file {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding: 6px 12px 6px 6px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
}
.note-file:hover { border-color: var(--border-strong); }
.file-badge {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 600;
  color: var(--muted);
}
.empty-big { padding: 40px 18px; text-align: center; }
.gap-14 { gap: 14px; }
@media (max-width: 899px) {
  .note-search { min-width: 0; flex: 1 1 100%; }
  .note.row-item { flex-wrap: wrap; }
  .note-side { flex-direction: row; align-items: center; }
}
.note-side .proj { font-size: 12px; color: var(--muted); white-space: nowrap; }
