/* Per-file notes — separate stylesheet (application.css carries unrelated WIP). CSS custom
   properties (--line/--soft/--fg/--muted) are defined on :root in application.css and cascade. */

.note-badge { display: inline-block; margin-left: 6px; font-size: 11px; color: var(--muted);
              vertical-align: middle; white-space: nowrap; }

/* Right-click context menu */
.file-menu { position: absolute; z-index: 1000; background: var(--bg, #fff); border: 1px solid var(--line);
             border-radius: 8px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15); min-width: 140px; padding: 4px; }
.file-menu button, .file-menu a { display: block; width: 100%; text-align: left; padding: 8px 12px;
             background: none; border: none; color: var(--fg); font-size: 14px; cursor: pointer;
             border-radius: 6px; text-decoration: none; box-sizing: border-box; }
.file-menu button:hover, .file-menu a:hover { background: var(--soft); text-decoration: none; }

/* Quick add-note popover */
.note-popover { position: absolute; z-index: 1001; background: var(--bg, #fff); border: 1px solid var(--line);
             border-radius: 8px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18); padding: 10px; width: 320px; max-width: 90vw; }
.note-popover textarea { width: 100%; box-sizing: border-box; padding: 8px; border: 1px solid var(--line);
             border-radius: 6px; font: inherit; resize: vertical; }
.note-popover-actions { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.note-popover-status { font-size: 12px; color: var(--muted); }

/* Detail-page notes section */
.notes-panel { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 16px; }
.notes-panel h2 { font-size: 16px; margin: 0 0 12px; }
.note-form textarea { width: 100%; max-width: 640px; box-sizing: border-box; padding: 8px;
             border: 1px solid var(--line); border-radius: 6px; font: inherit; margin-bottom: 8px; }
.note { border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin-bottom: 10px; max-width: 640px; }
.note-body :first-child { margin-top: 0; }
.note-body :last-child { margin-bottom: 0; }
.note-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-size: 12px; }
