

/* ===== co-located from css/styles.css (core: context-menu) ===== */
/* ─── 13. CONTEXT MENU ────────────────────────────────────────── */

.ctx-menu {
  position: fixed;
  z-index: 900;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--r-md);
  padding: 4px 0;
  min-width: 160px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  display: none;
}

.ctx-menu.show {
  display: block;
}

.ctx-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 12px;
  color: var(--text-dim);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.1s;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

.ctx-item:hover {
  background: var(--gold-dim);
  color: var(--gold);
}

.ctx-has-sub {
  position: relative;
}

.ctx-arrow {
  margin-left: auto;
  opacity: .5;
  font-size: 10px;
}

.ctx-submenu {
  position: fixed;
  z-index: 10001;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--r-md);
  padding: 4px 0;
  min-width: 210px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.ctx-submenu .ctx-item {
  padding: 8px 12px;
  gap: 8px;
  display: flex;
  align-items: center;
}

.ctx-kbd {
  margin-left: auto;
  opacity: .55;
  font-size: 10px;
  font-family: 'DM Sans', sans-serif;
}

.ctx-sep {
  height: 1px;
  background: var(--border);
  margin: 3px 0;
}

/* ── Cell dropdown inside ctx-menu ── */
#ctx-cell-section { padding: 0; }

.ctx-cell-toggle {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; font-size: 12px; color: var(--gold);
  cursor: pointer; background: none; border: none; width: 100%;
  text-align: left; font-family: 'DM Sans', sans-serif;
}

.ctx-cell-toggle:hover { background: var(--gold-dim); }

#ctx-cell-body { padding: 0 4px 4px; }
