/* public/styles/tree-notes.css — owned by views/tree-notes.js. Shared styles live in base.css (do not edit base.css from a view).
   Every selector is prefixed .tree-notes- so it cannot collide with other views. */

.tree-notes-list { display: flex; flex-direction: column; gap: 12px; }

/* One dated entry card */
.tree-notes-entry {
  padding: 12px 16px 10px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0;
}
.tree-notes-entry-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.tree-notes-entry-title { font-family: var(--font-serif); font-weight: 600; font-size: 1.05rem; line-height: 1.25; }
.tree-notes-entry-body { font-size: 0.95rem; }
.tree-notes-entry-body > :last-child { margin-bottom: 0; }

/* "+ Add note" form */
.tree-notes-form {
  display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; padding: 12px;
  background: var(--surface); border: 1px solid var(--accent); border-radius: var(--radius); box-shadow: var(--shadow);
}
.tree-notes-form-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tree-notes-form-title { font-family: var(--font-serif); font-weight: 600; }
.tree-notes-textarea { min-height: 140px; resize: vertical; line-height: 1.45; }
.tree-notes-form-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Empty state + the always-visible rule text */
.tree-notes-empty {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 16px; text-align: center;
  color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, 0.5);
}
.tree-notes-empty-icon { font-size: 32px; line-height: 1; }
.tree-notes-rules { margin-top: 14px; }
.tree-notes-rules p { margin: 0 0 4px; }
.tree-notes-path code { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; overflow-wrap: anywhere; }

@media (max-width: 640px) {
  .tree-notes-entry { padding: 10px 12px 8px; }
  .tree-notes-textarea { min-height: 120px; }
}
