  /* Notes panel — discrete, per-project reference notes */
  #notes-view { flex: 1; overflow-y: auto; padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; }
  #notes-view .sub { font-size: 12.5px; color: var(--text-dim); margin: 0; }
  #notes-add-btn {
    align-self: flex-start;
    border: none; color: #070605; font-weight: 700;
  }
  .note-form {
    display: flex; flex-direction: column; gap: 8px;
    background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
    padding: 12px 14px;
  }
  .note-form-actions { display: flex; gap: 8px; align-items: center; }
  .note-form-actions button { border: none; }
  .note-form-actions button.primary { color: #070605; font-weight: 700; }
  .note-form-actions button:not(.primary) { background: var(--panel-2); color: var(--text-dim); border: 1px solid var(--border); }
  .note-form .err { color: var(--red); font-size: 12px; }
  #notes-list { display: flex; flex-direction: column; gap: 8px; }
  .note-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 11px 14px;
  }
  .note-row .body { flex: 1; min-width: 0; }
  .note-row .title { font-size: 13.5px; font-weight: 600; margin-bottom: 3px; }
  .note-row .text { font-size: 13px; white-space: pre-wrap; word-break: break-word; }
  .note-row .meta { font-size: 10.5px; color: var(--text-dim); margin-top: 6px; opacity: 0.75; }
  .note-row .edit, .note-row .del { color: var(--text-dim); font-size: 13px; cursor: pointer; flex-shrink: 0; padding: 2px 6px; border-radius: 5px; }
  .note-row .edit:hover { color: var(--text); }
  .note-row .del:hover { color: var(--red); }
  #notes-empty { color: var(--text-dim); font-size: 13px; }
