/* Reference marks inside the focused declaration (reference_marks.mjs).
   Padding stays 0 so monospace columns do not drift; the underline is an inset shadow so the
   line height does not change either. */
.ref-mark { border-radius: 3px; padding: 0; cursor: help; transition: box-shadow 120ms ease; }
.ref-mark.ref-ok { background: rgba(37, 99, 235, 0.11); box-shadow: inset 0 -2px 0 rgba(37, 99, 235, 0.55); color: #1e3a8a; }
.ref-mark.ref-red { background: rgba(220, 38, 38, 0.13); box-shadow: inset 0 -2px 0 #dc2626; color: #991b1b; }
.ref-mark.ref-unknown { background: rgba(100, 116, 139, 0.14); box-shadow: inset 0 -2px 0 rgba(100, 116, 139, 0.6); color: #334155; }
.ref-mark.ref-sorry { background: #dc2626; color: #fff; box-shadow: none; cursor: default; }
.ref-mark.is-link { cursor: pointer; }
.ref-mark.is-link:hover,
.ref-mark.ref-hover { box-shadow: inset 0 -2px 0 currentColor, 0 0 0 2px rgba(15, 23, 42, 0.5); }
.file-line.focused .ref-mark.ref-ok { background: rgba(37, 99, 235, 0.16); }
.file-line.focused .ref-mark.ref-red { background: rgba(220, 38, 38, 0.18); }

.inline-decl-chip.ref-marks-chip { border-style: solid; }
.inline-decl-chip.ref-marks-red { color: #991b1b; border-color: rgba(220, 38, 38, 0.45); background: rgba(220, 38, 38, 0.08); }
.inline-decl-chip.ref-marks-ok { color: #1e3a8a; border-color: rgba(37, 99, 235, 0.4); background: rgba(37, 99, 235, 0.07); }
.inline-decl-chip.ref-marks-muted { color: #475569; border-color: #cbd5e1; background: #f8fafc; }

/* A hovered mark lights its file on the map or its declaration in the study graph. */
.graph-svg .graph-node-group.ref-hot .graph-node-shape { stroke: #0f172a; stroke-width: 3px; }
.graph-svg .graph-node-group.ref-hot { opacity: 1 !important; }
