File: services/web-ui/public/styles-modal.css

/* ========== Modal ========== */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(5,7,12,0.65);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  z-index: 200;
  animation: fadeIn 160ms ease;
}
.modal {
  width: 640px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 60px);
  background: var(--bg-1);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-pop);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: modalIn 200ms ease;
}
@keyframes modalIn {
  from { transform: translateY(10px) scale(0.98); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.modal-head {
  display: flex; align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  gap: 16px;
}
.modal-head > :first-child { flex: 1; }
.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex; flex-direction: column;
  gap: 14px;
}
.modal-foot {
  display: flex; align-items: center;
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  gap: 8px;
  background: var(--bg-0);
}
.modal-section {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.modal-section-head {
  display: flex; align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--text-3);
}
.modal-section-body { padding: 12px; }
.modal-toggle-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 4px 0;
}
.source-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.source-type-card {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  text-align: left;
  cursor: pointer;
  transition: border 80ms, background 80ms;
}
.source-type-card:hover { border-color: var(--border-stronger); }
.source-type-card.active { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.source-type-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--bg-3);
  color: var(--text-2);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.source-type-card.active .source-type-icon { background: var(--accent-soft-2); color: var(--accent); }

.switch { display: inline-block; position: relative; flex-shrink: 0; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-track {
  display: block;
  width: 32px; height: 18px;
  background: var(--bg-3);
  border-radius: 99px;
  transition: background 120ms;
  position: relative;
}
.switch input:checked ~ .switch-track { background: var(--accent); }
.switch-knob {
  position: absolute;
  top: 2px; left: 2px;
  width: 14px; height: 14px;
  background: white;
  border-radius: 50%;
  transition: left 120ms;
}
.switch input:checked ~ .switch-track .switch-knob { left: 16px; }

.sdi-port-mini {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 12px;
  padding: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  align-items: stretch;
}
.sdi-mini-card {
  background: linear-gradient(180deg, #1c1f28, #0d0e13);
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 8px 2px;
  display: flex;
}
.sdi-mini-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  color: var(--text-3);
  margin: 0 auto;
}
.sdi-mini-ports { display: flex; flex-direction: column; gap: 4px; }
.sdi-mini-port {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 4px;
  text-align: left;
  cursor: pointer;
}
.sdi-mini-port:hover { border-color: var(--border-stronger); }
.sdi-mini-port.active { background: var(--accent-soft); border-color: var(--accent); }
.sdi-mini-radio {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--text-4);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.sdi-mini-port.active .sdi-mini-radio { border-color: var(--accent); }
.sdi-mini-radio-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0;
}
.sdi-mini-port.active .sdi-mini-radio-dot { opacity: 1; }


All files now searched. The screens-admin.jsx was searched programmatically and yielded no matches for any context-menu patterns. I have enough findings to report.

## Summary of findings

The right-click / context-menu feature is implemented exclusively for **assets in the Library view**. One file contains all the logic; one CSS file contains its styling. No other file under `services/web-ui/public/` mentions context menus.

---

### 1. `services/web-ui/public/screens-library.jsx` — main implementation

Found **3 distinct `onContextMenu` handlers** and **1 listener for `contextmenu` events**, all targeting `AssetCard` / list rows. Drives a custom in-app menu component `AssetContextMenu`.

State and dismiss-on-outside-click setup (in `Library`):
```js
const [ctxMenu, setCtxMenu] = React.useState(null); // { asset, x, y }
...
React.useEffect(() => {
  if (!ctxMenu) return;
  const close = () => setCtxMenu(null);
  window.addEventListener('click', close);
  window.addEventListener('contextmenu', close);
  window.addEventListener('scroll', close, true);
  return () => { ... };
}, [ctxMenu]);

const openCtx = (asset, e) => {
  e.preventDefault();
  e.stopPropagation();
  setCtxMenu({ asset, x: e.clientX, y: e.clientY });
};
```

Three call sites use `onContextMenu`:
- **Grid view `AssetCard`**: `<AssetCard ... onContextMenu={function(e) { openCtx(a, e); }} />`
- **List view row**: `<div ... onClick=... onContextMenu={function(e) { openCtx(a, e); }} ...>`
- **AssetCard root element**: `<div className="asset-card" onClick={onOpen} onContextMenu={onContextMenu} ...>`
- **The menu itself** (suppresses native menu inside it): `<div ref={ref} className="ctx-menu" ... onContextMenu={function(e) { e.preventDefault(); e.stopPropagation(); }}>`

The `AssetContextMenu` component renders these actions for a right-clicked asset:
- Open
- Rename… (prompts, then PATCH `/assets/:id` with `display_name`)
- Move to bin (PATCH `/assets/:id` with `bin_id`, plus "Remove from bin")
- Copy asset ID (clipboard)
- Delete permanently (DELETE `/assets/:id?hard=true`, with confirm)

It also positions itself into the viewport via `useLayoutEffect` to avoid going off-screen.

---

### 2. `services/web-ui/public/styles-rest.css` — partial-match note

Contains a `.row-menu` popover class used by a different feature ("Row popover menu (Users, etc.)" — admin tables, not right-click). No `ctx-menu` CSS class is defined in any of the searched stylesheets. The `AssetContextMenu` JSX uses `className="ctx-menu"` and child class names `ctx-header`, `ctx-divider`, `ctx-section-label`, `ctx-empty` — none of which appear in any of the CSS files in `services/web-ui/public/`. **This likely means the ctx-menu is unstyled or styled elsewhere (not in these public CSS files).**

---

### 3. All other files — no matches

Programmatically searched for `onContextMenu`, `oncontextmenu`, `contextmenu`, `context-menu`, `right-click`, `rightclick`, `ctxMenu`, `ctx-menu`:

- `shell.jsx` — none
- `app.jsx` — none
- `screens-projects.jsx` — none
- `screens-ingest.jsx` — none
- `screens-jobs.jsx` — none (has a `<button className="icon-btn" title="Remove job" onClick={() => onDelete(job)}><Icon name="x" /></button>` but no right-click)
- `screens-editor.jsx` — none
- `screens-admin.jsx` — none (searched via saved tool-output file)
- `screens-asset.jsx` — none
- `screens-home.jsx` — none
- `tweaks-panel.jsx` — none
- `modal-new-recorder.jsx` — none
- `visuals.jsx` — none
- `icons.jsx` — none
- `data.jsx` — none
- `styles.css` — none
- `styles-fixes.css` — none
- `styles-screens.css` — none
- `styles-asset.css` — none
- `styles-modal.css` — none

---

### Key takeaway

If you're tracking down a "right-click on X" feature, the only one in the public web-UI is the **library asset context menu** in `screens-library.jsx`. The `ctx-menu` CSS class names referenced there are **not defined** in any of the public CSS files searched — worth noting if styling appears broken.